/* community-event.css — community event pages (S680, D-S680-EVENTS): the committee editor (event-edit.html) and the
   public event page (events/TYPE/YEAR/SLUG.html). A narrow reading column, fields grouped into cards, labels above
   fields, a two-column row for dates, and a save bar that stays in reach. Theme tokens only. */
.ce-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.ce-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.ce-title { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin: 0; color: var(--color-text); }
.ce-sub { font-size: 15px; color: var(--color-text-dim); margin: 0 0 18px; }
.ce-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--color-border-strong); color: var(--color-text); background: var(--color-surface-raised); }
.ce-status-on { color: var(--status-ok); border-color: var(--status-ok); }
.ce-msg { min-height: 22px; font-size: 15px; color: var(--color-text-mid); margin: 0 0 10px; }
.ce-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 18px 18px 6px; margin: 0 0 16px; }
.ce-card-h { font-size: 17px; font-weight: 700; color: var(--color-text); margin: 0 0 4px; }
.ce-card-p { font-size: 14px; color: var(--color-text-dim); margin: 0 0 14px; }
.ce-field { margin: 0 0 14px; }
.ce-lbl { display: block; font-size: 14px; font-weight: 600; color: var(--color-text); margin: 0 0 5px; }
.ce-hint { display: block; font-size: 13px; color: var(--color-text-dim); margin: 4px 0 0; }
.ce-in { display: block; width: 100%; box-sizing: border-box; font-size: 16px; line-height: 1.45; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--color-input-border); background: var(--color-input-bg); color: var(--color-input-text);
  white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.ce-in:focus { border-color: var(--color-accent-c); }
.ce-in-multi { min-height: 76px; }
.ce-in-short { max-width: 220px; }
.ce-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ce-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; margin: 0 0 16px;
  background: var(--color-surface-raised); border: 1px solid var(--color-border-strong); border-radius: 12px; }
.ce-bar-note { font-size: 13px; color: var(--color-text-dim); flex: 1 1 160px; }
.ce-editors { list-style: none; margin: 0 0 12px; padding: 0; }
.ce-editors li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--color-border); font-size: 15px; color: var(--color-text); overflow-wrap: anywhere; }
.ce-editors li:last-child { border-bottom: 0; }
.ce-pick { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.ce-foot { margin-top: 24px; text-align: center; font-size: 14px; color: var(--color-text-dim); }

/* Public event page */
.ce-pub-when { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ce-pub-text { font-size: 16px; line-height: 1.6; color: var(--color-text); margin: 0 0 12px; overflow-wrap: anywhere; }
.ce-pub-demo { font-size: 14px; color: var(--color-text-dim); border: 1px dashed var(--color-border-strong); border-radius: 8px; padding: 8px 12px; margin: 0 0 16px; }
.ce-pub-note { background: var(--color-accent-c-tint); border: 1px solid var(--color-accent-c-border); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; }

@media (max-width: 560px) {
  .ce-row { grid-template-columns: 1fr; }
  .ce-title { font-size: 22px; }
  .ce-card { padding: 14px 14px 4px; }
}

/* S680 D-S680-EVENTMEDIA: committee look, images, links and videos. The accent is one of eight category tokens;
   the page theme is one of four fixed backgrounds. Text always sits on a card surface. */
.ce-accent-blue { --ce-accent: var(--cat-blue); }
.ce-accent-green { --ce-accent: var(--cat-green); }
.ce-accent-teal { --ce-accent: var(--cat-teal); }
.ce-accent-orange { --ce-accent: var(--cat-orange); }
.ce-accent-purple { --ce-accent: var(--cat-purple); }
.ce-accent-gold { --ce-accent: var(--cat-gold); }
.ce-accent-coral { --ce-accent: var(--cat-coral); }
.ce-accent-sage { --ce-accent: var(--cat-sage); }
.ce-page .ce-card { border-top: 4px solid var(--ce-accent, var(--color-border)); }
.ce-page .ce-title { border-bottom: 3px solid var(--ce-accent, var(--color-border)); padding-bottom: 6px; }
body.ce-theme-ember { background: var(--color-amber-tint); }
body.ce-theme-river { background: var(--color-accent-c-tint); }
body.ce-theme-night { background: var(--viz-ink-deep); }
body.ce-theme-night .ce-title, body.ce-theme-night .ce-tagline, body.ce-theme-night .ce-foot,
body.ce-theme-night .ce-intro, body.ce-theme-night .ce-footer-text,
body.ce-theme-night .ce-pub-demo, body.ce-theme-night .ce-msg { color: var(--color-text-on-dark); }
body.ce-theme-night .ce-foot a { color: var(--color-text-on-dark); }
.ce-banner { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; margin: 0 0 16px; }
.ce-titlerow { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.ce-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-border); flex: 0 0 auto; }
.ce-tagline { font-size: 17px; color: var(--color-text-mid); margin: 0 0 14px; }
.ce-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 12px; }
.ce-photo { margin: 0; }
.ce-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--color-surface-raised); }
.ce-photo figcaption { font-size: 14px; color: var(--color-text-dim); margin: 6px 0 0; }
.ce-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.ce-linkbtn { display: inline-block; font-size: 15px; font-weight: 600; padding: 9px 14px; border-radius: 8px; text-decoration: none;
  color: var(--color-text); background: var(--color-surface-raised); border: 2px solid var(--ce-accent, var(--color-border-strong)); }
.ce-footer-text { font-size: 15px; line-height: 1.6; color: var(--color-text-mid); text-align: center; margin: 20px 0 0; white-space: pre-line; }

/* Editor: choosers, image slots and repeatable rows */
.ce-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ce-choice { font-size: 15px; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--color-text);
  background: var(--color-surface-raised); border: 2px solid var(--color-border); }
.ce-choice[aria-pressed="true"] { border-color: var(--color-accent-c); font-weight: 700; }
.ce-swatch { width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; border: 3px solid var(--color-surface); background: var(--ce-accent);
  outline: 1px solid var(--color-border-strong); }
.ce-swatch[aria-pressed="true"] { outline: 3px solid var(--color-text); }
.ce-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }
.ce-slot img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border); }
.ce-slot-empty { width: 120px; height: 80px; border-radius: 8px; border: 1px dashed var(--color-border-strong); display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--color-text-dim); }
.ce-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ce-rows { margin: 0 0 10px; }
.ce-rowitem { border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 12px 2px; margin: 0 0 10px; }

/* S680 D-S680-EVENTAUDIO: tap-to-play sound clip with its credit line */
.ce-listen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.ce-listen .ce-linkbtn { cursor: pointer; font-family: inherit; }
.ce-credit { font-size: 14px; color: var(--color-text-dim); }
/* S680 D-S680-DEMOINVITE: invitation card on demonstration pages */
.ce-invite { border: 2px solid var(--ce-accent, var(--color-accent-c)); }
.ce-invite-list { margin: 0 0 14px; padding-left: 20px; font-size: 15px; line-height: 1.7; color: var(--color-text); }
.ce-invite-btn { font-weight: 700; }
/* S680 D-S680-EVENTMEDIA: sample placeholders, shown only on demonstration pages */
.ce-ph { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; color: var(--color-text-dim);
  background: var(--color-surface-raised); border: 2px dashed var(--color-border-strong); border-radius: 8px; }
.ce-ph-banner { width: 100%; aspect-ratio: 3 / 1; margin: 0 0 16px; }
.ce-logo.ce-ph { font-size: 12px; }
.ce-ph-photo { width: 100%; aspect-ratio: 4 / 3; }
.ce-ph-btn { border-style: dashed; color: var(--color-text-dim); cursor: default; }
body.ce-theme-night .ce-credit { color: var(--color-text-on-dark-muted); }
