/* SIM-353 -- whole-page Look themes for the public event page.
   Classic (events.theme = '') loads neither this stylesheet nor
   data-theme and renders byte-identical to today -- every rule below is
   scoped under .pub-event[data-theme="<id>"], so a page or Look-tab
   preview with no data-theme is never touched by this file.

   The organiser's own colour (--ev / --accent / --accent-soft, set on
   .pub-event itself in public.css) is never redefined here -- every theme
   still uses it for buttons, links, the icon fallback and its own
   highlights.

   Light only. System font stacks only (no @font-face, no web fonts). */

/* ---------- shared scaffold: every theme sets these vars ---------- */
.pub-event[data-theme]{background:var(--paper);color:var(--line)}
/* Review fix (full-bleed, 2026-11-09): --paper is a custom property set on
   .pub-event itself -- custom properties don't inherit upward to <body>, so
   a body:has() rule painting <body> with var(--paper) never worked (the
   kit's own cream stayed the page background, and every theme rendered as
   a tinted 880px column with cream margins on desktop; background patterns
   like Confetti's dots or Terminal's grid stopped at the column edge
   instead of reaching the viewport). .pub and .pub-event are the SAME
   element here (hack-event.html: class="pub pub-event"), so instead of
   painting <body> separately, the themed wrapper itself goes full-bleed on
   desktop and keeps its own background -- :not(.preview-head) so the
   Look-tab preview (a small boxed sample, not the real page) stays a
   bounded card. 848px matches kit.css's .pub content width (880px
   max-width minus its 16px+16px padding), so the content column is the
   same width as Classic; only the margins outside it now carry the theme
   instead of the kit's cream. */
.pub-event[data-theme]:not(.preview-head){
  max-width:none;min-height:100vh;
  padding-inline:max(16px,calc((100% - 848px)/2));
}
/* Every theme drops the event-colour rule down the left of the hero --
   the whole page now carries the theme instead of one coloured edge.
   Applied to the Look-tab preview too, so it stays a true preview. Note:
   the preview element carries BOTH classes on one <div> (class="pub-event
   preview-head"), not nested, so it needs the compound form
   (.pub-event[data-theme].preview-head) rather than a descendant
   selector -- every theme-specific preview-head rule below does the same. */
.pub-event[data-theme] .ev-header,
.pub-event[data-theme].preview-head{border-left:0;padding-left:0}
/* Review fix: the Look-tab preview sat flush against its own coloured box
   edge (icon/title touching the border in Confetti/Garden/Terminal) and
   Boardroom's preview turned white-on-white (no visible edge against the
   app shell's own white card). Give every theme's preview breathing room
   and a thin edge; a theme that needs something stronger (Poster,
   Boardroom) sets its own border/background below and wins by source
   order at equal specificity. */
.pub-event[data-theme].preview-head{
  padding:12px 14px;border-radius:var(--r);border:1px solid var(--rule);
}
/* Card-shaped things route their radius through --r, buttons and chips
   through --r-sm, so most of the kit's own components (which hardcode
   their radius) pick up each theme's shape without a rule per class. */
.pub-event[data-theme] .card,
.pub-event[data-theme] .next,
.pub-event[data-theme] .site-card,
.pub-event[data-theme] .result-entry,
.pub-event[data-theme] .list{background:var(--surface);border-color:var(--rule)}
.pub-event[data-theme] .card,
.pub-event[data-theme] .next,
.pub-event[data-theme] .result-entry,
.pub-event[data-theme] .list{border-radius:var(--r)}
/* Review fix: kit.css only squares .site-card off (border:0;border-radius:0)
   under its own max-width:760px breakpoint -- a bare class selector, lower
   specificity than ours, so our unconditional border-radius:var(--r) above
   always won even on phone, reintroducing rounded blobs on the borderless
   list row in Garden/Confetti. Gate the radius to kit's own breakpoint
   (desktop only) so phone stays exactly what kit already draws. */
@media (min-width:761px){
  .pub-event[data-theme] .site-card{border-radius:var(--r)}
}
.pub-event[data-theme] .btn,
.pub-event[data-theme] .chip{border-radius:var(--r-sm)}
/* Review fix: kit.css's .next{border-left:4px solid var(--accent)} and
   .pub-event .next{border-left-color:var(--ev)} are both lower specificity
   than our border-color:var(--rule) above (which sets all four sides,
   including border-left-color), so the organiser's colour on .next's left
   bar was being beaten by the theme's own grey rule colour. Poster already
   gives .next a full ink border by design, so it's excluded here. */
.pub-event[data-theme=confetti] .next,
.pub-event[data-theme=boardroom] .next,
.pub-event[data-theme=garden] .next,
.pub-event[data-theme=terminal] .next{border-left-color:var(--ev)}
/* Review fix: square themes (Poster, Terminal; Boardroom and Garden are
   subtler but still squarer than the kit default 10px) get a frame radius
   derived from the theme's own card radius instead of kit's fixed 10px. */
.pub-event[data-theme] .site-frame{border-radius:calc(var(--r) * .5)}

/* =======================================================================
   Poster -- bold, for student hacks
   ======================================================================= */
.pub-event[data-theme=poster]{
  --paper:#fff6df;--paper-hi:#fff0c7;--surface:#fff;--line:#1c1a17;--line-soft:#4a453c;--line-faint:#6b6355;
  --rule:#1c1a17;--rule-hi:#1c1a17;--r:0;--r-sm:0;
}
.pub-event[data-theme=poster] h1,
.pub-event[data-theme=poster] h2,
.pub-event[data-theme=poster] .section-title,
.pub-event[data-theme=poster].preview-head h3{
  font-weight:900;text-transform:uppercase;letter-spacing:-.01em;
}
.pub-event[data-theme=poster] .ev-header,
.pub-event[data-theme=poster].preview-head{
  background:var(--accent-soft);border:3px solid #1c1a17;box-shadow:6px 6px 0 #1c1a17;
  padding:22px 18px;margin-top:16px;
}
.pub-event[data-theme=poster] .card,
.pub-event[data-theme=poster] .next{
  border:3px solid #1c1a17;box-shadow:4px 4px 0 #1c1a17;
}
.pub-event[data-theme=poster] .btn:not(.quiet){
  border:2px solid #1c1a17;box-shadow:3px 3px 0 #1c1a17;font-weight:800;
}
.pub-event[data-theme=poster] .chip{
  background:#fff;border:2px solid #1c1a17;color:#1c1a17;
}
.pub-event[data-theme=poster] .ev-icon{border-radius:0;border:3px solid #1c1a17}
/* Review fix: a bottom-only border read as a curved shadow once the shared
   border-radius:calc(var(--r)*.5) rule above went in (0 here, so no visual
   curve, but the frame now wants a full outline to match the square ink
   border the rest of Poster uses on cards/buttons/icon). */
.pub-event[data-theme=poster] .site-frame{border:2px solid #1c1a17}
/* Review fix: the tracks grid's cards touched the section/card below with
   no gap of their own (kit's .grid2 sets a column gap, not a bottom
   margin). */
.pub-event[data-theme=poster] #tracks .grid2{margin-bottom:14px}

/* =======================================================================
   Confetti -- bright and playful
   ======================================================================= */
.pub-event[data-theme=confetti]{
  --paper:#fffaf3;--paper-hi:#fff3e0;--surface:#fff;--line:#2a2622;--line-soft:#57504a;--line-faint:#6e665e;
  --rule:#efe6da;--rule-hi:#e0d2bb;--r:22px;--r-sm:999px;
  background-color:var(--paper);
  background-image:radial-gradient(var(--accent-soft) 2px, transparent 2.5px);
  background-size:22px 22px;background-position:0 0;
}
.pub-event[data-theme=confetti] h1,
.pub-event[data-theme=confetti] h2,
.pub-event[data-theme=confetti] h3{
  font-family:ui-rounded,'SF Pro Rounded','Arial Rounded MT Bold',system-ui;font-weight:800;
}
.pub-event[data-theme=confetti] .ev-header .ev-head-top{
  flex-direction:column;align-items:center;text-align:center;
}
.pub-event[data-theme=confetti] .ev-header{text-align:center}
.pub-event[data-theme=confetti] .ev-header .ev-icon{width:88px;height:88px;font-size:30px}
.pub-event[data-theme=confetti].preview-head{flex-direction:column;text-align:center}
/* The schedule's current item ("Now") gets a soft fill in the theme's own
   highlight colour instead of just the pill. */
.pub-event[data-theme=confetti] .sched li:has(.pill.stage){
  background:var(--accent-soft);border-top:0;border-radius:var(--r-sm);padding:11px 12px;
}
/* FAQ answers as separate rounded tiles instead of one bordered card with
   dividers between questions. */
.pub-event[data-theme=confetti] #faq details{
  background:var(--paper);border:1px solid var(--rule);border-radius:var(--r);
  margin:0 0 8px;padding:2px 14px;
}
.pub-event[data-theme=confetti] #faq details:last-child{margin-bottom:0}
.pub-event[data-theme=confetti] .card details+details{border-top:0}

/* =======================================================================
   Boardroom -- clean, for company events
   ======================================================================= */
.pub-event[data-theme=boardroom]{
  --paper:#f5f6f8;--paper-hi:#e9ecf0;--surface:#fff;--line:#18202b;--line-soft:#4a5463;--line-faint:#626c7a;
  --rule:#dde1e6;--rule-hi:#c7ccd4;--r:4px;--r-sm:4px;
}
/* Review fix: kit.css hardcodes .chip/.tag/.pill/.av to warm cream tones
   (#ece5d3 etc.), so a cool-toned theme like Boardroom still showed the
   kit's warm chips. :not(.stage):not(.accent) keeps the "Now" teal pill
   and the "Winner" accent pill untouched -- .chip/.tag/.av already read
   their text colour from var(--line)/var(--line-soft), which this theme
   already redefines above, so only the background needs resetting.
   #e9ecf0 keeps >=4.5:1 against both ink shades. */
.pub-event[data-theme=boardroom] .chip,
.pub-event[data-theme=boardroom] .tag,
.pub-event[data-theme=boardroom] .pill:not(.stage):not(.accent):not([class*="mat-"]),
.pub-event[data-theme=boardroom] .av:not(.accent){background:var(--paper-hi)}
.pub-event[data-theme=boardroom] h1,
.pub-event[data-theme=boardroom] h2,
.pub-event[data-theme=boardroom] h3{
  font-weight:650;letter-spacing:-.015em;
}
.pub-event[data-theme=boardroom] .ev-header,
.pub-event[data-theme=boardroom].preview-head{
  background:#fff;border-bottom:4px solid var(--ev);
}
.pub-event[data-theme=boardroom] .ev-header{padding:20px 18px 18px}
.pub-event[data-theme=boardroom] .sched .when{font-variant-numeric:tabular-nums}
/* Sponsors as a 2-column grid of bordered tiles instead of a stacked list. */
.pub-event[data-theme=boardroom] #sponsors .stack{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
.pub-event[data-theme=boardroom] #sponsors .stack>*+*{margin-top:0}
.pub-event[data-theme=boardroom] #sponsors .row-flex{
  border:1px solid var(--rule);border-radius:var(--r);padding:12px 14px;margin:0;
}
@media (max-width:480px){
  .pub-event[data-theme=boardroom] #sponsors .stack{grid-template-columns:1fr}
}

/* =======================================================================
   Garden -- calm and friendly
   ======================================================================= */
.pub-event[data-theme=garden]{
  --paper:#f2f5ee;--paper-hi:#e6ece0;--surface:#fbfcf8;--line:#22302a;--line-soft:#4b5a51;--line-faint:#5f6d64;
  --rule:#dfe6d8;--rule-hi:#cddbc7;--r:18px;--r-sm:999px;
}
/* Review fix: same warm-neutral leak as Boardroom -- kit's #ece5d3 cream
   chips/tags/pills/avatars clashed with Garden's cool green palette.
   #e6ece0 keeps >=4.5:1 against both ink shades. */
.pub-event[data-theme=garden] .chip,
.pub-event[data-theme=garden] .tag,
.pub-event[data-theme=garden] .pill:not(.stage):not(.accent):not([class*="mat-"]),
.pub-event[data-theme=garden] .av:not(.accent){background:var(--paper-hi)}
.pub-event[data-theme=garden] h1,
.pub-event[data-theme=garden] h2,
.pub-event[data-theme=garden] h3{
  font-family:ui-serif,Georgia,Cambria,'Times New Roman',serif;font-weight:600;
}
.pub-event[data-theme=garden] #faq summary{
  font-family:ui-serif,Georgia,Cambria,'Times New Roman',serif;
}
.pub-event[data-theme=garden] .ev-header{text-align:center}
.pub-event[data-theme=garden] .ev-header .ev-head-top{
  flex-direction:column;align-items:center;
}
.pub-event[data-theme=garden].preview-head{flex-direction:column;text-align:center}

/* =======================================================================
   Terminal -- for developer crowds
   ======================================================================= */
.pub-event[data-theme=terminal]{
  --paper:#fafaf7;--paper-hi:#e4e4e0;--surface:#fff;--line:#1b1d1a;--line-soft:#4d514b;--line-faint:#666a63;
  --rule:#dddbd0;--rule-hi:#c7c4b5;--r:0;--r-sm:0;
  background-color:var(--paper);
  background-image:
    linear-gradient(#ecebe4 1px, transparent 1px),
    linear-gradient(90deg, #ecebe4 1px, transparent 1px);
  background-size:24px 24px;
}
/* Review fix: same warm-neutral leak as Boardroom/Garden -- a flat neutral
   grey instead of kit's cream fits Terminal's monochrome palette.
   #e4e4e0 keeps >=4.5:1 against both ink shades. */
.pub-event[data-theme=terminal] .chip,
.pub-event[data-theme=terminal] .tag,
.pub-event[data-theme=terminal] .pill:not(.stage):not(.accent):not([class*="mat-"]),
.pub-event[data-theme=terminal] .av:not(.accent){background:var(--paper-hi)}
.pub-event[data-theme=terminal] h1,
.pub-event[data-theme=terminal] h2,
.pub-event[data-theme=terminal].preview-head h3,
.pub-event[data-theme=terminal] .sched .when,
.pub-event[data-theme=terminal] .chip{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.pub-event[data-theme=terminal] .btn:not(.quiet){border-width:2px}
.pub-event[data-theme=terminal] .btn.primary{
  background:var(--surface);color:var(--accent);border-color:var(--accent);
}
.pub-event[data-theme=terminal] .btn.primary:hover{background:var(--accent-soft)}
/* a11y review fix: the CSS content string / alt-text pair -- the second
   value (empty string) is what a screen reader announces, so these
   decorative glyphs stop being read aloud as "greater than" / "slash
   slash" before every primary button and section title. */
.pub-event[data-theme=terminal] .btn.primary::before{content:"> " / ""}
.pub-event[data-theme=terminal] .section-title::before{content:"// " / ""}
