:root {
  color-scheme: light;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --ink: #102a43;
  --ink-strong: #08243e;
  --muted: #5d7185;
  --muted-light: #7e91a4;
  --blue: #0b5cab;
  --blue-deep: #073b68;
  --blue-soft: #eaf3fb;
  --blue-pale: #f4f8fc;
  --line: #d8e4ee;
  --line-strong: #bfd1df;
  --page: #f6f9fc;
  --white: #fff;
  --success: #217a68;
  --warning: #a46b1e;
  --danger: #a23b48;
  --shadow-soft: 0 12px 38px rgb(32 77 116 / 7%);
  --shadow-card: 0 2px 7px rgb(20 54 84 / 5%), 0 14px 38px rgb(20 54 84 / 6%);
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(
      circle at 80% -20%,
      rgb(224 239 250 / 62%),
      transparent 32rem
    ),
    var(--page);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(21 121 211 / 48%);
  outline-offset: 3px;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.45rem;
  background: var(--ink-strong);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(100%, 1440px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 3.25rem 3rem;
}

.site-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 0.02rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
}

.brand-copy strong {
  color: var(--ink-strong);
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: right;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0.65rem;
}

#data-workspace {
  width: 100%;
  min-width: 0;
}

#data-workspace > *,
.hero > *,
.control-grid > *,
.search-panel > *,
.map-layout > *,
.source-section > *,
.method-section > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  min-width: 0;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0 0.75rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.hero h1,
.method-heading h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 1.05;
}

.hero h1 em,
.method-heading h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lede {
  max-width: 39rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.hero-index {
  display: grid;
  gap: 0.2rem;
  justify-self: end;
  min-width: 170px;
  padding: 0.65rem 0.85rem 0.6rem;
  border-top: 2px solid var(--blue);
  background: rgb(255 255 255 / 72%);
  box-shadow: var(--shadow-soft);
}

.hero-index-label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-index strong {
  color: var(--ink-strong);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
  line-height: 1;
}

.hero-index span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
}

.status-banner {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.3rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgb(255 255 255 / 82%);
  color: var(--muted);
  font-size: 0.74rem;
}

.status-banner[data-state="ready"] {
  border-color: #cce5de;
  background: #f5fbf9;
  color: #246858;
}

.status-banner[data-state="error"] {
  border-color: #efcdd2;
  background: #fff8f8;
  color: var(--danger);
}

.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.status-banner[data-state="ready"] .status-dot {
  background: var(--success);
}

.status-banner[data-state="error"] .status-dot {
  background: var(--danger);
}

.loading-panel,
.error-panel {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 4rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.loading-panel p,
.error-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.loading-panel strong,
.error-panel h2 {
  color: var(--ink-strong);
}

.error-panel {
  justify-items: start;
  align-items: start;
  text-align: left;
}

.error-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.05em;
}

.error-panel .eyebrow {
  margin-bottom: 0;
}

.loading-spinner {
  width: 1.7rem;
  height: 1.7rem;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.controls-panel,
.search-panel,
.map-card,
.detail-card,
.table-section,
.source-section,
.method-section {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.controls-panel {
  padding: 0.8rem 1.1rem 0.75rem;
}

.section-heading {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.section-heading h2,
.search-copy h2,
.detail-top h2,
.source-section h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1.15;
}

.section-aside {
  max-width: 18rem;
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: right;
}

.control-grid {
  display: grid;
  min-width: 0;
  grid-template-columns:
    minmax(0, 0.8fr) minmax(17rem, 1.7fr) minmax(0, 0.8fr)
    minmax(0, 0.9fr);
  gap: 0.7rem;
  align-items: start;
  margin-top: 0.7rem;
}

.control-field,
.metric-field {
  min-width: 0;
}

.control-field > label,
.metric-field legend {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink-strong);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.control-field select {
  width: 100%;
  min-height: 2.45rem;
  padding: 0 2.35rem 0 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background-color: var(--white);
  color: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 680;
}

.control-field small,
.metric-option small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-light);
  font-size: 0.67rem;
  line-height: 1.35;
}

.metric-field {
  min-inline-size: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.metric-field legend {
  padding: 0;
}

.metric-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.metric-option {
  display: flex;
  min-width: 0;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.metric-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.metric-option input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.metric-option span {
  min-width: 0;
}

.metric-option strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 0.76rem;
  line-height: 1.35;
}

.metric-option small {
  margin-top: 0.14rem;
  font-size: 0.65rem;
}

.field-note {
  margin: 0.55rem 0 0;
  color: var(--warning);
  font-size: 0.7rem;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--blue-deep);
}

.button-secondary:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.search-panel {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.1rem;
  background: var(--blue-deep);
  color: var(--white);
}

.search-panel .eyebrow {
  color: #9bc6e8;
}

.search-copy h2 {
  color: var(--white);
}

.search-copy p:last-child {
  max-width: 25rem;
  margin: 0.35rem 0 0;
  color: #c5dced;
  font-size: 0.7rem;
  line-height: 1.4;
}

.search-box {
  position: relative;
  min-width: 0;
}

.search-box > input {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 3rem 0.55rem 2.65rem;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0.4rem;
  background: var(--white);
  color: var(--ink-strong);
  font-size: 0.84rem;
}

.search-box > input::placeholder {
  color: #8196a9;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0.9rem;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-53%);
}

.clear-search {
  position: absolute;
  z-index: 1;
  top: 0.37rem;
  right: 0.38rem;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

.clear-search:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.search-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.45rem);
  right: 0;
  left: 0;
  max-height: 19rem;
  padding: 0.3rem;
  margin: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--white);
  box-shadow: 0 14px 32px rgb(0 24 48 / 24%);
  list-style: none;
}

.search-result-button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.28rem;
  background: transparent;
  color: var(--ink-strong);
  text-align: left;
}

.search-result-button:hover,
.search-result-button:focus-visible {
  background: var(--blue-soft);
  outline: 0;
}

.search-result-name {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.3;
}

.search-result-meta {
  color: var(--muted);
  font-size: 0.67rem;
  white-space: nowrap;
}

.search-result-empty {
  padding: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.map-section {
  min-width: 0;
  padding-top: 0;
}

.map-heading {
  padding: 0.25rem 0.15rem 0.35rem;
}

.map-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.meta-separator {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.map-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.map-card {
  min-width: 0;
  overflow: hidden;
}

.map-card-top {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.map-card-top span:first-child {
  color: var(--ink-strong);
}

.map-mount {
  width: 100%;
  min-height: 31rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(239 247 253 / 80%), rgb(255 255 255 / 0%) 50%),
    var(--white);
}

.map-instruction {
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.detail-card {
  position: sticky;
  top: 1rem;
  min-width: 0;
  padding: 1.45rem;
}

.detail-top {
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.detail-top > div {
  min-width: 0;
}

.detail-top .eyebrow {
  margin-bottom: 0.5rem;
}

.detail-top h2 {
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.detail-full-name {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.level-badge {
  flex: 0 0 auto;
  padding: 0.3rem 0.48rem;
  border: 1px solid #c1dced;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.63rem;
  font-weight: 780;
  white-space: nowrap;
}

.detail-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-empty p {
  margin: 0;
}

.detail-empty-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1;
}

.detail-metrics {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem 0 0;
  margin: 0;
}

.detail-metric {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--blue-pale);
}

.detail-metric-main {
  border-color: #bcd9ec;
  background: var(--blue-soft);
}

.detail-metric dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.detail-metric dd {
  margin: 0.3rem 0 0;
  color: var(--ink-strong);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.detail-metric small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-light);
  font-size: 0.66rem;
  line-height: 1.45;
}

.detail-missing {
  padding: 0.72rem 0.8rem;
  margin: 0.8rem 0 0;
  border-left: 3px solid var(--warning);
  background: #fff9ef;
  color: #805b28;
  font-size: 0.72rem;
  line-height: 1.5;
}

.detail-meta-list,
.source-details dl {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 1rem 0 0;
}

.detail-meta-list > div,
.source-details dl > div {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.detail-meta-list dt,
.source-details dt {
  color: var(--muted);
}

.detail-meta-list dd,
.source-details dd {
  max-width: 65%;
  margin: 0;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.drill-button {
  width: 100%;
  margin-top: 1rem;
}

.table-section {
  min-width: 0;
  padding: 1.35rem 1.5rem;
}

.table-section .section-heading {
  align-items: start;
}

.table-section .section-aside {
  font-variant-numeric: tabular-nums;
}
.table-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

th,
td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead {
  background: var(--blue-pale);
}

th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f8fbfe;
}

tbody tr[data-selected="true"] {
  background: var(--blue-soft);
}

.sort-button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.32rem;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: inherit;
}

.sort-button:hover {
  color: var(--blue-deep);
}

.table-region-button {
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-weight: 760;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.table-region-button:hover,
.table-region-button:focus-visible {
  text-decoration-color: currentcolor;
  outline-offset: 5px;
}

.table-region-meta {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted-light);
  font-size: 0.64rem;
  font-weight: 500;
}

.number-cell {
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.missing-cell {
  color: var(--muted-light);
  font-style: italic;
}

.missing-chip {
  display: inline-block;
  padding: 0.15rem 0.34rem;
  border-radius: 0.22rem;
  background: #edf0f2;
  color: #6d7a83;
  font-size: 0.64rem;
  font-style: normal;
  white-space: nowrap;
}

.table-empty {
  padding: 1.5rem 0.8rem;
  color: var(--muted);
  text-align: center !important;
}

.table-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}
.map-source-line {
  padding: 0 0.15rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.map-source-line a {
  color: var(--blue-deep);
  font-weight: 720;
  text-underline-offset: 3px;
}

.map-source-separator {
  padding: 0 0.25rem;
  color: var(--muted-light);
}

.source-processing,
.source-disclaimer {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.source-disclaimer {
  color: var(--ink-strong);
}

.source-rights-status {
  color: var(--muted);
}

.source-section {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--blue-pale);
}

.source-section h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.source-lede {
  max-width: 25rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.source-details {
  min-width: 0;
}

.source-details dl {
  margin-top: 0;
}

.source-link {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  margin-top: 0.8rem;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 760;
  text-underline-offset: 3px;
}

.source-inline-link {
  display: block;
  margin-top: 0.28rem;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1.35;
  text-underline-offset: 3px;
}

.source-rights-notice {
  padding: 0.8rem 0.9rem;
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--blue-pale);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.source-rights-notice strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.75rem;
}

.source-rights-notice p {
  margin: 0.4rem 0 0;
}

.source-rights-evidence {
  display: grid;
  gap: 0.42rem;
  padding: 0 0 0 1rem;
  margin: 0.55rem 0 0;
}

.source-rights-evidence li {
  padding-left: 0.15rem;
}

.source-rights-evidence a {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--blue-deep);
  font-weight: 720;
  text-underline-offset: 3px;
}

.source-notes {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.05rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.method-section {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 2rem;
  padding: 2rem 1.5rem 1.75rem;
}

.method-heading h2 {
  font-size: clamp(1.85rem, 4vw, 3.2rem);
}

.method-copy > p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.method-copy strong {
  color: var(--ink-strong);
  font-weight: 780;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.65rem;
}

.method-grid article {
  padding-top: 0.8rem;
  border-top: 2px solid var(--blue);
}

.method-grid article > span {
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.method-grid h3 {
  margin: 0.55rem 0 0;
  color: var(--ink-strong);
  font-size: 0.82rem;
  letter-spacing: -0.04em;
}

.method-grid p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.method-details {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}

.method-details summary {
  min-height: 2.9rem;
  padding: 0.8rem 0;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
}

.method-details > div {
  padding: 0 0 0.75rem 1.1rem;
  border-left: 2px solid var(--line);
}

.method-details p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.7;
}

.noscript-panel {
  padding: 2rem;
  border: 1px solid #efd3b8;
  background: #fffaf5;
  color: var(--muted);
}

.noscript-panel h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.noscript-panel p:last-child {
  max-width: 42rem;
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem 2rem;
  padding: 1.5rem 0 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.site-footer > div {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.site-footer strong {
  color: var(--ink-strong);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  text-underline-offset: 3px;
}

.site-footer small {
  grid-column: 1 / -1;
  color: var(--muted-light);
  font-size: 0.67rem;
}

.hero .eyebrow,
.controls-panel .section-heading .eyebrow,
.search-copy > .eyebrow,
.map-heading .eyebrow,
.table-section .section-heading .eyebrow {
  display: none;
}
@media (max-width: 1100px) {
  .app-shell {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-field {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 1.35rem;
    padding-bottom: 0.95rem;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-card {
    position: static;
  }

  .source-section,
  .method-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .method-heading h2 {
    max-width: 16ch;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 0 1rem 2.75rem;
  }

  .site-header {
    min-height: 58px;
  }

  .header-note {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem 0 0.75rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .hero-lede {
    margin-top: 0.45rem;
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .hero-index {
    justify-self: stretch;
    min-width: 0;
    padding: 0.65rem 0.85rem 0.6rem;
  }
  .hero-index strong {
    font-size: 1.55rem;
  }

  .controls-panel,
  .table-section,
  .source-section,
  .method-section {
    padding: 1.1rem 0.85rem;
  }

  .section-heading {
    display: block;
  }

  .section-aside {
    max-width: none;
    margin-top: 0.5rem;
    text-align: left;
  }

  .control-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    margin-top: 1.1rem;
  }

  .metric-field {
    grid-column: auto;
  }

  .metric-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1.1rem 0.85rem;
  }

  .search-copy p:last-child {
    max-width: none;
  }

  .map-section {
    padding-top: 0.25rem;
  }

  .map-heading {
    padding: 0.55rem 0.1rem 0.65rem;
  }

  .map-meta {
    justify-content: flex-start;
    margin-top: 0.4rem;
  }

  .map-mount {
    min-height: 22rem;
  }

  .map-card-top {
    min-height: 2.6rem;
    padding: 0 0.75rem;
    font-size: 0.67rem;
  }

  .map-instruction {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .detail-card {
    padding: 0.95rem 0.85rem;
  }

  .detail-metric dd {
    font-size: 1.38rem;
  }

  .method-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .site-footer nav {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
