/* =========================================================================
   Ritual Athletics Club: site stylesheet (brand refresh, Oct 2026)
   Shared by the WordPress theme and the design preview.

   Brand: Inferno #FF1500, Backer Orange #FF4630, Tan #F2D5BE, Smoke #222021.
   Type:  Greats (serif headlines), Collsmith (doodle accents),
          Poladots (clock and numbers), Stack Sans Text (body and UI).
   Layout: colour-blocked sections. Every section picks one of four themes
   (.rtl-on-orange / -tan / -smoke / -white); components read the theme's
   variables, so any section can be moved or recoloured in the editor.
   ========================================================================= */

@font-face { font-family: "Greats"; src: url("../fonts/greats.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Collsmith"; src: url("../fonts/collsmith.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poladots"; src: url("../fonts/poladots.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("../fonts/stacksans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("../fonts/stacksans-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("../fonts/stacksans-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("../fonts/stacksans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --rtl-inferno: #FF1500;
  --rtl-orange: #FF4630;   /* Backer Orange */
  --rtl-tan: #F2D5BE;
  --rtl-smoke: #222021;
  --rtl-white: #FFFFFF;

  --rtl-serif: "Greats", "Bodoni 72", Didot, Georgia, serif;
  --rtl-hand: "Collsmith", "Marker Felt", "Comic Sans MS", cursive;
  --rtl-dot: "Poladots", ui-monospace, monospace;
  --rtl-sans: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;

  --rtl-gutter: max(16px, 4vw);
  --rtl-max: 1440px;
  --rtl-radius: 28px;
}

/* ---------- section themes ---------- */
/* contrast: smoke on orange 4.76, smoke on tan 12+, tan on smoke 12+, orange on smoke 4.76.
   Inferno is never used for text on tan or orange. */
.rtl-on-tan    { --bg: var(--rtl-tan);    --fg: var(--rtl-smoke); --muted: rgba(34,32,33,0.8);  --line: rgba(34,32,33,0.22);  --accent: var(--rtl-smoke);  --btn-bg: var(--rtl-smoke);  --btn-fg: var(--rtl-tan);   --todo: rgba(255,21,0,0.2); }
.rtl-on-orange { --bg: var(--rtl-orange); --fg: var(--rtl-smoke); --muted: var(--rtl-smoke);    --line: rgba(34,32,33,0.35);  --accent: var(--rtl-smoke);  --btn-bg: var(--rtl-smoke);  --btn-fg: var(--rtl-tan);   --todo: rgba(255,255,255,0.55); }
.rtl-on-smoke  { --bg: var(--rtl-smoke);  --fg: var(--rtl-tan);   --muted: rgba(242,213,190,0.82); --line: rgba(242,213,190,0.25); --accent: var(--rtl-orange); --btn-bg: var(--rtl-orange); --btn-fg: var(--rtl-smoke); --todo: rgba(255,70,48,0.3); }
.rtl-on-white  { --bg: var(--rtl-white);  --fg: var(--rtl-smoke); --muted: rgba(34,32,33,0.8);  --line: rgba(34,32,33,0.18);  --accent: var(--rtl-smoke);  --btn-bg: var(--rtl-smoke);  --btn-fg: var(--rtl-tan);   --todo: rgba(255,21,0,0.16); }

/* ---------- base ---------- */
:is(.rtl-site, .editor-styles-wrapper) {
  background: var(--rtl-tan);
  color: var(--rtl-smoke);
  font-family: var(--rtl-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:is(.rtl-site, .editor-styles-wrapper) *, :is(.rtl-site, .editor-styles-wrapper) *::before, :is(.rtl-site, .editor-styles-wrapper) *::after { box-sizing: border-box; }
:is(.rtl-site, .editor-styles-wrapper) a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:is(.rtl-site, .editor-styles-wrapper) :focus-visible { outline: 3px solid var(--rtl-inferno); outline-offset: 3px; }
:is(.rtl-site, .editor-styles-wrapper) .rtl-on-smoke :focus-visible { outline-color: var(--rtl-tan); }
:is(.rtl-site, .editor-styles-wrapper) h1, :is(.rtl-site, .editor-styles-wrapper) h2, :is(.rtl-site, .editor-styles-wrapper) h3 { margin: 0; font-weight: 400; text-wrap: balance; }
:is(.rtl-site, .editor-styles-wrapper) p { margin: 0; }
:is(.rtl-site, .editor-styles-wrapper) img { max-width: 100%; height: auto; display: block; }

.rtl-wrap {
  width: 100%;
  max-width: var(--rtl-max);
  margin-inline: auto;
  padding-left: max(var(--rtl-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--rtl-gutter), env(safe-area-inset-right, 0px));
}
.rtl-section { background: var(--bg, var(--rtl-tan)); color: var(--fg, var(--rtl-smoke)); padding-block: clamp(64px, 9vw, 128px); }

/* labels, headings, accents */
.rtl-kicker { font-family: var(--rtl-sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); }
.rtl-dot { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--rtl-inferno); margin-right: 0.6em; vertical-align: 0.04em; }
.rtl-on-orange .rtl-dot { background: var(--rtl-smoke); }
.rtl-h2 { font-family: var(--rtl-serif); font-size: clamp(2.5rem, 6.4vw, 5.75rem); line-height: 0.95; letter-spacing: -0.01em; color: var(--fg); }
.rtl-lede { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.4; max-width: 32ch; color: var(--fg); font-weight: 500; }
.rtl-body { max-width: 60ch; color: var(--muted); }
.rtl-body p + p { margin-top: 1em; }
.rtl-hand { font-family: var(--rtl-hand); font-size: 1.12em; letter-spacing: 0.01em; line-height: 0.8; }
.rtl-time { font-family: var(--rtl-dot); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* buttons */
:is(.rtl-site, .editor-styles-wrapper) .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
:is(.rtl-site, .editor-styles-wrapper) .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px;
  font-family: var(--rtl-sans); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--btn-bg, var(--rtl-smoke)); color: var(--btn-fg, var(--rtl-tan)); border: 2px solid var(--btn-bg, var(--rtl-smoke));
  border-radius: 999px; text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
:is(.rtl-site, .editor-styles-wrapper) .wp-block-button__link:hover { background: transparent; color: var(--fg, var(--rtl-smoke)); }
:is(.rtl-site, .editor-styles-wrapper) .is-style-outline .wp-block-button__link { background: transparent; color: var(--fg, var(--rtl-smoke)); border-color: var(--fg, var(--rtl-smoke)); }
:is(.rtl-site, .editor-styles-wrapper) .is-style-outline .wp-block-button__link:hover { background: var(--fg, var(--rtl-smoke)); color: var(--bg, var(--rtl-tan)); }

/* ---------- header ---------- */
.rtl-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--rtl-tan); border-bottom: 2px solid var(--rtl-smoke); }
.rtl-header .rtl-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.rtl-logo-p { margin: 0; }
.rtl-logo-p a { display: inline-flex; align-items: center; text-decoration: none; }
.rtl-logo-p img { width: auto !important; height: 26px !important; }
.rtl-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
.rtl-nav a {
  font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--rtl-smoke);
  display: inline-flex; align-items: center; min-height: 44px; border-bottom: 3px solid transparent;
}
.rtl-nav a:hover { border-bottom-color: var(--rtl-smoke); }
.rtl-nav a[aria-current="page"] { border-bottom-color: var(--rtl-inferno); }

/* visually hidden but available to screen readers and search */
.rtl-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- info banner (template part "Info banner"; clear its text to hide it) ---------- */
.rtl-notice { background: var(--rtl-smoke); color: var(--rtl-tan); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em; }
.rtl-notice .rtl-wrap { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; padding-block: 8px; }
.rtl-notice a { color: var(--rtl-orange); text-decoration: underline; text-underline-offset: 0.2em; }
.rtl-notice a:hover { color: var(--rtl-tan); }
.rtl-notice:not(:has(p:not(:empty))) { display: none; }

/* in WordPress the header sits inside a template-part wrapper, so the wrapper is what sticks */
.wp-block-template-part:has(> .rtl-header) { position: sticky; top: 0; z-index: 20; }

/* ---------- hero ---------- */
.rtl-hero { background: var(--bg); color: var(--fg); padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 80px); min-height: min(86svh, 900px); display: flex; align-items: center; }
.rtl-hero > .rtl-wrap { display: grid; gap: clamp(28px, 4.5vw, 64px); }
.rtl-hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rtl-hero-stamp { text-align: right; }
.rtl-countdown { display: grid; justify-items: end; gap: 8px; }
.rtl-cd-label, .rtl-cd-sub { font-family: var(--rtl-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; }
.rtl-cd-time { font-family: var(--rtl-dot); font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtl-cd-time.is-launch { display: flex; gap: clamp(10px, 1.8vw, 22px); justify-content: flex-end; font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.rtl-cd-cell { display: grid; justify-items: end; gap: 6px; }
.rtl-cd-u { font-family: var(--rtl-sans); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.rtl-lockup.wp-block-image { margin: 0; }
.rtl-lockup img { width: 100%; height: auto; }
.rtl-hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }

/* ---------- section heads ---------- */
.rtl-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.rtl-head .rtl-kicker { grid-column: 1 / -1; }
.rtl-head-side { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 760px) { .rtl-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- this week: run tiles ---------- */
.rtl-runs.wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0; }
.rtl-runs .wp-block-column { min-width: 0; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--rtl-radius); display: grid; gap: 10px; align-content: start; container-type: inline-size; }
.rtl-runs .wp-block-column:nth-child(1) { background: var(--rtl-smoke); color: var(--rtl-tan); --todo: rgba(255,70,48,0.3); }
.rtl-runs .wp-block-column:nth-child(2) { background: var(--rtl-orange); color: var(--rtl-smoke); --todo: rgba(255,255,255,0.55); }
.rtl-runs .wp-block-column:nth-child(3) { background: var(--rtl-white); color: var(--rtl-smoke); --todo: rgba(255,21,0,0.16); }
.rtl-run-day { font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; }
.rtl-run-time { font-family: var(--rtl-dot); font-size: min(7.5rem, 32cqi); white-space: nowrap; line-height: 0.9; letter-spacing: 0.02em; padding-block: 14px 10px; }
.rtl-runs .wp-block-column:nth-child(1) .rtl-run-time { color: var(--rtl-orange); }
.rtl-run-name { font-family: var(--rtl-serif); font-size: clamp(1.625rem, 2.4vw, 2.25rem); line-height: 1; }
.rtl-run-meta { font-size: 0.9375rem; font-weight: 500; }
@media (max-width: 860px) { .rtl-runs.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }

/* ---------- photo bands, stacks and gallery ---------- */
.rtl-band { position: relative; background: var(--rtl-smoke); overflow: hidden; }
.rtl-band .wp-block-image { margin: 0; }
.rtl-band img { width: 100%; height: clamp(300px, 46vw, 680px); object-fit: cover; object-position: 50% 78%; }
.rtl-band-cap { position: absolute; left: var(--rtl-gutter); bottom: clamp(14px, 2.4vw, 30px); margin: 0; font-family: var(--rtl-dot); font-size: clamp(1.75rem, 3.2vw, 2.75rem); letter-spacing: 0.04em; color: var(--rtl-white); text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.rtl-photo.wp-block-image { margin: 0; }
.rtl-photo img { width: 100%; object-fit: cover; }
.rtl-trip.wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0; }
.rtl-trip .wp-block-column { min-width: 0; }
.rtl-trip .rtl-photo img { aspect-ratio: 4 / 5; border-radius: var(--rtl-radius); }
@media (max-width: 760px) { .rtl-trip.wp-block-columns { grid-template-columns: minmax(0, 1fr); } .rtl-trip .rtl-photo img { aspect-ratio: 4 / 3; } }

/* ---------- club statement ---------- */
.rtl-split.wp-block-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin: 0; }
.rtl-split .wp-block-column { min-width: 0; display: grid; gap: 24px; align-content: center; }
.rtl-stack { position: relative; max-width: 520px; justify-self: center; width: 100%; padding-bottom: 36px; }
.rtl-stack .rtl-photo img { aspect-ratio: 4 / 5; border-radius: var(--rtl-radius); transform: rotate(2deg); }
.rtl-stack .rtl-sticker.wp-block-image { position: absolute; left: -6%; bottom: 0; width: 82%; margin: 0; transform: rotate(-5deg); filter: drop-shadow(0 4px 14px rgba(0,0,0,0.45)); }
.rtl-split .rtl-sticker img { width: 100%; }
@media (max-width: 860px) { .rtl-split.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }

/* ---------- how a run goes ---------- */
.rtl-steps.wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; }
.rtl-steps .wp-block-column { min-width: 0; display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 4px solid var(--fg); }
.rtl-steps .rtl-time { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; }
.rtl-steps h3 { font-family: var(--rtl-serif); font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1; }
.rtl-steps p { max-width: 36ch; }
@media (max-width: 760px) { .rtl-steps.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }

/* ---------- join band ---------- */
.rtl-join .rtl-wrap { display: grid; gap: clamp(28px, 4vw, 48px); }
.rtl-join .rtl-team.wp-block-image { margin: 0; }
.rtl-join .rtl-team img { width: 100%; max-height: 300px; object-fit: contain; object-position: left center; }
.rtl-join-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.rtl-join-line { font-family: var(--rtl-serif); font-size: clamp(2.5rem, 6.4vw, 5.75rem); line-height: 0.95; letter-spacing: -0.01em; }
.rtl-join-side { display: grid; gap: 16px; justify-items: start; }

/* ---------- page heads (Runs, About) ---------- */
.rtl-pagehead { background: var(--bg); color: var(--fg); padding-block: clamp(56px, 8vw, 112px) clamp(48px, 7vw, 88px); }
.rtl-pagehead .rtl-wrap { display: grid; gap: 22px; }
.rtl-pagehead h1 { font-family: var(--rtl-serif); font-size: clamp(3.75rem, 13vw, 11.5rem); line-height: 0.88; letter-spacing: -0.02em; }

/* ---------- results board (schedule table) ---------- */
.rtl-board.wp-block-table { margin: 0; overflow-x: auto; }
.rtl-board table { width: 100%; border-collapse: collapse; min-width: 720px; font-variant-numeric: tabular-nums; }
.rtl-board th { text-align: left; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 0 16px 14px 0; border-bottom: 3px solid var(--fg); }
.rtl-board td { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.rtl-board td:nth-child(1) { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.875rem; }
.rtl-board td:nth-child(2) { font-family: var(--rtl-dot); font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1; white-space: nowrap; }
.rtl-board td:nth-child(3) { font-family: var(--rtl-serif); font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.05; }
.rtl-board td:nth-child(n+4) { color: var(--muted); }
.rtl-board figcaption { color: var(--muted); font-size: 0.875rem; margin-top: 16px; text-align: left; }

/* pace groups */
.rtl-paces.wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0; }
.rtl-paces .wp-block-column { min-width: 0; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--rtl-radius); display: grid; gap: 10px; align-content: start; color: var(--rtl-smoke); }
.rtl-paces .wp-block-column:nth-child(1) { background: var(--rtl-orange); --todo: rgba(255,255,255,0.55); }
.rtl-paces .wp-block-column:nth-child(2) { background: var(--rtl-tan); }
.rtl-paces .wp-block-column:nth-child(3) { background: var(--rtl-white); }
.rtl-paces h3 { font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--rtl-sans); }
.rtl-paces .rtl-pace { font-family: var(--rtl-dot); font-size: clamp(2.25rem, 3.8vw, 3.25rem); line-height: 1; letter-spacing: 0.02em; padding-block: 8px; }
.rtl-unit { font-family: var(--rtl-sans); font-size: 0.42em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: pre-wrap; }
.rtl-paces p:last-child { font-size: 0.9375rem; font-weight: 500; }
@media (max-width: 760px) { .rtl-paces.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }

/* two-column text blocks */
.rtl-two.wp-block-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin: 0; }
.rtl-two .wp-block-column { min-width: 0; display: grid; gap: 22px; align-content: start; }
@media (max-width: 760px) { .rtl-two.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }
:is(.rtl-site, .editor-styles-wrapper) .rtl-list { margin: 0; padding: 0; list-style: none; display: grid; }
:is(.rtl-site, .editor-styles-wrapper) .rtl-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }

/* code of conduct: numbered rules people refer to by number */
:is(.rtl-site, .editor-styles-wrapper) ol.rtl-rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
:is(.rtl-site, .editor-styles-wrapper) ol.rtl-rules li { counter-increment: rule; display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
:is(.rtl-site, .editor-styles-wrapper) ol.rtl-rules li::before { content: counter(rule, decimal-leading-zero); font-family: var(--rtl-dot); font-size: 2.25rem; line-height: 1; }
:is(.rtl-site, .editor-styles-wrapper) ol.rtl-rules li strong { display: block; font-family: var(--rtl-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.05; margin-bottom: 6px; }
@media (max-width: 760px) { :is(.rtl-site, .editor-styles-wrapper) ol.rtl-rules { grid-template-columns: minmax(0, 1fr); } }

/* values */
.rtl-values.wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; }
.rtl-values .wp-block-column { min-width: 0; padding-top: 24px; border-top: 4px solid var(--fg); display: grid; gap: 14px; align-content: start; }
.rtl-values h3 { font-family: var(--rtl-serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.95; }
.rtl-values p { color: var(--muted); }
@media (max-width: 760px) { .rtl-values.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.rtl-footer { background: var(--rtl-smoke); color: var(--rtl-tan); padding-block: clamp(48px, 7vw, 96px) 28px; --fg: var(--rtl-tan); --muted: rgba(242,213,190,0.82); --line: rgba(242,213,190,0.25); }
.rtl-footer .rtl-wrap { display: grid; gap: clamp(32px, 5vw, 64px); }
.rtl-footer .rtl-footer-mark.wp-block-image { margin: 0; }
.rtl-footer-mark img { width: 100%; max-width: 640px; }
.rtl-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rtl-footer-cols p { color: var(--muted); font-size: 0.9375rem; }
.rtl-footer-cols .rtl-kicker { margin-bottom: 10px; color: var(--rtl-tan); }
.rtl-footer-cols a { text-decoration: none; }
.rtl-footer-cols a:hover { color: var(--rtl-orange); }
.rtl-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.8125rem; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 760px) { .rtl-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- placeholders still to fill ---------- */
:is(.rtl-site, .editor-styles-wrapper) mark.rtl-todo { background: var(--todo, rgba(255,21,0,0.2)); color: inherit; padding: 0 0.25em; border-radius: 4px; }

@media (max-width: 560px) {
  .rtl-hero { min-height: 0; }
  .rtl-hero-top .rtl-forecast .fc-label, .rtl-hero-top .rtl-forecast .fc-sub { font-size: 0.6875rem; }
  .rtl-logo-p img { height: 22px !important; }
  .rtl-nav a { font-size: 0.75rem; letter-spacing: 0.1em; }
}


/* =========================================================================
   WordPress block mappings
   ========================================================================= */
/* navigation block uses the same look as .rtl-nav */
.rtl-header .wp-block-navigation { font-family: var(--rtl-sans); }
.rtl-header .wp-block-navigation__container { gap: clamp(14px, 3vw, 32px); }
.rtl-header .wp-block-navigation-item__content {
  font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; color: var(--rtl-smoke); border-bottom: 3px solid transparent;
}
.rtl-header .wp-block-navigation-item__content:hover { border-bottom-color: var(--rtl-smoke); }
.rtl-header .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--rtl-inferno); }
.rtl-header .wp-block-group { margin: 0; }

/* the default block gap is off; sections space themselves */
:is(.rtl-site, .editor-styles-wrapper) .wp-block-table { margin: 0; }
:is(.rtl-site, .editor-styles-wrapper) .wp-block-heading { margin: 0; }
:is(.rtl-site, .editor-styles-wrapper) .wp-block-image { margin: 0; }

/* generic pages and posts (page.html, index.html) */
.rtl-prose { max-width: 68ch; display: grid; gap: 1.1em; color: var(--muted); }
.rtl-prose h2, .rtl-prose h3 { font-family: var(--rtl-serif); color: var(--fg); line-height: 0.95; margin-top: 0.8em; }
.rtl-prose h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.rtl-prose h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* table block: remove WordPress's default cell borders */
.rtl-board.wp-block-table thead, .rtl-board.wp-block-table tfoot { border: 0; }
.rtl-board.wp-block-table td, .rtl-board.wp-block-table th { border: 0; border-bottom: 1px solid var(--line); }
.rtl-board.wp-block-table th { border-bottom: 3px solid var(--fg); }

/* ---------- scroll bands (immersive moment) ----------
   Two big lines drift in opposite directions as the section scrolls past, and an
   Backer Orange panel rises from the bottom like a sunrise (a hard edge, so there
   is never a muddy in-between colour). JS sets --bp (0 to 1), --wipe (0 to 1) and .is-lit.
   Without JS, or with reduced motion, it is a static, calm pair of lines on Smoke. */
.rtl-bands { --bp: 0.5; --wipe: 0; position: relative; isolation: isolate; background: var(--rtl-smoke); color: var(--rtl-tan); overflow: hidden; padding-block: clamp(56px, 10vw, 140px); transition: color .25s ease; }
.rtl-bands::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rtl-orange); transform-origin: bottom; transform: scaleY(var(--wipe)); }
.rtl-bands.is-lit { color: var(--rtl-smoke); }
.rtl-bands .rtl-band-line { margin: 0; white-space: nowrap; width: max-content; line-height: 0.95; text-transform: uppercase; will-change: transform; color: inherit; }
.rtl-bands .rtl-band-line span { display: inline-block; }
/* sized so a whole phrase fits the screen; the repeats only show at the edges */
.rtl-bands .rtl-band-a { font-family: var(--rtl-serif); font-size: clamp(1.9rem, 8.6vw, 9.5rem); margin-inline: auto; transform: translate3d(calc((0.5 - var(--bp)) * 10vw), 0, 0); }
.rtl-bands .rtl-band-b { font-family: var(--rtl-sans); font-weight: 800; font-size: clamp(1.6rem, 7vw, 7.6rem); margin-inline: auto; margin-top: 0.14em; transform: translate3d(calc((var(--bp) - 0.5) * 10vw), 0, 0); }
.rtl-bands .rtl-band-b .rtl-hand { font-size: 1.1em; text-transform: none; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .rtl-bands, .rtl-bands .rtl-band-line { transition: none; transform: none !important; }
  .rtl-bands::before { display: none; }
}

/* ---------- next-session tab (added by rtl.js) ---------- */
.rtl-next-tab {
  position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 15;
  display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 11px; min-width: 150px;
  background: var(--rtl-smoke); color: var(--rtl-tan); border: 2px solid var(--rtl-tan); border-radius: 16px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(34,32,33,0.35); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.rtl-next-tab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rtl-next-tab, .rtl-next-tab:visited, .rtl-next-tab:focus { color: var(--rtl-tan) !important; text-decoration: none !important; }
.rtl-next-tab:hover { background: var(--rtl-orange); color: var(--rtl-smoke) !important; border-color: var(--rtl-smoke); }
.rtl-next-tab span, .rtl-next-tab .t-l, .rtl-next-tab .t-v { color: inherit !important; }
.rtl-next-tab .t-l { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; }
.rtl-next-tab .t-v { font-family: var(--rtl-dot); font-size: 1.5rem; line-height: 1; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rtl-next-tab { transition: none; } }
@media (max-width: 760px) { .rtl-next-tab { min-width: 0; padding: 7px 12px 8px; border-radius: 12px; } .rtl-next-tab .t-v { font-size: 1.15rem; } }

/* ---------- day-aware lead line (voice stays fixed; only what leads changes) ---------- */

/* ---------- the run: chapter + km pill and route line (home page, added by rtl.js) ---------- */
.rtl-chapter {
  position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 15;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 10px 14px 11px; min-width: 96px;
  background: var(--rtl-smoke); color: var(--rtl-tan); border: 2px solid var(--rtl-tan); border-radius: 16px; pointer-events: none;
  box-shadow: 0 6px 20px rgba(34,32,33,0.35); opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
.rtl-chapter.is-on { opacity: 1; transform: none; }
.rtl-chapter .c-l { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; color: var(--rtl-tan); }
.rtl-chapter .c-v { font-family: var(--rtl-dot); font-size: 1.5rem; line-height: 1; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--rtl-tan); }
.rtl-route { position: fixed; left: 4px; top: 76px; bottom: 12px; width: 3px; z-index: 14; pointer-events: none; background: rgba(34,32,33,0.15); border-radius: 2px; opacity: 0; transition: opacity .3s ease; }
.rtl-route.is-on { opacity: 1; }
.rtl-route i { position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--rtl-inferno); border-radius: 2px; transform-origin: top; transform: scaleY(var(--rp, 0)); }
.rtl-route b { position: absolute; left: -3px; top: calc(var(--rp, 0) * 100%); width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--rtl-inferno); box-shadow: 0 0 0 2px var(--rtl-tan); }
@media (max-width: 760px) {
  .rtl-chapter { min-width: 0; padding: 7px 12px 8px; border-radius: 12px; }
  .rtl-chapter .c-v { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .rtl-chapter, .rtl-route { transition: none; } }

/* ---------- smooth page-to-page changes (supporting browsers only) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* =====================================================================
   v2.8: real dawn hero, pinned run scene, kinetic type, smooth scroll,
   route base, playlist, orange page wipe
   ===================================================================== */

/* ---------- real dawn hero: rtl.js sets data-sky from the real Toronto sunrise/sunset ---------- */
.rtl-hero { position: relative; isolation: isolate; transition: background-color .6s ease; }
.rtl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.rtl-hero[data-sky="night"] { --bg: #0D1520; --fg: var(--rtl-tan); --btn-bg: var(--rtl-orange); --btn-fg: var(--rtl-smoke); }
.rtl-hero[data-sky="night"]::before { opacity: 1; background: radial-gradient(120% 60% at 50% 115%, rgba(255,70,48,.22), transparent 60%), linear-gradient(#0B1220, #15233A); }
.rtl-hero[data-sky="dawn"] { --bg: #16263D; --fg: var(--rtl-tan); --btn-bg: var(--rtl-orange); --btn-fg: var(--rtl-smoke); }
.rtl-hero[data-sky="dawn"]::before { opacity: 1; background: radial-gradient(70% 45% at 50% 108%, rgba(255,120,60,.85), rgba(255,70,48,.35) 45%, transparent 75%), linear-gradient(#0F1C2E 0%, #23395A 45%, #5A6C88 72%, #C98A6A 90%, #FF4630 100%); }
.rtl-hero[data-sky="dusk"] { --bg: #2A1A22; --fg: var(--rtl-tan); --btn-bg: var(--rtl-orange); --btn-fg: var(--rtl-smoke); }
.rtl-hero[data-sky="dusk"]::before { opacity: 1; background: radial-gradient(80% 50% at 50% 110%, rgba(255,70,48,.55), transparent 70%), linear-gradient(#1A1F33 0%, #3B2A3A 55%, #A2493A 90%, #FF4630 100%); }
.rtl-hero[data-sky="day"]::before { opacity: 1; background: radial-gradient(90% 70% at 85% -10%, rgba(255,214,170,.45), transparent 60%); }
.rtl-hero[data-sky="night"] .rtl-dot, .rtl-hero[data-sky="dawn"] .rtl-dot, .rtl-hero[data-sky="dusk"] .rtl-dot { background: var(--rtl-orange); }
.rtl-hero-top .rtl-hero-stamp { margin-left: auto; }
.rtl-forecast { margin: 0; display: grid; justify-items: start; gap: 6px; color: var(--fg); }
.rtl-forecast:empty { display: none; }
.rtl-forecast .fc-label, .rtl-forecast .fc-sub { font-family: var(--rtl-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; }
.rtl-forecast .fc-temp { font-family: var(--rtl-dot); font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- pinned run scene: four slices of the city, wide to the track ---------- */
.rtl-scene { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--rtl-smoke); color: var(--rtl-tan); }
.rtl-scene-stage { position: absolute; inset: 0; }
.rtl-slice { position: absolute; inset: 0; margin: 0; overflow: hidden; will-change: transform, opacity; }
.rtl-slice picture, .rtl-slice img { display: block; width: 100%; height: 100%; max-width: none; }
.rtl-slice img { object-fit: cover; object-position: 50% 50%; }
.rtl-scene-grade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(11,19,34,.55) 0%, rgba(11,19,34,0) 38%, rgba(11,19,34,0) 62%, rgba(34,32,33,.7) 88%, var(--rtl-smoke) 100%); }
.rtl-scene-lines { position: absolute; left: var(--rtl-gutter); right: var(--rtl-gutter); top: clamp(80px, 12vh, 140px); display: grid; gap: 4px; justify-items: center; text-align: center; }
.rtl-scene-time { margin: 0 0 10px; font-family: var(--rtl-dot); font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: 0.05em; color: var(--rtl-tan); }
.rtl-scene-line { margin: 0; font-family: var(--rtl-serif); font-size: clamp(2.6rem, 7.6vw, 7.5rem); line-height: 0.95; color: var(--rtl-tan); text-shadow: 0 2px 30px rgba(11,19,34,.5); }
.rtl-scene-places { position: absolute; left: var(--rtl-gutter); bottom: clamp(84px, 12vh, 120px); margin: 0; height: 1.2em; font-family: var(--rtl-dot); font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: .05em; text-transform: uppercase; color: var(--rtl-tan); }
.rtl-scene-place { position: absolute; left: 0; bottom: 0; white-space: nowrap; opacity: 0; }
.rtl-scene-place.p4 { opacity: 1; }
@media (max-width: 760px) { .rtl-scene-lines { top: 96px; } }

/* ---------- route base ---------- */
.rtl-routemap { margin: clamp(28px, 4vw, 48px) 0 0; }
.rtl-routemap-svg { position: relative; border: 2px solid rgba(242,213,190,.18); border-radius: var(--rtl-radius); overflow: hidden;
  background-color: #1B191A; background-image: radial-gradient(rgba(242,213,190,.12) 1.2px, transparent 1.4px); background-size: 22px 22px; }
.rtl-routemap svg { display: block; width: 100%; height: clamp(260px, 46vw, 540px); }
.rtl-routemap .route-base { fill: none; stroke: rgba(242,213,190,.18); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.rtl-routemap .route-draw { fill: none; stroke: var(--rtl-inferno); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.rtl-routemap .route-start { fill: var(--rtl-tan); }
.rtl-routemap .route-runner { fill: var(--rtl-inferno); stroke: var(--rtl-tan); stroke-width: 4; }
.rtl-route-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; color: var(--rtl-tan); }
.rtl-route-km { font-family: var(--rtl-dot); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .03em; }
.rtl-route-note { font-size: .875rem; color: rgba(242,213,190,.75); align-self: end; }

/* ---------- playlist ---------- */
.rtl-playlist { border-radius: var(--rtl-radius); overflow: hidden; background: var(--rtl-smoke); box-shadow: 0 12px 40px rgba(34,32,33,.25); }
.rtl-playlist iframe { display: block; border: 0; width: 100%; }
.rtl-playlist-split { align-items: center; }

/* ---------- kinetic headlines: SplitText masks each word while it rises ----------
   The mask gets room above and below so tall serif and Collsmith letters are never cut. */
.rtl-kin-word-mask { padding: 0.22em 0.06em 0.16em; margin: -0.22em -0.06em -0.16em; vertical-align: top; }

/* ---------- orange page wipe (replaces the plain fade) ---------- */
::view-transition-group(root) { background: var(--rtl-orange); animation-duration: .8s; }
::view-transition-old(root) { animation: rtl-wipe-out .42s cubic-bezier(.7,0,.3,1) both; }
::view-transition-new(root) { animation: rtl-wipe-in .5s cubic-bezier(.7,0,.3,1) .3s both; }
@keyframes rtl-wipe-out { to { clip-path: inset(0 0 100% 0); } }
@keyframes rtl-wipe-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- schedule board on phones: each row becomes a stacked card, no sideways scroll ---------- */
@media (max-width: 760px) {
  .rtl-board.wp-block-table { overflow: visible; }
  .rtl-board table { min-width: 0; }
  .rtl-board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rtl-board table, .rtl-board tbody, .rtl-board tr, .rtl-board td { display: block; }
  .rtl-board tr { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .rtl-board.wp-block-table td { border: 0; padding: 0; }
  .rtl-board td:nth-child(1) { grid-column: 1 / -1; margin-bottom: 6px; font-size: 0.75rem; }
  .rtl-board td:nth-child(2) { grid-row: 2 / span 3; font-size: 2.4rem; }
  .rtl-board td:nth-child(3) { grid-column: 2; }
  .rtl-board td:nth-child(n+4) { grid-column: 2; font-size: 0.9375rem; margin-top: 4px; }
}

/* ---------- floating cards on phones: tuck away while scrolling down, return on scroll up ---------- */
@media (max-width: 760px) {
  .rtl-next-tab.is-tucked, .rtl-chapter.is-tucked { opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none; }
}
