:root {
  --ink: #141e1a;
  --ink-soft: #394640;
  --muted: #5f6c64;
  --paper: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --line: #e2ded4;
  --line-strong: #cbc6bb;
  --cold: #2f6f8f;
  --ice: #d6e6ed;
  --moss: #16613f;
  --moss-deep: #0f4a30;
  --moss-tint: #e6efe8;
  --sun: #df5f33;
  --sun-deep: #a83f1c;
  --sun-tint: #f5ddd0;
  --warm: #e4874f;
  --scale: linear-gradient(90deg, #2f6f8f 0%, #7ba6b8 35%, #e3c498 70%, #df5f33 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 26, 0.04), 0 10px 24px rgba(20, 30, 26, 0.06);
  --shadow-lg: 0 14px 40px rgba(20, 30, 26, 0.1);
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--sun-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--cold);
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--cold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dev-banner {
  background: repeating-linear-gradient(
    45deg,
    var(--sun-tint) 0,
    var(--sun-tint) 14px,
    #f2e4d8 14px,
    #f2e4d8 28px
  );
  border-bottom: 2px solid var(--sun-deep);
}

.dev-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6rem var(--pad);
  font-size: 0.9rem;
  color: var(--ink);
}

.dev-banner__inner p {
  margin: 0;
  font-weight: 600;
}

.dev-banner__badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--sun-deep);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

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

:where(h1, h2, h3, [id]):not(body) {
  scroll-margin-top: 6rem;
}

/* ---------- Warming-stripes motif ---------- */
.warming-stripes {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--scale);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--scale);
}

.site-header nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.wordmark {
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark:hover {
  color: var(--sun-deep);
}

.header-search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 380px;
  gap: 0.4rem;
  margin-left: auto;
}

.header-search input {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.header-search button {
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

/* ---------- Form controls ---------- */
input,
button,
.button-link {
  font: inherit;
}

input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.85rem 1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder {
  color: #9aa49d;
}

input:focus {
  outline: none;
  border-color: var(--cold);
  box-shadow: 0 0 0 3px var(--ice);
}

button,
.button-link {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.4rem;
  background: var(--cold);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

button:hover,
.button-link:hover {
  background: var(--sun-deep);
  color: #fff;
}

button:active {
  transform: translateY(1px);
}

input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
.chart-point:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Suggestions ---------- */
.suggestions {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.suggestions a {
  display: block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.suggestions a:first-child {
  border-top: 0;
}

.suggestions strong,
.suggestions span {
  display: block;
}

.suggestions span {
  color: var(--muted);
  font-size: 0.88rem;
}

.suggestions a:hover,
.suggestions a:focus,
.suggestions a.is-active {
  background: var(--ice);
}

.suggestions a.is-active {
  outline: 3px solid var(--sun);
  outline-offset: -3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7.5rem) var(--pad) clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}

.hero-stripes {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

.hero-stripes svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: clamp(3.5rem, 9vw, 7rem);
  pointer-events: none;
}

.hero-ridge svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--paper);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero h1 {
  max-width: 17ch;
  margin: 0.2rem 0 1.1rem;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
}

.intro {
  max-width: 52ch;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  color: var(--ink-soft);
}

.search-box {
  position: relative;
  max-width: 640px;
  margin-top: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid;
  border-image: var(--scale) 1;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.search-box label,
.inline-search label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.search-box > div,
.inline-search {
  display: flex;
  gap: 0.5rem;
}

.source-overview {
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.source-overview dt {
  font-weight: 700;
  color: var(--ink-soft);
}

.source-overview dd {
  margin: 0 0 0 0.2rem;
  color: var(--ink);
}

.hero-datasource {
  margin-top: 1.3rem;
}

.example-places a {
  color: var(--cold);
  font-weight: 700;
}

.example-places a:hover,
.example-places a:focus {
  text-decoration: underline;
}

/* ---------- Generic content ---------- */
.content,
.prose {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
}

.prose {
  max-width: 720px;
  font-size: 1.12rem;
  line-height: 1.65;
}

.prose h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin: 0.3rem 0 1.4rem;
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.65rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Place header ---------- */
.place-head {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
  background: linear-gradient(170deg, #0b1713 0%, #15241d 55%, #1c3328 100%);
  color: var(--paper);
}

.place-head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--scale);
}

.place-head-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(2.2rem, 5vw, 4rem);
  pointer-events: none;
}

.place-head-ridge svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--paper);
}

.place-head-inner {
  display: grid;
  max-width: var(--maxw);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  gap: 2.5rem;
  align-items: center;
}

.place-head .eyebrow {
  color: #9ec3cf;
}

.place-head .cell-note {
  color: #95b8c7;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.place-head .cell-note a {
  color: #c8e2ec;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.place-head .place-facts {
  margin: 0.55rem 0 0;
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 600;
}

.place-head h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.place-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.share-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #e9e2d4;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.share-button:hover,
.share-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.share-button[disabled] {
  opacity: 0.7;
  cursor: default;
}

.location-maps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.location-map {
  margin: 0;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.map-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #dce9df;
  border-radius: 6px;
}

.map-frame img,
.map-frame svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.location-dot {
  fill: var(--sun);
  stroke: #fff;
  stroke-width: 3;
}

.location-map figcaption {
  margin-top: 0.45rem;
  color: #a9c5d0;
  font-size: 0.72rem;
}

.map-attribution {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  color: #7f9ba6;
  font-size: 0.68rem;
}

.map-window {
  fill: rgba(223, 95, 51, 0.22);
  stroke: var(--sun);
  stroke-width: 3;
}

.raster-line {
  stroke: var(--sun);
  stroke-width: 2;
  opacity: 0.7;
}

/* ---------- Section headings ---------- */
.section-heading {
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

.section-heading h2,
.record h2,
.method-note h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.section-heading p:last-child {
  color: var(--muted);
}

/* ---------- Metrics ---------- */
.metric-table {
  margin: 2rem 0 5rem;
  border-top: 2px solid var(--ink);
}

.headline-metrics {
  margin: 2rem 0 0.75rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
  grid-template-columns: 1fr;
  background: transparent;
  border: 0;
}

.headline-grid-heading {
  display: none;
}

.headline-row {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  gap: 0.6rem 1rem;
  align-items: end;
  width: 30rem;
  max-width: 100%;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.headline-row > strong {
  grid-column: 1 / -1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.headline-row > strong small {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.headline-row > span {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.headline-row > span:nth-of-type(1) {
  color: var(--muted);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.headline-row > .headline-delta {
  justify-self: center;
  align-self: end;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--sun-tint);
  color: var(--sun-deep);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

.headline-row > .headline-delta small {
  display: inline;
  margin-left: 0.1rem;
  color: var(--sun-deep);
  font-size: 0.65rem;
  font-weight: 800;
}

.headline-delta--up {
  color: var(--sun-deep);
}

.headline-delta--up small {
  color: var(--sun-deep);
}

.headline-delta--up::before {
  content: "▲\00a0";
  font-size: 0.7em;
}

.headline-delta--down {
  color: var(--cold);
}

.headline-delta--down small {
  color: var(--cold);
}

.headline-delta--down::before {
  content: "▼\00a0";
  font-size: 0.7em;
}

.headline-row > span:last-child {
  text-align: right;
}

.headline-explanation {
  max-width: 70ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.secondary-metric-section {
  margin-top: 4rem;
}

.secondary-metrics {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
  background: transparent;
  border: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.4fr) repeat(3, minmax(3rem, 1fr));
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.metric-heading {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.metric-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.metric-row > span {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.delta {
  color: var(--sun-deep);
}

/* ---------- Warming stripes ---------- */
.warming-stripes-chart {
  padding: 1rem 0.75rem 0.4rem;
}

.stripe-period {
  fill: var(--muted);
  font: 700 10px var(--sans);
  letter-spacing: 0.04em;
}

.stripe-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.national-series .section-heading,
.national-series .stripe-legend,
.national-series .hint {
  max-width: none;
}

.longterm-delta {
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
}

.longterm-delta strong {
  font-variant-numeric: tabular-nums;
}

.stripe-legend-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--scale);
}

/* ---------- Charts ---------- */
.chart-section {
  margin-top: 5rem;
}

.chart-section h3 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.2rem;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0 1rem;
  overflow: visible;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.75rem 0.5rem;
  box-shadow: var(--shadow);
}

.chart-area {
  fill: url(#lineGradient);
}

.grid {
  stroke: var(--line);
  stroke-width: 1;
}

.line {
  fill: none;
  stroke: var(--cold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend {
  stroke: var(--sun);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.trend-label {
  fill: var(--sun-deep);
  font-weight: 700;
}

.bar {
  fill: var(--sun);
  transition: fill 0.15s;
}

.bar:hover,
.bar:focus {
  fill: var(--sun-deep);
}

.chart-point {
  cursor: help;
  outline: none;
}

circle.chart-point {
  fill: var(--surface);
  stroke: var(--cold);
  stroke-width: 1.5;
}

.chart-point:hover,
.chart-point:focus {
  stroke: var(--ink);
  stroke-width: 2.5;
}

.chart-tooltip rect {
  fill: var(--ink);
  opacity: 0.94;
}

.chart-tooltip-text {
  fill: #fff;
  font: 12px var(--sans);
  font-weight: 700;
}

.axis {
  fill: var(--muted);
  font: 12px var(--sans);
}

/* ---------- Record + method note ---------- */
.record {
  margin: 5rem 0 0;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad);
  background: linear-gradient(135deg, #b2431b 0%, #df5f33 50%, #e4874f 100%);
  color: #fff;
  position: relative;
}

.record::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.record-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.record .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.record h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.record p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
}

.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0.8rem 0 1rem;
}

.record-col {
  display: flex;
  flex-direction: column;
}

.record-period {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.record-value {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.record-date {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.method-note {
  max-width: 820px;
  border-left: 4px solid;
  border-image: var(--scale) 1;
  padding: 0.2rem 0 0.2rem 1.5rem;
}

.method-note p {
  color: var(--ink-soft);
}

.method-note a {
  font-weight: 700;
}

/* ---------- Place page: TOC + sections ---------- */
.place-page {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.place-sections {
  min-width: 0;
}

.page-toc {
  position: sticky;
  top: 6rem;
  align-self: start;
  font-size: 0.9rem;
}

.page-toc ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.page-toc li a {
  display: block;
  padding: 0.3rem 0.2rem 0.3rem 0.8rem;
  margin-left: -2px;
  text-decoration: none;
  color: var(--muted);
  border-left: 2px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}

.page-toc li a:hover,
.page-toc li a[aria-current="true"] {
  color: var(--cold);
  border-left-color: var(--cold);
}

/* ---------- Glossary ---------- */
.glossary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 2rem;
}

.glossary-index a {
  min-width: 2.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: var(--cold);
}

.glossary-index a:hover {
  background: var(--ice);
  border-color: var(--cold);
}

.glossary {
  margin-top: 0.5rem;
}

.glossary > div {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.glossary dt {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.glossary dd {
  margin: 0.3rem 0 0;
  max-width: 64ch;
  color: var(--ink-soft);
}

/* ---------- Results / search ---------- */
.result-list {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
  margin-top: 1.5rem;
}

.result-list li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.1s;
}

.result-list li:hover {
  border-color: var(--sun);
  transform: translateY(-2px);
}

.result-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.result-list a::after {
  content: "→";
  color: var(--sun);
  font-weight: 800;
}

.result-list strong,
.result-list span {
  display: block;
}

.result-list strong {
  font-size: 1.05rem;
}

.result-list span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.result-list a:hover {
  background: var(--surface-2);
}

.inline-search {
  position: relative;
  max-width: 560px;
  margin: 1.5rem 0;
}

/* ---------- Tables ---------- */
.place-summary {
  max-width: 68ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

.yearly-details {
  margin-top: 1.5rem;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  overflow-x: auto;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cold);
}

table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

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

thead th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--line);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 5rem;
  border-top: 3px solid;
  border-image: var(--scale) 1;
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--surface-2);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--pad);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: start;
}

footer p {
  margin: 0;
}

.footer-release {
  font-family: var(--mono);
  font-size: 0.76rem;
}

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

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--sun-deep);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
    order: 3;
  }

  .site-header nav {
    order: 2;
  }

  .place-head-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location-maps {
    grid-template-columns: 1fr;
  }

  .headline-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    width: auto;
  }

  .headline-row > strong {
    grid-column: 1 / -1;
  }

  .headline-row > span:nth-of-type(1) {
    grid-column: 1;
  }

  .headline-row > .headline-delta {
    grid-column: 2;
    justify-self: end;
  }

  .headline-row > span:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .metric-row {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0.4rem;
  }

  .metric-row > :last-child {
    grid-column: 2 / -1;
  }

  .metric-heading > :last-child {
    display: none;
  }

  .inline-search {
    flex-wrap: wrap;
  }

  .inline-search label {
    flex-basis: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .place-page {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-toc {
    position: static;
    top: auto;
  }

  .record-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .place-head-inner {
    grid-template-columns: 1fr;
  }

  .location-maps {
    max-width: 680px;
  }
}
