/* Result cards are in shared/photo-calculators.css; the limits and the bar are this tool's own. */
.dof-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0}
.dof-result{padding:12px 16px;background:white;border:1px solid #ccd5df;border-radius:12px}
.dof-result .tool-label{margin-top:0}
.dof-result output{display:block;margin:0;font-size:1.5rem;font-weight:700}
.dof-result p{margin:4px 0 0;font-size:.9rem}
.dof-limits{display:flex;gap:16px;margin:8px 0 0}
.dof-limits div{margin:0}
.dof-limits dt{font-size:.85rem;color:#3b4a5a}
.dof-limits dd{margin:0;font-size:1.25rem;font-weight:700}
.dof-bar{position:relative;height:40px;margin:24px 16px 8px;background:#e7edf3;border-radius:8px}
.dof-zone{position:absolute;top:0;bottom:0;background:#9fc5e8;border-radius:8px}
.dof-mark{position:absolute;top:-6px;bottom:-6px;width:3px;margin-left:-1px;background:#1d3557}
.dof-mark--subject{width:4px;background:#c1121f}
.dof-camera{position:absolute;left:-14px;top:50%;width:12px;height:16px;margin-top:-8px;background:#1d3557;border-radius:2px}
.calc-tool [data-legend]{font-size:.9rem;margin:0}
/* Phones: sensor sits beside focus and focal length beside aperture, and the distance (and custom circle) takes
   a full row, so the Near/Far limits fit on the first screen under the inputs. Desktop keeps the shared grid. */
@media (max-width:600px){
[data-dof-calculator].calc-tool{padding-top:12px;padding-bottom:12px}
[data-dof-calculator] .calc-trust{margin:0}
[data-dof-calculator] .calc-fields{gap:8px 12px;margin:8px 0}
[data-dof-calculator] .calc-fields label{gap:4px;line-height:1.25}
[data-dof-calculator] .calc-fields [data-custom],[data-dof-calculator] .calc-fields [data-distance-field]{grid-column:1/-1}
[data-dof-calculator] .dof-results{margin:8px 0}
[data-dof-calculator] .dof-result{padding:10px 16px}
[data-dof-calculator] .dof-limits{margin-top:0}
}
