/* The Pocket Run: October 2026 visual refresh (homepage + shared tokens).
   Loaded after style.css. Navy, cream and white surfaces; red for key actions. */

:root {
  --rf-navy: #002147;
  --rf-navy-deep: #001530;
  --rf-red: #CC0000;
  --rf-red-hover: #A80000;
  --rf-cream: #F8F7F4;
  --rf-white: #FFFFFF;
  --rf-ink: #14182B;
  --rf-body: #3D4356;
  --rf-line: rgba(0, 33, 71, 0.12);
  --font-display: 'Cabinet Grotesk', 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --rf-wrap: 1180px;
  --rf-gutter: clamp(18px, 4vw, 40px);
}

/* Bold athletic headings everywhere on the refreshed pages */
.rf-page h1, .rf-page h2, .rf-page h3,
.rf-page .section-heading, .rf-page .f40-heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-style: normal;
}
.rf-page .section-overline, .rf-page .f40-overline, .rf-page .press-label {
  letter-spacing: 0.08em;
}

/* Compact header on the homepage */
.rf-page .nav-inner { height: 64px; }
.rf-page .logo-img { height: 52px; }
@media (max-width: 768px) {
  .rf-page .nav-inner { height: 58px; }
  .rf-page .logo-img { height: 44px; }
}

.rf-wrap { max-width: var(--rf-wrap); margin: 0 auto; padding: 0 var(--rf-gutter); }

.rf-kicker {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-red);
}
.rf-kicker--light { color: #FF9C9C; }

.rf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 4px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.rf-btn--red { background: var(--rf-red); color: #fff; }
.rf-btn--red:hover { background: var(--rf-red-hover); color: #fff; }
.rf-btn--outline { background: transparent; color: var(--rf-navy); border-color: var(--rf-navy); }
.rf-btn--outline:hover { background: var(--rf-navy); color: #fff; }
.rf-btn:focus-visible, .rf-textlink:focus-visible, .rf-prod:focus-visible, .rf-video:focus-visible {
  outline: 3px solid var(--rf-red); outline-offset: 3px;
}
.rf-textlink {
  font-family: var(--font-body); font-weight: 700; color: var(--rf-navy);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: var(--rf-red);
}
.rf-textlink:hover { color: var(--rf-red); }

/* ─── HERO ───────────────────────────────────────────── */
.rf-hero {
  position: relative;
  margin-top: 64px;
  background: var(--rf-navy-deep);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: min(620px, calc(100svh - 64px));
}
.rf-hero-media { position: relative; order: 2; overflow: hidden; }
.rf-hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 45%;
}
.rf-hero-copy {
  order: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(24px, 5vw, 72px);
  max-width: 620px; margin-left: auto;
}
.rf-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.4rem);
  line-height: 0.98;
  color: #fff;
}
.rf-hero-text {
  margin: 0 0 30px;
  max-width: 30rem;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.rf-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.rf-hero-links { display: inline-flex; gap: 22px; }
.rf-hero-links a {
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; color: #fff;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.rf-hero-links a:hover { text-decoration-color: #fff; }

@media (max-width: 860px) {
  .rf-hero { margin-top: 58px; grid-template-columns: 1fr; min-height: 0; }
  .rf-hero-media { order: 1; height: clamp(220px, 34svh, 340px); }
  .rf-hero-media img { object-position: 32% 42%; }
  .rf-hero-copy { order: 2; padding: 26px 22px 30px; margin: 0 auto; text-align: center; align-items: center; }
  .rf-hero h1 { font-size: clamp(2.1rem, 1.2rem + 4.6vw, 2.9rem); margin-bottom: 12px; }
  .rf-hero-text { margin: 0 auto 22px; font-size: 1rem; }
  .rf-hero-actions { flex-direction: column; gap: 14px; width: 100%; }
  .rf-hero-actions .rf-btn { width: 100%; max-width: 360px; }
}

/* ─── PRODUCTS ───────────────────────────────────────── */
.rf-products { background: var(--rf-cream); padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.rf-sec-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 22px;
}
.rf-sec-head h2 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.02; color: var(--rf-navy); }
.rf-prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rf-prod {
  display: flex; flex-direction: column;
  background: #fff; color: var(--rf-ink); text-decoration: none;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 0 var(--rf-line), 0 0 0 1px var(--rf-line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rf-prod:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 33, 71, 0.14), 0 0 0 1px var(--rf-line); }
.rf-prod-img { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.rf-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rf-prod:hover .rf-prod-img img { transform: scale(1.03); }
.rf-prod--bundle .rf-prod-img img { object-fit: cover; object-position: 30% 50%; }
.rf-prod-body { padding: 16px 18px 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: baseline; }
.rf-prod-body h3 { margin: 0; font-size: 1.32rem; line-height: 1.1; color: var(--rf-navy); }
.rf-price { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; color: var(--rf-navy); }
.rf-prod-meta { grid-column: 1 / -1; margin: 2px 0 0; font-family: var(--font-body); font-size: 0.93rem; color: var(--rf-body); }
.rf-prod-cta { grid-column: 1 / -1; margin-top: 10px; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--rf-red); }
.rf-prod-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--rf-red); color: #fff; padding: 5px 10px; border-radius: 3px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.rf-prod-img { position: relative; }
.rf-products-foot {
  margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--rf-body);
}
.rf-products-foot a { color: var(--rf-navy); font-weight: 700; }

@media (max-width: 860px) {
  .rf-sec-head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .rf-prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rf-prod--bundle { grid-column: 1 / -1; }
  .rf-prod--bundle .rf-prod-img { aspect-ratio: 16 / 10; }
  .rf-prod-body { padding: 12px 12px 14px; grid-template-columns: 1fr; text-align: center; }
  .rf-prod-body h3 { font-size: 1.08rem; }
  .rf-price { font-size: 1.15rem; }
  .rf-prod-meta { font-size: 0.86rem; }
  .rf-prod-cta { margin-top: 6px; font-size: 0.9rem; }
  .rf-products-foot { flex-direction: column; align-items: center; text-align: center; }
}

/* ─── RACE UPDATE ────────────────────────────────────── */
.rf-update { background: #fff; border-top: 1px solid var(--rf-line); border-bottom: 1px solid var(--rf-line); }
.rf-update-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 22px; padding-bottom: 22px; }
.rf-update .rf-kicker { margin-bottom: 4px; }
.rf-update-text { margin: 0; max-width: 40rem; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--rf-ink); }
.rf-update-links { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.rf-update-links .rf-btn { min-height: 46px; padding: 0 20px; font-size: 0.95rem; }
@media (max-width: 860px) {
  .rf-update-inner { flex-direction: column; text-align: center; }
  .rf-update-links { justify-content: center; width: 100%; }
  .rf-update-links .rf-btn { flex: 1 1 200px; max-width: 320px; }
}

/* ─── CP24 + PRESS ───────────────────────────────────── */
.rf-media { background: var(--rf-navy); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.rf-media-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.rf-media h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.04; color: #fff; }
.rf-media-sub { margin: 0 0 24px; font-family: var(--font-body); color: rgba(255, 255, 255, 0.8); }
.rf-press-label { margin: 0 0 10px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.rf-press { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rf-press a {
  display: inline-block; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 3px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: #fff; text-decoration: none;
}
.rf-press a:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.rf-quote { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.rf-quote a { color: inherit; }
.rf-video {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000;
}
.rf-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rf-video:hover img { transform: scale(1.02); }
.rf-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; background: var(--rf-red);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.rf-video-meta {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 3px;
  background: rgba(0, 21, 48, 0.85); color: #fff; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
}
.rf-dialog { padding: 0; border: 0; background: transparent; max-width: min(420px, 92vw); width: 100%; overflow: visible; }
.rf-dialog::backdrop { background: rgba(0, 12, 30, 0.86); }
.rf-dialog video { display: block; width: 100%; max-height: 82svh; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; }
.rf-dialog-close {
  position: absolute; top: -48px; right: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: #fff; color: var(--rf-navy); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
@media (max-width: 860px) {
  .rf-media-grid { grid-template-columns: 1fr; text-align: center; }
  .rf-media-copy { order: 2; }
  .rf-press { justify-content: center; }
}

/* Existing sections below the products: tighten spacing */
.rf-page .home-photos { padding: clamp(40px, 5vw, 64px) 0; }
.rf-page .home-photos h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }

/* Dark theme */
[data-theme="dark"] .rf-products { background: var(--bg); }
[data-theme="dark"] .rf-prod { background: var(--bg-card); color: var(--text); }
[data-theme="dark"] .rf-prod-body h3, [data-theme="dark"] .rf-price, [data-theme="dark"] .rf-sec-head h2 { color: #fff; }
[data-theme="dark"] .rf-prod-meta, [data-theme="dark"] .rf-products-foot { color: var(--text-2); }
[data-theme="dark"] .rf-products-foot a, [data-theme="dark"] .rf-textlink { color: #fff; }
[data-theme="dark"] .rf-update { background: var(--bg-alt); border-color: var(--border); }
[data-theme="dark"] .rf-update-text { color: var(--text); }
[data-theme="dark"] .rf-btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .rf-prod, .rf-prod-img img, .rf-video img { transition: none; }
  .rf-prod:hover, .rf-prod:hover .rf-prod-img img, .rf-video:hover img { transform: none; }
}

/* Calmer uppercase on older components that remain below the products */
.rf-page .btn { letter-spacing: 0.04em; }
.rf-page .f40-cat { letter-spacing: 0.04em; }
.rf-page .footer-nav a, .rf-page .footer-links a { letter-spacing: 0.04em; }
.rf-prod-img picture { display: block; width: 100%; height: 100%; }
@media (max-width: 860px) {
  .rf-hero-media { height: clamp(200px, 29svh, 300px); }
  .rf-hero-copy { padding-top: 22px; padding-bottom: 24px; }
  .rf-products { padding-top: 28px; }
  .rf-sec-head { margin-bottom: 16px; }
}
.rf-page .footer-link { letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); }
.rf-page .footer-link:hover { color: #fff; }
.rf-page .footer-sponsor-label { letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
[data-theme="dark"] .rf-update .rf-kicker, [data-theme="dark"] .rf-products .rf-prod-cta { color: #FF9C9C; }
.rf-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; }
.rf-dialog video { max-height: 86svh; width: auto; max-width: 100%; margin: 0 auto; }
.rf-dialog-close { top: 10px; right: 10px; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.35); }

/* Race day film */
.rf-film { background: #fff; padding: clamp(40px, 6vw, 72px) 0; text-align: center; border-top: 1px solid var(--rf-line); }
.rf-film-inner { display: flex; flex-direction: column; align-items: center; }
.rf-film .rf-kicker { margin-bottom: 8px; }
.rf-film h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.04; color: var(--rf-navy); }
.rf-film-sub { margin: 0 0 24px; font-family: var(--font-body); color: var(--rf-body); }
.rf-film-frame { position: relative; width: min(340px, 100%); aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--rf-navy); box-shadow: 0 14px 34px rgba(0, 33, 71, 0.18); }
.rf-film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rf-film-btn { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; display: block; width: 100%; height: 100%; }
.rf-film-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rf-film-btn:hover img { transform: scale(1.02); }
.rf-film-btn:focus-visible { outline: 3px solid var(--rf-red); outline-offset: 3px; }
.rf-film-foot { margin: 20px 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.95rem; color: var(--rf-body); }
@media (max-width: 860px) { .rf-film-frame { width: min(300px, 82vw); } }
[data-theme="dark"] .rf-film { background: var(--rf-navy-deep); }
[data-theme="dark"] .rf-film h2 { color: #fff; }
[data-theme="dark"] .rf-film-sub, [data-theme="dark"] .rf-film-foot { color: rgba(255,255,255,.82); }

/* CP24 YouTube embed */
.rf-video-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.rf-video-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rf-video-btn:hover img { transform: scale(1.02); }
.rf-video-btn:focus-visible { outline: 3px solid var(--rf-red); outline-offset: 3px; }
.rf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rf-video { cursor: default; }
#cp24Frame .rf-video-meta { top: 12px; bottom: auto; }
