/*
Theme Name:  RiderWyr — Roosevelt Activities
Theme URI:   https://riderwyr.com
Author:      Roosevelt High School
Description: The wire for everything Roosevelt. Sports, fine arts, theater, band, choir, visual art, clubs — all of it, covered like it matters. Dark, cinematic, live.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riderwyr
Tags:        activities, sports, fine-arts, news, dark, custom-colors, custom-logo, featured-images
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --rw-red:        #C8102E;
  --rw-dark-red:   #8B0A1E;
  --rw-gold:       #F5C518;
  --rw-gold-dim:   rgba(245,197,24,0.12);

  /* Deeper blacks — Whizz/BuiltUp influence */
  --rw-dark:       #080808;
  --rw-surface:    #0E0E0E;
  --rw-surface2:   #161616;
  --rw-surface3:   #202020;
  --rw-surface4:   #2A2A2A;

  --rw-border:     rgba(255,255,255,0.06);
  --rw-border2:    rgba(255,255,255,0.12);
  --rw-border3:    rgba(255,255,255,0.20);

  --rw-text:       #F2F2F2;
  --rw-text2:      rgba(242,242,242,0.68);
  --rw-muted:      #606060;
  --rw-success:    #4CAF50;

  /* Typography — sports display + editorial serif from ZoxNews */
  --font-display:  'Bebas Neue', sans-serif;
  --font-cond:     'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;

  --max-width:     1380px;
  --gutter:        36px;
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     14px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--rw-dark);
  color: var(--rw-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rw-gold); }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  line-height: 1.08;
  color: var(--rw-text);
}
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.5vw, 34px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 19px; }
p { margin-bottom: 1em; color: var(--rw-text2); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section-pad { padding: 32px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.rw-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.rw-section-title {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rw-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--rw-red);
  border-radius: 2px;
  flex-shrink: 0;
}
.rw-see-all {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--rw-gold);
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.rw-see-all:hover { opacity: 0.7; color: var(--rw-gold); }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.rw-tag { display: inline-block; font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-sm); background: var(--rw-red); color: #fff; }
.rw-tag--gold { background: var(--rw-gold); color: #000; }
.rw-tag--sport { background: transparent; color: var(--rw-gold); padding: 0; letter-spacing: 1.5px; }
.rw-badge-w { display: inline-block; font-family: var(--font-cond); font-size: 9px; font-weight: 700; color: var(--rw-success); background: rgba(76,175,80,0.15); padding: 2px 6px; border-radius: var(--radius-sm); }
.rw-badge-l { display: inline-block; font-family: var(--font-cond); font-size: 9px; font-weight: 700; color: var(--rw-red); background: rgba(200,16,46,0.15); padding: 2px 6px; border-radius: var(--radius-sm); }

/* ============================================================
   BUTTONS
   ============================================================ */
.rw-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: 0.5px; padding: 10px 24px; border-radius: var(--radius-sm); transition: all 0.2s; cursor: pointer; }
.rw-btn--red { background: var(--rw-red); color: #fff; }
.rw-btn--red:hover { background: var(--rw-dark-red); color: #fff; }
.rw-btn--gold { background: var(--rw-gold); color: #000; }
.rw-btn--gold:hover { opacity: 0.88; color: #000; }
.rw-btn--outline { background: transparent; border: 1px solid var(--rw-border2); color: var(--rw-gold); }
.rw-btn--outline:hover { border-color: rgba(245,197,24,0.45); color: var(--rw-gold); }
.result-w { color: var(--rw-success); font-weight: 700; background: rgba(76,175,80,0.1); padding: 3px 9px; border-radius: var(--radius-sm); font-size: 12px; display: inline-block; font-family: var(--font-cond); }
.result-l { color: var(--rw-red); font-weight: 700; background: rgba(200,16,46,0.1); padding: 3px 9px; border-radius: var(--radius-sm); font-size: 12px; display: inline-block; font-family: var(--font-cond); }
.result-upcoming { color: var(--rw-gold); font-size: 12px; font-style: italic; font-family: var(--font-cond); }

/* ============================================================
   BREAKING TICKER
   ============================================================ */
.rw-ticker { background: var(--rw-red); height: 36px; display: flex; align-items: center; overflow: hidden; position: relative; z-index: 100; }
.rw-ticker__label { background: var(--rw-dark-red); color: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 0 18px; height: 100%; display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; gap: 7px; }
.rw-ticker__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.rw-ticker__track { overflow: hidden; flex: 1; position: relative; }
.rw-ticker__inner { display: flex; align-items: center; animation: ticker-scroll 40s linear infinite; white-space: nowrap; }
.rw-ticker__inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.rw-ticker__item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-cond); font-size: 13px; font-weight: 600; color: #fff; padding: 0 32px; }
.rw-ticker__item .highlight { color: var(--rw-gold); }
.rw-ticker__dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.35); flex-shrink: 0; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.rw-header { background: var(--rw-surface); border-bottom: 1px solid var(--rw-border); position: sticky; top: 0; z-index: 99; }
.rw-header__top { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--rw-border); }
.rw-header__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.rw-header__logo:hover { opacity: 0.9; }
.rw-logo-shield { width: 52px; height: 52px; background: var(--rw-red); clip-path: polygon(50% 0%,100% 15%,100% 60%,50% 100%,0% 60%,0% 15%); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; color: #fff; letter-spacing: 1px; flex-shrink: 0; }
.rw-logo-text { line-height: 1; }
.rw-logo-text__main { display: block; font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; color: var(--rw-text); }
.rw-logo-text__sub { display: block; font-family: var(--font-cond); font-size: 11px; letter-spacing: 1.5px; color: var(--rw-muted); text-transform: uppercase; margin-top: 3px; }
.rw-header__actions { display: flex; align-items: center; gap: 14px; }
.rw-search-form { display: flex; align-items: center; gap: 8px; background: var(--rw-surface3); border: 1px solid var(--rw-border); border-radius: var(--radius-sm); padding: 7px 12px; transition: border-color 0.2s; }
.rw-search-form:focus-within { border-color: var(--rw-border2); }
.rw-search-form input { background: none; border: none; outline: none; color: var(--rw-text); font-family: var(--font-cond); font-size: 13px; width: 200px; }
.rw-search-form input::placeholder { color: var(--rw-muted); }
.rw-riderpix-btn { display: flex; align-items: center; gap: 7px; font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: 0.5px; color: var(--rw-gold); background: var(--rw-gold-dim); border: 1px solid rgba(245,197,24,0.2); border-radius: var(--radius-sm); padding: 7px 14px; transition: all 0.2s; }
.rw-riderpix-btn:hover { background: rgba(245,197,24,0.22); color: var(--rw-gold); border-color: rgba(245,197,24,0.35); }
.rw-nav-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: var(--rw-text); background: var(--rw-surface3); border: 1px solid var(--rw-border); transition: background 0.2s; }
.rw-nav-toggle:hover { background: var(--rw-surface4); }

/* Nav */
.rw-nav { background: var(--rw-surface); overflow-x: auto; scrollbar-width: none; }
.rw-nav::-webkit-scrollbar { display: none; }
.rw-nav ul { display: flex; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.rw-nav ul li a, .rw-nav ul li > span { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--rw-muted); padding: 13px 16px; border-left: 1px solid var(--rw-border); transition: color 0.2s; white-space: nowrap; }
.rw-nav ul li:first-child > a { border-left: none; }
.rw-nav ul li a:hover, .rw-nav ul li > span:hover { color: var(--rw-text); }
.rw-nav ul li.current-menu-item > a, .rw-nav ul li.current-page-ancestor > a { color: var(--rw-gold); }
.rw-nav ul li { position: relative; }
.rw-nav ul li ul { display: none; position: absolute; top: 100%; left: 0; background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: 0 0 var(--radius) var(--radius); z-index: 200; min-width: 180px; flex-direction: column; }
.rw-nav ul li:hover > ul { display: flex; }
.rw-nav ul li ul li a { padding: 11px 16px; border-left: none; border-bottom: 1px solid var(--rw-border); font-size: 12px; }
.rw-nav ul li ul li:last-child a { border-bottom: none; }

/* ============================================================
   SCOREBOARD STRIP
   ============================================================ */
.rw-scoreboard { background: var(--rw-surface2); border-bottom: 1px solid var(--rw-border); padding: 14px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.rw-scoreboard::-webkit-scrollbar { display: none; }
.rw-scoreboard__label { font-family: var(--font-cond); font-size: 10px; letter-spacing: 2px; color: var(--rw-muted); text-transform: uppercase; margin-bottom: 10px; }
.rw-scoreboard__row { display: flex; gap: 8px; }
.rw-score-card { background: var(--rw-surface3); border: 1px solid var(--rw-border); border-radius: var(--radius); padding: 10px 16px; min-width: 215px; flex-shrink: 0; cursor: pointer; transition: border-color 0.2s; text-decoration: none; display: block; }
.rw-score-card:hover { border-color: var(--rw-border2); }
.rw-score-card__sport { font-family: var(--font-cond); font-size: 10px; letter-spacing: 1.5px; color: var(--rw-gold); text-transform: uppercase; margin-bottom: 7px; }
.rw-score-card__team { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.rw-score-card__name { font-family: var(--font-cond); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.rw-score-card__name--winner { color: #fff; }
.rw-score-card__name--loser  { color: var(--rw-muted); }
.rw-score-card__num { font-family: var(--font-display); font-size: 20px; }
.rw-score-card__num--winner { color: var(--rw-gold); }
.rw-score-card__num--loser  { color: var(--rw-muted); }
.rw-score-card__meta { font-family: var(--font-cond); font-size: 11px; color: var(--rw-muted); margin-top: 6px; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.rw-main-layout { max-width: var(--max-width); margin: 0 auto; padding: 32px var(--gutter); display: grid; grid-template-columns: 1fr 330px; gap: 32px; }

/* ============================================================
   HERO  (Whizz cinematic overlay)
   ============================================================ */
.rw-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; display: block; cursor: pointer; }
.rw-hero__image { width: 100%; height: 440px; object-fit: cover; display: block; transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94); }
.rw-hero:hover .rw-hero__image { transform: scale(1.025); }
.rw-hero__placeholder { width: 100%; height: 440px; background: linear-gradient(135deg,#190508 0%,#2d0a12 45%,#0d0d0d 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.rw-hero__placeholder-wm { position: absolute; font-family: var(--font-display); font-size: 130px; color: rgba(255,255,255,0.03); letter-spacing: 8px; white-space: nowrap; user-select: none; }
.rw-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,0.96) 0%,rgba(0,0,0,0.55) 40%,rgba(0,0,0,0.15) 70%,transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 36px; }
.rw-hero__tag { margin-bottom: 12px; }
.rw-hero__title { font-family: var(--font-display); font-size: clamp(28px,4vw,44px); line-height: 1.04; letter-spacing: 0.5px; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.rw-hero__meta { font-family: var(--font-cond); font-size: 13px; color: rgba(255,255,255,0.52); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rw-hero__meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.rw-hero__meta a { color: var(--rw-gold); }

/* ============================================================
   NEWS GRID  (ZoxNews magazine)
   ============================================================ */
.rw-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.rw-news-card { background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.25s; display: block; text-decoration: none; }
.rw-news-card:hover { border-color: var(--rw-border2); transform: translateY(-3px); color: var(--rw-text); }
.rw-news-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--rw-surface3); position: relative; }
.rw-news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.rw-news-card:hover .rw-news-card__thumb img { transform: scale(1.06); }
.rw-news-card__body { padding: 16px; }
.rw-news-card__sport { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--rw-gold); text-transform: uppercase; margin-bottom: 6px; }
.rw-news-card__title { font-family: var(--font-cond); font-weight: 700; font-size: 17px; line-height: 1.25; margin-bottom: 8px; color: var(--rw-text); }
.rw-news-card__meta { font-family: var(--font-cond); font-size: 12px; color: var(--rw-muted); }
.rw-news-list { margin-bottom: 32px; }
.rw-news-list-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rw-border); text-decoration: none; transition: opacity 0.2s; }
.rw-news-list-item:hover { opacity: 0.8; }
.rw-news-list-item:last-child { border-bottom: none; }
.rw-news-list-item__thumb { width: 100px; height: 66px; border-radius: 5px; overflow: hidden; background: var(--rw-surface3); flex-shrink: 0; }
.rw-news-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rw-news-list-item__sport { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--rw-gold); text-transform: uppercase; margin-bottom: 4px; }
.rw-news-list-item__title { font-family: var(--font-cond); font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--rw-text); margin-bottom: 4px; }
.rw-news-list-item__meta { font-family: var(--font-cond); font-size: 12px; color: var(--rw-muted); }

/* ============================================================
   PHOTO GALLERY  (Whizz/BuiltUp cinematic grid)
   ============================================================ */
.rw-gallery-section { margin-bottom: 36px; }
.rw-gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.rw-gallery-item:first-child { grid-column: 1/3; aspect-ratio: 4/3; }
.rw-gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; display: block; background: var(--rw-surface3); }
.rw-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94); }
.rw-gallery-item:hover img { transform: scale(1.08); }
.rw-gallery-item__overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 100%); display: flex; align-items: flex-end; padding: 10px; transition: background 0.3s; }
.rw-gallery-item:hover .rw-gallery-item__overlay { background: linear-gradient(to top,rgba(0,0,0,0.75) 0%,transparent 60%); }
.rw-gallery-item__sport { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 1px; background: var(--rw-red); color: #fff; padding: 3px 9px; border-radius: var(--radius-sm); opacity: 0; transform: translateY(4px); transition: opacity 0.3s,transform 0.3s; text-transform: uppercase; }
.rw-gallery-item:hover .rw-gallery-item__sport { opacity: 1; transform: translateY(0); }
.rw-gallery-item__count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.75); color: #fff; font-family: var(--font-cond); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-sm); letter-spacing: 0.5px; }
.rw-gallery-cta { margin-top: 10px; display: flex; align-items: center; justify-content: center; background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius); padding: 14px; gap: 10px; font-family: var(--font-cond); font-size: 13px; font-weight: 700; color: var(--rw-gold); letter-spacing: 0.5px; text-transform: uppercase; transition: border-color 0.2s; }
.rw-gallery-cta:hover { border-color: rgba(245,197,24,0.4); color: var(--rw-gold); }

/* Native photo grid (gallery detail page) */
#rp-photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 4px; }
.rp-grid-item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--rw-surface3); cursor: pointer; }
.rp-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.rp-grid-item:hover img { transform: scale(1.06); }
.rp-hover-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; }
.rp-grid-item:hover .rp-hover-overlay { background: rgba(0,0,0,0.55); }
.rp-view-btn, .rp-dl-btn { opacity: 0; transition: opacity 0.2s; }
.rp-grid-item:hover .rp-view-btn, .rp-grid-item:hover .rp-dl-btn { opacity: 1; }

/* Gallery archive — BuiltUp masonry-style */
.rw-gallery-archive { max-width: var(--max-width); margin: 0 auto; padding: 32px var(--gutter); }
.rw-gallery-archive__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 18px; }
.rw-gallery-archive__item { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; position: relative; display: block; background: var(--rw-surface3); cursor: pointer; }
.rw-gallery-archive__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94); }
.rw-gallery-archive__item:hover img { transform: scale(1.07); }
.rw-gallery-archive__overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,0.82) 0%,transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: opacity 0.35s; }
.rw-gallery-archive__item:hover .rw-gallery-archive__overlay { opacity: 1; }
.rw-gallery-archive__sport { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--rw-gold); text-transform: uppercase; margin-bottom: 6px; }
.rw-gallery-archive__title { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.5px; color: #fff; margin-bottom: 4px; }
.rw-gallery-archive__meta { font-family: var(--font-cond); font-size: 12px; color: rgba(255,255,255,0.55); }

/* ============================================================
   VIDEO HIGHLIGHTS
   ============================================================ */
.rw-video-section { margin-bottom: 36px; }
.rw-video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.rw-video-card { border-radius: var(--radius); overflow: hidden; cursor: pointer; display: block; text-decoration: none; }
.rw-video-card:hover { color: var(--rw-text); }
.rw-video-thumb { aspect-ratio: 16/9; position: relative; background: var(--rw-surface3); overflow: hidden; }
.rw-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.rw-video-card:hover .rw-video-thumb img { transform: scale(1.05); }
.rw-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); transition: background 0.2s; }
.rw-video-card:hover .rw-video-play { background: rgba(0,0,0,0.45); }
.rw-play-circle { width: 48px; height: 48px; border-radius: 50%; background: rgba(200,16,46,0.88); display: flex; align-items: center; justify-content: center; transition: transform 0.2s,background 0.2s; }
.rw-video-card:hover .rw-play-circle { transform: scale(1.12); background: var(--rw-red); }
.rw-play-circle svg { width: 16px; height: 16px; fill: #fff; margin-left: 3px; }
.rw-video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.82); font-family: var(--font-cond); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-sm); color: #fff; }
.rw-video-info { padding: 10px 2px 0; }
.rw-video-sport { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--rw-red); text-transform: uppercase; margin-bottom: 4px; }
.rw-video-title { font-family: var(--font-cond); font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--rw-text); margin-bottom: 4px; }
.rw-video-meta { font-family: var(--font-cond); font-size: 12px; color: var(--rw-muted); }

/* ============================================================
   SCHEDULE TABLE
   ============================================================ */
.rw-schedule-section { margin-bottom: 36px; }
.rw-schedule-tabs { display: flex; gap: 4px; margin-bottom: 14px; background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius); padding: 4px; overflow-x: auto; scrollbar-width: none; }
.rw-schedule-tabs::-webkit-scrollbar { display: none; }
.rw-schedule-tab { font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; padding: 7px 18px; border-radius: var(--radius-sm); cursor: pointer; color: var(--rw-muted); text-transform: uppercase; transition: all 0.2s; white-space: nowrap; background: none; }
.rw-schedule-tab.active { background: var(--rw-red); color: #fff; }
.rw-schedule-tab:hover:not(.active) { color: var(--rw-text); }
.rw-schedule-table { width: 100%; border-collapse: collapse; }
.rw-schedule-table thead th { font-family: var(--font-cond); font-size: 11px; letter-spacing: 1px; color: var(--rw-muted); text-transform: uppercase; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rw-border); }
.rw-schedule-table tbody tr { border-bottom: 1px solid var(--rw-border); transition: background 0.15s; }
.rw-schedule-table tbody tr:hover { background: var(--rw-surface2); }
.rw-schedule-table td { padding: 12px; font-family: var(--font-cond); font-size: 14px; }
.rw-schedule-table td.col-date { color: var(--rw-muted); }
.rw-schedule-table td.col-sport { color: var(--rw-muted); font-size: 12px; }
.rw-schedule-table td.col-opponent { font-weight: 700; }
.rw-schedule-table td.col-location { color: var(--rw-muted); font-size: 12px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.rw-sidebar { display: flex; flex-direction: column; gap: 22px; }
.rw-sidebar-card { background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius); overflow: hidden; }
.rw-sidebar-card__head { background: var(--rw-surface3); border-bottom: 1px solid var(--rw-border); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; }
.rw-sidebar-card__title { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.5px; }
.rw-standings-table { width: 100%; border-collapse: collapse; }
.rw-standings-table th { font-family: var(--font-cond); font-size: 10px; letter-spacing: 1px; color: var(--rw-muted); text-transform: uppercase; text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--rw-border); }
.rw-standings-table th:not(:first-child) { text-align: center; }
.rw-standings-table td { padding: 10px 14px; font-family: var(--font-cond); font-size: 13px; border-bottom: 1px solid var(--rw-border); }
.rw-standings-table td:not(:first-child) { text-align: center; }
.rw-standings-table tr:last-child td { border-bottom: none; }
.rw-standings-table tr.rw-row { background: rgba(200,16,46,0.07); }
.rw-standings-table .school-name { font-weight: 700; }
.rw-standings-table .school-name--rr { color: var(--rw-gold); }
.rw-standings-table .wins { color: var(--rw-success); font-weight: 700; }
.rw-riderpix-promo { background: linear-gradient(145deg,#19080e 0%,#260c16 100%); border: 1px solid rgba(200,16,46,0.22); border-radius: var(--radius); padding: 24px; text-align: center; }
.rw-riderpix-promo__logo { font-family: var(--font-display); font-size: 26px; color: var(--rw-gold); letter-spacing: 2px; margin-bottom: 6px; }
.rw-riderpix-promo__sub { font-family: var(--font-cond); font-size: 13px; color: var(--rw-muted); margin-bottom: 16px; line-height: 1.55; }
.rw-riderpix-promo__note { font-family: var(--font-cond); font-size: 11px; color: var(--rw-muted); margin-top: 12px; }
.rw-riderpix-promo__note strong { color: var(--rw-gold); }
.rw-spotlight { background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius); overflow: hidden; }
.rw-spotlight__img { height: 180px; overflow: hidden; background: var(--rw-surface3); position: relative; display: flex; align-items: center; justify-content: center; }
.rw-spotlight__img img { width: 100%; height: 100%; object-fit: cover; }
.rw-spotlight__badge { position: absolute; top: 12px; left: 12px; }
.rw-spotlight__body { padding: 18px; }
.rw-spotlight__label { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--rw-red); text-transform: uppercase; margin-bottom: 5px; }
.rw-spotlight__name { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.5px; margin-bottom: 4px; }
.rw-spotlight__sport { font-family: var(--font-cond); font-size: 13px; color: var(--rw-muted); margin-bottom: 14px; }
.rw-spotlight__stats { display: flex; gap: 10px; margin-bottom: 14px; }
.rw-stat-box { background: var(--rw-surface3); border: 1px solid var(--rw-border); border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; flex: 1; }
.rw-stat-box__num { font-family: var(--font-display); font-size: 26px; color: var(--rw-gold); }
.rw-stat-box__label { font-family: var(--font-cond); font-size: 10px; letter-spacing: 1px; color: var(--rw-muted); text-transform: uppercase; margin-top: 2px; }
.rw-spotlight__bio { font-family: var(--font-cond); font-size: 13px; color: var(--rw-muted); line-height: 1.55; }

/* ============================================================
   ATHLETE ARCHIVE  (BuiltUp portrait grid)
   ============================================================ */
.rw-athlete-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; margin-bottom: 32px; }
.rw-athlete-card { background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius); overflow: hidden; display: block; text-decoration: none; transition: border-color 0.2s, transform 0.25s; }
.rw-athlete-card:hover { border-color: var(--rw-border2); transform: translateY(-3px); }
.rw-athlete-card__photo { aspect-ratio: 2/3; overflow: hidden; background: var(--rw-surface3); position: relative; }
.rw-athlete-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.rw-athlete-card:hover .rw-athlete-card__photo img { transform: scale(1.06); }
.rw-athlete-card__number { position: absolute; bottom: 10px; right: 12px; font-family: var(--font-display); font-size: 52px; line-height: 1; color: rgba(255,255,255,0.12); }
.rw-athlete-card__body { padding: 14px; }
.rw-athlete-card__name { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.5px; margin-bottom: 4px; }
.rw-athlete-card__sport { font-family: var(--font-cond); font-size: 12px; color: var(--rw-gold); letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   FOOTER
   ============================================================ */
.rw-footer { background: var(--rw-surface); border-top: 1px solid var(--rw-border); margin-top: 32px; }
.rw-footer__top { max-width: var(--max-width); margin: 0 auto; padding: 40px var(--gutter); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
.rw-footer__brand p { font-size: 13px; color: var(--rw-muted); line-height: 1.65; margin-top: 10px; margin-bottom: 16px; }
.rw-footer__col h4 { font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--rw-muted); text-transform: uppercase; margin-bottom: 16px; }
.rw-footer__col ul li { font-family: var(--font-cond); font-size: 14px; margin-bottom: 10px; }
.rw-footer__col ul li a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.rw-footer__col ul li a:hover { color: #fff; }
.rw-footer__bottom { border-top: 1px solid var(--rw-border); padding: 16px var(--gutter); max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-cond); font-size: 12px; color: var(--rw-muted); flex-wrap: wrap; gap: 8px; }
.rw-footer__bottom a { color: var(--rw-gold); }

/* ============================================================
   BLOCK EDITOR
   ============================================================ */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote { border-left: 4px solid var(--rw-red); padding: 12px 20px; background: var(--rw-surface2); border-radius: 0 var(--radius) var(--radius) 0; }
.wp-block-quote p { color: var(--rw-gold); font-family: var(--font-cond); font-size: 18px; font-weight: 700; }
.wp-block-separator { border-color: var(--rw-border); }

/* ============================================================
   JS HELPERS
   ============================================================ */
.js-schedule-row { display: table-row; }
.js-schedule-row.hidden { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .rw-main-layout { grid-template-columns: 1fr; }
  .rw-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .rw-footer__top { grid-template-columns: 1fr 1fr; }
  .rw-video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .rw-header__top { flex-wrap: wrap; gap: 10px; }
  .rw-search-form input { width: 130px; }
  .rw-logo-text__main { font-size: 20px; }
  .rw-logo-text__sub { display: none; }
  .rw-nav-toggle { display: flex; }
  .rw-nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--rw-surface); border-top: 1px solid var(--rw-border); z-index: 300; }
  .rw-nav ul.open { display: flex; }
  .rw-nav ul li a { border-bottom: 1px solid var(--rw-border); border-left: none; }
  .rw-news-grid { grid-template-columns: 1fr; }
  .rw-gallery-grid { grid-template-columns: 1fr 1fr; }
  .rw-gallery-item:first-child { grid-column: 1 / -1; }
  .rw-video-grid { grid-template-columns: 1fr; }
  .rw-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .rw-sidebar { grid-template-columns: 1fr; }
  .rw-ticker { display: none; }
  .rw-hero__image { height: 260px; }
  .rw-athlete-grid { grid-template-columns: repeat(2,1fr); }
  .rw-gallery-archive__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .rw-gallery-grid { grid-template-columns: 1fr; }
  .rw-gallery-item:first-child { grid-column: auto; }
}

/* ============================================================
   ARTICLE / SINGLE POST LAYOUT
   ============================================================ */
.rw-article-header { max-width: var(--max-width); margin: 0 auto; padding: 32px var(--gutter) 0; }
.rw-article-header__sport { margin-bottom: 14px; }
.rw-article-header__title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px); line-height: 1.05; letter-spacing: 0.5px; margin-bottom: 16px; }
.rw-article-header__meta { font-family: var(--font-cond); font-size: 13px; color: var(--rw-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--rw-border); }
.rw-article-header__meta a { color: var(--rw-gold); }
.rw-article-hero-img { max-width: var(--max-width); margin: 24px auto 0; padding: 0 var(--gutter); }
.rw-article-hero-img img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.rw-article-body { max-width: 780px; margin: 0 auto; padding: 32px var(--gutter) 60px; font-family: var(--font-body); font-size: 16.5px; line-height: 1.8; color: var(--rw-text2); }
.rw-article-body h2 { font-family: var(--font-display); font-size: 28px; margin: 36px 0 14px; color: var(--rw-text); }
.rw-article-body h3 { font-family: var(--font-display); font-size: 22px; margin: 28px 0 10px; color: var(--rw-text); }
.rw-article-body p { margin-bottom: 1.2em; }
.rw-article-body ul { padding-left: 1.5em; margin-bottom: 1.2em; list-style: disc; }
.rw-article-body ol { padding-left: 1.5em; margin-bottom: 1.2em; list-style: decimal; }
.rw-article-body a { color: var(--rw-gold); text-decoration: underline; text-underline-offset: 3px; }
.rw-article-body blockquote { border-left: 4px solid var(--rw-red); padding: 12px 20px; background: var(--rw-surface2); border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.rw-article-body blockquote p { color: var(--rw-gold); font-family: var(--font-cond); font-size: 18px; font-weight: 700; margin: 0; }
.rw-article-body img { border-radius: var(--radius); max-width: 100%; }
.rw-article-body figure { margin: 28px 0; }
.rw-article-body figcaption { font-family: var(--font-cond); font-size: 12px; color: var(--rw-muted); margin-top: 8px; }

.rw-riderpix-embed { background: var(--rw-surface2); border: 1px solid rgba(245,197,24,0.2); border-radius: var(--radius); padding: 20px 24px; }
.rw-riderpix-embed__label { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--rw-muted); text-transform: uppercase; margin-bottom: 6px; }
.rw-riderpix-embed__title { font-family: var(--font-cond); font-size: 16px; font-weight: 700; color: var(--rw-text); margin-bottom: 14px; }

/* ============================================================
   COMMENTS
   ============================================================ */
.rw-comments { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter) 60px; }
.rw-comments h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 24px; padding-top: 28px; border-top: 1px solid var(--rw-border); }
.rw-comment__author { font-family: var(--font-cond); font-weight: 700; font-size: 14px; color: var(--rw-text); }
.rw-comment__date { font-family: var(--font-cond); font-size: 12px; color: var(--rw-muted); margin-top: 2px; margin-bottom: 10px; }
.rw-comment__text { font-family: var(--font-body); font-size: 15px; color: var(--rw-text2); line-height: 1.7; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--rw-border); }
.comment-list li:last-child { border-bottom: none; }
.comment-form label { font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--rw-muted); display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea { width: 100%; background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--rw-text); font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color 0.2s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--rw-border2); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .form-submit input[type="submit"] { background: var(--rw-red); color: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: 0.5px; padding: 10px 24px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: background 0.2s; }
.comment-form .form-submit input[type="submit"]:hover { background: var(--rw-dark-red); }

/* ============================================================
   LAYOUT / PAGINATION / WIDGETS
   ============================================================ */
.rw-content-col { min-width: 0; }
.rw-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.rw-pagination .page-numbers { font-family: var(--font-cond); font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--rw-border); color: var(--rw-muted); transition: all 0.2s; }
.rw-pagination .page-numbers:hover { border-color: var(--rw-border2); color: var(--rw-text); }
.rw-pagination .page-numbers.current { background: var(--rw-red); color: #fff; border-color: var(--rw-red); }
.rw-pagination a { color: var(--rw-muted); }

.rw-upcoming-event { padding: 12px 18px; border-bottom: 1px solid var(--rw-border); }
.rw-upcoming-event:last-child { border-bottom: none; }
.rw-upcoming-event__sport { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--rw-gold); text-transform: uppercase; margin-bottom: 3px; }
.rw-upcoming-event__name { font-family: var(--font-cond); font-weight: 700; font-size: 14px; color: var(--rw-text); margin-bottom: 3px; }
.rw-upcoming-event__time { font-family: var(--font-cond); font-size: 12px; color: var(--rw-muted); }

.rw-standings-group { margin-bottom: 28px; }
.rw-standings-group__head { background: var(--rw-surface3); border: 1px solid var(--rw-border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; padding: 12px 18px; font-family: var(--font-display); font-size: 18px; letter-spacing: 0.5px; }

.rw-schedule-month { margin-bottom: 28px; }
.rw-schedule-month-label { font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--rw-muted); text-transform: uppercase; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rw-border); }

.rw-widget { background: var(--rw-surface2); border: 1px solid var(--rw-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.rw-widget ul li { font-family: var(--font-cond); font-size: 14px; padding: 6px 18px; border-bottom: 1px solid var(--rw-border); }
.rw-widget ul li:last-child { border-bottom: none; }
.rw-widget ul li a { color: var(--rw-text2); transition: color 0.2s; }
.rw-widget ul li a:hover { color: var(--rw-gold); }

.rp-photo-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--rw-surface3); border: 1px solid var(--rw-border); }
.rp-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.rp-delete-photo { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(200,16,46,0.85); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; opacity: 0; transition: opacity 0.2s; }
.rp-photo-item:hover .rp-delete-photo { opacity: 1; }

/* ============================================================
   DROPDOWN MENUS
   ============================================================ */
.rw-nav ul li { position: relative; list-style: none; }

/* Hide sub-menus by default */
.rw-nav .rw-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #0E0E0E;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  z-index: 999;
  padding: 6px 0;
  margin: 0;
  list-style: none;
}

/* Show on hover */
.rw-nav ul li:hover > .rw-sub-menu,
.rw-nav ul li:focus-within > .rw-sub-menu {
  display: block;
}

.rw-nav .rw-sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(242,242,242,0.7);
  border-bottom: none !important;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.rw-nav .rw-sub-menu li a:hover {
  background: rgba(255,255,255,0.06);
  color: #F5C518;
}

/* Dropdown arrow on parent items */
.rw-nav ul li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.5;
  margin-left: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .rw-nav .rw-sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(255,255,255,0.1);
    border-radius: 0;
    background: transparent;
    padding-left: 10px;
    margin-left: 10px;
  }
  .rw-nav ul li:hover > .rw-sub-menu { display: block; }
}
