/* FEA Viewer website. Same system as the FEA Studio site (apps/fea-site/public/site.css): one blue accent
   on white and navy, system fonts only (no third-party requests). Every text colour passes 4.5:1. */
:root {
  color-scheme: light;
  --ink: #0B1424;
  --text: #1E293B;
  --muted: #4A5568;
  --faint: #5B6577;
  --line: #E3E8EF;
  --line-strong: #C9D3E0;
  --soft: #F5F7FA;
  --accent: #1557C9;
  --accent-dark: #0E3F96;
  --accent-soft: #E8F0FD;
  --dark: #0B1424;
  --dark-line: #22314A;
  --dark-chip: #15233A;
  --dark-text: #A9B6CA;
  --warn-bg: #FFF6E8;
  --warn-line: #F1D9AE;
  --warn-ink: #4A3200;
  --open: #9A4A00;
  --radius: 12px;
  --shadow: 0 16px 48px rgba(11, 20, 36, 0.12);
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FFFFFF; color: var(--text); font: 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 900px; }
.muted { color: var(--faint); }

/* ---------- header & footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 700 19px var(--display); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #334155; font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .btn { margin-left: 8px; }
.site-account { position: relative; margin-left: 8px; }
.site-account[hidden] { display: none; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink); font: 500 15px var(--body); cursor: pointer; }
.account-btn:hover, .account-btn[aria-expanded="true"] { border-color: var(--line-strong); background: var(--soft); }
.account-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-label { display: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font: 700 14px var(--body); flex: none; }
.account-avatar-lg { width: 44px; height: 44px; font-size: 17px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 340px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.account-menu[hidden] { display: none; }
.account-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-head > div { display: flex; flex-direction: column; min-width: 0; }
.account-head strong { color: var(--ink); font-size: 16px; }
.account-email { color: var(--faint); font-size: 14px; overflow-wrap: anywhere; }
.account-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0; font-size: 14px; }
.account-rows dt { color: var(--faint); }
.account-rows dd { margin: 0; color: var(--text); }
.account-actions { display: flex; gap: 8px; }
.account-actions .btn { flex: 1 1 auto; margin: 0; padding: 0 14px; white-space: nowrap; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .js .site-nav .btn { margin: 8px 0 0; }
  .js .site-account { margin: 8px 0 0; }
  .js .site-account .btn { width: 100%; }
  .js .account-btn { width: 100%; border-radius: 8px; padding: 0 8px; }
  .js .account-label { display: inline; max-width: none; }
  .js .account-menu { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .js .account-actions .btn { margin: 0; }
}
.site-footer { background: var(--dark); color: var(--dark-text); padding: 64px 0 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-about { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer-about p { font-size: 15px; max-width: 320px; }
.footer-brand { font: 700 20px var(--display); color: #fff; }
.site-footer nav { flex: 0 1 160px; display: flex; flex-direction: column; gap: 2px; }
.site-footer h2 { font: 600 13px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; color: #C6D1E1; text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--dark-line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------- type & buttons */
.eyebrow { display: block; font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.display { font-weight: 700; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
.display-xl { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); }
.h2-sm { font-size: clamp(24px, 2.8vw, 32px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1px solid transparent; font: 600 16px var(--body); text-decoration: none; cursor: pointer; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

/* ---------- sections */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.band-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: #E7ECF4; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead { color: var(--dark-text); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head { padding: 80px 0 56px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .stack { gap: 20px; }
.hero { padding: 88px 0 0; background: var(--soft); border-bottom: 1px solid var(--line); text-align: center; }
.hero .stack { align-items: center; gap: 24px; }
.hero h1 { max-width: 940px; }
.hero .lead { max-width: 700px; font-size: 19px; }
.hero-shot { width: 100%; max-width: 1200px; margin-top: 40px; border-radius: 12px 12px 0 0; border: 1px solid #D5DDE8; border-bottom: 0; box-shadow: 0 -2px 60px rgba(11, 20, 36, 0.1); }

/* ---------- media rows */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split.reverse { flex-direction: row-reverse; }
.split-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.split-text p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.split-media { flex: 1 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.split-media img { border-radius: var(--radius); border: 1px solid #D5DDE8; box-shadow: var(--shadow); background: #fff; }
.split-media figcaption { font-size: 14px; color: var(--faint); }
.split-text ul, .split-text ol { margin: 0; padding-left: 22px; line-height: 1.75; }
.rows { display: flex; flex-direction: column; gap: 112px; }

/* ---------- grids & cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card.tint { background: #F5F8FE; }
.card .status { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.card-links { display: flex; gap: 20px; margin-top: auto; padding-top: 4px; }
.card-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tiles > div { background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tiles .num { font: 500 13px var(--mono); color: var(--accent); }
.tiles h3 { font-size: 20px; }
.tiles p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.stat { font: 700 44px var(--display); color: var(--ink); line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 13px var(--mono); padding: 6px 10px; border-radius: 6px; background: var(--dark-chip); color: #DCE5F2; }
.code-group { border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.code-group h3 { font: 600 15px var(--body); }
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.pill-nav a:hover { border-color: var(--accent); color: var(--accent); }
.cta { border-radius: 16px; background: var(--accent); color: #fff; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta.dark { background: var(--dark); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta p { color: #DCE7FB; font-size: 17px; max-width: 640px; margin-top: 10px; }
.cta.dark p { color: var(--dark-text); }

/* ---------- guide steps */
.step-index { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.step-index a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #D5DDE8; background: #fff; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.step-index a:hover { border-color: var(--accent); }
.step-index span, .step-num { font: 500 13px var(--mono); color: var(--accent); }
.step { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.step .split-text { flex-basis: 400px; gap: 18px; }
.step-title { display: flex; align-items: center; gap: 14px; }
.step-title .step-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; }
.step-title h2 { font-size: clamp(24px, 2.8vw, 32px); }

/* ---------- tables, callouts, FAQ */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; }
thead th { background: var(--soft); color: var(--ink); font-weight: 600; }
tbody tr + tr, thead + tbody tr { border-top: 1px solid #EEF1F5; }
tbody th { color: var(--ink); font-weight: 600; width: 34%; }
.wide-table { min-width: 640px; }
.diff { font: 14px var(--mono); white-space: nowrap; color: var(--ink); }
.diff.open { color: var(--open); }
kbd { font: 13px var(--mono); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--soft); color: var(--ink); white-space: nowrap; }
.callout { border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.callout.info { background: #EEF3FC; color: var(--text); }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); flex-direction: column; gap: 6px; }
.callout.warn h3 { font: 600 16px var(--body); color: #5C3B00; }
.callout svg { flex: none; margin-top: 2px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 20px; }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px var(--body); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: #fff; }
.plan.lead-plan { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(21, 87, 201, 0.14); }
.plan h2 { font-size: 24px; }
.plan .who { font-size: 15px; color: var(--muted); }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan .price strong { font: 700 40px var(--display); color: var(--ink); }
.plan .price span { font-size: 15px; color: var(--faint); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='%231557C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- download */
.download-card { background: #fff; border: 1px solid #D5DDE8; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px rgba(11, 20, 36, 0.08); }
.download-card .version { font: 700 26px var(--display); color: var(--ink); }
.download-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.download-card dt { color: var(--faint); }
.download-card dd { margin: 0; font: 13px var(--mono); color: var(--text); word-break: break-all; }
.note { gap: 12px; padding: 28px; }
.note-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.note h3 { font-size: 22px; }
.note ul { margin: 0; padding-left: 20px; line-height: 1.75; }

/* ---------- forms */
.form-card { background: #fff; border: 1px solid #D5DDE8; border-radius: 16px; padding: 32px; box-shadow: 0 20px 50px rgba(11, 20, 36, 0.08); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form-grid .full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { min-height: 44px; padding: 0 12px; border: 1px solid #B9C5D6; border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 110px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B42318; font-size: 15px; }
.form-error:empty { display: none; }
.thanks { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }

/* ---------- legal */
.legal { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.legal-toc { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc .toc-title { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.legal-toc a { display: inline-flex; align-items: center; min-height: 36px; color: #334155; font-size: 15px; text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-body { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 40px; }
.legal-body article { display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 { font-size: 24px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; }
.legal-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.summary-box { border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.summary-box > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.summary-box h2 { font: 600 16px var(--body); }
.summary-box ul { gap: 0; }
.summary-box li { font-size: 15px; line-height: 1.7; }

/* ---------- about */
.placeholder-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); background: #EEF2F7; border: 1px dashed #B9C5D6; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--faint); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .page-head { padding: 56px 0 40px; }
  .rows { gap: 72px; }
  .cta, .form-card, .download-card, .plan { padding: 24px; }
  .split, .step { gap: 32px; }
}

/* ======================================================================== FEA Viewer additions */
.brand svg { flex: none; }
.btn svg { flex: none; }
.lede-note { font-size: 14px; color: var(--faint); }

/* ---------- logo strip of programs */
.programs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.program { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.program strong { font: 600 16px var(--display); color: var(--ink); }
.program span { font: 12px var(--mono); color: var(--faint); }

/* ---------- format table */
.ext { font: 13px var(--mono); color: var(--ink); white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.browser { background: #E7F6EC; color: #145C2E; }
.tag.server { background: var(--accent-soft); color: var(--accent-dark); }
.tag.desktop { background: #F1ECFB; color: #4B2A8F; }
.legend-tags { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.legend-tags span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- docs layout (tutorials, manual) */
.docs { display: flex; align-items: flex-start; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.docs-side { position: sticky; top: 24px; flex: 0 0 240px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 48px); overflow-y: auto; }
.docs-side-title { font: 600 13px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); text-decoration: none; margin-bottom: 8px; min-height: 32px; display: inline-flex; align-items: center; }
.docs-side a:not(.docs-side-title) { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #334155; font-size: 15px; line-height: 1.4; text-decoration: none; }
.docs-side a:not(.docs-side-title):hover { background: var(--soft); color: var(--accent); }
.docs-side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.side-num { font: 12px var(--mono); color: var(--faint); }
.docs-body { flex: 1 1 auto; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 22px; }
.docs-body h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.015em; }
.docs-body h2 { font-size: 26px; margin-top: 28px; }
.docs-body h3 { font-size: 19px; margin-top: 8px; }
.docs-body p, .docs-body li { font-size: 16.5px; line-height: 1.75; }
.docs-body ul, .docs-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.docs-body figure { margin: 6px 0; display: flex; flex-direction: column; gap: 10px; }
.docs-body figure img { border-radius: 10px; border: 1px solid #D5DDE8; box-shadow: 0 10px 30px rgba(11, 20, 36, 0.08); background: #fff; }
.docs-body figcaption { font-size: 14px; color: var(--faint); }
.docs-body .table-box table { font-size: 15px; }
.docs-body .table-box th, .docs-body .table-box td { padding: 10px 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--faint); }
.meta-row strong { color: var(--text); font-weight: 600; }
.ui { font-weight: 600; color: var(--ink); }
.path { font-weight: 600; color: var(--ink); white-space: nowrap; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 14px !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 14px/30px var(--body); text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; max-width: 48%; }
.pager a:hover { border-color: var(--accent); }
.pager a span { font-size: 13px; font-weight: 500; color: var(--faint); }
.pager-next { margin-left: auto; text-align: right; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hub-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.hub-card:hover { border-color: var(--accent); }
.hub-card img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 45%; border-bottom: 1px solid var(--line); }
.hub-card div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.hub-card h3 { font-size: 19px; }
.hub-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.hub-card .eyebrow { font-size: 12px; }

@media (max-width: 900px) {
  .docs { flex-direction: column; gap: 24px; padding-top: 24px; }
  .docs-side { position: static; flex-basis: auto; width: 100%; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
  .pager a { max-width: none; flex: 1; }
}
