/* Dapplemoor — homepage stylesheet.
   Design language: a weathered highway sign, not a holiday brochure. Deep
   dusk-indigo for the sky/night sections, dusty map-paper sand for reading
   surfaces, a muted enamel-sign green as the one confident accent, campfire
   rust as the second, smaller one. Oswald (condensed, road-sign DNA) carries
   headlines; Work Sans is the comfortable, larger-than-usual body face this
   audience actually wants to read; Space Mono prints distances, dates and
   loop stats like a permit tag. */

:root {
  --dm-dusk: #1f2436;
  --dm-dusk-2: #2a3050;
  --dm-dusk-deep: #14172a;
  --dm-sand: #e9e1cf;
  --dm-sand-2: #ded3b8;
  --dm-signal: #4f8b78;
  --dm-signal-deep: #366155;
  --dm-rust: #b25a35;
  --dm-rust-deep: #8a4326;
  --dm-ink: #23201a;
  --dm-white: #fffaf0;
  --dm-mist: rgba(233, 225, 207, 0.74);
  --dm-mist-dim: rgba(233, 225, 207, 0.52);
  --dm-line: rgba(79, 139, 120, 0.28);
  --dm-line-strong: rgba(79, 139, 120, 0.5);
  --dm-shadow: 0 20px 44px rgba(10, 12, 22, 0.4);

  --dm-font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --dm-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dm-font-mono: 'Space Mono', ui-monospace, Menlo, monospace;

  --dm-radius: 3px;
  --dm-radius-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--dm-dusk);
  color: var(--dm-mist);
  font-family: var(--dm-font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--dm-font-display); margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--dm-signal); outline-offset: 2px; }

.dm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.dm-skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--dm-sand); color: var(--dm-ink); padding: 12px 18px; border-radius: 0 0 var(--dm-radius) 0;
}
.dm-skip:focus { left: 0; }

.dm-eyebrow {
  font-family: var(--dm-font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dm-signal); margin: 0 0 10px;
}

/* ---------- buttons ---------- */
.dm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--dm-radius); border: 1.5px solid transparent;
  font-family: var(--dm-font-display); font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.dm-btn--solid { background: var(--dm-signal); color: var(--dm-white); }
.dm-btn--solid:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79, 139, 120, .32); }
.dm-btn--ghost { background: transparent; border-color: var(--dm-line-strong); color: var(--dm-sand); }
.dm-btn--ghost:hover { border-color: var(--dm-signal); color: var(--dm-signal); }
.dm-btn--rust { background: var(--dm-rust); color: var(--dm-white); }
.dm-btn--rust:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(178, 90, 53, .32); }
.dm-btn--lg { min-height: 52px; padding: 0 28px; font-size: .98rem; }

/* ---------- header ---------- */
.dm-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(31, 36, 54, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dm-line);
}
.dm-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.dm-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dm-sand); font-family: var(--dm-font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.dm-brand__mark { display: inline-flex; width: 30px; height: 30px; color: var(--dm-signal); }

.dm-header__actions { display: flex; align-items: center; gap: 14px; }
.dm-header__actions [hidden] { display: none !important; }
.dm-header__account { display: inline-flex; align-items: center; gap: 10px; font-family: var(--dm-font-mono); font-size: .8rem; color: var(--dm-sand); }
.dm-header__account-logout { background: none; border: 1px solid var(--dm-line-strong); border-radius: var(--dm-radius); color: var(--dm-mist); font-size: .74rem; padding: 6px 10px; cursor: pointer; min-height: 34px; }
.dm-header__account-logout:hover { border-color: var(--dm-signal); color: var(--dm-signal); }

.dm-menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px 6px 14px;
  border: none; background: none; cursor: pointer;
  font-family: var(--dm-font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dm-sand);
}
.dm-menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; flex: none; }
.dm-menu-toggle__bars span { display: block; height: 2px; background: var(--dm-rust); transition: transform .2s ease, opacity .2s ease; }
.dm-menu-toggle__bars span:last-child { width: 60%; }
.dm-menu-toggle:hover { color: var(--dm-signal); }
.dm-menu-toggle:hover .dm-menu-toggle__bars span { background: var(--dm-signal); }
.dm-menu-toggle[aria-expanded="true"] .dm-menu-toggle__bars span:last-child { width: 100%; }

/* ---------- nav overlay: full-screen takeover, not a docked panel ---------- */
.dm-nav-overlay[hidden] { display: none; }
.dm-nav-overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--dm-dusk-deep);
  display: flex; flex-direction: column; overflow-y: auto;
}
.dm-nav-overlay__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--dm-line); }
.dm-nav-overlay__close { background: none; border: none; color: var(--dm-sand); font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px 8px; min-height: 44px; }
.dm-nav-overlay__close:hover { color: var(--dm-signal); }
.dm-nav-overlay__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: 48px 20px 60px; }
.dm-nav-overlay__body nav { display: flex; flex-direction: column; }
.dm-nav-overlay__body nav a {
  padding: 16px 2px; font-family: var(--dm-font-display); font-size: clamp(1.4rem, 5vw, 2.1rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .01em; color: var(--dm-sand); text-decoration: none;
  border-bottom: 1px solid var(--dm-line);
}
.dm-nav-overlay__body nav a:hover { color: var(--dm-signal); }
.dm-nav-overlay__foot { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.dm-nav-overlay__account { display: flex; flex-direction: column; gap: 12px; }
.dm-nav-overlay__account[hidden] { display: none; }
.dm-nav-overlay__account span { font-family: var(--dm-font-mono); font-size: .82rem; color: var(--dm-mist); word-break: break-all; }
.dm-nav-overlay__auth { display: flex; flex-direction: column; gap: 12px; }
.dm-nav-overlay__auth[hidden] { display: none; }
@media (min-width: 640px) {
  .dm-nav-overlay__auth { flex-direction: row; }
}

/* ---------- hero: the Big Lap journey. Background photo is set inline
   via style="background-image:url(...)" on the element in HTML, not
   here — the gmbc_cc_land cache pipeline only rewrites inline url()
   references, not ones inside a linked stylesheet. This block only owns
   the fallback colour, sizing/position, and the gradient overlay. ---------- */
.dm-hero {
  position: relative;
  min-height: 680px;
  padding: 112px 0 72px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--dm-dusk);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 61% center;
}
.dm-hero::before {
  content: ""; position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20,23,42,.95) 0%, rgba(20,23,42,.72) 70%, rgba(20,23,42,.38) 100%),
              linear-gradient(0deg, rgba(20,23,42,.78) 0%, rgba(20,23,42,.1) 58%);
  pointer-events: none;
}
.dm-hero__inner { position: relative; z-index: 1; min-height: 390px; display: flex; align-items: center; }
.dm-hero__head { max-width: 610px; }
.dm-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.05; color: var(--dm-white); }
.dm-hero h1 em { font-style: normal; color: var(--dm-signal); }
.dm-hero__lead { font-size: 1.08rem; color: var(--dm-mist); max-width: 52ch; margin: 18px 0 26px; }
.dm-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 721px) {
  .dm-hero {
    min-height: clamp(620px, 78vh, 820px);
    padding: 132px 0 96px;
    background-position: 68% center;
  }
  .dm-hero::before {
    background: linear-gradient(90deg, rgba(20,23,42,.97) 0%, rgba(20,23,42,.88) 30%, rgba(20,23,42,.46) 52%, rgba(20,23,42,.08) 76%),
                linear-gradient(0deg, rgba(20,23,42,.66) 0%, transparent 36%);
  }
}

/* ---------- the lap: a continuous mile-marker strip down the page,
   not a stack of interchangeable landing-page sections. Every topic is a
   waypoint at a real (illustrative) distance along the circuit, in the
   order it actually comes up on a real lap: prep, first route choice,
   what you're towing it in, where you sleep, timing, people, home again.
   One unbroken background — a road doesn't stop for section breaks. ---------- */
.dm-lap { position: relative; padding: 90px 0 30px; }
.dm-lap__rail {
  position: absolute; left: 27px; top: 96px; bottom: 60px; width: 2px;
  background-image: repeating-linear-gradient(to bottom, var(--dm-line-strong) 0 8px, transparent 8px 18px);
}
@media (min-width: 640px) { .dm-lap__rail { left: 39px; } }

.dm-waypoint { position: relative; padding-left: 70px; margin-bottom: 76px; }
.dm-waypoint--last { margin-bottom: 0; }
@media (min-width: 640px) { .dm-waypoint { padding-left: 96px; } }

.dm-waypoint__marker {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--dm-dusk-2); border: 2px solid var(--dm-signal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  font-family: var(--dm-font-mono);
}
.dm-waypoint__marker small { font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dm-mist-dim); }
.dm-waypoint__marker b { font-size: .68rem; color: var(--dm-signal); }
.dm-waypoint__marker--rust { border-color: var(--dm-rust); }
.dm-waypoint__marker--rust b { color: var(--dm-rust); }

.dm-waypoint__intro { max-width: 640px; }
.dm-waypoint__intro h2 { font-size: 1.7rem; color: var(--dm-white); line-height: 1.1; }
.dm-waypoint__lead { font-size: 1rem; color: var(--dm-mist); margin: 14px 0 0; }
.dm-waypoint__full { margin-top: 28px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.dm-waypoint__full--split { display: grid; gap: 24px; }
@media (min-width: 760px) { .dm-waypoint__full--split { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.dm-waypoint__cite { font-family: var(--dm-font-mono); font-size: .82rem; color: var(--dm-mist-dim); margin: 0 0 18px; }

.dm-checklist { display: flex; flex-direction: column; gap: 14px; max-width: 640px; list-style: none; }
.dm-checklist li { padding-left: 22px; position: relative; font-size: .96rem; color: var(--dm-mist); }
.dm-checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 2px; background: var(--dm-rust); }
.dm-checklist b { color: var(--dm-white); font-weight: 600; }

/* ---------- "what is the Big Lap" explainer ---------- */
.dm-explainer { display: grid; gap: 28px; width: 100%; }
.dm-explainer__stat { padding: 20px 0; border-top: 1px solid var(--dm-line); }
.dm-explainer__stat:last-child { border-bottom: 1px solid var(--dm-line); }
.dm-explainer__stat-value { font-family: var(--dm-font-mono); font-size: 1.6rem; color: var(--dm-signal); }
.dm-explainer__stat-label { font-size: .86rem; color: var(--dm-mist-dim); margin-top: 4px; }
@media (min-width: 700px) {
  .dm-explainer { grid-template-columns: repeat(3, 1fr); }
  .dm-explainer__stat { border-top: none; border-left: 1px solid var(--dm-line); padding: 4px 0 4px 24px; }
  .dm-explainer__stat:last-child { border-bottom: none; }
}

/* ---------- card grids ---------- */
.dm-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dm-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .dm-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .dm-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Ticket-stub treatment: a perforated tear line between the photo and
   the details, echoing a permit/entry-ticket rather than a generic
   rounded content card. */
.dm-card {
  background: rgba(233, 225, 207, .04); border: 1px solid var(--dm-line); border-radius: var(--dm-radius);
  overflow: hidden; transition: border-color .18s ease, transform .18s ease; position: relative;
}
.dm-card:hover { border-color: var(--dm-line-strong); transform: translateY(-2px); }
.dm-card__link { display: block; text-decoration: none; color: inherit; }
.dm-card__photo {
  aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, rgba(233,225,207,.08) 0 12px, rgba(233,225,207,.03) 12px 24px);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.dm-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.dm-card:hover .dm-card__image { transform: scale(1.035); }
.dm-card__photo-tag {
  font-family: var(--dm-font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dm-mist-dim); text-align: center; padding: 0 16px;
}
.dm-card__body { padding: 22px 20px 20px; border-top: 1.5px dashed var(--dm-line-strong); position: relative; }
.dm-card__body::before, .dm-card__body::after {
  content: ""; position: absolute; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--dm-dusk);
}
.dm-card__body::before { left: -8px; }
.dm-card__body::after { right: -8px; }
.dm-card__tag { font-family: var(--dm-font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--dm-signal); text-transform: uppercase; }
.dm-card__body h3 { font-size: 1.12rem; color: var(--dm-white); margin-top: 8px; text-transform: none; letter-spacing: 0; }
.dm-card__body p { font-size: .92rem; color: var(--dm-mist); margin: 10px 0 0; }

/* ---------- permit-tag stat plate (route stats: km / weeks / states) ---------- */
.dm-plate {
  display: inline-flex; gap: 16px; padding: 10px 16px; border: 1px dashed var(--dm-line-strong); border-radius: var(--dm-radius);
  font-family: var(--dm-font-mono); font-size: .78rem; color: var(--dm-mist); background: rgba(79,139,120,.05);
}
.dm-plate__item { display: flex; flex-direction: column; gap: 2px; }
.dm-plate__item b { color: var(--dm-signal); font-size: .92rem; }

/* ---------- seasonal planner (signature secondary element) ---------- */
.dm-seasons {
  display: grid; gap: 0; border: 1px solid var(--dm-line); border-radius: var(--dm-radius-lg); overflow: hidden; width: 100%;
}
.dm-seasons__row { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--dm-line); }
.dm-seasons__row:last-child { border-bottom: none; }
.dm-seasons__month {
  display: flex; align-items: center; padding: 12px 14px; font-family: var(--dm-font-mono); font-size: .74rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--dm-mist-dim); border-right: 1px solid var(--dm-line);
}
.dm-seasons__bar { display: flex; align-items: center; padding: 10px 14px; gap: 8px; }
.dm-seasons__chip {
  font-family: var(--dm-font-mono); font-size: .72rem; padding: 5px 10px; border-radius: 999px;
}
.dm-seasons__chip--north { background: rgba(178,90,53,.18); color: #e0a37e; }
.dm-seasons__chip--south { background: rgba(79,139,120,.2); color: #8fc9b4; }

/* ---------- community waypoint photo ---------- */
.dm-strip__photo {
  aspect-ratio: 16/10; border-radius: var(--dm-radius-lg); border: 1px solid var(--dm-line);
  background: repeating-linear-gradient(135deg, rgba(233,225,207,.08) 0 12px, rgba(233,225,207,.03) 12px 24px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

/* ---------- footer ---------- */
.dm-footer { background: var(--dm-dusk-deep); border-top: 1px solid var(--dm-line); padding: 52px 0 30px; }
.dm-footer__inner { max-width: 1040px; }
.dm-footer__top { display: flex; flex-direction: column; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--dm-line); }
.dm-footer__brand-col { max-width: 340px; }
.dm-footer__tagline { font-size: .9rem; color: var(--dm-mist-dim); margin: 12px 0 0; }
.dm-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.dm-footer__nav a {
  font-family: var(--dm-font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--dm-mist);
}
.dm-footer__nav a:hover { color: var(--dm-signal); }
.dm-footer__bottom {
  display: flex; flex-direction: column; gap: 12px; padding-top: 24px;
  font-size: .78rem; color: var(--dm-mist-dim);
}
.dm-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dm-footer__bottom nav a { color: var(--dm-mist-dim); text-decoration: none; }
.dm-footer__bottom nav a:hover { color: var(--dm-signal); }
.dm-footer__bottom p { margin: 0; }
@media (min-width: 760px) {
  .dm-footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .dm-footer__nav { max-width: 480px; justify-content: flex-end; }
  .dm-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- auth sheet: slides up from the bottom edge, not a
   centred card — deliberately a different UI moment from a popup
   dialog, styled like flipping to a blank page in a logbook. ---------- */
.dm-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.dm-sheet[hidden] { display: none; }
.dm-sheet__backdrop { position: absolute; inset: 0; background: rgba(10,12,22,.7); border: none; cursor: pointer; }
.dm-sheet__panel {
  position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--dm-dusk-2); border: 1px solid var(--dm-line); border-bottom: none;
  border-radius: 20px 20px 0 0; padding: 14px 26px 32px; box-shadow: var(--dm-shadow);
}
.dm-sheet__handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--dm-line-strong); margin: 0 auto 18px; }
.dm-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.dm-sheet__head .dm-eyebrow { margin: 0; }
.dm-sheet__close { background: none; border: none; color: var(--dm-mist); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px; min-height: 32px; }
.dm-sheet__heading { font-size: 1.5rem; color: var(--dm-white); margin-top: 8px; }
.dm-sheet__heading[hidden] { display: none; }
.dm-sheet__lead { font-size: .92rem; color: var(--dm-mist); margin: 10px 0 22px; }
.dm-sheet__lead[hidden] { display: none; }
.dm-sheet__form { display: flex; flex-direction: column; gap: 14px; }
.dm-sheet__field { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--dm-mist-dim); }
.dm-sheet__field input {
  min-height: 46px; padding: 0 14px; border-radius: var(--dm-radius); border: 1px solid var(--dm-line-strong);
  background: rgba(233,225,207,.05); color: var(--dm-white); font-size: 16px; font-family: var(--dm-font-body);
}
.dm-sheet__field input:focus { outline: 2px solid var(--dm-signal); outline-offset: 1px; }
.dm-sheet__error { color: #e08a6b; font-size: .84rem; margin: 0; }
.dm-sheet__error[hidden] { display: none; }
.dm-sheet__switch { font-family: var(--dm-font-mono); font-size: .8rem; color: var(--dm-mist-dim); margin: 18px 0 0; }
.dm-sheet__switch[hidden] { display: none; }
.dm-sheet__link-btn { background: none; border: none; color: var(--dm-signal); cursor: pointer; font-size: inherit; font-family: inherit; text-decoration: underline; padding: 0; }
.dm-sheet__fine { font-size: .74rem; color: var(--dm-mist-dim); margin: 16px 0 0; }
.dm-sheet__fine a { color: var(--dm-mist); text-decoration: underline; }

/* ---------- toast ---------- */
.dm-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 140;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--dm-radius);
  background: var(--dm-signal-deep); color: var(--dm-white); font-size: .9rem; box-shadow: var(--dm-shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.dm-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dm-toast__icon { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Interior pages — a page-hero + long-form prose template shared by every
   hub, route detail, and standard page.
   ========================================================================== */

.dm-breadcrumb { font-family: var(--dm-font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dm-mist-dim); margin: 0 0 18px; }
.dm-breadcrumb a { color: var(--dm-mist-dim); text-decoration: none; }
.dm-breadcrumb a:hover { color: var(--dm-signal); }

.dm-page-hero {
  position: relative; padding: 120px 0 52px; overflow: hidden; isolation: isolate;
  background: var(--dm-dusk) center / cover no-repeat;
}
.dm-page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,23,42,.95) 0%, rgba(20,23,42,.82) 40%, rgba(20,23,42,.5) 100%),
              linear-gradient(0deg, rgba(20,23,42,.7) 0%, transparent 40%);
}
.dm-page-hero__inner { max-width: 700px; }
.dm-page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); color: var(--dm-white); line-height: 1.08; }
.dm-page-hero__lead { font-size: 1.04rem; color: var(--dm-mist); max-width: 58ch; margin: 16px 0 0; }
.dm-page-hero__plate { margin-top: 22px; }

/* ---------- long-form content ---------- */
.dm-prose-section { padding: 60px 0; }
.dm-prose { max-width: 740px; }
.dm-prose h2 { font-size: 1.5rem; color: var(--dm-white); margin: 0 0 16px; }
.dm-prose h2 + h2 { margin-top: 0; }
.dm-prose__block + .dm-prose__block { margin-top: 48px; }
.dm-prose h3 { font-family: var(--dm-font-body); font-size: 1.08rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--dm-sand); margin: 26px 0 10px; }
.dm-prose p { font-size: 1rem; color: var(--dm-mist); line-height: 1.68; }
.dm-prose ul, .dm-prose ol { margin: 0 0 1.1em; padding-left: 22px; color: var(--dm-mist); }
.dm-prose li { margin-bottom: 9px; line-height: 1.6; }
.dm-prose strong { color: var(--dm-white); }
.dm-prose a:not(.dm-btn) { color: var(--dm-signal); text-decoration: underline; }

/* ---------- editorial photography ---------- */
.dm-prose-photo {
  margin: 24px 0 30px;
  overflow: hidden;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius-lg);
  background: var(--dm-dusk-deep);
  box-shadow: 0 18px 38px rgba(10, 12, 22, .24);
}
.dm-prose-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.dm-prose-photo--wide img { aspect-ratio: 16 / 9; }
.dm-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}
.dm-photo-grid .dm-prose-photo { margin: 0; }
.dm-photo-grid--rigs .dm-prose-photo img { aspect-ratio: 4 / 3; }
@media (max-width: 620px) {
  .dm-page-hero { background-position: 66% center; }
  .dm-prose-photo { margin: 20px 0 26px; }
  .dm-photo-grid { grid-template-columns: 1fr; }
}

/* ---------- callout tip (business references, warnings) ---------- */
.dm-tip {
  background: rgba(79, 139, 120, .07); border: 1px solid var(--dm-line-strong); border-left: 3px solid var(--dm-signal);
  border-radius: var(--dm-radius); padding: 18px 20px; margin: 26px 0;
}
.dm-tip__label { font-family: var(--dm-font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dm-signal); margin: 0 0 8px; }
.dm-tip p { margin: 0; font-size: .95rem; color: var(--dm-mist); }
.dm-tip p + p { margin-top: 10px; }
.dm-tip--rust { border-left-color: var(--dm-rust); background: rgba(178, 90, 53, .07); }
.dm-tip--rust .dm-tip__label { color: var(--dm-rust); }

/* ---------- quickfacts plate (route/page summary stats) ---------- */
.dm-quickfacts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 22px;
  border: 1px solid var(--dm-line); border-radius: var(--dm-radius-lg); background: rgba(79, 139, 120, .05);
}
@media (min-width: 640px) { .dm-quickfacts { grid-template-columns: repeat(4, 1fr); } }
.dm-quickfacts dt { font-family: var(--dm-font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dm-signal); margin: 0 0 6px; }
.dm-quickfacts dd { margin: 0; font-family: var(--dm-font-display); font-weight: 700; font-size: 1.05rem; color: var(--dm-white); text-transform: uppercase; letter-spacing: .01em; }

/* ---------- table of contents chips ---------- */
.dm-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.dm-toc a {
  font-family: var(--dm-font-mono); font-size: .74rem; padding: 8px 14px; border: 1px solid var(--dm-line);
  border-radius: 999px; text-decoration: none; color: var(--dm-mist);
}
.dm-toc a:hover { border-color: var(--dm-signal); color: var(--dm-signal); }

/* ---------- simple two-column definition block (state guides etc.) ---------- */
.dm-deflist { display: flex; flex-direction: column; }
.dm-deflist > div { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--dm-line); }
.dm-deflist > div:first-child { padding-top: 0; }
.dm-deflist > div:last-child { border-bottom: none; }
.dm-deflist dt { font-family: var(--dm-font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dm-signal); }
.dm-deflist dd { margin: 0; font-size: .96rem; color: var(--dm-mist); line-height: 1.6; }
@media (min-width: 700px) { .dm-deflist > div { grid-template-columns: 190px 1fr; gap: 28px; align-items: baseline; } }

/* ---------- related / next-step cards row ---------- */
.dm-related { padding: 56px 0 70px; border-top: 1px solid var(--dm-line); }
.dm-related__label { font-family: var(--dm-font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dm-mist-dim); margin: 0 0 20px; }

/* ---------- services & pricing cards ---------- */
.dm-service {
  display: grid; border: 1px solid var(--dm-line); border-radius: var(--dm-radius-lg); overflow: hidden;
  background: rgba(233, 225, 207, .03);
}
.dm-service + .dm-service { margin-top: 22px; }
@media (min-width: 760px) { .dm-service { grid-template-columns: 260px 1fr; } }
.dm-service__photo {
  aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, rgba(233,225,207,.08) 0 12px, rgba(233,225,207,.03) 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.dm-service__photo img {
  display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover;
}
@media (min-width: 760px) { .dm-service__photo { aspect-ratio: auto; } }
.dm-service__body { padding: 24px 26px; }
.dm-service__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.dm-service__head h3 { font-size: 1.2rem; color: var(--dm-white); text-transform: none; letter-spacing: 0; }
.dm-service__price { font-family: var(--dm-font-mono); font-size: 1.3rem; color: var(--dm-signal); white-space: nowrap; }
.dm-service__price small { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dm-mist-dim); margin-top: 2px; font-family: var(--dm-font-mono); }
.dm-service__body p { font-size: .96rem; color: var(--dm-mist); margin: 14px 0 0; }

/* ---------- member perk callout (registration motivation) ---------- */
.dm-perk {
  background: rgba(178, 90, 53, .08); border: 1px solid var(--dm-line-strong); border-radius: var(--dm-radius-lg);
  padding: 28px 26px; margin: 44px 0 0;
}
.dm-perk__label {
  font-family: var(--dm-font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dm-rust); margin: 0 0 12px;
}
.dm-perk h3 { font-size: 1.18rem; color: var(--dm-white); text-transform: none; letter-spacing: 0; margin: 0 0 12px; }
.dm-perk ul { margin: 0 0 18px; padding-left: 20px; }
.dm-perk li { color: var(--dm-mist); margin-bottom: 7px; font-size: .95rem; }
.dm-perk__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- inline photo within a prose block ---------- */
.dm-inline-photo { border-radius: var(--dm-radius-lg); overflow: hidden; margin: 26px 0; border: 1px solid var(--dm-line); }
.dm-inline-photo img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- small photo card row (secondary topic images) ---------- */
.dm-photo-card { border-radius: var(--dm-radius-lg); overflow: hidden; border: 1px solid var(--dm-line); }
.dm-photo-card img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.dm-photo-card__caption { padding: 12px 4px 0; font-family: var(--dm-font-mono); font-size: .78rem; color: var(--dm-mist-dim); }
