/* Schedule, announcements and the live stream page (viewer), and the admin's schedule editor. Stage UX13: colours are the shared tokens
   (tokens.css); the old purple, cyan, magenta and violet are gone. Calendar events are told apart by a warm accent and their label. */
.updates-panel{margin:24px 0;padding:28px;border:1px solid var(--edge);border-radius:18px;background:var(--surface)}.updates-panel h2{margin-top:0}.updates-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.updates-heading a,.updates-quicklinks a{color:var(--gold-text);text-decoration:none}.updates-quicklinks{display:flex;gap:24px;flex-wrap:wrap}.update-entry{padding:24px 0;border-top:1px solid var(--line)}.update-entry:first-child{border-top:0}.update-entry h3{margin:8px 0;font-size:22px}.update-entry time,.update-entry .help{font-size:13px;color:var(--text-muted)}.update-body{white-space:pre-line;line-height:1.8;color:var(--text-soft);overflow-wrap:anywhere}.event-date{display:inline-block;color:var(--gold-text);font-weight:700;font-size:13px;letter-spacing:.02em}.live-player{aspect-ratio:16/9;width:100%;background:var(--sunken);border-radius:12px;overflow:hidden;margin:20px 0}.live-player iframe{width:100%;height:100%;border:0}.live-state{font-size:12px;border:1px solid var(--edge-strong);border-radius:30px;padding:9px 14px;color:var(--text-muted)}.live-state[data-live=true]{color:var(--live);border-color:var(--live)}.updates-panel summary{cursor:pointer;color:var(--gold-text)}.updates-panel label{display:block;margin:18px 0}.updates-panel input,.updates-panel select,.updates-panel textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px}.updates-panel .update-check{display:flex;align-items:center;gap:12px}.update-check input{width:auto;margin:0}.updates-panel button{min-height:44px;border:1px solid var(--edge-strong);border-radius:8px;background:var(--raised);color:var(--gold-text);padding:11px 18px;font-weight:700;cursor:pointer}.updates-panel button:disabled{opacity:.5}.updates-panel button+button{margin-left:8px}@media(max-width:700px){.updates-panel{padding:20px}.updates-heading{align-items:flex-start;flex-direction:column}.live-state{align-self:flex-start}}
.calendar-toolbar,.calendar-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-toolbar h2{margin:5px 0}.calendar-filters{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.calendar-filters label{display:flex;align-items:center;gap:6px;border:1px solid var(--edge);border-radius:25px;padding:7px 10px;margin:0;font-size:11px;color:var(--text-soft)}.calendar-filters input{width:auto;margin:0;accent-color:var(--gold)}.calendar-grid,.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays span{text-align:center;font-size:12px;color:var(--text-muted);padding:12px}.calendar-day{min-height:112px;border-top:1px solid var(--edge);border-left:1px solid var(--line);padding:7px;min-width:0}.calendar-day[data-outside=true]{opacity:.4}.calendar-day[data-selected=true]{background:var(--gold-tint);box-shadow:inset 0 0 0 1px var(--gold-line)}.calendar-day .calendar-date{padding:3px 7px;border:0;background:transparent;color:var(--text);font-size:12px}.calendar-date[aria-current=date]{background:var(--gold-metal,var(--gold));color:var(--on-gold);border-radius:50%}.calendar-day .calendar-event{display:block;width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding:5px 7px;margin:3px 0;border:0;border-left:2px solid var(--edge-strong);border-radius:3px;background:var(--raised);color:var(--text-soft)}.calendar-event[data-type=stream]{border-color:var(--gold-strong);color:var(--gold-text);background:var(--gold-tint)}.calendar-event[data-type=raffle],.calendar-event[data-type=giveaway]{border-color:var(--gold);color:var(--gold-soft)}.calendar-event[data-type=poll]{border-color:var(--success);color:var(--success-text)}.calendar-event[data-type=leaderboard]{border-color:var(--gold-line);color:var(--gold-text)}.calendar-day .calendar-more{font-size:10px;padding:2px 5px;background:transparent;border:0}.calendar-agenda-entry{border-left:3px solid var(--gold);padding:14px 20px;margin:16px 0;background:var(--raised-2);border-radius:4px}.calendar-agenda-entry h3{margin:8px 0}.event-type{color:var(--gold-text);font-size:11px}.calendar-panel{padding:24px}#event-dialog{max-width:580px;background:var(--surface);color:var(--text);border:1px solid var(--gold);border-radius:16px;padding:28px}#event-dialog::backdrop{background:var(--scrim)}#event-dialog a{display:inline-block;color:var(--gold-text);margin:20px 20px 0 0}.live-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.live-info-grid .updates-panel{margin-top:0}.live-info-grid a,.live-actions a{color:var(--gold-text);text-decoration:none}.live-actions{display:flex;gap:14px;flex-wrap:wrap}.live-actions a{display:block;border:1px solid var(--edge-strong);background:var(--raised);padding:14px 20px;border-radius:8px}.stream-schedule-row{display:grid;grid-template-columns:1fr 1fr .8fr 2fr auto auto;gap:10px;align-items:end;border-bottom:1px solid var(--line);padding:10px 0}.stream-schedule-row label{font-size:11px}.stream-schedule-row button{margin-bottom:18px}.announcement-search{max-width:320px;font-size:12px;margin:0!important}.announcement-post{margin:24px 0;padding:28px;border:1px solid var(--edge);border-radius:16px;background:var(--surface)}.announcement-post time{display:block;font-size:11px;color:var(--faint)}.announcement-post h2{margin:14px 0!important;font-size:26px}.announcement-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:18px 0}.announcement-images img{width:100%;height:auto;max-height:550px;object-fit:contain;background:var(--sunken);border-radius:10px}.announcement-post details{margin-top:20px;border-top:1px solid var(--edge);padding-top:16px}.announcement-post summary{font-size:13px}.announcement-comment{margin:15px 0;padding:14px;background:var(--raised);border-radius:10px}.announcement-comment p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.announcement-comment strong{font-size:13px;color:var(--text)}.announcement-post textarea{margin-top:16px}.announcement-like{margin-top:8px!important}.announcement-like[aria-pressed=true]{color:var(--gold-text);border-color:var(--gold)}.announcement-post .eyebrow{font-size:11px}@media(max-width:1100px){.stream-schedule-row{grid-template-columns:1fr 1fr 1fr}.calendar-scroll{overflow-x:auto}.calendar-grid,.calendar-weekdays{min-width:650px}}@media(max-width:700px){.live-info-grid{grid-template-columns:1fr}.calendar-toolbar{align-items:flex-start;flex-direction:column}.calendar-panel{padding:15px}.announcement-post{padding:18px}.stream-schedule-row{grid-template-columns:1fr 1fr}.announcement-search{width:100%}}
.updates-panel .calendar-filters label{flex-direction:row;align-items:center}.updates-panel .calendar-filters input{display:inline-block;width:13px;height:13px;margin:0;flex-shrink:0}.stream-schedule-row .update-check{flex-direction:row}.announcement-comment time{margin-top:5px}
.calendar-day{cursor:pointer}

#create-post[hidden]{display:none!important}#create-post{font-size:12px;padding:9px 14px;white-space:nowrap;margin-left:auto}#create-post-dialog{width:min(620px,90vw);max-height:88vh;overflow-y:auto;background:var(--surface);color:var(--text);border:1px solid var(--gold);border-radius:18px;padding:28px}#create-post-dialog::backdrop{background:var(--scrim)}#create-post-form label{display:block;margin:18px 0;font-size:13px;color:var(--text-soft)}#create-post-form input,#create-post-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px}#create-post-image-preview{width:100%}#post-image-preview{display:block;max-width:100%;max-height:360px;object-fit:contain;margin:18px auto;border-radius:10px}#post-image-preview[hidden]{display:none}#create-post-form button{min-height:44px;border:1px solid var(--edge-strong);border-radius:8px;background:var(--raised);color:var(--gold-text);padding:11px 18px;font-weight:700;cursor:pointer}#create-post-form button:disabled{opacity:.5}.announcement-post h2{font-weight:850}.announcement-post>.update-body{margin-top:18px}
/* Stage UX14: while the stream status and the next stream load, a short grey placeholder instead of "Checking…" text. */
.live-state:empty{display:inline-block;width:96px;min-height:14px;border-color:var(--edge);background:var(--edge)}#next-stream-title:empty{height:24px;width:60%;border-radius:8px;background:var(--edge)}
/* Stage UX15: the schedule on phones. Below 600px the month grid (and the picked-day panel under it) gives way to the agenda list
   (site-calendar.js): a date heading per day, then each event's time, full title and kind as one 44px+ row that opens its details. Times
   and days are in the viewer's time zone. One column at 360px, nothing cut off, no sideways scrolling; the filter chips are 44px taps. */
.calendar-agenda{display:none}
@media(max-width:599px){.calendar-scroll,.calendar-day-panel{display:none}.calendar-agenda{display:block;margin-top:4px}
 .agenda-day{margin:0 0 18px}.agenda-date{margin:0 0 8px;font-size:16px;line-height:1.35;color:var(--gold-text);overflow-wrap:anywhere}.agenda-day[data-today=true] .agenda-date{color:var(--gold-strong)}
 .agenda-items{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .updates-panel .agenda-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;align-items:baseline;width:100%;min-height:44px;box-sizing:border-box;margin:0;padding:10px 12px;text-align:left;border:1px solid var(--edge);border-left:3px solid var(--edge-strong);border-radius:10px;background:var(--raised);color:var(--text);font-weight:400}
 .updates-panel .agenda-item[data-type=stream]{border-left-color:var(--gold)}
 .agenda-time{grid-row:1/span 2;font-weight:800;color:var(--gold-text);white-space:nowrap;font-variant-numeric:tabular-nums}
 .agenda-title{font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;white-space:normal}.agenda-kind{grid-column:2;font-size:12px;color:var(--text-muted)}
 .calendar-controls{width:100%}.calendar-controls button{flex:1 1 0}.updates-panel .calendar-filters label{min-height:44px;box-sizing:border-box;font-size:13px}
 #event-dialog{padding:20px}#event-dialog a{display:inline-flex;align-items:center;min-height:44px}}
#create-post-form textarea{background:var(--sunken);color:var(--text);border:1px solid var(--edge-strong);border-radius:9px;padding:13px;font:inherit;font-size:14px;line-height:1.6;resize:vertical}#create-post-form textarea::placeholder{color:var(--faint)}#create-post-form textarea:focus{outline:2px solid var(--focus);outline-offset:2px}#create-post-form button+button{margin-left:8px}
/* Stage UX17: the one button under "No announcements yet." (gold, 44px, full width on phones). */
.updates-empty-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:9px;background:var(--gold-metal,var(--gold));color:var(--on-gold);font-weight:800;text-decoration:none}@media(max-width:600px){.updates-empty-action{display:flex;width:100%;box-sizing:border-box}}
#announcement-search{min-height:44px}
/* TAP TARGETS (site review, 6 Nov 2026): the calendar filter chips (each one a label around its tick box) are 44px tall on computers too. */
.calendar-filters label{min-height:44px;box-sizing:border-box}
/* REMIND ME (Aaron, 9 Nov 2026): the event window's reminder button. Gold outline when off, filled gold when set (gold = rewards and the
   things you've opted into), 44px tall, with a short note under it. */
.event-remind{margin-top:16px}.event-remind[hidden]{display:none}
#event-remind{min-height:44px;padding:0 18px;border:1px solid var(--gold);border-radius:999px;background:transparent;color:var(--gold-text);font:inherit;font-weight:700;cursor:pointer;transition:transform .15s ease}
#event-remind.is-on{background:var(--gold);color:var(--on-gold)}#event-remind:active{transform:scale(.97)}#event-remind:disabled{opacity:.6}
.event-remind-note{margin:8px 0 0;color:var(--text-muted);font-size:.85rem}.event-remind-note:empty{display:none}
@media(prefers-reduced-motion:reduce){#event-remind{transition:none}#event-remind:active{transform:none}}
/* ANNOUNCEMENT VIDEOS (12 Nov 2026): the post's video in the feed, and its upload box in Create Post. */
.announcement-video{display:block;width:100%;max-height:70vh;margin:18px 0;background:var(--sunken);border-radius:10px;object-fit:contain}
.post-video-box{margin:12px 0 18px}.post-video-box[hidden]{display:none}.post-video-box video{display:block;width:100%;max-height:320px;background:var(--sunken);border-radius:10px}
.post-video-bar{height:8px;margin:12px 0 6px;border-radius:8px;background:var(--sunken);overflow:hidden}.post-video-bar span{display:block;height:100%;width:0;background:var(--gold);transition:width .2s}
@media(prefers-reduced-motion:reduce){.post-video-bar span{transition:none}}
.post-media-help{margin:-8px 0 12px;font-size:12px}
/* SCHEDULE FITS THE SCREEN (Aaron, 31 Oct): on a computer (1024px+ wide, 600px+ tall) the whole Schedule & Events page fits between the
   header and the footer with no page scroll. The title is one slim gold-on-marble strip with the time zone note beside it; the month grid
   takes the full width and the spare height (six rows share it), and the picked-day panel sits on the right with the event filters at its
   top (site-calendar.js moves them there and back) and scrolls inside itself if a day is busy. Each day is a whole-cell button (the date in
   the corner), titles are 12-13px and wrap to two lines, and a day with more than fits shows "+N More" (site-calendar.js fitCells). Phones
   and tablets (below 1024px, or a very short window) keep the layout above untouched. Colours are the shared tokens, so light works too. */
@media(min-width:1024px) and (min-height:600px){
 :root body[data-section=schedule]:has(#calendar-grid){height:100vh;height:100dvh;min-height:0}
 :root body[data-section=schedule]:has(#calendar-grid)>main{flex:1 1 0;min-height:0;width:100%;max-width:2200px;box-sizing:border-box;margin:0 auto;padding:12px clamp(16px,2.4vw,40px) 14px;
  display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,24vw,420px);grid-template-rows:auto auto auto minmax(0,1fr);column-gap:18px;row-gap:0;align-items:stretch}
 :root body[data-section=schedule]:has(#calendar-grid):has(#selected-date)>main{max-width:2200px;padding-left:clamp(16px,2.4vw,40px);padding-right:clamp(16px,2.4vw,40px)}
 :root body[data-section=schedule]:has(#calendar-grid)>.viewer-footer{margin-top:0;padding-top:2px;padding-bottom:2px}
 :root body[data-section=schedule]:has(#calendar-grid) main>.intro{grid-column:2;grid-row:1;justify-self:stretch;max-width:none;margin:0 0 10px;padding:12px 16px;border-radius:16px;
  display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left}
 :root body[data-section=schedule]:has(#calendar-grid) main>.intro>*{margin:0}
 :root body[data-section=schedule]:has(#calendar-grid) main>.intro h1{font-size:clamp(21px,1.6vw,28px);line-height:1.15}
 :root body[data-section=schedule]:has(#calendar-grid) main>.intro p:not(.eyebrow){font-size:12.5px;line-height:1.4;color:var(--text-soft)}
 :root body[data-section=schedule]:has(#calendar-grid) main>#page-status{grid-column:2;grid-row:2;margin:0 0 10px}
 :root body[data-section=schedule]:has(#calendar-grid) main>#page-status:empty{display:none}
 :root body[data-section=schedule]:has(#calendar-grid) main>#local-timezone{grid-column:2;grid-row:3;margin:0 0 10px;padding:0 4px;font-size:12px;line-height:1.45}
 :root body[data-section=schedule]:has(#calendar-grid) main>.calendar-panel{grid-column:1;grid-row:1/-1;margin:0;min-height:0;min-width:0;box-sizing:border-box;padding:12px 16px 14px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr);column-gap:16px;row-gap:0}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-toolbar{display:contents}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-toolbar>div:first-child{grid-column:1;grid-row:1;margin:0 0 8px}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-toolbar .eyebrow{margin:0}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-toolbar h2{margin:2px 0 0;font-size:clamp(20px,1.6vw,26px);line-height:1.15;white-space:nowrap}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-controls{grid-column:3;grid-row:1;align-self:center;margin:0 0 8px}
 :root body[data-section=schedule]:has(#calendar-grid) #calendar-status{grid-column:2;grid-row:1;align-self:center;justify-self:end;margin:0 0 8px;font-size:13px;color:var(--text-muted);text-align:right}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-panel>.calendar-filters{grid-column:1/-1;grid-row:2;margin:0 0 8px}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-scroll{grid-column:1/-1;grid-row:3;min-height:0;min-width:0;overflow:hidden;display:flex;flex-direction:column}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-grid,:root body[data-section=schedule]:has(#calendar-grid) .calendar-weekdays{min-width:0}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-weekdays span{padding:2px 6px 6px;font-size:12px;font-weight:700;letter-spacing:.04em}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-grid{flex:1 1 0;min-height:0;grid-template-rows:repeat(6,minmax(0,1fr))}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day{position:relative;min-height:0;overflow:hidden;box-sizing:border-box;padding:26px 6px 4px;display:flex;flex-direction:column;gap:4px}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-date{position:absolute;inset:0;z-index:0;width:100%;height:100%;min-height:0;margin:0;padding:3px 5px;border-radius:0;
  display:flex;align-items:flex-start;justify-content:flex-start;background:transparent;font-size:13px;font-weight:700;color:var(--text)}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-date>span{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 2px;box-sizing:border-box;border-radius:50%}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-date[aria-current=date]{background:transparent;color:var(--text)}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-date[aria-current=date]>span{background:var(--gold-metal,var(--gold));color:var(--on-gold)}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-date:hover{background:var(--gold-tint)}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-date:focus-visible{outline:2px solid var(--focus,var(--gold));outline-offset:-2px}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-event{position:relative;z-index:1;flex:none;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:4px 8px;
  display:flex;align-items:center;overflow:hidden;white-space:normal;text-align:left;
  font-size:clamp(12px,.72vw,13.5px);font-weight:600;line-height:1.28}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-event>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-event[hidden]{display:none}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day .calendar-more{position:absolute;top:5px;right:6px;z-index:1;pointer-events:none;min-height:0;height:22px;margin:0;padding:0 8px;
  display:inline-flex;align-items:center;border:1px solid var(--gold-line);border-radius:11px;background:var(--gold-tint);color:var(--gold-text);font-size:11px;font-weight:800;white-space:nowrap}
 :root body[data-section=schedule]:has(#calendar-grid) main>.calendar-day-panel{grid-column:2;grid-row:4;margin:0;min-height:0;min-width:0;box-sizing:border-box;padding:14px 16px;overflow-y:auto;overscroll-behavior:contain}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day-panel .calendar-filters{margin:0 0 14px;gap:6px}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day-panel .calendar-filters label{min-height:44px;box-sizing:border-box;padding:0 12px;font-size:12px;cursor:pointer}
 :root body[data-section=schedule]:has(#calendar-grid) .calendar-day-panel #selected-date{margin:0 0 4px;font-size:clamp(18px,1.3vw,22px);line-height:1.25}
 :root body[data-section=schedule]:has(#calendar-grid) #day-events .calendar-agenda-entry{margin:10px 0;padding:12px 14px}
 :root body[data-section=schedule]:has(#calendar-grid) #day-events .calendar-agenda-entry h3{margin:6px 0;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
 :root body[data-section=schedule]:has(#calendar-grid) #day-events .calendar-agenda-entry button{min-height:44px}
}
