/* NECIPS Guide — company-lookup tool style: white cards, blue primary, system sans. */
:root {
  --bg: #f5f7fa;
  --text: #1d2129;
  --text-2: #4e5969;
  --muted: #86909c;
  --border: #e5e6eb;
  --border-strong: #c9cdd4;
  --primary: #1668dc;
  --primary-hover: #0f56c2;
  --primary-soft: #eaf2ff;
  --success: #16a34a;
  --success-ink: #13803d;
  --success-soft: #e9f8ee;
  --warning: #e8710a;
  --warning-soft: #fff6eb;
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 6px 20px rgba(16, 24, 40, .08);
  --hero: linear-gradient(135deg, #0d47c4 0%, #1668dc 55%, #2b86f5 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 136px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.dialog-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--text); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
.icon { flex: none; vertical-align: -3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: .02em; }
.lede { font-size: 18px; line-height: 1.65; color: var(--text-2); margin: 0; max-width: 720px; }
.mono { font-family: var(--mono); }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #f0f6ff; color: var(--primary-hover); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-text { background: none; border: 0; padding: 8px 4px; font: 600 14px var(--font); color: var(--text-2); cursor: pointer; }
.btn-text:hover { color: var(--primary); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand strong { display: block; font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.brand small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 6px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav-action { height: 38px; padding: 0 16px; font-size: 14px; margin-left: 10px; }
.menu-toggle { display: none; height: 38px; padding: 0 14px; border: 1px solid var(--border-strong); background: #fff; border-radius: 8px; font: 600 14px var(--font); color: var(--text); cursor: pointer; }

/* Hero with the search */
.hero { position: relative; overflow: hidden; background: var(--hero); color: #fff; padding: 64px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 90%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 90%); pointer-events: none; }
.hero-inner { position: relative; max-width: 880px; text-align: center; }
.hero-kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.hero h1 { color: #fff; margin: 0 0 32px; }
.h1-main { display: block; font-size: clamp(36px, 5vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.h1-sub { display: block; margin: 14px auto 0; max-width: 34em; font-size: clamp(17px, 2vw, 20px); font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 24px 0 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, .9); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.lookup { text-align: left; }

.search-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 18px; box-shadow: 0 12px 32px rgba(9, 30, 66, .28); }
.search-bar > .icon { width: 20px; height: 20px; color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; height: 50px; border: 0; outline: none; background: transparent; font: 17px/1.4 var(--font); color: var(--text); }
.search-bar input::placeholder { color: #a9aeb8; }
.search-bar input.is-code, .search-bar input.mono { font-family: var(--mono); letter-spacing: .04em; }
.search-bar input[aria-invalid="true"] { color: var(--danger); }
.search-bar .btn { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 9px; }
.search-bar:focus-within { box-shadow: 0 12px 32px rgba(9, 30, 66, .28), 0 0 0 4px rgba(255, 255, 255, .45); }
.search-bar-sm { box-shadow: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 4px 4px 4px 14px; }
.search-bar-sm:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-bar-sm input { height: 44px; font-size: 16px; }
.search-bar-sm .btn { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 8px; }

.kinds-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.kinds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.kinds li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); transition: background .15s, color .15s; }
.kinds b { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); font: 600 11px/1 var(--mono); }
.kinds li.is-active { background: #fff; color: var(--primary); }
.kinds li.is-active b { background: var(--primary); color: #fff; }
.try-sample { background: none; border: 0; padding: 4px 0; color: #fff; font: 500 13px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .9; }
.try-sample:hover { opacity: 1; }
.status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.status.is-ok { color: var(--success-ink); }
.status.is-bad { color: var(--danger); }
.hero .status { color: rgba(255, 255, 255, .9); }
.hero .status.is-ok { color: #c4f5d3; }
.hero .status.is-bad { color: #ffd6d1; }

/* Segmented USCC display */
.uscc-cells { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; }
.uscc-cells.is-live { display: flex; margin-top: 14px; }
.hero .uscc-cells.is-live { width: fit-content; max-width: 100%; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.cell-group { display: inline-flex; flex-direction: column; gap: 4px; }
.cells { display: inline-flex; }
.cell { display: inline-grid; place-items: center; width: 1.5em; height: 1.9em; margin-left: -1px; font: 600 15px/1 var(--mono); color: var(--text); background: #fafbfc; border: 1px solid var(--border-strong); }
.cell:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
.cell:last-child { border-radius: 0 4px 4px 0; }
.cell:only-child { border-radius: 4px; }
.cell-group:nth-child(5) .cell { background: var(--primary-soft); border-color: #a9c8f5; color: var(--primary); }
.cell-label { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.uscc-cells.is-live .cell:empty { background: #fff; border-style: dashed; }
.uscc-cells.is-ok .cell-group:nth-child(5) .cell { background: var(--success-soft); border-color: #8fd3a8; color: var(--success-ink); }
.uscc-cells.is-bad .cell-group:nth-child(5) .cell { background: var(--danger-soft); border-color: #f3a59d; color: var(--danger); }

/* Result panels */
.result { margin-top: 16px; padding: 22px 24px; background: #fff; color: var(--text); border-radius: 12px; border-top: 3px solid var(--primary); box-shadow: var(--shadow); outline: none; }
.result.is-ok { border-top-color: var(--success); }
.result.is-bad { border-top-color: var(--danger); }
.result-label { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); }
.result.is-ok .result-label { color: var(--success-ink); background: var(--success-soft); }
.result.is-bad .result-label { color: var(--danger); background: var(--danger-soft); }
.result h3 { font-size: 20px; margin: 0 0 10px; }
.result p { margin: 0 0 12px; font-size: 15px; color: var(--text-2); }
.result p.result-value { padding: 10px 12px; font: 600 17px/1.5 var(--mono); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.result p.result-value[lang="zh"] { font-family: var(--font); }
.result ol { margin: 12px 0 16px; padding-left: 22px; font-size: 15px; color: var(--text-2); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-status { font-size: 13px; color: var(--success-ink); }
.fineprint { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.fineprint .icon { margin-right: 6px; }

/* Tool shortcuts under the hero */
.quick { position: relative; z-index: 2; margin-top: -64px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; color: var(--text); border: 1px solid transparent; border-radius: 12px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.quick-card:hover { text-decoration: none; transform: translateY(-2px); border-color: #cfe0fb; box-shadow: 0 12px 28px rgba(16, 24, 40, .12); }
.quick-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.quick-icon .icon { width: 22px; height: 22px; }
.quick-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.quick-card strong { font-size: 17px; line-height: 1.35; }
.quick-text { flex: 1; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.quick-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* Key numbers */
.stats { padding: 32px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.stats-grid > div { display: flex; flex-direction: column; padding: 20px 24px; }
.stats-grid > div + div { border-left: 1px solid var(--border); }
.stats dt { font-size: 14px; font-weight: 500; color: var(--text-2); }
.stats dd { margin: 0; }
.stats .stat-big { order: -1; font-size: 28px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--primary); }
.stats .stat-note { font-size: 12.5px; color: var(--muted); }

/* Homepage guide */
.guide-home { padding: 56px 0 64px; }
.section-head { max-width: 720px; margin: 0 auto 20px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.section-head p:not(.eyebrow) { margin: 0; color: var(--text-2); }
.chip-nav { position: sticky; top: 64px; z-index: 10; display: flex; justify-content: safe center; gap: 8px; margin: 0 auto 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--bg) 78%, rgba(245, 247, 250, 0)); }
.chip-nav::-webkit-scrollbar { display: none; }
.chip-nav a { flex: none; padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.chip-nav a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.guide-stack { max-width: 880px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.guide-stack > .card { padding: 32px 36px; margin-bottom: 16px; }
.guide-stack > .meta { text-align: center; }

/* Long-form content */
.prose h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 24px; }
.prose h2::before { content: ""; flex: none; width: 4px; height: 22px; border-radius: 2px; background: var(--primary); }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.prose p { margin: 0 0 14px; }
.prose > :last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.table-wrap { margin: 8px 0 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.55; }
.table-wrap thead th { font-size: 13.5px; font-weight: 600; color: var(--text); background: #f7f8fa; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap td { color: var(--text-2); }
.table-wrap td:first-child { font-weight: 600; color: var(--text); }
.record-table, .compare { min-width: 600px; }
.record-table td[lang="zh"] { white-space: nowrap; }
.record-table tbody th { font-weight: 600; color: var(--text); }
.record-table td:last-child { font-weight: 400; color: var(--text-2); }

.prose .step-list { list-style: none; counter-reset: step; margin: 20px 0; padding: 0; }
.prose .step-list li { counter-increment: step; position: relative; margin: 0; padding: 0 0 22px 52px; }
.prose .step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; }
.prose .step-list li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 6px; width: 1px; background: #c5d9f7; }
.prose .step-list li > strong:first-child { display: block; margin-bottom: 2px; color: var(--text); }

.prose .flag-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding: 0; }
.prose .flag-list li { position: relative; margin: 0; padding: 16px 16px 16px 48px; font-size: 15px; line-height: 1.6; background: var(--warning-soft); border: 1px solid #fde3c3; border-radius: 10px; }
.prose .flag-list li::before { content: "!"; position: absolute; left: 14px; top: 16px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--warning); color: #fff; font-size: 13px; font-weight: 800; }
.prose .flag-list li > strong:first-child { display: block; margin-bottom: 2px; }

.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 4px; }
.scope-col { padding: 18px 20px; border: 1px solid var(--border); border-radius: 10px; background: #f7f8fa; }
.scope-col.is-in { background: var(--success-soft); border-color: #c8ecd4; }
.scope-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 17px; }
.scope-col.is-in h3 .icon { color: var(--success); }
.scope-col.is-out h3 .icon { color: var(--muted); }
.scope ul { list-style: none; margin: 0; padding: 0; }
.prose .scope li { margin: 0; padding: 10px 0; border-top: 1px solid rgba(16, 24, 40, .07); font-size: 14.5px; line-height: 1.55; }
.scope li strong { display: block; }
.scope li a { font-weight: 600; white-space: nowrap; }

.compare thead th { font-size: 15px; }
.compare thead th:nth-child(2), .compare td:nth-child(2) { background: var(--primary-soft); }
.compare tbody th { width: 20%; font-weight: 600; color: var(--text-2); }
.compare td:first-child { font-weight: 400; color: var(--text-2); }
.compare td strong { color: var(--success-ink); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.tag-green { background: var(--success-soft); color: var(--success-ink); }

.name-parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.name-parts span { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.name-parts span:last-child { background: var(--primary-soft); border-color: #bcd5fa; }
.name-parts b { font-size: 22px; font-weight: 700; color: var(--text); }
.name-parts small { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }

/* Annotated screenshots */
.shot { margin: 20px 0 24px; }
.shot-frame { position: relative; display: block; overflow: hidden; line-height: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-narrow { max-width: 480px; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 13px/26px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .25); }
.shot figcaption { margin-top: 12px; }
.prose .pin-legend { counter-reset: pin; list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.prose .pin-legend li { counter-increment: pin; position: relative; margin: 0; padding-left: 32px; font-size: 14.5px; line-height: 1.6; }
.prose .pin-legend li::before { content: counter(pin); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 12px/22px var(--font); text-align: center; }
.prose .shot figcaption p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq h2 { margin: 0 0 12px; font-size: 24px; }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { position: relative; padding: 18px 40px 18px 0; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { top: 28px; transform: rotate(-135deg); }
.faq summary:hover { color: var(--primary); }
.faq details p { margin: 0 0 18px; font-size: 15px; line-height: 1.75; color: var(--text-2); }

/* Calls to action */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; }
.cta h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); }
.cta p:not(.eyebrow) { margin: 10px 0 0; max-width: 60ch; color: var(--text-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band { padding: 0 0 72px; }
.cta-blue { padding: 44px 48px; background: var(--hero); color: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.cta-blue h2 { color: #fff; }
.cta-blue .eyebrow { color: rgba(255, 255, 255, .8); }
.cta-blue p:not(.eyebrow) { color: rgba(255, 255, 255, .88); }
.cta-plain { margin-top: 16px; padding: 28px 32px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.cta-plain h2 { font-size: 22px; }

/* Guide pages */
.page-head { padding: 28px 0 36px; background: #fff; border-bottom: 1px solid var(--border); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--text-2); }
.page-head h1 { max-width: 24ch; margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); }
.meta { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; padding-top: 28px; padding-bottom: 72px; }
.guide-body { grid-column: 1; grid-row: 1; min-width: 0; }
.guide-aside { grid-column: 2; grid-row: 1; position: sticky; top: 84px; display: grid; gap: 16px; }
.article-card { padding: 4px 36px; }
.article-card > .prose { padding: 28px 0; }
.article-card > .prose + .prose { border-top: 1px solid var(--border); }
.article-card .prose h2 { font-size: 22px; }
.guide-body > .faq { margin-top: 16px; padding: 28px 36px; }
.toc { padding: 16px 14px; }
.toc summary { margin: 0 4px 8px; list-style: none; cursor: default; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.toc summary::-webkit-details-marker { display: none; }
.toc nav { display: flex; flex-direction: column; }
.toc a { padding: 7px 10px; border-radius: 6px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.toc a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.aside-note { padding: 18px; font-size: 14px; background: var(--primary-soft); border-color: #cfe0fb; }
.aside-note p { margin: 4px 0 10px; color: var(--text-2); }
.aside-note a { font-weight: 600; }

/* Embedded tools */
.tool { margin-bottom: 16px; padding: 28px 32px; }
.tool h2 { margin: 0 0 16px; font-size: 22px; }
.code-breakdown { display: grid; margin: 12px 0 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.code-breakdown div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 14px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.code-breakdown div:last-child { border-bottom: 0; }
.code-breakdown strong { color: var(--text); }
.code-breakdown code { align-self: center; font: 600 15px var(--mono); color: var(--text); }
.checklist-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.checklist-head h2 { margin-bottom: 10px; }
.progress-label { margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; font: 600 13px var(--mono); white-space: nowrap; color: var(--text-2); background: var(--bg); }
.progress { height: 6px; margin: 0 0 8px; overflow: hidden; border-radius: 999px; background: var(--bg); }
#progress-fill { display: block; width: 0; height: 100%; background: var(--success); transition: width .2s; }
.checklist-items { list-style: none; margin: 0; padding: 0; }
.checklist-items li { border-bottom: 1px solid var(--border); }
.checklist-items label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px 6px; font-weight: 400; cursor: pointer; border-radius: 8px; }
.checklist-items label:hover { background: #fafbfc; }
.checklist-items input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--success); cursor: pointer; }
.checklist-items strong { display: block; font-size: 15.5px; }
.checklist-items strong + span { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.checklist-items input:checked + span strong { color: var(--muted); text-decoration: line-through; }
.checklist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; font-size: 14px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 20px; font-weight: 800; color: #fff; }
.footer-id p:not(.footer-brand) { max-width: 44ch; margin: 0 0 10px; }
.footer-flag { font-size: 13px; color: #fbbf24; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer nav h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.site-footer nav a { padding: 5px 0; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 16px; padding-bottom: 24px; font-size: 13px; border-top: 1px solid #1e293b; }

/* 404 and clipboard fallback */
.not-found { padding: 96px 0 120px; text-align: center; }
.not-found h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 42px); }
.not-found .lede { margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.clipboard-fallback { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.clipboard-fallback > div { width: min(520px, 100%); padding: 24px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.clipboard-fallback h2 { margin: 0 0 8px; font-size: 20px; }
.clipboard-fallback textarea { width: 100%; min-height: 140px; margin: 8px 0 16px; padding: 10px; font: 14px/1.5 var(--mono); border: 1px solid var(--border-strong); border-radius: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > div:nth-child(3) { border-left: 0; }
  .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide-aside, .guide-body { grid-column: 1; grid-row: auto; }
  .guide-aside { position: static; }
  .aside-note { display: none; }
  .toc { padding: 0; }
  .toc summary { display: flex; justify-content: space-between; margin: 0; padding: 14px 16px; cursor: pointer; }
  .toc summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); }
  .toc[open] summary { border-bottom: 1px solid var(--border); }
  .toc[open] summary::after { content: "−"; }
  .toc nav { padding: 8px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-row { flex-wrap: wrap; gap: 0 12px; min-height: 56px; }
  .brand small { display: none; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 11px 12px; font-size: 16px; }
  .nav-action { height: 46px; margin: 8px 0 0; }
  .chip-nav { top: 56px; }
  html { scroll-padding-top: 124px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero { padding: 36px 0 96px; }
  .hero h1 { margin-bottom: 24px; }
  .search-bar { padding-left: 12px; gap: 8px; }
  .search-bar > .icon { display: none; }
  .search-bar input { height: 46px; font-size: 16px; }
  .search-bar .btn { height: 46px; padding: 0 16px; }
  .search-bar .btn .icon { display: none; }
  .hero-trust { gap: 6px 16px; font-size: 13px; }
  .quick { margin-top: -56px; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quick-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .quick-icon { grid-row: span 3; margin: 0; }
  .quick-label, .quick-more { display: none; }
  .stats-grid > div { padding: 16px; }
  .stats .stat-big { font-size: 22px; }
  .guide-home { padding: 40px 0 48px; }
  .guide-stack > .card, .guide-body > .faq { padding: 22px 18px; }
  .article-card { padding: 0 18px; }
  .article-card > .prose { padding: 22px 0; }
  .tool, .cta-plain { padding: 22px 18px; }
  .prose h2, .faq h2 { font-size: 21px; }
  .prose p, .prose li { font-size: 15.5px; }
  .prose .flag-list, .scope { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta-blue { padding: 28px 20px; border-radius: 12px; }
  .cta-band { padding-bottom: 48px; }
  .page-head { padding: 20px 0 28px; }
  .code-breakdown div { grid-template-columns: 110px 1fr; }
  .cell { width: 1.35em; font-size: 13.5px; }
  .pin { width: 20px; height: 20px; font-size: 11px; line-height: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .lookup, .guide-aside, .chip-nav, #guide-next, .cta-band { display: none; } }
