/* Season pick (시즌픽 · 지금, 제철) — loaded only by the two season pick templates.

   The article plate takes its colours from the pick itself: five tokens per scheme,
   validated server-side (#RRGGBB, text pairs ≥ 4.5:1) and passed as --sp-l-* / --sp-d-*
   on the plate's style attribute. Everything here reads --paper/--ink/--accent/--tone1/
   --tone2 only, so a pick re-colours the page without new CSS.

   Rules this file keeps (enforced by tests/test_season_pick.py):
   - motion animates transform and opacity only; entries 300–700 ms on one easing, except
     the map pin's drop — the one bounce the brief allows (§13); no loops;
   - `.sp-motion` (set by an inline script only when reduced motion is NOT requested, and
     removed again if season-pick.js never arrives) is the only switch that arms motion —
     without it every element already sits in its final state;
   - no border-left accent boxes, gradient text, backdrop blur, shadows or corners > 6px. */

:root {
  /* JetBrains Mono is not loaded on these pages (two families max: the serif below +
     Pretendard), so numbers fall back to Pretendard with tabular figures. */
  --font-number: var(--font-body);
  --sp-serif: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --sp-ease: cubic-bezier(.2, .7, .2, 1);
}
.num { font-variant-numeric: tabular-nums; }

/* ── Palette scope ─────────────────────────────────────────────────── */
.sp, .spl {
  --paper: var(--sp-l-paper, #F1F2EE);
  --ink: var(--sp-l-ink, #17191A);
  --accent: var(--sp-l-accent, #1D5676);
  --tone1: var(--sp-l-tone1, #BFD3DC);
  --tone2: var(--sp-l-tone2, #C98B4A);
  --rule: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --rule-strong: var(--ink);
  --wash: color-mix(in srgb, var(--ink) 5%, var(--paper));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) {
  .sp, .spl {
    --paper: var(--sp-d-paper, #121416);
    --ink: var(--sp-d-ink, #ECEEEA);
    --accent: var(--sp-d-accent, #86C3E3);
    --tone1: var(--sp-d-tone1, #22404F);
    --tone2: var(--sp-d-tone2, #5C3F22);
  }
}
.sp a, .spl a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sp a:hover, .spl a:hover { text-decoration-thickness: 2px; }
.sp a:focus-visible, .spl a:focus-visible, .sp summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
.sp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter, 20px); }
.sp-measure { max-width: 680px; }
.sp h2, .spl h2 {
  font-family: var(--sp-serif); font-weight: 700; color: var(--ink);
  font-size: clamp(23px, 1.2vw + 17px, 31px); line-height: 1.3; margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.sp h3 { font-size: 18px; line-height: 1.45; margin: 0 0 6px; font-weight: 700; }
.sp p { margin: 0 0 14px; }
.sp ul, .sp ol, .spl ul, .spl ol { margin: 0; padding: 0; list-style: none; }
/* base.css colours headings for the dark site canvas; the plate is paper, so every
   heading here takes the plate's ink explicitly. */
.sp h1, .sp h2, .sp h3, .spl h1, .spl h2, .spl h3 { color: var(--ink); }

/* ── Plate head ────────────────────────────────────────────────────── */
.sp-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  padding: 18px 0 14px; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.sp-bar .sp-series {
  font-family: var(--sp-serif); font-weight: 700; font-size: 19px;
  color: var(--ink); text-decoration: none;
}
.sp-bar .sp-cat, .sp-bar .sp-region { color: var(--ink); }
.sp-bar .sp-cat::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; background: var(--accent); vertical-align: 0; }
.sp-crumbs { font-size: 13.5px; padding: 10px 0 0; }
.sp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.sp-crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--ink); }
.sp-crumbs [aria-current] { color: var(--ink); }

/* Hero — a real photo at full bleed once, or an abstract typographic plate. */
.sp-hero { margin: 22px auto 0; max-width: 1440px; }
/* A fixed height (not a ratio): the H1 and the dates must stay above the fold on a
   laptop, and a known height means the late photo never shifts the layout. */
.sp-hero-frame { position: relative; overflow: hidden; height: clamp(240px, 50vh, 580px); background: var(--wash); }
@media (max-width: 620px) { .sp-hero-frame { height: auto; aspect-ratio: 4 / 3; } }
.sp-hero-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.sp-hero-gray { filter: grayscale(1); opacity: 0; }
.sp-hero-dim { position: absolute; inset: 0; background: #000; opacity: 0; }
.sp-hero-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(60% 55% at 70% 35%, color-mix(in srgb, var(--tone1) 70%, transparent), transparent 70%);
  opacity: .5; mix-blend-mode: screen;
}
.sp-credit {
  max-width: 1120px; margin: 8px auto 0; padding: 0 var(--gutter, 20px);
  font-size: 12.5px; text-align: right; color: var(--ink);
}
.sp-hero--type {
  position: relative; overflow: hidden; height: clamp(180px, 30vh, 340px); background: var(--wash);
}
.sp-orb {
  position: absolute; width: 46%; aspect-ratio: 1; right: 8%; top: -18%;
  background: radial-gradient(circle, var(--tone1) 0 38%, color-mix(in srgb, var(--tone1) 30%, transparent) 39%, transparent 66%);
}
.sp-lines {
  position: absolute; inset: 52% 0 0 0;
  background: repeating-linear-gradient(to bottom, var(--tone2) 0 2px, transparent 2px 14px);
  opacity: .55;
}
.sp-roll {
  position: absolute; left: var(--gutter, 20px); bottom: 18px; height: 1.15em; overflow: hidden;
  font-family: var(--sp-serif); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.15;
  color: var(--paper);
}
.sp-hero--type .sp-roll { color: var(--ink); }
/* Over a photo the month roll gets its own dark backing: --paper is near-black in dark
   mode and would vanish against the picture. */
.sp-hero .sp-hero-frame .sp-roll { color: #fff; background: rgba(0, 0, 0, .55); padding: 0 .25em; border-radius: 3px; }
.sp-roll-track { display: flex; flex-direction: column; transform: translateY(calc(var(--roll, 0) * -1.15em)); }

.sp-titlebox { padding: 34px 0 10px; }
.sp-h1 { font-family: var(--sp-serif); font-weight: 700; margin: 0; color: var(--ink); letter-spacing: -0.02em; }
.sp-h1-main { display: block; font-size: clamp(34px, 3.6vw + 18px, 66px); line-height: 1.12; }
.sp-h1-tail { display: block; margin-top: 12px; font-size: clamp(19px, 1vw + 15px, 27px); line-height: 1.4; font-weight: 700; }
.sp-sub { margin: 18px 0 0; font-size: 19px; line-height: 1.6; max-width: 34em; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 22px 0 0; font-size: 14px; }
.sp-meta div { display: flex; gap: 8px; }
.sp-meta dt { font-weight: 700; }
.sp-meta dd { margin: 0; }
.sp-byline { margin: 8px 0 0; font-size: 14px; }
.sp-past {
  margin: 20px 0 0; padding: 12px 16px; background: var(--ink); color: var(--paper);
  font-size: 15px; border-radius: 3px;
}
.sp-past a { color: var(--paper); }

/* ── Date block ────────────────────────────────────────────────────── */
.sp-date { margin: 38px 0 0; padding: 18px 0 20px; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.sp-date-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin: 0 0 14px; }
.sp-date-range { font-family: var(--sp-serif); font-weight: 700; font-size: clamp(22px, 1.4vw + 16px, 32px); }
.sp-date-state { font-weight: 700; color: var(--accent); align-self: center; }
.sp-bandwrap { position: relative; }
.sp-band { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.sp-band li {
  position: relative; height: 34px; display: flex; align-items: flex-end; justify-content: center;
  font-size: 11.5px; padding-bottom: 3px; background: var(--wash);
}
.sp-band li.is-past { background: repeating-linear-gradient(135deg, var(--wash) 0 4px, color-mix(in srgb, var(--ink) 12%, var(--paper)) 4px 5px); }
.sp-band li.is-today { outline: 2px solid var(--accent); outline-offset: -2px; font-weight: 700; z-index: 1; }
.sp-band-fill {
  position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent);
  transform: scaleX(var(--fill, 1)); transform-origin: left center;
}
.sp-band-legend { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 6px; }
@media (max-width: 620px) {
  .sp-band li span { display: none; }
  .sp-band li { height: 22px; }
  .sp-band li.is-today span { display: inline; }
}
/* The marker is a full-width layer moved by translateX(position) — clip it here, or
   the moved layer widens the page on a phone (measured: 462px scroll at 360px). */
.sp-gauge { position: relative; padding-top: 14px; overflow: hidden; }
.sp-gauge-months { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.sp-gauge-months li { padding: 8px 0 0 6px; font-size: 14px; background: linear-gradient(to right, var(--rule) 0 1px, transparent 1px); }
.sp-gauge-months li[aria-current] { font-weight: 700; color: var(--accent); }
.sp-gauge-mark {
  position: absolute; top: 0; left: 0; width: 100%; height: 16px; pointer-events: none;
  transform: translateX(calc(var(--pos, 0) * 100%));
}
.sp-gauge-mark::before {
  content: ""; position: absolute; left: -7px; top: 0; width: 0; height: 0;
  border-inline: 7px solid transparent; border-top: 12px solid var(--accent);
}
.sp-date-note { margin: 12px 0 0; font-size: 14.5px; }

/* ── Summary blocks — six forms taken from real objects ────────────── */
.sp-sum { margin: 30px 0 0; }
.sp-answer { font-size: 18.5px; line-height: 1.7; font-weight: 600; margin: 0 0 14px; }
.spf-items { display: grid; gap: 6px 18px; margin: 0; }
.spf-items div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; }
.spf-items dt { font-weight: 700; }
.spf-items dd { margin: 0; }
.spf-state { margin: 12px 0 0; font-weight: 700; color: var(--accent); }

/* 입장권 — big dates on a stub, a perforation with notches, the details beside it. */
.spf-ticket { display: grid; grid-template-columns: minmax(150px, 30%) 22px minmax(0, 1fr); border: 1px solid var(--ink); }
.spf-stub { padding: 20px 18px; display: flex; flex-direction: column; gap: 4px; background: var(--ink); color: var(--paper); }
.spf-stub .spf-year { font-size: 14px; }
.spf-stub .spf-dates { font-family: var(--sp-serif); font-weight: 700; font-size: clamp(26px, 2vw + 16px, 38px); line-height: 1.1; }
.spf-stub .spf-season { font-family: var(--sp-serif); font-weight: 700; font-size: 26px; line-height: 1.2; }
.spf-stub .spf-state { color: var(--paper); margin-top: auto; }
.spf-perf {
  position: relative;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 12px) center / 1px 100% no-repeat;
}
.spf-perf::before, .spf-perf::after {
  content: ""; position: absolute; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink);
}
.spf-perf::before { top: -10px; }
.spf-perf::after { bottom: -10px; }
.spf-main { padding: 20px 20px 18px 6px; }
@media (max-width: 620px) {
  .spf-ticket { grid-template-columns: 1fr; }
  .spf-perf { height: 22px; background: repeating-linear-gradient(to right, var(--ink) 0 6px, transparent 6px 12px) center / 100% 1px no-repeat; }
  .spf-perf::before { top: 2px; left: -10px; }
  .spf-perf::after { top: 2px; bottom: auto; left: auto; right: -10px; }
  .spf-main { padding: 6px 18px 18px; }
}

/* 시장 가격표 — item ······ value, tabular numbers. */
.spf-board { padding: 18px 20px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.spf-board-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-family: var(--sp-serif); font-weight: 700; font-size: 21px; }
.spf-board-head .spf-state { margin: 0; font-family: var(--font-body); font-size: 15px; }
.spf-rows li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.spf-k { font-weight: 700; white-space: nowrap; }
.spf-lead { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 45%, var(--paper)); transform: translateY(-4px); }
.spf-v { text-align: right; max-width: 62%; font-variant-numeric: tabular-nums; }

/* 안내 표지판 — dark plate, light letters, direction first. */
.spf-sign { padding: 22px 22px 20px; background: var(--ink); color: var(--paper); border-radius: 4px; }
.spf-sign .sp-answer { color: var(--paper); }
.spf-sign-name { font-family: var(--sp-serif); font-weight: 700; font-size: 26px; margin: 0 0 10px; }
.spf-sign-rows li { display: grid; grid-template-columns: 1.4em 6.5em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--paper) 35%, var(--ink)); }
.spf-sign .spf-state { color: var(--paper); }

/* 체크인 카드 — three cells, then the rest. */
.spf-checkin { padding: 18px 0 0; border-top: 2px solid var(--ink); }
.spf-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; border-bottom: 1px solid var(--rule); }
.spf-cells div { padding: 4px 14px 14px 0; }
.spf-cells div + div { padding-left: 14px; background: linear-gradient(to right, var(--rule) 0 1px, transparent 1px); }
.spf-cells dt { font-size: 13.5px; font-weight: 700; }
.spf-cells dd { margin: 4px 0 0; font-family: var(--sp-serif); font-weight: 700; font-size: 20px; line-height: 1.3; }
@media (max-width: 620px) { .spf-cells { grid-template-columns: 1fr; } .spf-cells div + div { padding-left: 0; background: none; border-top: 1px solid var(--rule); padding-top: 10px; } }

/* 예약 확인증 — a slip with a dashed outline. */
.spf-resv { padding: 18px 20px; outline: 1px dashed var(--ink); outline-offset: -1px; }
.spf-resv-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--ink); font-weight: 700; }

/* 신문 팩트박스 — no fill, 2px rule above, 1px below, two columns. */
.spf-fact { padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.spf-fact .spf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .spf-fact .spf-items { grid-template-columns: 1fr; } }

/* ── Body ──────────────────────────────────────────────────────────── */
.sp-body { display: grid; grid-template-columns: minmax(0, 680px); justify-content: start; gap: 0 56px; padding: 44px 0 0; }
@media (min-width: 1100px) {
  .sp-body { grid-template-columns: 210px minmax(0, 680px); }
  .sp-toc { position: sticky; top: calc(var(--nav-h, 64px) + 24px); align-self: start; }
}
.sp-toc { font-size: 14.5px; margin-bottom: 30px; }
.sp-toc p { font-weight: 700; margin: 0 0 8px; }
.sp-toc ol { counter-reset: toc; display: grid; gap: 6px; }
.sp-toc a { color: var(--ink); text-decoration: none; }
.sp-toc a:hover { text-decoration: underline; }
.sp-sec { padding: 0 0 46px; }
.sp-sec + .sp-sec { padding-top: 30px; border-top: 1px solid var(--rule); }
.sp-sec--lead { padding-bottom: 54px; }
.sp-sec--lead p:first-of-type { font-size: 19px; }
.sp-why li { padding: 0 0 10px; }
.sp-why li::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--accent); vertical-align: 6px; margin-right: 10px; }

table.sp-glance { width: 100%; border-collapse: collapse; font-size: 16px; }
.sp-glance caption { text-align: left; font-size: 13.5px; padding-bottom: 8px; caption-side: top; }
.sp-glance th, .sp-glance td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sp-glance th { width: 8.5em; padding-right: 14px; font-weight: 700; }
.sp-glance tr:first-child th, .sp-glance tr:first-child td { border-top: 2px solid var(--ink); }

.sp-programs { margin-top: 18px; }
.sp-programs li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sp-programs time { font-weight: 700; }

.sp-photos { display: grid; gap: 28px; }
.sp-photos figure { margin: 0; }
.sp-photos .sp-photo-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wash); }
.sp-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-photos figcaption { font-size: 13px; padding-top: 6px; }
/* One photo breaks the measure to the right — only where the body grid leaves room
   (≥1200px: 78px of grid slack + gutter + page margin ≥ 166px), never past the edge. */
@media (min-width: 1200px) { .sp-photos .sp-photo-wide { margin-right: -150px; } }

.sp-loc { display: grid; gap: 0; margin: 0; }
.sp-loc div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sp-loc dt { font-weight: 700; }
.sp-loc dd { margin: 0; }
.sp-pincard { position: relative; height: 92px; margin: 0 0 18px; background: var(--wash); overflow: hidden; }
.sp-pincard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 39px, var(--rule) 39px 40px), repeating-linear-gradient(0deg, transparent 0 39px, var(--rule) 39px 40px); }
.sp-pin { position: absolute; left: 50%; top: 22px; width: 22px; height: 30px; margin-left: -11px; }
.sp-pin::before { content: ""; position: absolute; inset: 0 0 8px 0; background: var(--accent); clip-path: polygon(50% 100%, 0 40%, 0 20%, 20% 0, 80% 0, 100% 20%, 100% 40%); }
.sp-pin::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; background: var(--paper); }

.sp-places li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.sp-places li:first-child { border-top: 2px solid var(--ink); }
.sp-place-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sp-place-head h3 { margin: 0; }
.sp-place-type { font-size: 14px; }
.sp-place-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 18px; margin: 8px 0; font-size: 15px; }
.sp-place-facts div { display: flex; gap: 8px; }
.sp-place-facts dt { font-weight: 700; white-space: nowrap; }
.sp-place-facts dd { margin: 0; }
.sp-place-links { font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }

.sp-route { position: relative; }
.sp-route li { position: relative; padding: 0 0 22px 34px; }
.sp-route-seg { position: absolute; left: 8px; top: 18px; bottom: -4px; width: 2px; background: var(--accent); transform-origin: top center; }
.sp-route li:last-child .sp-route-seg { display: none; }
.sp-route-dot { position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; }
.sp-route h3 { margin: 0 0 2px; }
.sp-route p { margin: 0; }
.sp-route .sp-dist { font-size: 14px; }

.sp-course { position: relative; overflow: hidden; padding: 4px 0; }
.sp-course-sky { position: absolute; inset: 0; pointer-events: none; }
.sp-course-day { background: linear-gradient(to bottom, color-mix(in srgb, var(--tone1) 18%, var(--paper)), var(--paper) 70%); }
.sp-course-night { background: linear-gradient(to bottom, transparent 45%, color-mix(in srgb, var(--tone2) 22%, var(--paper))); }
.sp-steps { position: relative; }
.sp-steps li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.sp-steps time { font-weight: 700; font-size: 18px; }
.sp-steps .sp-step-note { display: block; font-size: 14.5px; }

.sp-check li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sp-check b { font-weight: 700; }
.sp-oneline { font-family: var(--sp-serif); font-weight: 700; font-size: clamp(21px, 1vw + 17px, 27px); line-height: 1.5; margin: 0; }

.sp-faq details { border-bottom: 1px solid var(--rule); }
.sp-faq details:first-child { border-top: 2px solid var(--ink); }
.sp-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; position: relative; list-style: none; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 20px; font-weight: 400; }
.sp-faq details[open] summary::after { content: "−"; }
.sp-faq details p { margin: 0 0 16px; }

.sp-facts li, .sp-sources li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.sp-sources { margin-top: 18px; }
.sp-src-kind { display: inline-block; min-width: 4.5em; font-weight: 700; }
.sp-src-note { font-size: 13.5px; margin-top: 12px; }

.sp-related { padding: 40px 0 70px; border-top: 2px solid var(--ink); margin-top: 10px; }
.sp-related ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.sp-related a { color: var(--ink); text-decoration: none; display: block; }
.sp-related a:hover .sp-rel-title { text-decoration: underline; }
.sp-rel-meta { display: block; font-size: 13.5px; }
.sp-rel-title { display: block; font-family: var(--sp-serif); font-weight: 700; font-size: 19px; line-height: 1.4; margin-top: 4px; }

/* ── List page ─────────────────────────────────────────────────────── */
.spl-mast { padding: clamp(48px, 7vw, 96px) 0 30px; border-bottom: 2px solid var(--ink); }
.spl-mast h1 { font-family: var(--sp-serif); font-weight: 700; margin: 0; font-size: clamp(40px, 5vw + 16px, 84px); line-height: 1.05; letter-spacing: -0.02em; }
.spl-mast h1 span { display: block; font-size: .42em; margin-top: 14px; letter-spacing: 0; }
.spl-lead { max-width: 36em; margin: 20px 0 0; font-size: 18px; }
.spl-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 18px 0 0; font-size: 15px; }
.spl-facts b { font-family: var(--sp-serif); font-size: 26px; margin-right: 6px; }
.spl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 40px 28px; padding: 40px 0 10px; }
.spl a.spl-card { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.spl-card:hover .spl-title { text-decoration: underline; }
.spl-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.spl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spl-thumb--type { display: flex; align-items: flex-end; padding: 14px; }
.spl-thumb--type b { font-family: var(--sp-serif); font-size: 26px; line-height: 1.2; position: relative; }
.spl-thumb--type i { position: absolute; width: 58%; aspect-ratio: 1; right: -8%; top: -14%; border-radius: 50%; background: var(--cat, var(--tone1)); opacity: .55; }
.spl-row { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; }
.spl-state { font-weight: 700; color: var(--accent); }
.spl-past .spl-state { color: var(--ink); }
.spl-past .spl-thumb img { filter: grayscale(.85); }
.spl-title { font-family: var(--sp-serif); font-weight: 700; font-size: 20px; line-height: 1.4; }
.spl a.spl-card.spl-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.spl-feature .spl-thumb { aspect-ratio: 16 / 10; }
.spl-feature .spl-title { font-size: clamp(24px, 1.4vw + 18px, 34px); }
@media (max-width: 760px) { .spl a.spl-card.spl-feature { grid-template-columns: 1fr; } }
.spl-empty, .spl-error { padding: 40px 0; font-size: 17px; }
.spl-pager { display: flex; justify-content: space-between; padding: 20px 0 10px; font-size: 15px; }
.spl-faq { padding: 40px 0 70px; }

/* ── Motion (armed only under .sp-motion) ─────────────────────────── */
@keyframes sp-fade-in { from { opacity: 0; } }
@keyframes sp-from-opaque { from { opacity: 1; } }
@keyframes sp-from-dim { from { opacity: .62; } }
@keyframes sp-grow-x { from { transform: scaleX(0); } }
@keyframes sp-grow-y { from { transform: scaleY(0); } }
@keyframes sp-drop { from { transform: translateY(-34px); opacity: 0; } }
@keyframes sp-roll { from { transform: translateY(0); } }

/* signature — one per page, in the hero */
.sp-motion .sp-hero[data-sig="glow"] .sp-hero-glow,
.sp-motion .sp-hero--type[data-sig="glow"] .sp-orb,
.sp-motion .sp-hero--type[data-sig="brighten"] .sp-orb,
.sp-motion .sp-hero--type[data-sig="color_return"] .sp-orb { animation: sp-fade-in 700ms var(--sp-ease) 120ms both; }
.sp-motion .sp-hero[data-sig="color_return"] .sp-hero-gray { animation: sp-from-opaque 700ms var(--sp-ease) 260ms both; }
.sp-motion .sp-hero[data-sig="brighten"] .sp-hero-dim { animation: sp-from-dim 700ms var(--sp-ease) 120ms both; }
.sp-motion [data-sig="month_roll"] .sp-roll-track { animation: sp-roll 700ms var(--sp-ease) 200ms both; }

/* info — at most two, played once when they scroll into view */
.sp-motion [data-motion="date_band"]:not(.is-in) .sp-band-fill { transform: scaleX(0); }
.sp-motion [data-motion="date_band"].is-in .sp-band-fill { animation: sp-grow-x 700ms var(--sp-ease) both; }
.sp-motion [data-motion="route_line"] li:not(.is-in) .sp-route-seg { transform: scaleY(0); }
.sp-motion [data-motion="route_line"] li:not(.is-in) .sp-route-dot { opacity: .3; }
.sp-motion [data-motion="route_line"] li.is-in .sp-route-seg { animation: sp-grow-y 600ms var(--sp-ease) 120ms both; }
.sp-motion [data-motion="route_line"] li.is-in .sp-route-dot { animation: sp-fade-in 400ms var(--sp-ease) both; }
.sp-motion [data-motion="pin_drop"]:not(.is-in) .sp-pin { opacity: 0; }
.sp-motion [data-motion="pin_drop"].is-in .sp-pin { animation: sp-drop 560ms cubic-bezier(.34, 1.56, .64, 1) both; }
.sp-motion [data-motion="day_night"]:not(.is-in) .sp-course-night { opacity: 0; }
.sp-motion [data-motion="day_night"].is-in .sp-course-night { animation: sp-fade-in 700ms var(--sp-ease) both; }

@media (prefers-reduced-motion: reduce) {
  .sp *, .sp *::before, .sp *::after, .spl *, .spl *::before, .spl *::after { animation: none !important; transition: none !important; }
  .sp-motion [data-motion] .sp-band-fill { transform: scaleX(var(--fill, 1)); }
  .sp-motion [data-motion] .sp-route-seg { transform: none; }
  .sp-motion [data-motion] .sp-route-dot, .sp-motion [data-motion] .sp-pin, .sp-motion [data-motion] .sp-course-night { opacity: 1; }
}
