/* TripKaha: colours, type and spacing from the Travel.fyi design canvas. */
:root {
  --accent: #0f6b5c;
  --accent-dark: #0a4a40;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --text: #14261f;
  --text-2: #33443d;
  --muted: #4b5b54;
  --border: #d8dfda;
  --border-soft: #eef1ef;
  --control: #b9c4be;
  --tint: #eef6f2;

  --good-bg: #ddf1e6;
  --good-fg: #0b5a3a;
  --peak-bg: #fce9c8;
  --peak-fg: #7a4a06;
  --quiet-bg: #e3eaf7;
  --quiet-fg: #23467f;
  --hot-bg: #fbe5d3;
  --hot-fg: #8a3a0b;
  --wet-bg: #f6ddd6;
  --wet-fg: #8a2b14;
  --smog-bg: #e7e3ee;
  --smog-fg: #4a3d63;

  --font-display: "Bricolage Grotesque", "DM Sans", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 16px;

  /* Fills and lines that used to be written as hex in the rules below. */
  --on-accent: #ffffff;
  --ink: #14261f;
  --on-ink: #f4f6f3;
  --line: #e6ebe8;
  --accent-line: #9cc9b9;
  --accent-soft: #e6f2ee;
  --hover: #f1f4f2;
  --placeholder: #e8efea;
  --banner: #b9b9b9;
  --good-line: #bfdccf;
  --bad-bg: #fbf1ef;
  --bad-line: #ebc7c0;
  --scene-1: #f9ddb8;
  --scene-2: #f6ebd9;
  --scene-3: #e3eee7;
  --scene-sun: #fff4d6;
  --scene-far: #b5cec3;
  --scene-mid: #6e9e8a;
  --scene-near: #2f5e4e;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314261f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* Dark mode follows the system setting. data-theme="light" or "dark" on <html>
   overrides it, so a toggle only has to set that attribute. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #5cc4aa;
    --accent-dark: #86d9c3;
    --on-accent: #0b1f19;
    --bg: #0f1714;
    --surface: #17221e;
    --text: #e6eee9;
    --text-2: #c3cfc9;
    --muted: #9aaaa2;
    --border: #2e3c36;
    --border-soft: #222e29;
    --control: #4a5a53;
    --tint: #172a24;
    --ink: #1f312a;
    --on-ink: #f4f6f3;

    --good-bg: #173a2b;
    --good-fg: #8fdcb4;
    --peak-bg: #3e2e10;
    --peak-fg: #f2c77a;
    --quiet-bg: #1c2b47;
    --quiet-fg: #a9c3f0;
    --hot-bg: #43260f;
    --hot-fg: #f3ad7d;
    --wet-bg: #44201a;
    --wet-fg: #f0a395;
    --smog-bg: #2b2638;
    --smog-fg: #c9bde3;

    --line: #26332e;
    --accent-line: #2f6b5c;
    --accent-soft: #173029;
    --hover: #1f2b26;
    --placeholder: #1d2925;
    --banner: #2a3530;
    --good-line: #2c5a46;
    --bad-bg: #2d1a17;
    --bad-line: #5a2f27;
    --scene-1: #2c2a3c;
    --scene-2: #25302f;
    --scene-3: #1b2a25;
    --scene-sun: #f3e3b5;
    --scene-far: #3c5a50;
    --scene-mid: #2f4c41;
    --scene-near: #1d3a30;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6eee9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #5cc4aa;
    --accent-dark: #86d9c3;
    --on-accent: #0b1f19;
    --bg: #0f1714;
    --surface: #17221e;
    --text: #e6eee9;
    --text-2: #c3cfc9;
    --muted: #9aaaa2;
    --border: #2e3c36;
    --border-soft: #222e29;
    --control: #4a5a53;
    --tint: #172a24;
    --ink: #1f312a;
    --on-ink: #f4f6f3;

    --good-bg: #173a2b;
    --good-fg: #8fdcb4;
    --peak-bg: #3e2e10;
    --peak-fg: #f2c77a;
    --quiet-bg: #1c2b47;
    --quiet-fg: #a9c3f0;
    --hot-bg: #43260f;
    --hot-fg: #f3ad7d;
    --wet-bg: #44201a;
    --wet-fg: #f0a395;
    --smog-bg: #2b2638;
    --smog-fg: #c9bde3;

    --line: #26332e;
    --accent-line: #2f6b5c;
    --accent-soft: #173029;
    --hover: #1f2b26;
    --placeholder: #1d2925;
    --banner: #2a3530;
    --good-line: #2c5a46;
    --bad-bg: #2d1a17;
    --bad-line: #5a2f27;
    --scene-1: #2c2a3c;
    --scene-2: #25302f;
    --scene-3: #1b2a25;
    --scene-sun: #f3e3b5;
    --scene-far: #3c5a50;
    --scene-mid: #2f4c41;
    --scene-near: #1d3a30;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6eee9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    color-scheme: dark;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  /* A column at least as tall as the screen, so a short page still ends
     with the footer at the bottom instead of halfway up. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > main {
  flex: 1 0 auto;
}

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-dark);
}
p {
  margin: 0 0 8px;
}
p:last-child {
  margin-bottom: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  /* Sides only, so a section's own top and bottom padding survives. */
  padding-inline: 24px;
}
/* Page sections share the container's edges with the hero above them. */
.section {
  padding: 0;
}

/* Type */
.display {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.display--xl {
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow a {
  color: inherit;
  text-decoration: none;
}
.eyebrow a:hover {
  text-decoration: underline;
}
.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 65ch; /* about 70 characters a line */
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header and footer */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.logo__text span {
  color: var(--accent);
}
/* The ticket mark: teal in light mode, mint in dark mode (same switch as the theme toggle). */
.logo__mark {
  display: block;
  width: auto;
  height: 30px;
}
.logo__mark--dark,
:root[data-theme="dark"] .logo__mark--light {
  display: none;
}
:root[data-theme="dark"] .logo__mark--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__mark--light {
    display: none;
  }
  :root:not([data-theme="light"]) .logo__mark--dark {
    display: block;
  }
}
.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.topbar__nav > a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
}
/* The section you are in: accent colour, bolder, and a bar under the label. */
.topbar__nav > a[aria-current],
.navmenu > summary.is-current {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.show-sm {
  display: none;
}
/* "Not confirmed" badge inside guide text: a tip we couldn't verify. */
.badge-unconfirmed {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--hover);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: 1px;
}

/* Header "Blogs" menu: the newest posts and a link to all of them. */
.navmenu {
  position: relative;
}
.navmenu > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 0;
  color: var(--text);
}
.navmenu > summary::-webkit-details-marker {
  display: none;
}
.navmenu > summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 12px;
}
.navmenu > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.navmenu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(10, 22, 18, 0.28);
}
/* Bridges the gap above the panel so moving the mouse down doesn't close it. */
.navmenu__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.navmenu__heading {
  margin: 4px 10px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.navmenu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.navmenu__list a,
.navmenu__all {
  display: block;
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.navmenu__list a:hover,
.navmenu__all:hover {
  background: var(--hover);
}
.navmenu__title {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}
.navmenu__meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.navmenu__empty {
  padding: 10px;
  color: var(--muted);
}
.navmenu__all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* Light/dark switch: a moon in light mode, a sun in dark mode. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--hover);
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle__sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle__sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle__moon {
    display: none;
  }
}

.site-footer {
  padding: 48px 0;
}
.site-footer__panel {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 20px;
  padding: 32px 28px;
}
.site-footer__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.site-footer__lead {
  color: #dce8e2;
  max-width: 640px;
  margin-bottom: 16px;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  color: #a9b9b1;
}
.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer__bottom a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 0;
}

/* Buttons, pills, chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}
.btn--outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--control);
}
.btn--pill {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
}
.topbar__nav .btn--pill {
  min-height: 40px;
  background: var(--accent);
  color: var(--on-accent);
}
.btn--sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  align-self: flex-start;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.pill--accent {
  background: var(--tint);
  color: var(--good-fg);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

/* Month verdict tones (pill background + card stripe) */
.tone-good {
  --tone-bg: var(--good-bg);
  --tone-fg: var(--good-fg);
  --tone-bar: #3e9a72;
}
.tone-peak {
  --tone-bg: var(--peak-bg);
  --tone-fg: var(--peak-fg);
  --tone-bar: #e3a83f;
}
.tone-quiet {
  --tone-bg: var(--quiet-bg);
  --tone-fg: var(--quiet-fg);
  --tone-bar: #7c9bd1;
}
.tone-hot {
  --tone-bg: var(--hot-bg);
  --tone-fg: var(--hot-fg);
  --tone-bar: #e58552;
}
.tone-wet {
  --tone-bg: var(--wet-bg);
  --tone-fg: var(--wet-fg);
  --tone-bar: #c4574a;
}
.tone-smog {
  --tone-bg: var(--smog-bg);
  --tone-fg: var(--smog-fg);
  --tone-bar: #8a7aa8;
}
.pill[class*="tone-"] {
  background: var(--tone-bg);
  color: var(--tone-fg);
}
.crowd-0 {
  background: var(--good-bg);
  color: var(--good-fg);
}
.crowd-1 {
  background: var(--peak-bg);
  color: var(--peak-fg);
}
.crowd-2 {
  background: var(--wet-bg);
  color: var(--wet-fg);
}
.level-2 {
  color: var(--good-fg);
}
.level-1 {
  color: var(--peak-fg);
}
.level-0 {
  color: var(--wet-fg);
}

/* Layout pieces */
.detail {
  padding-top: 24px;
  padding-bottom: 40px;
}
.group {
  margin-top: 44px;
  margin-bottom: 16px;
}
.group--tight {
  margin-top: 32px;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.row__item {
  flex: 1 1 300px;
  min-width: 0;
}
.row__item--wide {
  flex: 1.3 1 340px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--text-2);
  font-size: 15px;
}
.card b {
  color: var(--text);
}
.card--link {
  text-decoration: none;
  display: block;
}
.card--link:hover {
  border-color: var(--accent);
}
.card__title {
  margin: 0 0 2px;
  font-size: 20px;
  color: var(--text);
}
.section .grid {
  margin-top: 20px;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.kv:last-child {
  border-bottom: 0;
}
.list {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list:last-child {
  margin-bottom: 0;
}
.monuments__list span {
  display: block;
  font-size: 15px;
}

/* Hero */
.banner {
  position: relative;
  margin-top: 16px;
  height: clamp(200px, 30vw, 340px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--banner);
}
.banner__art {
  display: block;
  width: 100%;
  height: 100%;
}
.banner__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 38, 31, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--muted);
}
.hero {
  max-width: 720px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.fact__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.fact__value {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.fit-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.fit-box {
  flex: 1 1 260px;
  min-width: 0;
  border-radius: 12px;
  padding: 12px 14px;
}
.fit-box__title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}
.fit-box--good {
  background: var(--tint);
}
.fit-box--good .fit-box__title {
  color: var(--good-fg);
}
.fit-box--good .chip {
  border: 1px solid var(--good-line);
}
.fit-box--bad {
  background: var(--bad-bg);
}
.fit-box--bad .fit-box__title {
  color: var(--wet-fg);
}
.fit-box--bad .chip {
  border: 1px solid var(--bad-line);
}
.alt-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px dashed var(--accent-line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text-2);
}
.alt-note .btn {
  color: var(--accent);
  border-color: var(--accent);
}

/* Decide */
.month-card {
  margin-top: 20px;
  border-left: 6px solid var(--tone-bar, var(--border));
}
.month-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.month-select {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--control);
  border-radius: 8px;
  padding: 2px 6px;
  background: var(--surface);
  min-height: 36px;
}
.month-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin: 14px 0 12px;
  padding: 0;
  list-style: none;
}
.month-strip__cell {
  width: 100%;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--tone-bg);
  color: var(--tone-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.month-strip__cell[aria-pressed="true"] {
  border-color: var(--text);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 20px;
}
.stats__cell {
  flex: 1 1 200px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.stats__cell:last-child {
  border-right: 0;
}
.stats__value {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Plan */
.route {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route--tagged {
  border-color: var(--accent-line);
}
.startfrom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.startfrom label {
  font-weight: 600;
}
.startfrom select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.trip {
  margin-bottom: 20px;
}
.trip__lead {
  margin: 0 0 12px;
}
.trip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.trip__example {
  margin-top: 8px;
}
.route--none {
  background: var(--bg);
}
.route__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.route__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.tint-box {
  background: var(--tint);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-2);
}
.tint-box__title {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

/* Compare */
.alt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alt-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
}
.sources {
  margin-top: 32px;
}
.sources .h3 {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .hide-sm {
    display: none !important;
  }
  .show-sm {
    display: inline !important;
  }
  .topbar__nav {
    gap: 14px;
  }
  .container {
    padding-inline: 16px;
  }
  .month-strip {
    grid-template-columns: repeat(6, 1fr);
  }
  .stats__cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Weather and sources */
.weather {
  margin-top: 20px;
}
.weather__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.weather__table-wrap,
.sources__wrap {
  overflow-x: auto;
  margin-bottom: 10px;
}
.weather__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
}
.weather__table th,
.weather__table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.weather__table th[scope="row"] {
  text-align: left;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
  padding-right: 10px;
}
.weather__table thead th.is-current {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
}
.sources__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  margin-top: 10px;
}
.sources__table th,
.sources__table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.sources__table thead th {
  font-size: 13px;
  color: var(--muted);
  border-bottom-color: var(--border);
}
.sources__table tbody th {
  color: var(--text);
}

/* Hero with map */
.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.hero-row .hero {
  flex: 999 1 520px;
  min-width: 0;
}
.map-card {
  flex: 1 1 320px;
  min-width: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-card__map {
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
  z-index: 0;
}
.map-card__map--empty,
.map-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background-image: linear-gradient(rgba(20, 38, 31, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 38, 31, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
}
.map-card__body strong {
  color: var(--text);
}
.map-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.map-card__actions .btn--outline {
  color: var(--text);
}
.map-pin {
  background: none;
  border: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.leaflet-tooltip.map-label--dest {
  font-weight: 700;
}
.leaflet-container {
  font-family: var(--font-body);
}

/* Expanded map fills the window. !important beats Leaflet's inline position. */
.map-card__map.is-expanded {
  position: fixed !important;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
body.map-open {
  overflow: hidden;
}
.map-expand__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.map-expand__button:hover {
  background: var(--hover);
}

/* Hero photo carousel: native scroll-snap, so swiping works without JS. */
.carousel {
  --photo-height: clamp(200px, 30vw, 340px);
  position: relative;
  margin-top: 16px;
}
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .carousel__track {
    scroll-behavior: smooth;
  }
}
.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.carousel__img {
  display: block;
  width: 100%;
  height: var(--photo-height);
  object-fit: cover;
  border-radius: 20px;
  background: var(--placeholder);
}
.carousel__credit {
  margin-top: 6px;
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.carousel__nav {
  position: absolute;
  top: calc(var(--photo-height) / 2 - 22px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 38, 31, 0.72);
  color: #ffffff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.carousel__nav:hover {
  background: var(--ink);
}
.carousel__nav--prev {
  left: 12px;
}
.carousel__nav--next {
  right: 12px;
}
.carousel__dots {
  position: absolute;
  top: calc(var(--photo-height) - 34px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20, 38, 31, 0.72);
}
.carousel__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.carousel__dot[aria-current="true"]::before {
  background: #ffffff;
}

/* Destination hero: one tall photo with the name, state and blurb on it. */
.hero__cta {
  margin-top: 4px;
}
.hero-photo {
  --photo-height: clamp(320px, 42vw, 460px);
  position: relative;
  margin-top: 16px;
}
.hero-photo .carousel {
  --photo-height: inherit;
  margin-top: 0;
}
.hero-photo__text {
  position: absolute;
  inset: 0 0 auto;
  height: var(--photo-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 20px;
  overflow: hidden;
  color: #ffffff;
  pointer-events: none;
}
/* The shade is only as tall as the words, so the rest of the photo stays clear. */
.hero-photo__inner {
  padding: 56px clamp(16px, 3vw, 32px) 20px;
  background: linear-gradient(
    to top,
    rgba(8, 18, 14, 0.74) 0%,
    rgba(8, 18, 14, 0.5) 55%,
    rgba(8, 18, 14, 0) 100%
  );
  text-shadow: 0 1px 10px rgba(8, 18, 14, 0.5);
}
.hero-photo__inner .hero {
  max-width: none;
}
.hero-photo__inner .hero__cta {
  text-shadow: none;
}
.hero-photo__text a {
  pointer-events: auto;
}
.hero-photo__text .breadcrumb {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-photo__text .display--xl {
  margin-bottom: 8px;
}
.hero-photo__text .lead {
  margin: 0 0 12px;
  color: #ffffff;
}
.hero-photo .carousel__nav {
  /* Above the centre on purpose: centred, the left arrow sits on the place name at tablet widths. */
  top: calc(var(--photo-height) * 0.36 - 22px);
}
.hero-photo .carousel__dots {
  top: 12px;
  left: auto;
  right: 12px;
  transform: none;
}
@media (max-width: 640px) {
  /* Swiping and the dots do the job; arrows would sit on the name. */
  .hero-photo .carousel__nav {
    display: none;
  }
}

/* Page sections */
.section {
  margin-top: 44px;
}
.section__note {
  margin-bottom: 16px;
}

/* Page feedback */
[x-cloak] {
  display: none;
}
.feedback {
  margin-top: 20px;
}
.feedback__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.feedback__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.feedback__thumb:hover {
  border-color: var(--accent);
}
.feedback__thumb[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.feedback__error {
  margin: 10px 0 0;
  color: var(--wet-fg);
}
.feedback__more {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.feedback__more label {
  font-weight: 600;
  color: var(--text);
}
.feedback__more textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--control);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  resize: vertical;
}

/* Discovery homepage (the design's Home artboard) */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--scene-1) 0%, var(--scene-2) 45%, var(--scene-3) 100%);
}
.scene__far,
.scene__mid,
.scene__near {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.scene__sun {
  position: absolute;
  top: 22%;
  right: 14%;
  width: 18%;
  max-width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--scene-sun);
  box-shadow: 0 0 60px 20px rgba(255, 236, 190, 0.7);
}
.scene__far {
  height: 78%;
  background: var(--scene-far);
  clip-path: polygon(0 60%, 10% 35%, 20% 52%, 32% 18%, 44% 46%, 55% 26%, 66% 50%, 78% 14%, 90% 40%, 100% 28%, 100% 100%, 0 100%);
}
.scene__mid {
  height: 58%;
  background: var(--scene-mid);
  clip-path: polygon(0 48%, 12% 28%, 24% 55%, 38% 22%, 50% 50%, 62% 30%, 74% 58%, 86% 26%, 100% 44%, 100% 100%, 0 100%);
}
.scene__near {
  height: 36%;
  background: var(--scene-near);
  clip-path: polygon(0 40%, 8% 22%, 16% 44%, 26% 12%, 36% 40%, 48% 20%, 60% 46%, 72% 18%, 84% 42%, 94% 24%, 100% 36%, 100% 100%, 0 100%);
}

.discover {
  padding-top: 24px;
}
.discover__hero {
  position: relative;
  border-radius: 20px;
  background: var(--tint);
  overflow: visible;
  padding: clamp(32px, 6vw, 64px) clamp(12px, 3vw, 32px) clamp(40px, 8vw, 96px);
}
.discover__hero > .scene {
  border-radius: 20px;
}
.discover__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.discover__intro {
  text-align: center;
  color: var(--text);
}
/* The month in the headline is a picker: it reads as text with a line under it.
   The real select is laid invisibly over the text at a normal font size, because
   macOS draws the option list at the select's own size and ignores option styles. */
/* The month reads as a control: a pill with a clear chevron that lights up
   on hover, not just underlined headline text. */
.discover__month {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-left: 0.08em;
  padding: 0 1.05em 0.04em 0.4em;
  border: 2px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent) var(--chevron)
    no-repeat right 0.4em center / 0.5em;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.discover__month:hover {
  border-color: currentColor;
  background-color: color-mix(in srgb, currentColor 18%, transparent);
}
.discover__month-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font: 16px var(--font-body);
  color: var(--text);
  cursor: pointer;
}
.discover__month:has(.discover__month-select:focus-visible) {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
/* With a photo: the top pick for the month behind white text. */
.discover__hero--photo {
  background: #1b2b25;
}
.discover__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.discover__hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 18, 14, 0.62) 0%, rgba(8, 18, 14, 0.42) 55%, rgba(8, 18, 14, 0.7) 100%);
}
.discover__hero--photo .discover__inner {
  z-index: 2;
}
.discover__hero--photo .discover__intro,
.discover__hero--photo .discover__lead {
  color: #fff;
}
.discover__hero--photo .discover__intro {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.discover__hero--photo .discover__month {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  text-shadow: inherit;
}
.discover__credit {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 10px;
  left: 16px;
  margin: 0;
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}
.discover__credit a {
  color: inherit;
}
.discover__intro .display {
  margin-bottom: 8px;
}
.discover__lead {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 17px;
  color: var(--text-2);
}
.searchbar {
  scroll-margin-top: 12px; /* a little air above it when scrolled to the top */
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 8px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(10, 22, 18, 0.28);
}
.searchbar__seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 20px;
  flex: 1 1 200px;
  min-width: 0;
}
.searchbar__seg + .searchbar__seg {
  border-left: 1px solid var(--line);
}
.searchbar__seg label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
/* "Where to?": a text box with a list of matching places under it. */
.combo {
  position: relative;
}
.combo__input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 36px 0 0; /* room for the clear button */
  font: inherit;
  font-weight: 500;
  color: var(--text-2);
  outline-offset: 4px;
}
.combo__clear {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.combo__clear:hover {
  background: var(--hover);
  color: var(--text);
}
.combo__input::placeholder {
  color: var(--text-2);
  opacity: 1;
}
.combo__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 14px);
  left: -12px;
  right: -12px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 44px rgba(10, 22, 18, 0.28);
}
.combo__group {
  padding: 10px 12px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.combo__option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.combo__option.is-active {
  background: var(--accent-soft);
}
.combo__hint {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.combo__empty {
  padding: 10px 12px;
  color: var(--muted);
}
.searchbar__seg select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--text-2);
  width: 100%;
  cursor: pointer;
  outline-offset: 4px;
}
.searchbar__btnwrap {
  display: flex;
  align-items: center;
  padding: 4px;
}
.searchbar__btn {
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.filter {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.filter--on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--good-fg);
  cursor: default;
}
a.filter {
  text-decoration: none;
}
.filter--removable {
  cursor: pointer;
  gap: 6px;
  padding-right: 12px;
}
.filter__x {
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}
.filter--removable:hover .filter__x {
  opacity: 1;
}
.filter--needs {
  cursor: pointer;
  font-weight: 500;
}
.filter--on:is(select, summary, a) {
  cursor: pointer;
}
/* A text link, not another pill, so it can't be mistaken for a filter. */
.filter-clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.discover__hero--photo .filter-clear {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.filter-clear:hover {
  text-decoration-thickness: 2px;
}
.empty__clear {
  display: flex;
  width: fit-content;
  margin-top: 12px;
}
.interests {
  position: relative;
}
/* An open panel or place list hangs below the hero: lift the hero's content above the photo
   credit (z-index 2) and the card links (z-index 1) so they can't cover it. */
.discover__inner:has(.interests[open]),
.discover__inner:has(.combo__input[aria-expanded="true"]) {
  z-index: 3;
}
.interests > summary {
  list-style: none;
}
.interests > summary::-webkit-details-marker {
  display: none;
}
.interests > summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 12px;
}
.interests__panel {
  position: absolute;
  left: 0;
  top: 52px;
  z-index: 20;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(10, 22, 18, 0.28), 0 0 0 1px rgba(20, 38, 31, 0.06);
  padding: 14px;
}
.interests__group {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  min-width: 0;
}
.interests__title {
  padding: 0 0 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.interests__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interests__chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(20, 38, 31, 0.14));
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.interests__chip:hover span {
  background: var(--hover);
}
.interests__chip input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--good-fg);
  font-weight: 600;
}
.interests__chip input:checked + span::before {
  content: "✓";
  margin-right: 6px;
}
.interests__chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.interests__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.interests__clear,
.interests__done {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
}
.interests__clear {
  border: 1px solid var(--line, rgba(20, 38, 31, 0.14));
  background: transparent;
  color: inherit;
}
.interests__done {
  border: 0;
  background: var(--ink);
  color: var(--on-ink);
}
/* On a phone the button sits mid-row, so a hanging panel would run off the
   screen: show it as a sheet along the bottom instead. */
@media (max-width: 600px) {
  .interests__panel {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-width: none;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }
}

/* Answer pages: one question, its places, and links to the related questions */
.answer {
  padding-top: 20px;
  padding-bottom: 8px;
}
.compare {
  padding-top: 24px;
  padding-bottom: 40px;
}
.answer .article__top {
  margin-bottom: 20px;
}
.answer__section {
  margin-top: 40px;
}
.answer__section .grid {
  margin-top: 14px;
}
.answer .answer__next {
  margin-top: 28px;
}
.answer__avoid {
  margin: 12px 0 0;
  max-width: 72ch;
}
.answer__avoid dt {
  margin-top: 12px;
  font-weight: 700;
}
.answer__avoid dd {
  margin: 2px 0 0;
  color: var(--text-2);
}
.browse .answer__links {
  margin-bottom: 8px;
}
.answer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.answer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.answer__links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.results {
  padding-bottom: 16px;
}
.results__summary {
  margin: 18px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.results__summary strong {
  color: var(--text);
  font-weight: 600;
}
.results__month {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--control);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
}
.shelves {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.shelf__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.shelf__heading {
  flex: 1 1 320px;
  min-width: 0;
}
.shelf__title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.shelf__title--lg {
  margin-top: 16px;
  font-size: 32px;
}
.shelf__count {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.shelf__rule {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--muted);
}
.shelf__title--lg + .shelf__rule {
  margin-bottom: 18px;
}
.shelf__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.shelf__all {
  border-color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}
.shelf__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--control);
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.shelf__arrow svg {
  width: 20px;
  height: 20px;
}
.shelf__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
/* Cards are sized from the row's width, so a whole number of them fill it
   (--shelf-n) and the arrows page through whole cards. On phones the next
   card peeks in (--shelf-peek) to show the row scrolls. A card needs about
   285px for its three stats to sit side by side, so each breakpoint switches
   only once the row is wide enough for that. */
.shelf__row {
  --shelf-n: 4;
  --shelf-gap: 20px;
  --shelf-peek: 0px;
  display: flex;
  gap: var(--shelf-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 2px 14px;
  align-items: stretch;
}
/* The "+N more" tile is card-sized too, so the row's last stop also shows
   whole items. */
.shelf__row > .dcard,
.shelf__row > .shelf__more {
  flex: 0 0 calc((100% - (var(--shelf-n) - 1) * var(--shelf-gap) - var(--shelf-peek)) / var(--shelf-n));
  min-width: 0;
  scroll-snap-align: start;
}
/* Rows under 1200px: small laptops and landscape tablets */
@media (max-width: 1247px) {
  .shelf__row {
    --shelf-n: 3;
  }
}
/* Rows under 895px: portrait tablets */
@media (max-width: 942px) {
  .shelf__row {
    --shelf-n: 2;
  }
}
/* Phones: one card, and 28px of the next after the gap */
@media (max-width: 639px) {
  .shelf__row {
    --shelf-n: 1;
    --shelf-gap: 12px;
    --shelf-peek: 40px;
  }
}
/* The smallest phones: a narrower peek and tighter stats, and the stat
   labels wrap instead of running into each other */
@media (max-width: 359px) {
  .shelf__row {
    --shelf-gap: 8px;
    --shelf-peek: 28px;
  }
  .shelf__row .dcard__stats {
    gap: 4px;
  }
  .shelf__row .dcard__stats dt {
    white-space: normal;
  }
}
.shelf__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--good-fg);
  font-weight: 600;
  text-decoration: none;
}
.shelf__more-n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.empty {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--muted);
}

.dcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dcard:hover,
.dcard:focus-within {
  border-color: var(--accent);
}
/* The whole card opens the guide, so it lifts a little on hover to say so. */
.dcard {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.dcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .dcard,
  .dcard:hover {
    transition: none;
    transform: none;
  }
}
.dcard__img {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.dcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dcard__verdict {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
}
.dcard__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 38, 31, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}
.dcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 12px;
}
.dcard__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}
.dcard__link {
  color: var(--text);
  text-decoration: none;
}
/* The whole card is the link's click target. */
.dcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.dcard__link:focus-visible {
  outline: none;
}
.dcard:has(.dcard__link:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.dcard__state {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
/* At most three lines, so cards in a row stay the same height. */
.dcard__blurb {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
/* Pinned to the bottom so the numbers line up across a row of cards. */
.dcard__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.dcard__stats dt {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.dcard__stats dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.dcard__cta {
  margin-top: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 760px) {
  /* On a phone the credit wraps, so it takes its own space under the filters
     instead of sitting on top of them. */
  .discover__hero--photo {
    padding-bottom: 14px;
  }
  .discover__credit {
    position: relative;
    inset: auto;
    margin-top: 18px;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .searchbar {
    border-radius: 20px;
  }
  .searchbar__seg {
    flex-basis: 100%;
    padding: 10px 14px;
  }
  .searchbar__seg + .searchbar__seg {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .searchbar__btnwrap {
    flex-basis: 100%;
    padding-top: 8px;
  }
  .searchbar__btn {
    width: 100%;
  }
}

/* Read view: the guide as an article */
.article__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.article {
  max-width: 720px;
  padding-top: 24px;
  padding-bottom: 48px;
}
.article__photo {
  margin: 24px 0 0;
}
.article__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.article__photo figcaption {
  margin-top: 6px;
}
.article__head {
  margin: 28px 0 8px;
}
.article__facts {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.article__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}
.article__body {
  font-size: 17px;
  line-height: 1.7;
}
.article__body h2 {
  margin: 36px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}
.article__body h3 {
  margin: 18px 0 6px;
  font-size: 17px;
}
.article__body p {
  margin-bottom: 12px;
}
.article__body ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.article__body .article__photo {
  margin: 8px 0 14px;
}
.article__seasons {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article__aside {
  margin: 32px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--tint);
}
.article__aside a {
  display: inline-block;
  margin-left: 4px;
}
.article__about {
  margin: 32px 0 16px;
}
@media (max-width: 600px) {
  .article__lead {
    font-size: 17px;
  }
  .article__body {
    font-size: 16px;
  }
}

/* Ways into the Read view */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dcard__actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
/* The card itself opens the planner, so its label looks like the main button. */
.dcard__actions .dcard__cta {
  margin-top: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  white-space: nowrap;
}
.dcard:hover .dcard__cta,
.dcard:has(.dcard__link:focus-visible) .dcard__cta {
  background: var(--accent-dark);
}
/* A second link on the card, lifted above the card-wide one so it can be clicked. */
/* Compare sits beside the place name: an action next to what it acts on,
   kept apart from the month badge on the photo. Lifted above the card-wide
   link so it can be clicked on its own. */
.dcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.dcard__compare {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin-top: 2px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dcard__compare:hover,
.dcard__compare:focus-visible {
  background: var(--tint);
}

/* Planner layout: cards sized to their content, not paired side by side */
.suits {
  margin-top: 20px;
}
.suits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}
.suits__cell dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 8px 32px;
  margin-top: 20px;
}
.split > div + div {
  padding-left: 32px;
  border-left: 1px solid var(--border-soft);
}
.split .list {
  margin-bottom: 0;
}
.callout {
  margin-top: 20px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint);
  color: var(--text-2);
  font-size: 15px;
}
.callout p,
.callout .list {
  max-width: 72ch;
  margin-bottom: 0;
}
.grid--small {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.section .grid--small {
  margin-top: 12px;
}
.card--small {
  padding: 16px 18px;
}
.card--small__title {
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--text);
}
@media (max-width: 760px) {
  .suits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split > div + div {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }
}

/* Folded blocks: the Local guide and the weather table open on request */
.fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.fold__head::-webkit-details-marker {
  display: none;
}
.fold__text {
  min-width: 0;
}
.fold__title {
  margin: 0;
}
.fold__hint {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}
.fold__action {
  flex: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.fold__action::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -3px 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.fold[open] > .fold__head .fold__action::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
.fold__head:hover .fold__action {
  border-color: var(--accent);
}
.fold__head:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.fold__close,
.fold[open] > .fold__head .fold__open {
  display: none;
}
.fold[open] > .fold__head .fold__close {
  display: inline;
}
.guide {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.guide[open] > .fold__head {
  margin-bottom: 16px;
}
.fold--inline {
  margin: 4px 0 12px;
}
.fold--inline > .fold__head {
  font-weight: 600;
  color: var(--text);
}
.fold--inline[open] > .fold__head {
  margin-bottom: 10px;
}

/* The guide's four parts flow into at most two balanced columns. */
.guide__parts {
  columns: 2 320px;
  column-gap: 20px;
}
.guide__part {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg);
  border-color: var(--border-soft);
}
.guide__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide__name {
  display: block;
  color: var(--text);
}

/* On phones the map waits until after "Decide", so the decision comes first. */
@media (max-width: 760px) {
  .detail {
    display: flex;
    flex-direction: column;
  }
  .detail > .hero-row {
    display: contents;
  }
  .detail .hero-row > .hero,
  .detail .hero-row > .map-card {
    flex: none;
  }
  .detail .hero-row > .map-card {
    order: 1;
    margin-top: 32px;
  }
  .detail > #decide ~ * {
    order: 2;
  }
}

/* Read view: "Good for" chips and the verdict box */
.article__fit {
  margin: 24px 0 8px;
}
.article__body .fit-box__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
}
.article__fit .chips {
  margin: 0;
  padding: 0;
  list-style: none;
}
.verdict {
  margin: 32px 0 8px;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint);
}
.article__body .verdict__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.verdict p {
  margin: 0;
  color: var(--text);
}

/* One page per place: the month answer leads, then the sections in order. */
.month-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0;
}
.month-card__facts dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.month-card__facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--text);
}
.month-card__note {
  margin: 12px 0 0;
}
.reach {
  flex: 999 1 520px;
  min-width: 0;
}
.reach__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0 0 20px;
}
.reach__facts dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.reach__facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.section .hero-row .map-card {
  margin-top: 0;
}
.routes-fold,
.section > .guide {
  margin-top: 20px;
}
.routes-fold[open] > .fold__head {
  margin-bottom: 16px;
}
.todo__when {
  margin: 18px 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.todo__when:first-child {
  margin-top: 0;
}
.todo__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.todo__note {
  font-size: 14px;
  color: var(--text-2);
}
.todo .kv > :last-child {
  white-space: nowrap;
}
.stay-area__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
.stay-area__vibe {
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  padding: 2px 10px;
}
.stay-area__best {
  margin: 6px 0;
  font-weight: 600;
  color: var(--text);
}
.month-card__note + .month-card__note {
  margin-top: 4px;
}
.wrong__list {
  margin: 8px 0 16px;
  max-width: 720px;
}
a.alt-card {
  color: inherit;
  text-decoration: none;
}
a.alt-card:hover,
a.alt-card:focus-visible {
  border-color: var(--accent);
}
.alt-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--placeholder);
}
.alt-card__blurb {
  color: var(--text-2);
}
.sources[open] > .fold__head {
  margin-bottom: 12px;
}
ul.chips {
  margin: 0;
  padding: 0;
  list-style: none;
}
.weather > .h3 {
  margin-bottom: 12px;
}
.alt-card__why {
  margin-top: auto;
}
.alt-card__why .chip {
  background: var(--bg);
  color: var(--text-2);
}
.alt-card__why .chip--good {
  background: var(--good-bg);
  color: var(--good-fg, var(--accent));
}

/* Compare page: two places side by side, one month picker for both. */
.alt-card {
  position: relative;
}
.alt-card:has(.alt-card__link:hover),
.alt-card:has(.alt-card__link:focus-visible) {
  border-color: var(--accent);
}
.alt-card__link {
  color: inherit;
  text-decoration: none;
}
/* The whole card opens the guide; the compare link sits above that. */
.alt-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.alt-card__compare {
  position: relative;
  align-self: flex-start;
  padding: 6px 0;
  font-weight: 600;
}
.compare > .display--xl,
.compare [x-data] > .display--xl {
  margin-top: 20px;
}
/* The places, plus an "Add a place" card, in one row. */
.compare__places {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.compare__add {
  justify-content: center;
  border-style: dashed;
  background: transparent;
}
.compare__add-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.compare__add p {
  margin: 0;
}
.compare__remove {
  align-self: flex-start;
  color: var(--muted);
}
.compare__place {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.compare__state,
.compare__blurb {
  margin: 0;
}
.compare__blurb {
  color: var(--text-2);
  margin-bottom: auto;
}
.compare__guide {
  align-self: flex-start;
  padding: 10px 0;
  font-weight: 600;
}
.compare__swap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 6px;
}
.compare__swap select {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 120px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.compare__when {
  margin-top: 16px;
}
.compare__year {
  margin-top: 14px;
}
.compare__year-name {
  margin-bottom: 4px;
}
/* Both years line up month for month, so the strip stays 12 across on phones. */
.compare__year .month-strip {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0;
}
.compare__year .month-strip__cell {
  padding: 0;
}
.compare__verdict {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 600;
}
.compare__same {
  margin: 16px 0 0;
}
.compare__in {
  font-weight: 400;
}
.compare__routes {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* The plainly better value in a row: a tint and a tick, not colour alone. */
.compare__table td.is-better {
  background: var(--tint);
  font-weight: 600;
}
.compare__table td.is-better > :first-child::after {
  content: " ✓";
  color: var(--good-fg);
  font-weight: 700;
}
.compare__form {
  margin: 0;
}
.compare__form select {
  max-width: 100%;
}
.compare__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.compare__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
}
.compare__control .month-select {
  min-height: 44px;
  padding: 0 12px;
}
.compare .fit-boxes {
  margin-top: 20px;
}
.compare__reasons {
  margin: 12px 0 0;
}
.compare__reasons:not(:has(li)) {
  display: none;
}
.compare__table {
  width: 100%;
  margin: 20px 0 12px;
  border-collapse: collapse;
  table-layout: fixed;
  overflow-wrap: anywhere;
}
.compare__table th,
.compare__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare__table thead th,
.compare__table thead td {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  border-bottom: 2px solid var(--text);
  font-family: var(--font-display);
  font-size: 18px;
}
.compare__table tbody th {
  width: 24%;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.compare__table thead td {
  width: 24%;
}
/* More places, a narrower label column. */
.compare__scroll--3 .compare__table tbody th,
.compare__scroll--3 .compare__table thead td {
  width: 19%;
}
.compare__scroll--4 .compare__table tbody th,
.compare__scroll--4 .compare__table thead td {
  width: 16%;
}
/* Tablets: three or four places scroll sideways, labels pinned on the left. */
@media (min-width: 641px) and (max-width: 1023px) {
  .compare__places {
    overflow-x: auto;
    grid-auto-columns: minmax(260px, 1fr);
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .compare__places > * {
    scroll-snap-align: start;
  }
  .compare__scroll--3,
  .compare__scroll--4 {
    overflow-x: auto;
  }
  .compare__scroll--3 .compare__table {
    min-width: calc(160px + 3 * 220px);
  }
  .compare__scroll--4 .compare__table {
    min-width: calc(160px + 4 * 220px);
  }
  .compare__scroll--3 .compare__table tbody th,
  .compare__scroll--4 .compare__table tbody th,
  .compare__scroll--3 .compare__table thead td,
  .compare__scroll--4 .compare__table thead td {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 160px;
    background: var(--bg);
  }
}
.compare__table .compare__group th {
  padding-top: 24px;
  border-bottom-color: var(--control);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.compare__table td[class*="level-"] {
  font-weight: 600;
}
.compare__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 640px) {
  /* Two columns only: each row's label moves onto its own line above them. */
  .compare__table,
  .compare__table thead,
  .compare__table tbody {
    display: block;
  }
  /* Two places fill the screen; with more, swipe for the rest. */
  .compare__scroll {
    --n: 2;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .compare__scroll--3 {
    --n: 3;
  }
  .compare__scroll--4 {
    --n: 4;
  }
  .compare__table tr {
    display: grid;
    grid-template-columns: repeat(var(--n), calc((100vw - 32px) / 2));
  }
  .compare__table td,
  .compare__table thead th {
    scroll-snap-align: start;
  }
  .compare__table tbody th {
    grid-column: 1 / -1;
    position: sticky;
    left: 0;
    width: calc(100vw - 32px);
    padding-bottom: 0;
    border-bottom: 0;
  }
  .compare__table thead {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .compare__table thead td {
    display: none;
  }
  .compare__table thead th {
    position: static;
    font-size: 16px;
  }
  .compare__table .compare__group th {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--control);
  }
  .compare__form {
    flex-direction: column;
    align-items: stretch;
  }
  /* Keep the places short, so the comparison starts sooner; two fit, swipe for more. */
  .compare__places {
    gap: 10px;
    overflow-x: auto;
    grid-auto-columns: calc((100% - 10px) / 2);
    scroll-snap-type: x mandatory;
  }
  .compare__places > * {
    scroll-snap-align: start;
  }
  .compare__place {
    padding: 12px;
  }
  .compare__blurb {
    display: none;
  }
}

/* Blog index: a featured newest post, then a grid of photo cards. */
.blog-index {
  padding-top: 24px;
  padding-bottom: 48px;
}
.blog-index__head {
  margin-bottom: 24px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-card:hover,
.post-card:focus-within {
  border-color: var(--accent);
}
.post-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 16px;
  color: var(--text-2);
  font-size: 15px;
}
.post-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.post-card__labels .pill {
  padding: 2px 10px;
  font-size: 13px;
}
.post-card__place {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.post-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.post-card__link {
  color: var(--text);
  text-decoration: none;
}
/* The whole card opens the post; the guide and credit links sit above it. */
.post-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card__link:focus-visible {
  outline: none;
}
.post-card:has(.post-card__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.post-card__summary,
.post-card__meta {
  margin: 0;
}
.post-card__guide,
.post-card__credit a {
  position: relative;
  z-index: 1;
}
.post-card__guide {
  align-self: flex-start;
  font-weight: 600;
  color: var(--accent);
}
.post-card__credit {
  margin: auto 0 0;
  padding-top: 4px;
  font-size: 12px;
}
.post-card__credit a {
  color: inherit;
}
@media (min-width: 760px) {
  .post-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .post-card--featured .post-card__media {
    flex: 3 1 0;
  }
  .post-card--featured .post-card__media img {
    height: 100%;
    min-height: 300px;
  }
  .post-card--featured .post-card__body {
    flex: 2 1 0;
    justify-content: center;
    padding: 28px;
  }
  .post-card--featured .post-card__title {
    font-size: 28px;
  }
}

/* Blog post: one column of about 72 characters a line. Photos and lists
   stay inside it, so every edge lines up. */
.article.article--post {
  --post-measure: 42rem;
  max-width: calc(var(--post-measure) + 48px);
}
.article--post .article__body {
  font-size: 18px;
}
.article--post .article__aside {
  margin-bottom: 24px;
}
/* Each numbered entry starts clearly: a divider and a display heading. */
.article--post .article__body h3 {
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  color: var(--text);
}
.article--post .article__body h2,
.article--post .article__body h3 {
  scroll-margin-top: 16px;
}
.article--post .article__body strong {
  color: var(--text);
}
.article--post .article__body .article__photo + p {
  margin-top: 4px;
}
/* "At a glance": a compact numbered list that jumps to each entry. */
.article--post .article__body .jump-list {
  list-style: none;
  padding-left: 0;
  columns: 2 280px;
  column-gap: 32px;
  font-size: 16px;
}
.article--post .article__body .jump-list li {
  break-inside: avoid;
  margin-bottom: 8px;
  line-height: 1.45;
}
@media (max-width: 600px) {
  .article--post .article__body h3 {
    font-size: 21px;
  }
}

/* Error pages (404, 500) */
.error-page h1 {
  text-wrap: balance;
}
.error-page {
  max-width: 720px;
  padding-block: clamp(48px, 10vw, 112px);
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.error-page__subhead {
  margin: 48px 0 12px;
  font-size: 18px;
}
.error-page__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}
.error-page__chips .chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.error-page__chips .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--icon {
  gap: 0.4em;
}
/* An icon the height of a capital letter plus a little, so it reads as part of the label. */
.btn--icon svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin-top: -0.1em;
}

/* Blog post contents panel: hidden until there is room for it beside the text. */
.post-toc {
  display: none;
}
@media (min-width: 1280px) {
  /* Larger type on big screens: the same ~72 characters a line, a wider column. */
  .article--post .article__body {
    font-size: 20px;
  }
  .article--post .article__lead {
    font-size: 21px;
  }
  .article--post .article__body h3 {
    font-size: 26px;
  }
  .article.article--post {
    --post-measure: 46.5rem;
  }
  /* With contents: panel | text, centred together on the page. */
  .article.article--post.article--toc {
    --toc-width: 200px;
    --toc-gap: 56px;
    max-width: calc(var(--toc-width) + var(--toc-gap) + var(--post-measure) + 48px);
    display: grid;
    grid-template-columns: var(--toc-width) minmax(0, 1fr);
    column-gap: var(--toc-gap);
    align-items: start;
  }
  .post-toc {
    display: block;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin-top: 168px;
    padding-right: 8px;
    font-size: 14px;
    line-height: 1.35;
  }
  .post-toc__title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .post-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
  }
  .post-toc__item a {
    display: block;
    margin-left: -1px;
    padding: 5px 0 5px 12px;
    border-left: 2px solid transparent;
    color: var(--text-2);
    text-decoration: none;
  }
  .post-toc__item--h2 a {
    font-weight: 600;
    color: var(--text);
  }
  .post-toc__item--h2:not(:first-child) a {
    margin-top: 6px;
  }
  .post-toc__item a:hover {
    color: var(--accent, var(--text));
    text-decoration: underline;
  }
  .post-toc__item a[aria-current] {
    border-left-color: var(--accent, var(--text));
    color: var(--text);
    font-weight: 600;
  }
}
