/* Festival Calendar page — animated photo/gradient stage */
@property --c1 { syntax:'<color>'; inherits:true; initial-value:#d6401f; }
@property --c2 { syntax:'<color>'; inherits:true; initial-value:#2b0a10; }

.nav-fun em{ font-style:normal; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; background:linear-gradient(90deg,#d6401f,#f0a030); color:#fff; padding:2px 6px; border-radius:999px; margin-left:6px; vertical-align:2px; }

.fc-stage{ --c1:#d6401f; --c2:#2b0a10; position:relative; isolation:isolate; overflow:hidden; background:#0d0807; color:#fff; transition:--c1 .9s ease, --c2 .9s ease; min-height:calc(100vh - 70px); }

/* Calendar page is full-bleed: no white gutters around the stage */
body:has(.fc-stage) main.page{ max-width:none; padding:0; margin:0; }
body:has(.fc-stage) .site-footer{ margin-top:0; }

/* photo layers: crossfade + slow Ken Burns drift */
.fc-bg{ position:absolute; inset:-6%; z-index:-3; background-size:cover; background-position:center; opacity:0; transition:opacity 1.1s ease; will-change:opacity,transform; }
.fc-bg.on{ opacity:.9; animation:fcKen 16s ease-in-out infinite alternate; }
@keyframes fcKen{ from{ transform:scale(1) translate(0,0); } to{ transform:scale(1.12) translate(-2.5%,-2%); } }

/* animated gradient wash tinted by the active festival's colours */
.fc-wash{ position:absolute; inset:0; z-index:-2; background:
    radial-gradient(70% 60% at 15% 0%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, color-mix(in srgb, var(--c2) 75%, transparent), transparent 70%),
    linear-gradient(120deg, color-mix(in srgb, var(--c1) 45%, #0d0807), color-mix(in srgb, var(--c2) 55%, #0d0807), color-mix(in srgb, var(--c1) 45%, #0d0807));
  background-size:100% 100%,100% 100%,300% 300%; mix-blend-mode:multiply; animation:fcShift 14s ease-in-out infinite; opacity:.92; }
.fc-stage.has-photo .fc-wash{ opacity:.78; }
@keyframes fcShift{ 0%,100%{ background-position:0 0,0 0,0% 50%; } 50%{ background-position:0 0,0 0,100% 50%; } }
.fc-stage::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,.5)); pointer-events:none; }

/* drifting marigold petals */
.fc-petals{ position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.fc-petals span{ position:absolute; top:-6%; left:calc(var(--i) * 7.4% + 2%); width:calc(8px + (var(--i) % 4) * 3px); height:calc(11px + (var(--i) % 4) * 4px); border-radius:70% 0 70% 0; background:linear-gradient(135deg, #ffd27a, var(--c1)); opacity:.55; animation:fcFall calc(11s + var(--i) * .9s) linear infinite; animation-delay:calc(var(--i) * -1.7s); }
@keyframes fcFall{ 0%{ transform:translate3d(0,0,0) rotate(0); } 50%{ transform:translate3d(40px,60vh,0) rotate(200deg); } 100%{ transform:translate3d(-30px,125vh,0) rotate(400deg); } }

.fc-inner{ padding:clamp(18px,3vw,40px); display:flex; flex-direction:column; gap:20px; }
.glass{ background:rgba(14,10,9,.46); border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%); border-radius:22px; box-shadow:0 20px 50px rgba(0,0,0,.28); }

/* header */
.fc-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:16px 24px; }
.fc-eyebrow{ font-size:12px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:rgba(255,255,255,.7); }
.fc-h1{ margin:6px 0 8px; font-size:clamp(34px,6vw,64px); line-height:1.02; font-weight:800; letter-spacing:-.035em; }
.fc-h1 em{ font-style:normal; background:linear-gradient(90deg,#ffd27a,#ff7a59,#ffd27a); background-size:200% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:fcText 6s linear infinite; }
@keyframes fcText{ to{ background-position:200% 0; } }
.fc-sub{ margin:0; max-width:560px; color:rgba(255,255,255,.76); font-size:14.5px; line-height:1.55; }
.fc-controls{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.fc-toggle{ display:flex; padding:3px; border-radius:999px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); }
.fc-toggle button{ border:0; background:none; color:rgba(255,255,255,.75); font-weight:700; font-size:12.5px; padding:7px 18px; border-radius:999px; cursor:pointer; transition:.2s; }
.fc-toggle button.on{ background:#fff; color:#111; }
.fc-pill{ border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.12); color:#fff; font-weight:600; font-size:12.5px; padding:9px 16px; border-radius:999px; cursor:pointer; transition:transform .18s, background .2s; }
.fc-pill:hover{ background:rgba(255,255,255,.22); transform:translateY(-2px); }
.fc-next{ background:linear-gradient(90deg, rgba(214,64,31,.75), rgba(240,160,48,.7)); border-color:rgba(255,255,255,.35); }

/* month rail */
.fc-rail{ display:flex; align-items:center; gap:6px; overflow-x:auto; padding:2px 2px 6px; scrollbar-width:none; }
.fc-rail::-webkit-scrollbar{ display:none; }
.fc-yr{ flex:none; display:flex; align-items:center; gap:4px; margin-right:6px; font-weight:800; font-size:15px; }
.fc-yr button{ width:28px; height:28px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.1); color:#fff; cursor:pointer; }
.fc-yr button:disabled{ opacity:.3; cursor:default; }
.fc-m{ flex:none; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); color:#fff; border-radius:14px; padding:7px 12px; cursor:pointer; text-align:left; transition:.2s; min-width:86px; }
.fc-m:hover{ background:rgba(255,255,255,.18); transform:translateY(-2px); }
.fc-m b{ display:block; font-size:12.5px; font-weight:700; }
.fc-m small{ display:block; font-size:10px; color:rgba(255,255,255,.62); margin-top:1px; }
.fc-m .dots{ display:flex; gap:3px; margin-top:5px; height:5px; }
.fc-m .dots i{ width:5px; height:5px; border-radius:50%; background:linear-gradient(135deg,#ffd27a,#ff6a3d); }
.fc-m .dots i.lu{ background:none; border:1px solid #ffd27a; }
.fc-m.on{ background:#fff; color:#111; border-color:#fff; }
.fc-m.on small{ color:#777; }

/* layout */
.fc-main{ display:grid; gap:20px; grid-template-columns:minmax(0,1fr); }
@media (min-width:980px){ .fc-main{ grid-template-columns:minmax(0,1.25fr) minmax(340px,.85fr); align-items:start; } .fc-detail{ position:sticky; top:96px; } }

/* calendar */
.fc-cal{ padding:clamp(14px,2vw,22px); }
.fc-cal-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.fc-cal-title{ text-align:center; }
.fc-cal-title div{ font-size:clamp(20px,3vw,28px); font-weight:800; letter-spacing:-.02em; }
.fc-cal-title small{ font-size:12px; color:rgba(255,255,255,.65); }
.fc-arrow{ width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.1); color:#fff; font-size:22px; line-height:1; cursor:pointer; transition:.2s; }
.fc-arrow:hover{ background:#fff; color:#111; transform:scale(1.08); }

.fc-moon{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; min-height:4px; }
.fc-moon:not(:empty)::before{ content:"🌙 Moves with the moon"; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.65); }
.fc-moon button{ border:1px dashed rgba(255,210,122,.7); background:rgba(255,210,122,.12); color:#ffe9b8; border-radius:999px; padding:6px 13px; font-size:12.5px; font-weight:600; cursor:pointer; transition:.2s; animation:fcFloat 4s ease-in-out infinite; }
.fc-moon button:nth-child(odd){ animation-delay:-2s; }
.fc-moon button:hover, .fc-moon button.sel{ background:#ffd27a; color:#2b1500; border-style:solid; }
@keyframes fcFloat{ 50%{ transform:translateY(-3px); } }

.fc-grid{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:clamp(3px,.7vw,8px); }
.fc-dow{ text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.5); padding:4px 0 6px; }
.fc-dow:first-child{ color:#ff9b86; }
.fc-day{ position:relative; overflow:hidden; aspect-ratio:1/1.05; border-radius:clamp(10px,1.4vw,16px); border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.07); color:#fff; padding:clamp(4px,.8vw,9px); display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; text-align:left; cursor:pointer; transition:transform .2s ease, background .2s, box-shadow .25s; font:inherit; }
.fc-day:hover{ background:rgba(255,255,255,.16); transform:translateY(-3px); }
.fc-num{ font-size:clamp(14px,2.2vw,22px); font-weight:800; line-height:1; }
.fc-alt{ font-size:clamp(9px,1.1vw,11px); color:rgba(255,255,255,.55); font-weight:500; }
.fc-day.sat .fc-num{ color:#ff9b86; }
.fc-day.today{ border-color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.35); }
.fc-day.today .fc-num::after{ content:""; display:inline-block; width:6px; height:6px; margin-left:5px; border-radius:50%; background:#7dffb2; vertical-align:middle; box-shadow:0 0 8px #7dffb2; }
.fc-day.sel{ background:rgba(255,255,255,.28); transform:translateY(-3px) scale(1.04); z-index:2; }

/* festival days: photo thumb, tinted gradient, pulsing glow */
.fc-day.has-ev{ border-color:transparent; background:linear-gradient(145deg, var(--d1), var(--d2)); box-shadow:0 6px 22px color-mix(in srgb, var(--d1) 55%, transparent); animation:fcGlow 2.8s ease-in-out infinite; }
.fc-day.has-ev::before{ content:""; position:absolute; inset:0; background:var(--img, none) center/cover; opacity:.55; transition:opacity .3s, transform .6s; }
.fc-day.has-ev::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.7)); }
.fc-day.has-ev > *{ position:relative; z-index:1; }
.fc-day.has-ev:hover::before, .fc-day.has-ev.sel::before{ opacity:.9; transform:scale(1.12); }
.fc-day.has-ev .fc-alt{ color:rgba(255,255,255,.8); }
.fc-day.has-ev.sel{ box-shadow:0 0 0 2px #fff, 0 10px 30px color-mix(in srgb, var(--d1) 80%, transparent); }
@keyframes fcGlow{ 50%{ box-shadow:0 8px 30px color-mix(in srgb, var(--d1) 85%, transparent); } }
.fc-tag{ position:relative; z-index:1; width:100%; font-size:10.5px; font-weight:700; line-height:1.15; text-shadow:0 1px 4px rgba(0,0,0,.6); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:640px){ .fc-tag{ display:none; } .fc-day.has-ev::after{ background:rgba(0,0,0,.25); } }
.fc-day:focus-visible, .fc-m:focus-visible, .fc-pill:focus-visible, .fc-arrow:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.fc-cal-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:14px; font-size:12px; color:rgba(255,255,255,.65); }
.fc-link{ background:none; border:0; color:#fff; font-weight:600; text-decoration:underline; cursor:pointer; font-size:12px; }
.fc-key i{ display:inline-block; width:9px; height:9px; border-radius:50%; margin:0 3px 0 6px; vertical-align:middle; }
.k-ev{ background:linear-gradient(135deg,#ffd27a,#ff6a3d); } .k-today{ background:#7dffb2; }

/* detail panel */
.fc-detail{ overflow:hidden; padding:0; animation:fcRise .5s ease both; }
@keyframes fcRise{ from{ opacity:0; transform:translateY(14px); } }
.fd-photo{ position:relative; height:200px; background:linear-gradient(135deg,var(--d1,#d6401f),var(--d2,#2b0a10)); background-size:cover; background-position:center; }
.fd-photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 35%, rgba(14,10,9,.92)); }
.fd-badge{ position:absolute; left:16px; top:14px; z-index:1; background:rgba(0,0,0,.45); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.25); border-radius:999px; font-size:11px; font-weight:700; padding:5px 11px; letter-spacing:.04em; }
.fd-body{ padding:0 20px 22px; margin-top:-34px; position:relative; z-index:1; }
.fd-name{ margin:0 0 4px; font-size:26px; font-weight:800; letter-spacing:-.025em; line-height:1.1; }
.fd-loc{ font-size:13px; color:rgba(255,255,255,.7); }
.fd-loc a{ color:#ffd27a; text-decoration:none; font-weight:600; }
.fd-dates{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0; }
.fd-date{ border-radius:14px; padding:11px 13px; background:linear-gradient(145deg, color-mix(in srgb, var(--d1,#d6401f) 55%, transparent), rgba(255,255,255,.07)); border:1px solid rgba(255,255,255,.16); }
.fd-date small{ display:block; font-size:10px; letter-spacing:.1em; font-weight:800; color:rgba(255,255,255,.6); }
.fd-date b{ display:block; font-size:16px; margin-top:3px; line-height:1.2; }
.fd-date span{ font-size:11.5px; color:rgba(255,255,255,.65); }
.fd-note{ font-size:12.5px; color:rgba(255,255,255,.7); font-style:italic; margin:0 0 10px; }
.fd-teaser{ font-size:14px; line-height:1.55; color:rgba(255,255,255,.88); margin:0 0 16px; }
.fd-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.fd-btn{ text-decoration:none; font-size:13px; font-weight:700; padding:10px 18px; border-radius:999px; transition:transform .18s, background .2s; }
.fd-btn:hover{ transform:translateY(-2px); }
.fd-btn.main{ background:#fff; color:#111; }
.fd-btn.alt{ border:1px solid rgba(255,255,255,.35); color:#fff; background:rgba(255,255,255,.08); }
.fd-others{ margin-top:16px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12px; color:rgba(255,255,255,.6); }
.fd-others button{ border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.1); color:#fff; border-radius:999px; padding:5px 12px; font-size:12px; font-weight:600; cursor:pointer; }
.fd-others button.sel{ background:#fff; color:#111; }
.fd-empty{ padding:24px 20px 26px; }
.fd-empty .fd-name{ margin-top:12px; }
.fd-empty p{ color:rgba(255,255,255,.75); font-size:14px; line-height:1.55; margin:8px 0 16px; }

.fc-burst{ position:absolute; z-index:5; pointer-events:none; width:10px; height:14px; border-radius:70% 0 70% 0; }

@media (prefers-reduced-motion:reduce){
  .fc-bg.on, .fc-wash, .fc-petals span, .fc-day.has-ev, .fc-moon button, .fc-h1 em{ animation:none !important; }
  .fc-petals{ display:none; }
}
