/* Red Planet Learn: optional SEASONAL layers (v1.0.0). Kid-safe, gentle, secular. Loaded after learn-lab.css.
   Master switch = the data-season attribute on <body>:
     data-season="auto"          date-based (default): Nov 1-30 = thanksgiving, Dec 1-Jan 2 = christmas, otherwise nothing
     data-season="off"           force the plain evergreen space-lab look
     data-season="thanksgiving"  or "christmas": force a layer on (handy for previews)
   learn-season.js resolves it to body[data-season-active]; every rule below is keyed to that attribute, so with no value
   (or without the JS) the evergreen base is shown. To retire: set data-season="off" or delete the two season tags. */

body[data-season-active="christmas"] .xmas-only{display:flex}
body[data-season-active="christmas"] .rover-santa-hat,body[data-season-active="christmas"] .snow-cap{display:inline}
/* header candy ribbon */
body[data-season-active="christmas"] .header{border-image:linear-gradient(90deg,#e0364b 0 12.5%,#fff 12.5% 25%,#e0364b 25% 37.5%,#fff 37.5% 50%,#1f9d62 50% 62.5%,#fff 62.5% 75%,#1f9d62 75% 87.5%,#fff 87.5% 100%) 1;border-bottom-width:3px}
/* string lights along the hero top */
body[data-season-active="christmas"] .lab-hero::after,body[data-season-active="christmas"] .lab-strip::after{content:"";position:absolute;left:0;right:0;top:0;height:14px;pointer-events:none;
  background:radial-gradient(circle at 12px 7px,#ff5a6e 0 4px,transparent 5px) 0 0/48px 14px repeat-x,
             radial-gradient(circle at 24px 7px,#ffd23f 0 4px,transparent 5px) 0 0/48px 14px repeat-x,
             radial-gradient(circle at 36px 7px,#3ddc97 0 4px,transparent 5px) 0 0/48px 14px repeat-x,
             linear-gradient(#2a6b4c,#2a6b4c) 0 1px/100% 2px no-repeat;opacity:.95}
body[data-season-active="christmas"] .lab-eyebrow{background:#fff0f1;border-color:#ffc5cb;color:#b3263a}
body[data-season-active="christmas"] .lab-eyebrow .dot{background:#e0364b;box-shadow:0 0 0 3px rgba(224,54,75,.22)}
body[data-season-active="christmas"] .lab-hero{background:linear-gradient(135deg,#ffffff 0%,#eef8ff 55%,#e2f2ff 100%)}
/* snow drift under hero / strip */
body[data-season-active="christmas"] .lab-hero{padding-bottom:3.2rem}
body[data-season-active="christmas"] .lab-drift{display:block}
.lab-drift{position:absolute;left:-2%;right:-2%;bottom:-1px;height:34px;pointer-events:none;
  background:radial-gradient(60px 28px at 40px 34px,#fff 98%,transparent 100%) 0 0/110px 34px repeat-x,radial-gradient(80px 22px at 70px 34px,#e9f4ff 98%,transparent 100%) 30px 8px/150px 34px repeat-x}
body[data-season-active="christmas"] .season-banner{align-items:center;gap:.6rem;margin:.9rem 0 0;padding:.55rem .95rem;border-radius:14px;background:#fff0f1;border:1px solid #ffc5cb;color:#8e1f30;font-weight:700;font-size:.92rem;max-width:560px}
body[data-season-active="christmas"] .lab-strip .season-banner{grid-column:1/-1;margin:0;max-width:none}
body[data-season-active="christmas"] .lab-chips li:nth-child(4n+1){--c:#ffd9de}body[data-season-active="christmas"] .lab-chips li:nth-child(4n+2){--c:#d4f5e3}
body[data-season-active="christmas"] .section-title::after,body[data-season-active="christmas"] .lab-section-head h2::after{background:linear-gradient(90deg,#ff5a6e,#fff,#3ddc97)}
body[data-season-active="christmas"] .btn-primary{background:linear-gradient(135deg,#ff5a6e,#e0364b);color:#fff;box-shadow:0 6px 18px rgba(224,54,75,.4)}
body[data-season-active="christmas"] .feature-box::before,body[data-season-active="christmas"] .portfolio-card::before{background:repeating-linear-gradient(90deg,#e0364b 0 14px,#fff 14px 28px,#1f9d62 28px 42px,#fff 42px 56px)}
/* falling snow (created by learn-season.js) */
.lab-fall{position:fixed;inset:0;z-index:5;pointer-events:none;overflow:hidden}
.lab-bit{position:absolute;top:-14px;color:#fff;text-shadow:0 0 6px rgba(160,210,255,.9);opacity:.85;line-height:1;will-change:transform;user-select:none}
@media (prefers-reduced-motion:no-preference){
  .lab-bit{animation:bit-fall var(--d,12s) linear var(--delay,0s) infinite}
}
@media (prefers-reduced-motion:reduce){.lab-bit{top:var(--y,20%);animation:none;opacity:.55}}
@keyframes bit-fall{0%{transform:translate3d(0,-5vh,0) rotate(0)}50%{transform:translate3d(var(--dx,20px),55vh,0) rotate(180deg)}100%{transform:translate3d(calc(var(--dx,20px)*-.6),108vh,0) rotate(360deg)}}

/* ================= THANKSGIVING (warm harvest + gratitude) ================= */
body[data-season-active="thanksgiving"] .tg-only{display:flex}
body[data-season-active="thanksgiving"] .rover-harvest,body[data-season-active="thanksgiving"] .tg-wheat{display:inline}
body[data-season-active="thanksgiving"] .header{border-bottom:3px solid #e8a33d}
body[data-season-active="thanksgiving"] .lab-hero{background:linear-gradient(135deg,#fffdf7 0%,#fff1da 55%,#ffe4bd 100%)}
body[data-season-active="thanksgiving"] .lab-hero::after,body[data-season-active="thanksgiving"] .lab-strip::after{content:"";position:absolute;left:0;right:0;top:0;height:7px;pointer-events:none;background:repeating-linear-gradient(90deg,#c4572b 0 40px,#e8a33d 40px 80px,#8a9a3b 80px 120px,#d98324 120px 160px)}
body[data-season-active="thanksgiving"] .lab-eyebrow{background:#fff0d6;border-color:#f3cf94;color:#8a4a0e}
body[data-season-active="thanksgiving"] .lab-eyebrow .dot{background:#d98324;box-shadow:0 0 0 3px rgba(217,131,36,.25)}
body[data-season-active="thanksgiving"] .lab-hero h1.title span{background:linear-gradient(135deg,#c4572b,#e8a33d);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body[data-season-active="thanksgiving"] .lab-hero .btn-secondary{border-color:#f3cf94}
body[data-season-active="thanksgiving"] .lab-trust li{border-color:#f3dcb4;color:#6b3f12}
body[data-season-active="thanksgiving"] .lab-strip{background:linear-gradient(135deg,#fffdf7,#ffeccd)}
body[data-season-active="thanksgiving"] .lab-strip h2{color:#8a4a0e}
body[data-season-active="thanksgiving"] .lab-chips li:nth-child(4n+1){--c:#ffe0b0}body[data-season-active="thanksgiving"] .lab-chips li:nth-child(4n+2){--c:#f6d3c2}body[data-season-active="thanksgiving"] .lab-chips li:nth-child(4n+3){--c:#e6ecb8}
body[data-season-active="thanksgiving"] .btn-primary{background:linear-gradient(135deg,#f2a33a,#d9791f);color:#2a1500;box-shadow:0 6px 18px rgba(230,150,40,.4)}
body[data-season-active="thanksgiving"] .section-title::after,body[data-season-active="thanksgiving"] .lab-section-head h2::after{background:linear-gradient(90deg,#c4572b,#e8a33d,#8a9a3b)}
body[data-season-active="thanksgiving"] .feature-box::before,body[data-season-active="thanksgiving"] .portfolio-card::before{background:linear-gradient(90deg,#c4572b,#e8a33d,#8a9a3b)}
body[data-season-active="thanksgiving"] .lab-skill:hover{border-color:#f2a33a}
body[data-season-active="thanksgiving"] .season-banner{align-items:center;gap:.6rem;margin:.9rem 0 0;padding:.55rem .95rem;border-radius:14px;background:#fff0d6;border:1px solid #f3cf94;color:#7a3f0a;font-weight:700;font-size:.92rem;max-width:560px}
body[data-season-active="thanksgiving"] .lab-strip .season-banner{grid-column:1/-1;margin:0;max-width:none}
/* SVG scene: warm sky + golden hour */
body[data-season-active="thanksgiving"] .sc-sky-top{stop-color:#ffcf8a}
body[data-season-active="thanksgiving"] .sc-sky-bot{stop-color:#fff3dc}
body[data-season-active="thanksgiving"] .sc-sun{fill:#ffb347}
@media (prefers-reduced-motion:no-preference){body[data-season-active="thanksgiving"] .rover-harvest .tg-sway{transform-box:fill-box;transform-origin:50% 100%;animation:tg-sway 3s ease-in-out infinite}}
@keyframes tg-sway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
body[data-season-active="thanksgiving"] .lab-leaf{color:inherit;text-shadow:none;opacity:.8}

/* v1.1 seasonal touches for new blocks */
body[data-season-active="christmas"] .tryit-card{border-top-color:#d6384a;box-shadow:0 18px 44px rgba(3,16,36,.4),0 0 0 3px rgba(31,138,76,.35)}
body[data-season-active="christmas"] .lab-better strong{color:#1f7a45}
body[data-season-active="thanksgiving"] .tryit-card{border-top-color:#e08a1e}
body[data-season-active="thanksgiving"] .tryit-tile{background:#ffe3b3}
body[data-season-active="thanksgiving"] .tryit-tile:nth-child(3n+2){background:#f2d2a0}
body[data-season-active="thanksgiving"] .tryit-tile:nth-child(3n){background:#e6dca0}
