/* Fonts: Geist and Geist Mono, Copyright 2024 The Geist Project Authors, SIL Open Font License 1.1 (self-hosted). */
/* PortPair Guide. Precise hardware-spec system: neo-grotesque type, cool neutrals, cobalt action, amber signal path. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Color: one cool gray family, cobalt for action, amber only for the diagram signal path. */
  --paper: oklch(0.99 0.002 250);
  --paper-2: oklch(0.965 0.007 250);
  --paper-3: oklch(0.935 0.01 250);
  --raised: oklch(0.998 0.001 250);
  --line: oklch(0.905 0.008 250);
  --line-strong: oklch(0.82 0.012 250);
  --line-ui: oklch(0.56 0.02 260);
  --ink: oklch(0.21 0.025 260);
  --ink-2: oklch(0.42 0.02 260);
  --ink-3: oklch(0.50 0.02 260);
  --accent: oklch(0.55 0.19 258);
  --accent-ink: oklch(0.47 0.18 258);
  --accent-press: oklch(0.42 0.16 258);
  --accent-soft: oklch(0.955 0.025 258);
  --accent-line: oklch(0.84 0.07 258);
  --on-accent: oklch(0.99 0.002 250);
  --dark: oklch(0.19 0.03 262);
  --dark-2: oklch(0.155 0.028 262);
  --dark-raised: oklch(0.235 0.032 262);
  --dark-line: oklch(0.31 0.03 262);
  --dark-line-strong: oklch(0.48 0.03 262);
  --on-dark: oklch(0.96 0.005 250);
  --on-dark-2: oklch(0.80 0.015 255);
  --accent-on-dark: oklch(0.80 0.11 258);
  --signal: oklch(0.80 0.15 75);
  --focus: var(--accent);

  /* Semantic evidence tints */
  --caution-ink: oklch(0.43 0.10 65);
  --caution-soft: oklch(0.955 0.04 85);
  --caution-line: oklch(0.85 0.06 80);
  --stop-ink: oklch(0.46 0.15 27);
  --stop-soft: oklch(0.955 0.025 27);
  --stop-line: oklch(0.86 0.05 27);
  --ok-ink: oklch(0.42 0.09 160);
  --ok-soft: oklch(0.95 0.03 160);
  --ok-line: oklch(0.85 0.05 160);

  /* Type: Geist for everything, Geist Mono only for spec values. Scale ratio about 1.25. */
  --font-body: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.2rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.4vw, 2.75rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --label: 0.75rem;
  --weight-head: 680;
  --track-head: -0.025em;
  --track-tight: -0.03em;

  /* Space: 4pt scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: 3.5rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --container: 76rem;
  --measure: 46rem;
  --header-h: 4.25rem;

  /* Shape, depth, motion */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-raised: 0 1px 2px oklch(0.21 0.025 260 / 0.05), 0 4px 12px -2px oklch(0.21 0.025 260 / 0.06), 0 16px 32px -12px oklch(0.30 0.06 258 / 0.14);
  --shadow-lift: 0 1px 2px oklch(0.21 0.025 260 / 0.05), 0 8px 18px -4px oklch(0.21 0.025 260 / 0.08), 0 24px 40px -16px oklch(0.35 0.10 258 / 0.22);
  --dur: 180ms;
  --dur-press: 110ms;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --z-sticky: 30;
}

@media (min-width: 48rem) {
  :root { --section-y: 6rem; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-5)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--accent-line); transition: color var(--dur) var(--ease-out), text-decoration-color var(--dur) var(--ease-out); }
a:hover { color: var(--accent-press); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-head); line-height: 1.15; letter-spacing: var(--track-head); text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-5); margin: 0; letter-spacing: var(--track-tight); line-height: 1.05; }
h2 { font-size: var(--step-3); margin: var(--space-8) 0 var(--space-4); }
h3 { font-size: var(--step-1); margin: var(--space-6) 0 var(--space-3); letter-spacing: -0.02em; font-weight: 650; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 var(--space-4); }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--space-4); }
li + li { margin-top: var(--space-2); }
strong { font-weight: 620; }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: var(--space-4); top: -4rem; z-index: 40; background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: var(--space-3); color: var(--paper); }

.shell { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Dark surfaces switch focus and link colors */
.band-dark, .site-footer { --focus: var(--accent-on-dark); color: var(--on-dark); }
.band-dark a:not(.btn), .site-footer a { color: var(--on-dark); text-decoration-color: var(--dark-line-strong); }
.band-dark a:not(.btn):hover, .site-footer a:hover { color: var(--accent-on-dark); text-decoration-color: currentColor; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--on-dark); }

/* Logo mark: two linked rounded rectangles */
.logo { width: 40px; height: 28px; flex: none; overflow: visible; --logo-ink: var(--ink); --logo-link: var(--accent); --logo-gap: var(--paper); }
.logo .la, .logo .lb, .logo .lg { fill: none; stroke-width: 3; }
.logo .la { stroke: var(--logo-ink); }
.logo .lb { stroke: var(--logo-link); }
.logo .lg { stroke: var(--logo-gap); stroke-width: 6.5; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand:hover .logo { --logo-link: var(--accent-ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.site-nav li + li { margin: 0; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: var(--header-h); padding: 0 var(--space-3); color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; }
.site-nav a::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 2px; border-radius: 2px; background: transparent; transition: background-color var(--dur) var(--ease-out); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { background: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { background: var(--accent); }
.site-nav a:focus-visible { outline-offset: -6px; }
.nav-toggle { display: none; }

@media (max-width: 63.99rem) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header .shell { flex-wrap: wrap; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4);
    font: inherit; font-size: 0.9375rem; font-weight: 550; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-press) var(--ease-out);
  }
  .js .nav-toggle:hover { background: var(--paper-2); border-color: var(--line-ui); }
  .js .nav-toggle:active { transform: translateY(1px); }
  .js .nav-toggle::after { content: ""; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15em) rotate(45deg); transition: transform var(--dur) var(--ease-out); }
  .js .nav-toggle[aria-expanded="true"] { background: var(--paper-2); }
  .js .nav-toggle[aria-expanded="true"]::after { transform: translateY(0.1em) rotate(225deg); }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px oklch(0.21 0.025 260 / 0.25); padding: var(--space-2) var(--gutter) var(--space-4); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .js .site-nav.is-open { display: block; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { width: 100%; min-height: 48px; padding: 0 var(--space-2); border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a::after { left: 0; right: auto; top: var(--space-3); bottom: var(--space-3); width: 3px; height: auto; }
  .site-nav a[aria-current="page"] { font-weight: 650; padding-left: var(--space-4); }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5);
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2; text-decoration: none; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px oklch(0.30 0.10 258 / 0.25), inset 0 1px 0 oklch(1 0 0 / 0.14); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 6px 16px -6px oklch(0.45 0.18 258 / 0.55), inset 0 1px 0 oklch(1 0 0 / 0.14); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--raised); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 2px oklch(0.21 0.025 260 / 0.05); }
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line-ui); transform: translateY(-1px); }
.btn-secondary:active { background: var(--paper-3); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--dark-line-strong); }
.btn-ghost:hover { background: var(--dark-raised); color: var(--on-dark); border-color: var(--on-dark-2); transform: translateY(-1px); }
.btn-ghost:active { background: var(--dark-line); }
.band-dark .btn-primary { --focus: var(--accent-on-dark); }
.btn:active { transform: translateY(0); transition-duration: var(--dur-press); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Sections */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--paper-2); }
.section > .shell > h2:first-child, .section h2.section-title { margin-top: 0; }
.section-title { font-size: var(--step-4); letter-spacing: var(--track-tight); }
.section-intro { max-width: 40rem; color: var(--ink-2); margin-bottom: var(--space-6); }
.section-head { display: grid; gap: var(--space-3) var(--space-7); margin-bottom: var(--space-7); }
.section-head .section-intro { margin-bottom: 0; }
.section-head p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) { .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.text-link:hover { text-decoration: underline; }
.text-link:hover svg { transform: translateX(2px); }

.split { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }

/* Home: hero band */
.hero-band { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 30rem at 85% 20%, oklch(0.30 0.08 258 / 0.55), transparent 70%); pointer-events: none; }
.hero { position: relative; display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: var(--section-y); }
@media (min-width: 48rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); } }
@media (min-width: 64rem) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: var(--space-8); } }
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: var(--step-5); font-size: min(var(--step-5), 12cqi); max-width: 16ch; color: var(--on-dark); font-weight: 700; }
/* Desktop: wider copy column and a lower cap so the headline sets in 3 lines (4 at most) */
@media (min-width: 64rem) { .hero h1 { font-size: min(var(--step-5), 3.25rem); font-size: min(var(--step-5), 3.25rem, 8.6cqi); max-width: none; } }
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--on-dark-2); max-width: 34ch; margin: var(--space-5) 0 var(--space-6); letter-spacing: -0.01em; }
.hero-art { margin: 0; min-width: 0; }
.hero-art svg { width: 100%; height: auto; }
.hero-art figcaption { margin-top: var(--space-5); }
.hop-legend-title { margin: 0 0 var(--space-3); font-size: var(--step--1); font-weight: 600; color: var(--on-dark); letter-spacing: 0; }
.hop-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2) var(--space-4); grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); font-size: var(--step--1); color: var(--on-dark-2); line-height: 1.35; }
.hop-legend li { margin: 0; display: flex; align-items: center; gap: var(--space-2); min-height: 28px; }
.hop-num { flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--accent-on-dark); color: var(--on-dark); font-size: var(--step--2); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Hero SVG parts */
.hx-hop circle { fill: var(--dark); stroke: var(--accent-on-dark); stroke-width: 2.5; }
.hx-hop text { fill: var(--on-dark); font-family: var(--font-body); font-size: 22px; font-weight: 650; text-anchor: middle; font-variant-numeric: tabular-nums; }
.hx-cable { fill: none; stroke: oklch(0.36 0.025 262); stroke-width: 7; stroke-linecap: round; }
.hx-sig-halo { fill: none; stroke: var(--signal); stroke-width: 11; stroke-linecap: round; opacity: 0.16; }
.hx-sig { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }
.hx-dot { fill: var(--signal); }
.hx-dot-halo { fill: var(--signal); opacity: 0.22; }

/* Home: model picker */
.model-picker { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 40rem) { .model-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 64rem) { .model-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); } .model-picker .model-help { grid-column: 1 / -1; } }
.model-picker li + li { margin: 0; }
.model-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3); height: 100%; min-height: 44px; padding: var(--space-5) var(--space-4) var(--space-4); border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--raised); box-shadow: var(--shadow-raised);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.model-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); color: var(--ink); }
.model-card:active { transform: translateY(0); }
.model-card:focus-visible { outline-offset: 3px; }
.model-chip { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: var(--track-tight); line-height: 1; }
.model-glyphs { display: flex; align-items: center; gap: var(--space-1); min-height: 20px; color: var(--accent); }
.model-glyphs svg { width: 26px; height: 20px; }
.model-glyphs .g-off { color: var(--line-ui); }
.model-count { font-size: var(--step--1); font-weight: 550; color: var(--ink); line-height: 1.35; }
.model-sub { display: block; font-weight: 400; color: var(--ink-2); }
.model-arrow { position: absolute; top: var(--space-5); right: var(--space-4); width: 20px; height: 20px; color: var(--ink-3); transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.model-card:hover .model-arrow { color: var(--accent); transform: translateX(2px); }
.model-help .model-card { background: transparent; box-shadow: none; border: 1px dashed var(--line-ui); justify-content: center; padding-right: var(--space-7); }
.model-help .model-card:hover { background: var(--raised); border-style: solid; }
.model-help .model-chip { font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.3; font-weight: 650; }
.model-help .model-count { font-weight: 400; color: var(--ink-2); }
.model-help .model-arrow { top: 50%; margin-top: -10px; }
@media (min-width: 64rem) {
  .model-help .model-card { flex-direction: row; align-items: center; gap: var(--space-3); min-height: 56px; padding-block: var(--space-3); }
}
.model-foot { margin: var(--space-5) 0 0; }

/* Home: evidence tiles (also used on How we verify) */
.legend { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }
.legend li { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius); background: var(--paper-2); color: var(--ink-2); font-size: 0.975rem; line-height: 1.5; }
.legend li > span:not(.ev) { display: block; }
.legend li p { margin: 0; }

/* Home: read these first */
.read-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); counter-reset: read; }
@media (min-width: 48rem) { .read-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.read-cards > li { margin: 0; }
.read-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-5); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-raised); border: 1px solid transparent; transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.read-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.read-card:focus-within { border-color: var(--accent); }
.read-card h3 { margin: 0; font-size: var(--step-1); line-height: 1.25; }
.read-card h3 a { color: var(--ink); text-decoration: none; }
.read-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.read-card h3 a:focus-visible { outline: none; }
.read-card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.read-card p { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.read-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.read-more { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--step--1); font-weight: 600; color: var(--accent-ink); }
.read-more svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.read-card:hover .read-more svg { transform: translateX(2px); }
.kind { font-size: var(--label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 650; }

/* Mini port path glyph (cards) */
.mini-path { display: inline-flex; align-items: center; flex: none; }
.mini-path span { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-ui); background: var(--raised); }
.mini-path span + span { margin-left: 10px; position: relative; }
.mini-path span + span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 10px; height: 1.5px; margin-top: -0.75px; margin-right: 1.5px; background: var(--line-strong); }
.mini-path .on { background: var(--accent); border-color: var(--accent); }
.mini-path .on + .on::before { background: var(--accent); }

/* Home: closing CTA band */
.cta-band { background: var(--dark); padding-block: var(--section-y); }
.cta { display: grid; gap: var(--space-5) var(--space-8); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 56rem) { .cta { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.cta h2 { margin: 0 0 var(--space-3); font-size: var(--step-4); letter-spacing: var(--track-tight); }
.cta p { color: var(--on-dark-2); max-width: 40rem; }
.cta p:last-child { margin-bottom: 0; }
.cta .actions { justify-content: flex-start; }
@media (min-width: 56rem) { .cta .actions { justify-content: flex-end; } }

/* Footer */
main { padding-bottom: var(--section-y); }
main.home { padding-bottom: 0; }
.site-footer { background: var(--dark-2); color: var(--on-dark-2); padding-block: var(--space-8) var(--space-6); font-size: var(--step--1); line-height: 1.6; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-about { grid-column: 1 / -1; } }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } .footer-about { grid-column: auto; } }
.site-footer .brand { color: var(--on-dark); margin-bottom: var(--space-3); text-decoration: none; }
.site-footer .brand:hover { color: var(--on-dark); }
.site-footer .logo { --logo-ink: var(--on-dark); --logo-link: var(--accent-on-dark); --logo-gap: var(--dark-2); }
.footer-mission { color: var(--on-dark); font-size: 1rem; font-weight: 550; letter-spacing: -0.01em; }
.footer-about p { max-width: 34rem; }
.site-footer h2 { font-size: var(--label); margin: 0 0 var(--space-2); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 0.9375rem; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-legal { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--dark-line); display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .footer-legal { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-7); align-items: start; } }
.footer-legal p { margin: 0; }
.footer-contact a { font-weight: 600; }

/* Page and article headers */
.page-head, .doc-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-block: var(--space-7) var(--space-6); }
@media (min-width: 48rem) { .page-head, .doc-head { padding-block: var(--space-8) var(--space-7); } }
.page-head h1, .doc-head h1 { font-size: var(--step-4); max-width: 24ch; }
.crumbs { font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--space-4); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.crumbs li + li { margin: 0; display: inline-flex; align-items: center; gap: var(--space-2); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--line-ui); border-right: 1.5px solid var(--line-ui); transform: rotate(45deg); }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.dek { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 42rem; margin: var(--space-4) 0 0; letter-spacing: -0.01em; }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-5) 0 0; font-size: var(--step--1); color: var(--ink-2); }
.meta div { display: flex; gap: var(--space-2); align-items: baseline; }
.meta dt { font-weight: 650; color: var(--ink); }
.meta dt::after { content: ":"; }
.meta dd { margin: 0; }

/* Port path stepper (non-interactive) */
.path-label { margin: var(--space-6) 0 var(--space-3); font-size: var(--label); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.path { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 30rem; }
.path-label + .path { margin-top: 0; }
.path li { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; font-size: var(--step--1); line-height: 1.2; color: var(--ink-2); }
.path li::before { content: ""; position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-ui); background: var(--paper-2); }
.path li + li::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line-strong); }
.path li.on { color: var(--ink); font-weight: 650; }
.path li.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.path li.on + li.on::after { background: var(--accent); }
.path-caption { font-size: var(--step--1); color: var(--ink-2); margin: var(--space-3) 0 0; }

/* Article layout */
.doc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-top: var(--space-7); }
@media (min-width: 64rem) { .doc-body { grid-template-columns: 14rem minmax(0, var(--measure)); gap: var(--space-8); } }
.toc { font-size: var(--step--1); }
@media (min-width: 64rem) { .toc { position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; max-height: calc(100dvh - var(--header-h) - var(--space-7)); overflow-y: auto; } }
.toc p { font-size: var(--label); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-3); color: var(--ink-3); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li + li { margin: 0; }
.toc a { display: block; margin-left: -2px; padding: var(--space-2) var(--space-3); border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 63.99rem) {
  .toc { border-radius: var(--radius); padding: var(--space-4) var(--space-5); background: var(--paper-2); }
  .toc ol { border-left: 0; columns: 2 12rem; column-gap: var(--space-5); }
  .toc a { margin: 0; padding: var(--space-2) 0; border: 0; min-height: 44px; display: flex; align-items: center; break-inside: avoid; }
  .toc a:hover { text-decoration: underline; }
}

.prose { min-width: 0; max-width: var(--measure); }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-8); scroll-margin-top: calc(var(--header-h) + var(--space-5)); }
.prose p, .prose li { max-width: 65ch; }

.answer { position: relative; background: var(--accent-soft); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-7); }
@media (min-width: 48rem) { .answer { padding: var(--space-6); } }
.answer h2 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: var(--step--1); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.answer h2::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon-answer) center / contain no-repeat; mask: var(--icon-answer) center / contain no-repeat; }
.answer p, .answer li { font-size: 1.0625rem; color: var(--ink); }
.answer p:last-child, .answer ul:last-child { margin-bottom: 0; }

.callout { border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0; background: var(--paper-2); }
.callout h3, .callout p.callout-title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.callout h3::before, .callout p.callout-title::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon-info) center / contain no-repeat; mask: var(--icon-info) center / contain no-repeat; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { padding-left: 1.1em; }
.callout-caution { background: var(--caution-soft); }
.callout-caution h3, .callout-caution .callout-title { color: var(--caution-ink); }
.callout-caution h3::before, .callout-caution .callout-title::before { -webkit-mask-image: var(--icon-caution); mask-image: var(--icon-caution); }
.callout-stop { background: var(--stop-soft); }
.callout-stop .callout-title { color: var(--stop-ink); }
.callout-stop .callout-title::before { -webkit-mask-image: var(--icon-stop); mask-image: var(--icon-stop); }

/* Icons (inline data, no network requests) */
:root {
  --icon-answer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M6.5 10.3l2.3 2.3 4.7-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M10 9v5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='6.2' r='1.2' fill='black'/%3E%3C/svg%3E");
  --icon-caution: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l8 14.5H2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 8v4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.3' r='1.1' fill='black'/%3E%3C/svg%3E");
  --icon-stop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4.5 15.5l11-11' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  --icon-ev-apple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M3.7 6.2l1.6 1.6 3-3.3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-ev-maker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2' y='1' width='8' height='10' rx='1.6' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M4.3 4.5h3.4M4.3 7h3.4' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-ev-unknown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='none' stroke='black' stroke-width='1.5' stroke-dasharray='2.2 1.6'/%3E%3Cpath d='M4.7 4.7a1.4 1.4 0 1 1 2 1.3c-.5.2-.7.5-.7 1' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='8.6' r='.75' fill='black'/%3E%3C/svg%3E");
  --icon-ev-no: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M4.2 4.2l3.6 3.6M7.8 4.2L4.2 7.8' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Evidence labels: pill, icon and text, never color alone */
.ev { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-body); font-size: var(--label); font-weight: 650; letter-spacing: 0.01em; line-height: 1.3; padding: 0.25em 0.7em 0.25em 0.55em; border-radius: var(--radius-pill); white-space: nowrap; vertical-align: 0.08em; border: 1px solid transparent; }
.ev::before { content: ""; flex: none; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--icon-ev-apple) center / contain no-repeat; mask: var(--icon-ev-apple) center / contain no-repeat; }
.ev-apple { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.ev-maker { background: var(--ok-soft); color: var(--ok-ink); border-color: var(--ok-line); }
.ev-maker::before { -webkit-mask-image: var(--icon-ev-maker); mask-image: var(--icon-ev-maker); }
.ev-unknown { background: var(--caution-soft); color: var(--caution-ink); border-color: var(--caution-line); }
.ev-unknown::before { -webkit-mask-image: var(--icon-ev-unknown); mask-image: var(--icon-ev-unknown); }
.ev-no { background: var(--stop-soft); color: var(--stop-ink); border-color: var(--stop-line); }
.ev-no::before { -webkit-mask-image: var(--icon-ev-no); mask-image: var(--icon-ev-no); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-5) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }
.table-wrap:focus-visible { outline-offset: 2px; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; padding: var(--space-3) var(--space-4); font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line); caption-side: top; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); }
table.data tr > :first-child { padding-left: var(--space-4); }
table.data tr > :last-child { padding-right: var(--space-4); }
/* Row labels (models, docks, symptoms) get a real column; numeric columns shrink to their content */
table.data > thead > tr > :first-child, table.data > tbody > tr > :first-child { width: 9.5rem; min-width: 9.5rem; }
table.wide > thead > tr > :first-child, table.wide > tbody > tr > :first-child { width: 11.5rem; min-width: 11.5rem; }
table.data th.num, table.data td.num { width: 1%; }
table.data thead th { font-size: var(--step--2); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); white-space: nowrap; }
table.data tbody th { font-weight: 620; color: var(--ink); }
table.data tbody tr { transition: background-color var(--dur) var(--ease-out); }
table.data tbody tr:hover { background: oklch(0.975 0.005 250); }
table.data tr:last-child > * { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }
table.data td.num { font-family: var(--font-mono); font-weight: 500; }
table.data .mode, table.data .spec { font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: -0.01em; }
table.data .mode { white-space: nowrap; }
table.data .src { font-size: var(--step--1); }
table.data .src .ev { margin-top: var(--space-1); }
table.wide { min-width: 40rem; }
/* Wide desktop: guide tables may use the free space right of the reading column */
@media (min-width: 76rem) { .prose > .table-wrap { margin-right: calc(-1 * var(--space-9)); } }

/* Figures */
figure.diagram { margin: var(--space-6) 0; border: 1px solid var(--line); border-radius: var(--radius); background: oklch(0.982 0.003 250); padding: var(--space-4); }
figure.diagram img { width: 100%; margin-inline: auto; }
figure.diagram.narrow img { max-width: 30rem; }
figure.diagram figcaption { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-2); }

/* Steps and checklists */
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 2.75rem; margin: 0 0 var(--space-4); }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05em; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.8125rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
ul.checklist { list-style: none; padding: 0; }
ul.checklist > li { position: relative; padding-left: 2rem; }
ul.checklist > li::before { content: ""; position: absolute; left: 0.1rem; top: 0.28em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--line-ui); border-radius: 5px; background: var(--raised); }

/* Decision tree */
.tree { list-style: none; padding: 0; margin: var(--space-5) 0; }
.tree > li { border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-3); background: var(--raised); box-shadow: var(--shadow-raised); }
.tree .q { font-weight: 650; margin-bottom: var(--space-2); letter-spacing: -0.01em; }
.tree .q span { display: inline-block; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 0.1em 0.5em; border-radius: 6px; margin-right: var(--space-2); }
.tree dl { margin: 0; display: grid; gap: var(--space-2); }
.tree dl div { display: grid; gap: var(--space-1); }
@media (min-width: 40rem) { .tree dl div { grid-template-columns: 5.5rem minmax(0, 1fr); } }
.tree dt { font-size: var(--step--1); font-weight: 650; color: var(--ink-2); }
.tree dd { margin: 0; }
.stop { color: var(--stop-ink); font-weight: 650; }

/* Sources and related */
.doc-foot { border-top: 1px solid var(--line); margin-top: var(--space-8); padding-top: var(--space-7); display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .doc-foot { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-8); } }
.doc-foot h2 { margin-top: 0; font-size: var(--step-2); }
.sources { font-size: 0.9375rem; padding-left: 1.4em; }
.sources li { overflow-wrap: anywhere; padding-left: var(--space-1); }
.sources li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sources .ev { margin-left: var(--space-1); }
.related { list-style: none; padding: 0; }
.related li { margin: 0; border-top: 1px solid var(--line); }
.related li:last-child { border-bottom: 1px solid var(--line); }
.related a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 52px; padding: var(--space-3) 0; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.related a::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); margin-right: var(--space-2); transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.related a:hover { color: var(--accent-ink); }
.related a:hover::after { border-color: var(--accent); transform: translateX(2px) rotate(45deg); }

/* Guide index cards */
.guide-index { display: grid; gap: 0 var(--space-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .guide-index { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.guide-index h2 { font-size: var(--step-2); margin: var(--space-7) 0 var(--space-4); }
.ruled-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ruled-list > li { position: relative; margin: 0; padding: var(--space-4) var(--space-7) var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-raised); border: 1px solid transparent; display: grid; gap: var(--space-1); transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.ruled-list > li::after { content: ""; position: absolute; right: var(--space-5); top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); transition: border-color var(--dur) var(--ease-out); }
.ruled-list > li:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.ruled-list > li:hover::after { border-color: var(--accent); }
.ruled-list a { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; text-decoration: none; color: var(--ink); }
.ruled-list a::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.ruled-list a:focus-visible { outline: none; }
.ruled-list a:focus-visible::before { outline: 3px solid var(--focus); outline-offset: 3px; }
.ruled-list p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* Reviews: score badge, method note, product art */
.score { display: inline-flex; align-items: baseline; gap: var(--space-1) var(--space-2); flex-wrap: wrap; margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.score-num { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.25rem; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; align-self: center; }
.score-of { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-3); }
.score-label { font-size: var(--step--1); font-weight: 650; color: var(--ink); letter-spacing: -0.005em; }
.score[data-band="high"] .score-num { background: var(--accent); color: var(--on-accent); }
.score-lg .score-num { min-width: 4.5rem; height: 3.5rem; font-size: 1.75rem; border-radius: var(--radius); }
.score-lg .score-label { font-size: 1.0625rem; }
.score-lg .score-of { font-size: 1rem; }
.band-dark .score-num { background: var(--on-dark); color: var(--dark); }
.band-dark .score[data-band="high"] .score-num { background: var(--accent); color: var(--on-accent); }
.band-dark .score-label { color: var(--on-dark); }
.band-dark .score-of { color: var(--on-dark-2); }

.method-note { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2); border-radius: var(--radius-pill); background: var(--caution-soft); color: var(--caution-ink); font-size: var(--label); font-weight: 650; letter-spacing: 0.01em; line-height: 1.4; }
.method-note::before { content: ""; flex: none; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--icon-ev-maker) center / contain no-repeat; mask: var(--icon-ev-maker) center / contain no-repeat; }
.band-dark .method-note { background: var(--dark-raised); color: var(--on-dark); }

.product-art { margin: 0; min-width: 0; }
.product-art svg { width: 100%; height: auto; }
.product-art figcaption { margin-top: var(--space-2); font-size: var(--step--2); color: var(--ink-3); line-height: 1.4; }
.art-tile { border-radius: var(--radius); background: var(--paper-2); padding: var(--space-4); }
.band-dark .art-tile { background: var(--dark-raised); }

/* Product illustration parts (flat fills, no ids, so copies can share a page) */
.pa-shadow { fill: oklch(0.21 0.025 260 / 0.14); }
.pa-body { fill: oklch(0.27 0.025 262); }
.pa-body-lt { fill: oklch(0.86 0.008 250); }
.pa-face { fill: oklch(0.21 0.025 262); }
.pa-face-lt { fill: oklch(0.78 0.01 250); }
.pa-sheen { fill: oklch(1 0 0 / 0.08); }
.pa-port { fill: oklch(0.12 0.02 262); stroke: oklch(0.5 0.02 260); stroke-width: 1; }
.pa-tb { fill: oklch(0.12 0.02 262); stroke: var(--accent-on-dark); stroke-width: 1.4; }
.pa-host { fill: oklch(0.12 0.02 262); stroke: var(--signal); stroke-width: 1.6; }
.pa-led { fill: var(--accent-on-dark); }
.pa-cable { fill: none; stroke: oklch(0.36 0.025 262); stroke-width: 6; stroke-linecap: round; }
.pa-sig { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; }
.pa-sig-halo { fill: none; stroke: var(--signal); stroke-width: 9; stroke-linecap: round; opacity: 0.16; }
.pa-plug { fill: oklch(0.36 0.025 262); }

/* Home: pick cards and review cards */
.pick-cards, .review-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .pick-cards, .review-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .pick-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .review-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick-cards > li, .review-cards > li { margin: 0; }
.p-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-4) var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-raised); border: 1px solid transparent; transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.p-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.p-card:focus-within { border-color: var(--accent); }
.p-card .art-tile { padding: var(--space-3); }
.p-card h3 { margin: 0; font-size: var(--step-1); line-height: 1.25; }
.p-card h3 a { color: var(--ink); text-decoration: none; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.p-card h3 a:focus-visible { outline: none; }
.p-card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.p-card p { margin: 0; color: var(--ink-2); font-size: 0.975rem; line-height: 1.5; }
.p-card .p-maker { font-size: var(--step--1); color: var(--ink-3); margin-top: calc(-1 * var(--space-2)); }
.p-role { display: inline-flex; align-self: flex-start; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--label); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.p-role.is-skip { background: var(--stop-soft); color: var(--stop-ink); }
.p-card .read-more { margin-top: auto; }
.p-card:hover .read-more svg { transform: translateX(2px); }
.cards-note { margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--step--1); color: var(--ink-2); }
.cards-note p { margin: 0; }

/* Home "Latest reviews": the top-scored review is a featured card with art.
   1 column: stacked. 2 columns: featured spans the first row, then 2 x 2. 3 columns: featured spans two rows in column 1, the other four fill 2 x 2. */
.review-cards .is-featured .art-tile { position: relative; aspect-ratio: 16 / 9; min-height: 9rem; max-height: 200px; padding: 0; }
.review-cards .is-featured .art-tile svg { position: absolute; top: var(--space-3); left: var(--space-3); width: calc(100% - 2 * var(--space-3)); height: calc(100% - 2 * var(--space-3)); }
.review-cards .is-featured h3 { font-size: var(--step-2); }
@media (min-width: 40rem) { .review-cards .is-featured { grid-column: 1 / -1; } }
@media (min-width: 64rem) {
  .review-cards .is-featured { grid-column: 1; grid-row: span 2; }
  .review-cards .is-featured .art-tile { flex: 1 1 10rem; aspect-ratio: auto; max-height: none; }
}

/* Home hero: featured roundup */
.hero-kicker { display: inline-flex; margin: 0 0 var(--space-4); font-size: var(--label); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-dark); }
.hero-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-6); }

/* Roundup and review layout */
.doc-head .method-note, .page-head .method-note { margin-top: var(--space-5); }
.pick { margin: var(--space-8) 0 0; padding-top: var(--space-7); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--space-5)); }
.pick:first-of-type { border-top: 0; padding-top: 0; }
.answer + .pick { margin-top: 0; }
.pick-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.pick-head h2 { margin: 0; font-size: var(--step-3); }
.pick-head .p-role { margin: 0; }
.pick-scoreline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.pick .product-art { margin-bottom: var(--space-5); }
.pick h3 { font-size: 1.0625rem; margin: var(--space-5) 0 var(--space-2); }
.pick .actions { margin-top: var(--space-5); }
/* Picks with art: head, art, why and details stacked on small screens. From 1024px the art panel (5/12) sits beside
   the head and "Why we picked it" (7/12); pros/cons, fit and buttons span the full width below so they keep two columns.
   The art panel has a capped height and each roundup SVG uses a viewBox cropped to its product, so the product fills the panel. */
.pick.has-art { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "why" "more"; }
.pick.has-art > .pick-head { grid-area: head; }
.pick.has-art > .product-art { grid-area: art; }
.pick.has-art > .pick-why { grid-area: why; min-width: 0; }
.pick.has-art > .pick-more { grid-area: more; min-width: 0; }
.pick-why > h3:first-child { margin-top: 0; }
.pick .product-art { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 9rem; max-height: 200px; padding: 0; }
.pick .product-art svg { position: absolute; top: var(--space-3); left: var(--space-3); width: calc(100% - 2 * var(--space-3)); height: calc(100% - 2 * var(--space-3)); }
@media (min-width: 64rem) {
  .pick.has-art { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "art head" "art why" "more more"; grid-template-rows: auto 1fr auto; column-gap: var(--space-6); align-items: start; }
  .pick .product-art { aspect-ratio: 4 / 3; max-height: 280px; margin-bottom: 0; }
  .pick-why > p:last-child { margin-bottom: 0; }
}
.proscons { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); margin: var(--space-5) 0; }
@media (min-width: 40rem) { .proscons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proscons > div { border-radius: var(--radius); padding: var(--space-4) var(--space-5); background: var(--paper-2); }
.proscons h3, .proscons h2 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.proscons h3::before, .proscons h2::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon-answer) center / contain no-repeat; mask: var(--icon-answer) center / contain no-repeat; }
.proscons .cons h3::before, .proscons .cons h2::before { -webkit-mask-image: var(--icon-stop); mask-image: var(--icon-stop); }
.proscons .pros h3, .proscons .pros h2 { color: var(--ok-ink); }
.proscons .cons h3, .proscons .cons h2 { color: var(--stop-ink); }
.proscons ul { margin: 0; padding-left: 1.1em; font-size: 0.975rem; }
.proscons li + li { margin-top: var(--space-1); }
.fit { display: grid; gap: var(--space-3); margin: var(--space-5) 0 0; }
.fit div { display: grid; gap: var(--space-1); }
@media (min-width: 40rem) { .fit div { grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-4); } }
.fit dt { font-weight: 650; color: var(--ink); }
.fit dd { margin: 0; color: var(--ink-2); }

/* Review header */
.review-head { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 56rem) { .review-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } }
.review-head .product-art { order: 2; }
@media (min-width: 56rem) { .review-head .product-art { order: 0; } }
.review-maker { margin: var(--space-3) 0 0; color: var(--ink-2); font-size: var(--step--1); }
.review-score { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }

.verdict { background: var(--accent-soft); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-7); }
@media (min-width: 48rem) { .verdict { padding: var(--space-6); } }
.verdict > h2 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: var(--step--1); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.verdict > h2::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon-answer) center / contain no-repeat; mask: var(--icon-answer) center / contain no-repeat; }
.verdict > p { font-size: 1.0625rem; color: var(--ink); }
.verdict .proscons > div { background: var(--raised); }
.verdict .fit { margin-bottom: 0; }

/* Score breakdown bars */
.breakdown { list-style: none; padding: 0; margin: var(--space-5) 0; display: grid; gap: var(--space-4); }
.breakdown > li { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--paper-2); }
.bd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.bd-name { font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.bd-weight { font-family: var(--font-mono); font-size: var(--step--2); color: var(--ink-3); }
.bd-score { margin-left: auto; font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bd-score b { font-size: 1.0625rem; font-weight: 650; color: var(--ink); }
.bar { display: block; height: 8px; margin: var(--space-3) 0; border-radius: var(--radius-pill); background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; width: calc(var(--v, 0) * 10%); border-radius: inherit; background: var(--accent); }
.bd-note { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.bd-note a { white-space: nowrap; }
.overall-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-5); font-size: 0.9375rem; color: var(--ink-2); }

/* Roundup comparison table: products as columns, sticky first column on scroll */
.compare-section { padding-top: var(--space-8); }
.compare-section > h2 { margin-top: 0; font-size: var(--step-3); }
.compare-section > p { max-width: 65ch; color: var(--ink-2); }
.table-wrap.compare-wrap { margin-top: var(--space-5); }
table.compare { min-width: 52rem; table-layout: fixed; }
table.compare > thead > tr > :first-child, table.compare > tbody > tr > :first-child { width: 10rem; min-width: 10rem; position: sticky; left: 0; z-index: 1; background: var(--raised); box-shadow: 1px 0 0 var(--line); }
table.compare > thead > tr > :first-child { background: var(--paper-2); }
table.compare thead th { white-space: normal; vertical-align: bottom; letter-spacing: 0.02em; text-transform: none; font-size: var(--step--1); color: var(--ink); }
table.compare thead th a { color: var(--ink); text-decoration: none; }
table.compare thead th a:hover { text-decoration: underline; }
table.compare tbody th { font-size: var(--step--1); color: var(--ink-2); font-weight: 650; }
table.compare td { font-size: 0.875rem; }
table.compare .is-pick { background: var(--accent-soft); }
table.compare thead .is-pick { box-shadow: inset 0 3px 0 var(--accent); }
table.compare .pick-flag { display: block; margin-bottom: var(--space-1); font-size: var(--label); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
table.compare tbody tr:hover { background: transparent; }
table.compare .score-num { min-width: 2.5rem; height: 2rem; font-size: 0.9375rem; }
table.compare .maker-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Reviews index */
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.review-list > li { margin: 0; }
.review-row { position: relative; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); align-items: center; padding: var(--space-4); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-raised); border: 1px solid transparent; transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
@media (min-width: 48rem) { .review-row { grid-template-columns: 14rem minmax(0, 1fr) auto; gap: var(--space-6); padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4); } }
.review-row:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.review-row:focus-within { border-color: var(--accent); }
.review-row h2 { margin: var(--space-2) 0 var(--space-1); font-size: var(--step-2); }
.review-row h2 a { color: var(--ink); text-decoration: none; }
.review-row h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.review-row h2 a:focus-visible { outline: none; }
.review-row h2 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.review-row p { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.review-row .art-tile { padding: var(--space-3); }

/* Chip cards that link to guides or roundup sections */
.model-link { display: block; font-size: var(--step--2); font-weight: 600; color: var(--accent-ink); line-height: 1.35; }

.fallback { border-radius: var(--radius); padding: var(--space-5); background: var(--paper-2); }

/* Utility layout for hubs */
.page-body { padding-top: var(--space-7); }
.page-body > * { max-width: var(--measure); }
.page-body > h2:first-child { margin-top: 0; }
.page-body > h2 { font-size: var(--step-3); }
.page-wide { padding-top: var(--space-7); }
.page-wide > .section { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .model-card:hover, .read-card:hover, .ruled-list > li:hover, .p-card:hover, .review-row:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .nav-toggle, .skip { display: none; }
  body { background: white; }
  .hero-band, .cta-band { background: white; color: black; }
  table.compare > thead > tr > :first-child, table.compare > tbody > tr > :first-child { position: static; }
}
