/* ============================================================
   The Talus Field. Alpine Journal direction
   Serious editorial chrome. Ruled. Dense. Typographic.
   ============================================================ */

:root {
  /* Golden hour. Warm cream paper, oxidized iron red */
  --paper: #f1ead6;
  --paper-2: #e6dcc1;
  --paper-3: #d8c89e;
  --ink: #14110c;
  --ink-2: #36291c;
  --ink-3: #50402e;      /* lifted from #6e5c43 → ~7:1 on --paper for outdoor legibility */
  --rule: #2a2118;       /* rules are now near-black, like a journal */
  --rule-soft: #c1ad84;
  --moss: #7a2a10;       /* oxidized iron red */
  --moss-2: #9a3a1c;
  --rust: #7a2a10;
  --gold: #8a661a;

  /* Type system. Alpine Journal-leaning */
  --serif: 'EB Garamond', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --display: 'EB Garamond', 'Source Serif 4', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 66ch;
  --gutter: clamp(20px, 4vw, 48px);
}

/* Palette swap. Granite */
[data-palette="granite"] {
  --paper: #efece3;
  --paper-2: #e1ddcd;
  --paper-3: #cfc9b3;
  --ink: #14140f;
  --ink-2: #2f2f29;
  --ink-3: #484840;      /* lifted from #5e5e54 → ~6.7:1 on --paper */
  --rule: #1c1c17;
  --rule-soft: #b9b39d;
  --moss: #243a26;
  --moss-2: #3d573f;
  --rust: #7a3a1c;
  --gold: #8a7020;
}

/* Palette swap. High sierra */
[data-palette="sierra"] {
  --paper: #ebede9;
  --paper-2: #d8ddd9;
  --paper-3: #bfc6c0;
  --ink: #0c1014;
  --ink-2: #232a32;
  --ink-3: #3d4a58;      /* lifted from #50596a → ~6.5:1 on --paper */
  --rule: #11161c;
  --rule-soft: #a8b0b3;
  --moss: #1a2c40;
  --moss-2: #2c456b;
  --rust: #5e3e25;
  --gold: #75601f;
}

/* Density swap */
[data-density="dense"] {
  --measure: 60ch;
  --gutter: clamp(16px, 3vw, 36px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ===== Global tap feedback ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 1px;
}
button:active:not(:disabled),
a:active { opacity: 0.75; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

body {
  background: var(--paper);
  /* Subtle paper grain via radial dot. Barely visible, just texture */
  background-image: radial-gradient(color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-soft);
}
a:hover { text-decoration-color: var(--moss); color: var(--moss); }

::selection { background: var(--ink); color: var(--paper); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}
h1 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.1; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.25; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-2);
}
.eyebrow--moss { color: var(--moss); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===== Layout ===== */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 780px; }
.wrap--read { max-width: 660px; }

/* ===== Masthead ===== */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--paper) 94%, transparent);
}
.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 12px;
  padding: 8px var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.masthead__top span + span { margin-left: 18px; }
.masthead__weather {
  display: flex;
  align-items: center;
  gap: 8px;
}
.masthead__weather-label {
  margin-right: 4px;
  color: var(--ink-3);
}
.masthead__weather a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.masthead__weather a:hover {
  color: var(--accent, var(--ink));
  border-bottom-color: currentColor;
}
.masthead__weather-sep { color: var(--ink-3); opacity: 0.85; }
.masthead__paper {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.masthead__paper a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.masthead__paper a:hover { color: var(--ink); border-bottom-color: currentColor; }
.masthead__paper-label { color: var(--ink-3); }
@media (max-width: 720px) {
  .masthead__top { padding: 6px var(--gutter); column-gap: 10px; }
  .masthead__top span + span { margin-left: 12px; }
  .masthead__weather { flex-wrap: wrap; gap: 6px 10px; }
  .masthead__weather-label { margin-right: 0; }
  .masthead__weather a,
  .masthead__paper a { padding: 4px 0; }
  .masthead__weather-cityfull { display: none; }
  .masthead__paper {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .masthead__paper-label { display: none; }
}
.masthead__main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 6px;
}
.brand-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-block__text { display: flex; flex-direction: column; gap: 0; }
.brand__mark {
  display: block;
  height: 56px;
  width: auto;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--moss); }
.nav__cta {
  border: 1px solid var(--ink) !important;
  padding: 7px 14px;
  font-size: 11px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }

/* Mobile hamburger menu. Hidden at desktop, shown when inline links collapse. */
.nav__menu-wrap { position: relative; display: none; }
.nav__menu-toggle {
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.nav__menu-toggle:hover { color: var(--ink); }
.nav__menu-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
}
.nav__menu-bars > span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 0;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(20, 20, 20, 0.08);
  display: flex;
  flex-direction: column;
}
.nav__menu a {
  padding: 12px 18px;
  border-bottom: 0 !important;
  white-space: nowrap;
}
.nav__menu a:hover { background: var(--paper-2); color: var(--ink); }
.nav__menu a.is-active { color: var(--ink); }
.nav__menu a.is-active::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--moss);
  margin-right: 10px;
  transform: translateY(-2px);
}

/* Primary CTA. The paid product */
.nav__primary {
  background: var(--ink);
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__primary:hover {
  background: var(--moss);
  border-color: var(--moss) !important;
  color: var(--paper) !important;
}
.nav__primary.is-active {
  background: var(--moss);
  border-color: var(--moss) !important;
}

/* ===== Directory. Quiet "for operators" strip ===== */
.places-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}
.places-strip__copy {
  flex: 1;
  min-width: 240px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
}
.places-strip__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--moss);
  margin-right: 8px;
}
.places-strip__cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.places-strip__cta:hover { color: var(--moss) !important; border-bottom-color: var(--moss); }

/* ===== Directory. Sponsorship pitch ===== */
.places-pitch {
  border: 1px solid var(--ink);
  border-left: 6px solid var(--moss);
  background: var(--paper-2);
  padding: 48px;
}
.places-pitch__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 12px;
}
.places-pitch__title {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
  color: var(--ink);
}
.places-pitch__lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 0 36px;
}
.places-pitch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.places-pitch__grid h2 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}
.places-pitch__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.places-pitch__grid li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.places-pitch__grid li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--moss);
  font-weight: 700;
}
.places-pitch__tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.places-pitch__tier {
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  padding: 24px;
}
.places-pitch__tier--featured {
  border-color: var(--ink);
  background: var(--paper);
}
.places-pitch__tier-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.places-pitch__tier--featured .places-pitch__tier-eyebrow { color: var(--moss); }
.places-pitch__tier-summary {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.places-pitch__tier-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}
.places-pitch__cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  margin-bottom: 24px;
}
.places-pitch__cta:hover { background: var(--moss); border-color: var(--moss); }
.places-pitch__fineprint {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 70ch;
  margin: 0;
}
.places-pitch__fineprint a { color: var(--ink-2); text-decoration: underline; }
@media (max-width: 720px) {
  .places-pitch { padding: 32px 24px; }
  .places-pitch__title { font-size: 30px; }
  .places-pitch__grid, .places-pitch__tiers { grid-template-columns: 1fr; }
}

/* ===== Directory page ===== */
/* Three-region photo triptych. Replaces the old NPS map. */
.region-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.region-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.region-tile__frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.region-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}
.region-tile figcaption { padding-top: 14px; }
.region-tile__eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 6px;
}
.region-tile__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
}
.region-tile__note {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36ch;
}

/* "The standard" body block */
.places-standard__heading {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
}
.places-standard__body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.places-standard__body:last-child { margin-bottom: 0; }

/* Yosemite Conservancy callout. The single real entry. */
.conservancy {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 32px;
}
.conservancy__eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}
.conservancy__name {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
}
.conservancy__body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 64ch;
}
.conservancy__link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.conservancy__link:hover { color: var(--moss); border-bottom-color: var(--moss); }

/* Categories index. Inclusion criteria, not empty slots. */
.dir-cats { list-style: none; padding: 0; margin: 0; }
.dir-cats__item {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.dir-cats__item:last-child { border-bottom: 1px solid var(--rule); }
.dir-cats__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}
.dir-cats__note {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.dir-cats__status {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Operator CTA. Quiet. */
.dir-cta__body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.dir-cta__link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid var(--moss);
  padding-bottom: 2px;
}
.dir-cta__link:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 720px) {
  .region-triptych { grid-template-columns: 1fr; gap: 32px; }
  .conservancy__name { font-size: 28px; }
  .dir-cats__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .dir-cats__status { margin-top: 4px; }
}

/* Footer affiliate disclosure */
.site-footer__disclosure {
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  padding-top: 20px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 760px;
}
.site-footer__disclosure a { color: var(--ink-2); text-decoration: underline; }

/* ===== Sticky Field Guide promo bar (article pages) ===== */
.guide-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.guide-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.guide-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}
.guide-bar__copy { flex: 1; min-width: 0; }
.guide-bar__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--moss);
  margin-right: 10px;
}
.guide-bar__pitch {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--paper);
  line-height: 1.45;
}
.guide-bar__cta {
  flex-shrink: 0;
  background: var(--moss);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  white-space: nowrap;
  border: 1px solid var(--moss);
}
.guide-bar__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 720px) {
  .guide-bar__inner { padding: 10px 0; gap: 12px; }
  .guide-bar__pitch { display: none; }
  .guide-bar__eyebrow { color: var(--paper); }
}

/* ===== End-of-article Field Guide CTA ===== */
.guide-cta {
  margin: 56px 0 0;
  padding: 36px 40px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-left: 6px solid var(--moss);
}
.guide-cta__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 10px;
}
.guide-cta__title {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.guide-cta__body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 22px;
}
.guide-cta__btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid var(--ink);
}
.guide-cta__btn:hover { background: var(--moss); border-color: var(--moss); }

/* ===== Footer ===== */
.site-footer {
  border-top: 2px solid var(--rule);
  margin-top: 80px;
  padding: 56px 0 32px;
  background: var(--paper);
}
.site-footer__masthead {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.site-footer__sub {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-bottom: 36px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-family: var(--serif); font-size: 16px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--moss); }
.site-footer__about p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 36ch;
}
.site-footer__legal {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__legal a { color: var(--ink-3); margin-right: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--moss); color: var(--paper); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { transition: transform 0.15s ease; font-size: 12px; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ===== Photo placeholder. Alpine Journal plate ===== */
.placeholder {
  background:
    /* faint cross-hatch, photogravure feel */
    repeating-linear-gradient(
      45deg,
      color-mix(in oklab, var(--ink) 7%, transparent) 0 1px,
      transparent 1px 6px
    ),
    repeating-linear-gradient(
      -45deg,
      color-mix(in oklab, var(--ink) 5%, transparent) 0 1px,
      transparent 1px 8px
    ),
    var(--paper-2);
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(20, 17, 12, 0.06),
    0 14px 28px -10px rgba(20, 17, 12, 0.22),
    0 4px 10px -2px rgba(20, 17, 12, 0.10);
  transition: box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .placeholder,
.placeholder:hover {
  box-shadow:
    0 1px 0 rgba(20, 17, 12, 0.10),
    0 22px 38px -10px rgba(20, 17, 12, 0.34),
    0 6px 14px -2px rgba(20, 17, 12, 0.16);
}
/* Subtle vignette pulls the eye to the subject. Photos only. */
.placeholder--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
}
.placeholder::after {
  /* Plate / figure label, top-right. Engraved feel via offset hard shadow. */
  content: attr(data-tag);
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 5px 9px;
  border: 1px solid var(--ink);
  pointer-events: none;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.placeholder__motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  color: var(--ink);
}
.placeholder__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Vibrant default. Pop, not Instagram-stylized. */
  filter: saturate(1.15) contrast(1.10) brightness(1.02);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s ease;
  transform-origin: center;
  will-change: transform;
}
.card:hover .placeholder__img,
.placeholder:hover .placeholder__img {
  transform: scale(1.05);
  filter: saturate(1.25) contrast(1.14) brightness(1.04);
}
.placeholder--photo {
  /* let the photo carry texture; drop the cross-hatch */
  background: var(--ink);
}
.placeholder__credit {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  padding: 4px 8px;
  pointer-events: none;
  max-width: calc(100% - 28px);
}
.placeholder--lg .placeholder__credit { bottom: 16px; }
.placeholder--sm .placeholder__credit { bottom: 10px; font-size: 8px; padding: 3px 6px; }

/* Natural mode: the photo dictates the container's aspect ratio so the
   entire image is visible (no cropping). Used for hero plates where we
   want to honor the photographer's framing. */
.placeholder--natural { height: auto; }
.placeholder--natural .placeholder__img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: initial;
}

/* ===== Article cards ===== */
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.card__cat {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 10px;
}
.card__title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin-bottom: 10px;
  text-wrap: balance;
  color: var(--ink);
}
.card:hover .card__title { color: var(--moss); }
.card__dek {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 12px;
  font-style: italic;
}
.card__meta {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}
.card__meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: var(--rule-soft);
}

/* ===== Section headers ===== */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-family: var(--sans);
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--ink);
}
.section-head a {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
}
.section-head a:hover { color: var(--moss); }

/* ===== Forms ===== */
.field { display: block; margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--serif);
  font-size: 17px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  color: var(--ink);
  outline: none;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--moss); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

/* ===== Article body ===== */
.prose { font-size: 19px; line-height: 1.65; color: var(--ink); }
.prose p { margin: 0 0 1.2em; }
.prose h2 {
  font-family: var(--sans);
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin: 2.4em 0 0.8em;
  border-top: 1px solid var(--rule);
  padding-top: 1em;
}
.prose h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 1.6em 0 0.4em;
  font-weight: 600;
  font-style: italic;
}
.prose blockquote {
  border-left: 0;
  padding: 0;
  margin: 1.6em 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.2em 0;
}
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose figure { margin: 2em 0; }
.prose figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 10px;
  line-height: 1.4;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em auto;
  width: 100%;
}
.prose .dropcap::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 5em;
  float: left;
  line-height: 0.85;
  margin: 0.06em 0.08em 0 -0.04em;
  color: var(--moss);
}

/* ===== Stat block (field guide) ===== */
.statblock {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  margin: 24px 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.statblock__item .label {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 700;
}
.statblock__item .val {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  font-feature-settings: "tnum";
}

/* ===== Page header ===== */
.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.page-head .eyebrow { margin-bottom: 18px; display: inline-block; }
.page-head h1 {
  max-width: 18ch;
  margin-bottom: 20px;
}
.page-head__dek {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.4;
}

/* ===== Tag/chip ===== */
.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  margin-right: 4px;
  margin-bottom: 4px;
  background: transparent;
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip.is-active { background: var(--ink); color: var(--paper); }

/* ===== Newsletter inline ===== */
.nlbox {
  border: 1px solid var(--ink);
  padding: 36px;
  margin: 48px 0;
  background: var(--paper);
  position: relative;
}
.nlbox::before {
  content: "Dispatch";
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--paper);
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  font-weight: 700;
}
.nlbox h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
  font-style: italic;
}
.nlbox p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 20px;
  font-family: var(--serif);
}
.nlbox__form {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
}
.nlbox__form input {
  flex: 1;
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-size: 17px;
  padding: 8px 0;
  outline: none;
}
.nlbox__form input:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.nlbox__form button {
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  color: var(--ink);
  text-transform: uppercase;
  padding: 8px 0;
}
.nlbox__form button:hover { color: var(--moss); }

/* ===== Hero (front-page lede) ===== */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero__kicker {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.hero__kicker .dot {
  width: 6px; height: 6px; background: var(--moss);
  display: inline-block;
}
.hero h1 { margin-bottom: 28px; max-width: 14ch; }
.hero__dek {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  max-width: 44ch;
  line-height: 1.4;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ===== Map trigger (Places page) ===== */
.map-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  position: relative;
  transition: transform 0.2s ease;
}
.map-trigger:hover { transform: translateY(-2px); }
.map-trigger:focus-visible { outline: 2px solid var(--moss); outline-offset: 6px; }
.map-trigger::after {
  content: "Click to explore";
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 18, 14, 0.82);
  color: #f1ead6;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.map-trigger:hover::after,
.map-trigger:focus-visible::after { opacity: 1; }

/* ===== Homepage webcam tiles ===== */
.cam-tile:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; border-radius: 2px; }

/* ===== Lightbox (pan + zoom map viewer) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: lbIn 0.18s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.94);
}
.lightbox__panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lightbox__viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform-origin: center center;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
  will-change: transform;
}
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(20, 18, 14, 0.96);
  color: #f1ead6;
  border-top: 1px solid rgba(241, 234, 214, 0.1);
  flex-wrap: wrap;
}
.lightbox__caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.lightbox__controls { display: flex; gap: 6px; align-items: center; }
.lightbox__controls button {
  background: transparent;
  border: 1px solid rgba(241, 234, 214, 0.25);
  color: #f1ead6;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  cursor: pointer;
  min-width: 40px;
  min-height: 36px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lightbox__controls button:hover {
  background: rgba(241, 234, 214, 0.1);
  border-color: rgba(241, 234, 214, 0.4);
}
.lightbox__close { margin-left: 8px; font-size: 14px; }

@media (max-width: 480px) {
  .lightbox__bar { padding: 10px 14px; gap: 10px; }
  .lightbox__caption { font-size: 10px; }
  .lightbox__controls button { min-width: 36px; padding: 6px 10px; font-size: 11px; }
}

/* ===== Exit-intent newsletter modal ===== */
.nlmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lbIn 0.18s ease;
}
.nlmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.6);
}
.nlmodal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(20, 18, 14, 0.35);
}
.nlmodal__card h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 10px;
}
.nlmodal__card p {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 20px;
}
.nlmodal__card .nlbox__form { border-bottom: 1px solid var(--ink); }
.nlmodal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-3);
  padding: 6px;
}
.nlmodal__close:hover { color: var(--ink); }

/* ===== Map newsletter gate ===== */
.map-gate__body {
  padding-top: 32px;
  padding-bottom: 96px;
  max-width: 640px;
}
.map-gate__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--rule);
}
.map-gate__list li {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.map-gate__form { margin-bottom: 14px; }
.map-gate__fine {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 480px) {
  .nlmodal { padding: 16px; }
  .nlmodal__card { padding: 28px 22px; }
  .nlmodal__card h3 { font-size: 24px; }
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  /* Inline links don't fit comfortably at this width — collapse into the hamburger menu. */
  .nav { gap: 0; }
  .nav__link { display: none; }
  .nav__menu-wrap { display: block; }
  .statblock { grid-template-columns: 1fr 1fr; }
  .masthead__top { font-size: 9px; }
}

/* ===== Mobile (≤720px) ===== */
@media (max-width: 720px) {
  /* Prevent any rogue element from causing horizontal scroll. */
  html, body { overflow-x: hidden; }

  /* Tighter base type and gutters on phones. */
  html { font-size: 17px; }
  :root { --gutter: 18px; }
  [data-density="dense"] { --gutter: 16px; }

  h1 { font-size: clamp(34px, 8.5vw, 48px); }
  .hero__dek, .page-head__dek { font-size: 18px; }

  /* Inline grids on home, articles, article, guide, newsletter pages.
     React renders style props as kebab-case in the DOM, so we can target them. */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* The 4-up sections grid on the home page is more useful as a 2x2 than stacked. */
  [style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }

  /* Section padding overrides for inline-styled paddingTop. Halve generous spacing. */
  section.wrap[style*="padding-top: 96"],
  section.wrap[style*="padding-top: 80"] { padding-top: 48px !important; }
  section.wrap[style*="padding-top: 64"],
  section.wrap[style*="padding-top: 56"] { padding-top: 40px !important; }

  /* Hamburger already active from the 880px breakpoint, so no nav rules here. */
  .masthead__main { padding: 12px var(--gutter); gap: 12px; }
  .brand { font-size: 22px; }
  .brand__sub { display: none; }
  .brand__mark { height: 40px; }
  .brand-block { gap: 10px; }
  .nav__primary { padding: 7px 12px; font-size: 10px; letter-spacing: 0.08em; }

  .nav__menu { right: -8px; min-width: 220px; }
  .nav__menu a { padding: 14px 18px; font-size: 14px; }

  .masthead__top { padding: 6px var(--gutter); }

  /* Hero. Less padding, no big gap. */
  .hero { padding: 32px 0 32px; }
  .hero__kicker { font-size: 9px; gap: 10px; padding-bottom: 12px; margin-bottom: 16px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { padding: 12px 18px; font-size: 11px; }

  /* Section heads */
  .section-head { margin-bottom: 20px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
  .section-head h2 { font-size: 11px !important; }

  /* Featured "This Week" headline shrinks. */
  .card__title { font-size: 22px; }

  /* Page head. */
  .page-head { padding: 36px 0 28px; }
  .page-head h1 { margin-bottom: 14px; }
  .page-head__dek { font-size: 17px; }

  /* Newsletter inline. */
  .nlbox { padding: 24px 18px; margin: 32px 0; }
  .nlbox h3 { font-size: 22px; }
  .nlbox p { font-size: 15px; }
  .nlbox__form { flex-wrap: wrap; gap: 4px; }
  .nlbox__form input { width: 100%; font-size: 16px; padding: 10px 0; }
  .nlbox__form button { width: 100%; text-align: left; padding: 10px 0; }

  /* Forms. Bump font to 16px to stop iOS zoom on focus. */
  .field input, .field textarea, .field select { font-size: 16px; }

  /* Buttons. Comfortable tap targets. */
  .btn { padding: 12px 18px; font-size: 11px; min-height: 44px; }

  /* Footer. One column at phone size. */
  .site-footer { margin-top: 56px; padding: 40px 0 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .site-footer__masthead { font-size: 26px; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }

  /* Prose. Tighten dropcap so it doesn't crowd the first line on a small column. */
  .prose { font-size: 17px; line-height: 1.6; }
  .prose .dropcap::first-letter { font-size: 4em; margin-right: 0.06em; }
  .prose blockquote { font-size: 21px; margin: 1.2em 0; padding: 0.8em 0; }
  .prose h3 { font-size: 19px; }

  /* Article header byline row stacks. */
  .wrap--narrow > div[style*="display: flex"][style*="align-items: center"] {
    flex-wrap: wrap;
  }
  /* Inline forms (newsletter page, etc.) wrap their button onto a new line. */
  .wrap--narrow > form[style*="display: flex"] {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .wrap--narrow > form[style*="display: flex"] > input {
    flex-basis: 100% !important;
    font-size: 18px !important;
  }
  .wrap--narrow > form[style*="display: flex"] > .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sticky Field Guide bar */
  .guide-bar__inner { padding: 10px var(--gutter) !important; }
  .guide-bar__cta { padding: 10px 14px; font-size: 11px; }

  /* End-of-article guide CTA */
  .guide-cta { padding: 24px 22px; margin-top: 40px; }
  .guide-cta__title { font-size: 24px; }
  .guide-cta__body { font-size: 16px; }

  /* Stat block */
  .statblock { grid-template-columns: 1fr 1fr; gap: 16px; }
  .statblock__item .val { font-size: 16px; }

  /* Places strip */
  .places-strip { padding: 16px var(--gutter); gap: 12px; }
  .places-strip__copy { font-size: 15px; }

  /* Tiles inside the home "By Section" 2x2 grid keep their internal padding readable. */
  [style*="repeat(4"] > a { padding: 18px !important; }
  [style*="repeat(4"] > a > div[style*="font-size: 26px"] { font-size: 20px !important; }

  /* On mobile, hide the credit overlay so it never blocks the image. */
  .placeholder__credit { display: none; }
  .placeholder::after { display: none; }

  /* Chips wrap nicely */
  .chip { padding: 8px 12px; font-size: 11px; }

  /* Tap target floor for the visible mobile nav trigger. */
  .nav__menu-toggle { min-height: 44px; min-width: 44px; }

  /* Eyebrow and mono labels: up from 10/11px for sunlight legibility. */
  .eyebrow { font-size: 12px; letter-spacing: 0.18em; }
  .mono { font-size: 13px; }
}

@media (max-width: 420px) {
  /* Smallest phones. Tighten brand block so the menu button stays comfortable. */
  .nav__primary { padding: 6px 10px; font-size: 10px; }
  .brand { font-size: 20px; }
  .brand__mark { height: 34px; }
  .brand-block { gap: 8px; }
  .masthead__main { gap: 8px; }
}

/* ===== Page transitions ===== */
.page { animation: pageIn 0.25s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ===== Kit page ===== */
.kit__tabs {
  display: flex;
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.kit__tab {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid var(--rule);
  padding: 22px 24px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  font-family: var(--sans);
}
.kit__tab:last-child { border-right: none; }
.kit__tab:hover { background: var(--paper-2); color: var(--ink); }
.kit__tab.is-active {
  background: var(--ink);
  color: var(--paper);
}
.kit__tab-roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0;
}
.kit__tab-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kit__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}
.kit__list-roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-3);
  letter-spacing: 0;
}
.kit__count { text-align: right; font-family: var(--sans); }
.kit__count-num {
  display: block;
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
}
.kit__count-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
/* Progress reset (sits under the .kit__count tally) */
.kit-reset {
  display: block;
  margin-top: 12px;
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.kit-reset:hover { color: var(--moss); }

/* Checklist groups */
.kit-group { margin-top: 44px; }
.kit-group:first-of-type { margin-top: 8px; }
.kit-group__title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.kit-group__list { list-style: none; padding: 0; margin: 0; }

/* Checklist rows */
.kit-check { border-bottom: 1px solid var(--rule-soft); }
.kit-check:last-child { border-bottom: none; }
.kit-check__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  margin: 0;
  cursor: pointer;
}
.kit-check__box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--moss);
  transform: translateY(3px);
  cursor: pointer;
}
.kit-check__text { display: block; }
.kit-check__name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.kit-check__box:checked ~ .kit-check__text .kit-check__name {
  color: var(--ink-3);
  text-decoration: line-through;
}
.kit-check__note {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 62ch;
}
.kit-check__links {
  margin: -2px 0 12px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.kit-check__link,
.kit-check__article {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid var(--moss);
  padding-bottom: 1px;
}
.kit-check__link:hover,
.kit-check__article:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* The John box callout (any item carrying a vendor link) */
.kit-check--callout {
  background: var(--paper-2);
  border-left: 3px solid var(--moss);
  border-bottom: none;
  padding: 0 16px;
  margin: 8px 0;
}
.kit-check--callout .kit-check__links { margin-left: 46px; }

@media (max-width: 720px) {
  .kit-group__title { font-size: 21px; }
  .kit-check__name { font-size: 17px; }
}
.kit__essay {
  margin-top: 48px;
  padding: 32px 32px 36px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--moss);
}
.kit__rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.kit__rec { list-style: none; padding: 0; margin: 0; }
.kit__rec li {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.kit__rec li:last-child { border-bottom: 1px solid var(--rule); }
.kit__rec-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 4px;
}
.kit__rec-area {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.kit__rec-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 10px;
  max-width: 48ch;
}
.kit__rec-link {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
@media (max-width: 720px) {
  .kit__tab-label { font-size: 11px; letter-spacing: 0.1em; }
  .kit__tab { padding: 14px 12px; gap: 8px; }
  .kit__tab-roman { font-size: 16px; }
  .kit__rec-grid { grid-template-columns: 1fr; gap: 40px; }
  .kit__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .kit__count { text-align: left; }
  .kit__count-num { font-size: 44px; }
}

/* ============================================================
   /MAP — Google Maps + region-grouped trip builder.
   Layout: a fixed-width left rail (`.map-page__sidebar`) plus the
   map container (`#map`). The rail leads with My Trip (the trip
   the visitor is assembling), then Suggested-trip quick picks,
   then Browse-by-area accordions, then the category legend.
   On mobile the rail collapses to a three-snap bottom sheet
   (peek / half / full) so the map stays full-screen by default.
   ============================================================ */

.map-page {
  display: flex;
  flex-direction: row;
  height: calc(100dvh - 64px);
  width: 100%;
  position: relative;
  background: var(--paper-2);
}

.map-page--loading,
.map-page__error {
  padding: 24px;
  font: 14px/1.5 var(--sans);
  color: var(--ink);
}

.map-page__error {
  background: #fff3f3;
  border: 1px solid #f0c8c8;
  color: #8a2a2a;
  margin: 12px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Sidebar / left rail. Stays a permanent panel on desktop;
   becomes a bottom sheet at <=720px via the --peek/--half/--full
   modifiers (defined in the mobile block at the bottom).
   ------------------------------------------------------------ */
.map-page__sidebar {
  flex: 0 0 340px;
  width: 340px;
  height: 100%;
  overflow-y: auto;
  background: var(--paper-2);
  border-right: 1px solid var(--rule);
  box-shadow: inset -1px 0 0 var(--rule);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-overflow-scrolling: touch;
}

/* The drag handle is only relevant on mobile (bottom sheet).
   CSS hides it on desktop; @media block re-shows it. */
.map-sidebar__sheet-handle {
  display: none;
}

.map-sidebar__header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper-2);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.map-sidebar__title {
  margin: 0;
  font-family: var(--serif, var(--sans));
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.map-sidebar__subtitle {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}

.map-sidebar__section {
  padding: 16px 20px 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.map-sidebar__section:last-child {
  border-bottom: none;
}
.map-sidebar__section-label {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   My Trip — ordered list of stops the visitor has selected.
   Each row: position number, name + category, action buttons
   (up, down, remove).
   ------------------------------------------------------------ */
.map-sidebar__trip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.map-sidebar__trip-head .map-sidebar__section-label {
  flex: 1 1 auto;
}
.map-sidebar__trip-clear {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  cursor: pointer;
}
.map-sidebar__trip-clear:hover {
  color: var(--ink-2);
  text-decoration-color: var(--ink-3);
}

.map-sidebar__trip-empty {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  font-style: italic;
}

.map-sidebar__trip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-sidebar__trip-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 6px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--moss);
  border-radius: 3px;
  transition: background 100ms, border-color 100ms;
}
.map-sidebar__trip-item:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  border-color: var(--moss);
  background: var(--paper-3);
}
.map-sidebar__trip-item--selected {
  background: var(--paper-3);
  border-color: var(--rule);
}
.map-sidebar__trip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans);
}
.map-sidebar__trip-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
}
.map-sidebar__trip-text {
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 500;
}
.map-sidebar__trip-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.map-sidebar__trip-actions {
  display: flex;
  gap: 2px;
}
.map-sidebar__trip-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  font: 13px/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 80ms, color 80ms, border-color 80ms;
}
.map-sidebar__trip-btn:hover:not(:disabled) {
  background: var(--paper-3);
  border-color: var(--rule);
  color: var(--ink);
}
.map-sidebar__trip-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.map-sidebar__trip-btn--remove {
  font-size: 15px;
  line-height: 1;
}
.map-sidebar__trip-btn--remove:hover:not(:disabled) {
  color: #8a2a2a;
  border-color: #d8a8a8;
}

/* Visually-hidden live-region announcer for screen readers. */
.map-sidebar__sr-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Visual toast — brief confirmation on add/remove, animates in then fades. */
@keyframes toast-slide-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.map-sidebar__toast {
  position: sticky;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  animation: toast-slide-in 0.18s ease;
  border-radius: 0 0 3px 3px;
}

/* ------------------------------------------------------------
   Suggested trips — three pill buttons that REPLACE the
   current trip with a preset region selection.
   ------------------------------------------------------------ */
.map-sidebar__hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}
.map-sidebar__quickpicks {
  display: flex;
  gap: 6px;
}
.map-sidebar__quickpick {
  flex: 1 1 0;
  padding: 8px 6px;
  min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  font: 600 13px var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: background 100ms, border-color 100ms;
}
.map-sidebar__quickpick:hover {
  background: var(--paper-3);
  border-color: var(--rule);
}

/* ------------------------------------------------------------
   Browse by area — 4 collapsible region accordions. Each
   header has a toggle button (chevron + name + count) and an
   Add-all action. Body lists each stop with a +/✓ toggle.
   ------------------------------------------------------------ */
.map-sidebar__regions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-sidebar__region {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  overflow: hidden;
}
.map-sidebar__region-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid transparent;
}
.map-sidebar__region:has(.map-sidebar__region-stops),
.map-sidebar__region:has(.map-sidebar__region-empty) {
  /* When body is rendered, give the head a soft separator. */
}
.map-sidebar__region:has(.map-sidebar__region-stops) .map-sidebar__region-head,
.map-sidebar__region:has(.map-sidebar__region-empty) .map-sidebar__region-head {
  border-bottom-color: var(--rule-soft);
}
.map-sidebar__region-toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 8px;
  min-height: 44px;
  background: transparent;
  border: none;
  font: 600 13.5px var(--sans);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.map-sidebar__region-toggle:hover {
  background: var(--paper-3);
}
.map-sidebar__region-chev {
  flex: 0 0 auto;
  width: 12px;
  font-size: 11px;
  color: var(--ink-3);
}
.map-sidebar__region-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-sidebar__region-count {
  flex: 0 0 auto;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
}
.map-sidebar__region-add {
  flex: 0 0 auto;
  padding: 0 12px;
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--rule-soft);
  font: 600 11.5px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
  cursor: pointer;
  transition: background 80ms, color 80ms;
}
.map-sidebar__region-add:hover:not(:disabled) {
  background: var(--paper-3);
}
.map-sidebar__region-add:disabled {
  color: var(--ink-3);
  opacity: 0.6;
  cursor: not-allowed;
}

.map-sidebar__region-empty {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-style: italic;
}

.map-sidebar__region-stops {
  list-style: none;
  margin: 0;
  padding: 4px 0 6px;
}
.map-sidebar__region-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 4px 0 8px;
}
.map-sidebar__region-row:hover {
  background: var(--paper-3);
}
.map-sidebar__region-row--selected {
  background: var(--paper-3);
}
.map-sidebar__region-stop {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 6px 4px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.map-sidebar__region-stop-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-sidebar__region-stop-cat {
  flex: 0 0 auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.map-sidebar__region-stop-add {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: 50%;
  font: 14px/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 80ms, border-color 80ms, color 80ms;
}
.map-sidebar__region-stop-add:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--moss);
  color: var(--moss);
}
.map-sidebar__region-stop-add--in {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}
.map-sidebar__region-stop-add--in:hover:not(:disabled) {
  background: #6b7f4d;
  border-color: #6b7f4d;
  color: #fff;
}
.map-sidebar__region-stop-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ------------------------------------------------------------
   Category legend — colored dots matching the map pins.
   ------------------------------------------------------------ */
.map-sidebar__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.map-sidebar__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-2);
}
.map-sidebar__legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex: 0 0 auto;
}
.map-sidebar__legend-label {
  flex: 1 1 auto;
}

/* ------------------------------------------------------------
   Map area (right of the toolbar).
   ------------------------------------------------------------ */
.map-page__main {
  flex: 1 1 auto;
  min-width: 0;        /* lets the flex child shrink instead of overflowing */
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* The Google Maps container. Bulletproof sizing:
   - explicit width + flex-grown height so it always has non-zero dimensions
   - overflow: hidden so the map's internally-positioned tiles can't escape
   - position: relative so Maps' absolutely-positioned children anchor here
   - min-height as a safety net in case a parent collapses to 0 mid-paint */
#map,
.map-page__map {
  flex: 1 1 auto;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  position: relative;
  background: #e8eae6;
}

/* ------------------------------------------------------------
   Mobile: three-snap bottom sheet.
   The sidebar becomes a fixed bottom panel anchored to the
   viewport. A tappable handle cycles through peek/half/full so
   the map stays visible by default and the trip planner opens
   on demand.
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  .map-page {
    height: calc(100dvh - 56px);
    overflow: hidden;
  }
  .map-page__main {
    height: 100%;
  }
  #map,
  .map-page__map {
    min-height: 0;
    height: 100%;
  }
  .map-page__sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 90dvh;
    max-height: 90dvh;
    border-right: none;
    border-top: 1px solid var(--rule);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
  }
  .map-page__sidebar--peek {
    transform: translateY(calc(90dvh - 60px));
  }
  .map-page__sidebar--half {
    transform: translateY(40dvh);
  }
  .map-page__sidebar--full {
    transform: translateY(0);
  }
  .map-sidebar__sheet-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 8px 16px 6px;
    background: var(--paper-2);
    border: none;
    border-bottom: 1px solid var(--rule-soft);
    cursor: pointer;
    font-family: inherit;
    position: sticky;
    top: 0;
    z-index: 2;
    /* Reserve vertical drag for the swipe gesture; without this the browser
       would steal touchmoves to pan the page and cancel our pointer events. */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .map-sidebar__sheet-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--rule);
  }
  .map-sidebar__sheet-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .map-sidebar__header {
    padding: 12px 16px 10px;
    /* The sheet handle is the sticky element on mobile; release the header. */
    position: static;
  }
  .map-sidebar__section {
    padding: 12px 16px 16px;
  }
  .map-sidebar__trip-list {
    gap: 6px;
  }
  .map-sidebar__trip-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .map-sidebar__region-stop-add {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* ============================================================
   Dark mode — default light palette is better in direct
   sunlight; dark mode honors system preference for dusk/OLED.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #1c1812;
    --paper-2:   #252019;
    --paper-3:   #302a1e;
    --ink:       #f0e8d8;
    --ink-2:     #c8b898;
    --ink-3:     #a09070;
    --rule:      #c0a87e;
    --rule-soft: #3a3022;
    --moss:      #d87040;
    --moss-2:    #e07850;
    --rust:      #d87040;
    --gold:      #c09038;
  }

  [data-palette="granite"] {
    --paper:     #1a1a15;
    --paper-2:   #222220;
    --paper-3:   #2c2c28;
    --ink:       #ebebe0;
    --ink-2:     #c5c5b8;
    --ink-3:     #929280;
    --rule:      #b0b0a0;
    --rule-soft: #303028;
    --moss:      #507850;
    --moss-2:    #688a68;
    --rust:      #a05830;
    --gold:      #a89030;
  }

  [data-palette="sierra"] {
    --paper:     #141820;
    --paper-2:   #1c2030;
    --paper-3:   #242a3e;
    --ink:       #dde6f0;
    --ink-2:     #b8c8d8;
    --ink-3:     #8a9ab0;
    --rule:      #a0b8d0;
    --rule-soft: #283040;
    --moss:      #4a7090;
    --moss-2:    #6090b0;
    --rust:      #8a5a38;
    --gold:      #9a8030;
  }
}

/* ============================================================
   Reduced motion — disable all transitions and animations.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
