/*
Theme Name: dashcalc
Description: Instrument-panel theme for dash-calculator.com (launch-calcpair-2026-11-06). Every calculator is a readout on one of eight panels; the home hero is a live polar dial. No ads, no ad slots.
Version: 1.0.0
*/
@font-face { font-family: "Outfit"; src: url(assets/fonts/outfit-latin-var.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(assets/fonts/martian-mono-500.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #eef1f4;          /* brushed aluminium */
  --surface: #e4e9ee;
  --card: #ffffff;
  --drawer: #f7f9fb;
  --drawer-2: #dfe5eb;
  --line: #c3ccd5;
  --line-2: #dde3e9;
  --rule: #b6c4d1;        /* dial rings, decorative only */
  --ink: #121820;
  --ink-2: #2c3846;
  --muted: #4c5a69;
  --accent: #00607a;      /* petrol cyan: links, buttons */
  --accent-2: #004b60;
  --on-accent: #ffffff;
  --signal: #b03a0b;      /* redline: the answer mark, needles, errors */
  --brass: #66778a;       /* bezel steel, decorative */
  --band: #12171d;
  --on-band: #eef3f7;
  --on-band-2: #b9c6d2;
  --shadow: 0 1px 0 rgba(18, 24, 32, .05), 0 10px 24px -14px rgba(18, 24, 32, .35);
  --radius: 8px;
  --f-text: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f13; --surface: #121820; --card: #161d26; --drawer: #19212b; --drawer-2: #202a35;
    --line: #313d4a; --line-2: #232d38; --rule: #34495d;
    --ink: #e7edf2; --ink-2: #c6d0d9; --muted: #9aa8b5;
    --accent: #5fd0e6; --accent-2: #93e2f0; --on-accent: #061218; --signal: #ff8b52; --brass: #8b9bab;
    --band: #0f151b; --on-band: #eef3f7; --on-band-2: #b9c6d2;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 24px -14px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f13; --surface: #121820; --card: #161d26; --drawer: #19212b; --drawer-2: #202a35;
  --line: #313d4a; --line-2: #232d38; --rule: #34495d;
  --ink: #e7edf2; --ink-2: #c6d0d9; --muted: #9aa8b5;
  --accent: #5fd0e6; --accent-2: #93e2f0; --on-accent: #061218; --signal: #ff8b52; --brass: #8b9bab;
  --band: #0f151b; --on-band: #eef3f7; --on-band-2: #b9c6d2;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 24px -14px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17.5px/1.62 var(--f-text); overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-text); font-weight: 750; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(23px, 2.4vw, 29px); }
h3 { font-size: 20px; }
p, ul, ol, dl { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap > * { min-width: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.small, small { font-size: .84em; }
code { font-family: var(--f-mono); font-size: .92em; }
.kicker { font: 600 13px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.kicker .dot { display: inline-block; width: 10px; height: 10px; background: var(--signal); border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.meta { color: var(--muted); font-size: 15px; }
.cta { font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta:hover { text-decoration: underline; }
.page-pad { padding-top: 18px; padding-bottom: 56px; }

/* ---------------------------------------------------------------- buttons + controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: var(--radius);
  font: 600 16px/1 var(--f-text); cursor: pointer; border: 1.5px solid transparent; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .6; cursor: progress; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .filter > label, .conv-tabs > label { font: 600 13px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.ctl { position: relative; display: flex; align-items: stretch; min-width: 0; }
.ctl input, .ctl select, .ctl textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font: 400 18px/1.3 var(--f-text); }
.ctl textarea { min-height: 84px; resize: vertical; font-family: var(--f-mono); font-weight: 700; font-size: 16px; }
.ctl input:focus, .ctl select:focus, .ctl textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.ctl.has-unit input { padding-right: 4.6em; font-family: var(--f-mono); font-weight: 700; }
.ctl .unit { position: absolute; right: 1.5px; top: 1.5px; bottom: 1.5px; display: flex; align-items: center; padding: 0 10px; max-width: 45%;
  background: var(--surface); border-left: 1px solid var(--line); border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
  font: 600 13px/1.1 var(--f-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.err { font-size: 14px; color: var(--signal); margin: 0; font-weight: 600; }
.field.invalid .ctl input, .field.invalid .ctl textarea { border-color: var(--signal); }

/* ---------------------------------------------------------------- header */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-head::after { content: ""; display: block; height: 3px; background: var(--signal); opacity: .9; }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.wordmark { font: 500 24px/1 var(--f-text); letter-spacing: -.02em; }
.wordmark b { font-weight: 800; color: var(--accent); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 16px; border-radius: 4px; }
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.head-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; justify-content: center; padding: 0 10px; background: transparent;
  border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer; font: 600 15px/1 var(--f-text); }
.icon-btn:hover { border-color: var(--ink-2); }
.menu-toggle { display: none; }
.head-search { display: none; border-top: 1px solid var(--line-2); padding: 12px 0; background: var(--card); }
.head-search.open { display: block; }

/* ---------------------------------------------------------------- search */
form.search { position: relative; max-width: 640px; }
form.search > label { display: block; margin-bottom: 8px; font: 600 13px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: 400 18px/1.2 var(--f-text); }
.search-row input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.search-big .search-row input { min-height: 60px; font-size: 20px; border-width: 2px; border-color: var(--ink-2); }
.search-big .search-row .btn { min-height: 60px; padding: 0 26px; font-size: 18px; }
.sugg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; background: var(--card); border: 1.5px solid var(--ink-2); border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 30; max-height: 380px; overflow: auto; }
.sugg a, .sugg p { display: block; padding: 10px 14px; margin: 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.sugg a[aria-selected="true"], .sugg a:hover { background: var(--surface); box-shadow: inset 3px 0 0 var(--signal); }
.sugg .s-all { color: var(--accent); font-weight: 700; }
.sugg .s-load { color: var(--muted); }

/* ---------------------------------------------------------------- index card (shared) */
.icard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 0 22px 18px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--rule) 55%, transparent) 31px 32px);
  background-position: 0 64px; background-repeat: no-repeat; background-size: 100% calc(100% - 64px); }
.icard-tab { position: absolute; right: 22px; top: -30px; margin: 0; height: 30px; display: flex; align-items: center; padding: 0 14px; background: var(--card);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.icard-head { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 10px; border-bottom: 2px solid var(--signal); margin: 0 -22px 0; padding-left: 22px; padding-right: 22px; }
.icard-head h2 { font-size: 21px; margin: 0; }
.icard-head h2 a { color: var(--ink); text-decoration: none; }
.icard-head h2 a:hover { text-decoration: underline; }
.icard-no { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.icard-foot { margin: 12px 0 0; font-size: 16px; }

/* ---------------------------------------------------------------- calculator */
.calc { margin: 0; }
.calc-display { padding: 16px 0 6px; }
.calc-answer { display: flex; flex-direction: column; gap: 4px; }
.calc-k { font: 600 13px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.calc-v { font: 600 clamp(40px, 5vw, 56px)/1.05 var(--f-mono); color: var(--ink); letter-spacing: -.02em; display: inline-block; align-self: flex-start;
  padding-bottom: 4px; border-bottom: 4px double var(--signal); overflow-wrap: anywhere; }
.calc-v output { font: inherit; }
.calc-u { font-size: .42em; color: var(--ink-2); letter-spacing: 0; }
.calc-compact .calc-v { font-size: clamp(38px, 4.4vw, 50px); }
.calc-msg { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--signal); background: var(--surface); font-size: 15px; }
.calc.is-err .calc-v { color: var(--muted); }
.calc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 16px 0 4px; border-top: 1px solid var(--line); }
.tile { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.tile dt { font-size: 14px; color: var(--muted); line-height: 1.3; }
.tile dd { margin: 2px 0 0; font: 600 21px/1.2 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }
.tile .tile-u { font-size: 13px; color: var(--muted); }
.tile dd.tile-c { font: 400 12px/1.2 var(--f-text); color: var(--muted); text-transform: none; }
.tile-in dd:not(.tile-c) { color: var(--ink-2); font-size: 18px; }
.calc-form { padding-top: 10px; }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 16px; }
.field-wide { grid-column: 1 / -1; }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.calc-chart { margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.calc-chart.off { display: none; }
.calc-chart figcaption { font-weight: 700; margin-bottom: 6px; }
.calc-chart svg { display: block; width: 100%; height: auto; }
.calc-chart .gl { stroke: var(--line-2); stroke-width: 1; }
.calc-chart .ax { stroke: var(--ink-2); stroke-width: 1.2; }
.calc-chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.calc-chart .pt { fill: var(--signal); stroke: var(--card); stroke-width: 2; }
.calc-chart text { fill: var(--muted); font: 600 11px var(--f-mono); }
.calc-chart .src { font-size: 14px; color: var(--muted); margin: 6px 0; }
.calc-chart details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15px; }
.chart-skel { height: 180px; background: linear-gradient(90deg, var(--surface), var(--line-2), var(--surface)); border-radius: 4px; opacity: .5; }
.calc-off { padding: 16px 18px; border: 1.5px dashed var(--signal); border-radius: var(--radius); background: var(--card); }
.sc-blocked .calc { display: none; }

/* ---------------------------------------------------------------- home: hero */
.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--line); background:
  linear-gradient(to bottom, transparent, transparent), radial-gradient(1200px 380px at 85% 0%, color-mix(in srgb, var(--rule) 40%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 12em; }
.hero-copy .lede { margin-bottom: 26px; }
.proof { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.proof > div { padding: 12px 22px 0 0; margin-right: 22px; border-right: 1px solid var(--line); }
.proof > div:last-child { border-right: 0; }
.proof dt { font-size: 14px; color: var(--muted); }
.proof dd { margin: 0; font-size: 24px; color: var(--ink); }
.hero-card { position: relative; padding-top: 34px; }
.card-stack span { position: absolute; left: 14px; right: 14px; top: 46px; bottom: -10px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; transform: rotate(2.2deg); opacity: .9; }
.card-stack span + span { left: 26px; right: 2px; top: 52px; bottom: -18px; transform: rotate(-1.4deg); opacity: .7; }
.hero-card .icard { z-index: 1; }

/* ---------------------------------------------------------------- bands */
.band { padding: 56px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { margin: 0; }
.band-cabinet { background: var(--surface); border-bottom: 1px solid var(--line); }
.cabinet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 14px; background: var(--drawer-2); border-radius: 8px;
  border: 1px solid var(--line); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25); }
.drawer { position: relative; display: flex; flex-direction: column; background: var(--drawer); border: 1px solid var(--line); border-radius: 4px; padding: 14px 14px 12px;
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--drawer-2) 60%, transparent), 0 2px 0 rgba(24, 34, 58, .08); transition: transform .15s ease; min-width: 0; }
.drawer:hover { transform: translateY(-3px); }
.drawer-no { position: absolute; left: 12px; top: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.drawer-plate { margin: 14px auto 0; width: 100%; max-width: 210px; padding: 8px 10px; background: var(--card); border: 2px solid var(--brass); border-radius: 3px;
  text-align: center; box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3px color-mix(in srgb, var(--brass) 40%, transparent); }
.drawer-plate .drawer-h { font-size: 17px; margin: 0; line-height: 1.2; }
.drawer-plate a { color: var(--ink); text-decoration: none; }
.drawer-plate a:hover { color: var(--accent); text-decoration: underline; }
.drawer-pull { display: block; width: 56px; height: 9px; margin: 10px auto 12px; border-radius: 5px; background: var(--brass); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.drawer-glyph { margin: 0 0 4px; font-size: 14px; color: var(--accent); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-d { font-size: 15px; line-height: 1.4; color: var(--ink-2); margin: 0 0 10px; }
.drawer-s { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px dashed var(--line); }
.drawer-s li { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.3; }
.drawer-s .mono { font-size: 13px; color: var(--signal); }
.drawer-n { margin: auto 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; color: var(--muted); }
.drawer-img { width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 3px; margin-bottom: 10px; border: 1px solid var(--line); }
.cabinet:not(.cabinet-home) { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ranked { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  border-top: 3px solid var(--signal); }
.ranked li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.ranked li:last-child { border-bottom: 0; }
.rk { color: var(--muted); font-size: 15px; }
.rk-t { display: flex; flex-direction: column; min-width: 0; }
.rk-t a { font-weight: 600; color: var(--ink); text-decoration: none; }
.rk-t a:hover { color: var(--accent); text-decoration: underline; }
.rk-c { font-size: 14px; color: var(--muted); }
.rk-n { color: var(--signal); font-size: 16px; text-align: right; white-space: nowrap; }
.newest h2 { font-size: 22px; }
.newest ul { list-style: none; padding: 0; margin: 0 0 22px; }
.newest li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.newest time { font-size: 14px; color: var(--muted); }
.conv-promo { display: flex; flex-direction: column; gap: 4px; padding: 18px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 4px; }
.conv-promo:hover { color: var(--ink); border-color: var(--accent); }
.conv-promo .mono { color: var(--accent); font-size: 15px; }
.conv-promo strong { font-size: 20px; }
.conv-promo span:last-child { color: var(--ink-2); font-size: 15px; }

.band-ink { background: var(--band); color: var(--on-band); }
.band-ink h2 { color: var(--on-band); }
.band-ink .cta { color: var(--on-band); text-decoration: underline; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 0 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .16); }
.steps .mono { color: #ffb08a; font-size: 15px; }
.steps strong { font-size: 19px; }
.steps span:last-child { color: var(--on-band-2); font-size: 16px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--card); border-top: 1px solid var(--line); padding: 0 0 24px; }
.foot-rail { height: 3px; background: var(--signal); opacity: .9; margin-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--ink-2); font-size: 16px; max-width: 26em; margin-top: 12px; }
.foot-col h2 { font: 600 13px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { padding: 4px 0; font-size: 16px; }
.foot-col a { color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.foot-base p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- breadcrumbs + entry */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; font-size: 15px; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.drawer-tab { display: inline-flex; margin: 0 0 12px; }
.drawer-tab a, .drawer-tab > span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--drawer); border: 1px solid var(--line); border-bottom: 2px solid var(--brass);
  border-radius: 5px 5px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.drawer-tab .mono { font-size: 13px; color: var(--muted); }
.entry-head h1 { font-size: clamp(28px, 3.2vw, 38px); max-width: 26em; }
.entry-head { margin-bottom: 26px; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 48px; align-items: start; }
.calc-col { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.icard-main { padding-top: 6px; background-position: 0 0; background-size: 100% 100%; border-top: 3px solid var(--signal); }
.card-details { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 6px 18px; }
.card-details > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.card-details > div:last-child { border-bottom: 0; }
.card-details dt { color: var(--muted); font: 600 12px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.card-details dd { margin: 0; }
.entry { min-width: 0; }
.entry-body { max-width: 40em; }
.entry-body h2 { margin-top: 1.6em; padding-top: .4em; border-top: 1px solid var(--line); font-size: 25px; }
.entry-body h3 { margin-top: 1.4em; }
.entry-body ol, .entry-body ul { padding-left: 1.3em; }
.entry-body li { margin-bottom: .35em; }
.entry-body table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 16px; display: block; overflow-x: auto; }
.entry-body th, .entry-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.entry-body img { border-radius: 4px; }
.formula-used { margin: 24px 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 0 16px; max-width: 40em; }
.formula-used summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.sc-spec-src { white-space: pre-wrap; overflow-x: auto; font: 600 14px/1.6 var(--f-mono); background: var(--surface); padding: 12px; border-radius: 4px; margin: 0 0 10px; }
pre.sc-spec { white-space: pre-wrap; font: 600 14px/1.6 var(--f-mono); background: var(--surface); padding: 12px; border-radius: 4px; }
.sources { font-size: 15px; color: var(--muted); max-width: 40em; }
.rel-cards { margin-top: 32px; max-width: 40em; }
.rel-cards h2 { font-size: 22px; }
.rel-cards ul, .rel { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rel-cards li, .rel li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--signal); border-radius: 3px; font-size: 16px; }
.rel-cards .mono, .rel .mono { font-size: 14px; color: var(--signal); }

/* ---------------------------------------------------------------- hub */
.hub-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.hub-head h1 { font-size: clamp(30px, 3.8vw, 44px); }
.hub-img { width: 220px; height: auto; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.glyph-s { font-size: 18px !important; }
.hub-top h2, .hub-all h2 { font-size: 24px; }
.top-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.top-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: 4px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.top-card:hover { color: var(--ink); border-color: var(--accent); }
.top-no { font-size: 12px; color: var(--muted); }
.top-t { font-size: 19px; font-weight: 700; line-height: 1.25; }
.top-k { font-size: 14px; color: var(--muted); margin-top: 6px; }
.top-n { font-size: 26px; color: var(--ink); border-bottom: 3px double var(--signal); align-self: flex-start; }
.top-n small { font-size: 14px; color: var(--muted); }
.top-x { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.filter { display: flex; flex-direction: column; gap: 6px; min-width: min(320px, 100%); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
table.list, table.conv-all { width: 100%; border-collapse: collapse; font-size: 16px; }
table.list th, table.conv-all th { text-align: left; font: 600 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--signal); background: var(--card); }
table.list td, table.conv-all td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list a { font-weight: 600; }
.r { text-align: right !important; }
.num { font-family: var(--f-mono); font-weight: 700; color: var(--signal); white-space: nowrap; }
.num small { color: var(--muted); }
.empty { color: var(--muted); padding: 14px 0; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); text-decoration: none; }
.page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- pages, A-Z, converter, forms */
.page-h { font-size: clamp(30px, 3.6vw, 42px); }
.page-art { max-width: 46em; }
.page-art.page-wide { max-width: none; }
.az-letters ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 26px; }
.az-letters a, .az-off { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; font: 600 17px/1 var(--f-mono);
  background: var(--drawer); border: 1px solid var(--line); border-radius: 6px 6px 0 0; border-bottom: 2px solid var(--brass); color: var(--ink); text-decoration: none; }
.az-letters a:hover { background: var(--card); }
.az-letters a[aria-current="page"] { background: var(--card); border-bottom-color: var(--signal); color: var(--signal); }
.az-off { opacity: .45; }
.az-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.az-head h2 { margin: 0; font-size: 34px; }
.az-head h2 small { font: 400 16px var(--f-text); color: var(--muted); }
.conv { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: 4px; padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 28px; }
.conv-tabs { display: flex; flex-direction: column; gap: 6px; max-width: 320px; margin-bottom: 16px; }
.conv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto minmax(0, 1.4fr); gap: 14px; align-items: end; }
.conv-swap { min-height: 46px; }
.conv-out { margin: 22px 0 18px; }
.conv .tablewrap { margin-top: 8px; }
.conv-all caption { text-align: left; padding: 10px 14px; font-weight: 700; color: var(--ink-2); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 40em; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: 4px; padding: 20px; }
.contact-form .calc-actions { grid-column: 1 / -1; margin: 0; }
.opt { text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface); }
.form-status.bad { border-left-color: var(--signal); }
.search-page { margin: 18px 0 28px; }
.empty-box { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; max-width: 44em; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.rel-wide { max-width: 60em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .cabinet-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-nav a { padding: 10px 8px; font-size: 15px; }
}
@media (max-width: 960px) {
  .hero-grid, .two-col, .entry-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .calc-col { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 14px; }
  .main-nav a { padding: 12px 6px; font-size: 18px; border-bottom: 1px solid var(--line-2); }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--signal); padding-left: 14px; }
  .head-tools { margin-left: auto; }
  .site-head { position: relative; }
  .hub-head { grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
  .hub-img { width: 150px; }
  .top-grid { grid-template-columns: minmax(0, 1fr); }
  .conv-row { grid-template-columns: minmax(0, 1fr); }
  .conv-swap { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .head-row { min-height: 60px; gap: 10px; }
  .wordmark { font-size: 21px; }
  .brand .mark { width: 28px; height: 28px; }
  .menu-toggle span { display: none; }
  .hero { padding: 26px 0 40px; }
  .hero-copy h1 { font-size: 34px; }
  .lede { font-size: 18px; }
  .search-big .search-row input { min-height: 56px; font-size: 18px; }
  .search-big .search-row .btn { min-height: 56px; padding: 0 16px; }
  .proof dd { font-size: 20px; }
  .proof > div { padding-right: 14px; margin-right: 14px; }
  .hero-card { padding-top: 32px; }
  .icard { padding: 0 16px 14px; }
  .icard-head { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .icard-tab { right: 16px; }
  .band { padding: 40px 0; }
  .cabinet-home { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; }
  .cabinet-home .drawer { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; }
  .cabinet-home .drawer:hover { transform: none; }
  .cabinet-home .drawer-no { position: static; font-size: 13px; }
  .cabinet-home .drawer-plate { margin: 0; max-width: none; text-align: left; padding: 6px 10px; }
  .cabinet-home .drawer-plate .drawer-h { font-size: 16px; }
  .cabinet-home .drawer-pull, .cabinet-home .drawer-glyph, .cabinet-home .drawer-d, .cabinet-home .drawer-s { display: none; }
  .cabinet-home .drawer-n { margin: 0; flex-direction: column; align-items: flex-end; gap: 0; font-size: 13px; }
  .ranked li { grid-template-columns: 30px minmax(0, 1fr); padding: 10px 14px; }
  .rk-n { grid-column: 2; text-align: left; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 14px 0 0; border-left: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .hub-head { grid-template-columns: minmax(0, 1fr); }
  .hub-img { display: none; }
  .calc-fields { grid-template-columns: minmax(0, 1fr); }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  table.list .hide-s { display: none; }
  .card-details > div { grid-template-columns: 84px minmax(0, 1fr); }
  .entry-head h1 { font-size: 28px; }
  .calc-v { font-size: 40px; }
}
@media (max-width: 380px) {
  .hero-copy h1 { font-size: 30px; }
  .hero-copy .lede { font-size: 17px; margin-bottom: 18px; }
  .proof { margin-top: 18px; }
  .hero { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .calc-form, .calc-chart, .rel-cards { display: none; } body { background: #fff; } }
.pin { margin: 28px 0; max-width: 40em; display: flex; gap: 16px; align-items: flex-end; }
.pin img { width: 180px; height: auto; border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.pin figcaption { font-size: 14px; color: var(--muted); max-width: 18em; }
.page-wide .entry-body { max-width: none; }
.entry-body table.list, .entry-body table.conv-all { display: table; margin: 0; }
.entry-body table.list td, .entry-body table.list th, .entry-body table.conv-all td, .entry-body table.conv-all th { border-left: 0; border-right: 0; border-top: 0; }

/* tap targets >= 44px on phones (critic R1 F4); keep each element's display */
.cta { display: inline-flex; align-items: center; min-height: 44px; }
summary { min-height: 44px; display: list-item; padding-top: 10px; padding-bottom: 10px; }
.brand { min-height: 44px; }


/* ================================================================ dash identity layer (launch-calcpair-2026-11-06)
   The dash: dashed redline rules, instrument panels with tick strips, a live polar dial in the hero. */
.dash-rule, .site-head::after, .foot-rail { background: repeating-linear-gradient(90deg, var(--signal) 0 16px, transparent 16px 24px) !important; height: 3px; opacity: 1; }
.site-head { background: var(--card); }
.wordmark { font: 500 23px/1 var(--f-text); letter-spacing: -.01em; }
.wordmark i { font-style: normal; color: var(--signal); font-weight: 700; padding: 0 1px; }
.wordmark b { font-weight: 750; color: var(--ink); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; }
.kicker { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .1em; }
.kicker .dot { width: 18px; height: 3px; border-radius: 0; vertical-align: 3px; background: repeating-linear-gradient(90deg, var(--signal) 0 5px, transparent 5px 8px); }
.field > label, .filter > label, .conv-tabs > label, form.search > label { font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .08em; }
.calc-v { font: 500 clamp(36px, 4.6vw, 52px)/1.08 var(--f-mono); letter-spacing: -.04em; border-bottom: 3px dashed var(--signal); }
.calc-compact .calc-v { font-size: clamp(34px, 4vw, 46px); }
.tile dd { font: 500 18px/1.25 var(--f-mono); letter-spacing: -.03em; }
.icard { border-radius: 10px; background-image: none; padding: 0 20px 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.icard-head { border-bottom: 0; padding-bottom: 14px; position: relative; }
.icard-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--brass) 0 1px, transparent 1px 10px) bottom / 100% 8px no-repeat,
              repeating-linear-gradient(90deg, var(--ink-2) 0 1.5px, transparent 1.5px 50px) bottom / 100% 12px no-repeat; opacity: .55; }
.icard-tab { position: static; display: inline-flex; height: auto; margin: 14px 0 0; padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 500 11px/1.4 var(--f-mono); }
.icard-main { border-top: 0; padding-top: 0; }
.icard-main::before { content: ""; display: block; height: 3px; margin: 0 -20px 4px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(90deg, var(--signal) 0 16px, transparent 16px 24px); }
.card-details { border-radius: 10px; }
.drawer-tab a, .drawer-tab > span { border-radius: 4px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--card); }
.rel-cards li, .rel li, .top-card { border-top: 0; border-left: 3px solid var(--accent); border-radius: 6px; }
.top-n { border-bottom: 3px dashed var(--signal); }
table.list th, table.conv-all th { border-bottom: 2px dashed var(--signal); }
.az-letters a, .az-off { border-radius: 6px; border: 1px solid var(--line); background: var(--card); }
.az-letters a[aria-current="page"] { border-color: var(--signal); box-shadow: inset 0 -3px 0 var(--signal); }
.conv, .contact-form { border-top: 1px solid var(--line); border-radius: 10px; position: relative; }
.conv::before, .contact-form::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(90deg, var(--signal) 0 16px, transparent 16px 24px); }
.ranked { border-top: 0; border-radius: 10px; overflow: hidden; }
.ranked::before { content: ""; display: block; height: 3px; background: repeating-linear-gradient(90deg, var(--signal) 0 16px, transparent 16px 24px); }
.rk { font-size: 13px; }
.rk-n { font-size: 14px; color: var(--signal); }

/* hero: copy left, live polar dial right (fixed graphite instrument in both themes) */
.hero { background: none; border-bottom: 1px solid var(--line); padding: 44px 0 52px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 52px; align-items: center; }
.hero-copy h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 13em; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.quick a:hover { border-color: var(--accent); color: var(--accent); }
.dial-card { --card: #19212a; --surface: #202a34; --line: #3a4756; --line-2: #2b3642; --ink: #eaf1f6; --ink-2: #c9d4dd; --muted: #a3b1be;
  --accent: #5fd0e6; --accent-2: #93e2f0; --on-accent: #061218; --signal: #ff8b52;
  background: #12171d; color: var(--ink); border-radius: 14px; padding: 18px 20px 20px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); border: 1px solid #2b3642; }
.dial-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.dial-top h2 { font-size: 18px; margin: 0; color: var(--ink); }
.dial-top h2 a { color: var(--ink); text-decoration: none; }
.dial-top h2 a:hover { text-decoration: underline; }
.dial-top .mono { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.dial-body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 18px; align-items: center; }
.dial-svg { width: 100%; height: auto; display: block; }
.dial-svg .ring { fill: none; stroke: #3c4b5a; stroke-width: 1; stroke-dasharray: 3 4; }
.dial-svg .ring-o { fill: none; stroke: #6b7c8c; stroke-width: 1.4; }
.dial-svg .axis { stroke: #56677a; stroke-width: 1; }
.dial-svg .tick { stroke: #8899a9; stroke-width: 1; }
.dial-svg .tick-m { stroke: #d5dee6; stroke-width: 1.6; }
.dial-svg .lbl { fill: #a3b1be; font: 500 9px var(--f-mono); }
.dial-svg .vec { stroke: #5fd0e6; stroke-width: 3; stroke-linecap: round; }
.dial-svg .tip { fill: #5fd0e6; }
.dial-svg .arc { fill: none; stroke: #ff8b52; stroke-width: 2.5; }
.dial-svg .proj { stroke: #5fd0e6; stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.dial-card .calc-display { padding-top: 0; }
.dial-card .calc-v { font-size: clamp(34px, 3.6vw, 44px); color: #ffffff; }
.dial-card .calc-tiles { border-top-color: #3a4756; }
.dial-card .calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.dial-card .calc-actions { display: none; }
.dial-foot { margin: 14px 0 0; font-size: 15px; }
.dial-foot a { color: #93e2f0; }

/* panel grid (categories) */
.cabinet, .cabinet-home { background: none; border: 0; box-shadow: none; padding: 0; gap: 16px; }
.cabinet-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.drawer { background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 0 16px 14px; overflow: hidden; }
.drawer:hover { transform: none; border-color: var(--accent); }
.drawer::before { content: ""; display: block; height: 30px; margin: 0 -16px 10px; background:
  repeating-linear-gradient(90deg, var(--brass) 0 1px, transparent 1px 8px) left 0 bottom 0 / 100% 7px no-repeat,
  repeating-linear-gradient(90deg, var(--ink-2) 0 1.5px, transparent 1.5px 40px) left 0 bottom 0 / 100% 13px no-repeat, var(--surface);
  border-bottom: 1px solid var(--line); opacity: .9; }
.drawer-no { position: absolute; left: 14px; top: 6px; font: 500 12px/1 var(--f-mono); color: var(--signal); }
.drawer-plate { margin: 0; max-width: none; padding: 0; border: 0; box-shadow: none; background: none; text-align: left; }
.drawer-plate .drawer-h { font-size: 18px; }
.drawer-pull { display: none; }
.drawer-glyph { text-align: left; color: var(--accent); font: 500 12.5px/1.4 var(--f-mono); margin: 6px 0 6px; }
.drawer-s { border-top: 1px dashed var(--line); }
.drawer-s .mono { font: 500 12.5px/1.4 var(--f-mono); }
.drawer-img { border-radius: 6px; }
.band-cabinet { background: var(--surface); }
.band-ink .steps .mono { font: 500 13px var(--f-mono); }
@media (max-width: 1100px) { .cabinet-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 640px) {
  .cabinet-home { grid-template-columns: minmax(0, 1fr); }
  .dial-body { grid-template-columns: minmax(0, 1fr); }
  .dial-svg { max-width: 240px; margin: 0 auto; }
  .dial-card { padding: 14px 14px 16px; }
}
/* phones: the dial readout sits right under the H1 so the answer is on the first screen */
@media (max-width: 960px) {
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { display: contents; }
  .hero-copy .kicker { order: 1; } .hero-copy h1 { order: 2; } .hero-copy .lede { order: 3; }
  .hero-card { order: 4; padding-top: 0; } .hero-copy form.search { order: 5; } .hero-copy .quick { order: 6; } .hero-copy .proof { order: 7; }
  .hero-copy h1, .hero-copy .lede { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .hero-grid { gap: 16px; }
  .dial-body { display: flex; flex-direction: column; gap: 10px; }
  .dial-svg-wrap { order: 2; }
  .dial-calc { order: 1; }
  .dial-svg { max-width: 220px; }
  .cabinet-home .drawer { padding: 10px 12px; }
  .cabinet-home .drawer::before { display: none; }
  .cabinet-home .drawer-no { color: var(--signal); }
}
.rel-cards .cta { white-space: normal; }
table.list td a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 400px) {
  .wordmark { font-size: 18px; }
  .brand { gap: 7px; }
  .brand .mark { width: 26px; height: 26px; }
  .head-row { gap: 6px; }
  .head-tools { gap: 4px; }
  .icon-btn { min-width: 42px; padding: 0 8px; }
}
@media (max-width: 960px) {
  .hero-copy form.search { order: 4; } .hero-card { order: 5; } .hero-copy .quick { order: 6; }
}
@media (max-width: 640px) {
  .hero-copy .quick { display: none; }
  .hero-copy .kicker { margin-bottom: 0; }
}
@media (max-width: 960px) { .hero-grid > *, .hero-copy > * { min-width: 0; max-width: 100%; } .hero-copy form.search { width: 100%; } }

/* critic R1 fixes (launch-calcpair-2026-11-06) */
.cabinet .drawer-wide { grid-column: span 2; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 18px; align-items: start; }
.cabinet .drawer-wide .drawer-img { width: 150px; height: 225px; object-fit: cover; margin: 0; grid-row: 1 / span 2; }
.cabinet .drawer-wide .drawer-in { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.cabinet .drawer-wide .drawer-h { font-size: 22px; }
.cabinet .drawer-slim .drawer-s li:nth-child(n+2) { display: none; }
.cabinet .drawer-slim .drawer-d { font-size: 14.5px; }
.drawer-h a, .dial-foot a, .rk-t a, .slate-formula a, .slate-head h2 a { display: inline-flex; align-items: center; min-height: 44px; }
.drawer-s a, .rel-cards a, .rk-t a, .newest a, .top-card, .drawer-h a { text-decoration: none; }
.drawer-s a:hover, .rel-cards a:hover, .rk-t a:hover, .newest a:hover, .drawer-h a:hover { text-decoration: underline; }
.drawer-glyph { white-space: normal; overflow: visible; }
.tile dd.tile-c { font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .cabinet .drawer-wide { grid-column: auto; grid-template-columns: 84px minmax(0, 1fr); gap: 0 12px; }
  .cabinet .drawer-wide .drawer-img { width: 84px; height: 126px; }
  .cabinet-home .drawer-slim { padding: 6px 12px; }
}
@media (max-width: 1100px) and (min-width: 641px) { .cabinet:not(.cabinet-home) .drawer-wide { grid-column: span 2; } }

.wordmark { font-weight: 600; } .wordmark b, .wordmark i { font-weight: 700; }
.main-nav a, .btn, .quick a { font-weight: 600; }
.dial-card .field > label { min-height: 2.7em; display: flex; align-items: flex-end; }
@media (max-width: 640px) { .dial-card .calc-v { font-size: 50px; } .calc-v { font-size: 44px; } }
.mono, .calc-v, .tile dd, .kicker, .rk, .rk-n, .drawer-no, .drawer-glyph { font-synthesis: none; }
.cabinet .drawer-wide { padding-top: 14px; border-top: 3px solid var(--accent); }
.cabinet .drawer-wide::before { display: none; }
.cabinet .drawer-wide .drawer-no { left: auto; right: 14px; top: 12px; }

/* R2 polish (launch-calcpair-2026-11-06) */
.cabinet, .cabinet-home { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cabinet > .drawer { grid-column: span 2; }
.cabinet > .drawer-wide { grid-column: span 3; }
@media (max-width: 1100px) { .cabinet, .cabinet-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cabinet > .drawer { grid-column: span 1; } .cabinet > .drawer-wide { grid-column: span 2; } }
.cabinet .drawer-wide .drawer-no { z-index: 2; background: var(--card); padding: 2px 6px; border-radius: 3px; }
.sugg p a { display: inline; padding: 0; border: 0; }
.calc-k { text-transform: none; letter-spacing: .02em; }
@media (max-width: 640px) {
  .cabinet, .cabinet-home { grid-template-columns: minmax(0, 1fr); }
  .cabinet > .drawer, .cabinet > .drawer-wide { grid-column: auto; }
  .cabinet-home .drawer-slim { display: flex; flex-direction: column; padding: 10px 12px; }
  .cabinet-home .drawer-slim .drawer-d, .cabinet-home .drawer-slim .drawer-s { display: block; }
  .cabinet-home .drawer-slim .drawer-d { margin: 0 0 4px; }
  .cabinet-home .drawer-slim .drawer-n { flex-direction: row; justify-content: space-between; align-items: center; }
  .foot-col a, .crumbs a, .newest li a, .drawer-s a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* R3 fixes (launch-calcpair-2026-11-06): phone category cards, /categories/ grid, crumbs, tap targets */
.cabinet:not(.cabinet-home) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.drawer-s { padding-left: 0; }
@media (max-width: 1100px) { .cabinet:not(.cabinet-home) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cabinet:not(.cabinet-home) { grid-template-columns: minmax(0, 1fr); }
  .cabinet-home .drawer, .cabinet-home .drawer-wide, .cabinet-home .drawer-slim { display: flex; flex-direction: column; align-items: stretch; padding: 12px 14px; }
  .cabinet-home .drawer-wide .drawer-img { display: none; }
  .cabinet-home .drawer-wide .drawer-in { display: block; }
  .cabinet-home .drawer-wide .drawer-no { position: static; padding: 0; background: none; }
  .cabinet-home .drawer-no { position: static; margin: 0 0 4px; }
  .cabinet-home .drawer-plate { margin: 0 0 4px; padding: 0; text-align: left; }
  .cabinet-home .drawer-plate .drawer-h { font-size: 18px; }
  .cabinet-home .drawer-d, .cabinet-home .drawer-s { display: block; }
  .cabinet-home .drawer-glyph { display: none; }
  .cabinet-home .drawer-s li:nth-child(n+2) { display: none; }
  .cabinet-home .drawer-s li { flex-direction: column; align-items: flex-start; }
  .cabinet-home .drawer-n { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
  .crumbs a { display: inline; min-height: 0; }
  .crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs ol { align-items: center; }
  .foot-mail a, .inline-links a, .empty-box a, .sugg p a { display: inline-flex; align-items: center; min-height: 44px; }
}
.entry-body .drawer-s, .page-art .drawer-s { padding-left: 0; }
/* R4 fixes (launch-calcpair-2026-11-06): phone cards differ (picture on the two features, formula strip on the rest, tighter), crumbs, 404 links */
@media (max-width: 640px) {
  .cabinet-home { gap: 10px; }
  .cabinet-home .drawer-wide { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 12px; align-items: start; }
  .cabinet-home .drawer-wide .drawer-img { display: block; width: 84px; height: 126px; object-fit: cover; margin: 0; }
  .cabinet-home .drawer-wide .drawer-no { position: absolute; left: 6px; top: 6px; padding: 1px 5px; background: var(--card); }
  .cabinet-home .drawer-slim { padding: 8px 12px 6px; }
  .cabinet-home .drawer-slim .drawer-glyph { display: block; margin: 0 0 4px; font-size: 13px; }
  .cabinet-home .drawer-slim .drawer-d { display: none; }
  .cabinet-home .drawer-slim .drawer-plate { margin: 0; }
  .cabinet-home .drawer-slim .drawer-no { margin: 0; }
  .cabinet-home .drawer-slim .drawer-s { margin: 0; border-top: 0; }
  .cabinet-home .drawer-slim .drawer-s li { padding: 0; border: 0; }
  .cabinet-home .drawer-slim .drawer-n { margin-top: 0; }
  .crumbs ol { flex-wrap: nowrap; }
  .crumbs li { min-width: 0; flex: none; }
  .crumbs li:last-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .crumbs li a { display: inline-flex; align-items: center; min-height: 44px; }
  .rel li a, .rel-wide li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
}
.rel li a { text-decoration: none; } .rel li a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .cabinet-home .drawer-slim { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no no" "h n" "g g"; gap: 0 10px; align-items: center; padding: 8px 12px 10px; }
  .cabinet-home .drawer-slim .drawer-no { grid-area: no; }
  .cabinet-home .drawer-slim .drawer-plate { grid-area: h; }
  .cabinet-home .drawer-slim .drawer-n { grid-area: n; flex-direction: column; align-items: flex-end; gap: 0; }
  .cabinet-home .drawer-slim .drawer-glyph { grid-area: g; margin: 2px 0 0; }
  .cabinet-home .drawer-slim .drawer-s { display: none; }
}
