/* Applidex: a printed reference with ink chrome. Warm paper pages under an ink header and footer; sections
   alternate paper and a deeper paper tint as full-width bands; the only white surfaces are controls and the
   key-facts panel. Hierarchy comes from a real type scale (condensed display, humanist body, mono for model
   numbers, codes and measurements), ink rules and space, never from boxes around text. Blueprint blue marks
   links, controls and small marks. Tokens are documented in docs/BRAND.md. Never use a hex value in a component. */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.d444e1815a3a.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400-italic.66d79cf044cb.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.c6b471cbb2b9.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-500.c67b8cf83b8c.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.965395aad327.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.db3da8cffd10.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.814fe1615d4d.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.6708425c446b.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-600.e71a597e376e.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --font-ui: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --ok-bg: color-mix(in srgb, var(--ok) 13%, transparent);
  --warn-bg: color-mix(in srgb, var(--warn) 15%, transparent);
  --danger-bg: color-mix(in srgb, var(--danger) 12%, transparent);
  --text-prose: color-mix(in srgb, var(--text) 90%, var(--text-muted));
  --radius-sm: 3px;
  --radius: 6px;
  --shadow: 0 18px 40px -24px rgba(20, 18, 12, .5);
  --wrap: 1240px;
  --gutter: 20px;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: 96px;
  /* Type scale: the only sizes components may use. */
  --t-h1: clamp(2.4rem, 1.6rem + 3vw, 3.8rem);
  --t-h2: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  --t-h3: 1.25rem;
  --t-lede: 1.15rem;
  --t-body: 1rem;
  --t-small: .875rem;
  --t-micro: .78rem;
  --h1: var(--t-h1);
  --lede: var(--t-lede);
  --lede-width: 62ch;
  --rule: 1px solid var(--line);
  --rule-soft: 1px solid var(--line-soft);
}
:root, :root[data-theme="light"], :root[data-theme="auto"] {
  color-scheme: light;
  --bg: #F8F6F1; --bg-2: #EEEAE1;
  --ink: #1B1D20; --on-ink: #F3F1EA; --on-ink-muted: #B9B7AE; --accent-ink: #8FA8FF; --badge-bg: #1B1D20; --badge-fg: #F3F1EA;
  --surface: #FFFFFF; --surface-2: #F3F0E9; --surface-3: #E7E3DA;
  --photo-bg: #FFFFFF; /* product photos are shot on white in every theme */
  /* EU energy label band colours: fixed by the regulation, the same in every theme. */
  --e-a: #1E8449; --e-b: #3DA35D; --e-c: #8BC34A; --e-d: #D4C02E; --e-e: #E9A23B; --e-f: #E06A2D; --e-g: #C83A2E; --e-ink: #FFFFFF; --e-ink-dark: #17191C; /* letters on the pale C and D bands */
  --line: #CFC9BB; --line-soft: #E3DED4;
  --text: #1B1D20; --text-muted: #585B62; --text-faint: #676A71;
  --accent: #2451C9; --accent-hi: #1A3FA6; --on-accent: #FFFFFF;
  --ok: #246340; --warn: #A8701A; --danger: #B42318;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1A1C20; --bg-2: #212429;
  --ink: #0F1113; --on-ink: #ECEAE3; --on-ink-muted: #A9ABA5; --accent-ink: #8FA8FF; --badge-bg: #ECEAE3; --badge-fg: #15171A;
  --surface: #262A30; --surface-2: #2B3036; --surface-3: #353A41;
  --line: #3F454D; --line-soft: #2E333A;
  --text: #ECEAE3; --text-muted: #B3B1A9; --text-faint: #9C9B94;
  --accent: #7E9CFF; --accent-hi: #9DB4FF; --on-accent: #0E1220;
  --ok: #7CC08F; --warn: #E0A84A; --danger: #F08A7E;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #1A1C20; --bg-2: #212429;
    --ink: #0F1113; --on-ink: #ECEAE3; --on-ink-muted: #A9ABA5; --accent-ink: #8FA8FF; --badge-bg: #ECEAE3; --badge-fg: #15171A;
    --surface: #262A30; --surface-2: #2B3036; --surface-3: #353A41;
    --line: #3F454D; --line-soft: #2E333A;
    --text: #ECEAE3; --text-muted: #B3B1A9; --text-faint: #9C9B94;
    --accent: #7E9CFF; --accent-hi: #9DB4FF; --on-accent: #0E1220;
    --ok: #7CC08F; --warn: #E0A84A; --danger: #F08A7E;
    }
}
:root[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000000; --bg-2: #121212;
  --ink: #000000; --on-ink: #FFFFFF; --on-ink-muted: #D4D4D4; --accent-ink: #A9C0FF; --badge-bg: #FFFFFF; --badge-fg: #000000;
  --surface: #161616; --surface-2: #1E1E1E; --surface-3: #2A2A2A;
  --line: #8A8A8A; --line-soft: #5C5C5C;
  --text: #FFFFFF; --text-muted: #E6E6E6; --text-faint: #CFCFCF;
  --accent: #A9C0FF; --accent-hi: #C4D3FF; --on-accent: #000000;
  --ok: #B3E8B0; --warn: #FFD27A; --danger: #FF9A8C;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  font-family: var(--font-ui); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--bg);
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { flex: 1; padding-top: var(--space-3); padding-bottom: var(--space-6); min-width: 0; }
@media (min-width: 900px) { main.wrap { padding-top: var(--space-4); } }
@media (min-width: 900px) { :root { --gutter: 32px; } }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a, .answer a, .faq a, td a:not(.code-badge), .quote a { color: var(--accent-hi); }
a:hover { color: var(--accent-hi); text-decoration-color: var(--accent-hi); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.06; margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: 0; }
h4 { font-size: 1rem; font-family: var(--font-ui); font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: var(--lede); color: var(--text-muted); max-width: var(--lede-width); margin: 12px 0 0; line-height: 1.6; }
.faint { color: var(--text-faint); font-size: var(--t-small); }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--accent); vertical-align: -1px; }
.mono, code, .code-badge, .num, .kv dd.mono, .datasheet td.value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }
svg { width: 1em; height: 1em; fill: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
hr { border: 0; border-top: var(--rule); margin: 32px 0; }

/* ---------- Header ---------- */
/* One sticky row, about 64px: logo | section links | search | account. Below 1100px the links fold into a
   panel behind the Menu button and the search stays in the row; below 600px the search takes a second row
   of its own and Log in gives way to Sign up. */
.site-header { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.site-header-row { display: grid; grid-template-columns: auto auto minmax(200px, 1fr) auto; align-items: center; column-gap: var(--space-3); min-height: 64px; }
.site-nav { display: flex; gap: 2px; align-items: center; }
.site-nav a { flex: none; text-decoration: none; padding: 21px 9px 18px; font-weight: 700; font-size: .9rem; color: var(--on-ink-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--on-ink); }
.site-nav a[aria-current] { color: var(--on-ink); border-bottom-color: var(--accent-ink); }
.site-header .search-field { background: var(--surface); border-color: transparent; }
.site-header .search-field:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 30%, transparent); }
.site-header .btn-ghost { color: var(--on-ink); border-color: var(--on-ink-muted); }
.site-header .btn-ghost:hover { border-color: var(--on-ink); color: var(--on-ink); }
.site-header .btn-secondary { background: transparent; color: var(--on-ink); border-color: var(--on-ink); }
.site-header .btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.site-header .btn-primary:hover { background: var(--accent-ink); color: var(--ink); }
.site-header .logo, .site-footer .logo { color: var(--on-ink); }
.site-header .logo-mark, .site-footer .logo-mark { border-color: var(--on-ink); }
.site-header .logo-mark span, .site-footer .logo-mark span { background: var(--accent-ink); }
.site-header .logo-tag, .site-footer .logo-tag { color: var(--on-ink-muted); }
.site-nav .nav-more { display: none; }
/* Appliance types: one dropdown, in the bar on wide screens and as the first row of the mobile menu. */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; padding: 21px 9px 18px; font-weight: 700; font-size: .9rem; color: var(--on-ink-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-drop summary:hover, .nav-drop[open] summary { color: var(--on-ink); }
.nav-drop[open] summary { border-bottom-color: var(--accent-ink); }
.nav-drop-panel { position: absolute; top: 100%; left: 0; z-index: 50; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 2px; padding: 10px; background: var(--surface); border: var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.site-nav .nav-drop-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: var(--radius-sm); font-weight: 700; color: var(--text); }
.site-nav .nav-drop-panel a:hover, .site-nav .nav-drop-panel a[aria-current] { background: var(--surface-2); color: var(--accent-hi); }
.nav-drop-panel svg { flex: none; width: 26px; height: 26px; color: var(--text-muted); }
.site-header .search-compact { width: 100%; max-width: 440px; justify-self: end; }
.site-header .menu-toggle { display: none; }
.site-header .menu-toggle[aria-expanded="true"] { border-color: var(--on-ink); color: var(--on-ink); }
.logo { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-decoration: none; color: var(--text); }
.logo-mark { grid-row: 1 / 3; width: 26px; height: 26px; border: 2.5px solid var(--text); position: relative; }
.logo-mark span { position: absolute; right: -2.5px; bottom: -2.5px; width: 12px; height: 12px; background: var(--accent); }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.logo-tag { font-family: var(--font-display); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); line-height: 1; margin-top: 3px; }
.logo-lg .logo-mark { width: 36px; height: 36px; } .logo-lg .logo-word { font-size: 2rem; } .logo-lg .logo-tag { font-size: .8rem; }
.account { display: flex; gap: 8px; align-items: center; justify-self: end; }
.inline { display: inline; }
@media (max-width: 1100px) {
  .site-header-row { grid-template-columns: auto minmax(160px, 1fr) auto auto; column-gap: 12px; }
  .site-header .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: flex; flex-wrap: wrap; gap: 6px; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); box-shadow: var(--shadow); padding: 10px var(--gutter) 14px; }
  .site-nav a { padding: 10px 12px; border: 1px solid var(--on-ink-muted); border-radius: var(--radius-sm); color: var(--on-ink); }
  .site-nav a[aria-current] { border-color: var(--accent-ink); }
  .site-nav .nav-more { display: inline-block; font-weight: 400; }
  .nav-drop { flex-basis: 100%; min-width: 0; }
  .nav-drop summary { display: inline-block; padding: 10px 12px; border: 1px solid var(--on-ink-muted); border-radius: var(--radius-sm); color: var(--on-ink); }
  .nav-drop-panel { position: static; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); margin-top: 6px; box-shadow: none; border-radius: var(--radius-sm); border-top: var(--rule); }
  .site-header .search-compact { max-width: none; }
}
@media (max-width: 600px) {
  .site-header-row { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .site-header .search-compact { grid-column: 1 / -1; grid-row: 2; }
  .site-header .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .account { grid-column: 3; grid-row: 1; }
  .account .btn span { display: none; }
}
@media (max-width: 480px) { .logo-tag { display: none; } .logo-word { font-size: 1.3rem; } }
/* Very narrow phones: the Menu button shows its icon only, so the header row fits. */
@media (max-width: 420px) { .site-header .menu-toggle span { display: none; } }

/* ---------- Task cards ---------- */
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.task { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.task > svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.task h2 { font-size: var(--t-h3); margin-bottom: 4px; }
.task p { margin: 0 0 12px; color: var(--text-muted); font-size: var(--t-small); }
.task .mini { display: flex; gap: 8px; }
.task .mini input { flex: 1; min-width: 0; font: inherit; font-family: var(--font-mono); text-transform: uppercase; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }
.task .mini input::placeholder { text-transform: none; font-family: var(--font-ui); color: var(--text-faint); }
.task .mini input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.task .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.task .chips a, .task .chips button { font: inherit; font-size: .88rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); text-decoration: none; cursor: pointer; }
.task .chips a:hover, .task .chips button:hover, .task .chips [aria-pressed="true"] { border-color: var(--text); }
.task .chips [aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.task .chips .faint { align-self: center; }
.task .foot { font-size: .85rem; color: var(--text-faint); margin: 10px 0 0; }
@media (max-width: 700px) { .tasks { grid-template-columns: 1fr; } .task { grid-template-columns: 36px minmax(0, 1fr); padding: 18px; } .task > svg { width: 36px; height: 36px; padding: 7px; } }

/* ---------- Buttons, pills, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text-muted); border-width: 1.5px; }
.btn-ghost:hover { color: var(--text); border-color: var(--text); background: var(--surface); }
.btn-sm { padding: 7px 11px; font-size: .9rem; }
.btn-icon { padding: 7px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
ul.pills { list-style: none; margin: 0; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; text-decoration: none; background: var(--surface); color: var(--text); }
.pill:hover, .pill[aria-current] { border-color: var(--text); background: var(--text); color: var(--bg); }
.code-badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none; color: var(--badge-fg); background: var(--badge-bg); white-space: nowrap; }
.code-badge:hover { background: var(--accent); color: #FFFFFF; }
.code-badge-lg { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); padding: 6px 18px; vertical-align: middle; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-3); color: var(--text-muted); white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.official { background: var(--accent-soft); color: var(--accent-hi); }
.status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.warn { background: var(--warn-bg); color: var(--warn); }
a.status-pill { text-decoration: none; }
a.status-pill:hover { text-decoration: underline; }
:root[data-theme="dark"] .status-pill.official, :root[data-theme="contrast"] .status-pill.official { color: var(--accent); }

/* ---------- Page header, breadcrumbs ---------- */
.breadcrumbs { font-size: .9rem; color: var(--text-faint); margin-bottom: var(--space-3); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; } .breadcrumbs a:hover { color: var(--accent-hi); }
.breadcrumbs span[aria-current] { color: var(--text); }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; padding-bottom: var(--space-3); margin-bottom: var(--space-4); }
.page-title-main { max-width: 820px; }
.page-title h1 .mono { letter-spacing: -.01em; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.byline { margin-top: 10px; }

/* ---------- Sections, panels, cards ---------- */
.section { margin: var(--space-5) 0; }
.section:first-child { margin-top: var(--space-4); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.panel { border-top: 2px solid var(--text); padding: 20px 0 0; margin: var(--space-5) 0; }
.panel h2 { margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: var(--space-5); row-gap: 0; border-top: var(--rule); }
.card { display: flex; gap: 16px; padding: 18px 0; border-bottom: var(--rule-soft); text-decoration: none; color: inherit; }
.card:hover .card-title { color: var(--accent-hi); }
.card-art { flex: 0 0 48px; height: 48px; color: var(--text-muted); background: var(--surface-2); border-radius: var(--radius); display: grid; place-items: center; } .card-art svg { width: 36px; height: 36px; }
.band-paper2 .card-art { background: var(--surface); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-body .eyebrow { margin: 0; font-size: .72rem; }
.card-body .eyebrow::before { display: none; }
.card-title { font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; color: var(--text); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text); }
.card-meta span { font-family: var(--font-mono); font-size: var(--t-small); font-weight: 500; }
.card-foot { font-size: var(--t-micro); margin-top: auto; padding-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--space-4); border-top: var(--rule); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-bottom: var(--rule-soft); text-decoration: none; color: inherit; }
.tile:hover b { color: var(--accent-hi); }
.tile svg { width: 56px; height: 56px; color: var(--text); }
.tile b { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.tile .faint { font-size: .85rem; }
.brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: var(--space-5); row-gap: 0; border-top: var(--rule); }
.brand-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: var(--rule-soft); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand-list a:hover { color: var(--accent-hi); }
.brand-list .faint { font-weight: 400; font-family: var(--font-mono); font-size: .74rem; white-space: nowrap; }
.brand-list .faint::after { content: "\203A"; margin-left: 10px; color: var(--accent); font-family: var(--font-ui); font-size: 1rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: var(--rule); border-radius: var(--radius); overflow: hidden; margin: var(--space-4) 0 0; }
.stat { padding: 22px 24px; box-shadow: inset -1px -1px 0 var(--line-soft); }
.stat b { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); }

/* ---------- Direct answer, key facts, datasheet ---------- */
.answer { position: relative; padding: 2px 0 2px 24px; margin: 0; border-left: 4px solid var(--accent); font-size: var(--t-lede); line-height: 1.6; max-width: 70ch; }
.answer-band { padding-top: var(--space-4); padding-bottom: var(--space-4); margin-bottom: var(--space-4); }
.answer-band .answer .eyebrow { color: var(--text); }
.answer-row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-4); align-items: center; }
@media (max-width: 900px) { .answer-row { grid-template-columns: 1fr; } }
.answer p { margin: 0; }
.answer .eyebrow { margin-bottom: 8px; }
.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-5); align-items: start; }
.layout-split > * { min-width: 0; }
.detail-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
@media (max-width: 1100px) { .layout-split { grid-template-columns: minmax(0, 1fr); } .detail-aside { position: static; order: -1; } }
.kv { margin: 0; display: grid; grid-template-columns: minmax(96px, max-content) 1fr; gap: 10px 20px; font-size: .95rem; }
.kv dt { color: var(--text-muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: var(--t-micro); padding-top: 3px; }
.kv dd { margin: 0; font-weight: 600; color: var(--text); }
.kv dd.mono { font-weight: 500; }
.key-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow-wrap: anywhere; }
.key-facts h2 { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; color: var(--text-muted); font-weight: 600; }
.key-facts + .key-facts { margin-top: -8px; }
.datasheet { width: 100%; border-collapse: collapse; font-size: .95rem; }
.datasheet th, .datasheet td { text-align: left; padding: 11px 12px; border-bottom: var(--rule-soft); vertical-align: top; }
.datasheet thead th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: var(--t-micro); color: var(--text-muted); border-bottom: 2px solid var(--text); }
.datasheet th.label, .datasheet td.label { color: var(--text-muted); width: 42%; font-weight: 400; }
.datasheet td.value { font-weight: 600; color: var(--text); }
.datasheet td.value.long { font-family: var(--font-ui); font-weight: 400; color: var(--text-prose); }
.datasheet td.src { text-align: right; white-space: nowrap; }
.datasheet td.src a { color: var(--text-faint); text-decoration: none; font-size: var(--t-micro); } .datasheet td.src a:hover { color: var(--accent-hi); }
.datasheet tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.datasheet .num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; position: relative; }
.spec-group { margin: var(--space-4) 0; }
.spec-group h3 { font-family: var(--font-display); font-size: var(--t-small); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.spec-group h3::after { content: ""; flex: 1; border-top: var(--rule); }
.provenance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-faint); margin: 10px 0 0; }
.provenance svg { width: 1em; height: 1em; }
.provenance a { color: var(--text-muted); }
.safety { display: flex; gap: 14px; padding: 14px 18px 14px 20px; border-left: 4px solid var(--warn); background: var(--warn-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.safety svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--warn); margin-top: 2px; }
.safety strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.safety p { margin: 0; font-size: .95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 12px 0; }
.steps li { position: relative; padding-left: 40px; margin-bottom: 10px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 1.5px solid var(--text); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .85rem; font-weight: 600; }
.prose { max-width: 72ch; color: var(--text-prose); line-height: 1.6; }
.prose h2 { margin: 32px 0 10px; color: var(--text); } .prose h3 { margin: 24px 0 8px; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; } .prose li { margin-bottom: 6px; }
.prose blockquote { margin: 16px 0; padding: 10px 18px; border-left: 3px solid var(--line); color: var(--text-muted); font-style: italic; }
.quote { margin: 12px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--text-prose); }
.quote cite { display: block; font-style: normal; font-size: .82rem; color: var(--text-faint); margin-top: 6px; }
.notice { padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--text-muted); font-size: .9rem; }

/* ---------- Lists: codes, manuals, applies-to ---------- */
.code-table td:first-child { white-space: nowrap; width: 1%; }
.code-table .code-meaning { color: var(--text-prose); }
.manual-list { list-style: none; padding: 0; margin: 0; border-top: var(--rule); }
.manual-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: var(--rule-soft); }
.manual-list svg { width: 30px; height: 30px; color: var(--accent); }
.manual-list b { display: block; font-size: 1.02rem; }
.manual-list .meta { font-size: .85rem; color: var(--text-faint); font-family: var(--font-mono); }
.manual-list .btn { white-space: nowrap; }
@media (max-width: 600px) { .manual-list li { grid-template-columns: 1fr; } .manual-list svg { display: none; } }
.applies { columns: 2; column-gap: 24px; list-style: none; padding: 0; margin: 10px 0; }
.applies li { break-inside: avoid; padding: 6px 0; border-bottom: var(--rule-soft); }
.applies a { text-decoration: none; font-weight: 600; } .applies a:hover { color: var(--accent-hi); }
@media (max-width: 600px) { .applies { columns: 1; } }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: var(--space-5); row-gap: 0; border-top: var(--rule); }
.related-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: var(--rule-soft); text-decoration: none; }
.related-item:hover .related-title { color: var(--accent-hi); }
.related-title { font-weight: 700; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.faq details { border-top: var(--rule-soft); padding: 12px 0; }
.faq details:last-child { border-bottom: var(--rule-soft); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 10px 0 0; color: var(--text-prose); }
.sources ul { padding-left: 20px; margin: 8px 0; } .sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.alpha a { font-family: var(--font-mono); padding: 4px 8px; border: var(--rule); border-radius: var(--radius-sm); text-decoration: none; font-size: .9rem; }
.alpha a:hover { border-color: var(--text); }
.empty { text-align: left; padding: 24px 0; border-top: var(--rule); border-bottom: var(--rule-soft); color: var(--text-muted); }
.empty svg { width: 48px; height: 48px; margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 28px 0 0; }

/* ---------- Search ---------- */
.search { position: relative; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--radius-sm); padding: 4px 4px 4px 12px; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field svg { width: 20px; height: 20px; color: var(--text-faint); flex: none; }
.search-field input { flex: 1; border: 0; background: transparent; font: inherit; font-family: var(--font-mono); font-size: 1rem; color: var(--text); min-width: 0; padding: 8px 4px; outline: 0; text-transform: uppercase; }
.search-field input::placeholder { text-transform: none; font-family: var(--font-ui); color: var(--text-faint); }
.search-hero .search-field { padding: 8px 8px 8px 18px; }
.search-hero .search-field input { font-size: 1.25rem; padding: 10px 6px; }
.search-hero .search-field svg { width: 26px; height: 26px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: var(--rule); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; max-height: 70vh; overflow: auto; }
.suggest-group { padding: 8px 0 4px; }
.suggest-group + .suggest-group { border-top: var(--rule-soft); }
.suggest-label { display: block; padding: 2px 14px 6px; font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.suggest a { display: flex; justify-content: space-between; gap: 14px; padding: 8px 14px; text-decoration: none; }
.suggest a b { font-family: var(--font-mono); font-weight: 600; }
.suggest a span { color: var(--text-faint); font-size: .88rem; text-align: right; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--accent-soft); }
.suggest-foot { display: block; padding: 10px 14px; border-top: var(--rule); font-size: .9rem; color: var(--text-muted); text-decoration: none; }
.search-hero-wrap { padding: 0 0 var(--space-3); max-width: 820px; }
.search-hero-wrap h1 { margin-bottom: 14px; }
.search-examples { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: .9rem; color: var(--text-faint); }
.answer-band .search-hero-wrap { max-width: 880px; }
.answer-band .alpha { margin-bottom: 14px; }
.search-examples a { font-family: var(--font-mono); text-decoration: none; color: var(--text-muted); border-bottom: 1px dashed var(--line); }
.facets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.facets select, .facet-input { font: inherit; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.facet-input { width: 170px; text-transform: uppercase; } .facet-input::placeholder { text-transform: none; font-family: var(--font-ui); }
a.term { text-decoration: none; color: inherit; display: inline-block; padding: 5px 0; margin: -5px 0; }  /* a 24px tap target without changing the row height */ a.term:hover { color: var(--accent-hi); text-decoration: underline; }
.results { list-style: none; padding: 0; margin: 0; }
.results { border-top: var(--rule); }
.results li a { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: var(--rule-soft); text-decoration: none; align-items: baseline; }
.results li a:hover b { color: var(--accent-hi); }
.results .kind { font-family: var(--font-display); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.results b { font-weight: 700; font-size: 1.05rem; display: block; }
/* Model numbers and codes are identifiers, set in mono; problems, brands and types are words. */
.results li[data-kind="model"] b, .results li[data-kind="code"] b { font-family: var(--font-mono); font-weight: 600; }
.results span.sub { color: var(--text-muted); font-size: .92rem; }
@media (max-width: 600px) { .results li a { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Compare ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 10px; border-bottom: var(--rule-soft); text-align: left; vertical-align: top; }
.compare-table thead th { position: sticky; top: 64px; background: var(--bg); border-bottom: 2px solid var(--text); z-index: 2; }
.compare-table th a { font-family: var(--font-mono); text-decoration: none; }
.compare-table td.value { font-family: var(--font-mono); font-weight: 500; }
.compare-table td.label { color: var(--text-prose); font-weight: 400; width: 26%; }
.compare-table tr:hover td { background: var(--surface-2); }
.compare-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0; }

/* ---------- Home ---------- */
.hero { padding-top: var(--space-5); padding-bottom: var(--space-4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.hero-copy > * { max-width: 680px; }
/* The rating plate: a drawing of the sticker people have to find, with the two lines that matter called out. */
.plate-figure { margin: 0; justify-self: end; width: min(100%, 400px); }
.plate { position: relative; padding: 26px 28px 22px; background: var(--bg); color: var(--text); border: 2px solid var(--on-ink-muted);
  border-radius: var(--radius); font-family: var(--font-mono); font-size: var(--t-small); transform: rotate(-1.5deg); box-shadow: var(--shadow); }
.plate-screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-faint); }
.plate-screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 3px; border-top: 1.5px solid var(--text-faint); transform: rotate(35deg); }
.plate-screw:nth-child(1) { top: 9px; left: 9px; } .plate-screw:nth-child(2) { top: 9px; right: 9px; }
.plate-screw:nth-child(3) { bottom: 9px; left: 9px; } .plate-screw:nth-child(4) { bottom: 9px; right: 9px; }
.plate-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 7px 0; border-bottom: var(--rule-soft); }
.plate-k { flex: none; width: 58px; font-family: var(--font-display); font-weight: 600; font-size: var(--t-small); letter-spacing: .04em; color: var(--text-muted); }
.plate-v { font-weight: 600; letter-spacing: .04em; }
.plate-bar { height: 9px; border-radius: 2px; background: var(--line-soft); }
.plate-hit .plate-v { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
.plate-call { margin-left: auto; padding-left: 12px; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: var(--t-micro);
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.plate-call::before { content: "\2190\00a0"; }
.plate-code { height: 26px; margin-top: 14px; width: 62%; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 13px); opacity: .75; }
.plate-figure figcaption { margin-top: 18px; font-size: var(--t-small); color: var(--on-ink-muted); }
.plate-figure figcaption a { color: var(--on-ink); }
/* The index in figures, set like a datasheet header under the hero. */
.hero-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: var(--space-5) 0 0; border-top: 1px solid var(--on-ink-muted); }
.hero-stats div { padding: 14px 16px 0 0; border-right: 1px solid color-mix(in srgb, var(--on-ink-muted) 40%, transparent); }
.hero-stats div + div { padding-left: 16px; } .hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font-family: var(--font-display); font-weight: 600; font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.hero-stats dd { margin: 4px 0 0; font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.15rem, .9rem + 1vw, 1.7rem); color: var(--on-ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .hero { padding-top: var(--space-4); }
  .plate-figure { justify-self: start; width: min(100%, 360px); }
  .plate { transform: none; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .hero-stats div:nth-child(3) { border-right: 0; } .hero-stats div:nth-child(4) { padding-left: 0; }
}
@media (max-width: 480px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-stats div:nth-child(3) { border-right: 1px solid color-mix(in srgb, var(--on-ink-muted) 40%, transparent); } .hero-stats div:nth-child(odd) { padding-left: 0; } .hero-stats div:nth-child(even) { border-right: 0; } }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: .98; letter-spacing: -.015em; color: var(--on-ink); }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .eyebrow { color: var(--on-ink-muted); } .hero .eyebrow::before { background: var(--accent-ink); }
.hero .lede { font-size: var(--t-lede); margin-top: 18px; color: var(--on-ink-muted); }
.hero-search { margin-top: var(--space-4); }
.hero .search-field { border-color: transparent; }
.hero .search-examples { color: var(--on-ink-muted); } .hero .search-examples a { color: var(--on-ink); border-bottom-color: var(--on-ink-muted); }
main.home { padding-top: 0; }
.band + .band-paper2, .band-paper2 + .band-paper2 { margin-top: 0; }
.reveal > * { animation: rise .4s cubic-bezier(.2, .7, .2, 1) both; }
.reveal > *:nth-child(2) { animation-delay: .05s; } .reveal > *:nth-child(3) { animation-delay: .1s; } .reveal > *:nth-child(4) { animation-delay: .15s; } .reveal > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal > * { animation: none; } .card, .tile { transition: none; } }
.home-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.home-how article { padding: 16px 0 0; border-top: 2px solid var(--text); }
.home-how article b { display: block; font-family: var(--font-mono); font-size: var(--t-micro); color: var(--accent); margin-bottom: 6px; letter-spacing: .05em; }
.home-how article h3 { margin-bottom: 6px; } .home-how p { margin: 0; color: var(--text-prose); font-size: .95rem; }

/* ---------- Forms ---------- */
.form-layout { display: flex; justify-content: center; padding: 20px 0; }
.form-card, .auth-card { width: 100%; max-width: 520px; padding: 20px 0; border-top: 2px solid var(--text); }
.form-intro { color: var(--text-muted); margin: 8px 0 18px; } .form-after { margin-top: 18px; font-size: .95rem; color: var(--text-muted); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 20px 0; }
.auth-aside { padding: 28px; border-left: 2px solid var(--accent); }
.auth-aside h2 { margin: 6px 0 14px; }
.rubric-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-prose); }
.rubric-list b { color: var(--accent-hi); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin-right: 6px; }
@media (max-width: 800px) { .auth { grid-template-columns: 1fr; } .auth-aside { border-left: 0; border-top: 2px solid var(--accent); padding: 20px 0; } }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field label.switch { display: flex; margin-bottom: 0; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.helptext { font-size: .85rem; color: var(--text-faint); margin-top: 4px; }
.errorlist { color: var(--danger); font-size: .9rem; margin: 6px 0 0; padding-left: 18px; }
.form-errors { background: var(--danger-bg); border: 1px solid var(--danger); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track { flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; margin-top: 2px; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--accent); } .switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-label { font-weight: 700; }
.switch-text { display: grid; gap: 2px; } .switch-text .helptext { margin: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.radio-card { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
.input-reveal { position: relative; } .input-reveal .reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font: inherit; font-size: .85rem; color: var(--text-muted); cursor: pointer; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.messages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.messages li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.messages li.error { background: var(--danger-bg); border-color: var(--danger); }
.messages svg { color: var(--ok); } .messages li.error svg { color: var(--danger); }

/* ---------- House pages (about, terms, privacy) ---------- */
.house { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.house-contents { position: sticky; top: 84px; font-size: .9rem; }
.house-contents ol { list-style: none; padding: 0; margin: 0; border-left: var(--rule); }
.house-contents li a { display: block; padding: 5px 12px; color: var(--text-muted); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.house-contents li a:hover, .house-contents li a[aria-current] { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 800px) { .house { grid-template-columns: 1fr; } .house-contents { position: static; } }
.house-facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.house-facts li { padding: 14px 0 0; border-top: 2px solid var(--text); display: grid; gap: 2px; }
.house-facts .hf-n { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1; }
.house-facts strong { font-family: var(--font-display); font-size: 1.1rem; }
.house-facts span:last-child { color: var(--text-muted); font-size: .9rem; }
.house-rule { padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); }
.house-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 700px) { .house-cols { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 16px 0; border-top: 2px solid var(--text); border-bottom: var(--rule-soft); margin-bottom: 24px; }
.contact-email { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; text-decoration: none; display: block; }
.site-page-updated { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); border-top: 3px solid var(--accent); padding: var(--space-5) 0 var(--space-4); margin-top: auto; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-5); }
.footer-brand .footer-blurb { color: var(--on-ink-muted); max-width: 46ch; margin: 14px 0; }
.footer-col h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: var(--t-micro); color: var(--on-ink-muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-col a { text-decoration: none; color: var(--on-ink); } .footer-col a:hover { color: var(--accent-ink); }
.footer-social { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--on-ink-muted); border-radius: 50%; color: var(--on-ink); }
.footer-base { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-top: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); margin-top: 30px; padding-top: 18px; flex-wrap: wrap; }
.footer-legal { font-size: var(--t-small); color: var(--on-ink-muted); max-width: 78ch; }
.footer-legal p { margin: 0 0 6px; } .footer-legal a { margin-left: 10px; color: var(--on-ink); }
.footer-copy { font-weight: 700; color: var(--on-ink); }
.theme-switch { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--on-ink-muted); }
.theme-switch select { font: inherit; padding: 6px 8px; border: 1px solid var(--on-ink-muted); border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); }
.site-footer .btn-ghost { color: var(--on-ink); border-color: var(--on-ink-muted); } .site-footer .btn-ghost:hover { background: transparent; border-color: var(--on-ink); }
/* Appliance type index: a full-width band under the columns, read like a manual's index. Name, then the published model count in mono. */
.footer-index { display: grid; grid-template-columns: 11rem 1fr; gap: 10px 32px; align-items: start; border-top: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); margin-top: 30px; padding-top: 18px; }
.footer-index h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: var(--t-micro); color: var(--on-ink-muted); margin: 0; line-height: 1.5; }
.footer-index h2 span { display: block; font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 4px; }
.footer-index ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0 24px; }
.footer-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--on-ink); border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 10%, transparent); }
.footer-index a:hover { color: var(--accent-ink); }
.footer-index data { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.footer-index a:hover data { color: var(--accent-ink); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-brand { grid-column: 1 / -1; }
  .footer-index { grid-template-columns: 1fr; gap: 10px; } .footer-index ul { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; background: var(--surface); border: var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .92rem; }
.cookie-bar-text { flex: 1 1 36ch; min-width: 0; } .cookie-bar p { margin: 0; max-width: 78ch; color: var(--text-prose); } .cookie-bar p b { color: var(--text); }
.cookie-bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.cookie-bar-choose { font-weight: 700; padding: 0 6px; white-space: nowrap; }
.switch.is-fixed { cursor: default; } .switch.is-fixed .switch-track { background: var(--text-muted); } .switch.is-fixed .switch-track::after { transform: translateX(18px); }
@media (max-width: 600px) { .cookie-bar { left: 8px; right: 8px; bottom: 8px; } .cookie-bar-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ---------- Density ---------- */
[data-density="compact"] { --gutter: 12px; }
[data-density="compact"] .datasheet th, [data-density="compact"] .datasheet td { padding: 5px 8px; }
[data-density="compact"] .card { padding: 10px; } [data-density="compact"] .section { margin: 24px 0; }

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .cookie-bar, .detail-aside .btn, .parts, .search { display: none !important; } body { background: #fff; } body::after { display: none; } .answer { border-left-color: #000; } }

/* ---------- Find the model number ---------- */
.find-model { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.find-model-art { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.find-model-art svg { width: 100%; height: auto; display: block; }
.find-model-text h2 { margin-bottom: 10px; }
.find-model-places { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.find-model-places li { padding-left: 18px; position: relative; color: var(--text-prose); }
.find-model-places li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--accent); }
.find-model-places b { color: var(--text); }
@media (max-width: 760px) { .find-model { grid-template-columns: 1fr; } .find-model-art { max-width: 360px; } }

.problems-table th.label a { text-decoration: none; } .problems-table th.label a:hover { color: var(--accent-hi); }
.problems-table .chip-list { margin: 0; }

.glance th.label { width: auto; white-space: nowrap; }
.glance thead th { white-space: nowrap; }
.glance tr.is-own td, .glance tr.is-own th { font-weight: 700; } .glance tr.is-own th .faint { font-weight: 400; }

.notes { margin: var(--space-3) 0; border-top: var(--rule); border-bottom: var(--rule); }
.notes summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
.notes summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); } .notes[open] summary::after { content: "\2013"; }
.note { border-top: var(--rule-soft); padding: 12px 0; } .note b { display: block; margin-bottom: 4px; } .note p { margin: 0; color: var(--text-prose); font-size: .95rem; }

/* ---------- Printed-reference tables and rows ---------- */
.brands-table th.label { width: auto; }
.brands-table th.label a { text-decoration: none; } .brands-table th.label a:hover { color: var(--accent-hi); }
.brands-table .num { font-family: var(--font-mono); }
.card-sub { color: var(--text-muted); font-size: .92rem; }
.steps-wide li { max-width: 72ch; margin-bottom: 14px; color: var(--text-prose); }
.steps-wide li b { color: var(--text); }
.code-table-full td.code-meaning { color: var(--text-prose); line-height: 1.5; }

/* A section heading already draws its rule: lists directly under it start without a second one. */
.section-head + .grid, .section-head + .brand-list, .section-head + .tiles, .section-head + .related-list, .section-head + .results, .section-head + .manual-list { border-top: 0; }

/* ---------- Data graphics ---------- */
.glyphs { list-style: none; padding: 0; margin: var(--space-3) 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.glyphs li { display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.glyphs svg { width: 30px; height: 30px; grid-row: 1 / 3; color: var(--accent); }
.glyphs b { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; line-height: 1.1; color: var(--text); }
.glyphs span { font-size: .78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); }
.escale { margin: 0 0 6px; }
.escale svg { width: 100%; max-width: 320px; height: auto; display: block; overflow: visible; }
.escale .erow polygon { opacity: 1; }
.escale .erow.is-on polygon { stroke: var(--text); stroke-width: 2; paint-order: stroke; }
.escale .eA { fill: var(--e-a); } .escale .eB { fill: var(--e-b); } .escale .eC { fill: var(--e-c); } .escale .eD { fill: var(--e-d); }
.escale .eE { fill: var(--e-e); } .escale .eF { fill: var(--e-f); } .escale .eG { fill: var(--e-g); }
.escale .el { font-family: var(--font-display); font-weight: 700; font-size: 14px; fill: var(--e-ink); }
.escale .epointer polygon { fill: var(--text); }
.escale .epointer text { font-family: var(--font-display); font-weight: 700; font-size: 17px; fill: var(--bg); }
.escale-note { margin: 10px 0 0; }
.product-photo, .product-art { margin: 0; }
.product-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); background: var(--photo-bg); }
.product-photo figcaption, .product-art figcaption { margin-top: 6px; }
.product-art svg { width: 140px; height: 140px; color: var(--text-faint); display: block; }
.display-panel { margin: 0; }
.display-screen { background: #101214; border-radius: 6px; padding: 18px 20px; box-shadow: inset 0 2px 8px rgba(0,0,0,.6), 0 0 0 4px #2A2D31; }
.display-screen .ds-read { display: block; font-family: var(--font-mono); font-weight: 600; font-size: clamp(2rem, 1.4rem + 1.5vw, 2.6rem); letter-spacing: .12em; color: #FF7A3D; text-shadow: 0 0 12px rgba(255, 122, 61, .55); white-space: nowrap; }
.display-panel figcaption { font-size: .78rem; color: var(--text-faint); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); }

/* ---------- Manufacturer videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4) var(--space-4); }
.video { margin: 0; }
.video-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: #000; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s, transform .3s; }
.video-poster:hover img { opacity: 1; transform: scale(1.03); }
.video-poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: transform .15s; }
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-poster:hover .video-play { transform: scale(1.08); }
.video-dur { position: absolute; right: 8px; bottom: 8px; font-family: var(--font-mono); font-size: .75rem; padding: 2px 6px; background: rgba(0,0,0,.75); color: #fff; border-radius: 3px; }
.illustration { margin: 0 0 var(--space-3); max-width: 440px; }
.illustration > a { display: block; width: fit-content; }
.illustration img { display: block; max-width: 100%; width: auto; height: auto; max-height: 360px; border-radius: var(--radius); border: var(--rule); background: var(--photo-bg); }
.illustration figcaption { margin-top: 6px; font-size: var(--t-micro); line-height: 1.45; color: var(--text-faint); }
.illustration figcaption b { color: var(--text-muted); font-weight: 600; }
/* Beside the steps on wide screens: an illustrative photo supports the steps, it should not push them below the fold. */
@media (min-width: 760px) {
  .illustration { float: right; width: 34%; max-width: 260px; margin: 4px 0 var(--space-2) var(--space-3); }
  .illustration img { max-height: 300px; }
  #what-to-do::after { content: ""; display: block; clear: both; }
}
.code-manuals td:last-child { white-space: nowrap; }
.video figcaption { margin-top: 8px; display: grid; gap: 2px; }
.video figcaption b { font-size: .95rem; line-height: 1.35; }
.video figcaption .faint { font-size: .8rem; }
.video-note { margin-top: var(--space-3); font-size: .8rem; }
.section-intro { max-width: 64ch; margin: 0 0 var(--space-3); color: var(--text-muted); }

/* ---------- Bands ---------- */
/* Full-width tonal bands give the page its rhythm: sections alternate paper and a deeper paper tint, the hero
   sits on ink. A band bleeds to the viewport edges and pads back to the content column. */
.band { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-top: var(--space-5); padding-bottom: var(--space-5); margin-top: var(--space-5); margin-bottom: var(--space-5); }
.band-paper2 { background: var(--bg-2); }
.band-ink { background: var(--ink); color: var(--on-ink); margin-top: 0; }
.band-ink a { color: var(--on-ink); } .band-ink a:hover { color: var(--accent-ink); }
.band > .section:first-child, .band > .numbered > .section:first-child, .band > .tasks:first-child { margin-top: 0; }
.band > .section:last-child, .band > .numbered > .section:last-child, .band > .tasks:last-child { margin-bottom: 0; }
.band + .band, .band + .numbered > .band:first-child { margin-top: 0; }
.band:has(+ .band), .band:has(+ .numbered > .band:first-child) { margin-bottom: 0; }
.numbered > .band:first-child { margin-top: 0; }
.band-ink { margin-bottom: 0; }
.band .section-head + .grid, .band .section-head + .brand-list { border-top: 0; }
.band-paper2 .task, .band-paper2 .key-facts, .band-paper2 .find-model-art { border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.band-paper2 .pill, .band-paper2 .search-field, .band-paper2 .task .mini input { background: var(--surface); }
.band-paper2 .task .mini input { border-color: var(--line); }
.band-paper2 .search-field { border-color: transparent; }
/* The page's bottom space belongs to its last block, so a band that ends the page meets the footer. */
main.wrap { padding-bottom: 0; }
main > :last-child, main > .numbered:last-child > :last-child { margin-bottom: var(--space-6); }
main > .band:last-child, main > .numbered:last-child, main > .numbered:last-child > .band:last-child { margin-bottom: 0; }

/* ---------- Brand dossier ---------- */
.dossier-stats { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 2px solid var(--text); border-bottom: var(--rule); }
.dossier-stats li { display: grid; gap: 2px; padding: 18px 20px 16px 0; border-right: var(--rule-soft); margin-right: 20px; }
.dossier-stats li:last-child { border-right: 0; margin-right: 0; }
.dossier-stats b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.dossier-stats span { font-family: var(--font-display); font-weight: 600; font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.dossier-stats a { font-size: var(--t-small); color: var(--accent-hi); text-decoration: none; margin-top: 4px; }
.dossier-stats a::after { content: " \203A"; }
.dossier-stats a:hover { text-decoration: underline; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.type-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 18px; row-gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.type-card > svg { grid-row: 1 / 4; width: 56px; height: 56px; color: var(--text); }
.type-card h2 { font-size: var(--t-h3); }
.type-card h2 a { text-decoration: none; } .type-card h2 a:hover { color: var(--accent-hi); }
.type-card dl { margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.type-card dl div { display: grid; gap: 1px; }
.type-card dt { font-family: var(--font-display); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.type-card dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.type-card-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: var(--t-small); }
.type-card-links a:not(.code-badge):not(.btn) { color: var(--accent-hi); font-weight: 700; text-decoration: none; }
.type-card-links a:not(.code-badge):not(.btn):hover { text-decoration: underline; }
.type-card-links .code-badge { font-size: .85rem; padding: 3px 8px; }
.all-links { margin-top: var(--space-3); gap: 10px; }
.brand-find { max-width: 720px; }
.brand-find label { display: block; margin-bottom: 10px; color: var(--text-muted); } .brand-find label b { color: var(--text); }
.brand-find .search-field { padding: 6px 6px 6px 16px; }
.brand-find .search-field input { font-size: 1.1rem; padding: 8px 6px; }
.brand-find .search-field svg { width: 22px; height: 22px; }
.brand-find .faint { margin: 10px 0 0; }
.sources-line { margin: var(--space-4) 0 0; max-width: 78ch; }
@media (max-width: 700px) { .dossier-stats { grid-template-columns: repeat(2, 1fr); } .dossier-stats li { border-right: 0; margin-right: 0; border-bottom: var(--rule-soft); } .type-card { grid-template-columns: 44px 1fr; } .type-card > svg { width: 44px; height: 44px; } }

/* ---------- Guides ---------- */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--text); }
.guide-list li a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: var(--rule-soft); text-decoration: none; }
.guide-list li a:hover b { color: var(--accent-hi); }
.guide-list .guide-date { font-family: var(--font-mono); font-size: var(--t-small); color: var(--text-faint); grid-row: 1 / 3; padding-top: 3px; }
.guide-list b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.01em; }
.guide-list .guide-desc { color: var(--text-muted); font-size: var(--t-small); max-width: 70ch; }
@media (max-width: 600px) { .guide-list li a { grid-template-columns: 1fr; } .guide-list .guide-date { grid-row: auto; } }
/* Guides index: the newest guide with its direct answer, then a contents page grouped by appliance. */
.guide-lead { border-top: 2px solid var(--text); padding: var(--space-4) 0 var(--space-5); margin-bottom: var(--space-5); border-bottom: var(--rule); max-width: 78ch; }
.guide-lead-k { display: flex; gap: 12px; align-items: baseline; margin: 0 0 8px; font-size: var(--t-small); color: var(--text-faint); }
.guide-lead-k span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.guide-lead-k time { font-family: var(--font-mono); }
.guide-lead h2 { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.02; margin: 0 0 12px; }
.guide-lead h2 a { color: inherit; text-decoration: none; }
.guide-lead h2 a:hover { color: var(--accent-hi); }
.guide-lead-answer { font-size: var(--t-lede); color: var(--text-prose); margin: 0 0 var(--space-3); }
.guide-lead-meta { margin-left: 16px; font-size: var(--t-small); color: var(--text-faint); }
.guide-contents { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.guide-rail { position: sticky; top: 88px; }
.guide-rail-k { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: var(--t-micro); color: var(--text-faint); margin: 0 0 8px; }
.guide-rail ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.guide-rail a { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: var(--rule-soft); text-decoration: none; color: var(--text); font-weight: 600; }
.guide-rail a span, .guide-rail a em { font-family: var(--font-mono); font-style: normal; font-weight: 400; font-size: var(--t-small); color: var(--text-faint); }
.guide-rail a:hover { color: var(--accent-hi); }
.guide-section + .guide-section { margin-top: var(--space-5); }
.guide-section h2 { display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-size: var(--t-h3); margin: 0 0 10px; scroll-margin-top: 88px; }
.guide-section h2 span { font-family: var(--font-mono); font-weight: 400; font-size: var(--t-small); color: var(--accent); }
@media (max-width: 900px) {
  .guide-contents { grid-template-columns: minmax(0, 1fr); }
  .guide-rail { position: static; }
  .guide-rail ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .guide-rail a { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; }
  .guide-rail a span { display: none; }
}
.guide-prose { max-width: 72ch; }
.guide-prose h2 { font-size: var(--t-h2); margin: var(--space-5) 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--text); }
.guide-prose h3 { margin: var(--space-4) 0 8px; }
.guide-prose p, .guide-prose li { color: var(--text); line-height: 1.6; }
.guide-prose table { margin: 16px 0; }
.guide-prose .guide-table th.num, .guide-prose .guide-table td.num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.guide-prose blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--warn); background: var(--warn-bg); color: var(--text); font-style: normal; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.guide-prose blockquote p { margin: 0; }
.toc { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--t-small); }
.toc a { color: var(--text); text-decoration: none; } .toc a:hover { color: var(--accent-hi); text-decoration: underline; }

/* Affiliate parts link beside a model in an error code's "applies to" list. */
.parts-link { font-size: var(--t-small, .85rem); white-space: nowrap; margin-left: 6px; }
.card-photo { background: var(--photo-bg); overflow: hidden; } .card-photo img { width: 100%; height: 100%; object-fit: contain; }
.card-photo .card-fallback { display: none; } .card-photo.is-broken { background: none; }
.card-photo.is-broken img { display: none; } .card-photo.is-broken .card-fallback { display: block; }

/* ---------- Model page header: a rating plate ----------
   Identity and actions left; the product on a white plate right (licensed photo, or the type's line drawing on a
   blueprint grid), the energy class as the label's arrow overhanging the plate; the headline figures stamped
   below as a strip with rivets, like the plate on the back of the machine. */
.model-hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 280px); grid-template-areas: "main plate" "strip strip";
  gap: var(--space-3) var(--space-4); align-items: center; margin-bottom: var(--space-4); }
.model-hero-main { grid-area: main; min-width: 0; }
.model-hero-main h1 { overflow-wrap: anywhere; }
.model-hero-main h1 .h1-kind { color: var(--text-muted); font-weight: 600; }
.model-hero-main .lede { margin: 10px 0 12px; }
.model-actions { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.model-plate { grid-area: plate; margin: 0; }
.model-plate-frame { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--photo-bg); border: var(--rule);
  display: grid; place-items: center; padding: 22px; isolation: isolate; }
.model-plate-frame img { width: 100%; height: 100%; object-fit: contain; }
/* blueprint registration marks in the four corners */
.model-plate-frame::before { content: ""; position: absolute; inset: 9px; pointer-events: none; z-index: 1;
  --m: color-mix(in srgb, var(--accent) 70%, transparent);
  background:
    linear-gradient(var(--m), var(--m)) top left / 14px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 14px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 14px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 14px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) bottom right / 1.5px 14px no-repeat; }
.model-plate:not(.has-photo) .model-plate-frame { background-color: var(--surface-2);
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; background-position: center; }
.model-plate-art { width: 66%; height: 66%; color: var(--text-muted); }
.model-plate figcaption { margin-top: 8px; font-size: .72rem; line-height: 1.45; color: var(--text-faint); }
.model-plate figcaption a { color: inherit; }
/* the energy class as the label's arrow, overhanging the plate */
.ebadge { position: absolute; left: -12px; bottom: 18px; z-index: 2; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px;
  padding: 7px 26px 7px 12px; color: var(--e-ink); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  box-shadow: var(--shadow); }
.ebadge-k { font-family: var(--font-display); font-weight: 600; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.ebadge b { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.ebadge-A, .earrow-A { background: var(--e-a); } .ebadge-B, .earrow-B { background: var(--e-b); } .ebadge-C, .earrow-C { background: var(--e-c); }
.ebadge-D, .earrow-D { background: var(--e-d); } .ebadge-E, .earrow-E { background: var(--e-e); } .ebadge-F, .earrow-F { background: var(--e-f); }
.ebadge-G, .earrow-G { background: var(--e-g); }
/* the stamped figures strip */
.rating-plate { grid-area: strip; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 2px solid var(--text); border-radius: var(--radius); position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 9px 9px, var(--line) 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--line) 2.5px, transparent 3.2px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--line) 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--line) 2.5px, transparent 3.2px),
    var(--surface); }
.rp-cell { padding: 16px 20px 14px 24px; border-left: var(--rule-soft); margin-left: -1px; min-width: 0; }
.rating-plate dt { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.rating-plate dt svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.rating-plate dd { margin: 6px 0 0; font-family: var(--font-mono); font-weight: 600; font-size: 1.3rem; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
.earrow { display: inline-block; padding: 2px 22px 2px 10px; color: var(--e-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
@media (max-width: 820px) {
  .model-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "plate" "strip"; }
  .rating-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-cell { padding: 14px 14px 12px 18px; border-top: var(--rule-soft); margin-top: -1px; }
  .rating-plate dd { font-size: 1.1rem; }
  .model-plate { max-width: 280px; }
  .ebadge { left: -6px; }
}
.ebadge-C, .ebadge-D, .earrow-C, .earrow-D { color: var(--e-ink-dark); }
.escale .erow-C .el, .escale .erow-D .el { fill: var(--e-ink-dark); }
/* Error code page: documented causes and the manufacturer's sources with page numbers. */
.causes { margin: 0; padding-left: 1.2em; } .causes li { margin: 6px 0; } .causes li::marker { color: var(--accent); }
.doc-sources { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.doc-sources li { display: flex; align-items: center; gap: 10px; } .doc-sources svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.detail-aside > .btn { white-space: normal; text-align: left; height: auto; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; }

/* Sizes page: dimension table, value distributions and the size finder. */
.size-table td.num, .size-table th.num, .size-results td.num, .size-results th.num { text-align: right; white-space: nowrap; }
.size-note { max-width: 78ch; margin-top: var(--space-2); font-size: var(--t-small); }
.dist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--space-3); }
.dist { margin: 0; background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: var(--space-2); min-width: 0; }
.dist figcaption { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: var(--t-small); font-weight: 600; display: flex; justify-content: space-between; gap: var(--space-1); margin-bottom: 10px; }
.dist figcaption .faint { text-transform: none; letter-spacing: 0; font-family: var(--font-ui); font-weight: 400; }
.dist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dist li { display: grid; grid-template-columns: minmax(0, 9ch) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: var(--t-small); }
.dist-v { white-space: nowrap; }
.dist-bar { height: 10px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--pct), var(--surface-3) var(--pct)); }
.dist-n { white-space: nowrap; text-align: right; }
.ebadge-mini { display: inline-block; min-width: 1.7em; padding: 1px 5px; border-radius: 2px; font-family: var(--font-display); font-weight: 700; text-align: center; color: var(--e-ink); clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%); padding-right: 9px; }
.ebadge-mini.e-a { background: var(--e-a); } .ebadge-mini.e-b { background: var(--e-b); } .ebadge-mini.e-c { background: var(--e-c); color: var(--e-ink-dark); }
.ebadge-mini.e-d { background: var(--e-d); color: var(--e-ink-dark); } .ebadge-mini.e-e { background: var(--e-e); } .ebadge-mini.e-f { background: var(--e-f); } .ebadge-mini.e-g { background: var(--e-g); }
.size-finder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: var(--space-2); align-items: end; }
.size-finder label { display: grid; gap: 4px; font-size: var(--t-micro); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); min-width: 0; }
.size-finder input, .size-finder select { width: 100%; min-width: 0; font-size: var(--t-body); text-transform: none; letter-spacing: 0; }
.unit-field { display: flex; align-items: center; gap: 6px; }
.size-finder-actions { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.size-results th[scope="row"] { font-weight: 400; }
.size-context { margin: 10px 0 0; font-size: var(--t-small); color: var(--text-muted); }
.size-lead { max-width: 72ch; }

/* Cite this page */
.cite-text { font-size: var(--text-sm, 0.875rem); overflow-wrap: anywhere; margin: 0 0 var(--space-3, 12px); }
.guide-callout { margin: var(--space-3, 12px) 0 0; font-weight: 600; }

/* =====================================================================================================
   THE DRAWING SET
   Pages read as sheets of a technical drawing: every page head is an ink drafting board with a blueprint
   grid, crop marks and a sheet label; panels are paper sheets with depth; section heads carry sheet numbers
   and a dimension line; the appliance read-outs behave like instruments. Texture lives only on ink and
   decoration, never behind reading text. Contrast theme and reduced motion turn the effects off.
   ===================================================================================================== */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Ink scope: anything inside .on-ink takes ink-side tokens, so components re-theme themselves ---------- */
.on-ink {
  color-scheme: dark;
  --text: var(--on-ink); --text-muted: var(--on-ink-muted);
  --text-faint: color-mix(in srgb, var(--on-ink-muted) 88%, var(--ink));
  --text-prose: var(--on-ink);
  --bg: var(--ink); --bg-2: color-mix(in srgb, var(--on-ink) 4%, var(--ink));
  --surface: color-mix(in srgb, var(--on-ink) 7%, var(--ink));
  --surface-2: color-mix(in srgb, var(--on-ink) 10%, var(--ink));
  --surface-3: color-mix(in srgb, var(--on-ink) 16%, var(--ink));
  --line: color-mix(in srgb, var(--on-ink) 24%, transparent); --line-soft: color-mix(in srgb, var(--on-ink) 12%, transparent);
  --rule: 1px solid var(--line); --rule-soft: 1px solid var(--line-soft);
  --accent: var(--accent-ink); --accent-hi: var(--accent-ink); --on-accent: var(--ink);
  --accent-soft: color-mix(in srgb, var(--accent-ink) 18%, transparent);
  --badge-bg: var(--on-ink); --badge-fg: var(--ink);
  --ok: color-mix(in srgb, var(--ok) 40%, var(--on-ink)); --warn: color-mix(in srgb, var(--warn) 55%, var(--on-ink));
  --ok-bg: color-mix(in srgb, var(--ok) 16%, transparent); --warn-bg: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--text);
}
.on-ink a:hover { color: var(--accent-ink); }

/* ---------- The drafting board: grid, light, grain, sheet frame ---------- */
.drafting { position: relative; isolation: isolate; overflow: clip;
  --grid-minor: color-mix(in srgb, var(--accent-ink) 7%, transparent);
  --grid-major: color-mix(in srgb, var(--accent-ink) 14%, transparent); }
.drafting::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 82% 30%, color-mix(in srgb, var(--accent-ink) 16%, transparent), transparent 70%),
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 62%);
          mask-image: linear-gradient(100deg, transparent 18%, #000 62%); }
.drafting::after { content: attr(data-sheet); position: absolute; inset: 14px; z-index: -1; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 12px 8px 0;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
  --m: color-mix(in srgb, var(--accent-ink) 55%, transparent);
  background:
    var(--grain) 0 0 / 160px 160px,
    linear-gradient(var(--m), var(--m)) top left / 18px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) top left / 1.5px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 18px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) top right / 1.5px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 18px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) bottom left / 1.5px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 18px 1.5px no-repeat, linear-gradient(var(--m), var(--m)) bottom right / 1.5px 18px no-repeat;
  background-blend-mode: soft-light, normal, normal, normal, normal, normal, normal, normal, normal;
  opacity: .9; }
@media (max-width: 700px) { .drafting::before { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%); mask-image: linear-gradient(180deg, transparent 30%, #000 100%); } .drafting::after { inset: 8px; } }

/* ---------- Page heads: every page opens on the board ---------- */
main.wrap:has(> .page-head:first-child) { padding-top: 0; }
.page-head { margin-top: 0; margin-bottom: 0; padding-top: var(--space-4); padding-bottom: var(--space-5); }
.page-head .page-title { margin-bottom: 0; padding-bottom: 0; }
.page-head .model-hero { margin-bottom: 0; }
.page-head h1 { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem); line-height: .98; letter-spacing: -.015em; }
.page-head .lede { color: var(--on-ink-muted); }
.page-head .breadcrumbs { font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: .04em; text-transform: uppercase; }
.page-head .breadcrumbs a { color: var(--on-ink-muted); }
.page-head .breadcrumbs span[aria-current] { color: var(--accent-ink); }
.page-head .page-actions .btn-ghost, .page-head .model-actions .btn-ghost { border-color: var(--line); }
.page-head .model-plate-frame { box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent-ink) 45%, transparent), 0 0 0 1px var(--line); }
.page-head + .band, .page-head + .numbered > .band:first-child, .page-head + .answer-band { margin-top: 0; }
.page-head + :not(.band) { margin-top: var(--space-4); }
.hero { padding-bottom: var(--space-5); }
.hero h1, .page-head h1 { text-shadow: 0 0 40px color-mix(in srgb, var(--accent-ink) 18%, transparent); }

/* ---------- Sheets of paper: panels have depth and a sheet stacked behind ---------- */
:root { --sheet-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 9%, transparent), 0 14px 32px -18px color-mix(in srgb, var(--ink) 40%, transparent);
  --sheet-stack: 5px 5px 0 -1px var(--bg-2), 5px 5px 0 0 var(--line); }
.task, .key-facts, .type-card, .dist, .find-model-art, .stat-row, .cookie-bar {
  box-shadow: var(--sheet-stack), var(--sheet-shadow); }
.band-paper2 .task, .band-paper2 .key-facts, .band-paper2 .type-card, .band-paper2 .dist { --sheet-stack: 5px 5px 0 -1px var(--bg), 5px 5px 0 0 var(--line); }
.task, .type-card { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.task:hover, .type-card:hover { transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 -1px var(--bg-2), 8px 8px 0 0 var(--accent), 0 22px 40px -20px color-mix(in srgb, var(--ink) 45%, transparent); }
.band-paper2 .task:hover { box-shadow: 8px 8px 0 -1px var(--bg), 8px 8px 0 0 var(--accent), 0 22px 40px -20px color-mix(in srgb, var(--ink) 45%, transparent); }
.task > svg { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, transparent); }
/* key facts: a spec sheet with a folded corner */
.key-facts { position: relative; border-top: 3px solid var(--accent); }
.key-facts::after { content: ""; position: absolute; top: -3px; right: -1px; width: 22px; height: 22px;
  background: linear-gradient(225deg, var(--bg) 50%, color-mix(in srgb, var(--line) 80%, var(--surface)) 50%);
  border-bottom-left-radius: 3px; box-shadow: -2px 2px 3px -1px color-mix(in srgb, var(--ink) 18%, transparent); }
.key-facts h2 { font-family: var(--font-mono); letter-spacing: .16em; color: var(--accent-hi); }
/* the direct answer: an index card with its tab out */
.answer-band .answer { background: var(--surface); padding: 30px 30px 26px 30px; border-left-width: 5px; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--sheet-stack), var(--sheet-shadow); --sheet-stack: 5px 5px 0 -1px var(--bg), 5px 5px 0 0 var(--line); max-width: none; margin-top: 10px; }
.answer-band .answer .eyebrow { position: absolute; top: -12px; left: 22px; margin: 0; padding: 4px 11px 3px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); letter-spacing: .18em; border-radius: 2px; box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 25%, transparent); }
.answer-band .answer .eyebrow::before { display: none; }

/* ---------- Section heads ---------- */
.section-head h2 { letter-spacing: -.012em; }
.home .section-head h2, .types-band .section-head h2, .listing .section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.on-ink .section-head { border-bottom-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); }

/* ---------- Bands: a ruler edge where paper meets deeper paper ---------- */
.band-paper2 { position: relative; }
.band-paper2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat,
              repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 60px) top / 100% 9px no-repeat; opacity: .8; }

/* ---------- Home: appliance types on the board ---------- */
.types-band { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.types-band .tiles { border-top: 0; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.types-band .tile { padding: 20px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(2px); transition: border-color .2s, transform .25s var(--ease-out), background .2s; }
.types-band .tile svg { color: var(--accent-ink); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent-ink) 35%, transparent)); }
.types-band .tile:hover { border-color: var(--accent-ink); transform: translateY(-3px); background: color-mix(in srgb, var(--accent-ink) 9%, var(--ink)); }
.types-band .tile:hover b { color: var(--accent-ink); }
.types-band .tile b { color: var(--on-ink); }

/* ---------- Hero instruments ---------- */
.hero-stats dd { font-variant-numeric: tabular-nums; color: var(--on-ink); text-shadow: 0 0 18px color-mix(in srgb, var(--accent-ink) 30%, transparent); }
.hero-stats { border-top-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.hero-stats div { position: relative; }
.hero-stats div::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 3px; background: var(--accent-ink); }
.hero-stats div + div::before { left: 16px; }
.plate { box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent-ink) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent-ink) 25%, transparent), var(--shadow); overflow: hidden; }
.plate-screw { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--surface) 90%, transparent), transparent 60%); }
.plate::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent) 70%, color-mix(in srgb, var(--accent) 35%, transparent) 98%, transparent); }

/* ---------- The appliance display: a lit read-out ---------- */
.display-screen { position: relative; overflow: hidden; padding: 26px 22px 18px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7), 0 0 0 4px #2A2D31, 0 0 0 5px rgba(255, 255, 255, .06), 0 26px 50px -24px rgba(255, 122, 61, .45); }
.display-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
              radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .07), transparent 60%); }
.display-screen .ds-read { position: relative; }
.display-screen .ds-read::before { content: attr(data-ghost); position: absolute; left: 0; top: 0; color: rgba(255, 122, 61, .09); text-shadow: none; }
.ds-label { position: absolute; top: 8px; left: 12px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 122, 61, .55); }
.ds-leds { position: absolute; top: 10px; right: 12px; display: flex; gap: 5px; }
.ds-leds i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 122, 61, .18); }
.ds-leds i:first-child { background: #FF7A3D; box-shadow: 0 0 6px #FF7A3D; }

/* ---------- Model spec strip: gauge cells with a tick ruler ---------- */
.rating-plate { box-shadow: var(--sheet-shadow); }
.rp-cell::before { content: ""; display: block; height: 7px; margin-bottom: 9px; opacity: .9;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 7px) bottom / 100% 4px no-repeat,
              repeating-linear-gradient(90deg, var(--accent) 0 1.5px, transparent 1.5px 35px) bottom / 100% 7px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }

/* ---------- Keys and stamps ---------- */
.code-badge { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--badge-fg) 22%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--badge-fg) 18%, var(--badge-bg)),
  0 2px 0 color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 4px; transition: transform .12s, box-shadow .12s, background .15s; }
.code-badge:hover { transform: translateY(1px); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--badge-fg) 22%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--badge-fg) 18%, var(--badge-bg)), 0 1px 0 color-mix(in srgb, var(--ink) 30%, transparent); }
.code-badge-lg { padding: 8px 20px 10px; }
.status-pill.ok, .status-pill.official { background: transparent; border: 1.5px solid currentColor; border-radius: 3px; padding: 2px 8px 1px;
  font-family: var(--font-mono); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3px color-mix(in srgb, currentColor 45%, transparent); transform: rotate(-1.5deg); }
.on-ink .status-pill.ok, .on-ink .status-pill.official { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px color-mix(in srgb, currentColor 45%, transparent); }
.status-pill.ok::before, .status-pill.official::before { width: 6px; height: 6px; border-radius: 1px; }

/* ---------- Header: grain, a blueprint underline, an inset search read-out ---------- */
.site-header { background: var(--ink) var(--grain) 0 0 / 160px 160px; background-blend-mode: soft-light; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-ink) 70%, transparent) 25%, color-mix(in srgb, var(--accent-ink) 70%, transparent) 75%, transparent); }
.site-header .search-field { background: color-mix(in srgb, var(--on-ink) 7%, var(--ink)); border: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45); }
.site-header .search-field input { color: var(--on-ink); }
.site-header .search-field input::placeholder, .site-header .search-field svg { color: var(--on-ink-muted); }
.site-nav a[aria-current] { text-shadow: 0 0 14px color-mix(in srgb, var(--accent-ink) 60%, transparent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink) var(--grain) 0 0 / 160px 160px; background-blend-mode: soft-light; border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent-ink) 0 33%, var(--accent) 33% 66%, var(--accent-ink) 66%); }

/* ---------- Motion: one entrance per page, sections rise into view, instruments switch on ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-head > * { animation: rise .55s var(--ease-out) both; }
  .page-head > *:nth-child(2) { animation-delay: .06s; } .page-head > *:nth-child(3) { animation-delay: .12s; }
  .page-head h1, .page-head .model-hero-main > * { animation: rise .6s var(--ease-out) both; }
  .drafting::before { animation: grid-in 1.2s ease-out both; }
  @keyframes grid-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
  .display-screen .ds-read { animation: power-on 1.1s steps(1, end) .25s both; }
  @keyframes power-on { 0% { opacity: 0; } 12% { opacity: .85; } 16% { opacity: .1; } 24% { opacity: 1; } 30% { opacity: .5; } 36%, 100% { opacity: 1; } }
  .ds-leds i:first-child { animation: blink 2.4s ease-in-out 1.4s infinite; }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  .plate::after { animation: scan 2.6s ease-in-out .5s 1 both; }
  @keyframes scan { from { top: -40%; } to { top: 110%; } }
  .plate-hit .plate-v { animation: lock-on .9s var(--ease-out) 1.4s both; }
  .plate-hit-2 .plate-v { animation-delay: 1.7s; }
  @keyframes lock-on { 0% { outline-color: transparent; outline-offset: 12px; } 100% { outline-color: var(--accent); outline-offset: 3px; } }
  .plate-call { animation: rise .5s var(--ease-out) 1.8s both; } .plate-call-2 { animation-delay: 2.05s; }
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------- Contrast theme: no texture, no glow ---------- */
:root[data-theme="contrast"] .drafting::before, :root[data-theme="contrast"] .drafting::after,
:root[data-theme="contrast"] .band-paper2::before, :root[data-theme="contrast"] .display-screen::after { display: none; }
:root[data-theme="contrast"] .site-header, :root[data-theme="contrast"] .site-footer { background-image: none; }
:root[data-theme="contrast"] .hero h1, :root[data-theme="contrast"] .page-head h1, :root[data-theme="contrast"] .hero-stats dd { text-shadow: none; }
@media print { .drafting::before, .drafting::after, .band-paper2::before { display: none; } .page-head { background: none; color: #000; } }
