:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --surface: #fff;
  --ink: #14263d;
  --muted: #617083;
  --faint: #8e9aaa;
  --line: #d8dee6;
  --line-dark: #b9c4d1;
  --blue: #315d88;
  --blue-dark: #244a73;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid #4f7da9; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

.site-header {
  min-height: 82px;
  padding: 0 clamp(22px, 5.5vw, 84px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
}
.wordmark { width: fit-content; display: grid; gap: 5px; text-decoration: none; color: var(--ink); }
.wordmark-main, .footer-wordmark { font: 600 19px/1 var(--serif); letter-spacing: .075em; }
.wordmark-sub { color: var(--muted); font: 500 10px/1.3 var(--sans); letter-spacing: .15em; }
.main-nav { display: flex; height: 100%; align-items: center; gap: clamp(25px, 4vw, 58px); }
.main-nav a { position: relative; height: 100%; display: grid; place-items: center; color: #3d4d60; text-decoration: none; font-size: 13px; letter-spacing: .025em; white-space: nowrap; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); }
.main-nav a:hover, .main-nav .language-toggle:hover, .footer-links a:hover { color: var(--blue); }
.language-toggle { align-self: center; padding: 7px 0 7px 4px; border: 0; background: transparent; color: var(--faint); font-size: 10px; letter-spacing: .08em; cursor: pointer; }
.language-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }

main { max-width: 1440px; margin: 0 auto; padding: 0 clamp(22px, 5.5vw, 84px); }
.intro-section {
  min-height: 303px;
  padding: 60px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.eyebrow-rule { width: 21px; height: 1px; background: var(--blue); }
h1, h2, p { margin-top: 0; }
.intro-copy h1 { margin: 19px 0 14px; color: var(--ink); font: 400 clamp(38px, 4.7vw, 58px)/1.12 var(--serif); letter-spacing: -.025em; }
.intro-lede { max-width: 690px; margin: 0 0 9px; color: #405269; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; }
.intro-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.coordinate-figure { color: #53708e; }
.coordinate-figure svg { display: block; width: 100%; }
.chart-label { fill: currentColor; font: 9px var(--mono); letter-spacing: .025em; }
.figure-caption { display: flex; justify-content: space-between; margin: 9px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .05em; }

.search-panel { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line); padding: 25px 0 23px; }
.search-input-wrap { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 4px 5px 4px 18px; border: 1px solid #aebccc; background: var(--surface); box-shadow: 0 2px 8px rgba(20,38,61,.035); }
.search-input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,93,136,.1); }
.search-input-wrap svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; }
.search-input-wrap input { width: 100%; height: 46px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.search-input-wrap input::placeholder { color: #8793a2; }
.search-submit { align-self: stretch; min-width: 116px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 0; background: var(--blue); color: white; font-size: 13px; cursor: pointer; transition: background .16s ease; }
.search-submit:hover { background: var(--blue-dark); }
.search-submit span { opacity: .72; }
.filter-row { display: flex; align-items: end; gap: 18px; margin-top: 19px; }
.filter-control { display: grid; gap: 7px; min-width: 190px; color: #506178; font-size: 11px; }
.filter-control select, .sort-control select { min-height: 36px; padding: 0 31px 0 11px; border: 1px solid var(--line); border-radius: 0; color: #30445c; background: var(--surface); font-size: 12px; }
.clear-filters { padding: 8px 2px; border: 0; background: none; color: var(--blue); font-size: 11px; cursor: pointer; }
.clear-filters:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-hint { margin: 0 0 8px auto; color: var(--faint); font-size: 10px; }

.catalogue-section { padding: 36px 0 45px; }
.results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.results-toolbar h2 { margin: 9px 0 0; font: 400 27px/1.1 var(--serif); letter-spacing: -.02em; }
.results-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.sort-control { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sort-control select { min-height: 32px; }
.table-shell { border: 1px solid var(--line); background: var(--surface); }
.table-scroll { overflow-x: auto; }
.record-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.record-table thead { background: #eef1f4; }
.record-table th { padding: 13px 14px; color: #43566d; font-size: 10px; font-weight: 600; letter-spacing: .025em; white-space: nowrap; border-bottom: 1px solid var(--line); }
.record-table td { height: 46px; padding: 9px 14px; color: #31465e; border-bottom: 1px solid #e9edf1; white-space: nowrap; }
.record-table tbody tr:last-child td { border-bottom: 0; }
.record-table tbody tr:hover { background: #f7f9fb; }
.record-table td:first-child, .record-table td:nth-child(3), .record-table td:nth-child(5) { font-family: var(--mono); font-size: 11px; }
.record-table td:nth-child(2) a { color: #285780; text-decoration: none; border-bottom: 1px solid #c3d0dc; }
.record-table td:nth-child(2) a:hover { border-color: var(--blue); }
.table-state { height: 104px !important; text-align: center; color: var(--muted) !important; white-space: normal !important; line-height: 1.7; }
.table-footer { min-height: 45px; padding: 7px 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination { display: flex; gap: 5px; }
.pagination button { width: 29px; height: 27px; border: 1px solid var(--line); background: white; color: var(--blue); cursor: pointer; }
.pagination button:disabled { color: #aab4bf; cursor: default; }

.about-section, .faq-section { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(190px, 270px); gap: clamp(25px, 5vw, 75px); padding: 36px 0 43px; border-top: 1px solid var(--line); }
.section-index { padding-top: 8px; color: var(--muted); font: 11px var(--mono); letter-spacing: .02em; }
.about-section h2, .faq-section h2 { max-width: 600px; margin: 0 0 13px; color: var(--ink); font: 400 28px/1.35 var(--serif); letter-spacing: -.02em; }
.about-section p { max-width: 640px; margin-bottom: 0; color: #55667a; font-size: 13px; line-height: 1.9; }
.about-aside { align-self: center; padding-left: 18px; border-left: 1px solid var(--line-dark); }
.about-aside p { font-size: 11px; line-height: 1.8; }
.faq-section { grid-template-columns: 150px minmax(0, 1fr); padding-bottom: 55px; }
.faq-content { max-width: 850px; }
.faq-section h2 { margin-bottom: 17px; }
.faq-page { min-height: calc(100vh - 158px); padding-top: 1px; }
.faq-page .faq-section { grid-template-columns: 150px minmax(0, 1fr); padding-top: clamp(42px, 8vw, 88px); }
.faq-page h1 { max-width: 600px; margin: 0 0 17px; color: var(--ink); font: 400 28px/1.35 var(--serif); letter-spacing: -.02em; }
.faq-content details { border-top: 1px solid var(--line); }
.faq-content details:last-child { border-bottom: 1px solid var(--line); }
.faq-content summary { padding: 15px 0; color: #334960; font-size: 13px; cursor: pointer; list-style-position: outside; }
.faq-content details p { max-width: 740px; margin: -2px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }

.site-footer { min-height: 76px; padding: 18px clamp(22px, 5.5vw, 84px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; border-top: 1px solid var(--line); background: #f0f2f5; }
.footer-wordmark { text-decoration: none; font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #5e6c7d; text-decoration: none; font-size: 10px; }
.site-footer p { justify-self: end; margin: 0; color: var(--muted); font-size: 10px; }

.record-dialog { position: relative; width: min(600px, calc(100vw - 30px)); max-height: min(88vh, 720px); overflow-y: auto; padding: 31px 35px; border: 1px solid var(--line-dark); color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px rgba(11,25,42,.2); }
.record-dialog::backdrop { background: rgba(12,24,39,.52); backdrop-filter: blur(2px); }
.dialog-close-form { position: absolute; top: 13px; right: 15px; }
.dialog-close { width: 30px; height: 30px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 20px; cursor: pointer; }
.record-dialog h2 { margin: 18px 36px 0 0; font: 400 30px/1.25 var(--serif); overflow-wrap: anywhere; }
.record-details { display: grid; grid-template-columns: minmax(130px, .7fr) 1.3fr; margin: 23px 0 0; border-top: 1px solid var(--line); }
.record-details dt, .record-details dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.record-details dt { color: var(--muted); }
.record-details dd { color: var(--ink); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .site-header { gap: 24px; }
  .wordmark-main { font-size: 16px; white-space: nowrap; }
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 11px; }
  .language-toggle { font-size: 10px; }
  .intro-section { grid-template-columns: minmax(0,1fr) 245px; gap: 22px; }
  .filter-row { flex-wrap: wrap; }
  .search-hint { flex-basis: 100%; margin: 0; }
  .about-section { grid-template-columns: 110px minmax(0,1fr); }
  .about-aside { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .site-header { min-height: 0; padding: 14px 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .wordmark { padding-bottom: 12px; }
  .wordmark-main { font-size: 13px; letter-spacing: .045em; }
  .wordmark-sub { font-size: 9px; }
  .main-nav { width: 100%; height: 44px; justify-content: space-between; gap: 12px; border-top: 1px solid #edf0f3; }
  .main-nav a { min-width: 48px; font-size: 12px; }
  .language-toggle { min-height: 40px; padding: 0 2px; font-size: 10px; }
  main { padding: 0 20px; }
  .intro-section { min-height: auto; grid-template-columns: 1fr; padding: 31px 0 20px; gap: 12px; }
  .intro-copy h1 { max-width: 13ch; margin: 13px 0 12px; font-size: clamp(33px, 8.5vw, 36px); line-height: 1.08; }
  .intro-lede { font-size: 14px; line-height: 1.6; }
  .intro-note { font-size: 11px; line-height: 1.65; }
  .coordinate-figure { width: min(100%, 286px); justify-self: center; }
  .figure-caption { gap: 8px; font-size: 8px; }
  .figure-caption span:last-child { text-align: right; }
  .search-panel { padding: 15px 0 17px; }
  .search-input-wrap { grid-template-columns: 18px minmax(0,1fr) auto; gap: 8px; min-height: 51px; padding: 4px 4px 4px 10px; }
  .search-input-wrap svg { width: 18px; height: 18px; }
  .search-input-wrap input { min-width: 0; height: 40px; font-size: 11px; }
  .search-input-wrap input::placeholder { text-overflow: ellipsis; }
  .search-submit { grid-column: auto; min-width: 83px; min-height: 41px; padding: 0 10px; gap: 6px; font-size: 12px; }
  .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 10px; align-items: start; margin-top: 14px; }
  .filter-control { min-width: 0; gap: 6px; font-size: 10px; }
  .filter-control select { width: 100%; min-height: 40px; padding: 0 26px 0 9px; font-size: 11px; }
  .clear-filters { grid-column: 2; justify-self: end; min-height: 35px; padding: 7px 1px; }
  .search-hint { grid-column: 1 / -1; margin: 0; font-size: 10px; line-height: 1.55; }
  .catalogue-section { padding: 25px 0 31px; }
  .results-toolbar { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 13px; }
  .results-toolbar h2 { font-size: 25px; }
  .results-meta { width: 100%; justify-content: space-between; gap: 10px; }
  .sort-control { gap: 7px; }
  .sort-control select { min-height: 36px; }
  .table-shell { border: 0; background: transparent; }
  .table-scroll { overflow: visible; }
  .record-table, .record-table tbody { display: block; width: 100%; }
  .record-table { min-width: 0; }
  .record-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .record-table tbody tr { display: block; margin: 0 0 10px; padding: 3px 13px 5px; border: 1px solid var(--line); background: var(--surface); }
  .record-table tbody tr.table-state-row { margin: 0; padding: 0; border: 0; background: transparent; }
  .record-table td { display: grid; grid-template-columns: minmax(98px, .8fr) minmax(0, 1.4fr); align-items: start; gap: 10px; height: auto; min-height: 39px; padding: 10px 0; border-bottom: 1px solid #e9edf1; white-space: normal; overflow-wrap: anywhere; font: 12px/1.45 var(--sans); }
  .record-table td::before { content: attr(data-label); color: var(--muted); font: 10px/1.5 var(--sans); }
  .record-table td:first-child, .record-table td:nth-child(3), .record-table td:nth-child(5) { font: 11px/1.5 var(--mono); }
  .record-table td:nth-child(2) { font: 15px/1.4 var(--serif); }
  .record-table tbody tr:last-child td { border-bottom: 1px solid #e9edf1; }
  .record-table tbody tr td:last-child { border-bottom: 0; }
  .record-table tbody tr:hover { background: var(--surface); }
  .record-table .table-state { display: block; min-height: 100px; height: auto !important; padding: 28px 18px; border: 1px solid var(--line); text-align: center; }
  .record-table .table-state::before { content: none; }
  .table-footer { min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); }
  .about-section, .faq-section { grid-template-columns: 1fr; gap: 12px; padding: 27px 0 32px; }
  .section-index { padding-top: 0; }
  .about-section h2, .faq-section h2 { font-size: 25px; }
  .faq-page .faq-section { padding-top: 32px; }
  .faq-page h1 { font-size: 25px; }
  .about-aside { grid-column: 1; }
  .faq-content summary { min-height: 49px; display: flex; align-items: center; padding: 12px 0; line-height: 1.5; }
  .site-footer { padding: 20px; grid-template-columns: 1fr; gap: 12px; }
  .site-footer p { grid-column: auto; justify-self: start; }
  .footer-links { gap: 18px; }
  .record-dialog { padding: 27px 20px 21px; }
  .record-details { grid-template-columns: 1fr; }
  .record-details dt { padding-bottom: 3px; border-bottom: 0; }
  .record-details dd { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
