/* Chill Up public event calendar styles (shared by /events/ and the fixture harness). */
:root {
  --bg:#0a0a0a; --card:#141414; --border:#242424; --text:#e7e7e7; --muted:#8b8b8b; --accent:#f0652b;
  --accent-soft:rgba(240,101,43,.12); --yellow:#fbbf24; --green:#4ade80; --blue:#60a5fa; --purple:#a78bfa;
  --red:#ef4444; --orange:#fb923c; --gray:#555;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html.sheet-open{overflow:hidden}
body{margin:0;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:radial-gradient(ellipse at top,#1a100a 0%,var(--bg) 55%);color:var(--text)}
a{color:inherit}
.wrap{max-width:1440px;margin:0 auto;padding:16px 12px 32px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-height:44px}
.brand img{width:38px;height:38px;filter:drop-shadow(0 0 18px rgba(240,101,43,.2))}
.brand strong{display:block;font-size:15px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.brand span{display:block;font-size:13px;color:var(--muted)}
.navlinks{display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;border:1px solid var(--border);background:#101010;color:var(--text);text-decoration:none;font-weight:700;font-size:14px;min-height:44px}
.btn:hover{border-color:var(--accent);background:var(--accent-soft)}
.btn-accent{background:var(--accent);border-color:var(--accent);color:#050505}
.btn-accent:hover{background:#ff7d45;border-color:#ff7d45;color:#050505}
.hero{padding:8px 0 4px;text-align:center}
.eyebrow{display:inline-block;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
h1{margin:0;font-size:clamp(28px,7vw,48px);line-height:1.05;letter-spacing:-.04em}
.sub{max-width:880px;margin:10px auto 0;color:var(--muted);font-size:14px;line-height:1.6}
.hero-cta{display:flex;justify-content:center;margin-top:14px;gap:10px;flex-wrap:wrap}
.section-head{margin:14px 0 8px}
.status{margin:0;color:var(--muted);font-size:13px;min-height:1.4em}
.status:empty{display:none}
.retry{margin-top:10px}
[hidden]{display:none!important}

/* ---- calendar -------------------------------------------------------- */
.calendar-shell{display:grid;gap:10px}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.month-label{font-size:17px;font-weight:900;letter-spacing:-.03em}
.month-actions{display:flex;gap:8px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--border);background:#101010;color:var(--text);font-weight:800;font-size:15px;cursor:pointer}
.icon-btn:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}
.icon-btn:disabled{opacity:.4;cursor:default}
.calendar-viewport{min-width:0}
.weekday-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:4px}
.weekday{display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);min-width:0}
.weekday-short{text-decoration:none;border:0}
.weekday-full{display:none}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.day-cell{position:relative;min-width:0;min-height:58px;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:6px 5px;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:left;color:var(--text);font:inherit}
.day-cell::before{content:'';position:absolute;inset:0 0 auto 0;height:3px;background:var(--border)}
.tone-yellow::before{background:var(--yellow)}
.tone-green::before{background:var(--green)}
.tone-red::before{background:var(--red)}
.tone-blue::before{background:var(--blue)}
.tone-purple::before{background:var(--purple)}
.tone-orange::before{background:var(--orange)}
.tone-gray::before{background:var(--gray)}
.day-cell--blank{background:transparent;border-style:dashed;opacity:.3;min-height:0}
.day-cell--empty,.day-cell--closed,.day-cell--weekly{opacity:.72}
.day-cell--event{cursor:pointer;border-color:#333;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0)),var(--card)}
.day-cell--event:hover,.day-cell--event:focus-visible{border-color:var(--accent);outline:none;box-shadow:0 0 0 2px var(--accent-soft)}
.day-cell--today{box-shadow:inset 0 0 0 1px var(--accent)}
.day-head{display:flex;align-items:center;gap:4px;min-width:0}
.day-num{font-size:13px;font-weight:900;color:#fff}
.day-open-hint{position:absolute;top:4px;right:6px;color:var(--muted);font-size:14px;line-height:1}
.day-tags{display:none;flex-wrap:wrap;gap:3px;min-width:0}
.day-tag{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 6px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.04);font-size:10px;font-weight:700;letter-spacing:.02em}
.day-tag--muted{color:var(--muted)}
.day-dots{display:flex;align-items:center;flex-wrap:wrap;gap:3px;min-width:0}
.day-dot{width:7px;height:7px;border-radius:999px;background:var(--gray);flex:0 0 auto}
.day-dot.tone-yellow{background:var(--yellow)}
.day-dot.tone-green{background:var(--green)}
.day-dot.tone-red{background:var(--red)}
.day-dot.tone-blue{background:var(--blue)}
.day-dot.tone-purple{background:var(--purple)}
.day-dot.tone-orange{background:var(--orange)}
.day-count{font-size:9px;font-weight:800;color:var(--muted)}
.day-events{display:none}
.calendar-error{grid-column:1/-1;margin:0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--muted);font-size:14px}

/* ---- day detail sheet / panel ---------------------------------------- */
.day-dialog{position:fixed;left:0;right:0;bottom:0;top:auto;margin:0;padding:0;border:0;width:100%;max-width:100%;max-height:90vh;background:transparent;color:var(--text);overflow:visible}
.day-dialog::backdrop{background:rgba(0,0,0,.62)}
.sheet{display:flex;flex-direction:column;max-height:90vh;background:#0f0f0f;border:1px solid var(--border);border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -14px 40px rgba(0,0,0,.6);overflow:hidden}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 14px 10px;border-bottom:1px solid var(--border)}
.sheet-head-text{min-width:0}
.sheet-kicker{margin:0;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.sheet-title{margin:2px 0 0;font-size:16px;font-weight:900;letter-spacing:-.02em}
.sheet-today{margin:4px 0 0;font-size:12px;color:var(--muted)}
.sheet-close{flex:0 0 auto;width:44px;height:44px;border-radius:999px;border:1px solid var(--border);background:#101010;color:var(--text);font-size:22px;line-height:1;cursor:pointer}
.sheet-close:hover,.sheet-close:focus-visible{border-color:var(--accent);outline:none}
.sheet-scroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 14px calc(18px + env(safe-area-inset-bottom))}
.sheet-event + .sheet-event{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}
.sheet-event-name{margin:0;font-size:17px;font-weight:900;letter-spacing:-.02em;overflow-wrap:anywhere}
.sheet-event-date{margin:4px 0 10px;color:var(--muted);font-size:13px}
.sheet-event-link{display:inline-block;margin-top:10px;color:#ff9a62;font-size:12px;font-weight:700;text-decoration:none}
.sheet-event-link:hover{text-decoration:underline}
.slot-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.slot{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;align-items:start;padding:10px;border:1px solid var(--border);border-radius:10px;background:#101010}
.slot-time{font-size:13px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums}
.slot-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.slot-status{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--green)}
.slot-status--open{color:var(--accent)}
.slot-dj{font-size:15px;font-weight:800;color:#fff;text-decoration:none;overflow-wrap:anywhere}
a.slot-dj{border-bottom:1px dotted #ff9a62;text-underline-offset:2px}
a.slot-dj:hover,a.slot-dj:focus-visible{color:#ff9a62;outline:none}
.slot-dj--plain{color:var(--text)}
.slot-cta{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--accent);background:var(--accent-soft);color:#ff9a62;font-size:13px;font-weight:800;text-decoration:none}
.slot-cta:hover{background:var(--accent);color:#050505}
.sheet-note{margin:0;color:var(--muted);font-size:14px}
.sheet-cta{margin-top:16px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#101010}
.sheet-cta p{margin:0 0 8px;font-size:13px;color:var(--muted)}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.month-note{display:grid;grid-template-columns:1fr;gap:10px;margin-top:18px}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px;text-align:center}
.card .icon{font-size:24px;margin-bottom:6px}
.card h3{font-size:13px;color:var(--accent);margin:0 0 4px;text-transform:uppercase;letter-spacing:1px}
.card p{font-size:14px;color:var(--muted);margin:0}
.footer{margin-top:28px;padding-top:18px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.noscript-note{margin:0 0 12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--muted);font-size:14px}

@media (min-width:560px){
  .wrap{padding:18px 16px 40px}
  .month-grid,.weekday-row{gap:6px}
  .day-cell{min-height:74px;border-radius:12px}
  .slot{grid-template-columns:120px minmax(0,1fr)}
}
@media (min-width:700px){
  .nav{margin-bottom:28px}
  .brand span{display:block}
  .hero{padding:14px 0 8px}
  .sub{font-size:15px}
  .section-head{margin:18px 0 10px}
  .weekday-full{display:inline}
  .weekday-short{display:none}
  .day-cell{min-height:104px;padding:8px 7px;gap:6px}
  .day-num{font-size:14px}
  .day-cell--empty,.day-cell--closed,.day-cell--weekly{opacity:.8}
  .day-tags{display:flex}
  .day-dots{display:none}
  .day-events{display:grid;gap:3px;min-width:0}
  .day-event-name{font-size:11px;font-weight:700;line-height:1.15;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#eaeaea}
  .day-open-hint{display:none}
  .month-note{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:22px}
  .card{padding:22px}
  /* desktop: right-hand detail panel instead of a bottom sheet */
  .day-dialog{left:auto;right:0;top:0;bottom:0;height:100%;width:min(460px,100%);max-width:min(460px,100%);max-height:100vh}
  .sheet{height:100%;max-height:100vh;border-radius:0;border-right:0;border-top:0;box-shadow:-14px 0 40px rgba(0,0,0,.6)}
  .sheet-scroll{padding:16px 18px 24px}
}
@media (prefers-reduced-motion: no-preference){
  .day-cell{transition:border-color .15s ease,box-shadow .15s ease}
  .btn,.icon-btn,.slot-cta,.sheet-close{transition:background .15s ease,border-color .15s ease,color .15s ease}
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
