/*
 * Park Break site stylesheet: the marketing home, about, legal and generated
 * place pages. Built into /site/site.<hash>.css by server/scripts/buildSitePages.js.
 *
 * The colours are the app's (client/ParkBreak/contexts/ThemeContext.js), light
 * and dark; the header matches the web app's on wide screens
 * (client/ParkBreak/components/web/WebHeader.js). Change them together.
 */

:root {
  color-scheme: light;
  --brand: #2e7d32;
  --brand-dark: #1b5e20;
  --brand-soft: #e8f5e9;
  --glow: #c6f0ca;
  --on-brand: #ffffff;
  --text: #333333;
  --muted: #666666;
  --bg: #f5f5f5;
  --card: #ffffff;
  --border: #e0e0e0;
  --field-border: #8a8a8a;
  --error: #d32f2f;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(27, 94, 32, 0.08);
  --border-brand: rgba(46, 125, 50, 0.12);
  --border-ui: rgba(0, 0, 0, 0.08);
  --border-ui-strong: rgba(0, 0, 0, 0.1);
  --section-gap: 0.6rem;
  --header-height: 4rem;
  --page-width: 68rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #66bb6a;
  --brand-dark: #81c784;
  --brand-soft: #1b3d1f;
  --glow: var(--brand-soft);
  --on-brand: #121212;
  --text: #e0e0e0;
  --muted: #b0b0b0;
  --bg: #121212;
  --card: #1e1e1e;
  --border: #333333;
  --field-border: #7d7d7d;
  --error: #ff6b6b;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --border-brand: rgba(102, 187, 106, 0.28);
  --border-ui: rgba(255, 255, 255, 0.1);
  --border-ui-strong: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

main {
  flex: 1;
}

a {
  color: var(--brand);
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-ui-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--large {
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  font-size: 1.0625rem;
}

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 80rem;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
  min-width: 0;
}

.site-nav__links,
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__actions {
  gap: 0.75rem;
}

.site-nav__links a,
.site-nav__signin {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__actions .btn {
  white-space: nowrap;
}

/* The tabs sit in the middle of the bar, as they do in the app's header
   (client/ParkBreak/components/web/WebHeader.js). The two side columns are
   equal while the logo and the buttons both fit in them; in a tighter window
   they keep to what they hold and the tabs give way, so nothing overlaps.
   The nav is a subgrid so that it stays one element for the menu below 800px;
   a browser without subgrid keeps the tabs beside the logo. */
@media (min-width: 800px) {
  @supports (grid-template-columns: subgrid) {
    .site-header__inner {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
    }

    .site-brand {
      justify-self: start;
    }

    .site-nav {
      display: grid;
      grid-template-columns: subgrid;
      grid-column: 2 / 4;
      gap: inherit;
    }

    .site-nav__actions {
      justify-self: end;
    }
  }
}

.site-nav__links a:hover,
.site-nav__signin:hover {
  color: var(--text);
  background: var(--border-ui);
}

.site-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border-ui-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.site-menu-button__bars,
.site-menu-button__bars::before,
.site-menu-button__bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-menu-button__bars {
  position: relative;
}

.site-menu-button__bars::before,
.site-menu-button__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-menu-button__bars::before {
  top: -0.4rem;
}

.site-menu-button__bars::after {
  top: 0.4rem;
}

.theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-ui-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--brand);
}

/* Light page: show the moon (switch to dark). Dark page: show the sun. */
.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: inline;
}

@media (max-width: 799px) {
  .site-menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem clamp(1rem, 3vw, 1.75rem) 1rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__links a {
    padding: 0.75rem 0.5rem;
    font-size: 1.0625rem;
  }

  .site-nav__actions {
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .site-nav__actions .btn {
    flex: 1;
  }
}

/* -------------------------------------------------------------- footer */

.site-footer {
  margin-top: 3rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
  max-width: 40rem;
}

.site-footer__cols li {
  margin-bottom: 0.35rem;
}

/* Room for the Drills column beside the other three on one row. */
.site-footer__cols--four {
  max-width: 50rem;
}

/* A 320 phone has room for two columns. */
@media (max-width: 359px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-footer__credit,
.site-footer__legal {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.site-footer__legal {
  margin-top: 0.5rem;
}

/* ----------------------------------------------------- generated pages */

.page-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 1rem;
}

.page-wrap > section {
  margin-top: 2.25rem;
}

.section-note {
  margin: -0.4rem 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.place-hero {
  margin-top: 1rem;
}

.place-hero__lede {
  max-width: 44rem;
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.place-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.9375rem;
  font-weight: 600;
}

.place-hero__live[hidden] {
  display: none;
}

.place-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-brand);
  background: var(--card);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.chip span {
  color: var(--muted);
  font-weight: 500;
}

a.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip--plain {
  border-style: dashed;
  border-color: var(--border-ui-strong);
  font-weight: 500;
  color: var(--muted);
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.place-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

/* Two states a row on a 360 to 430 phone, where 11rem missed by a few pixels
   and the home page listed all 51 in one column. */
@media (max-width: 479px) {
  .place-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  }
}

.place-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-brand);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.place-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.place-card__name {
  font-weight: 700;
}

.place-card__meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.place-links {
  columns: 12rem auto;
  column-gap: 1.5rem;
  font-size: 0.9375rem;
}

.place-links li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

.place-links span {
  margin-left: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.place-links--cards {
  columns: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.place-links--cards li {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-brand);
  background: var(--card);
}

.place-links--cards a {
  font-weight: 600;
  text-decoration: none;
}

.park-list {
  border-radius: var(--radius);
  border: 1px solid var(--border-brand);
  background: var(--card);
  overflow: hidden;
}

.park-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-ui);
}

.park-row:first-child {
  border-top: 0;
}

.park-row__name {
  font-weight: 700;
  text-decoration: none;
}

.park-row__name:hover {
  text-decoration: underline;
}

.park-row__address,
.park-row__sports {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.park-row__games {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.park-row__games[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .park-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .park-row__sports {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.park-map {
  border-radius: var(--radius);
  border: 1px solid var(--border-brand);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.park-map .map-preview-map-shell {
  min-height: 26rem;
  height: min(60vh, 32rem);
  border: 0;
}

.park-map__canvas {
  width: 100%;
  height: 100%;
  min-height: 22rem;
}

.data-note {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-ui);
  font-size: 0.875rem;
  color: var(--muted);
}

.data-note p {
  margin: 0;
}

.data-note p + p {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------- drills pages */

.drill-page__app {
  max-width: 44rem;
  margin: 0.9rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.drill-disclaimer {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-brand);
  background: var(--brand-soft);
  font-size: 0.9375rem;
}

.drill-contents {
  margin-top: 1.25rem;
}

.drill-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.75rem;
}

.drill-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
  gap: 0.75rem;
}

.drill-plan,
.drill {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-brand);
  background: var(--card);
}

.drill-plan h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 1.0625rem;
}

.drill-plan h3 span,
.drill-plan li span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.drill-plan ol,
.drill__steps {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
}

.drill-plan li + li,
.drill__steps li + li {
  margin-top: 0.3rem;
}

.drill h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.drill h4 {
  margin: 0.9rem 0 0.3rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.drill p {
  margin: 0;
  font-size: 0.9375rem;
}

.drill__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin: 0;
  font-size: 0.875rem;
}

.drill__facts div {
  display: flex;
  gap: 0.3rem;
}

.drill__facts dt {
  color: var(--muted);
}

.drill__facts dd {
  margin: 0;
  font-weight: 600;
}

/* ---------------------------------------------------------------- home */

/* The green behind the hero and the state band is --glow. On white,
   --brand-soft barely showed, so the light one is a stronger green, still
   light enough that the muted text reads on it at full strength. */
.home-hero {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 15% 0%, var(--glow), transparent 55%),
    var(--card);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.home-hero__inner {
  max-width: 48rem;
  margin: 0 auto;
}

/* The darker green in light mode: on a phone the label sits where the glow is
   strongest, and --brand falls short of 4.5:1 there. */
.home-hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

html[data-theme="dark"] .home-hero__kicker {
  color: var(--brand);
}

.home-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
}

.home-hero__lede {
  max-width: 38rem;
  margin: 1rem auto 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* The stores' own badges, as Apple's and Google's guidelines ask: unaltered,
   App Store first, the same height (Apple's least is 40px on screen, Google's
   28px), and a quarter of the height clear around each. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.store-badge {
  display: block;
  border-radius: 8px;
}

.store-badge img {
  display: block;
  width: auto;
  height: 2.75rem;
}

.home-trademarks {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin-top: 2.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.home-stats strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--text);
}

.home-section {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 4vw, 2rem) 0;
}

.home-section__head {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.home-section__head h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.home-section__head p {
  margin: 0;
  color: var(--muted);
}

.home-section > .chip-list {
  justify-content: center;
}

/* 13rem puts the five cards in one row from about 1,200px wide. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-brand);
  background: var(--card);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* A section on a band the width of the window, in the hero's colours with its
   glow on the other side. */
.home-band {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(circle at 85% 0%, var(--glow), transparent 55%),
    var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-band .home-section {
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

/* A band that ends the page meets the footer, which is the same colour: one
   line between them, not a strip of the page's colour. */
.home-band:last-child {
  border-bottom: 0;
}

main:has(> .home-band:last-child) + .site-footer {
  margin-top: 0;
}

/* --------------------------------------------------------------- legal */

.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 1.5rem) 0;
}

.legal-doc {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-brand);
  padding: 1.25rem 1.35rem 1.5rem;
}

.legal-doc h1 {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  color: var(--brand-dark);
  margin: 0 0 0.35rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.legal-part {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin: 1.6rem 0 1rem;
  letter-spacing: 0.01em;
}

.legal-section {
  margin-bottom: 1.15rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2,
.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.45rem;
}

.legal-content {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
  white-space: pre-wrap;
}

.legal-section ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-section li + li {
  margin-top: 0.3rem;
}

/* ----------------------------------------------------------- not found */

.not-found {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) 1.25rem 2rem;
  text-align: center;
}

.not-found p {
  margin: 0.75rem 0 1.5rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
 * Components carried over from the first landing page: cards, the founder
 * card and the park map.
 * ========================================================================== */

.landing-main {
  margin-bottom: var(--section-gap);
}

.landing-main-inner {
  max-width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* The trail above the about page's cards, on their left edge. */
.landing-crumbs {
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.landing-pair {
  display: grid;
  gap: 1rem 1.25rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .landing-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.intro-lede {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-copy + .card-copy {
  margin-top: 0.65rem;
}

/* --------------------------------------------- account email links page */

/* One card, the page's whole point, so its heading is a heading and not a
   card's small label; there are no breadcrumbs above it to set it off. */
.auth-action {
  max-width: 34rem;
  width: 100%;
  margin: clamp(1.5rem, 6vw, 3.5rem) auto 0;
  padding: 1.5rem 1.5rem 1.4rem;
}

.card.auth-action h1 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.auth-action__next {
  margin: 1.1rem 0 0;
}

.auth-action__next[hidden],
.auth-action input[hidden] {
  display: none;
}

/* .card a would colour the button's label as a link. */
.card .auth-action__next .btn--primary {
  color: var(--on-brand);
}

/* ------------------------------------------------------- contact page */

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

/* "display: grid" would otherwise show a form the script has not enabled. */
.contact-form[hidden] {
  display: none;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* The field's edge has to be seen against the card, which --border is not. */
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* A field for scripts that fill every input: off the page, out of the tab order. */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Empty until a message is sent, and never "display: none": a screen reader
   announces what appears in a status it already knows about. */
.contact-form__status {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-form__status:not(:empty) {
  margin-bottom: 0.6rem;
}

.contact-form__status.is-success {
  color: var(--brand-dark);
  font-weight: 600;
}

.contact-form__status.is-error {
  color: var(--error);
  font-weight: 600;
}

.contact-form__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.contact-details dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-details dd {
  margin: 0.1rem 0 0;
}

.founder-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.founder-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .founder-layout {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.35rem;
  }
}

.founder-figure {
  flex-shrink: 0;
  margin: 0;
  width: min(100%, 9.5rem);
}

.founder-photo {
  display: block;
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-brand);
  box-shadow: var(--shadow);
}

.founder-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    var(--brand-soft) 0%,
    rgba(46, 125, 50, 0.14) 100%
  );
  color: var(--brand-dark);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
}

@media (min-width: 640px) {
  .founder-photo,
  .founder-photo--placeholder {
    margin: 0;
  }
}

.founder-photo-caption {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.founder-copy {
  min-width: 0;
  flex: 1;
}

/* The founder's name, not a card label: it has to outrank ".card h2". */
.card .founder-copy h2 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  line-height: 1.15;
}

.founder-role {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.35;
}

.founder-link {
  margin-top: 0.85rem;
}

.card a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.map-preview-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-brand);
  overflow: hidden;
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .map-preview-card {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  }
}

.map-preview-copy {
  padding: 1.1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-preview-title {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin: 0 0 0.6rem;
}

.map-preview-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.map-preview-stats {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.map-preview-stats li {
  padding-left: 0;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.map-preview-stats li::before {
  display: none;
}

.map-preview-stat-value {
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.map-preview-map-shell {
  min-height: 22rem;
  position: relative;
  border-top: 1px solid var(--border-ui);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(102, 187, 106, 0.16), transparent 30%),
    #172018;
}

@media (min-width: 900px) {
  .map-preview-map-shell {
    border-top: 0;
    border-left: 1px solid var(--border-ui);
  }
}

.map-preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #e0e0e0;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(27, 94, 32, 0.8), rgba(18, 18, 18, 0.9)),
    #172018;
}

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

.map-preview-selection {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #ffc107;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(0);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

html[data-theme="dark"] .map-preview-selection {
  background: rgba(30, 30, 45, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

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

.map-preview-selection__info {
  min-width: 0;
  flex: 1;
}

.map-preview-selection__title {
  margin: 0 0 0.25rem;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-preview-selection__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.map-preview-selection__divider {
  width: 1px;
  height: 0.9rem;
  background: var(--border-ui-strong);
}

.map-preview-selection__sports {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  overflow: hidden;
  white-space: nowrap;
}

.map-preview-sport-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.map-preview-sport-icon svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-preview-sport-overflow {
  flex: 0 0 auto;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
}

html[data-theme="dark"] .map-preview-sport-overflow {
  background: rgba(255, 255, 255, 0.08);
}

.map-preview-selection__button {
  text-decoration: none;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  background: var(--brand-dark);
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: default;
}

/* Top left: at the foot it sat under the map's credits, which wrap to two
   lines on a phone and covered its last row. */
.map-preview-legend {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 1;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.25;
}

html[data-theme="dark"] .map-preview-legend {
  background: rgba(30, 30, 45, 0.92);
}

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

.map-preview-legend__title {
  margin: 0 0 0.3rem;
  font-weight: 750;
}

.map-preview-legend__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.18rem;
  color: var(--muted);
}

.map-preview-legend__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1.5px solid #2e7d32;
}

@media (max-width: 430px) {
  .map-preview-selection {
    align-items: stretch;
    flex-direction: column;
  }

  .map-preview-selection__button {
  text-decoration: none;
    width: 100%;
  }

  .map-preview-selection__sports {
    gap: 0.3rem;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem 1rem;
  border: 1px solid var(--border-brand);
}

/* A card's heading is a small label, whichever level it is: the about page's
   first card carries the page's h1. */
.card h1,
.card h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin: 0 0 0.6rem;
}

.card li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
}

.card li:last-child {
  margin-bottom: 0;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}
