/* Public data portal. Functional layouts in site.css and explorer.css remain shared. */
:root {
  --ink: #23323b;
  --muted: #52616a;
  --paper: #fff;
  --line: #d4dce0;
  --radius: 3px;
  --shadow: none;
  --serif: var(--sans);
}
body { line-height: 1.6; }
h1 { font: 650 clamp(1.75rem, 3vw, 2.2rem)/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
h2 { font: 650 1.4rem/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
h3 { font: 650 1.1rem/1.4 var(--sans); color: var(--ink); }
.container { width: min(1200px, calc(100% - 64px)); }
a { color: #155b7d; text-decoration-thickness: 1px; }
a:hover { color: #073f5b; }
a, button, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #005ea2; outline-offset: 3px; }
input:not([type="checkbox"], [type="radio"]), select, textarea { border-radius: 3px; border-color: #8b9ca6; min-height: 44px; background-color: white; font-size: 15px; }
input:hover, select:hover, textarea:hover { border-color: #395c70; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
select { max-width: 100%; }
pre, code, .endpoint-output { overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: white; border-top: 4px solid var(--green); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.header-inner { min-height: 84px; gap: 24px; }
.brand { gap: 10px; color: var(--green); }
.brand-mark { width: 32px; height: 36px; }
.brand-name { font-size: 23px; letter-spacing: -.5px; }
.brand-affiliation { font-size: 11px; letter-spacing: 0; text-transform: none; margin-top: 3px; }
#primary-nav { gap: 3px; }
#primary-nav a { font-size: 14px; padding: 13px 11px; color: #304b5a; border-radius: 0; }
#primary-nav a:hover { background: #f0f4f6; }
#primary-nav a[aria-current] { background: #f0f4f6; box-shadow: none; }
#primary-nav .nav-contribute { margin-left: 5px; }
.nav-toggle { border-radius: 3px; min-height: 44px; }
.eyebrow { font-size: 12px; letter-spacing: 0; font-weight: 600; text-transform: none; color: var(--muted); }
.eyebrow::before { display: none; }
.button { border-radius: 3px; min-height: 44px; gap: 10px; font-size: 14px; box-shadow: none; }
.button:hover { transform: none; background: #006044; border-color: #006044; }
.button.secondary { border-color: #8c9da5; background: white; color: #245166; }
.button.secondary:hover { background: #eef4f7; border-color: #395c70; }
.button.small { min-height: 44px; padding: 8px 12px; font-size: 13px; }
.text-link { font-size: 15px; }
.page-intro { padding-block: 28px 22px; }
.page-intro h1 { max-width: none; }
.page-intro p { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 900px; }
.page-intro .eyebrow { margin: 0 0 7px; font-size: 12px; }
.section { padding-block: 36px; }
.section-heading { gap: 24px; margin-bottom: 20px; }
.section-white { border-block: 1px solid var(--line); }
.split-section { gap: 64px; }
.split-section > div { min-width: 0; }
.split-section p { font-size: 15px; color: var(--muted); }
.portal-search-band { background: #f1f5f6; border-bottom: 1px solid var(--line); padding-block: 30px 24px; }
.portal-description { max-width: 860px; margin-top: 10px; color: var(--muted); font-size: 16px; }
.portal-search { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(190px, 1fr) auto; gap: 16px; align-items: end; max-width: 1040px; margin-top: 24px; }
.portal-search label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.portal-search input, .portal-search select { width: 100%; }
.portal-search .button { padding-inline: 24px; }
.portal-search-links { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(240px, 1fr); gap: 48px; padding-block: 32px 40px; }
.portal-layout h2 { margin-bottom: 10px; }
.portal-collections > p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.collection-table { width: 100%; background: white; font-size: 14px; border-collapse: collapse; }
.collection-table thead th { font-size: 13px; background: #f1f4f5; font-weight: 600; text-transform: none; letter-spacing: 0; }
.collection-table th, .collection-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.collection-table tbody th { width: 37%; font-size: 16px; line-height: 1.4; font-weight: 600; text-transform: none; letter-spacing: 0; background: white; }
.collection-table td { font-size: 14px; }
.collection-table tbody tr:last-child th, .collection-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.collection-table td p { margin: 0 0 8px; }
.collection-table td span { color: var(--muted); }
.collection-tag { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 8px; }
.portal-reference { padding-left: 24px; border-left: 1px solid var(--line); }
.portal-reference ul { list-style: none; margin: 0; padding: 0; }
.portal-reference li { padding: 12px 0; border-bottom: 1px solid #e3e8eb; }
.portal-reference li:first-child { padding-top: 4px; }
.portal-reference a { font-size: 15px; font-weight: 600; }
.portal-reference span { display: block; color: var(--muted); font-size: 14px; margin-top: 5px; }
.portal-about { padding-block: 30px; background: #fafbfc; }
.portal-about h2 { margin-bottom: 12px; }
.portal-levels { display: grid; grid-template-columns: 80px 1fr; gap: 9px 16px; margin: 0; font-size: 14px; }
.portal-levels dt { font-weight: 650; }
.portal-levels dd { margin: 0; color: var(--muted); }
.citation-box { border-radius: 3px; background: #f3f6f7; border: 1px solid var(--line); padding: 24px; overflow-wrap: anywhere; }
.citation-box p { font-size: 14px; }
.dataset-nav { gap: 0; background: white; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; margin-bottom: 20px; }
.dataset-nav a { font-size: 14px; border: 0; padding: 12px 18px; margin: 0 0 -1px; border-radius: 0; color: #3b5564; border-bottom: 3px solid transparent; }
.dataset-nav a:hover { background: #f0f4f6; }
.dataset-nav a[aria-current] { color: var(--green); background: #f0f4f6; border-bottom-color: var(--green); box-shadow: none; }
.download-context { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 2fr); border: 1px solid var(--line); border-radius: 3px; background: white; margin-bottom: 18px; }
.download-version { padding: 18px 20px; border-right: 1px solid var(--line); }
.download-version select { width: 100%; padding: 8px 12px; font-weight: 600; color: var(--ink); }
.download-version .release-info { font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; }
.release-help { font-size: 13px; line-height: 1.55; color: var(--muted); margin-block: 8px 14px; }
.download-version .release-help { margin-bottom: 0; }
.build-widget { padding: 18px 20px; min-width: 0; font-size: 13px; }
.build-widget-top, .build-widget-top > div { display: flex; align-items: center; gap: 12px; }
.build-widget-top { justify-content: space-between; flex-wrap: wrap; margin-bottom: 4px; }
.build-widget-top strong { font-size: 14px; }
.build-widget-top a { font-size: 13px; display: inline-block; padding-block: 4px; }
.build-indicator { color: #27583b; background: #edf5ed; border-radius: 2px; padding: 3px 8px; font-size: 12px; }
.build-widget > p { color: var(--muted); margin-top: 4px; }
.build-widget .build-list-title { font-size: 13px; margin-top: 10px; }
.build-recent { display: flex; gap: 10px; list-style: none; padding: 0; margin-top: 6px; }
.build-recent li { border-left: 2px solid var(--line); padding: 3px 10px; flex: 1; min-width: 0; }
.build-recent a { font-size: 13px; font-weight: 600; display: inline-block; padding-block: 3px; }
.build-recent span { display: block; color: var(--muted); font-size: 12px; }
.build-widget .build-widget-note { font-size: 12px; margin-top: 7px; }
.build-widget-note:empty { display: none; }
.notice { border-radius: 3px; background: #f0f4f6; padding: 16px 20px; font-size: 14px; margin-bottom: 20px; border-left: 3px solid #6f8b9c; }
.browser-panel { border-radius: 3px; background: white; margin-bottom: 24px; }
.filter-bar { background: #f2f5f6; padding: 20px; gap: 16px; }
.filter-bar input, .filter-bar select { width: 100%; }
.filter-bar > div { min-width: 0; }
.field-label { color: #304b5a; font-size: 13px; margin-bottom: 6px; letter-spacing: 0; text-transform: none; }
.results-summary { background: white; padding: 14px 20px; border-block: 1px solid var(--line); }
.results-summary p { font-weight: 600; font-size: 14px; }
.results-summary span { font-size: 13px; }
.boundary-grid { display: block; padding: 0; }
.boundary-card { background: white; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px; display: grid; grid-template-columns: minmax(140px, 1fr) minmax(170px, 1.1fr) minmax(200px, 1.1fr); grid-template-rows: none; align-items: start; gap: 12px 24px; box-shadow: none; }
.boundary-card:last-child { border-bottom: 0; }
.boundary-card h2 { font-weight: 650; font-size: 19px; color: var(--ink); margin-top: 6px; }
.boundary-card p { font-size: 14px; margin: 0 0 5px; }
.boundary-card .boundary-meta { font-size: 13px; letter-spacing: 0; }
.level-badge { border-radius: 2px; background: #edf2f4; color: #304b5a; font-size: 12px; }
.boundary-card .download-links { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 0 0 8px; }
.boundary-card .download-links a { font-size: 14px; }
.download-file, .boundary-explore { display: inline-block; font-size: 14px; padding-block: 4px; }
.boundary-card .boundary-source { grid-column: 2/-1; font-size: 14px; margin: 0; padding: 0; border: 0; }
.boundary-source summary { padding: 4px 0; font-size: 14px; }
.boundary-source dl { font-size: 13px; }
.download-level { border-radius: 3px; background: white; padding: 22px; }
.download-level h2 { font-size: 22px; }
.format-links a { padding-block: 11px; font-size: 14px; min-height: 44px; border-radius: 3px; }
.dataset-grid { gap: 20px; }
.global-preview-disclosure { margin-top: 24px; }
.dataset-guidance { padding: 0 0 16px; border: 0; margin-bottom: 0; font-size: 14px; }
.dataset-guidance summary { color: var(--muted); font-weight: 500; padding-block: 5px; }
.dataset-guidance > p { max-width: 940px; padding: 14px 18px; background: #f2f5f6; color: var(--muted); }
.global-preview { margin-top: 20px; border-radius: 3px; }
.global-preview img { max-height: 420px; object-fit: contain; background: white; }
.docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 36px; padding-bottom: 40px; }
.docs-sidebar { top: 110px; border: 0; padding: 4px 0; }
.docs-sidebar a { padding: 10px 12px; border-radius: 0; font-size: 14px; border-left: 2px solid var(--line); }
.docs-sidebar a:hover { background: #f0f4f6; border-color: var(--green); }
.docs-body { min-width: 0; }
.docs-body h2 { font-size: 24px; margin-bottom: 16px; }
.docs-body h3 { font-size: 19px; }
.docs-body p, .docs-body li { font-size: 15px; }
.api-version-panel, .endpoint-builder { background: white; border-radius: 3px; border: 1px solid var(--line); padding: 24px; }
.api-version-facts { border-block: 1px solid var(--line); padding-block: 16px; font-size: 14px; }
.api-source-changes { margin-top: 16px; }
.api-source-changes > ul { columns: 2 12rem; }
.api-source-changes li { break-inside: avoid; }
.api-source-changes h4 { margin-top: 16px; }

.use-case-controls { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.use-case-controls[hidden] { display: none; }
.use-case-controls > div { flex: 1 1 14rem; max-width: 25rem; }
.use-case-controls input,
.use-case-controls select {
  display: block;
  width: 100%;
  height: 44px;
  padding-block: 0;
}
.use-case-select { position: relative; }
.use-case-select select { appearance: none; padding-inline-end: 34px; }
.use-case-select::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
#use-case-count { color: var(--muted); font-size: 14px; }
.use-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 16px 36px; }
.use-case { background: white; border: 1px solid var(--line); border-radius: 3px; overflow-wrap: anywhere; padding: 20px; }
.use-case h2 { font-size: 1.25rem; margin-bottom: 4px; }
.use-case p { margin-bottom: 12px; }
.use-case-type, .use-case-attribution, .use-case-source, .use-case details { font-size: 14px; color: var(--muted); }
.use-case-type { font-weight: 600; }
.use-case .use-case-type { margin-bottom: 2px; }
.use-case details p { margin: 6px 0 0; }
.use-case-reference-note { border-bottom: 0; padding-block: 8px; }
.use-case[id], .use-case-publication, .use-case-alias { scroll-margin-top: 6rem; }
.use-case-alias { display: block; }
.use-case-publication { margin-top: 8px; }
.use-case-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.use-case-pagination[hidden] { display: none; }
.use-case-pagination button:disabled { opacity: 0.55; cursor: default; }
.endpoint-output { background: #f1f5f7; border-color: #b8cbd5; color: #234e64; border-radius: 3px; }
pre { border-radius: 3px; padding: 20px; font-size: 13px; }
.table-scroll { background: white; border-radius: 3px; }
th { background: #f0f4f6; }
td, th { padding: 13px 16px; font-size: 14px; }
.community-grid { gap: 24px; margin-bottom: 36px; }
.community-card { background: white; border-radius: 3px; padding: 24px; box-shadow: none; }
.community-card h2 { font: 650 22px/1.3 var(--sans); letter-spacing: normal; }
.community-card p { font-size: 15px; }
.contributors { gap: 10px; margin-top: 20px; }
.contributor { background: white; border-radius: 3px; min-height: 52px; font-size: 14px; }
.project-links { border-radius: 3px; padding: 24px; background: white; }
.status-system-card, .status-row { border-radius: 3px; background: white; }
.status-system-card h2 { font-size: 22px; }
.status-row > summary { min-height: 64px; }
.site-footer { background: #f1f4f5; border-top: 1px solid var(--line); color: var(--muted); padding-top: 32px; margin-top: 36px; }
.site-footer h2 { color: var(--ink); font: 650 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.site-footer a { color: #155b7d; font-size: 14px; }
.footer-brand { font-size: 23px !important; color: var(--green) !important; }
.footer-about p { font-size: 14px; color: var(--muted); }
.footer-bottom { margin-top: 28px; font-size: 12px; border-color: #cad4da; color: var(--muted); }
.footer-bottom > a, .footer-bottom summary { color: var(--muted); font-size: 12px; }
.submission-content .card { border-radius: 3px; box-shadow: none; }
.submission-content .step { background: #edf2f4; color: #304b5a; }
.submission-content .card h2 { font: 650 22px/1.3 var(--sans); }
.explorer-page { padding-top: 26px; }
.explorer-intro { margin-bottom: 22px; }
.explorer-intro h1 { font: 650 clamp(1.75rem, 3vw, 2.2rem)/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.explorer-intro p:not(.eyebrow) { font-size: 15px; }
.explorer-card { border-radius: 3px; box-shadow: none; }
.explorer-card h2 { font: 650 21px/1.3 var(--sans); letter-spacing: normal; color: var(--ink); }
.explorer-filters h2 { font-size: 19px; }
.explorer-note, .explorer-sidebar-note, .explorer-map-toolbar label, .explorer-map-footer, #explorer-page { font-size: 13px; }
.explorer-facts strong { font-size: 1.15rem; font-weight: 650; }
.explorer-facts span, .explorer-unit-list button small { font-size: 13px; }
.explorer-facts > div { border-radius: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
.explorer-properties { font-size: 14px; }
.explorer-map-actions .button { min-height: 44px; }
.explorer-map-toolbar { background: #f2f5f6; }
.explorer-map-toolbar select { min-height: 44px; }
.explorer-map-footer i { flex-shrink: 0; }
@media (max-width: 1100px) {
  .header-inner { gap: 14px; }
  #primary-nav a { padding-inline: 8px; font-size: 13px; }
  .portal-layout { gap: 28px; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
  .boundary-card { grid-template-columns: minmax(130px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr); gap: 12px 18px; }
}
@media (max-width: 760px) {
  .use-case-grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 76px; padding-block: 12px; }
  .brand-mark { width: 28px; }
  .brand-name { font-size: 22px; }
  .brand-affiliation { font-size: 10px; }
  #primary-nav { padding-top: 10px; gap: 0; }
  #primary-nav a { padding: 12px; border-top: 0; font-size: 15px; }
  #primary-nav .nav-contribute { margin: 0; }
  .portal-search-band { padding-block: 24px; }
  .portal-search { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .portal-search .button { justify-content: center; }
  .portal-search-links { display: grid; gap: 8px; }
  .portal-layout { grid-template-columns: 1fr; padding-block: 26px; }
  .portal-reference { border-left: 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
  .collection-table th, .collection-table td { padding: 12px 8px; overflow-wrap: anywhere; }
  .collection-table tbody th { font-size: 15px; }
  .collection-tag { font-size: 12px; }
  .portal-about { padding-block: 24px; }
  .portal-about .split-section { gap: 28px; }
  .section { padding-block: 28px; }
  .section-heading { display: grid; gap: 14px; }
  .page-intro { padding-block: 24px 18px; }
  .page-intro p { font-size: 15px; }
  .dataset-nav { width: 100%; gap: 0; flex-wrap: nowrap; }
  .dataset-nav a { flex: 1; text-align: center; padding: 10px 5px; font-size: 13px; }
  .download-context { grid-template-columns: 1fr; }
  .download-version { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .build-widget { padding: 16px; }
  .build-widget-top { gap: 6px; }
  .build-widget-top > div { gap: 8px; }
  .build-recent { flex-wrap: wrap; }
  .build-recent li { min-width: 85px; }
  .filter-bar { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; }
  .filter-bar > div:first-child { grid-column: 1/-1; }
  .filter-bar .button { grid-column: 1/-1; }
  .results-summary { align-items: start; padding: 14px 16px; }
  .results-summary span:last-child { max-width: 125px; text-align: right; font-size: 12px; }
  .boundary-card { grid-template-columns: 1fr; padding: 18px 16px; gap: 10px; }
  .boundary-card .boundary-source { grid-column: 1; }
  .boundary-card .download-links { gap: 8px 24px; }
  .download-file, .boundary-explore { padding-block: 8px; }
  .download-level { padding: 20px; }
  .docs-layout { grid-template-columns: 1fr; gap: 22px; }
  .docs-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
  .docs-sidebar .eyebrow { flex-basis: 100%; }
  .docs-sidebar a { border: 1px solid var(--line); background: white; padding: 9px 10px; font-size: 13px; }
  .api-version-panel, .endpoint-builder { padding: 18px; }
  .docs-body h2 { font-size: 22px; }
  .community-grid { grid-template-columns: 1fr; margin-bottom: 28px; }
  .community-card { padding: 22px; }
  .contributors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contributor { padding-inline: 8px; gap: 8px; }
  .contributor span { overflow-wrap: anywhere; min-width: 0; }
  .site-footer { padding-top: 28px; margin-top: 28px; }
  .footer-grid { gap: 26px 20px; }
  .footer-about { grid-column: 1/-1; }
  .footer-bottom { margin-top: 26px; }
  .explorer-intro { display: grid; gap: 12px; }
  .explorer-global-link { max-width: none; font-size: 14px; }
  .explorer-map-heading { flex-wrap: wrap; }
  .explorer-map-actions { justify-content: start; }
  .explorer-map-heading h2 { font-size: 20px; }
  .explorer-pagination { flex-wrap: wrap; }
  input:not([type="checkbox"], [type="radio"]), select, textarea { font-size: 16px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 20px; }
  .brand-affiliation { font-size: 10px; }
  .brand-mark { width: 24px; }
  .brand { gap: 8px; }
  .nav-toggle { font-size: 14px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .button, .dataset-nav a[aria-current], .build-indicator, .level-badge { border: 1px solid ButtonText; }
}
