:root {
  color-scheme: light;
  --page: #f7f7f7;
  --surface: #ffffff;
  --surface-soft: #f0f0f0;
  --ink: #202020;
  --heading: #171717;
  --muted: #5c5c5c;
  --line: #d8d8d8;
  --control-border: #808080;
  --accent: #ffc72c;
  --link-accent: #8fc9f3;
  --link: #303030;
  --neutral-accent: #525252;
  --selected-bg: #202020;
  --selected-ink: #ffffff;
  --primary-ink: #171717;
  --primary-hover: #ffda70;
  --success: #404040;
  --warning: #5b4500;
  --notice-warning: #5b4500;
  --footer-bg: #f0f0f0;
  --footer-ink: #202020;
  --footer-muted: #5c5c5c;
  --media-bg: #404040;
  --media-soft: #262626;
  --chart-primary: #525252;
  --chart-secondary: #737373;
  --chart-accent: #525252;
  --focus: #303030;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --header-height: 72px;
  --control-height: 44px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #111111;
  --surface: #1c1c1c;
  --surface-soft: #262626;
  --ink: #f2f2f2;
  --heading: #fafafa;
  --muted: #bcbcbc;
  --line: #404040;
  --control-border: #858585;
  --link: var(--link-accent);
  --neutral-accent: #d4d4d4;
  --selected-bg: #f2f2f2;
  --selected-ink: #171717;
  --success: #d4d4d4;
  --warning: #ffe7a3;
  --notice-warning: #ffe7a3;
  --footer-bg: #171717;
  --footer-ink: #f2f2f2;
  --footer-muted: #bcbcbc;
  --chart-primary: #b0b0b0;
  --chart-secondary: #8fc9f3;
  --chart-accent: var(--accent);
  --focus: var(--accent);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body.map-expanded {
  overflow: hidden;
}

img,
svg,
canvas,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: var(--link);
  text-decoration-color: var(--link-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--asset,
.embed-note::before,
summary::after {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--icon-image) center / contain no-repeat;
  mask: var(--icon-image) center / contain no-repeat;
}

.icon--sun {
  --icon-image: url("../icons/sun.svg");
}

.icon--night {
  --icon-image: url("../icons/night.svg");
}

.icon--info,
.embed-note::before {
  --icon-image: url("../icons/info.svg");
}

.embed-note::before {
  content: "";
  margin-right: 0.35rem;
  vertical-align: -0.15em;
}

.icon--chevron,
summary::after {
  --icon-image: url("../icons/right-chevron.svg");
}

.icon--previous {
  transform: rotate(180deg);
}

.icon--fullscreen {
  --icon-image: url("../icons/full_screen.png");
}

.icon--exit-fullscreen {
  --icon-image: url("../icons/exit_full_screen.png");
}

.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: absolute;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--primary-ink);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.055);
}

.site-header__inner {
  width: 100%;
  min-height: var(--header-height);
  margin: 0;
  padding: 0.75rem clamp(1rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.6rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius);
}

.brand__name,
.brand__tag {
  display: block;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.brand__tag {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.35rem, 1vw, 0.9rem);
  min-width: 0;
  flex-wrap: nowrap;
}

.site-nav__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.4rem;
  border-radius: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.site-nav__link[aria-current="page"] {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.nav-toggle {
  display: none;
  width: var(--control-height);
  height: var(--control-height);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-soft);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.theme-picker {
  position: relative;
  justify-self: end;
}

.theme-toggle {
  width: var(--control-height);
  height: var(--control-height);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle span {
  display: flex;
}

.theme-toggle:hover,
.theme-toggle[aria-expanded="true"],
.theme-option:hover {
  background: var(--surface-soft);
}

.theme-menu {
  position: absolute;
  z-index: 110;
  top: calc(100% + var(--space-2));
  right: 0;
  width: 170px;
  padding: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.theme-option {
  width: 100%;
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
}

.theme-option[aria-checked="true"] {
  background: var(--surface-soft);
  font-weight: 750;
  box-shadow: inset 3px 0 0 var(--accent);
}

.page-main {
  min-height: 70vh;
}

.page-intro {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.page-intro--compact {
  border-bottom: 0;
  background: var(--page);
}

.page-intro__inner,
.content-band__inner,
.map-section,
.notice-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-intro__inner {
  padding: 3rem 0 2.5rem;
}

.page-intro--compact .page-intro__inner {
  padding: 1rem 0 0.5rem;
}

.narrow {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--neutral-accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--heading);
  font-size: 2.45rem;
  line-height: 1.08;
}

h2 {
  color: var(--heading);
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  line-height: 1.18;
}

h3 {
  color: var(--heading);
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

h4 {
  color: var(--heading);
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
}

p {
  margin: 0 0 1rem;
}

.page-intro p:last-child,
.content-band p:last-child,
.map-shell p:last-child,
.article-card p:last-child {
  margin-bottom: 0;
}

.page-intro__inner > p:not(.eyebrow),
.content-band__inner > p,
.section-heading p,
.article-card p,
.detail-card p,
.embed-note,
.list-status,
.updated {
  color: var(--muted);
}

.map-first {
  margin-top: 0.35rem;
}

.map-section {
  padding: 0.5rem 0 2rem;
}

.map-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 820px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-shell__bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.map-shell__bar h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-shell__heading {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.map-info,
.map-info:last-child {
  flex: 0 0 auto;
  border: 0;
}

.map-info[hidden] {
  display: none;
}

.map-info > summary {
  width: var(--control-height);
  height: var(--control-height);
  min-height: var(--control-height);
  display: grid;
  place-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  color: var(--muted);
  line-height: 1;
}

.map-info > summary > .icon--info {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.map-info > summary::after {
  display: none;
  content: none;
}

.map-info > summary:hover,
.map-info[open] > summary {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.map-info__panel {
  position: absolute;
  z-index: 3;
  top: calc(100% + 0.35rem);
  left: 0.9rem;
  width: min(34rem, calc(100% - 1.8rem));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-shell__bar p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-shell__actions,
.button-row,
.status-row,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.map-shell__actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.map-shell__actions .button {
  width: auto;
  white-space: nowrap;
}

.map-shell__status {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.9rem;
}

.map-frame {
  width: 100%;
  min-height: 540px;
  flex: 1 1 auto;
  border: 0;
  background: var(--surface-soft);
}

.embed-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.map-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
}

.map-shell.is-native-fullscreen .map-frame,
.map-shell:fullscreen .map-frame {
  min-height: 0;
}

.button,
.chip,
.slide-button {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0.62rem 0.82rem;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}

.button--primary {
  border-color: var(--control-border);
  background: var(--accent);
  color: var(--primary-ink);
}

.button--secondary,
.chip,
.slide-button {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--control-border);
}

.button:hover,
.chip:hover,
.slide-button:hover {
  background: var(--surface-soft);
}

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

.button:active,
.chip:active,
.slide-button:active,
.theme-toggle:active,
.nav-toggle:active {
  box-shadow: inset 0 0 0 2px var(--control-border);
}

.chip[aria-pressed="true"] {
  border-color: var(--neutral-accent);
  background: color-mix(in srgb, var(--neutral-accent), transparent 86%);
  color: var(--ink);
}

.content-band {
  padding: 2rem 0;
  border-top: 1px solid color-mix(in srgb, var(--line), transparent 30%);
}

.content-band__inner > h2 {
  margin-bottom: 1rem;
}

.card-grid,
.detail-grid,
.action-grid,
.stats-grid,
.chart-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.info-card,
.detail-card,
.article-card,
.stat,
.notice,
.toolbar,
.event-card,
.chart-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .info-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .chart-grid figure {
  box-shadow: none;
}

.info-card,
.article-card,
.stat,
.notice,
.toolbar {
  padding: 1rem;
}

.info-card h3 a,
.detail-card h3 a {
  color: inherit;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.section-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.notice-band {
  padding: 0 0 1rem;
}

.notice {
  color: var(--muted);
}

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

.notice-warning {
  border-color: color-mix(in srgb, var(--accent), var(--line) 35%);
  background: color-mix(in srgb, var(--accent), var(--surface) 82%);
  color: var(--notice-warning);
}

.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0.35rem 0.65rem;
  background: color-mix(in srgb, var(--neutral-accent), transparent 84%);
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 850;
}

.status-pill--muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.status-pill--warn {
  background: color-mix(in srgb, var(--accent), var(--surface) 78%);
  color: var(--warning);
}

.stats-grid {
  margin: 1rem 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stat strong {
  color: var(--link);
  font-size: 1.8rem;
  line-height: 1.1;
}

.toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  background: var(--surface-soft);
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.event-card {
  overflow: hidden;
}

.event-card__media {
  min-height: 140px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--media-bg), var(--media-soft));
  color: white;
  font-weight: 900;
  text-align: center;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-card__body {
  padding: 1rem;
}

.event-card__host {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 0.55rem;
  border-radius: var(--radius);
  padding: 0.25rem 0.55rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.detail-card {
  overflow: hidden;
}

.detail-card__body {
  padding: 1rem;
}

.slideshow {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-soft);
}

.slideshow img,
.slideshow .slide-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.slideshow img {
  object-fit: cover;
}

.slideshow .slide-link {
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 900;
  text-align: center;
}

.slideshow img.is-active,
.slideshow .slide-link.is-active {
  display: flex;
}

.slide-button {
  position: absolute;
  top: 50%;
  min-width: 48px;
  padding-inline: 0.55rem;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--surface), transparent 12%);
  color: var(--ink);
}

.slide-button--prev {
  left: 0.5rem;
}

.slide-button--next {
  right: 0.5rem;
}

.fact-list {
  display: grid;
  gap: 0.3rem;
  padding-left: 1.1rem;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
}

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

.chart-grid {
  margin-top: 1rem;
}

.chart-grid figure {
  margin: 0;
  padding: 1rem;
}

.chart-grid canvas {
  width: 100%;
  height: auto;
}

.chart-grid figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-card + .article-card {
  margin-top: 1rem;
}

.article-card h2:not(:first-child),
.legal-article h2:not(:first-child) {
  margin-top: 1.75rem;
}

.article-card ul,
.detail-card ul {
  margin: 0.45rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.details-body {
  padding: 0 0 1rem;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  color: var(--link);
}

details[open] summary::after {
  transform: rotate(90deg);
}

.action-card {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.action-card span {
  font-weight: 900;
}

.action-card small {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-article h3 {
  margin-top: 1.2rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 4px solid var(--accent);
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.site-footer a {
  color: var(--footer-ink);
}

.site-footer__inner,
.site-footer__bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.6rem 0 1rem;
}

.site-footer__inner p {
  max-width: 68ch;
  margin: 0.35rem 0 0;
  color: var(--footer-muted);
}

.site-footer__socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.site-footer__social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: #ffffff;
}

.site-footer__social-link:hover {
  border-color: var(--link);
  box-shadow: 0 0 0 2px var(--link-accent);
}

.site-footer__social-link img {
  width: 36px;
  height: 36px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 0.5rem 0.9rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  font-weight: 750;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  padding: 0 0 1.4rem;
  color: var(--footer-muted);
  font-size: 0.88rem;
}

.compat-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--page);
}

@media (max-width: 900px) {
  .site-header__inner {
    position: relative;
    gap: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .theme-picker {
    order: 2;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    gap: 0.1rem;
    border-bottom: 1px solid var(--line);
    padding: 0.35rem clamp(1rem, 4vw, 3.25rem) 0.9rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav__link {
    justify-content: flex-start;
  }

  .site-nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 0.8rem;
  }
}

@media (max-width: 920px) {
  .card-grid,
  .detail-grid,
  .chart-grid,
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .map-shell__actions {
    justify-content: flex-start;
  }

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

@media (max-width: 700px) {
  .page-intro__inner,
  .content-band__inner,
  .map-section,
  .notice-band,
  .site-footer__inner,
  .site-footer__bottom {
    width: min(100% - 22px, 1180px);
  }

  .site-header__inner {
    gap: 0.55rem;
  }

  .brand__tag {
    display: none;
  }

  .site-nav.is-open,
  .card-grid,
  .detail-grid,
  .action-grid,
  .stats-grid,
  .chart-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .page-intro__inner {
    padding: 2rem 0 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .button,
  .chip {
    width: 100%;
  }

  .filter-row,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-shell__bar {
    gap: 0.5rem;
    padding: 0.65rem 0.5rem;
  }

  .map-shell__bar h2 {
    font-size: 0.75rem;
  }

  .map-shell__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: auto;
  }

  .map-shell__actions .button {
    width: var(--control-height);
    height: var(--control-height);
    min-width: var(--control-height);
    gap: 0;
    padding: 0;
  }

  .map-shell__actions .map-action-label {
    display: none;
  }

  .map-frame {
    min-height: 460px;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}


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