/* ============================================================
   Holiday themes for the public site. base_site.html sets <html data-season="…"> from apps/website/seasons.py;
   the default (no holiday) sets nothing here, so the standard look is untouched.
   Each theme only overrides tokens and adds small decoration; keep text contrast ≥ 4.5:1.
   ============================================================ */

.season-trim, .season-glyph { display: none; }
html:not([data-season="default"]) .season-trim { display: block; height: 10px; }
.season-bar { display: none; text-align: center; font-weight: 600; font-size: .95rem; padding: 9px 16px; color: #fff; background: var(--navy-dark); }
html:not([data-season="default"]) .season-bar { display: block; }
.season-bar .season-glyph { display: inline; margin-right: 8px; }
.season-preview { background: #fff3c4; color: #5a4300; font-size: .85rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #e8d38a; }
.season-preview a { color: #5a4300; font-weight: 700; }
.season-picker { display: block; margin-top: 4px; font-size: .8rem; }
.season-picker a { margin: 0 6px; font-weight: 500; }
.season-picker a[aria-current] { font-weight: 700; text-decoration: none; }

/* ── Thanksgiving: harvest orange, leaves, from flyer-thanksgiving.html ── */
html[data-season="thanksgiving"] {
  --coral: #b5541c;        /* white text 4.9:1 */
  --coral-dark: #8f3f12;
  --paper: #fbf7ef;
}
html[data-season="thanksgiving"] .season-trim {
  background: repeating-linear-gradient(90deg, #d9622b 0 40px, #f6a12b 40px 80px, #a8321e 80px 120px, #e8c26a 120px 160px, #7a4a22 160px 200px); }
html[data-season="thanksgiving"] .season-glyph { display: inline; }
html[data-season="thanksgiving"] .season-glyph::before { content: "\2767"; margin-right: 6px; }
html[data-season="thanksgiving"] .hero-band .eyebrow { color: #ffb066; }
html[data-season="thanksgiving"] .ridge-star { fill: #f6a12b; }
html[data-season="thanksgiving"] .site-footer { background: #5b2a10; color: #f7dcc3; }
html[data-season="thanksgiving"] .site-footer a { color: #f7dcc3; }
html[data-season="thanksgiving"] .site-footer a:hover { color: #fff; }
html[data-season="thanksgiving"] .drive-banner { border-top-color: #f6a12b;
  background: radial-gradient(circle at 12% 30%, rgba(255,224,138,.22) 0 3px, transparent 4px), radial-gradient(circle at 71% 22%, rgba(255,224,138,.2) 0 3px, transparent 4px),
    linear-gradient(135deg, #8f3f12 0%, #b5541c 100%); }
html[data-season="thanksgiving"] .drive-banner .eyebrow { color: #ffe08a; }
html[data-season="thanksgiving"] .drive-banner .btn-coral { background: #fff; color: #8f3f12; }
html[data-season="thanksgiving"] .drive-banner .btn-coral:hover { background: #ffe08a; color: #5b2a10; }
html[data-season="thanksgiving"] .drive-section { background: #fdf1e2; border-top-color: #f6a12b; }

/* ── Winter holidays: navy and gold, string lights, twinkling star, from flyer.html ── */
html[data-season="winter"] .season-trim {
  background: #16313d;
  background-image: radial-gradient(circle at 10px 5px, #f2c46d 0 3.5px, transparent 4.2px), radial-gradient(circle at 30px 5px, #ff8a72 0 3.5px, transparent 4.2px),
    radial-gradient(circle at 50px 5px, #8fd5ad 0 3.5px, transparent 4.2px);
  background-size: 60px 10px; background-repeat: repeat-x; }
html[data-season="winter"] .season-glyph { display: inline; }
html[data-season="winter"] .season-glyph::before { content: "\2744"; margin-right: 6px; }
html[data-season="winter"] .ridge-star { fill: #ffe08a; filter: drop-shadow(0 0 8px rgba(255,224,138,.8)); transform-box: fill-box; transform-origin: center;
  animation: season-twinkle 3.2s ease-in-out infinite; }
html[data-season="winter"] .site-footer { border-top: 4px solid #f2c46d; }
html[data-season="winter"] .drive-banner { border-top-color: #f2c46d; }
@keyframes season-twinkle { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { html[data-season="winter"] .ridge-star { animation: none; } }

/* The drive pinned to the top of the events list */
.event-drive { border-left: 4px solid var(--coral); background: var(--sage-50); }

/* ── Hispanic Heritage Month (Sep 15 to Oct 15): marigold, magenta, green ── */
html[data-season="heritage"] .season-trim {
  background: repeating-linear-gradient(90deg, #e8a917 0 36px, #c2185b 36px 72px, #1d9e75 72px 108px, #2a5265 108px 144px); }
html[data-season="heritage"] .season-glyph { display: inline; }
html[data-season="heritage"] .season-glyph::before { content: "\2726"; margin-right: 6px; }

/* ── Día de los Muertos (Oct 28 to Nov 2): marigold and magenta papel picado, plum footer ── */
html[data-season="muertos"] .season-trim {
  background: repeating-linear-gradient(90deg, #f29f05 0 24px, #b0246b 24px 48px, #ffffff 48px 60px, #6a3a8c 60px 84px); }
html[data-season="muertos"] .season-glyph { display: inline; }
html[data-season="muertos"] .season-glyph::before { content: "\25C6"; margin-right: 6px; }
html[data-season="muertos"] .hero-band .eyebrow { color: #ffc65c; }
html[data-season="muertos"] .ridge-star { fill: #f29f05; }
html[data-season="muertos"] .site-footer { background: #3b1d3a; color: #ecd9ea; }
html[data-season="muertos"] .site-footer a { color: #ecd9ea; }
html[data-season="muertos"] .site-footer a:hover { color: #fff; }

/* ── Veterans Day (Nov 8 to 11) and Fourth of July (Jun 28 to Jul 4): red, white and blue ── */
html[data-season="veterans"], html[data-season="july4"], html[data-season="memorial"] { --coral: #b22234; --coral-dark: #8c1a29; }  /* white text 6.5:1 */
html[data-season="veterans"] .season-trim, html[data-season="july4"] .season-trim, html[data-season="memorial"] .season-trim {
  background: repeating-linear-gradient(90deg, #b22234 0 40px, #ffffff 40px 80px, #3c3b6e 80px 120px); box-shadow: inset 0 -1px 0 var(--line-warm); }
html[data-season="veterans"] .season-glyph, html[data-season="july4"] .season-glyph, html[data-season="memorial"] .season-glyph { display: inline; }
html[data-season="veterans"] .season-glyph::before, html[data-season="july4"] .season-glyph::before, html[data-season="memorial"] .season-glyph::before { content: "\2605"; margin-right: 6px; }
html[data-season="veterans"] .ridge-star, html[data-season="july4"] .ridge-star, html[data-season="memorial"] .ridge-star { fill: #ffffff; }
html[data-season="veterans"] .drive-banner, html[data-season="july4"] .drive-banner { border-top-color: #b22234; }

/* ── Greeting bar and tinted hero per theme ── */
html[data-season="heritage"] .season-bar { background: #0f6e56; }
html[data-season="heritage"] .hero-band { background: linear-gradient(180deg, #16313d 0%, #145a55 55%, #2a7a6a 100%); }
html[data-season="muertos"] .season-bar { background: #6a2a6e; }
html[data-season="muertos"] .hero-band { background: linear-gradient(180deg, #2a1535 0%, #3b1d3a 50%, #6a2a5e 100%); }
html[data-season="veterans"] .season-bar, html[data-season="july4"] .season-bar, html[data-season="memorial"] .season-bar { background: #3c3b6e; }
html[data-season="veterans"] .hero-band, html[data-season="july4"] .hero-band, html[data-season="memorial"] .hero-band { background: linear-gradient(180deg, #16213d 0%, #26305e 55%, #3c3b6e 100%); }
html[data-season="thanksgiving"] .season-bar { background: #8f3f12; }
html[data-season="thanksgiving"] .hero-band { background: linear-gradient(180deg, #2b2320 0%, #4a2a17 50%, #7a3a15 100%); }
html[data-season="winter"] .season-bar { background: #16313d; border-bottom: 2px solid #f2c46d; }
html[data-season="winter"] .hero-band {
  background: radial-gradient(circle at 12% 28%, rgba(255,255,255,.35) 0 2px, transparent 3px), radial-gradient(circle at 34% 62%, rgba(255,255,255,.3) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 18%, rgba(255,255,255,.35) 0 2px, transparent 3px), radial-gradient(circle at 83% 48%, rgba(255,255,255,.3) 0 2px, transparent 3px),
    linear-gradient(180deg, #0f2430 0%, #1d3f4f 55%, #2a5265 100%); }
