:root {
  --bg: #eef0f2;
  --surface: #ffffff;
  --ink: #16191d;
  --ink-soft: #3a4048;
  --muted: #69717b;
  --line: #dde1e6;
  --line-strong: #c4cad1;
  --accent: #b3121b;
  --accent-dark: #8c0d14;
  --accent-soft: #fbeaeb;
  --steel: #2b3138;
  --steel-2: #20252b;
  --gold: #c9a24a;
  --radius: 4px;
  --shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 18px 36px -28px rgba(20, 25, 30, .55);
  --maxw: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16.5px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
picture { display: contents; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 50; }
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header { background: var(--steel); color: #fff; border-bottom: 3px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font: 700 21px/1 var(--font-head); letter-spacing: .01em; }
.brand:hover { color: #fff; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .dot { color: var(--gold); }
.brand small { display: block; font: 500 11px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #aab2bb; margin-top: 4px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff;
  font-size: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle::before { content: ""; display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { display: inline-block; padding: 9px 14px; font: 600 13px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: #dfe3e8; border-radius: var(--radius); }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

/* Layout */
main { padding: 26px 0 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px 42px; }
.panel + .panel { margin-top: 24px; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; font: 500 13px/1.4 var(--font-mono); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 9px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); }

.page-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.kicker { font: 600 12px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h1 { font: 700 clamp(27px, 3.8vw, 40px)/1.12 var(--font-head); letter-spacing: -.01em; margin: 0 0 10px; text-wrap: balance; }
h2 { font: 700 clamp(21px, 2.4vw, 26px)/1.2 var(--font-head); margin: 34px 0 12px; }
h3 { font: 700 18px/1.3 var(--font-head); margin: 26px 0 8px; }
.lead { font-size: 18px; color: var(--ink-soft); margin: 0; max-width: 72ch; text-wrap: pretty; }
.meta-line { font: 500 13px/1.4 var(--font-mono); color: var(--muted); margin: 12px 0 0; }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose h2:first-child { margin-top: 0; }

.note { background: #f6f7f9; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; font-size: 15px; color: var(--ink-soft); margin: 24px 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.hero-media { margin: 0; background: #f4f5f7; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 22px; padding: 0; list-style: none; }
.stats li { font: 500 13px/1.3 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats strong { display: block; font: 700 26px/1.1 var(--font-head); color: var(--ink); letter-spacing: 0; text-transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius); font: 600 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 20px; }
.section-head h2 { margin: 0; }
.section-head .more { font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* Tiles (families / variants) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.tile a:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile .media { aspect-ratio: 1 / 1; background: #f4f5f7; display: grid; place-items: center; }
.tile .media img { width: 100%; height: 100%; object-fit: contain; }
.tile .t { padding: 10px 12px 2px; font: 700 15px/1.25 var(--font-head); }
.tile .d { padding: 0 12px 12px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }

/* Family index list */
.family-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.family-list a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
.family-list a:hover { text-decoration: none; border-color: var(--accent); }
.family-list img { width: 84px; height: 84px; object-fit: contain; background: #f4f5f7; border-radius: 3px; }
.family-list .t { font: 700 17px/1.2 var(--font-head); display: block; }
.family-list .d { font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); display: block; margin-top: 4px; }

/* Variant page */
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.model-media { margin: 0; background: #f4f5f7; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.model-media img { margin: 0 auto; max-height: 520px; width: auto; }
.model-media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs img { width: 76px; height: 76px; object-fit: contain; background: #f4f5f7; border: 1px solid var(--line); border-radius: 3px; }
.keyspecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.keyspecs li { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: #fafbfc; }
.keyspecs span { display: block; font: 600 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.keyspecs strong { display: block; font: 700 18px/1.3 var(--font-head); margin-top: 3px; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.data caption { text-align: left; padding: 12px 14px; font: 600 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
table.data th, table.data td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--steel); color: #fff; font-weight: 600; white-space: nowrap; }
table.data tbody th { background: #f6f7f9; font-weight: 600; white-space: nowrap; }
table.data tbody tr:nth-child(even) td { background: #fafbfc; }
table.data tr:last-child td, table.data tr:last-child th { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { display: inline-block; max-width: 48%; }
.pager .next { margin-left: auto; text-align: right; }

/* Footer */
.site-footer { background: var(--steel-2); color: #cfd5db; }
.site-footer .wrap { padding: 36px 22px 30px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.footer-title { font: 700 18px/1.3 var(--font-head); margin: 0 0 8px; color: #fff; }
.footer-note { margin: 0; font-size: 14px; color: #9aa3ad; max-width: 54ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-content: start; }
.footer-nav a { color: #dfe3e8; font: 600 13px/1.9 var(--font-body); }
.footer-nav a:hover { color: #fff; }
.footer-credits { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #87909a; }

/* 404 */
.nf { text-align: center; padding: 40px 0; }
.nf .code { font: 700 84px/1 var(--font-head); color: var(--accent); margin: 0; }

@media (max-width: 900px) {
  .hero, .model { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: grid; place-items: center; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 13px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .panel { padding: 22px 18px 30px; }
  main { padding: 16px 0 40px; }
  .wrap { padding: 0 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .nav-toggle { display: none; }
  .panel { border: 0; box-shadow: none; padding: 0; }
}

.tech { padding: 14px 16px; font-size: 14px; }
.tech p { margin: 0 0 8px; }
.tech table.data { margin: 10px 0; }
.tech table.data td { border: 1px solid var(--line); }

/* v2 content blocks */
.longread{max-width:760px}
.longread h2{margin-top:36px;scroll-margin-top:20px}
.toc{border:1px solid #dde1e6;border-radius:10px;padding:14px 18px;margin:26px 0;max-width:760px;background:#f7f8fa}
.toc p{margin:0 0 6px;font-weight:700}
.toc ol{margin:0;padding-left:20px;columns:2;column-gap:28px}
.toc li{margin:3px 0;break-inside:avoid}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;margin:18px 0 0}
.facts div{border-top:1px solid #e3e6ea;padding-top:6px}
.facts dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#6b737d}
.facts dd{margin:2px 0 0;font-weight:600}
.faq{max-width:760px}
.faq details{border-bottom:1px solid #e3e6ea;padding:10px 0}
.faq summary{cursor:pointer;font-weight:600}
.faq p{margin:8px 0 0}
.related,.guide-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px 20px}
.guide-list li{padding:8px 0;border-bottom:1px solid #e3e6ea}
.guide-list .d{display:block;font-size:.88rem;color:#6b737d;margin-top:3px}
.aside{border-left:3px solid #c9a24a;padding:6px 16px;margin:22px 0;background:#faf7f0}
.aside ul{margin:4px 0 0;padding-left:18px}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:28px 0}
.model-media figcaption a{color:inherit;text-decoration:underline}
@media (max-width:720px){.toc ol{columns:1}.facts{grid-template-columns:1fr}}

/* HTML sitemap */
.sitemap-page .sitemap-toc{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;list-style:none;padding:0;margin:1rem 0 1.5rem}
.sitemap-page .sitemap-list{list-style:none;padding:0;margin:.5rem 0 1.5rem;columns:1}
.sitemap-page .sitemap-list li{margin:.25rem 0;break-inside:avoid}
@media (min-width:720px){.sitemap-page .sitemap-list{columns:2;column-gap:2rem}}
