/* Compact dataset pages. Brand tokens match webapp/app/globals.css. */
:root {
  color-scheme: dark;
  --bg: #020617;
  --canvas: #030812;
  --surface: #0b1220;
  --surface-raised: #111827;
  --fg: #f1f5f9;
  --fg-2: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, .16);
  --accent: #00b5f1;
  --brand-blue: #0039a6;
  --brand-orange: #ff5e14;
  --container: 1240px;
  --gutter: 32px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--fg); font: 14px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, dl { margin: 0; padding: 0; }
ul { list-style: none; }
dd { margin: 0; }
code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: rgba(0, 181, 241, .28); color: #fff; }
.container, .dataset-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--fg); color: var(--bg); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Short brand navigation. */
.topnav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(2, 6, 23, .88); backdrop-filter: blur(20px); }
.topnav-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: inline-flex; flex-shrink: 0; align-items: center; }
.brand-logo { width: auto; height: 32px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 32px; color: var(--muted); font-size: 13px; }
.desktop-nav a { padding-block: 12px; transition: color .18s; }
.desktop-nav a:hover, .footer-top a:hover, .footer-bottom a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.shell-action, .dataset-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 7px; padding: 11px 19px; font-size: 13px; font-weight: 600; line-height: 1.4; transition: background .18s, border-color .18s, box-shadow .18s; }
.shell-action, .btn-app { background: linear-gradient(180deg, #ff7a3c, var(--brand-orange)); border-color: rgba(255, 94, 20, .45); color: #fff; box-shadow: 0 4px 16px rgba(255, 94, 20, .1); }
.shell-action:hover, .btn-app:hover { background: linear-gradient(180deg, #ff8d55, #e84f0b); box-shadow: 0 8px 28px rgba(255, 94, 20, .2); }
.shell-action svg, .dataset-button svg, .text-link svg, .document-links svg { flex-shrink: 0; width: 17px; height: 17px; }
.btn-secondary { border-color: rgba(0, 181, 241, .26); background: rgba(0, 181, 241, .055); color: #c9eeff; }
.btn-secondary:hover { border-color: rgba(0, 181, 241, .6); background: rgba(0, 181, 241, .12); }
.menu-toggle, .dialog-close { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--fg-2); }
.menu-toggle { display: none; }
.menu-toggle svg, .dialog-close svg { width: 21px; height: 21px; }
.navigation-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: 16px auto; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--fg); }
.navigation-dialog::backdrop { background: rgba(2, 6, 23, .85); backdrop-filter: blur(6px); }
.navigation-dialog h2 { font-size: 21px; }
.navigation-dialog ul { margin-top: 20px; border-top: 1px solid var(--border); }
.navigation-dialog li { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.navigation-dialog li a { flex: 1; padding-block: 16px; }
.navigation-dialog li svg { width: 17px; height: 17px; color: var(--muted); }
.navigation-dialog .shell-action { display: flex; margin-top: 24px; }
body.navigation-open { overflow: hidden; }

/* Clear subject, short summary, app action and verified file choices. */
.dataset-hero, .catalog-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse at 86% 40%, rgba(0, 57, 166, .14), transparent 50%), radial-gradient(ellipse at 2% 0%, rgba(0, 181, 241, .055), transparent 50%), var(--canvas); }
.dataset-hero::before, .catalog-hero::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(#000, transparent); content: ""; pointer-events: none; }
.dataset-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 64px; padding-top: 10px; color: var(--muted); font-size: 12px; }
.dataset-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.dataset-breadcrumb a:hover { color: var(--accent); }
.dataset-breadcrumb [aria-current] { overflow-wrap: anywhere; }
.dataset-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 72px; align-items: center; padding-block: 24px 54px; }
.hero-copy { min-width: 0; }
.dataset-kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.kicker-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--brand-orange); }
.dataset-hero h1 { margin-top: 18px; font-size: clamp(36px, 4.1vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.title-subject { display: block; margin-top: 8px; color: #44c9f7; font-size: .88em; }
.dataset-lede { max-width: 52ch; margin-top: 20px; color: var(--fg-2); font-size: 15px; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.release-facts { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 34px; }
.release-facts > div { padding-right: 36px; border-right: 1px solid var(--border); }
.release-facts > div:last-child { padding-right: 0; border-right: 0; }
.release-facts dt { color: var(--muted); font-size: 11px; }
.release-facts dd { margin-top: 3px; color: var(--fg); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dataset-actions { position: relative; scroll-margin-top: 96px; min-width: 0; padding: 24px; border: 1px solid rgba(0, 181, 241, .23); border-radius: 16px; background: linear-gradient(145deg, #0c1a2c, #07111e); box-shadow: 0 22px 65px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .03); }
.dataset-actions::before { position: absolute; top: -1px; left: 30px; right: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; }
.download-card-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.download-card-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.file-count { flex-shrink: 0; color: var(--muted); font-size: 11px; }
.download-card-copy { margin-top: 7px; color: var(--muted); font-size: 12px; }
.download-list { margin-top: 20px; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid var(--border); }
.download-name { display: flex; min-width: 0; align-items: center; gap: 12px; }
.file-icon { display: grid; width: 38px; height: 42px; flex-shrink: 0; place-items: center; border: 1px solid rgba(0, 181, 241, .14); border-radius: 8px; background: rgba(0, 181, 241, .05); color: #70d5f8; }
.file-icon svg { width: 18px; height: 22px; }
.download-name h3 { font-size: 13px; font-weight: 600; }
.download-name p { margin-top: 2px; color: var(--muted); font-size: 11px; }
.download-action { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; border: 1px solid rgba(0, 181, 241, .28); border-radius: 8px; color: #9ce4fc; background: rgba(0, 181, 241, .08); }
.download-action:hover { border-color: var(--accent); background: rgba(0, 181, 241, .16); }
.download-action svg { width: 19px; height: 19px; }
.document-links { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 14px; }
.document-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; color: var(--fg-2); font-size: 12px; }
.document-links a:hover, .text-link:hover { color: var(--accent); }
.document-links svg { width: 13px; height: 13px; color: var(--muted); }
.download-source { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.download-source a { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; color: #c9eeff; }
.download-source svg { width: 13px; height: 13px; }

/* Compact body: summary, bounded preview and optional details. */
.dataset-layout { padding-block: 38px 52px; }
.dataset-content { min-width: 0; }
.dataset-section { scroll-margin-top: 100px; }
.dataset-section + .dataset-section { margin-top: 34px; }
.dataset-section-title { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.overview-section p { max-width: 86ch; margin-top: 12px; color: var(--fg-2); }
.overview-section .overview-note { margin-top: 7px; color: var(--muted); font-size: 12px; }
.overview-section .coverage-summary { color: var(--fg); }
.overview-section .dataset-attribution { margin-top: 8px; color: var(--muted); font-size: 12px; }
.dataset-attribution a { color: #8bdfff; }
.dataset-attribution a:hover { text-decoration: underline; text-underline-offset: 3px; }
.reading-section .section-copy { max-width: 96ch; margin-top: 12px; color: var(--fg-2); font-size: 13px; }
.reading-context-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.reading-context-card { min-width: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.reading-context-card h3 { font-size: 14px; font-weight: 500; letter-spacing: -.01em; line-height: 1.5; }
.reading-context-card p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.dataset-catalog .reading-section { margin-top: 36px; }
.dataset-catalog .reading-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.preview-section .section-heading { margin-bottom: 12px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-2); }
.dataset-table-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #080f1c; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.preview-controls { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; max-width: 540px; }
.preview-controls > svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
.input { width: 100%; min-width: 0; min-height: 44px; border: 0; padding: 10px 4px; background: transparent; color: var(--fg); font-size: 12px; }
.input::placeholder { opacity: 1; color: var(--muted); }
.input:focus-visible { outline-offset: 0; border-radius: 4px; }
.reset-button { min-height: 44px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.reset-button:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.sample-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.table-scroll { max-height: var(--preview-height, 294px); overflow: auto; width: 100%; scrollbar-width: thin; scrollbar-color: #334155 #080f1c; }
.table-scroll.is-expanded { max-height: none; }
.dataset-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.dataset-table th, .dataset-table td { text-align: left; padding: 11px 16px; white-space: nowrap; border-bottom: 1px solid rgba(148, 163, 184, .1); }
.dataset-table thead th { position: sticky; z-index: 2; top: 33px; height: 40px; background: #0f1929; color: var(--fg-2); font-size: 11px; font-weight: 500; }
.dataset-table thead tr:first-child th { top: 0; height: 33px; padding-block: 7px; background: #0c1524; color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.dataset-table td { color: #cbd5e1; font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.dataset-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .012); }
.dataset-table tbody tr:hover { background: rgba(0, 181, 241, .045); }
.dataset-table .num-col { text-align: right; }
.dataset-table .growth-start { border-left: 1px solid rgba(148, 163, 184, .1); }
.dataset-table tbody tr:last-child td { border-bottom: 0; }
.preview-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; min-height: 50px; }
.preview-expand { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; border: 0; padding: 8px 0 8px 12px; background: transparent; color: #8bdfff; font-size: 11px; }
.preview-expand:hover { color: #fff; }
.preview-expand[aria-expanded="true"] .detail-chevron { transform: rotate(180deg); }
.table-explanation { margin-top: 10px; color: var(--muted); font-size: 11px; }
.empty-result { padding: 18px; color: var(--fg-2); font-size: 13px; }
.details-section > h2 { margin-bottom: 15px; }
.details-list { border-top: 1px solid var(--border); }
.dataset-details { scroll-margin-top: 96px; border-bottom: 1px solid var(--border); }
.dataset-details > summary { display: flex; min-height: 60px; align-items: center; gap: 20px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.detail-title { font-size: 14px; font-weight: 500; }
.detail-meta { margin-left: auto; color: var(--muted); font-size: 11px; }
.detail-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform .2s; }
.dataset-details[open] > summary .detail-chevron, .dataset-faq[open] > summary .detail-chevron { transform: rotate(180deg); }
.dataset-details > summary:hover .detail-title { color: #8bdfff; }
.detail-body { padding: 4px 0 24px; }
.detail-body p { margin-top: 12px; color: var(--fg-2); font-size: 13px; }
.detail-body a { color: #8bdfff; }
.detail-body a:hover { text-decoration: underline; text-underline-offset: 4px; }
.field-row { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; padding-block: 14px; border-top: 1px solid rgba(148, 163, 184, .1); }
.field-row dt { overflow-wrap: anywhere; font-size: 12px; }
.field-type { display: block; margin-top: 3px; color: var(--muted); font: 10px/1.7 var(--mono); }
.field-row dd { color: var(--fg-2); font-size: 12px; overflow-wrap: anywhere; }
.field-category { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.practical-notes { margin-top: 16px; }
.practical-notes h3 { margin-bottom: 10px; font-size: 13px; font-weight: 500; }
.practical-notes li { margin-top: 7px; padding-left: 16px; position: relative; color: var(--fg-2); font-size: 12px; }
.practical-notes li::before { position: absolute; left: 0; content: "·"; color: var(--accent); }
.dataset-faq { border-top: 1px solid var(--border); }
.dataset-faq summary, .checksum summary { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 12px; list-style: none; }
.dataset-faq p { margin-top: 0; margin-bottom: 12px; }
.checksum { margin-top: 20px; }
.checksum code { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.file-details-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; font-size: 12px; }
.file-details-list > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 7px; }
.file-details-list dt { color: var(--muted); }
.file-details-list dd { text-align: right; }
.dataset-findings h3 { margin-top: 12px; font-size: 14px; font-weight: 500; }
.dataset-findings .dataset-container { padding: 0; }
.dataset-reading-grid { margin-top: 14px; }
.dataset-reading-card { padding-block: 12px; border-top: 1px solid var(--border); }
.dataset-reading-card b { color: var(--muted); font-size: 10px; }
.dataset-reading-card h3 { margin-top: 4px; }
.dataset-reading-card p { margin-top: 6px; }
.dataset-findings li { margin-top: 8px; font-size: 12px; color: var(--fg-2); }

/* A single, prominent next step and a slim footer. */
.app-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; padding: 32px 36px; border: 1px solid rgba(0, 181, 241, .18); border-radius: 16px; background: radial-gradient(ellipse at 90% 0%, rgba(255, 94, 20, .1), transparent 60%), linear-gradient(125deg, #0c1b31, #081321 70%); }
.app-cta .dataset-kicker { font-size: 9px; }
.app-cta h2 { margin-top: 10px; font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.app-cta > div:first-child { min-width: 0; }
.app-cta p:not(.dataset-kicker) { margin-top: 10px; color: var(--muted); font-size: 13px; }
.cta-actions { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: 6px; }
.cta-actions .dataset-button { min-width: 155px; }
.cta-actions .text-link { color: var(--muted); font-size: 11px; }
.pagefoot { border-top: 1px solid var(--border); background: #010408; }
.footer-inner { padding-block: 30px 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top .brand-logo { height: 26px; }
.footer-top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.footer-top nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(148, 163, 184, .1); color: var(--muted); font-size: 10px; }

/* The collection uses the same brand language and concise subject cards. */
.catalog-intro { padding-bottom: 42px; }
.catalog-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: 24px; }
.catalog-title { max-width: 800px; margin-top: 16px; font-size: clamp(32px, 3.7vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; overflow-wrap: anywhere; }
.catalog-hero-grid > .dataset-button { flex-shrink: 0; }
.catalog-layout { padding-block: 36px 52px; }
.catalog-search { max-width: 540px; margin-bottom: 28px; padding: 4px 14px; border: 1px solid var(--border); border-radius: 8px; background: #080f1c; }
.catalog-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.catalog-controls button { min-width: 148px; }
.catalog-layout > .empty-result { padding-left: 0; }
.catalog-section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.catalog-section-head h2 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.catalog-section-head p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.catalog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-row { display: flex; min-width: 0; flex-direction: column; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(140deg, rgba(15, 25, 43, .88), rgba(8, 15, 28, .86)); transition: background .2s, border-color .2s, box-shadow .2s; }
.catalog-row:hover { border-color: rgba(0, 181, 241, .4); background: #0c192a; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.catalog-row-top { display: flex; align-items: center; justify-content: space-between; }
.catalog-file-icon { color: var(--accent); }
.catalog-file-icon svg { width: 22px; height: 24px; }
.catalog-row-top > svg { width: 17px; height: 17px; color: var(--muted); }
.catalog-row h3 { font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.catalog-row:hover h3 { color: #8bdfff; }
.catalog-row p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.catalog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.catalog-meta span:first-child { color: var(--fg-2); }
.catalog-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }

@media (max-width: 1023px) {
  :root { --gutter: 24px; }
  .dataset-hero-grid { gap: 32px; grid-template-columns: minmax(0, 1fr) 300px; }
  .dataset-hero h1 { font-size: 42px; }
  .desktop-nav { margin-right: 12px; gap: 22px; }
  .release-facts { gap: 16px 24px; }
  .release-facts > div { padding-right: 24px; }
  .catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .dataset-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 20px 36px; }
  .dataset-actions { max-width: none; }
  .dataset-hero h1 { font-size: clamp(36px, 5.8vw, 48px); }
  .dataset-lede { max-width: 65ch; }
  .catalog-hero-grid { align-items: start; flex-direction: column; gap: 24px; }
  .app-cta { align-items: start; }
  .app-cta h2 { font-size: 27px; }
  .reading-context-grid { gap: 20px; }
  .footer-top { align-items: start; flex-direction: column; gap: 16px; }
  .footer-top nav { gap: 6px 24px; }
}
@media (max-width: 639px) {
  :root { --gutter: 20px; }
  .topnav-inner { min-height: 64px; gap: 12px; }
  .brand-logo { height: 27px; }
  .header-actions { gap: 10px; }
  .shell-action { min-height: 42px; padding: 10px 12px; font-size: 11px; }
  .shell-action svg { width: 14px; height: 14px; }
  .menu-toggle { width: 38px; height: 42px; }
  .dataset-breadcrumb { min-height: 58px; font-size: 11px; gap: 8px; padding-top: 4px; }
  .dataset-hero-grid { padding-top: 14px; gap: 28px; }
  .dataset-kicker { font-size: 9px; }
  .dataset-hero h1 { margin-top: 16px; font-size: 37px; line-height: 1.09; }
  .title-subject { font-size: .88em; margin-top: 7px; }
  .dataset-lede { margin-top: 17px; font-size: 13px; }
  .hero-buttons { gap: 10px; margin-top: 22px; }
  .hero-buttons .dataset-button { flex: 1; min-width: 0; padding-inline: 10px; font-size: 11px; gap: 7px; }
  .hero-buttons .dataset-button svg { width: 15px; height: 15px; }
  .release-facts { gap: 18px; justify-content: space-between; margin-top: 26px; }
  .release-facts > div { padding-right: 18px; }
  .release-facts dd { font-size: 14px; }
  .release-facts dt { font-size: 10px; }
  .dataset-actions { padding: 20px; border-radius: 13px; }
  .dataset-layout, .catalog-layout { padding-block: 28px 36px; }
  .dataset-section + .dataset-section { margin-top: 28px; }
  .dataset-section-title { font-size: 20px; }
  .overview-section p { font-size: 13px; }
  .overview-section .overview-note { font-size: 11px; }
  .reading-context-grid, .dataset-catalog .reading-context-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .reading-context-card { padding-top: 14px; }
  .reading-context-card h3 { font-size: 13px; }
  .reading-context-card p { margin-top: 7px; }
  .section-heading { gap: 6px 12px; margin-bottom: 12px; }
  .text-link { font-size: 11px; }
  .preview-toolbar { padding: 8px 12px; gap: 8px; }
  .sample-count { display: none; }
  .preview-controls { gap: 6px; }
  .input { font-size: 11px; }
  .reset-button { padding-inline: 4px; font-size: 11px; }
  .preview-controls > svg { width: 15px; }
  .dataset-table th, .dataset-table td { padding-inline: 13px; }
  .preview-foot { padding-inline: 12px; }
  .preview-expand { font-size: 10px; padding-left: 6px; }
  .preview-foot > span { font-size: 10px; }
  .table-explanation { font-size: 10px; }
  .dataset-details > summary { min-height: 56px; gap: 12px; }
  .detail-title { font-size: 13px; }
  .detail-meta { font-size: 10px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 16px; }
  .field-type { display: inline; margin-left: 10px; }
  .file-details-list { grid-template-columns: minmax(0, 1fr); }
  .app-cta { flex-direction: column; gap: 22px; margin-top: 28px; padding: 24px; border-radius: 13px; }
  .app-cta h2 { font-size: 28px; }
  .app-cta p:not(.dataset-kicker) { font-size: 12px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 12px; }
  .cta-actions .dataset-button { min-width: 130px; }
  .footer-inner { padding-block: 26px 22px; }
  .footer-top nav { gap: 2px 22px; }
  .footer-top nav a { font-size: 11px; }
  .footer-bottom { margin-top: 14px; line-height: 1.8; }
  .catalog-intro { padding-bottom: 32px; }
  .catalog-hero-grid { padding-top: 14px; }
  .catalog-title { font-size: 36px; margin-top: 14px; }
  .catalog-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .catalog-row { padding: 20px; gap: 14px; }
  .catalog-section-head h2 { font-size: 19px; }
  .catalog-section-head { align-items: start; gap: 12px; }
  .catalog-section-head .file-count { padding-top: 4px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .topnav .brand-logo { height: 24px; }
  .header-actions { gap: 6px; }
  .dataset-hero h1 { font-size: 33px; }
  .release-facts { gap: 12px; }
  .release-facts > div { padding-right: 12px; }
  .hero-buttons { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
