/* Layout concept: a glossy museum catalog. Glass panels over a deep graphite ground,
   a six-band spectrum rule as the period signature, and a phosphor CRT for each machine's hero. */
:root {
  --bg: #eef1f6;
  --bg-2: #e2e7f0;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --line: rgba(20, 32, 60, 0.12);
  --line-strong: rgba(20, 32, 60, 0.22);
  --fg: #121a2b;
  --fg-2: #4a556d;
  --fg-3: #7a8499;
  --accent: #2f5fe0;
  --accent-soft: rgba(47, 95, 224, 0.10);
  --warn: #9a5b00;
  --warn-soft: rgba(214, 140, 20, 0.16);
  --gloss: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.35) 100%);
  --shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 10px 30px -12px rgba(18, 26, 43, 0.25);
  --crt-bg: #0b1410;
  --crt-fg: #7dffa8;
  --crt-glow: rgba(125, 255, 168, 0.45);
  --muted-card: rgba(255,255,255,0.35);

  --band-1: #61bb46; --band-2: #fdb827; --band-3: #f5821f;
  --band-4: #e03a3e; --band-5: #963d97; --band-6: #009ddc;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 6vw, 4rem);
  --radius: 14px;
  --radius-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d14; --bg-2: #111623;
    --surface: rgba(24, 30, 46, 0.66); --surface-strong: #161c2b;
    --line: rgba(170, 190, 230, 0.12); --line-strong: rgba(170, 190, 230, 0.24);
    --fg: #e9eef8; --fg-2: #a7b1c6; --fg-3: #6f7a91;
    --accent: #84a6ff; --accent-soft: rgba(132, 166, 255, 0.13);
    --warn: #ffc56b; --warn-soft: rgba(255, 190, 90, 0.14);
    --gloss: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 100%);
    --shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    --muted-card: rgba(24, 30, 46, 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d14; --bg-2: #111623;
  --surface: rgba(24, 30, 46, 0.66); --surface-strong: #161c2b;
  --line: rgba(170, 190, 230, 0.12); --line-strong: rgba(170, 190, 230, 0.24);
  --fg: #e9eef8; --fg-2: #a7b1c6; --fg-3: #6f7a91;
  --accent: #84a6ff; --accent-soft: rgba(132, 166, 255, 0.13);
  --warn: #ffc56b; --warn-soft: rgba(255, 190, 90, 0.14);
  --gloss: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 100%);
  --shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --muted-card: rgba(24, 30, 46, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--accent-soft), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; }
pre { font-family: var(--font-mono); font-size: 0.86rem; background: var(--crt-bg); color: var(--crt-fg); padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.spectrum { height: 6px; display: flex; }
.spectrum i { flex: 1; }
.spectrum i:nth-child(1) { background: var(--band-1); } .spectrum i:nth-child(2) { background: var(--band-2); }
.spectrum i:nth-child(3) { background: var(--band-3); } .spectrum i:nth-child(4) { background: var(--band-4); }
.spectrum i:nth-child(5) { background: var(--band-5); } .spectrum i:nth-child(6) { background: var(--band-6); }

/* Top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface-strong); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; display: grid; grid-template-rows: repeat(6, 1fr); box-shadow: 0 2px 8px -2px rgba(0,0,0,0.35); }
.brand-mark span:nth-child(1){background:var(--band-1)} .brand-mark span:nth-child(2){background:var(--band-2)} .brand-mark span:nth-child(3){background:var(--band-3)}
.brand-mark span:nth-child(4){background:var(--band-4)} .brand-mark span:nth-child(5){background:var(--band-5)} .brand-mark span:nth-child(6){background:var(--band-6)}
.topbar nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a { color: var(--fg-2); text-decoration: none; font-size: var(--step--1); font-weight: 500; padding: 6px 10px; border-radius: 999px; }
.topbar nav a:hover { background: var(--accent-soft); color: var(--fg); }

/* Home hero */
.home-hero { padding-block: 64px 36px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.home-hero h1 { font-size: var(--step-4); font-weight: 700; margin-top: 10px; max-width: 16ch; }
.home-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--band-6), var(--band-5) 40%, var(--band-4) 70%, var(--band-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p.lede { font-size: var(--step-1); color: var(--fg-2); max-width: 60ch; margin: 16px 0 0; }
.home-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; font-variant-numeric: tabular-nums; }
.home-stats div { display: grid; }
.home-stats b { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.home-intro { margin-top: 24px; max-width: 70ch; color: var(--fg-2); }
.home-intro p { margin: 0 0 10px; }
.home-stats span { color: var(--fg-3); font-size: var(--step--1); }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.search { flex: 1 1 260px; min-width: 0; position: relative; }
.search input { width: 100%; font: inherit; color: var(--fg); background: var(--surface-strong); border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 16px 11px 40px; box-shadow: var(--shadow); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--fg-3); stroke-width: 2; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: var(--step--1); font-weight: 500; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.family { margin-bottom: 40px; }
.family-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.family-head h2 { font-size: var(--step-2); }
.family-head span { color: var(--fg-3); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.mcard { position: relative; display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--gloss), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--fg); text-decoration: none; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-width: 0; }
.mcard::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--band-1), var(--band-2), var(--band-3), var(--band-4), var(--band-5), var(--band-6)); }
.mcard:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow), 0 24px 40px -24px var(--accent); }
.mcard .year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.mcard h3 { font-size: var(--step-1); }
.mcard p { margin: 0; color: var(--fg-2); font-size: var(--step--1); }
.mcard .go { margin-top: 6px; font-size: var(--step--1); font-weight: 600; color: var(--accent); }
.mcard.off { background: var(--muted-card); box-shadow: none; color: var(--fg-3); pointer-events: none; filter: grayscale(1); opacity: 0.5; }
.mcard.off::after { display: none; }
.mcard.off h3 { font-weight: 500; }
.empty { color: var(--fg-3); padding: 30px 0; }

/* Machine page */
.m-hero { padding-block: 40px 30px; }
.crumb { display: inline-flex; gap: 6px; align-items: center; font-size: var(--step--1); color: var(--fg-2); text-decoration: none; margin-bottom: 18px; }
.crumb:hover { color: var(--accent); }
.m-hero-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .m-hero-grid { grid-template-columns: 1fr; } }
.m-hero h1 { font-size: var(--step-4); font-weight: 700; margin-top: 8px; }
.m-hero .tagline { font-size: var(--step-1); color: var(--fg-2); margin: 12px 0 0; max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface-strong); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.facts dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.crt { position: relative; border-radius: 22px; padding: 18px; background: linear-gradient(160deg, #d9d2c3, #b9b09d); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6), inset 0 2px 0 rgba(255,255,255,0.6); max-width: 100%; }
.crt-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 16px / 20px; background: radial-gradient(ellipse at center, #10201a 0%, var(--crt-bg) 75%); color: var(--crt-fg); font-family: var(--font-mono); font-size: clamp(0.72rem, 1.6vw, 0.95rem); line-height: 1.45; padding: 7% 8%; overflow: hidden; text-shadow: 0 0 6px var(--crt-glow); text-transform: uppercase; white-space: pre-wrap; word-break: break-all; max-width: 100%; }
.crt-screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px); pointer-events: none; }
.crt-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.12), transparent 40%); pointer-events: none; border-radius: inherit; }
.crt-cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.crt-label { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 0 6px; font-family: var(--font-mono); font-size: 0.68rem; color: #4d473b; letter-spacing: 0.12em; text-transform: uppercase; }

.verify-legend { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: var(--step--1); color: var(--fg-2); max-width: 70ch; }
.badge-verify { display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); padding: 0.05em 0.5em; border-radius: 999px; vertical-align: 0.12em; white-space: nowrap; cursor: help; text-shadow: none; }

.m-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-bottom: 60px; }
@media (max-width: 960px) { .m-body { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.m-body > main { min-width: 0; }
.prose pre { max-width: 100%; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); align-self: start; display: grid; gap: 2px; }
.toc .eyebrow { margin-bottom: 8px; }
.toc a { color: var(--fg-2); text-decoration: none; font-size: var(--step--1); padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); background: var(--accent-soft); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
@media (max-width: 960px) {
  .toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 4; display: flex; overflow-x: auto; gap: 6px; padding-block: 10px; background: var(--bg); margin-inline: -16px; padding-inline: 16px; }
  .toc .eyebrow { display: none; }
  .toc a { white-space: nowrap; border-left: 0; border: 1px solid var(--line); border-radius: 999px; }
}

.sec { scroll-margin-top: 90px; padding: 30px 32px; margin-bottom: 22px; border-radius: 20px; background: var(--gloss), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 600px) { .sec { padding: 22px 18px; } }
.sec-head { display: grid; gap: 6px; margin-bottom: 18px; }
.sec-head h2 { font-size: var(--step-3); }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-size: var(--step-1); margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose > :last-child { margin-bottom: 0; }

.spec-group { margin-top: 22px; }
.spec-group:first-of-type { margin-top: 0; }
.spec-group h3 { font-size: var(--step-0); font-weight: 600; color: var(--fg-2); margin-bottom: 8px; font-family: var(--font-body); letter-spacing: 0.02em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-strong); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec th { width: 32%; min-width: 140px; font-weight: 500; color: var(--fg-2); }
table.spec td { font-variant-numeric: tabular-nums; }
table.spec td .note { display: block; color: var(--fg-3); font-size: 0.84rem; margin-top: 2px; }
table.spec.mono th { font-family: var(--font-mono); color: var(--fg); font-size: 0.85rem; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { padding: 18px; border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line); min-width: 0; display: grid; gap: 6px; align-content: start; }
.card .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.card h3 { font-size: var(--step-1); }
.card .prose { font-size: 0.94rem; color: var(--fg-2); }

.faq-tools { margin-bottom: 14px; }
.faq-tools input { width: 100%; max-width: 420px; font: inherit; color: var(--fg); background: var(--surface-strong); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa:last-child { border-bottom: 0; }
details.qa summary { cursor: pointer; list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 15px 4px; font-weight: 600; font-size: 1.02rem; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before { content: "+"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-weight: 700; margin-top: 1px; transition: transform .2s; }
details.qa[open] summary::before { content: "\2212"; }
details.qa .prose { padding: 0 4px 16px 40px; color: var(--fg-2); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; margin-bottom: 2px; }
.timeline .prose { color: var(--fg-2); font-size: 0.94rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

.intro { margin-bottom: 18px; }

.sources { font-size: var(--step--1); color: var(--fg-2); overflow-wrap: anywhere; word-break: break-word; }
.sources ol { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }

footer.site { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--fg-3); font-size: var(--step--1); }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--fg-2); }

.loading { padding: 80px 0; color: var(--fg-3); text-align: center; }

/* Vendors */
.vendor-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.status { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; }
.status-ok { color: #1c7a3c; background: rgba(40, 170, 90, 0.13); border-color: rgba(40, 170, 90, 0.3); }
.status-closed { color: var(--fg-2); background: var(--line); border-color: var(--line-strong); }
.status-succ { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.status-unk { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status-ok { color: #6ee39a; } }
:root[data-theme="dark"] .status-ok { color: #6ee39a; }
.vendor .offers { font-size: 0.86rem; font-weight: 600; color: var(--fg); }
.vendor.is-closed { background: var(--muted-card); }
.vendor-link { font-size: 0.84rem; word-break: break-all; margin-top: 4px; }
.vendor-group-title { font-size: var(--step-1); margin: 26px 0 12px; }
.vendor-group-title:first-of-type { margin-top: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mcard.off { opacity: 0.55; }

/* Sponsor */
.sponsor-slot { font-size: var(--step--1); color: var(--fg-3); padding-left: 14px; border-left: 1px solid var(--line-strong); }
.sponsor-slot a { color: var(--fg); font-weight: 600; text-decoration: none; }
.sponsor-slot a:hover { color: var(--accent); }
@media (max-width: 640px) { .sponsor-slot { display: none; } }
footer.site [data-sponsor-slot] a { font-weight: 600; }
.sponsor-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 26px; margin-bottom: 34px; border-radius: 20px; background: var(--gloss), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.sponsor-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, var(--band-1), var(--band-2), var(--band-3), var(--band-4), var(--band-5), var(--band-6)); }
.sponsor-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; padding: 14px 16px; border-radius: 14px; background: var(--fg); color: var(--bg); }
.sponsor-text h2 { font-size: var(--step-1); margin: 4px 0 4px; }
.sponsor-text p { margin: 0; color: var(--fg-2); font-size: 0.94rem; max-width: 70ch; }
.sponsor-cta { justify-self: end; white-space: nowrap; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--bg); }
@media (max-width: 720px) { .sponsor-band { grid-template-columns: 1fr; } .sponsor-mark { justify-self: start; } .sponsor-cta { justify-self: start; } }
.prose li code,.prose p code{overflow-wrap:anywhere;word-break:break-word}
/* Photos */
.photos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo { margin: 0; background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: var(--radius-sm, 12px); overflow: hidden; box-shadow: 0 10px 30px -20px rgba(0,0,0,.45); }
.photo.lead { grid-column: 1 / -1; }
.photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #f4f2ee; }
.photo figcaption { padding: 10px 14px 12px; font-size: .9rem; display: grid; gap: 4px; }
.photo figcaption small { color: var(--fg-2, #666); font-size: .78rem; }
.mcard .mthumb { display: block; width: calc(100% + 36px); margin: -18px -18px 6px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: #f4f2ee; }
.crt-screen.mixed { text-transform: none; }
.md-table-wrap { margin: 14px 0; }
table.md-table thead th { width: auto; min-width: 0; font-weight: 600; color: var(--fg); background: var(--surface); }
table.md-table th, table.md-table td { padding: 8px 12px; }
table.md-table td:first-child { font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }

/* ---------- Applearchives.com additions (B site) ---------- */
.home-banner { padding: 22px 16px 0; display: flex; justify-content: center; }
.home-banner img { width: 100%; max-width: 745px; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.home-banner + .home-hero { padding-top: 34px; }
.arch-band { margin-bottom: 40px; }
.arch-band .family-head a { font-size: var(--step--1); font-weight: 600; color: var(--accent); text-decoration: none; }
.arch-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.arch-card { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--gloss), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--fg); text-decoration: none; min-width: 0; transition: transform .18s ease, border-color .18s ease; }
.arch-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.arch-card img { width: 100%; height: 96px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.arch-card h3 { font-size: 1rem; }
.arch-card p { margin: 0; font-size: var(--step--1); color: var(--fg-2); }
.linkgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.linkcard { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line); min-width: 0; }
.linkcard-img { display: flex; align-items: center; justify-content: center; height: 104px; background: #fff; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; }
.linkcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.linkcard-noimg { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--fg-3); }
.linkcard h3 { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.linkcard h3 a { color: var(--fg); text-decoration: none; }
.linkcard h3 a:hover { color: var(--accent); text-decoration: underline; }
.linkcard-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.linkcard-meta .host { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-3); overflow-wrap: anywhere; }
.linkcard .prose { font-size: 0.9rem; color: var(--fg-2); }
.linkcard-note { margin: 0; font-size: 0.8rem; color: var(--fg-3); }
.linkcard.is-old { background: var(--muted-card); }
.linkcard.is-old .linkcard-img { filter: grayscale(1); opacity: 0.6; }
.lbadge { display: inline-block; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.1em 0.55em; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.lbadge-upd { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); cursor: help; }
.lbadge-arc { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); cursor: help; }
.lbadge-old { color: #b3261e; background: rgba(224, 58, 62, 0.12); border-color: rgba(224, 58, 62, 0.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lbadge-old { color: #ff8a80; } }
:root[data-theme="dark"] .lbadge-old { color: #ff8a80; }
.cover-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cover { margin: 0; display: grid; gap: 6px; min-width: 0; }
.cover img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; background: #fff; }
.cover figcaption { font-size: 0.78rem; color: var(--fg-2); text-align: center; overflow-wrap: anywhere; }
.page-hero-img { margin: 0; align-self: center; }
.page-hero-img img { width: 100%; max-width: 420px; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; margin-inline: auto; background: #fff; }
