/* ─────────────────────────────────────────────────────────────────────────────
   /paddlingout/scouts and /paddlingout/scouts/rules — Kaayko Scouts (29 Oct 2026,
   renamed from Mapmakers). Paddling Out's reading pages have one voice, the
   methodology page's: a small gold Josefin eyebrow, a Josefin capital title,
   Josefin gold section heads over a hairline, Cormorant for everything read.
   Bebas stays where Paddling Out uses it (the header, card names), never as a
   poster headline. Colours, fonts and cuts are tokens.css's; nothing local.
   The photos are Ambazari's own (1008 px wide), so on a wide screen the photo
   sits beside the words instead of across the page.
   ───────────────────────────────────────────────────────────────────────────── */

.sc-page { background: var(--bg) !important; color: var(--fg); margin: 0; -webkit-font-smoothing: antialiased; }
html.dark-theme { background: var(--bg); }
.sc-page .theme-toggle-icon { display: none !important; }

/* body is display:flex (sticky footer); min-width:0 lets main shrink on phones */
.sc { width: 100%; min-width: 0; box-sizing: border-box; padding: 0 0 6rem; margin: 0; max-width: none; }
.sc *, .sc *::before, .sc *::after, .sc-doc *, .sc-doc *::before, .sc-doc *::after { box-sizing: border-box; }

/* ── Type: the methodology page's, one rule each ─────────────────────────── */
.sc-eyebrow { margin: 0 0 0.3rem; font: 400 0.7rem var(--font-sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.sc-h1 { margin: 0; font: 600 clamp(1.4rem, 4vw, 2rem)/1.2 var(--font-sans); text-transform: uppercase; color: var(--fg); }
.sc-lede { margin: 0.6rem 0 1.2rem; max-width: 34rem; font: 400 1.1rem/1.6 var(--font-serif); color: var(--fg); }
.sc-h2 {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
  font: 600 0.75rem var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.sc-h3 { margin: 1.6rem 0 0.7rem; font: 600 0.7rem var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.sc-p { margin: 0 0 0.8rem; font: 400 1rem/1.7 var(--font-serif); color: var(--fg); }
.sc-p em, .sc-looks em { color: var(--fg); font-style: italic; }   /* gold would read as a link */
.sc-when { color: var(--muted); font-style: italic; }

/* ── Buttons and links: the add flow's ───────────────────────────────────── */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem; text-decoration: none; clip-path: var(--clip-md);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--gold-ink);
  font: 600 0.92rem var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.sc-btn:hover { filter: brightness(1.07); }
.sc-btn:active { transform: translateY(1px); }
.sc-ghost, .sc-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.2rem;
  font: 1.02rem var(--font-serif); color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px;
}
.sc-btn:focus-visible, .sc-ghost:focus-visible, .sc-link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ── 1 · Hero: the photo, then the words; side by side when there is room ── */
.sc-hero { max-width: 1080px; margin: 0 auto; }
.sc-hero-media { position: relative; margin: 0; overflow: hidden; }
.sc-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sc-credit { position: absolute; right: 0.9rem; bottom: 0.7rem; margin: 0; font: italic 0.82rem var(--font-serif); color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.sc-hero-in { padding: 1.4rem 1.25rem 0; }
.sc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.sc-count { min-height: 1.6em; margin: 1rem 0 0; font: 600 0.7rem/1.6 var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.sc-safety {
  max-width: 34rem; margin: 0.8rem 0 0; padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold-bright); background: var(--surface);
  font: 400 1rem/1.6 var(--font-serif); color: var(--fg);
}
.sc-safety strong { color: var(--gold-bright); font-weight: 600; }
@media (min-width: 900px) {
  .sc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 3rem; padding: 2.5rem 1.5rem 0; }
  .sc-hero-media { order: 2; clip-path: var(--clip-lg); }
  .sc-hero-in { padding: 0; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.sc-band { max-width: 720px; margin: 0 auto; padding: 2.6rem 1.25rem 0; scroll-margin-top: 4rem; }

/* The one real example */
.sc-example { margin: 1.2rem 0; }
.sc-example a:first-child { display: block; clip-path: var(--clip-md); overflow: hidden; }
.sc-example img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.sc-example a:first-child:hover img, .sc-example a:first-child:focus-visible img { transform: scale(1.04); }
.sc-example a:first-child:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.sc-example figcaption { margin-top: 0.6rem; font: italic 0.98rem/1.6 var(--font-serif); color: var(--muted); }
.sc-example figcaption b { font-style: normal; font-weight: 600; color: var(--fg); }
.sc-example figcaption a { display: flex; align-items: center; width: max-content; min-height: 44px; font-style: normal; color: var(--gold-bright); }

/* What we look for: the spot page's row anatomy (forecast.css .kbg-row) */
.sc-looks { margin: 0; padding: 0; list-style: none; }
.sc-looks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 0.85rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.sc-looks li:last-child { border-bottom: none; }
.sc-look-i { grid-row: 1 / span 2; margin-top: 2px; color: var(--gold); font-size: 1.05rem; }
.sc-looks b { margin-bottom: 0.2rem; font: 600 0.7rem var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.sc-looks span:not(.sc-look-i) { font: 400 1.02rem/1.5 var(--font-serif); color: rgba(237, 232, 223, 0.88); }

/* ── Dock: one tap to the form, always ──────────────────────────────────── */
.sc-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.7rem max(1rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(8, 8, 8, 0), rgba(8, 8, 8, 0.92) 28%, var(--bg));
  transform: translateY(110%); transition: transform 0.28s cubic-bezier(.2, .7, .2, 1);
}
/* Off screen it is also hidden from the keyboard and screen readers; visibility waits
   for the slide out to finish before it goes. */
.sc-dock[hidden], .sc-dock:not(.is-on) { display: flex; visibility: hidden; transition: transform 0.28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0.28s; }
.sc-dock.is-on { transform: none; visibility: visible; transition: transform 0.28s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.sc-dock-t { font: italic 1.02rem var(--font-serif); color: var(--muted); }
.sc-dock .sc-btn { flex: 0 0 auto; min-height: 48px; }
@media (max-width: 380px) { .sc-dock-t { display: none; } .sc-dock .sc-btn { flex: 1 1 auto; } }
@media (min-width: 900px) { .sc-dock:not(.is-on) { transform: translateY(calc(110% + 1.5rem)); } .sc-dock { left: auto; right: 1.5rem; bottom: 1.5rem; padding: 0.6rem 0.6rem 0.6rem 1.2rem; background: var(--panel-a); border: 1px solid var(--line); clip-path: var(--clip-md); } }

/* ── The rules page: the methodology page's layout ──────────────────────── */
.sc-doc { max-width: 720px; width: 100%; min-width: 0; margin: 0 auto; padding: 0 1.5rem 4rem; }
.sc-doc-head { text-align: center; padding: 1.5rem 0 2rem; }
.sc-meta { margin: 0.4rem 0 0; font: 400 italic clamp(0.95rem, 2vw, 1.1rem)/1.5 var(--font-serif); color: var(--muted); }
.sc-rule { margin-bottom: 2rem; scroll-margin-top: 4rem; }
.sc-rule p, .sc-doc-end { margin: 0 0 0.8rem; font: 400 1rem/1.7 var(--font-serif); color: var(--fg); }   /* not .sc-doc p: it would beat the eyebrow and the meta line */
.sc-doc a { color: var(--gold); }
.sc-doc a:hover { color: var(--gold-bright); }

@media (prefers-reduced-motion: reduce) {
  .sc-example img, .sc-dock, .sc-dock:not(.is-on), .sc-dock.is-on { transition: none; }
}
