/* Public-page-only rules: the public event page (hack-event.html), the
   people's-choice vote page (hack-voting.html) and the directory
   (hack-directory.html) all link this after kit.css. Group K owns kit.css;
   new rules for these three pages live here instead (polish pass,
   2026-10-30, Grok SIM-346 + the Opus audit). Loaded after kit.css so an
   equal-specificity selector here wins over kit.css's own. */

/* Team-site letter tiles: calmer than a solid block of the event's raw
   colour, which read as "huge solid red blocks" on a strong accent and had
   unreadable white-on-yellow text (audit Part B hack-event.html item 2). */
.site-frame.letter{background:var(--accent-soft);color:var(--accent)}

/* Team sites: three columns on desktop instead of two, with a 16:9 frame
   to match (audit item 2). */
@media (min-width:761px){
  .site-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.site-card .site-frame{aspect-ratio:16/9}

/* "On this page" chips wrap at every width; on a phone they used to run off
   the right edge with no sign of more (audit item 3, SIM-415). */
.chips{flex-wrap:wrap;overflow:visible}

/* People's choice CTA: kit.css's .btn-block is full width everywhere, which
   reads as an oversized bar once it is not inside the stage card's own
   phone-only full-width rule. Full width stays for phone; desktop goes back
   to a normal button (audit item 5). */
@media (min-width:761px){
  .pub-event .btn-block{width:auto}
}

/* Sponsor logos: the fixed size used to be an inline style (audit item 9). */
.sponsor-logo{width:28px;height:28px;object-fit:contain;border-radius:6px}

/* A visible break between announcements, so title/date/body groups don't
   run together (audit item 8). */
.pub-event #announcements .stack>*+*{border-top:1px solid var(--rule);padding-top:10px}

/* Directory event icons (review #15): kit.css's .ev-mark (a plain colour
   tile) gets an <img> appended for an event that has a real icon_url, same
   as hack-event.html's own .ev-icon; it needs its own fit/crop rule since
   kit.css only ever styled the tile itself, never an image inside it. */
.ev-mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* Vote page status line (Grok re-test, 2026-10-30): kit.css has no standing
   "live" message colour since every signed-in screen uses ui.live(main)
   instead; this public page sets its own error/success colour on the same
   muted status line the directory uses. */
#live.live-err{color:var(--danger)}
#live.live-ok{color:var(--ok)}

/* Apply to a hackathon (owner, 2026-10-31): a directory row can now hold a
   second action (an Apply button, only when that event takes applications),
   so the whole row is no longer one <a> -- kit.css's own .list .r styles
   an <a>, with its own colour/underline reset baked in; here the row's
   title link (.main) needs that same reset by hand, and the title is
   allowed to wrap onto a second line (kit.css's plain .list .r .main b
   truncates to one line with an ellipsis, which was fine for a whole-row
   link but now clips the one piece of text telling someone what the
   event is). The wrap rule excludes .list.results explicitly, so it can
   never change the event page's own results-row truncation; .main is
   always a <span> there anyway, never an <a>, so the reset rule below
   only ever matches here regardless. */
.list .r a.main{color:inherit;text-decoration:none}
.list:not(.results) .r .main b{white-space:normal}
