/* PCS Atlas. One accent: highlighter yellow means "here is the source". Amber only means "under review". */

/* Atkinson Hyperlegible Next and Mono (Braille Institute, SIL OFL 1.1; Latin subsets from Fontsource): drawn so 0/O, 1/l/I and 5/S can't be confused,
   which matters for model codes. Mono is kept for text quoted from datasheets; every number uses the sans. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(fonts/AtkinsonHyperlegibleNext.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(fonts/AtkinsonHyperlegibleNext-Italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url(fonts/AtkinsonHyperlegibleMono.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --bg-2: #f4f4f3;
  --card: #ffffff;
  --ink: #111113;
  --ink-2: #3f3f46;
  --muted: #63636c;
  --faint: #a1a1aa;
  --line: #ececec;
  --line-2: #e0e0e0;
  --mark: #fde047;
  --mark-soft: #fef9c3;
  --mark-hl: #fde047;
  --mark-edge: #ca8a04;
  --mark-ink: #713f12;
  --hl-fill: rgb(253 224 71 / .38);
  --hl-edge: #eab308;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --header-bg: rgb(252 252 251 / .86);
  --dots: #e7e7e7;
  --shadow: 0 1px 2px rgb(24 24 27 / .05), 0 24px 48px -28px rgb(24 24 27 / .22);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .08);
  --sans: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e0e10; --bg-2: #18181b; --card: #141417;
    --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a;
    --line: #27272a; --line-2: #34343a;
    --mark: #facc15; --mark-soft: #3a3210; --mark-hl: rgb(250 204 21 / .34); --mark-edge: #eab308; --mark-ink: #fde68a;
    --warn: #fbbf24; --warn-soft: #3a2a0a;
    --ok: #22c55e; --ok-soft: #14301d;
    --header-bg: rgb(14 14 16 / .82);
    --dots: #202024;
    --shadow: 0 24px 48px -24px rgb(0 0 0 / .6);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
p a, dd a, li a, .link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { p a:hover, dd a:hover, li a:hover, .link:hover { text-decoration-color: currentColor; } }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mark); color: #111113; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; vertical-align: -.18em; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.02em; font-size: 16px; white-space: nowrap; }
.logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; }
.logo i::after { content: ""; width: 8px; height: 8px; border: 2px solid var(--bg); border-radius: 2px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.hdr .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live { font: 500 13px var(--sans); color: var(--muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.live b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.live.stale b { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.search { position: relative; display: flex; align-items: center; width: 240px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.search:focus-within { border-color: var(--faint); box-shadow: 0 0 0 3px var(--bg-2); }
.search .ico { position: absolute; left: 10px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 36px 0 32px; font-size: 14px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 7px; font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; background: var(--bg-2); pointer-events: none; transition: opacity 120ms var(--ease-out); }
.search:focus-within kbd { opacity: 0; }
.menu-btn { display: none; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); place-items: center; padding: 0; flex: none; }
.menu-btn .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 9px; font-weight: 550; font-size: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); white-space: nowrap; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 14px; border-radius: 8px; gap: 6px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[aria-pressed="true"] { background: var(--bg-2); border-color: var(--faint); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--faint); }
  .btn.dark:hover { opacity: .88; border-color: var(--ink); }
  .btn.ghost:hover { background: var(--bg-2); border-color: transparent; }
}

.eyebrow { font: 500 14px var(--sans); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 500 13px/1.5 var(--sans); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pill .ico { width: 13px; height: 13px; }
.pill.src { background: var(--mark-soft); color: var(--mark-ink); }
.pill.rev { color: var(--ink); background: var(--bg-2); }
.pill.auto { color: var(--muted); background: transparent; border: 1px dashed var(--line-2); padding: 1px 7px; }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.plain { color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 1px 7px; }
a.pill { text-decoration: none; }

mark { background: linear-gradient(transparent 58%, var(--mark-hl) 58%, var(--mark-hl) 92%, transparent 92%); color: inherit; padding: 0 2px; }

.avatar { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); display: inline-grid; place-items: center; font: 600 11px var(--sans); color: var(--ink-2); flex: none; }

/* ---------------------------------------------------------------- form controls */
.seg { display: inline-flex; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 14px; font-weight: 550; color: var(--muted); white-space: nowrap; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button em { font-style: normal; font-family: var(--sans); color: var(--muted); margin-left: 5px; font-size: 13px; }
.select { appearance: none; -webkit-appearance: none; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 30px 0 12px; font-size: 14px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2371717a'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; cursor: pointer; }
.field { height: 34px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 12px; background: var(--bg); font-size: 14px; min-width: 260px; outline: none; }
.field:focus { border-color: var(--faint); box-shadow: 0 0 0 3px var(--bg-2); }
.check { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--card); display: inline-grid; place-items: center; margin: 0; cursor: pointer; transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out); flex: none; vertical-align: middle; }
.check::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 160ms var(--ease-out); }
.check:checked { background: var(--ink); border-color: var(--ink); }
.check:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check:disabled { opacity: .35; cursor: not-allowed; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }

/* ---------------------------------------------------------------- page scaffolding */
.page { padding-top: 28px; padding-bottom: 72px; }
.page-head { margin-bottom: 26px; max-width: 720px; }
.page-head h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin: 8px 0 10px; }
.page-head p { color: var(--ink-2); margin: 0; }
.sec { padding: 56px 0; }
.sec.tight { padding-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sec-head h2 { font-size: 26px; letter-spacing: -.015em; font-weight: 600; margin: 0 0 4px; line-height: 1.2; }
.sec-head p { margin: 0; color: var(--muted); }
.sub-head { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin: 48px 0 4px; }
.sub-note { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { transition: color 160ms var(--ease-out); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; }
.loading { padding: 80px 0; color: var(--muted); }
.empty { border: 1px dashed var(--line-2); border-radius: 14px; padding: 40px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.empty p { margin: 0 auto; max-width: 52ch; }
.empty .tools { justify-content: center; margin: 18px 0 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 13px 16px; margin-bottom: 20px; font-size: 14px; background: var(--warn-soft); color: var(--ink); }
.notice > .ico { color: var(--warn); margin-top: 3px; }
.notice.info { background: var(--bg-2); color: var(--ink-2); }
.notice.info > .ico { color: var(--muted); }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- home: hero */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); background-image: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.2px); background-size: 22px 22px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.04; letter-spacing: -.02em; font-weight: 600; margin: 18px 0 20px; }
.hero .lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 540px; margin: 0 0 28px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }

.cite { margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.cite-top { padding: 20px 22px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cite-top .label { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.cite-top .label a { color: var(--ink-2); font-weight: 550; }
.cite-top .value { font: 600 40px/1 var(--sans); letter-spacing: -.02em; }
.cite-top .value small { font-size: 16px; color: var(--muted); letter-spacing: 0; margin-left: 6px; font-weight: 500; }
.connector { position: relative; height: 26px; margin: 0 22px; }
.connector::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 1.5px dashed var(--line-2); }
.connector::after { content: ""; position: absolute; left: 26px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--mark-edge); box-shadow: 0 0 0 4px var(--mark-soft); }
.cite .sheet { margin: 0 22px; height: 170px; }
.cite-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px 18px; font: 13px var(--sans); color: var(--muted); }
.cite-foot a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.facts-band { border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { display: grid; gap: 4px; padding: 26px 0 26px 24px; align-content: start; }
.facts div:first-child { padding-left: 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { font: 600 28px/1.2 var(--sans); letter-spacing: -.02em; }
.facts span { font-size: 14px; color: var(--muted); max-width: 24ch; }

/* ---------------------------------------------------------------- the datasheet page viewer */
.sheet { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; isolation: isolate; }
.sheet img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity 220ms var(--ease-out); }
.sheet.ready img { opacity: 1; }
.sheet .hl { position: absolute; border-radius: 3px; pointer-events: none; opacity: 0; transition: opacity 240ms var(--ease-out) 100ms; }
.sheet.ready .hl { opacity: 1; }
.sheet .hl.row { background: var(--hl-fill); }
.sheet .hl.row.solo { outline: 2px solid var(--hl-edge); }
.sheet .hl.cell { outline: 2px solid var(--hl-edge); background: rgb(253 224 71 / .3); }
.sheet::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -34px 26px -22px #fff, inset 0 34px 26px -22px #fff; pointer-events: none; z-index: 1; }
.sheet.full::after { display: none; }
.pageno { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 500 11px var(--mono); background: #111113; color: #fcfcfb; padding: 2px 7px; border-radius: 5px; }
.sheet-none { display: grid; place-items: center; align-content: center; text-align: center; color: #71717a; font-size: 14px; padding: 20px; gap: 6px; }
.sheet-none .ico { width: 28px; height: 28px; color: #a1a1aa; }

/* ---------------------------------------------------------------- catalog table */
.tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.tools .count { margin-left: auto; font: 14px var(--sans); color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
.tbl { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; overscroll-behavior-x: contain; background: var(--card); }
.tbl th { text-align: left; font: 500 14px var(--sans); color: var(--muted); padding: 11px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.num { white-space: nowrap; font-size: 15px; }
.tbl th.mc { width: 32%; }
.tbl .cb { width: 44px; padding-right: 0; }
.tbl .grp td { background: var(--card); padding: 18px 16px 8px; }
.grp-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.grp-name span { font: 13px var(--sans); color: var(--muted); font-weight: 400; }
.model b { font-weight: 600; letter-spacing: -.01em; }
.model a { text-decoration: none; }
.model small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 1px; }
.q { color: var(--muted); font: 13px var(--sans); margin-left: 6px; }
.na { color: var(--muted); }
.tbl tr.item { cursor: pointer; }
.tbl tr.item td { transition: background-color 120ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tbl tr.item:hover td { background: var(--bg-2); } }
.tbl tr.family td { background: var(--bg-2); }
.tbl tr.member td.model { padding-left: 34px; }
.count-tag { font: 500 14px var(--sans); color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; margin-left: 10px; vertical-align: 1px; white-space: nowrap; }
.chev { color: var(--faint); white-space: nowrap; text-align: right; width: 84px; font: 14px var(--sans); }
.chev .ico { transition: transform 200ms var(--ease-out); }
tr.family[aria-expanded="true"] .chev .ico { transform: rotate(180deg); }
.more-row td { text-align: center; padding: 14px; }

/* ---------------------------------------------------------------- timeline */
.narrow { max-width: 900px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line-2); margin-left: 6px; }
.timeline > li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 18px; padding: 4px 0 26px 24px; position: relative; align-items: start; }
.timeline > li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--faint); }
.timeline > li.warn-row::before { border-color: var(--warn); background: var(--warn-soft); }
.timeline time { font: 14px var(--sans); color: var(--muted); padding-top: 2px; white-space: nowrap; }
.timeline h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.timeline h3 a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; max-width: 62ch; }
.timeline details { margin-top: 8px; font-size: 14px; }
.timeline ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 4px; }
.day-label { font: 500 13px var(--sans); color: var(--muted); margin: 30px 0 14px; }
.day-label:first-child { margin-top: 0; }
.diff { font: 14px var(--sans); margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.diff s { color: var(--faint); }

details > summary { cursor: pointer; list-style: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
details > summary::-webkit-details-marker { display: none; }
details > summary .ico { transition: transform 200ms var(--ease-out); color: var(--faint); }
details[open] > summary .ico { transform: rotate(90deg); }

/* ---------------------------------------------------------------- model page */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 26px; }
.maker { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin: 10px 0 8px; overflow-wrap: anywhere; }
.head .sub { color: var(--ink-2); max-width: 640px; margin: 0 0 12px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex: none; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 28px; background: var(--card); overflow: hidden; }
.kpi { padding: 16px 20px; min-width: 0; text-align: left; border: 0; background: transparent; }
.kpi + .kpi { border-left: 1px solid var(--line); }
button.kpi { cursor: pointer; transition: background-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { button.kpi:hover { background: var(--bg-2); } }
.kpi span { font: 500 14px var(--sans); color: var(--muted); display: block; }
.kpi b { display: block; font: 600 26px/1.15 var(--sans); letter-spacing: -.015em; margin: 6px 0 2px; overflow-wrap: anywhere; }
.kpi small { font-size: 14px; color: var(--muted); display: block; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 28px; align-items: start; }
.specs { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.g { padding: 6px 0; }
.g + .g { border-top: 1px solid var(--line); }
.g h2 { font: 500 14px var(--sans); color: var(--muted); margin: 12px 20px 4px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 14px; align-items: center; padding: 9px 20px; position: relative; width: 100%; border: 0; background: transparent; text-align: left; transition: background-color 140ms var(--ease-out); }
.row .l { color: var(--ink-2); font-size: 14px; }
.row .v { font: 550 15px var(--sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
.row .v em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.row .v s { color: var(--faint); font-weight: 400; margin-left: 8px; font-size: 14px; }
.row .s { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.row .s .ico { color: var(--muted); width: 15px; height: 15px; }
.row .s .ico.auto { color: var(--faint); }
.row .s .ico.warn { color: var(--warn); }
.row .s .pill { min-width: 46px; justify-content: center; }
.row[aria-current="true"] { background: var(--mark-soft); }
.row[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mark-edge); }
.row[aria-current="true"] .pill { background: var(--mark); color: #111113; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .row:not([aria-current="true"]):hover { background: var(--bg-2); } }
.row:focus-visible { outline-offset: -2px; border-radius: 0; }
.hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.src { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.src-head { padding: 16px 18px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.src-head .k { font: 500 14px var(--sans); color: var(--muted); }
.src-head b { display: block; font-size: 15px; margin-top: 3px; letter-spacing: -.01em; }
.src .sheet { margin: 0 18px; height: 300px; cursor: zoom-in; transition: height 260ms var(--ease-out); }
.src .sheet.full { cursor: zoom-out; }
.src .quote { margin: 14px 18px 0; padding: 10px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font: 14px/1.55 var(--mono); overflow-wrap: anywhere; }
.meta { margin: 14px 18px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 12px; font-size: 14px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; color: var(--ink-2); }
.meta dd.warn { color: var(--warn); }
.src .history { margin: 14px 18px 0; font-size: 14px; }
.src .history ol { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.src .history li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.src .history li b { font-family: var(--sans); font-weight: 550; color: var(--ink); margin-right: 6px; }
.src-actions { display: flex; gap: 8px; padding: 16px 18px 18px; margin-top: 14px; border-top: 1px solid var(--line); }
.src-actions .btn { flex: 1; }
.src-body { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .src-body { opacity: 0; transform: translateY(4px); } }

/* datasheet lists */
.docs { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 18px; }
.doc + .doc { border-top: 1px solid var(--line); }
.doc > .ico { width: 26px; height: 26px; color: var(--muted); }
.doc .t { font-weight: 550; letter-spacing: -.01em; overflow-wrap: anywhere; }
.doc .m { font: 14px var(--sans); color: var(--muted); margin-top: 2px; }
.doc .m a { color: var(--ink-2); }
.doc .acts { display: flex; gap: 6px; }
.doc details { grid-column: 2 / -1; }
.doc details ol { margin: 8px 0 2px; padding: 0; list-style: none; display: grid; gap: 4px; font: 14px var(--sans); color: var(--muted); }
.doc details li { display: flex; gap: 12px; }
.lib-group { margin-top: 30px; }
.lib-group h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
.lib-group h2 .c { font: 13px var(--sans); color: var(--muted); font-weight: 400; }

/* compare */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cmp { min-width: 640px; }
.cmp th, .cmp td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { vertical-align: bottom; background: var(--bg-2); padding-top: 14px; }
.cmp thead th small { display: block; font: 500 14px var(--sans); color: var(--muted); }
.cmp thead th a { font-weight: 600; letter-spacing: -.01em; }
.cmp thead .th-in { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cmp tbody th { font-weight: 400; color: var(--ink-2); font-size: 14px; width: 24%; position: sticky; left: 0; background: var(--card); z-index: 1; }
.cmp td { font: 550 15px var(--sans); }
.cmp td a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cmp td a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.cmp tr.gr th { font: 500 14px var(--sans); color: var(--muted); padding-top: 18px; }
.cmp tr.differs td, .cmp tr.differs th { background: var(--bg-2); }

/* about */
.prose { max-width: 68ch; color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); max-width: 900px; }
.steps li { display: grid; grid-template-columns: 56px 160px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: s; align-items: baseline; }
.steps li::before { content: "0" counter(s); font: 500 14px var(--sans); color: var(--faint); }
.steps b { font-weight: 600; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ink-2); }
.legend { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 18px; align-items: baseline; margin: 0; max-width: 900px; }
.legend dd { margin: 0; color: var(--ink-2); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--warn); }
.limits { padding-left: 18px; color: var(--ink-2); max-width: 72ch; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- compare tray */
.tray { position: fixed; left: 50%; bottom: 20px; z-index: 30; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .45); max-width: calc(100vw - 32px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.tray[hidden] { display: none; }
@starting-style { .tray { opacity: 0; transform: translate(-50%, 12px); } }
.tray .names { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tray .names b { font-family: var(--sans); }
.tray .btn { height: 32px; font-size: 14px; }
.tray .btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.tray .btn.x { background: transparent; color: var(--bg); border-color: transparent; padding: 0 8px; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 16px 40px; }
.foot strong { color: var(--ink); font-weight: 600; }
.foot p { margin: 4px 0 0; max-width: 60ch; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-content: start; }
.foot nav a { color: var(--ink-2); }
.foot .note { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 400px; }
  .live { display: none; }
}
@media (max-width: 900px) {
  .hdr .wrap { gap: 12px; }
  .menu-btn { display: inline-grid; order: 3; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; font-size: 15px; }
  .search { width: 200px; }
  .layout { grid-template-columns: 1fr; }
  .src { position: static; margin: 4px 12px 12px; box-shadow: none; }
  .src .sheet { height: 240px; }
  .hint { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .hdr .right { gap: 8px; flex: 1; justify-content: flex-end; min-width: 0; }
  .search { width: auto; flex: 1; min-width: 0; max-width: 260px; }
  .search kbd { display: none; }
  .search input { padding-right: 10px; }
  .page { padding-top: 20px; }
  .page-head h1 { font-size: 30px; }
  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 16px; }
  .cite .sheet { height: 130px; margin: 0 16px; }
  .cite-top { flex-wrap: wrap; padding: 16px; }
  .cite-top .value { font-size: 32px; }
  .cite-foot { padding: 12px 16px 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 18px 0 18px 16px; }
  .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts b { font-size: 22px; }
  .sec { padding: 40px 0; }
  .sec-head .btn { display: none; }
  .tools .count, #f-sort { display: none; }
  .tools .select, .tools .pop { flex: 1 1 40%; min-width: 0; }
  .tbl thead { display: none; }
  /* Phones: each model is a card; the chosen columns show as labelled values, two per line. */
  .tbl tbody tr.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; row-gap: 10px; padding: 14px 14px 14px 46px; position: relative; border-bottom: 1px solid var(--line); align-items: start; }
  .tbl tbody tr.item td { padding: 0; border: 0; background: transparent !important; }
  .tbl tr.item td.cb { position: absolute; left: 14px; top: 16px; width: auto; }
  .tbl tr.item td.model { grid-column: 1 / -1; }
  .tbl tr.item td.c { text-align: left; max-width: none; white-space: normal; }
  .tbl tr.item td.c::before { content: attr(data-label); display: block; font: 400 13px var(--sans); color: var(--muted); margin-bottom: 1px; }
  .tbl tr.item td.c .q { min-width: 0; }
  .tbl tr.item td.st { grid-column: 1 / -1; }
  .tbl tr.item td.chev { display: none; }
  .tbl tr.item.family td.chev { display: block; grid-column: 2; justify-self: end; width: auto; }
  .tbl tr.item.family td.st { grid-column: 1; }
  .tbl tr.item.family { background: var(--bg-2); }
  .tbl tr.member td.model { padding-left: 0; }
  .tbl .grp td { padding: 14px 14px 2px; display: block; }
  .count-tag { display: none; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .timeline > li > .pill { justify-self: start; }
  .head { flex-direction: column; }
  .head h1 { font-size: 30px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .kpi { padding: 14px 16px; }
  .kpi b { font-size: 20px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 10px 16px; }
  .row .v { grid-column: 1; grid-row: 2; }
  .row .s { grid-row: 1 / 3; grid-column: 2; }
  .src { margin: 4px 0 8px; border-radius: 0; border-left: 0; border-right: 0; }
  .src .sheet { margin: 0 14px; height: 200px; }
  .src-head, .src-actions { padding-left: 14px; padding-right: 14px; }
  .src .quote, .meta, .src .history { margin-left: 14px; margin-right: 14px; }
  .meta { grid-template-columns: 84px minmax(0, 1fr); }
  .doc { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .doc .acts { grid-column: 2; }
  .field { min-width: 0; width: 100%; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .steps li p { grid-column: 2; }
  .legend { grid-template-columns: 1fr; gap: 4px; }
  .legend dd { margin-bottom: 10px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .tray { left: 16px; right: 16px; transform: none; bottom: 12px; }
  @starting-style { .tray { opacity: 0; transform: translateY(12px); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}

.sib, .more-docs { margin-top: 14px; }
.sib > summary, .more-docs > summary { font-size: 14px; }
.more-docs .docs { margin-top: 10px; }

/* ---------------------------------------------------------------- country filter (Update 6) */
.pop { position: relative; }
.pop > summary { list-style: none; display: inline-flex; align-items: center; line-height: 1; color: var(--ink); white-space: nowrap; user-select: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop.on > summary { border-color: var(--ink-2); font-weight: 550; }
.pop-body {
  position: absolute; z-index: 15; top: calc(100% + 6px); left: 0;
  width: min(320px, calc(100vw - 32px)); padding: 12px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
  transform-origin: top left; /* opens from its trigger */
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
@starting-style { .pop[open] .pop-body { opacity: 0; transform: scale(.97) translateY(-2px); } }
.pop-body .seg { display: flex; width: 100%; }
.pop-body .seg button { flex: 1; }
.pop-body fieldset { border: 0; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
.opt small { grid-column: 2; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .opt:hover { background: var(--bg-2); } }
.pop-note { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 10px 8px 8px; }
.pop-body [data-cclear] { margin-left: 2px; }

.chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
.chips[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 500; transition: transform 120ms var(--ease-out), border-color 120ms var(--ease-out); }
.chip .ico { width: 12px; height: 12px; color: var(--muted); }
.chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--faint); } }

.ctry { padding-left: 8px; border-left: 1px solid var(--line-2); color: var(--muted); font-weight: 400; }
.grp-name .ctry { font: 400 14px var(--sans); color: var(--muted); }

.owner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.owner > div { background: var(--card); padding: 14px 16px; }
.owner dt { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.owner dd { margin: 0; font-size: 14px; }
.owner dd small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

@media (max-width: 700px) {
  .pop > summary { width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .pop-body { left: auto; right: 0; transform-origin: top right; }
}
@media (prefers-reduced-motion: reduce) { .chip:active { transform: none; } }

/* ---------------------------------------------------------------- table columns (Update 8) */
@media (min-width: 701px) {
  /* Each extra column gets room; wide tables scroll inside their box instead of squeezing. */
  .tbl table { min-width: calc(420px + var(--ncols, 4) * 110px); }
}
.tbl td.t { max-width: 24ch; font-size: 14px; line-height: 1.4; }
.tbl td.t .cv { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Qualifiers get a fixed slot so numbers in a column share one right edge. */
.q { display: inline-block; min-width: 3.6em; text-align: left; }
.th-sort { display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px; margin: -2px -4px; border: 0; background: none; font: inherit; color: inherit; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: color 120ms var(--ease-out); }
.th-sort .ico { width: 12px; height: 12px; opacity: .45; transition: transform 160ms var(--ease-out), opacity 120ms var(--ease-out); }
.th-sort.on { color: var(--ink); }
.th-sort.on .ico { opacity: 1; }
.th-sort.asc .ico { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .th-sort:hover { color: var(--ink); } .th-sort:hover .ico { opacity: .8; } }

.cols-body { width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain; }
.cols-body fieldset { margin: 6px 0 8px; }
.cols-body legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 8px 2px; }
.opt.one { padding: 6px 8px; }
.opt input:disabled + span { color: var(--muted); }
.pop-note.top { margin: 0 8px 4px; }
#f-cols .pop-body { left: auto; right: 0; transform-origin: top right; }
