/* Shared layout for all EMD sites. Colours, fonts and shape come from each site's own theme.css,
   so no two sites look alike. The values below are only fallbacks. */
:root {
  --ink: #1d2422;
  --muted: #5f6b66;
  --bg: #f6f5f1;
  --card: #ffffff;
  --line: #e3e0d8;
  --primary: #2f5d62;
  --primary-deep: #1f3f42;
  --highlight: #d1a54a;
  --accent: #c0562a;
  --accent-hover: #a54720;
  --hero-glow: rgb(209 165 74 / 20%);
  --band-from: #ece6d8;
  --radius: 1rem;
  --btn-radius: 999px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 8px 28px rgb(0 0 0 / 8%);
  --wrap: 72rem;
  --font-display: Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 700;
  --display-case: none;
  --display-spacing: -0.01em;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
h1, h2, h3 {
  font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.12;
  letter-spacing: var(--display-spacing); text-transform: var(--display-case); margin: 0;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.35rem; text-transform: none; letter-spacing: 0; }
p { margin: 0 0 1rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.section-intro { max-width: 42rem; color: var(--muted); font-size: 1.1rem; margin-bottom: 2.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; text-transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem;
  border-radius: var(--btn-radius); font-weight: 650; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid currentColor; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: 3.5rem 0 4.5rem; background: radial-gradient(60rem 30rem at 85% 10%, var(--hero-glow), transparent 60%); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin-top: 1.25rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -0.75rem; bottom: -1rem; background: var(--card); border-radius: var(--radius);
  padding: 0.8rem 1.1rem; box-shadow: var(--shadow); font-size: 0.9rem; line-height: 1.35;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--primary); }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }

/* Fact cards */
.facts-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
@media (min-width: 52rem) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.fact .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.fact .value { font-weight: 600; margin-top: 0.3rem; }

/* Ride cards */
.rides { background: var(--primary-deep); color: #eef4f2; }
.rides h2 { color: #fff; }
.rides .section-intro { color: color-mix(in srgb, #fff 72%, var(--primary-deep)); }
.rides .eyebrow { color: var(--highlight); }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.ride {
  display: flex; flex-direction: column; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius); padding: 1.5rem; color: inherit; text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.ride:hover { transform: translateY(-4px); background: rgb(255 255 255 / 10%); border-color: var(--highlight); }
.ride h3 { color: #fff; }
.ride p { color: color-mix(in srgb, #fff 80%, var(--primary-deep)); font-size: 0.98rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.9rem; }
.tag { white-space: nowrap; font-size: 0.78rem; font-weight: 650; padding: 0.22rem 0.65rem; border-radius: 999px; background: rgb(255 255 255 / 12%); color: #fff; }
.tag-easy { background: #2f8f5b; }
.tag-mid { background: #b7791f; }
.tag-only { background: var(--accent); }
.ride .more { font-weight: 650; color: var(--highlight); }
.ride .more::after { content: " →"; }

/* Split callout */
.callout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .callout { grid-template-columns: 1fr 1fr; } }
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tip-list li { background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); border-left: 4px solid var(--highlight); }
.tip-list strong { display: block; }

/* Steps */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); counter-reset: step; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 0.9rem;
}

/* Drive-time strip */
.drive-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.drive-strip > div { background: var(--card); padding: 1rem 1.25rem; }
.drive-strip .label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.drive-strip strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); }

/* Trail map */
.map-section { padding-top: 1rem; }
.trail-map { margin: 0; background: var(--card); border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); padding: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .trail-map { grid-template-columns: 1.6fr 1fr; align-items: center; } }
.trail-map svg { width: 100%; height: auto; }
.map-legend { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.map-legend li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; }
.map-legend span { width: 2rem; height: 6px; border-radius: 3px; flex: none; }
.map-legend span.dashed { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 10px); }
.map-legend span.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); margin: 0 9px; }
.trail-map small { color: var(--muted); }

/* Grade key */
.grade-key { display: grid; gap: 0.75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); margin: 2rem 0 0; }
.grade-key div { display: flex; gap: 0.6rem; align-items: baseline; }
.grade-key dd { margin: 0; color: color-mix(in srgb, #fff 80%, var(--primary-deep)); font-size: 0.95rem; }

/* Other depots */
.depot-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.depot { background: var(--card); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.depot .tag { display: inline-block; margin-bottom: 0.75rem; background: var(--primary); }
.depot .tag-only { background: var(--accent); }
.depot .more { font-weight: 650; color: var(--primary); }
.depot .more::after { content: " →"; }
.aside { margin-top: 1.5rem; color: var(--muted); }

/* App feature (free Trip Notes app) */
.app-section { padding-top: 0; }
.app-feature { display: grid; gap: 2rem; align-items: center; }
.app-media img { width: min(100%, 20rem); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 18%)); }
@media (min-width: 52rem) { .app-feature { grid-template-columns: 0.8fr 1.2fr; } }

/* Tinted band */
.band { background: linear-gradient(135deg, var(--band-from), var(--bg)); }

/* FAQ */
.faq { max-width: 48rem; }
details { background: var(--card); border-radius: var(--radius); margin: 0 0 0.75rem; box-shadow: var(--shadow); overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.35rem 1.1rem; margin: 0; color: var(--muted); }

/* Final CTA */
.cta-band { background: var(--ink); color: #e9efec; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36rem; margin: 0 auto; color: color-mix(in srgb, #fff 70%, var(--ink)); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; }

/* Footer */
.site-footer { padding: 2rem 0 2.5rem; font-size: 0.92rem; color: var(--muted); }
.site-footer a { color: inherit; }

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