:root {
  color-scheme: light;
  --cream: #f7ead7;
  --paper: #fff8eb;
  --butter: #f4d17e;
  --sage: #5f7f55;
  --sage-dark: #243f34;
  --orange: #ef7c38;
  --coral: #fa5d43;
  --coffee: #5a3828;
  --navy: #142c35;
  --ink: #182521;
  --muted: rgba(24, 37, 33, 0.68);
  --line: rgba(24, 37, 33, 0.16);
  --line-strong: rgba(24, 37, 33, 0.3);
  --panel: rgba(255, 248, 235, 0.88);
  --panel-strong: rgba(255, 248, 235, 0.96);
  --dark-panel: rgba(18, 36, 32, 0.78);
  --shadow: 0 24px 70px rgba(67, 43, 28, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(239, 124, 56, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--cream), #f1dfc5 48%, #e9d4b6);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

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

button:disabled,
button:disabled:hover {
  cursor: progress;
  opacity: 0.64;
  transform: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.error-note {
  border-color: rgba(250, 93, 67, 0.45);
  background: rgba(250, 93, 67, 0.1);
  color: #6b2418;
}

label {
  display: grid;
  gap: 7px;
  color: var(--coffee);
  font-size: 0.82rem;
  font-weight: 850;
}

.field-hint {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 14px clamp(18px, 5%, 42px);
  border-bottom: 1px solid rgba(255, 248, 235, 0.18);
  background: rgba(18, 36, 32, 0.86);
  color: var(--paper);
  backdrop-filter: blur(18px);
  width: 100%;
  max-width: 100vw;
}

.brand,
.site-nav,
.site-footer nav,
.stat-strip,
.hero-actions,
.listing-actions,
.map-actions,
.admin-actions,
.badge-row {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(244, 209, 126, 0.5);
  border-radius: 50%;
  background: rgba(255, 248, 235, 0.08);
  color: var(--butter);
}

.site-nav {
  justify-self: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.08);
}

.site-nav a {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 248, 235, 0.72);
  font-size: 0.84rem;
  font-weight: 850;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: var(--butter);
  color: var(--ink);
  outline: none;
}

.header-cta {
  justify-self: end;
  min-height: 40px;
  border-radius: 999px;
  background: #69cfc4;
  color: #092521;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 950;
}

.menu-toggle {
  display: none;
  justify-self: end;
  background: rgba(255, 248, 235, 0.08);
  color: var(--paper);
}

.menu-toggle::before {
  content: "";
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.app-shell {
  min-height: 100svh;
  padding-top: 74px;
  max-width: 100vw;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: 96px clamp(20px, 6%, 72px) 44px;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(14, 28, 24, 0.9), rgba(14, 28, 24, 0.45) 58%, rgba(14, 28, 24, 0.18)),
    linear-gradient(180deg, rgba(14, 28, 24, 0.24), rgba(14, 28, 24, 0.82));
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5%, 62px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: #69cfc4;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: 4.9rem;
  line-height: 0.96;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.6rem;
  line-height: 1.04;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  max-width: 640px;
  color: rgba(255, 248, 235, 0.78);
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .button:first-child,
.primary-button {
  border-color: transparent;
  background: var(--orange);
  color: #21130d;
}

.hero-actions .button:first-child:hover,
.primary-button:hover,
.hero-actions .button:first-child:focus-visible,
.primary-button:focus-visible {
  background: var(--butter);
  color: var(--ink);
}

.hero-note {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: var(--radius);
  background: rgba(18, 36, 32, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-note strong {
  color: var(--paper);
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-note p {
  margin: 0;
  font-size: 0.94rem;
}

.stat-strip {
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pill {
  min-width: 120px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.1);
  padding: 11px 12px;
}

.stat-pill span {
  display: block;
  color: rgba(255, 248, 235, 0.64);
  font-size: 0.74rem;
  font-weight: 850;
}

.stat-pill strong {
  display: block;
  margin-top: 3px;
  color: var(--paper);
  font-size: 1.25rem;
}

.canopy-nav {
  padding: 28px clamp(20px, 6%, 72px);
  background: rgba(18, 36, 32, 0.96);
  color: var(--paper);
}

.canopy-nav-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 999px;
  padding: 8px;
  background: rgba(255, 248, 235, 0.06);
}

.canopy-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 248, 235, 0.72);
  font-weight: 850;
}

.canopy-nav a:hover,
.canopy-nav a:focus-visible {
  background: #69cfc4;
  color: #092521;
  outline: none;
}

.section {
  padding: 78px clamp(20px, 6%, 72px);
}

.section.dark {
  background:
    linear-gradient(180deg, rgba(18, 36, 32, 0.98), rgba(20, 44, 53, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 248, 235, 0.035) 0 1px, transparent 1px 70px);
  color: var(--paper);
}

.section.dark p {
  color: rgba(255, 248, 235, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(26px, 5%, 58px);
  align-items: start;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card,
.story-card,
.place-card,
.progress-card,
.form-panel,
.policy-card,
.profile-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card,
.story-card,
.place-card,
.progress-card,
.policy-card,
.profile-panel,
.detail-panel {
  padding: 20px;
}

.story-card,
.place-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.story-card p,
.place-card p,
.policy-card p,
.progress-card p,
.detail-panel p {
  margin-bottom: 0;
}

.story-card .arrow,
.place-card .arrow {
  align-self: end;
  color: var(--orange);
  font-weight: 950;
}

.tag-row,
.meta-row,
.listing-actions,
.map-actions,
.admin-actions,
.badge-row {
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--coffee);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.tag.food,
.tag.status {
  background: rgba(239, 124, 56, 0.16);
  color: #5b2b12;
}

.legal-note {
  border-left: 4px solid var(--orange);
  background: rgba(239, 124, 56, 0.13);
  color: #4b2b1b;
  padding: 14px 16px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.map-page {
  min-height: calc(100svh - 74px);
  padding: 24px clamp(16px, 4%, 42px) 42px;
  background:
    linear-gradient(180deg, rgba(18, 36, 32, 0.98), rgba(33, 58, 45, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 248, 235, 0.035) 0 1px, transparent 1px 72px);
  color: var(--paper);
  max-width: 100vw;
  overflow-x: hidden;
}

.map-page p {
  color: rgba(255, 248, 235, 0.72);
}

.map-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}

.map-top h1 {
  margin-bottom: 10px;
  font-size: 3.3rem;
}

.movement-counter {
  display: grid;
  grid-template-columns: repeat(4, minmax(94px, 1fr));
  gap: 8px;
}

.movement-counter div {
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.08);
  padding: 12px;
}

.movement-counter strong {
  display: block;
  font-size: 1.5rem;
}

.movement-counter span {
  color: rgba(255, 248, 235, 0.64);
  font-size: 0.74rem;
  font-weight: 850;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.map-tool {
  min-width: 0;
  min-height: 660px;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: #17372d;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
}

.map-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 170px 170px auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 248, 235, 0.16);
  background: rgba(10, 24, 21, 0.68);
}

.map-toolbar input,
.map-toolbar select {
  border-color: rgba(255, 248, 235, 0.18);
  background: rgba(255, 248, 235, 0.12);
  color: var(--paper);
}

.map-toolbar option {
  color: var(--ink);
}

.zoom-controls {
  display: flex;
  gap: 6px;
}

.zoom-controls button {
  width: 44px;
  padding: 0;
  background: rgba(255, 248, 235, 0.12);
  color: var(--paper);
}

.map-board {
  position: relative;
  min-height: 602px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 42%, rgba(105, 207, 196, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(11, 18, 19, 0.18), rgba(4, 8, 8, 0.76)),
    #07100f;
}

.map-board::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(105, 207, 196, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(105, 207, 196, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, transparent 34%, rgba(0, 0, 0, 0.42) 78%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  mix-blend-mode: screen;
}

.map-board-tiles,
.map-board-lines,
.map-board-demand,
.map-board-nodes,
.map-board-clouds,
.map-board-scan {
  position: absolute;
  inset: 0;
}

.map-board-tiles {
  opacity: 0.88;
  filter: saturate(0.92) contrast(1.1) brightness(0.78);
  transform: scale(1.012);
  transform-origin: center;
}

.map-board-tiles::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 5, 6, 0.12), rgba(2, 5, 6, 0.56)),
    radial-gradient(circle at 55% 42%, transparent 18%, rgba(3, 8, 9, 0.42) 78%);
}

.map-board-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.map-board-tile.is-reference {
  opacity: 0.46;
  mix-blend-mode: screen;
  filter: brightness(1.4) contrast(1.08);
}

.map-board-lines {
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-board-lines path {
  fill: none;
  stroke: var(--butter);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 9;
  filter:
    drop-shadow(0 0 10px rgba(244, 209, 126, 0.62))
    drop-shadow(0 0 20px rgba(105, 207, 196, 0.34));
}

.map-board-demand {
  z-index: 3;
  pointer-events: none;
}

.map-neighbourhood-label {
  position: absolute;
  max-width: 122px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 248, 235, 0.14);
  border-radius: 6px;
  background: rgba(5, 8, 8, 0.72);
  color: rgba(255, 248, 235, 0.74);
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  translate: -50% 28px;
}

.map-neighbourhood-label.has-demand {
  border-color: rgba(250, 93, 67, 0.42);
  background: rgba(250, 93, 67, 0.18);
  color: var(--paper);
}

.map-demand-ring {
  position: absolute;
  border: 3px solid rgba(250, 93, 67, 0.7);
  border-radius: 50%;
  background: rgba(250, 93, 67, 0.14);
  translate: -50% -50%;
  box-shadow: 0 0 32px rgba(250, 93, 67, 0.3);
}

.map-board-nodes {
  z-index: 4;
}

.map-board-clouds,
.map-board-scan {
  z-index: 5;
  pointer-events: none;
}

.map-board-clouds {
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255, 248, 235, 0.13), transparent 26%),
    radial-gradient(ellipse at 70% 32%, rgba(255, 248, 235, 0.1), transparent 24%),
    radial-gradient(ellipse at 46% 78%, rgba(255, 248, 235, 0.08), transparent 26%);
  filter: blur(8px);
  opacity: 0.72;
  animation: cloud-slide 18s linear infinite alternate;
}

.map-board-scan {
  background: linear-gradient(115deg, transparent 0 42%, rgba(105, 207, 196, 0.18) 48%, transparent 54% 100%);
  mix-blend-mode: screen;
  transform: translateX(-36%);
  animation: map-scan 4.8s ease-in-out infinite;
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 6;
  max-width: min(560px, calc(100% - 16px));
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 248, 235, 0.74);
  font-size: 0.62rem;
  line-height: 1.25;
}

.place-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  width: clamp(44px, 4vw, 58px);
  height: clamp(44px, 4vw, 58px);
  min-height: 0;
  place-items: center;
  border: 2px solid rgba(255, 248, 235, 0.86);
  border-radius: 50%;
  background: var(--pin-color, var(--orange));
  color: #1b130e;
  padding: 0;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 7px rgba(250, 93, 67, 0.14),
    0 14px 34px rgba(0, 0, 0, 0.32);
}

.place-pin span,
.place-pin::after {
  position: absolute;
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 248, 235, 0.76);
  box-shadow: 0 0 14px rgba(255, 248, 235, 0.68);
}

.place-pin::after {
  content: attr(data-label);
  left: 50%;
  top: calc(100% + 7px);
  width: max-content;
  max-width: 132px;
  height: auto;
  padding: 5px 7px;
  border: 1px solid rgba(255, 248, 235, 0.14);
  border-radius: 6px;
  background: rgba(5, 8, 8, 0.78);
  color: var(--paper);
  font-size: 0.65rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: none;
}

.place-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: var(--butter);
  box-shadow:
    0 0 0 8px rgba(244, 209, 126, 0.16),
    0 0 34px rgba(244, 209, 126, 0.62),
    0 0 58px rgba(105, 207, 196, 0.28);
}

.place-pin:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 4px;
}

.map-list {
  display: grid;
  min-width: 0;
  gap: 12px;
  max-height: 660px;
  overflow: auto;
  padding-right: 4px;
}

.selected-place,
.profile-panel {
  background: rgba(255, 248, 235, 0.94);
  color: var(--ink);
}

.selected-place p,
.profile-panel p {
  color: var(--muted);
}

.selected-place .photo-thumb {
  width: 100%;
  height: 150px;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 14px;
}

.place-mini {
  text-align: left;
  align-items: start;
  justify-content: start;
  flex-direction: column;
  width: 100%;
  border-color: rgba(255, 248, 235, 0.14);
  background: rgba(255, 248, 235, 0.08);
  color: var(--paper);
  padding: 13px;
}

.place-mini:hover,
.place-mini:focus-visible,
.place-mini.is-selected {
  background: var(--paper);
  color: var(--ink);
}

.place-mini span {
  display: block;
  color: currentColor;
  opacity: 0.7;
  font-size: 0.78rem;
}

.profile-panel {
  display: grid;
  gap: 14px;
}

.profile-panel .stat-pill {
  border-color: var(--line);
  background: rgba(95, 127, 85, 0.1);
}

.profile-panel .stat-pill span {
  color: var(--muted);
}

.profile-panel .stat-pill strong {
  color: var(--ink);
}

.badge-row {
  align-items: stretch;
}

.badge {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(95, 127, 85, 0.13);
  color: var(--sage-dark);
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(330px, 0.52fr);
  gap: 22px;
  align-items: stretch;
  min-height: 560px;
  padding: 30px clamp(20px, 5%, 64px);
  background: linear-gradient(180deg, rgba(18, 36, 32, 0.96), rgba(33, 58, 45, 0.92));
  color: var(--paper);
}

.detail-photo {
  min-height: 500px;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow);
}

.detail-panel {
  align-self: center;
  background: rgba(255, 248, 235, 0.96);
  color: var(--ink);
}

.detail-panel h1 {
  margin-bottom: 18px;
  font-size: 3.2rem;
}

.detail-panel p {
  color: var(--muted);
}

.form-panel {
  padding: 22px;
  background: var(--panel-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 248, 235, 0.58);
}

.demand-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.progress-card strong {
  display: block;
  color: var(--coffee);
  font-size: 1.7rem;
}

.policy-band {
  display: grid;
  gap: 14px;
}

.story-page {
  background: var(--cream);
}

.story-article {
  max-width: 820px;
  margin: 0 auto;
}

.story-article p {
  font-size: 1.04rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 6%, 72px);
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: var(--paper);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 248, 235, 0.66);
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: rgba(255, 248, 235, 0.76);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100% - 36px));
  border: 1px solid rgba(255, 248, 235, 0.22);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
  padding: 13px 15px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cloud-slide {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(3%, 1%, 0) scale(1.05);
  }
}

@keyframes map-scan {
  0%,
  44% {
    transform: translateX(-55%);
    opacity: 0;
  }

  52% {
    opacity: 0.8;
  }

  100% {
    transform: translateX(55%);
    opacity: 0;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .header-cta {
    display: none;
  }

  .hero-content,
  .split,
  .detail-hero,
  .map-layout {
    grid-template-columns: 1fr;
  }

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

  .map-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .map-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 3.7rem;
  }

  .map-top h1,
  .detail-panel h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 780px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand {
    max-width: calc(100vw - 96px);
  }

  .site-nav {
    position: fixed;
    inset: 74px 14px auto;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
    background: rgba(18, 36, 32, 0.98);
    padding: 10px;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 84svh;
    padding-top: 72px;
  }

  .hero-note {
    padding: 16px;
  }

  .canopy-nav-inner {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .canopy-nav a {
    border-radius: var(--radius);
  }

  .grid.three,
  .grid.two,
  .form-grid,
  .demand-board,
  .map-list {
    grid-template-columns: 1fr;
  }

  .map-top {
    grid-template-columns: 1fr;
  }

  .map-top > div,
  .map-layout,
  .map-tool,
  .map-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .map-top p {
    max-width: calc(100vw - 34px);
  }

  .map-toolbar {
    grid-template-columns: 1fr;
  }

  .city-map,
  .map-board {
    min-height: 480px;
  }

  .map-tool {
    min-height: 540px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .map-top h1,
  .detail-panel h1 {
    font-size: 2.3rem;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .movement-counter {
    grid-template-columns: 1fr;
  }

  .map-top h1,
  .detail-panel h1 {
    font-size: 2rem;
    line-height: 1.03;
  }

  .map-page {
    padding-inline: 14px;
  }

  .menu-toggle {
    width: 44px;
    min-width: 44px;
    padding-inline: 10px;
  }

  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .brand span:last-child {
    max-width: 114px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .hero,
  .section,
  .canopy-nav,
  .detail-hero {
    padding-inline: 16px;
  }

  .movement-counter {
    grid-template-columns: 1fr;
  }

  .stat-pill {
    min-width: 0;
    flex: 1 1 130px;
  }
}
