/* ==========================================================
   Aquehonga District Advancement — site styles
   Theme: Scout uniform khaki, merit badge sash olive,
   neckerchief yellow, Eagle red. Change a color here and it
   updates everywhere.
   ========================================================== */

@font-face { font-family: "Zilla Slab"; src: url("fonts/zilla-slab-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("fonts/zilla-slab-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ink: #2a2418;
  --muted: #5e5543;
  --paper: #efe8d6;        /* page background, a light uniform khaki */
  --card: #fbf8f0;         /* panels */
  --khaki: #d6c49b;        /* uniform shirt */
  --khaki-deep: #b9a374;
  --olive: #4f5b37;        /* merit badge sash */
  --olive-dark: #2e3622;   /* header and footer */
  --red: #b8232f;          /* Eagle red */
  --yellow: #e3b32c;       /* neckerchief yellow */
  --blue: #2a5c9a;
  --green-rim: #86b04a;    /* merit badge rim */
  --silver-rim: #dcd7c8;   /* Eagle-required badge rim */
  --rule: #d3c7a8;
  --link: #1f4f86;
  --blaze-blue: var(--blue);
  --blaze-yellow: var(--yellow);

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.65;
}
main { isolation: isolate; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.measure { max-width: 68ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; font-family: var(--display); font-weight: 700; }
.skip:focus { left: .5rem; top: .5rem; z-index: 10; }

/* Rope divider */
.rope {
  height: 10px; border-radius: 5px;
  background: repeating-linear-gradient(-58deg, #c4a36a 0 7px, #8c6c3d 7px 10px);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}

/* ---------- Header ---------- */

.site-header { background: var(--olive-dark); color: #f3ead3; position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; border-bottom: 2px dashed rgba(227,179,44,.5); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1rem 0 1.4rem; }
.brand { display: flex; align-items: center; gap: .9rem; color: #f3ead3; text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--khaki); display: flex; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 0 0 3px var(--red), 0 0 0 5px #efe4c8;
}
.brand-mark i { display: block; width: 6px; height: 20px; border-radius: 1px; }
.brand-mark i:nth-child(1) { background: var(--blue); }
.brand-mark i:nth-child(2) { background: var(--yellow); }
.brand-mark i:nth-child(3) { background: #fff; box-shadow: 0 0 0 1px #9c8a5c; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.brand-text span { font-size: .9rem; opacity: .8; font-style: italic; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .35rem; }
.site-nav a {
  color: #f3ead3; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: .3rem .75rem; border-radius: 999px; display: inline-block;
}
.site-nav a:hover { background: rgba(243,234,211,.12); }
.site-nav a[aria-current="page"] { background: var(--yellow); color: var(--olive-dark); }

/* ---------- Page intros (khaki band with a map texture) ---------- */

.page-intro { position: relative; padding: 3rem 0 2.5rem; margin-bottom: 1rem; }
.page-intro::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: var(--khaki) url("img/topo.svg") center / 900px auto;
  border-bottom: 4px solid var(--khaki-deep);
}
.page-intro .lede { font-size: 1.25rem; color: #3f3828; max-width: 58ch; }
.page-intro.has-photo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; }

/* Photo in a stitched patch frame */
.patch-frame { margin: 0; position: relative; border-radius: 26px; overflow: hidden; border: 8px solid var(--olive); aspect-ratio: 4 / 3; background: var(--olive); box-shadow: 0 10px 0 -4px rgba(46,54,34,.25); }
.patch-frame img { width: 100%; height: 100%; object-fit: cover; }
.patch-frame::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(239,228,200,.85); border-radius: 17px; pointer-events: none; }

main section { padding: 1.5rem 0; }

/* ---------- Home hero with the Scout ---------- */

.hero-home { position: relative; padding: 2.5rem 0 1rem; }
.hero-home::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--khaki) url("img/topo.svg") center / 900px auto; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem; align-items: center; }
.hero-text .lede { font-size: 1.25rem; color: #3f3828; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.button {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  background: var(--red); color: #fff; text-decoration: none;
  padding: .7rem 1.4rem .6rem; border-radius: 999px; border: 3px solid var(--red);
}
.button:hover { background: #971b25; border-color: #971b25; }
.button.ghost { background: transparent; color: var(--olive-dark); border-color: var(--olive); }
.button.ghost:hover { background: rgba(79,91,55,.12); }

.scout-stage { position: relative; max-width: 460px; margin-inline: auto; width: 100%; padding-bottom: 2.2rem; }
.scout { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 30px; }
.scout svg { display: block; width: 100%; height: auto; overflow: visible; }
.scout-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-style: italic; color: #4a4232; font-size: 1rem; }

.arm-upper, .arm-fore { transform-box: view-box; }
.arm-upper { transform-origin: 152px 158px; transition: transform .55s cubic-bezier(.34, 1.3, .5, 1) .14s; }
.arm-fore { transform-origin: 152px 262px; transition: transform .45s cubic-bezier(.34, 1.3, .5, 1) 0s; }
.hand-rest { transition: opacity .12s .12s; }
.hand-sign { opacity: 0; transition: opacity .12s 0s; }

.scout[aria-pressed="true"] .arm-upper, .scout:focus-visible .arm-upper { transform: rotate(90deg); transition-delay: 0s; }
.scout[aria-pressed="true"] .arm-fore, .scout:focus-visible .arm-fore { transform: rotate(90deg); transition-delay: .16s; }
.scout[aria-pressed="true"] .hand-rest, .scout:focus-visible .hand-rest { opacity: 0; transition-delay: .22s; }
.scout[aria-pressed="true"] .hand-sign, .scout:focus-visible .hand-sign { opacity: 1; transition-delay: .28s; }
@media (hover: hover) {
  .scout-stage:hover .arm-upper { transform: rotate(90deg); transition-delay: 0s; }
  .scout-stage:hover .arm-fore { transform: rotate(90deg); transition-delay: .16s; }
  .scout-stage:hover .hand-rest { opacity: 0; transition-delay: .22s; }
  .scout-stage:hover .hand-sign { opacity: 1; transition-delay: .28s; }
}

.oath {
  position: absolute; right: -6%; bottom: 2.4rem; width: min(275px, 64%); margin: 0;
  background: var(--card); border-radius: 18px; padding: 1rem 1.15rem .9rem;
  box-shadow: 0 0 0 4px var(--red), 0 0 0 6px var(--card), 0 14px 30px -12px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .25s, transform .25s; pointer-events: none;
}
.oath::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(184,35,47,.45); border-radius: 13px; pointer-events: none; }
.oath p { margin: 0; font-size: .94rem; line-height: 1.48; }
.oath .oath-title { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 1.1rem; margin-bottom: .25rem; }
.scout[aria-pressed="true"] ~ .oath, .scout:focus-visible ~ .oath { opacity: 1; transform: none; transition-delay: .35s; }
@media (hover: hover) { .scout-stage:hover .oath { opacity: 1; transform: none; transition-delay: .35s; } }

/* ---------- Home: routes as merit-badge cards ---------- */

.section-head { max-width: 62ch; margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); margin: 0; }
.route-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.route-card { position: relative; background: var(--card); border-radius: 24px; box-shadow: 0 4px 0 var(--khaki-deep); }
.route-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px 24px 0 0; }
.route-card figure img { width: 100%; height: 100%; object-fit: cover; }
.route-card .emblem {
  position: absolute; left: 1.25rem; top: 0; margin-top: calc(75% - 34px);
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); box-shadow: 0 0 0 4px var(--rim), 0 0 0 7px var(--card);
}
.route-card .emblem svg { width: 36px; height: 36px; }
.route-body { padding: 2.9rem 1.4rem 1.4rem; }
.route-body h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.route-body h3 a { color: var(--ink); text-decoration: none; }
.route-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.route-body p { margin: 0; font-size: 1.02rem; }

/* ---------- Home: story band ---------- */

.story { background: var(--olive); color: #f1e8d0; margin: 2.5rem 0; padding: 3rem 0; position: relative; }
.story::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; bottom: 8px; border-top: 2px dashed rgba(239,228,200,.4); border-bottom: 2px dashed rgba(239,228,200,.4); pointer-events: none; }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.75rem; align-items: center; }
.story h2 { color: #fff; }
.story p { font-size: 1.15rem; max-width: 56ch; }
.story .patch-frame { border-color: var(--khaki); }
.story .patch-frame::after { border-color: rgba(79,91,55,.7); }

/* ---------- Home: notices + send-to ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: start; }
.notice { position: relative; background: #fff7dc; border-radius: 18px; padding: 1.6rem 1.7rem .8rem; }
.notice::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(196,146,20,.6); border-radius: 12px; pointer-events: none; }
.sendto dl { margin: 0; border-top: 2px solid var(--rule); }
.sendto dl > div { padding: .9rem 0; border-bottom: 2px solid var(--rule); }
.sendto dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.sendto dd { margin: .15rem 0 0; }
.sendto dd small { display: block; color: var(--muted); font-size: .95rem; }
.email { font-family: var(--display); font-weight: 600; background: #e7dcc0; padding: .05rem .5rem; border-radius: 6px; white-space: nowrap; text-decoration: none; }
.email:hover { text-decoration: underline; }

/* ---------- Scrapbook snapshots ---------- */

.snapshots { display: flex; flex-wrap: wrap; gap: 2rem 1.75rem; margin-top: 1.25rem; }
.snap { margin: 0; background: #fff; padding: 10px 10px 0; width: min(300px, 100%); box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); transform: rotate(var(--r, -2deg)); position: relative; }
.snap::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(214,196,155,.8); }
.snap img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.snap figcaption { font-style: italic; font-size: 1rem; padding: .55rem .2rem .7rem; color: #3f3828; }

/* ---------- Eagle page hero: badge + flying eagle ---------- */

.eagle-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; }
.eagle-sky { position: relative; margin: 0; aspect-ratio: 1 / 1; max-width: 420px; justify-self: center; width: 100%; }
.sky-disc { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #eaf3fb 0%, #cfe2f2 60%, #b9d3ea 100%); box-shadow: 0 0 0 6px var(--card), 0 0 0 10px var(--olive); }
.sky-disc::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px dashed rgba(42,92,154,.35); }
.sky-disc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eagle-sky .badge { position: absolute; width: 48%; left: 30%; top: 27%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); animation: badge-in .9s ease-out both .2s; }
.flyer { position: absolute; width: 62%; left: -6%; top: 2%; animation: fly-in 2.9s cubic-bezier(.22, .7, .25, 1) both, soar 7s ease-in-out 2.9s infinite; }
.flyer svg { width: 100%; height: auto; overflow: visible; }
.wing { transform-box: view-box; transform-origin: 114px 62px; animation: flap .42s ease-in-out 0s 7, glide 4.5s ease-in-out 2.95s infinite; }
.wing.far { animation-delay: .04s, 2.99s; }

@keyframes badge-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fly-in {
  0%   { transform: translate(-95vw, 140px) rotate(9deg) scale(.7); }
  55%  { transform: translate(-28vw, -40px) rotate(-7deg) scale(.9); }
  100% { transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes soar { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(10px, -12px) rotate(-3deg); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-.55); } }
@keyframes glide { 0%, 30%, 100% { transform: scaleY(.85); } 10% { transform: scaleY(-.45); } 20% { transform: scaleY(.9); } }

/* ---------- Eagle trail ---------- */

.stage-map { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-family: var(--display); }
.stage-map a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.stage-map a:hover .t { text-decoration: underline; }
.mini-blaze {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: .85rem; font-weight: 700; color: #fff; background: var(--c);
  box-shadow: 0 0 0 2px var(--rim, var(--silver-rim));
}
.stage-map .s1 .mini-blaze { --rim: var(--silver-rim); }
.stage-map .s2 .mini-blaze { color: var(--ink); --rim: var(--green-rim); }
.stage-map .s3 .mini-blaze { color: var(--ink); --rim: var(--red); }

.stage { --c: var(--blue); --fg: #fff; --rim: var(--silver-rim); padding: 2.5rem 0 1rem; }
.stage.s2 { --c: var(--yellow); --fg: var(--ink); --rim: var(--green-rim); }
.stage.s3 { --c: #fbf8f0; --fg: var(--ink); --rim: var(--red); }
.stage-head { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.25rem; }
.stage-blaze {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  box-shadow: 0 0 0 4px var(--rim), 0 0 0 6px var(--card);
}
.stage-head p { margin: 0; color: var(--muted); max-width: 60ch; }

.trail { list-style: none; counter-reset: step; margin: 0; padding: 0 0 0 3.7rem; position: relative; max-width: 72ch; }
.trail::before { content: ""; position: absolute; left: 1.15rem; top: .6rem; bottom: .6rem; border-left: 3px dotted var(--olive); opacity: .5; }
.trail > li { counter-increment: step; position: relative; padding-bottom: 1.4rem; }
.trail > li::before {
  content: counter(step); position: absolute; left: -3.7rem; top: 0; margin-left: .3rem;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 0 3px var(--rim), 0 0 0 5px var(--paper);
}
.trail h3 { margin-bottom: .25rem; }
.trail p { margin-bottom: .4em; }
.trail ul { margin: .25rem 0 .5rem; padding-left: 1.2rem; }
.trail.letters > li::before { content: attr(data-page); }

.stop {
  position: relative; background: var(--card); border: 3px solid var(--red); border-radius: 16px;
  padding: 1.1rem 1.35rem; margin: .5rem 0 1.8rem 3.7rem; max-width: calc(72ch - 3.7rem);
}
.stop::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(184,35,47,.4); border-radius: 11px; pointer-events: none; }
.stop strong:first-child { font-family: var(--display); color: var(--red); display: block; font-size: 1.15rem; margin-bottom: .15rem; }
.stop p { margin: 0; }

/* ---------- Lists, panels, tables ---------- */

.docs { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--rule); max-width: 72ch; }
.docs li { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; padding: .85rem 0; border-bottom: 2px solid var(--rule); }
.docs .type { flex: none; font-family: var(--display); font-size: .9rem; font-weight: 600; color: var(--olive-dark); background: #e7dcc0; padding: .05rem .6rem; border-radius: 999px; }
.docs small { display: block; color: var(--muted); font-size: .95rem; }

.panel { position: relative; background: var(--card); border-radius: 18px; padding: 1.6rem 1.7rem .8rem; max-width: 72ch; }
.panel::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(79,91,55,.35); border-radius: 12px; pointer-events: none; }
.panel > * { position: relative; z-index: 1; }

.people { width: 100%; max-width: 860px; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 0 var(--khaki-deep); }
.people th, .people td { text-align: left; padding: .95rem 1.1rem; border-bottom: 2px solid #ece3cc; vertical-align: top; }
.people tr:last-child td { border-bottom: 0; }
.people th { font-family: var(--display); font-size: 1rem; font-weight: 700; color: #f3ead3; background: var(--olive); }
.people td:first-child { font-family: var(--display); font-weight: 700; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 2rem 1.75rem; }
.empty { border: 2px dashed var(--khaki-deep); border-radius: 18px; padding: 2rem 1.5rem; max-width: 72ch; background: rgba(251,248,240,.6); margin-top: 2rem; }

/* ---------- Guide pages with a side rail ---------- */

.rail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 3rem; align-items: start; }
.rail-layout .flow { grid-column: 1; grid-row: 1; min-width: 0; }
.rail { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; padding-top: 2.5rem; }
.rail h2 { font-size: 1.05rem; color: var(--muted); margin-bottom: .75rem; }
.rail .stage-map { flex-direction: column; gap: .7rem; margin: 0 0 2rem; }
.rail .stage-map a .t { line-height: 1.3; }
.rail .stage-map li.plain a { padding-left: calc(26px + .6rem); font-weight: 600; }
.rail-send { border-top: 2px solid var(--rule); padding-top: 1.25rem; font-size: .95rem; }
.rail-send p { margin-bottom: .9rem; word-break: break-word; }
.flow .stage:first-child { padding-top: 1.5rem; }
.rail-panels { display: grid; gap: 1.5rem; padding-top: .5rem; }
.rail-panels .panel { max-width: none; }
.rail-panels h2 { font-size: 1.35rem; color: var(--ink); }
@media (min-width: 901px) { .rail-layout:has(.rail-panels) { grid-template-columns: minmax(0, 1fr) 320px; } }

.prose section { padding: 1.25rem 0 1.5rem; }
.prose section + section { border-top: 2px dashed var(--rule); }
.prose > section > p, .prose > section > ul, .prose > section > h3 { max-width: 68ch; }
.prose .panel { margin: 1rem 0; }
.prose .panel ul { padding-left: 1.2rem; }
.prose .panel h3 { margin-top: 0; }
.prose .trail { --c: var(--olive); --fg: #fff; --rim: var(--khaki); margin-top: 1.25rem; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.topic-grid > div { background: var(--card); border-radius: 16px; padding: 1.1rem 1.25rem .5rem; border-top: 5px solid var(--green-rim); }
.topic-grid h3 { font-size: 1.1rem; }
.topic-grid p { font-size: 1rem; }

/* ---------- Footer: Scout motto, slogan, and Law ---------- */

.site-footer {
  margin-top: 4rem; color: #efe6cf;
  background: var(--olive-dark) repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 2.5rem; padding: 3rem 0 2rem; align-items: start; }
.creed-label { font-style: italic; color: #cfc3a0; font-size: .98rem; margin: 0 0 .1rem; }
.motto { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; line-height: 1.1; margin: 0 0 1.1rem; }
.motto.yellow { color: var(--yellow); }
.law-list { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.law-list li {
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: #fff;
  background: var(--olive); padding: .35rem .85rem; border-radius: 999px;
  outline: 1.5px dashed rgba(239,228,200,.45); outline-offset: -5px; box-shadow: 0 0 0 2px #6d7a4c;
}
.stamp { margin: 0; width: 210px; }
.stamp img { width: 100%; transform: rotate(-4deg); filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.stamp figcaption { font-style: italic; font-size: .95rem; color: #d9cfb2; margin-top: 1.1rem; }
.footer-small { border-top: 2px dashed rgba(239,228,200,.25); padding: 1.25rem 0 2rem; font-size: .95rem; color: #cfc3a0; }
.footer-small p { margin: 0 0 .35em; max-width: 80ch; }
.footer-small a { color: #f3ead3; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero-grid, .page-intro.has-photo, .eagle-hero, .story-grid, .split { grid-template-columns: 1fr; }
  .route-cards { grid-template-columns: 1fr; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rail-layout { grid-template-columns: 1fr; gap: 0; }
  .rail { grid-column: 1; grid-row: auto; position: static; padding-top: 0; }
  .rail .stage-map { flex-direction: row; flex-wrap: wrap; gap: .6rem 1.25rem; margin-bottom: 1rem; }
  .rail .stage-map li.plain { display: none; }
  .rail-send { display: none; }
  .rail-layout .flow { grid-row: auto; }
  .eagle-sky { max-width: 280px; order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .trail { padding-left: 3.2rem; }
  .trail > li::before { left: -3.2rem; margin-left: .1rem; }
  .trail::before { left: .95rem; }
  .stop { margin-left: 0; max-width: none; }
  .docs li { flex-direction: column; gap: .2rem; }
  .oath { position: relative; right: auto; bottom: auto; width: auto; margin: .9rem 0 0; display: none; transform: none; }
  .scout[aria-pressed="true"] ~ .oath, .scout:focus-visible ~ .oath { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
  .site-header, .site-footer, .stage-map, .scout-stage, .eagle-sky { display: none; }
  body { background: #fff; }
}
