/* Rate Bench (hkinetics.net) v1.0.1 — written fresh for this site: lab-notebook paper, graphite instrument rail,
   indicator-magenta accent; STIX Two Text (journal serif, formulas) + Arimo (instrument sans).
   v1.0.1 (review F1, F5): status strip, reagent-label price tag, specification-sheet pricing, ledger, periodic-row
   footer and stacked working tables on phones replace the pieces that had come from the sister kit. */

@font-face { font-family: "STIX Two Text"; src: url("fonts/stix-two-text-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "STIX Two Text"; src: url("fonts/stix-two-text-greek-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "STIX Two Text"; src: url("fonts/stix-two-text-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("fonts/arimo-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f5f0;
  --paper-2: #eceae2;
  --card: #fffefb;
  --ink: #16181d;
  --ink-2: #2b2e35;
  --text: #24262c;
  --mute: #5f626a;
  --rule: #d6d3c8;
  --grid: #e6e3d9;
  --mag: #b3125a;
  --mag-hi: #e0407f;
  --mag-tint: #f8e3ec;
  --amber: #8a5a00;
  --amber-tint: #fbf0d9;
  --ok: #1d6b4f;
  --ok-tint: #e2f1ea;
  --serif: "STIX Two Text", "Times New Roman", Georgia, serif;
  --sans: "Arimo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 6px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.62 var(--sans); font-size: 16.5px; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--mag); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 2px; }
sup, sub { font-size: 0.72em; line-height: 0; }
i { font-family: var(--serif); font-style: italic; font-size: 1.06em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--read { max-width: 820px; }
.wrap--sheet { max-width: 940px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* type */
.eyebrow { margin: 0 0 12px; font: 700 0.74rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mag); }
.display { font: 600 clamp(2.5rem, 5.6vw, 4.4rem)/1.02 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 22px; }
.display em { font-style: italic; color: var(--mag); font-weight: 500; }
.h1 { font: 600 clamp(2rem, 4vw, 2.9rem)/1.1 var(--serif); color: var(--ink); margin: 0 0 14px; letter-spacing: -0.01em; }
.h2 { font: 600 clamp(1.5rem, 2.6vw, 2.05rem)/1.15 var(--serif); color: var(--ink); margin: 0 0 12px; }
.h3 { font: 600 1.32rem/1.25 var(--serif); color: var(--ink); margin: 34px 0 12px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r); border: 1.5px solid var(--ink); font: 700 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--mag); border-color: var(--mag); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: var(--mag-hi); border-color: var(--mag-hi); color: #fff; }
.btn--danger { background: transparent; color: #9b1c1c; border-color: #9b1c1c; }
.btn--danger:hover { background: #9b1c1c; color: #fff; }

/* status strip (PREVIEW): an instrument's status line with a mono chip, not a banner */
.status { background: var(--paper-2); border-bottom: 1px solid var(--rule); font-size: 0.87rem; color: var(--ink-2); }
.status__in { display: flex; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.status__in p { margin: 0; }
.status__chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 2px 8px 2px 7px; border: 1px solid var(--mag); border-radius: 3px; background: var(--card); font: 700 0.66rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mag); }
.status__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mag); }
.status__go { flex: none; margin-left: auto; font-weight: 700; white-space: nowrap; }

/* header + instrument switcher */
.bar { background: var(--paper); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark { width: 38px; height: 38px; flex: none; }
.mark__box { fill: var(--ink); }
.mark__curve { fill: none; stroke: var(--mag-hi); stroke-width: 2.4; stroke-linecap: round; }
.mark__pt { fill: var(--paper); }
.brand__word { font: italic 600 1.62rem/1 var(--serif); letter-spacing: -0.01em; }
.brand__tag { font: 700 0.68rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); border-left: 1px solid var(--rule); padding-left: 12px; }
.bar__links { display: flex; gap: 26px; }
.bar__links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.94rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.bar__links a:hover, .bar__links a[aria-current] { border-bottom-color: var(--mag); }
.switch { background: var(--ink); }
.switch__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.switch__tab { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 13px 18px; color: #c9cbd2; text-decoration: none; border-left: 1px solid #2c2f37; position: relative; }
.switch__tab:last-child { border-right: 1px solid #2c2f37; }
.switch__tab:hover { background: #20232a; color: #fff; }
.switch__tab[aria-current] { background: #23262e; color: #fff; }
.switch__tab[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mag-hi); }
.switch__no { font: 700 0.7rem/1 var(--mono); color: #8d909a; }
.switch__sym { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid #4a4e58; border-radius: 4px; font: 600 1.15rem/1 var(--serif); color: #fff; }
.switch__tab[aria-current] .switch__sym { border-color: var(--mag-hi); color: var(--mag-hi); }
.switch__name { font-weight: 700; font-size: 0.92rem; }

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 70%, var(--paper-2) 100%); border-bottom: 1px solid var(--rule); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fig { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 18px 14px; box-shadow: 0 1px 0 rgba(22, 24, 29, .04), 0 18px 40px -24px rgba(22, 24, 29, .35); }
.fig__cap { margin-top: 10px; font: 400 0.95rem/1.5 var(--serif); color: var(--ink-2); }
.fig__cap b { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.02em; }
.fig__bar { color: var(--mag); margin: 0 4px; }
.fig--tool { margin: 18px 0; max-width: 680px; }

/* price tag: a reagent label (symbol box, the two passes, the PREVIEW stamp) */
.tag { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; max-width: 560px; margin: 4px 0 0; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); font-size: 0.92rem; }
.tag__sym { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 3px; font: 600 1.3rem/1 var(--serif); color: var(--ink); }
.tag__dl { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; }
.tag__dl div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.tag__dl dt { font-weight: 700; color: var(--ink); }
.tag__dl dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tag__end { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0; font-size: 0.86rem; font-weight: 700; }
.tag__stamp { padding: 1px 7px; border: 1px dashed var(--mag); border-radius: 3px; font: 700 0.68rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mag); }

/* bands */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band__head { max-width: 760px; margin-bottom: 30px; }
.band__lede { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.band--laws { background: var(--card); border-bottom: 1px solid var(--rule); }
.band--paper { background: var(--paper-2); }
.band--ink { background: var(--ink); color: #d5d7dd; }
.band--ink .h2 { color: #fff; }
.band--ink .eyebrow { color: var(--mag-hi); }
.band--ink .band__lede { color: #c3c6ce; }
.band--ink .band__lede strong { color: #fff; }

/* three plots */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio__item { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 14px 12px; }
.trio__item.is-best { border-color: var(--mag); box-shadow: 0 0 0 1px var(--mag); }
.trio__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.trio__label { font-weight: 700; font-size: 0.9rem; color: var(--ink); white-space: nowrap; }
.trio__r2 { font: 600 0.95rem/1 var(--serif); color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-best .trio__r2 { color: var(--mag); }
.is-best .trio__label::after { content: "best"; margin-left: 8px; padding: 2px 7px; border-radius: 99px; background: var(--mag); color: #fff; font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.law { margin-top: 6px; font: 400 1rem/1.4 var(--serif); color: var(--ink-2); text-align: center; }
.trio--tool { grid-template-columns: 1fr; }
@media (min-width: 1240px) { .trio--tool { grid-template-columns: repeat(3, 1fr); } .trio--tool .law { font-size: 0.86rem; } }

/* plot */
.plot { display: block; width: 100%; height: auto; font-family: var(--sans); }
.plot__bg { fill: #fffefb; }
.plot__grid { stroke: var(--grid); stroke-width: 1; }
.plot__axis { stroke: var(--ink); stroke-width: 1.4; }
.plot__tick { font-size: 14px; fill: var(--mute); font-variant-numeric: tabular-nums; }
.plot__label { font: italic 600 17px var(--serif); fill: var(--ink); }
.plot__fit { stroke: var(--mute); stroke-width: 2; stroke-dasharray: 6 5; }
.plot--best .plot__fit { stroke: var(--mag); stroke-dasharray: none; stroke-width: 2.4; }
.plot__curve { fill: none; stroke: var(--mag); stroke-width: 2.6; }
.plot__pt { fill: var(--ink); stroke: #fffefb; stroke-width: 2; }
.plot__mark { stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 4 4; }
.plot__marktext { font-size: 13px; font-weight: 700; fill: var(--amber); }

/* instrument tiles (element-tile cards) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 270px; padding: 18px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.tile__no { font: 700 0.8rem/1 var(--mono); color: var(--mute); }
.tile__sym { font: 600 3.6rem/1 var(--serif); color: var(--ink); margin: 10px 0 2px; }
.tile:hover .tile__sym { color: var(--mag); }
.tile__name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.tile__line { font-size: 0.92rem; color: var(--ink-2); flex: 1; }
.tile__go { font-weight: 700; font-size: 0.88rem; color: var(--mag); }

/* split + steps */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 64px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.steps li:last-child { border-bottom: 0; margin-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -6px; font: italic 600 2.1rem/1 var(--serif); color: var(--mag); }
.steps b { color: var(--ink); }

/* home price band: a ledger of the plans */
.split--price { align-items: center; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { caption-side: top; text-align: left; padding: 0 0 10px; font: 700 0.72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #a7aab3; }
.ledger th, .ledger td { padding: 14px 12px; border-bottom: 1px solid #33363f; text-align: left; vertical-align: top; }
.ledger thead th { padding-top: 0; padding-bottom: 8px; border-bottom: 1.5px solid #6b6f79; font: 700 0.74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #a7aab3; }
.ledger tbody th { font-weight: 700; color: #fff; }
.ledger td { font: 600 1.5rem/1.1 var(--serif); color: #fff; white-space: nowrap; }
.ledger td:last-child { text-align: right; }
.ledger small { display: block; margin-top: 4px; font: 400 0.82rem/1.35 var(--sans); color: #a7aab3; white-space: normal; }
.ledger tr.is-pass th { box-shadow: inset 3px 0 0 var(--mag-hi); padding-left: 16px; }
.ledger tr.is-pass td { color: var(--mag-hi); }

/* pricing page: a specification sheet */
.pricing { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.pricing__head { max-width: 820px; margin-bottom: 24px; }
.state { display: grid; grid-template-columns: auto 1fr; margin: 0 0 30px; background: var(--ink); color: #d5d7dd; border-radius: 8px; overflow: hidden; }
.state p { margin: 0; }
.state__k { padding: 16px 22px; background: #23262e; border-right: 1px solid #33363f; }
.state__k span { display: block; margin-bottom: 6px; font: 700 0.68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #a7aab3; }
.state__k b { font: 600 1.4rem/1 var(--serif); color: var(--mag-hi); }
.state__v { padding: 16px 22px; align-self: center; }
.state__v strong { color: #fff; }
.spec { margin: 0 0 44px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--card); overflow: hidden; }
.spec__t { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; }
.spec__t thead th { width: 23%; }
.spec__t thead th:first-child { width: 31%; }
.spec__t caption { caption-side: top; text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--rule); background: var(--paper-2); font: 700 0.72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.spec__t th, .spec__t td { padding: 11px 18px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
.spec__t thead th { padding-top: 18px; padding-bottom: 16px; border-bottom: 0; border-left: 1px solid #2c2f37; vertical-align: bottom; background: var(--ink); color: #fff; }
.spec__t thead th:first-child { border-left: 0; }
.spec__t tbody th[scope="row"] { width: 31%; font-weight: 700; color: var(--ink); }
.spec__t td { color: var(--ink-2); }
.spec__t .is-pass { background: #fbf1f5; }
.spec__t thead .is-pass { background: #23262e; box-shadow: inset 0 -3px 0 var(--mag-hi); }
.spec__group th { padding-top: 20px; padding-bottom: 8px; font: 700 0.72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mag); }
.spec__plan { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.spec__sym { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid #4a4e58; border-radius: 3px; font: 600 1.2rem/1 var(--serif); color: #fff; }
.is-pass .spec__sym { border-color: var(--mag-hi); color: var(--mag-hi); }
.spec__name { font-weight: 700; color: #c9cbd2; line-height: 1.25; font-size: 0.9rem; }
.spec__price { font: 600 1.55rem/1.1 var(--serif); color: #fff; }
.spec__price small { font: 400 0.84rem var(--sans); color: #a7aab3; }
.spec__free { display: inline-block; padding: 1px 7px; border: 1px dashed var(--mag); border-radius: 3px; font: 700 0.68rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mag); }
.yes { font-weight: 700; color: var(--ok); font-size: 1.05rem; }
.no { color: var(--mute); }
.pricing__split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); margin-bottom: 30px; }
.pricing__split .h3 { margin-top: 0; }
.rules { margin: 0; border-top: 2px solid var(--ink); }
.rules div { display: grid; grid-template-columns: 170px 1fr; gap: 6px 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.rules dt { font-weight: 700; color: var(--ink); }
.rules dd { margin: 0; color: var(--ink-2); }
.rules--page div { grid-template-columns: 210px 1fr; }

/* inner pages */
.sheetpage { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.plain { padding-left: 20px; color: var(--ink-2); }
.readnote { margin: 0 0 12px; font-size: 0.88rem; color: var(--mute); }
.work__note { margin: -4px 0 10px; font-size: 0.86rem; color: var(--mute); }
.nw { white-space: nowrap; }
.plain li { margin-bottom: 10px; }
.formula { font: 400 1.2rem/1.5 var(--serif); background: var(--card); border-left: 3px solid var(--mag); padding: 12px 16px; margin: 14px 0; overflow-wrap: anywhere; }
.notes__grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); }
.notes__toc { position: sticky; top: 16px; align-self: start; }
.notes__toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.notes__toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; font-size: 0.93rem; }
.notes__toc a:hover { color: var(--mag); }
.notes__body { max-width: 760px; min-width: 0; }
.notes__body .h2 { margin-top: 40px; scroll-margin-top: 16px; }

/* notes / callouts */
.note { border: 1px solid var(--rule); border-left: 4px solid var(--ink); background: var(--card); border-radius: var(--r); padding: 12px 16px; margin: 0 0 16px; }
.note p { margin: 0 0 6px; }
.note p:last-child, .note ul { margin-bottom: 0; }
.note--warn { border-left-color: var(--amber); background: var(--amber-tint); }
.note--ok { border-left-color: var(--ok); background: var(--ok-tint); }
.linkbox code { display: block; padding: 8px 10px; background: #fff; overflow-wrap: anywhere; }

/* instrument page */
.tool { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.tool__head { margin-bottom: 22px; }
.tool__grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(20px, 3.5vw, 40px); align-items: start; }
.tool__price { margin-top: 24px; max-width: 760px; }
.panel { position: sticky; top: 14px; background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 8px; padding: 18px; }
.panel__h { margin: 0 0 12px; font: 700 0.74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.field { display: block; margin-bottom: 14px; min-width: 0; }
.field.is-off { opacity: .45; }
.field__l { display: block; font-weight: 700; font-size: 0.86rem; color: var(--ink); margin-bottom: 5px; }
.field__l small { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1.5px solid #bfbcb1; border-radius: var(--r); background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.field textarea { font: 400 0.95rem/1.5 var(--mono); resize: vertical; min-height: 170px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mag); outline: 2px solid rgba(179, 18, 90, .2); outline-offset: 0; }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.panel__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.panel__sample { font-size: 0.9rem; font-weight: 700; }
.panel__limit { margin: 12px 0 0; font-size: 0.82rem; color: var(--mute); }
.results { min-width: 0; }
.empty { border: 1.5px dashed var(--rule); border-radius: 8px; padding: 34px 26px; text-align: center; color: var(--mute); background: repeating-linear-gradient(0deg, transparent 0 27px, var(--grid) 27px 28px); }
.empty__h { font: 600 1.35rem/1.2 var(--serif); color: var(--ink); margin: 0 0 8px; }
.answer { background: var(--ink); color: #e3e5ea; border-radius: 8px; padding: 20px 22px; margin-bottom: 16px; }
.answer__k { margin: 0; font: 700 0.72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mag-hi); }
.answer__main { margin: 8px 0 14px; font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--serif); color: #fff; }
.answer__main i { color: #fff; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin: 0; background: #33363f; border: 1px solid #33363f; border-radius: 6px; overflow: hidden; }
.readout div { background: #1d2026; padding: 10px 12px; }
.readout dt { font-size: 0.78rem; color: #a7aab3; margin-bottom: 3px; }
.readout dd { margin: 0; font: 600 1.12rem/1.3 var(--serif); color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout dd small { font: 400 0.8rem var(--sans); color: #a7aab3; }
.work { padding-left: 22px; color: var(--ink-2); }
.work li { margin-bottom: 12px; padding-left: 4px; }
.work li::marker { font: italic 600 1.05rem var(--serif); color: var(--mag); }
.eq { display: block; margin-top: 4px; }
.tablewrap { overflow-x: auto; margin: 10px 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.data th:first-child, .data td:first-child { text-align: left; }
.data thead th { background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: 0.82rem; }
.data tr.is-best td { background: var(--mag-tint); font-weight: 700; }
.readings { margin-top: 16px; }
.readings summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.keep { margin-top: 26px; padding: 18px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); }
.keep__h { margin: 0 0 10px; font: 600 1.15rem/1.2 var(--serif); color: var(--ink); }
.keep__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.danger { margin-top: 22px; padding: 16px 18px; border: 1px solid #e3c2c2; border-radius: 8px; }
.danger__h { margin: 0 0 8px; font-weight: 700; color: #9b1c1c; }
.danger__meta { margin: 10px 0 0; font-size: 0.84rem; color: var(--mute); }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: 0.92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; }

/* lab sheet */
.labsheet { padding: 28px 0 60px; background: #fff; }
.labsheet__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.labsheet__bar p { margin: 0; font-size: 0.86rem; color: var(--mute); }
.labsheet__head { border-bottom: 3px double var(--ink); padding-bottom: 14px; margin-bottom: 18px; }
.labsheet__meta { margin: 0; font-size: 0.86rem; color: var(--mute); overflow-wrap: anywhere; }
.labsheet__foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--mute); }
.labsheet .readout, .labsheet .readout div { background: #fff; border-color: var(--rule); }
.labsheet .answer { background: #fff; color: var(--text); border: 2px solid var(--ink); }
.labsheet .answer__main, .labsheet .answer__main i, .labsheet .readout dd { color: var(--ink); }
.labsheet .readout dt, .labsheet .readout dd small { color: var(--mute); }
.labsheet .readout { gap: 0; }
.labsheet .readout div { border: 1px solid var(--rule); }
.is-sheet .switch, .is-sheet .status { display: none; }

/* footer: the instrument row again, as periodic-table cells, then the reference links and a colophon */
.foot { background: var(--ink); color: #b9bcc4; padding: 48px 0 28px; font-size: 0.93rem; border-top: 1px solid #2c2f37; }
.foot a { color: #fff; }
.foot__lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 22px; }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.foot__brand .mark__box { fill: #2a2d35; }
.foot__word { font: italic 600 1.45rem/1 var(--serif); color: #fff; }
.foot__say { margin: 0; color: #a7aab3; max-width: 52ch; }
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #2f323a; border-left: 1px solid #2f323a; }
.cell { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 14px 16px; border-right: 1px solid #2f323a; border-bottom: 1px solid #2f323a; color: #d9dbe0; text-decoration: none; }
.cell__no { grid-column: 2; font: 700 0.66rem/1 var(--mono); color: #8d909a; }
.cell__sym { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 50px; height: 50px; border: 1.5px solid #4a4e58; border-radius: 3px; font: 600 1.35rem/1 var(--serif); color: #fff; }
.cell__name { grid-column: 2; font-weight: 700; }
.cell:hover { background: #20232a; }
.cell:hover .cell__sym { border-color: var(--mag-hi); color: var(--mag-hi); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 22px 0 0; }
.foot__links a { color: #d9dbe0; text-decoration: none; font-weight: 700; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
.indep { margin: 22px 0 0; font-size: 0.84rem; color: #9da0a9; max-width: 900px; }
.colophon { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #2f323a; font: italic 400 0.9rem/1.5 var(--serif); color: #9da0a9; }
.colophon__by { font-style: normal; font-family: var(--sans); font-size: 0.84rem; white-space: nowrap; }
.colophon__by::before { content: "\00b7"; margin: 0 8px 0 4px; color: #6b6f79; }

/* responsive */
@media (max-width: 1080px) {
  .tiles, .cells { grid-template-columns: repeat(2, 1fr); }
  .switch__tab { padding: 11px 12px; gap: 9px; }
  .switch__no { display: none; }
}
@media (max-width: 1000px) {
  /* the specification sheet on tablets: symbol above the plan name, price unit on its own line */
  .spec__t th, .spec__t td { padding-left: 12px; padding-right: 12px; }
  .spec__t thead th { width: 24%; }
  .spec__t thead th:first-child { width: 28%; }
  .spec__plan { grid-template-columns: 1fr; justify-items: start; gap: 4px; }
  .spec__sym { grid-row: auto; width: 38px; height: 38px; font-size: 1.05rem; }
  .spec__price { font-size: 1.3rem; }
  .spec__price small { display: block; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .tool__grid, .notes__grid { grid-template-columns: 1fr; }
  .panel, .notes__toc { position: static; }
  .trio, .pricing__split { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar__in { flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; padding-bottom: 12px; }
  .bar__links { gap: 18px; }
  .switch__in { grid-template-columns: 1fr 1fr; padding: 0; }
  .switch__tab { grid-template-columns: auto 1fr; border-left: 0; border-right: 0; border-top: 1px solid #2c2f37; padding: 10px 16px; }
  .switch__tab:nth-child(odd) { border-right: 1px solid #2c2f37; }
  .switch__tab:last-child { border-right: 0; }
  .switch__sym { width: 32px; height: 32px; font-size: 1rem; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .field2 { grid-template-columns: 1fr; gap: 0; }
  .field3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .steps li { padding-left: 50px; }
  .steps li::before { font-size: 1.7rem; }
  .readout { grid-template-columns: 1fr; }
  .status__in { flex-wrap: wrap; gap: 4px 10px; }
  .status__go { margin-left: 0; }
  .state { grid-template-columns: 1fr; }
  .state__k { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-right: 0; border-bottom: 1px solid #33363f; }
  .state__k span { margin: 0; }
  .state__v { padding: 14px 18px; }
  .rules div, .rules--page div { grid-template-columns: 1fr; gap: 2px; }
  .ledger th, .ledger td { padding: 12px 8px; }
  .ledger td { font-size: 1.2rem; }
  .cell { padding: 12px; gap: 2px 10px; }
  .cell__sym { width: 40px; height: 40px; font-size: 1.1rem; }
  .colophon__by { display: block; margin-top: 4px; }
  .colophon__by::before { content: none; }
  /* review F5: the working tables stack, one labelled line per value, instead of hiding their last column */
  .tablewrap { overflow: visible; border: 0; background: transparent; }
  .data--stack, .data--stack tbody, .data--stack tr, .data--stack td { display: block; width: 100%; }
  .data--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data--stack tr { margin: 0 0 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); overflow: hidden; }
  .data--stack td { display: flow-root; padding: 6px 12px; border-bottom: 1px solid var(--grid); text-align: right; white-space: normal; overflow-wrap: anywhere; }
  .data--stack td:last-child { border-bottom: 0; }
  .data--stack td::before { content: attr(data-label); float: left; max-width: 55%; margin-right: 14px; text-align: left; font-weight: 700; color: var(--mute); }
  .data--stack td:first-child { background: var(--paper-2); color: var(--ink); font-weight: 700; text-align: right; }
  /* the specification sheet: each row's name on its own line, the three plans side by side under it */
  .spec__t, .spec__t thead, .spec__t tbody, .spec__t caption { display: block; }
  .spec__t tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec__t thead th:first-child { display: none; }
  .spec__t thead tr { background: var(--ink); }
  .spec__t thead th, .spec__t thead th:first-child { width: auto; padding: 14px 8px 12px; }
  .spec__plan { grid-template-columns: 1fr; justify-items: start; gap: 4px; }
  .spec__sym { grid-row: auto; width: 36px; height: 36px; font-size: 1rem; }
  .spec__name { font-size: 0.82rem; }
  .spec__price { font-size: 1.15rem; }
  .spec__t tbody th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 10px 10px 2px; border-bottom: 0; font-size: 0.88rem; }
  .spec__t tbody td { padding: 2px 8px 10px; font-size: 0.86rem; overflow-wrap: anywhere; }
  .spec__group th { grid-column: 1 / -1; padding: 16px 10px 6px; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .bar, .switch, .status, .foot, .noprint, .skip { display: none !important; }
  .labsheet { padding: 0; }
  .trio__item, .fig, .tablewrap, .answer { break-inside: avoid; box-shadow: none; }
  .tablewrap { overflow: visible; }
  a { color: inherit; text-decoration: none; }
  /* the three plots side by side and a smaller single figure, so a lab sheet is two pages, not five */
  .trio--tool { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .trio--tool .law { font-size: 0.8rem; }
  .fig--tool { max-width: 62%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
