/* The hackathon's page (/hackathon, js/hackathon-site.js; part of the Events tab since 2026-10-26, with the All events
   link of one event's page at the top, .sd-back in docs.css): the hackathon's facts on the left and the sign-up card
   (its button goes to Luma) on the right from 960px, one column below that with the facts first (the RSVP
   button at the top goes to Luma too). The page head is the Docs tab's (.sd-head in docs.css). Every control is at least 44
   by 44, the site's touch target, and every color is a theme token, so both themes follow the device. */

.hk { margin-top: 12px; }
/* All events (2026-10-26), the back link of one event's page (.sd-back, 44 tall), right above the page head: the
   head's own top margin goes, so the college's lockup keeps its 30px clear space under the link and no more. */
.hk-back + .hk-head { margin-top: 0; }
/* The college's lockup above the kicker, sized like the sign-up page's (240 wide). Its clear space (the brand
   book) is at least the height of its W, 77 of the file's 115 rows: 28.9px at 240 wide. The margins keep that
   much between it and anything else on every side; nothing sits beside it, and it stands on the plain page. */
.hk-college { margin: 30px 0 30px; line-height: 0; }
.hk-college img { display: block; width: 240px; max-width: 100%; height: auto; }
.hk-head .lede { margin: 10px 0 0; }
.hk-line { margin: 2px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 650; color: var(--accent); text-wrap: balance; }
.hk-credits { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.hk-credits li { min-width: 0; }
.hk-credit-k { color: var(--muted); }
.hk-credits strong { font-weight: 650; color: var(--text); }
.hk-when {
  display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 0;
  font-size: 17px; font-weight: 700; color: var(--text);
}
/* The heads ups for the move to November 6 (hackathon-core.js): the date note highlighted under the date line,
   in the same amber as Home's tile note (home.css .build-note), and the Luma note in small type under the RSVP
   buttons. Both go once their constants are ''. */
.hk-date-note {
  display: inline-block; margin: 10px 0 0; padding: 4px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 750; line-height: 1.4; color: var(--text);
  background: color-mix(in srgb, var(--warn) 16%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent);
}
.hk-luma-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
/* After the hackathon (hackathonOver, hackathon-site.js): the thank-you in place of the RSVP buttons and the Luma
   note, in the green of the old form's thanks (.hk-thanks), with Join the Discord under it. */
.hk-over {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; font-weight: 650; max-width: 640px;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent);
}
.hk-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hk-cta, .hk-contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
/* A phrase kept on one line (ui.js keepWhole): a partner's short name, and the date and the hours (hackathon-core.js
   HACKATHON_KEEP_WHOLE) on this page and Home's hackathon tile. */
.hk-nobr { white-space: nowrap; }
.hk-mail { overflow-wrap: anywhere; }
.hk-cta .btn, .hk-contact-links .btn { min-height: 44px; }

.hk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .hk-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; }
  .hk-side { position: sticky; top: 16px; }
}
/* After the hackathon there is no sign-up card, so the facts have the row to themselves, kept to a reading width
   instead of an empty column beside them. */
.hk.is-over .hk-layout { grid-template-columns: minmax(0, 1fr); }
.hk.is-over .hk-info { max-width: 760px; }

.hk-info { display: grid; gap: 12px; min-width: 0; }
.hk-part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.hk-part h2 { margin: 0 0 8px; }
.hk-part p { margin: 0; }
.hk-part p + p { margin-top: 8px; }

.hk-part .hk-who-full { margin-top: 10px; color: var(--muted); }
.hk-who-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hk-who-list li {
  padding: 6px 12px; border-radius: 999px; font-weight: 650; font-size: 14px;
  background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
}

.hk-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.hk-details dt { font-weight: 700; }
.hk-details dd { margin: 0; color: var(--muted); }
@media (max-width: 420px) {
  .hk-details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hk-details dd { margin-bottom: 8px; }
}

/* Tracks: one box each, the name, its partner and what to build. */
.hk-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hk-track { padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.hk-track h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.hk-track .hk-track-with { margin: 2px 0 6px; font-size: 14px; font-weight: 650; color: var(--accent); }
.hk-track p { color: var(--text); }

/* Prizes: the total, then three places side by side (they stay side by side on a phone: each is short). */
.hk-prize-total { font-size: 22px; font-weight: 750; line-height: 1.2; }
.hk-prize-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hk-prize-list li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px;
  border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
}
.hk-prize-list li:first-child { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.hk-prize-amount { font-size: 20px; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--text); }
.hk-prize-place { font-size: 14px; color: var(--muted); }
.hk-part .hk-judging { margin-top: 10px; color: var(--muted); }

/* New to hackathons? (above Contact): its Become a member link stays on one line, even at 320 wide. */
.hk-member a { font-weight: 650; white-space: nowrap; }

.hk-faq { display: grid; gap: 6px; }
.hk-q { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.hk-q summary {
  display: list-item; min-height: 44px; padding: 11px 12px; line-height: 22px; cursor: pointer;
  font-weight: 650; list-style-position: inside;
}
.hk-q p { padding: 0 12px 12px; color: var(--muted); }

/* ---------- the sign-up card ---------- */

.hk-card { padding: 20px; }
.hk-card > h2 { font-size: 20px; margin: 0 0 4px; }
.hk-thanks {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-weight: 650;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent);
}
.hk-call { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; color: var(--accent); }
.hk-signup-lede { margin: 0 0 16px; }
.hk-rsvp { margin: 0; }
.hk-before { margin: 16px 0 0; font-size: 13px; }
.hk-before a { overflow-wrap: anywhere; }
