/* Local guide layout. Presentation tokens come from shared-style/tools-theme.css.
   Scientific trace colors and illustration geometry retain their original meaning. */
:root {
  --paper:var(--tools-canvas);
  --white:var(--tools-surface);
  --ink:var(--tools-text);
  --accent:var(--tools-purple);
  --muted:var(--iris-graphite-500); /* Readable on both white and purple-soft panels. */
  --line:var(--tools-border);
  --accent-soft:var(--tools-purple-soft);
  --light:var(--tools-canvas);
  --error:#a02f25;
  --radius:var(--tools-radius-panel);
  --sans:var(--iris-font-sans);
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:98px;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:var(--tools-font-size-body)/var(--tools-line-height-body) var(--sans);
  -webkit-font-smoothing:antialiased;
}
a {
  color:inherit;
  text-underline-offset:4px;
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
  opacity:.45;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:2px;
}
button,input,select {
  max-width:100%;
}
input,select {
  min-width:0;
}
h1,h2,h3,h4,p,figure {
  margin:0;
}
main h1,main h2 {
  font-family:var(--sans);
  font-weight:var(--tools-font-weight-heading);
  letter-spacing:-.04em;
  line-height:1.12;
}
h2 {
  font-size:clamp(28px,3.2vw,38px);
}
h3 {
  font-size:20px;
  letter-spacing:-.025em;
  line-height:1.3;
}
p+p {
  margin-top:14px;
}
sub {
  font-size:.7em;
}
img {
  display:block;
  width:100%;
  height:auto;
}
svg {
  display:block;
  width:100%;
  height:auto;
}
::selection {
  background:var(--accent-soft);
}
[hidden] {
  display:none!important;
}
.wrap {
  max-width:var(--iris-container-width);
  margin-inline:auto;
  padding-inline:40px;
}
/* Tool sections are separate from the company navigation. */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.tool-nav {
  display:flex;
  align-items:center;
  gap:24px;
  min-height:58px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}
.tool-name {
  margin-right:auto;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.tool-nav a {
  padding-block:16px;
  text-decoration:none;
  font-weight:500;
}
.tool-nav a:hover { color:var(--accent); }
.hero-figure svg text { font-family:var(--sans); }
/* app.js owns axis geometry; this scoped presentation rule uses the shared axis token. */
.plot svg > path:not([class]) { stroke:var(--tools-plot-axis); }
.section {
  padding-block:78px;
}
.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  background:var(--ink);
  color:white;
  padding:10px 20px;
  z-index:100;
}
.skip-link:focus {
  top:10px;
}
.eyebrow,.small-label {
  font-size:10px;
  font-weight:750;
  letter-spacing:.14em;
  line-height:1.4;
}
.eyebrow {
  color:var(--accent);
  margin-bottom:16px;
}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  margin-right:8px;
  flex-shrink:0;
}
.hero {
  padding-top:75px;
  padding-bottom:60px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:68px;
  align-items:center;
}
.hero h1 {
  font-size:clamp(54px,6.5vw,84px);
  line-height:.98;
  letter-spacing:-.065em;
}
.hero h1 em {
  font-weight:inherit;
  font-style:normal;
  color:var(--accent);
}
.hero-deck {
  font-size:17px;
  line-height:1.75;
  max-width:460px;
  margin-top:25px;
  color:var(--muted);
}
.hero-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  margin:29px 0 20px;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:6px;
  padding:12px 18px;
  font-size:12px;
  font-weight:650;
  line-height:1.5;
  transition:background .15s,color .15s;
}
.button.primary {
  background:var(--accent);
  color:var(--white);
}
.button.primary:hover {
  background:var(--tools-purple-hover);
}
.button.secondary {
  background:transparent;
  border-color:var(--line);
  color:var(--ink);
  justify-content:flex-start;
  margin-top:15px;
  gap:8px;
}
.button.secondary:hover {
  background:var(--accent-soft);
}
.text-link {
  font-size:12px;
  font-weight:650;
  text-decoration:none;
}
.text-link:hover {
  text-decoration:underline;
}
.micro {
  font-size:12px;
  color:var(--muted);
  line-height:1.65;
}
.hero-figure {
  background:var(--ink);
  color:var(--white);
  border-radius:18px;
  overflow:hidden;
  transform:rotate(1deg);
  box-shadow:0 20px 35px -28px rgb(26 28 35 / .5);
}
.figure-top {
  display:flex;
  justify-content:space-between;
  padding:20px 24px 12px;
  font-size:9px;
  letter-spacing:.15em;
  color:var(--iris-graphite-300);
}
.hero-figure svg {
  padding:10px 8px 0;
}
.hero-figure figcaption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:21px 24px;
  border-top:1px solid var(--iris-graphite-700);
  font-size:10px;
  line-height:1.6;
  color:var(--iris-graphite-300);
}
.formula {
  font-family:var(--sans);
  font-size:24px;
  color:var(--accent-soft);
  white-space:nowrap;
}
.premise {
  padding-top:26px;
  padding-bottom:26px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:26px;
}
.premise>.small-label {
  min-width:90px;
}
.premise p {
  font-size:13px;
  color:var(--muted);
  max-width:665px;
}
.pill {
  border:1px solid var(--line);
  border-radius:30px;
  padding:7px 12px;
  white-space:nowrap;
  font-size:10px;
  margin-left:auto;
}
.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:32px;
}
.section-heading>p {
  font-size:13px;
  color:var(--muted);
  max-width:310px;
  line-height:1.75;
  flex-shrink:0;
}
.section-heading .eyebrow {
  margin-bottom:12px;
}
.quantity-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.quantity-card {
  padding:24px 21px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
  display:flex;
  align-items:flex-start;
  flex-direction:column;
}
.quantity-symbol {
  font:italic 40px var(--sans);
  margin-bottom:12px;
}
.unit-tag {
  font-size:10px;
  font-weight:550;
  padding:4px 8px;
  border-radius:4px;
  background:var(--light);
  color:var(--accent);
  margin-bottom:23px;
}
.quantity-card h3 {
  font-size:16px;
  margin-bottom:11px;
}
.quantity-card p {
  font-size:12px;
  color:var(--muted);
  margin-bottom:24px;
}
.quantity-card a {
  font-size:10px;
  font-weight:650;
  text-decoration:none;
  margin-top:auto;
}
.quantity-card a:hover {
  text-decoration:underline;
}
.source-note {
  font-size:11px;
  color:var(--muted);
  margin-top:21px;
  line-height:1.8;
}
.theory-band {
  background:var(--paper);
  border-block:1px solid var(--line);
}
.wide-figure {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  margin-bottom:36px;
}
.wide-figure img {
  width:100%;
  max-height:430px;
  object-fit:contain;
}
.wide-figure figcaption,.workflow-figure figcaption,.accuracy-grid figcaption {
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  padding:14px 22px;
  border-top:1px solid var(--line);
}
.theory-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:52px;
}
.theory-grid h3 {
  margin-bottom:14px;
}
.theory-grid p {
  font-size:13px;
  color:var(--muted);
}
.theory-grid p.micro {
  font-size:11px;
}
.equation {
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
}
.equation strong {
  font:21px var(--sans);
  letter-spacing:.015em;
}
.equation span {
  font-size:11px;
  color:var(--muted);
}
.equation.large {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:24px 0;
  margin-bottom:14px;
}
.equation.large strong {
  font-size:32px;
}
.equation+.micro {
  margin-top:14px;
}
.experiment-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-top:36px;
}
.mini-lab {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  padding:26px;
}
.mini-lab .eyebrow {
  font-size:9px;
}
.mini-lab h3 {
  font-size:18px;
}
.mini-lab label {
  display:block;
  font-size:11px;
  font-weight:650;
  margin-top:16px;
}
.mini-lab label output {
  float:right;
  color:var(--accent);
}
.aperture-experiment {
  display:flex;
  align-items:center;
  gap:20px;
  height:192px;
}
.aperture-experiment svg {
  width:45%;
  flex-shrink:0;
}
.aperture-experiment output {
  font:32px var(--sans);
}
.aperture-experiment p {
  font-size:12px;
  margin:4px 0;
  color:var(--muted);
}
.aperture-experiment p.micro {
  font-size:10px;
}
.range-labels {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  margin-bottom:10px;
}
input[type=range] {
  width:100%;
  accent-color:var(--accent);
  height:22px;
  cursor:pointer;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.lab-readout {
  font:22px var(--sans);
  margin-top:8px;
}
.reading {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:18px 0;
  margin-top:30px;
}
.reading>p {
  font-size:13px;
  max-width:900px;
  color:var(--muted);
  margin-top:15px;
}
summary {
  cursor:pointer;
  font-size:12px;
  font-weight:650;
  line-height:1.6;
}
main details[open]>summary {
  margin-bottom:14px;
}
main summary::marker {
  color:var(--accent);
}
.workflow-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:45px;
  align-items:start;
}
.workflow-grid>div>select {
  margin-top:12px;
}
.camera-notes {
  font-size:12px;
  line-height:1.8;
  padding:17px 0;
  color:var(--muted);
}
.camera-notes a {
  color:var(--accent);
}
.steps {
  list-style:none;
  counter-reset:step;
  padding:0;
  margin:5px 0 0;
}
.steps li {
  position:relative;
  padding:0 0 21px 41px;
  counter-increment:step;
}
.steps li::before {
  content:'0'counter(step);
  position:absolute;
  left:0;
  top:1px;
  color:var(--accent);
  font-size:10px;
  font-weight:700;
  border:1px solid var(--line);
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:50%;
}
.steps strong {
  display:block;
  font-size:13px;
  line-height:1.6;
}
.steps span {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  display:block;
  margin-top:4px;
}
.workflow-figure {
  margin-top:0;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--white);
}
.callout {
  background:var(--accent-soft);
  border:1px solid var(--line);
  border-radius:10px;
  display:flex;
  gap:22px;
  align-items:flex-start;
  padding:23px 26px;
  margin-top:22px;
}
.callout-symbol {
  font:30px var(--sans);
}
.callout strong {
  font-size:14px;
}
.callout p {
  font-size:12px;
  line-height:1.8;
  margin-top:6px;
  color:var(--muted);
}
.calculator-band {
  background:var(--paper);
  border-block:1px solid var(--line);
}
.calculator-nav {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:27px;
}
.calculator-nav a {
  font-size:11px;
  background:var(--white);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:5px;
  text-decoration:none;
}
.calculator-nav a:hover {
  background:var(--ink);
  color:var(--white);
}
.calculator {
  border:1px solid var(--line);
  background:var(--white);
  border-radius:var(--radius);
  margin-bottom:24px;
  overflow:hidden;
  scroll-margin-top:96px;
  box-shadow:0 3px 0 rgb(26 28 35 / .03);
}
.calc-heading {
  display:flex;
  align-items:center;
  gap:17px;
  padding:23px 30px;
  border-bottom:1px solid var(--line);
}
.calc-number {
  font:24px var(--sans);
  color:var(--accent);
  border-right:1px solid var(--line);
  padding-right:20px;
}
.calc-heading .eyebrow {
  font-size:9px;
  margin-bottom:6px;
}
.calc-heading h3 {
  font-size:20px;
}
.reset-button {
  margin-left:auto;
  border:0;
  background:none;
  color:var(--muted);
  font-size:11px;
  text-decoration:underline;
  text-underline-offset:4px;
  padding:8px;
}
.reset-button:hover {
  color:var(--accent);
}
.calc-body {
  display:grid;
  grid-template-columns:1fr 1fr;
}
.calc-body form {
  padding:28px 30px;
  min-width:0;
}
label {
  display:block;
  font-size:11px;
  font-weight:650;
  margin:0 0 7px;
}
label span {
  font-weight:400;
  color:var(--muted);
  float:right;
  margin-left:7px;
}
input:not([type=range]),select {
  display:block;
  width:100%;
  border:1px solid var(--iris-graphite-300);
  background:var(--white);
  color:var(--ink);
  border-radius:6px;
  padding:10px 12px;
  font-size:14px;
  min-height:43px;
  line-height:1.5;
  transition:border-color .15s;
}
input:not([type=range]):hover,select:hover {
  border-color:var(--accent);
}
input[aria-invalid=true] {
  border-color:var(--error);
  background:#fff3ee;
}
input::placeholder {
  color:var(--muted);
  font-size:12px;
}
.field-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 16px;
  margin-top:20px;
}
.field-grid:first-child {
  margin-top:0;
}
.input-hint {
  font-size:10px;
  color:var(--muted);
  line-height:1.7;
  margin-top:9px;
}
.assumption {
  border-left:2px solid var(--accent);
  padding-left:12px;
  font-size:11px;
  line-height:1.8;
  color:var(--muted);
  margin:20px 0;
}
.calc-body details {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:15px;
}
.calc-body details input {
  margin-top:10px;
}
.calc-body details .micro {
  margin-top:10px;
}
.calc-result {
  background:var(--accent-soft);
  border-left:1px solid var(--line);
  padding:28px 30px;
  min-width:0;
}
.result-label {
  font-size:9px;
  letter-spacing:.11em;
  font-weight:700;
  color:var(--accent);
  line-height:1.7;
}
.big-result {
  display:flex;
  gap:13px;
  align-items:baseline;
  flex-wrap:wrap;
  margin:6px 0 8px;
  line-height:1.15;
}
.big-result output {
  font:clamp(32px,4vw,51px) var(--sans);
  letter-spacing:-.03em;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
.big-result>span {
  font-size:15px;
  color:var(--muted);
}
.result-detail {
  font-size:11px;
  line-height:1.8;
  color:var(--muted);
  min-height:20px;
  overflow-wrap:anywhere;
}
.formula-strip {
  padding:11px 0;
  font:19px var(--sans);
  letter-spacing:.01em;
  border-block:1px solid var(--line);
  margin-top:17px;
}
.result-note {
  font-size:11px;
  line-height:1.8;
  color:var(--muted);
  margin-top:12px;
}
.result-note.warning {
  color:#80521c;
}
.error {
  font-size:12px;
  line-height:1.6;
  background:#fff0e8;
  color:var(--error);
  border:1px solid #efc7b1;
  border-radius:5px;
  padding:10px 13px;
  margin-top:18px;
}
.plot {
  width:100%;
  margin-top:17px;
  min-width:0;
}
.plot svg {
  overflow:visible;
  font-family:var(--sans);
}
.plot-caption {
  font-size:10px;
  color:var(--muted);
  line-height:1.65;
  margin-top:5px;
}
.plot svg text {
  fill:var(--muted);
  font-size:var(--tools-plot-font-size);
}
.plot svg .axis-label {
  font-size:var(--tools-plot-font-size);
  fill:var(--ink);
}
.plot svg .grid-line {
  stroke:var(--tools-plot-grid);
  stroke-width:1;
}
.plot svg .plot-line {
  stroke:var(--accent);
  stroke-width:var(--tools-plot-line-width);
  fill:none;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.plot svg .plot-area {
  fill:var(--accent-soft);
  opacity:.35;
}
.plot svg .plot-dot {
  fill:var(--ink);
  stroke:var(--white);
  stroke-width:2;
}
.plot svg .dot-ring {
  stroke:var(--accent);
  fill:none;
  opacity:.2;
  stroke-width:7;
}
.preset-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:13px 0 23px;
}
.preset-row span {
  font-size:10px;
  color:var(--muted);
}
.preset-row button {
  padding:4px 11px;
  border:1px solid var(--line);
  color:var(--ink);
  background:var(--light);
  font-size:10px;
  border-radius:20px;
}
.preset-row button:hover {
  background:var(--accent-soft);
}
.table-scroll {
  overflow-x:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:11px;
  text-align:left;
  font-variant-numeric:tabular-nums;
}
th,td {
  padding:9px 7px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
th {
  font-weight:650;
  color:var(--accent);
}
.workbench-footer {
  display:flex;
  align-items:center;
  gap:2px;
  color:var(--muted);
  font-size:10px;
  padding-top:6px;
}
.workbench-footer p {
  flex:1;
}
.text-button {
  background:none;
  border:0;
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:4px;
  font-size:10px;
  padding:8px;
  margin-left:20px;
}
.accuracy-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  align-items:start;
}
.accuracy-grid figure {
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--white);
}
.accuracy-notes h3 {
  margin-bottom:15px;
}
.check-list {
  list-style:none;
  margin:0;
  padding:0;
  font-size:12px;
  color:var(--muted);
}
.check-list li {
  padding:0 0 17px 20px;
  position:relative;
  line-height:1.8;
}
.check-list li::before {
  content:'+';
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:700;
}
.check-list strong {
  color:var(--ink);
}
.quantization {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:45px;
  background:var(--light);
  border:1px solid var(--line);
  border-radius:12px;
  padding:28px 30px;
  margin-top:35px;
}
.quantization h3 {
  font-size:20px;
  margin-bottom:10px;
}
.quantization p {
  font-size:12px;
  color:var(--muted);
}
.quantization .eyebrow {
  font-size:9px;
  margin-bottom:10px;
}
.quant-visual {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}
.quant-visual span {
  width:var(--bar);
  background:var(--accent-soft);
  border-radius:4px;
  padding:8px 10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:10px;
  min-width:155px;
}
.quant-visual span:nth-child(2) {
  background:var(--ink);
  color:var(--white);
}
.quant-visual b {
  font-variant-numeric:tabular-nums;
}
.references-band {
  border-block:1px solid var(--line);
  background:var(--paper);
}
.reference-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:23px 32px;
}
.reference-grid a {
  text-decoration:none;
  border-top:1px solid var(--line);
  padding-top:17px;
}
.reference-grid a:hover strong {
  color:var(--accent);
  text-decoration:underline;
}
.reference-grid span {
  font-size:9px;
  letter-spacing:.1em;
  color:var(--muted);
  display:block;
  margin-bottom:8px;
}
.reference-grid strong {
  font-size:12px;
  line-height:1.5;
  display:block;
}
.reference-grid p {
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  margin-top:6px;
}
.calculator.invalid .big-result output {
  color:var(--muted);
}
@media(min-width:1400px) {
  .hero {
    padding-top:90px;
    padding-bottom:75px;
  }
}
@media(max-width:1000px) {
  .wrap {
    padding-inline:28px;
  }
  .hero {
    gap:30px;
  }
  .hero h1 {
    font-size:68px;
  }
  .hero-actions {
    gap:14px;
  }
  .hero-actions .text-link {
    font-size:11px;
  }
  .section-heading>p {
    max-width:250px;
  }
  .quantity-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .quantity-card p {
    max-width:300px;
  }
  .quantity-card a {
    font-size:11px;
  }
  .premise .pill {
    display:none;
  }
  .workflow-grid {
    gap:25px;
  }
  .calc-heading {
    padding:22px;
  }
  .calc-body form,.calc-result {
    padding:24px;
  }
  .theory-grid {
    gap:32px;
  }
  .reference-grid {
    gap:22px;
  }
  .mini-lab {
    padding:22px;
  }
  .accuracy-grid {
    gap:25px;
  }
}
@media(max-width:720px) {
  html {
    scroll-padding-top:116px;
  }
  .wrap {
    padding-inline:20px;
  }
  .hero {
    grid-template-columns:1fr;
    gap:34px;
    padding-top:45px;
    padding-bottom:35px;
  }
  .hero h1 {
    font-size:68px;
  }
  .hero-deck {
    font-size:16px;
    max-width:480px;
  }
  .hero-figure {
    transform:none;
    max-width:520px;
  }
  .hero-actions {
    margin-top:24px;
    gap:19px;
  }
  .hero .micro {
    font-size:10px;
  }
  .premise {
    align-items:flex-start;
    gap:14px;
    padding-top:20px;
    padding-bottom:20px;
  }
  .premise>.small-label {
    min-width:65px;
    font-size:9px;
  }
  .premise p {
    font-size:11px;
  }
  .section {
    padding-block:45px;
  }
  .section-heading {
    display:block;
    margin-bottom:25px;
  }
  .section-heading>p {
    max-width:100%;
    margin-top:15px;
    font-size:12px;
  }
  .section-heading h2 {
    max-width:500px;
  }
  .quantity-grid {
    gap:10px;
  }
  .quantity-card {
    padding:18px 15px;
  }
  .quantity-symbol {
    font-size:34px;
  }
  .quantity-card h3 {
    font-size:16px;
  }
  .quantity-card p {
    font-size:11px;
    margin-bottom:17px;
  }
  .quantity-card a {
    font-size:10px;
    line-height:1.6;
  }
  .quantity-card .unit-tag {
    font-size:9px;
    margin-bottom:18px;
  }
  .theory-grid,.experiment-grid,.workflow-grid,.accuracy-grid,.quantization {
    grid-template-columns:1fr;
    gap:26px;
  }
  .theory-grid {
    gap:30px;
  }
  .theory-grid p {
    font-size:12px;
  }
  .wide-figure {
    margin-bottom:27px;
  }
  .wide-figure img {
    min-height:230px;
  }
  .wide-figure figcaption,.workflow-figure figcaption,.accuracy-grid figcaption {
    font-size:10px;
    padding:12px 16px;
  }
  .workflow-figure {
    order:-1;
  }
  .callout {
    padding:18px;
    gap:15px;
  }
  .callout strong {
    font-size:13px;
  }
  .callout p {
    font-size:11px;
  }
  .calc-body {
    grid-template-columns:1fr;
  }
  .calc-result {
    border-left:none;
    border-top:1px solid var(--line);
  }
  .calc-heading {
    padding:19px 18px;
    gap:13px;
  }
  .calc-heading h3 {
    font-size:17px;
  }
  .calc-heading .eyebrow {
    font-size:8px;
    letter-spacing:.1em;
  }
  .calc-number {
    font-size:23px;
    padding-right:14px;
  }
  .calc-body form,.calc-result {
    padding:22px;
  }
  .big-result output {
    font-size:46px;
  }
  .calculator-nav {
    gap:7px;
  }
  .calculator-nav a {
    font-size:10px;
    padding:7px 10px;
  }
  .calculator {
    scroll-margin-top:120px;
  }
  .field-grid {
    gap:17px 14px;
  }
  .workbench-footer {
    flex-wrap:wrap;
    gap:5px;
  }
  .workbench-footer p {
    min-width:240px;
  }
  .text-button {
    margin-left:8px;
    padding-left:0;
  }
  .quantization {
    padding:24px;
    gap:22px;
  }
  .reference-grid {
    grid-template-columns:1fr 1fr;
    gap:25px 18px;
  }
  .reference-grid strong {
    font-size:11px;
  }
  .plot svg text {
    font-size:11px;
  }
}
@media(max-width:360px) {
  .wrap {
    padding-inline:15px;
  }
  .hero h1 {
    font-size:54px;
  }
  .calc-body form,.calc-result {
    padding:18px;
  }
  .field-grid {
    grid-template-columns:1fr;
  }
  .quantity-grid {
    grid-template-columns:1fr;
  }
  .quantity-card {
    min-height:215px;
  }
  .quantity-card p {
    max-width:100%;
  }
  .quantity-card .unit-tag {
    margin-bottom:12px;
  }
  .reference-grid {
    grid-template-columns:1fr;
  }
  .hero-figure figcaption .formula {
    font-size:20px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  * {
    transition:none!important;
  }
}
@media print {
  body {
    background:white;
    color:#111;
    font-size:10pt;
  }
  .iris-site-header,.tool-nav,.hero-actions,.calculator-nav,.reset-button,.preset-row,.button,.text-button,input[type=range],.skip-link {
    display:none!important;
  }
  .wrap {
    max-width:none;
    padding-inline:0;
  }
  .section {
    padding-block:22px;
  }
  .hero {
    padding-top:0;
    grid-template-columns:1fr 1fr;
    gap:25px;
  }
  .hero h1 {
    font-size:52px;
  }
  .hero-deck {
    font-size:11pt;
  }
  .hero-figure {
    transform:none;
    box-shadow:none;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  .hero-figure svg {
    max-height:210px;
  }
  .section-heading {
    margin-bottom:15px;
  }
  .section-heading h2 {
    font-size:24pt;
  }
  .section-heading>p {
    font-size:9pt;
  }
  .quantity-grid {
    grid-template-columns:repeat(4,1fr);
  }
  .quantity-card {
    padding:12px;
  }
  .calculator,.mini-lab,.quantity-card,.workflow-figure,.accuracy-grid figure {
    break-inside:avoid;
  }
  .calculator-band,.theory-band,.references-band {
    background:white;
  }
  .calc-heading {
    padding:12px 18px;
  }
  .calc-body {
    grid-template-columns:1fr 1fr;
  }
  .calc-body form,.calc-result {
    padding:15px;
  }
  .calc-result {
    border-top:0;
    border-left:1px solid #ccc;
  }
  .big-result output {
    font-size:30pt;
  }
  .plot svg {
    max-height:145px;
  }
  .calculator {
    margin-bottom:18px;
  }
  .calc-result,.quant-visual span {
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  input:not([type=range]),select {
    border-color:#ddd;
    padding:4px 7px;
    min-height:28px;
    font-size:10pt;
  }
  .field-grid {
    gap:8px 12px;
    margin-top:10px;
  }
  .assumption {
    margin-block:10px;
  }
  .theory-grid,.workflow-grid,.experiment-grid,.accuracy-grid,.quantization {
    grid-template-columns:1fr 1fr;
    gap:20px;
  }
  .wide-figure img {
    max-height:240px;
    min-height:0;
  }
  .workflow-figure {
    order:initial;
  }
  .reference-grid {
    grid-template-columns:repeat(3,1fr);
  }
  a {
    text-decoration:none;
  }
  details:not([open]) {
    display:none;
  }
  .source-note {
    font-size:8pt;
  }
  .premise {
    padding-block:13px;
  }
  .micro,.result-note {
    font-size:8pt;
  }
}
.ev-converter {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:10px;
  padding:20px 26px;
  margin:-7px 0 24px;
}
.ev-converter .field-grid {
  grid-template-columns:1fr 1.5fr 1fr;
  margin-bottom:17px;
}
.ev-conversion-result {
  border-block:1px solid var(--line);
  padding:14px 0;
  margin:17px 0;
}
.ev-conversion-result output {
  font:28px var(--sans);
}
.ev-conversion-result p {
  margin-top:8px;
}
@media(max-width:720px) {
  .ev-converter {
    padding:20px;
  }
  .ev-converter .field-grid {
    grid-template-columns:1fr;
  }
}

/* Keep operational text readable across the guide and calculator layouts. */
main label, main summary, .input-hint, .assumption, .result-detail, .result-note,
.plot-caption, .source-note, .range-labels, .micro, .camera-notes,
.steps span, .wide-figure figcaption, .workflow-figure figcaption,
.accuracy-grid figcaption, .quantity-card p, .reference-grid p,
.workbench-footer, .workbench-footer .text-button, .preset-row,
.preset-row span, .preset-row button, .calculator-nav a, .reset-button {
  font-size:var(--tools-font-size-help);
}
.button, .hero-actions .text-link { font-size:var(--tools-font-size-control); }
.plot svg text, .plot svg .axis-label { font-size:var(--tools-plot-font-size); }
.plot svg { background:var(--tools-surface); border-radius:var(--tools-radius-control); }
@media (max-width:720px) {
  .tool-nav { gap:20px; flex-wrap:wrap; padding-block:12px; }
  .tool-name { width:100%; }
  .tool-nav a { padding-block:4px; font-size:12px; }
  .hero h1 { font-size:68px; }
}
@media (max-width:360px) {
  .tool-nav { gap:16px; }
  .hero h1 { font-size:54px; }
}
@media print {
  .iris-site-footer { display:none!important; }
  main label, main summary, .input-hint, .assumption, .result-detail, .result-note,
  .plot-caption, .source-note, .micro { font-size:8pt; }
}

/* Focus ranging extends the guide; its optical lab is separate from meter calculators. */
#focus-ranging { scroll-margin-top:96px; }
#focus-ranging .experiment-grid > * { min-width:0; }
.focus-figure { margin-block:32px; }
.focus-figure img { min-height:0; }
.focus-theory { padding:12px 0; }
.focus-theory p { margin-block:16px; }
.focus-procedure { margin-top:38px; }
.metadata-command {
  max-width:100%; overflow:auto; padding:18px;
  background:var(--soft); border:1px solid var(--line); border-radius:8px;
  font-size:13px; line-height:1.7;
}
.focus-procedure article { min-width:0; }
#focus-ranging code { overflow-wrap:anywhere; }
#focus-plot { overflow-x:auto; }
#focus-plot svg { min-width:360px; }
@media(max-width:720px) {
  #focus-ranging { scroll-margin-top:120px; }
  .focus-figure { overflow-x:auto; }
  .focus-figure img { min-width:610px; max-width:none; width:100%; }
  .focus-theory { padding-top:0; }
}
@media print {
  .focus-figure { overflow:visible; }
  .focus-figure img { min-width:0; max-width:100%; }
  .metadata-command { white-space:pre-wrap; overflow:visible; }
  #focus-plot { overflow:visible; }
  #focus-plot svg { min-width:0; }
}
.focus-scroll-hint { display:none; }
@media(max-width:720px) { .focus-scroll-hint { display:inline; } }
@media print { .focus-scroll-hint { display:none; } }
@media(max-width:640px) {
  .focus-theory .equation { flex-direction:column; align-items:flex-start; gap:6px; }
}
@media print {
  .focus-theory .equation { flex-direction:column; align-items:flex-start; gap:6px; }
}
