/* =========================================================================
   Guides (guides.html): "A guide is a path"
   The trail scene up top, then a two-column layout: a sticky trail-map
   index on the left (a chip rail on phones) and the ten guides on the right.
   Each guide is a native <details>, so find-in-page, deep links and no-JS
   all keep working. Open guides lift onto a sheet, numbered steps become
   trail markers joined by a dotted path, tips become quiet field notes.
   Shared pieces (.steps, .tip, .checklist, .fine-print) live in styles.css;
   everything here is scoped to this page.
   ========================================================================= */

/* ---------- Page geometry ---------- */
.guides-layout,
.page-intro {
  --g-ico: 1.75rem;         /* the marker column: guide icon, step posts, checks, leaf */
  --g-gap: 20px;            /* marker column to text */
  --g-gut: calc(var(--g-ico) + var(--g-gap));
  --g-pad: 28px;            /* sheet padding */
  --hang: var(--g-gut);     /* how far markers hang left of the text column */
  --measure-g: 41rem;       /* comfortable reading measure inside a guide */
  --note: color-mix(in srgb, var(--lichen) 58%, var(--surface));
  --trail: var(--sage);
}

/* ---------- Intro: lead + count and actions ---------- */
.page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.page-intro > .lead { flex: 1 1 30rem; }
.guides-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.guides-count {
  margin: 0;
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.guides-actions { display: flex; gap: 8px; }
html:not(.js) .guides-actions { display: none; }
#expand-all { min-width: 6.5em; }

/* ---------- Two columns: index + guides ---------- */
.guides-layout {
  display: grid;
  grid-template-columns: minmax(196px, 14.5rem) minmax(0, 1fr);
  column-gap: clamp(32px, 5.5vw, 88px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 64px) var(--space-section-sm);
}
.guides-main { min-width: 0; }
/* Rows align their icons and chevrons to the column edges; the sheet of an
   open guide bleeds out into the gap (and the page margin when there's room). */
.guide-list { margin-left: calc(-1 * var(--g-pad)); }
@media (min-width: 1340px) { .guide-list { margin-right: calc(-1 * var(--g-pad)); } }

/* ---------- The index: a little trail map ---------- */
.guide-index {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  max-height: calc(100dvh - var(--header-h) - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  margin-top: -2px;
}
.guide-index::-webkit-scrollbar { display: none; }
.guide-index-label {
  margin: 0 0 14px;
  padding-left: 2px;
  color: var(--text-2);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.gi-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the dotted footpath that joins every stop */
.gi-list::before {
  content: "";
  position: absolute;
  top: max(22px, calc(4px + 1rem));
  bottom: max(22px, calc(4px + 1rem));
  left: 1rem;
  width: 4px;
  margin-left: -2px;
  background: radial-gradient(circle, var(--trail) 1.15px, transparent 1.6px) center top / 4px 7px repeat-y;
  opacity: .9;
}
.gi-list a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 10px 4px 0;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-1) var(--ease-out);
}
.gi-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--moss);
  transition: color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.gi-ico svg { width: 1rem; height: 1rem; }
.gi-list a:hover { color: var(--ink); }
.gi-list a:hover .gi-ico { box-shadow: inset 0 0 0 1px var(--line-strong); }
.gi-list a[aria-current] { color: var(--ink); }
.gi-list a[aria-current] .gi-ico { color: var(--on-pine); box-shadow: none; background: transparent; }
.gi-list a:focus-visible { outline-offset: 0; }
/* "You are here": a pine disc that glides along the path to the guide in view */
.gi-marker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pine) 14%, transparent), var(--shadow-1);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, var(--gi-y, 0px), 0) scale(.6);
}
.gi-marker.is-on { opacity: 1; transform: translate3d(0, var(--gi-y, 0px), 0); }
html.motion-ok .gi-marker { transition: transform 620ms var(--ease-out), opacity var(--dur-2) var(--ease-out); }
html.motion-ok .gi-marker.is-jump { transition: opacity var(--dur-2) var(--ease-out), transform 420ms var(--ease-spring); }
html:not(.js) .gi-marker { display: none; }
/* Without the marker (no JS), the stop circles stay solid over the path */
.gi-list a[aria-current] .gi-ico { transition-delay: 120ms; }

/* ---------- The guide list ---------- */
.guide-list { position: relative; }
/* a closing hairline under the last row */
.guide-list::after {
  content: "";
  display: block;
  height: 1px;
  margin-inline: var(--g-pad);
  background: var(--line);
  transition: opacity var(--dur-2) var(--ease-out);
}
.guide-list:has(> details.guide:last-of-type[open])::after { opacity: 0; }

details.guide {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 12px;
}
/* the sheet an open guide lifts onto */
details.guide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
  opacity: 0;
  transform: scale(.985);
  transition: opacity 380ms var(--ease-out), transform 520ms var(--ease-out);
  pointer-events: none;
}
details.guide[open]::before { opacity: 1; transform: none; }
/* hairline between closed rows */
details.guide::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--g-pad);
  right: var(--g-pad);
  height: 1px;
  background: var(--line);
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
details.guide[open]::after,
details.guide[open] + details.guide::after { opacity: 0; }

/* ---------- Summary row ---------- */
details.guide > summary {
  --t-size: clamp(1.1875rem, 1.55vw, 1.375rem);
  position: relative;
  display: grid;
  grid-template-columns: var(--g-ico) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--g-gap);
  padding: 26px var(--g-pad);
  border-radius: var(--r-xl);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::marker { content: ""; }
/* a soft wash on hover, only while closed */
details.guide > summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-xl);
  background: var(--fill);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) { details.guide:not([open]) > summary:hover::before { opacity: 1; } }
details.guide > summary:focus-visible { outline-offset: -3px; }

details.guide > summary .ico {
  display: grid;
  place-items: center;
  align-self: start;
  width: var(--g-ico);
  height: max(var(--g-ico), calc(var(--t-size) * 1.25));
  color: var(--moss);
  transition: color var(--dur-2) var(--ease-out), transform 520ms var(--ease-spring);
}
details.guide > summary .ico svg { width: 1.625rem; height: 1.625rem; }
details.guide[open] > summary .ico { color: var(--pine); }
details.guide > summary h2 {
  margin: 0;
  font-size: calc(var(--t-size) * 1.12);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
details.guide > summary .sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.006em;
}
details.guide > summary .chev {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--ink);
  transition: background-color var(--dur-1) var(--ease-out), transform 560ms var(--ease-spring);
}
details.guide > summary .chev svg { width: 1rem; height: 1rem; }
@media (hover: hover) { details.guide > summary:hover .chev { background: color-mix(in srgb, var(--ink) 12%, transparent); } }
details.guide[open] > summary .chev { transform: rotate(-180deg); }

/* ---------- Smooth open and close ----------
   Where the browser can animate to height: auto (::details-content +
   interpolate-size), the content glides open. guides.js adds .guides-dc only
   in those browsers and runs a small height animation everywhere else.
   Reduced motion: instant. */
@supports selector(::details-content) {
  html.motion-ok.guides-dc details.guide { interpolate-size: allow-keywords; }
  html.motion-ok.guides-dc details.guide::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 640ms var(--ease-out), content-visibility 640ms allow-discrete;
  }
  html.motion-ok.guides-dc details.guide[open]::details-content { block-size: auto; }
  html.motion-ok.guides-dc details.guide:not([open])::details-content { transition-duration: 420ms; transition-timing-function: var(--ease-in-out); }
  html.guides-instant details.guide::details-content { transition: none !important; }
}
html.motion-ok .guide-body {
  transition: opacity 420ms var(--ease-out) 60ms, transform 560ms var(--ease-out) 40ms;
}
html.motion-ok details.guide:not([open]) .guide-body {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition-duration: 220ms, 420ms;
  transition-delay: 0ms;
}
html.guides-instant details.guide,
html.guides-instant details.guide::before,
html.guides-instant details.guide::after,
html.guides-instant .guide-body,
html.guides-instant details.guide > summary :is(.chev, .ico) { transition: none !important; }

/* ---------- The guide body: a calm, well-set article ---------- */
.guide-body {
  --fs: 1.0625rem;
  --lh: calc(var(--fs) * 1.65);   /* one line, in rem, so markers can centre on it */
  padding: 0 var(--g-pad) 40px calc(var(--g-pad) + var(--hang));
  font-size: var(--fs);
  line-height: 1.65;
}
.guide-body > * { max-width: var(--measure-g); }
.guide-body > :first-child { margin-top: 6px; }
.guide-body > :last-child { margin-bottom: 0; }
.guide-body h3 {
  margin: 36px 0 14px;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.016em;
}
.guide-body > h3:first-child { margin-top: 10px; }
.guide-body p { margin: 0 0 20px; }
.guide-body a[href^="tel:"] { white-space: nowrap; }

/* Lists share the marker column: whatever marks an item hangs in it */
.guide-body :is(.steps, .checklist, ul) > li { padding-left: calc(var(--g-gut) - var(--hang)); }

/* Plain lists: a small sage stone in the marker column */
.guide-body ul:not(.checklist) {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.guide-body ul:not(.checklist) > li { position: relative; }
.guide-body ul:not(.checklist) > li + li { margin-top: 0; }
.guide-body ul:not(.checklist) > li::before {
  content: "";
  position: absolute;
  top: calc(var(--lh) / 2 - 3px);
  left: calc(var(--g-ico) / 2 - 3px - var(--hang));
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--trail);
}

/* ---------- Steps as trail markers ---------- */
.guide-body .steps {
  --mk-w: 1.5rem;
  --mk-h: 1.875rem;
  --gap: 24px;
  gap: var(--gap);
  margin: 0 0 28px;
}
.guide-body .steps > li { position: relative; }
/* the marker post: a small rounded blaze, number painted on */
.guide-body .steps > li::before {
  top: calc((var(--lh) - var(--mk-h)) / 2);
  left: calc((var(--g-ico) - var(--mk-w)) / 2 - var(--hang));
  width: var(--mk-w);
  height: var(--mk-h);
  border-radius: 8px;
  background: var(--pine);
  color: var(--on-pine);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-pine) 16%, transparent), var(--shadow-1);
}
/* the dotted path to the next marker */
.guide-body .steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc((var(--lh) + var(--mk-h)) / 2 + 6px);
  bottom: calc((var(--gap) + (var(--lh) - var(--mk-h)) / 2 - 6px) * -1);
  left: calc(var(--g-ico) / 2 - 2px - var(--hang));
  width: 4px;
  background: radial-gradient(circle, var(--trail) 1.25px, transparent 1.75px) center top / 4px 7px repeat-y;
}
/* Drawn as the guide opens or scrolls into view (guides.js adds .is-drawn).
   Hidden start states only with JS and motion allowed. Transitions live on
   the drawn state, so closing resets instantly instead of rewinding. */
html.js.motion-ok .guide-body .steps:not(.is-drawn) > li::before { opacity: 0; transform: translate3d(0, 6px, 0) scale(.55); }
html.js.motion-ok .guide-body .steps:not(.is-drawn) > li::after { clip-path: inset(0 0 100% 0); }
html.motion-ok .guide-body .steps.is-drawn > li::before {
  transition:
    opacity 300ms var(--ease-out) calc(var(--i, 0) * 120ms + 80ms),
    transform 620ms var(--ease-spring) calc(var(--i, 0) * 120ms + 80ms);
}
html.motion-ok .guide-body .steps.is-drawn > li::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 520ms var(--ease-in-out) calc(var(--i, 0) * 120ms + 220ms);
}

/* ---------- Checklists: gentle checkmarks ---------- */
.guide-body .checklist { gap: 12px; margin: 0 0 24px; }
.guide-body .checklist li { position: relative; }
.guide-body .checklist li::before {
  top: calc((var(--lh) - 1.375rem) / 2);
  left: calc((var(--g-ico) - 1.375rem) / 2 - var(--hang));
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--note);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--moss) 22%, transparent);
}
.guide-body .checklist li::after {
  top: calc((var(--lh) - .875rem) / 2);
  left: calc((var(--g-ico) - .875rem) / 2 - var(--hang));
  width: .875rem;
  height: .875rem;
  border: 0;
  transform: none;
  background: var(--pine);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.js.motion-ok .guide-body .checklist:not(.is-drawn) li::after { clip-path: inset(0 100% 0 0); }
html.motion-ok .guide-body .checklist.is-drawn li::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 380ms var(--ease-out) calc(var(--i, 0) * 70ms + 160ms);
}

/* ---------- Tips become field notes ---------- */
.guide-body .tip {
  --bleed: 14px;
  position: relative;
  max-width: calc(var(--measure-g) + var(--hang) + var(--bleed) + 24px);
  margin: 28px 0 28px calc(-1 * (var(--hang) + var(--bleed)));
  padding: 18px 24px 20px calc(var(--g-gut) + var(--bleed));
  border-radius: var(--r-md);
  background: var(--note);
  color: var(--text);
}
.guide-body > .tip:first-child { margin-top: 6px; }
.guide-body .tip::before {
  content: "";
  position: absolute;
  top: calc(18px + (var(--lh) - 1.25rem) / 2);
  left: calc(var(--bleed) + (var(--g-ico) - 1.25rem) / 2);
  width: 1.25rem;
  height: 1.25rem;
  background: var(--moss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 11 10.5 5.5 19 5c0 8.5-5.5 14-14 14z' fill='%23000' fill-opacity='.22'/%3E%3Cpath d='M5 19l7.5-7.5' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 11 10.5 5.5 19 5c0 8.5-5.5 14-14 14z' fill='%23000' fill-opacity='.22'/%3E%3Cpath d='M5 19l7.5-7.5' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* only the note's title is a block; inline emphasis stays inline */
.guide-body .tip strong { display: inline; margin: 0; }
.guide-body .tip > strong:first-child { display: block; margin-bottom: 4px; color: var(--ink); }

/* ---------- Trail's end ---------- */
.trail-end {
  margin-top: clamp(40px, 5vw, 56px);
  color: var(--text-2);
}
.trail-end p { margin: 0 0 8px; }
.trail-end .link-arrow { margin-left: 4px; }
.guides-main > .fine-print { margin-top: 28px; }

/* ---------- Tablets and phones: the index becomes a chip rail ---------- */
@media (max-width: 999px) {
  .guides-layout { display: block; padding-top: 24px; }
  .guide-list { margin-inline: 0; }
  .guide-index {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    max-height: none;
    overflow: visible;
    margin: 0 calc(-1 * var(--gutter)) 12px;
    background: color-mix(in srgb, var(--paper) 78%, transparent);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 1px 0 transparent;
    transition: box-shadow var(--dur-2) var(--ease-out);
  }
  .guide-index.is-stuck { box-shadow: 0 1px 0 var(--line); }
  .guide-index-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gi-list {
    display: flex;
    gap: 8px;
    padding: 8px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .gi-list::-webkit-scrollbar { display: none; }
  .gi-list::before, .gi-marker { display: none; }
  .gi-list li { flex: none; }
  .gi-list a {
    gap: 7px;
    min-height: 40px;
    padding: 0 15px 0 11px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: .875rem;
    white-space: nowrap;
    transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  }
  .gi-list a::before { content: ""; position: absolute; inset: -2px 0; }
  .gi-ico { width: auto; height: auto; background: none; box-shadow: none; }
  .gi-list a:hover .gi-ico { box-shadow: none; }
  .gi-list a[aria-current] { border-color: var(--pine); background: var(--pine); color: var(--on-pine); }
  .gi-list a[aria-current] .gi-ico { color: inherit; }
  .gi-list a:focus-visible { outline-offset: -3px; }
  details.guide { scroll-margin-top: 50px; }
  /* At the largest text sizes the rail scrolls away instead of sticking */
  html:is([data-text="3"], [data-text="4"]) .guide-index { position: relative; top: auto; }
  html:is([data-text="3"], [data-text="4"]) details.guide { scroll-margin-top: 12px; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 999px) { .guide-index { background: var(--paper); } }
}
/* Large text on mid-size screens: give the guides the room */
@media (min-width: 1000px) and (max-width: 1279px) {
  html:is([data-text="3"], [data-text="4"]) .guides-layout { grid-template-columns: minmax(0, 1fr); }
  html:is([data-text="3"], [data-text="4"]) .guide-index { display: none; }
}

@media (max-width: 640px) {
  .guides-layout, .page-intro {
    --g-ico: 1.5rem;
    --g-gap: 14px;
    --g-pad: 16px;
    --hang: 0px;
  }
  .page-intro { gap: 16px; }
  .guides-bar { width: 100%; justify-content: space-between; }
  .guide-list { margin-inline: -6px; }
  .trail-end, .guides-main > .fine-print { padding-inline: 10px; }
  details.guide > summary { --t-size: 1.125rem; padding: 20px var(--g-pad); column-gap: 12px; border-radius: var(--r-lg); }
  details.guide > summary::before, details.guide::before { border-radius: var(--r-lg); }
  details.guide > summary .ico svg { width: 1.4375rem; height: 1.4375rem; }
  details.guide > summary .sub { font-size: .875rem; }
  details.guide > summary .chev { width: 1.875rem; height: 1.875rem; }
  details.guide > summary .chev svg { width: .9375rem; height: .9375rem; }
  .guide-body { --fs: 1rem; --lh: calc(var(--fs) * 1.6); padding: 0 var(--g-pad) 28px; line-height: 1.6; }
  /* phones: the leaf sits beside the note's title so the text keeps its width */
  .guide-body .tip { --bleed: 0px; margin-inline: -4px; padding: 16px 18px 18px; }
  .guide-body .tip > strong:first-child { padding-left: calc(1.25rem + 10px); }
  .guide-body .tip::before { left: 18px; top: calc(16px + (var(--lh) - 1.25rem) / 2); }
}

/* ---------- Preferences ---------- */
html[data-spacing="wide"] .guide-body { --lh: calc(var(--fs) * 1.85); line-height: 1.85; }

html[data-contrast="high"] details.guide::before { box-shadow: none; border: 2px solid var(--line); transform: none; }
html[data-contrast="high"] details.guide::after,
html[data-contrast="high"] .guide-list::after { height: 2px; }
html[data-contrast="high"] details.guide > summary::before { background: transparent; border: 2px solid var(--line); }
html[data-contrast="high"] details.guide > summary .chev { border: 2px solid var(--line); background: var(--paper); }
html[data-contrast="high"] .guide-body .steps > li::before { box-shadow: none; }
html[data-contrast="high"] .guide-body .checklist li::before { box-shadow: inset 0 0 0 2px var(--line); }
html[data-contrast="high"] .guide-body .tip { border: 2px solid var(--line); }
html[data-contrast="high"] .gi-ico { box-shadow: inset 0 0 0 2px var(--line); }
html[data-contrast="high"] .gi-marker { box-shadow: none; }
@media (max-width: 999px) {
  html[data-contrast="high"] .guide-index { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html[data-contrast="high"] .guide-index.is-stuck { box-shadow: 0 2px 0 var(--line); }
  html[data-contrast="high"] .gi-list a { border: 2px solid var(--line); }
  html[data-contrast="high"] .gi-list a[aria-current] { outline: 2px solid var(--text); outline-offset: 2px; }
}

/* ---------- Print: every guide open, no hero art, no index ---------- */
@media print {
  .page-hero { padding: 0 0 6pt; border: 0 !important; }
  .page-hero .scene, .scene-toggle, .guide-index, .guides-bar, .trail-end { display: none !important; }
  .page-hero-title .eyebrow { margin: 0 0 2pt; color: #333333; font-size: 10pt; }
  .page-hero-title h1 { max-width: none; font-size: 20pt; }
  .page-intro { display: block; padding-top: 4pt; }
  .page-intro > .lead { font-size: 11pt; color: #333333; }
  .guides-layout { display: block; padding: 10pt 0 0; }
  .guide-list { margin: 0 !important; }
  .guide-list::after, details.guide::after, details.guide::before, details.guide > summary::before { display: none !important; }
  details.guide { break-inside: auto; margin-bottom: 14pt; }
  details.guide > summary { display: block; padding: 0 0 6pt; break-after: avoid; }
  details.guide > summary .ico, details.guide > summary .chev { display: none; }
  details.guide > summary h2 { font-size: 14pt; }
  details.guide > summary .sub { color: #333333; font-size: 10pt; }
  details.guide::details-content { block-size: auto !important; content-visibility: visible !important; transition: none !important; }
  .guide-body { --fs: 11pt; --lh: calc(11pt * 1.45); padding: 0; opacity: 1 !important; transform: none !important; transition: none !important; font-size: 11pt; line-height: 1.45; }
  .guide-body :is(.steps, .checklist, ul) { gap: 5pt !important; margin-bottom: 8pt !important; }
  .guide-body > * { max-width: none; }
  .guide-body h3 { margin: 10pt 0 4pt; font-size: 11.5pt; break-after: avoid; }
  .guide-body :is(.steps, .checklist, ul) > li { padding-left: 22pt; break-inside: avoid; }
  .guide-body .steps > li::before {
    left: 0; top: .05em; width: 15pt; height: 15pt; border: 1px solid #000000; border-radius: 50%;
    background: none; color: #000000; box-shadow: none; font-size: 8pt;
    opacity: 1 !important; transform: none !important;
  }
  .guide-body .steps > li::after { display: none; }
  .guide-body ul:not(.checklist) > li::before { left: 6pt; background: #000000; }
  .guide-body .checklist li::before { left: 0; top: .1em; width: 12pt; height: 12pt; border: 1px solid #000000; border-radius: 3pt; background: none; box-shadow: none; }
  .guide-body .checklist li::after { display: none; }
  .guide-body .tip { margin: 8pt 0; max-width: none; padding: 8pt 10pt; border: 1px solid #999999; background: none; break-inside: avoid; }
  .guide-body .tip::before { display: none; }
  .guide-body a[href^="http"]::after { content: " (" attr(href) ")"; color: #333333; font-size: 9pt; word-break: break-all; }
  .guides-main > .fine-print { padding: 0; }
}
