/* whatson: shared styles. Design from Gemini 4 Argon (18 Nov 2026): newsprint off-white, charcoal ink,
   terracotta accent, Bricolage Grotesque for headings and Inter for text, hairline rules, tabular figures. */
:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F1EFEA;
  --ink: #17181A;
  --ink-2: #4E525A;
  --ink-3: #838790;
  --line: #E5E2DC;
  --line-strong: #CFCBC2;
  --accent: #A93822;
  --accent-ink: #FFFFFF;
  --accent-soft: #F7EAE6;
  --live: #117A48;
  --live-soft: #E3F4EB;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: 1020px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #181A1E;
    --surface-2: #202328;
    --ink: #F2F1ED;
    --ink-2: #A7ABB4;
    --ink-3: #727782;
    --line: #25282E;
    --line-strong: #353942;
    --accent: #E5735B;
    --accent-ink: #160E0C;
    --accent-soft: #2B1B18;
    --live: #48C78E;
    --live-soft: #13291F;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 74px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.48 var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 18px; }

/* ---------- masthead ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 12px; }
.brand-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.035em; line-height: 1; text-decoration: none; color: var(--ink); }
.brand i { font-style: normal; color: var(--accent); }
.brand-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a {
  text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding-block: 4px; border-bottom: 1.5px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* ---------- edition summary (top of each listing page) ---------- */
.edition { padding-block: 18px 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.edition h1 { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 29px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.12; }
.edition-meta { margin: 0; font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.edition-meta .dot { color: var(--line-strong); }
.edition-live { color: var(--live); font-weight: 600; }
.ig-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.ig-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sticky day rail ---------- */
.day-rail-wrap { position: sticky; top: 0; z-index: 25; background: var(--bg); border-bottom: 1px solid var(--line); }
.days { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 14px; }
.days::-webkit-scrollbar { display: none; }
.day-btn {
  position: relative; flex: 0 0 auto; min-width: 68px; padding: 10px 11px 11px; border: 0; background: transparent;
  color: var(--ink-2); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border-radius: 6px 6px 0 0;
}
.day-btn:hover:not(:disabled) { color: var(--ink); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.day-btn .d-top { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.day-btn .d-row { display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.day-btn .d-num { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.day-btn .d-cnt { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.day-btn[aria-pressed="true"] .d-top { color: var(--accent); }
.day-btn[aria-pressed="true"] .d-cnt { color: var(--accent); font-weight: 600; }
.day-btn[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px;
  background: var(--accent); border-radius: 2px 2px 0 0;
}
.day-btn:disabled { opacity: 0.38; cursor: default; }

/* ---------- search and filter ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 14px 6px; }
.search { position: relative; flex: 1 1 250px; min-width: 0; max-width: 460px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 34px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:hover { border-color: var(--line-strong); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.clear-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 5px;
  background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.clear-btn:hover { background: var(--surface-2); color: var(--ink); }
.room-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; padding-block: 4px; }
.room-toggle:hover { color: var(--ink); }
.room-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--line-strong); transition: background-color 0.16s ease; flex-shrink: 0; }
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.16s ease;
}
.room-toggle input:checked + .switch-track { background: var(--accent); }
.room-toggle input:checked + .switch-track::after { transform: translateX(14px); }
.room-toggle input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.room-toggle input:checked ~ span { color: var(--ink); }

/* ---------- listing ---------- */
.list { padding-block: 4px 64px; }
.search-banner { font-size: 13px; color: var(--ink-2); padding: 8px 0 2px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 0 8px; border-bottom: 1.5px solid var(--ink); }
.list > .day-head:first-child { padding-top: 10px; }
.day-head h2 { margin: 0; font-family: var(--font-display); font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; }
.day-head span { font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* desktop: time | event and society | room | actions */
.ev {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1.55fr) minmax(195px, 0.95fr) 68px;
  gap: 2px 20px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background-color 0.25s ease;
}
.ev.menu-open { z-index: 35; }
.ev.is-live {
  background: linear-gradient(90deg, color-mix(in srgb, var(--live-soft) 58%, transparent), transparent 72%);
  padding-left: 11px; margin-left: -11px; border-left: 2.5px solid var(--live);
}
.ev.is-target { background: var(--accent-soft); padding-inline: 10px; margin-inline: -10px; border-radius: 6px; }
.ev.done .ev-time, .ev.done .ev-body, .ev.done .ev-loc { opacity: 0.5; }
.ev-time { font-variant-numeric: tabular-nums; padding-top: 1px; }
.ev-time b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
.ev-time b.tbc { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.ev-time span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.ev-body, .ev-main { min-width: 0; }
.ev-title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.34; letter-spacing: -0.012em; color: var(--ink); overflow-wrap: anywhere; }
.badge-live {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 7px;
  border-radius: 999px; background: var(--live-soft); color: var(--live); margin-left: 7px; vertical-align: 1px; white-space: nowrap;
}
.badge-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ev-soc { margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.ev-soc a { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); transition: color 0.12s, border-color 0.12s; }
.ev-soc a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ev-soc .ig-arr { font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.ev-soc a:hover .ig-arr { color: var(--accent); }
.ev-loc { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.36; color: var(--ink); padding-top: 2px; min-width: 0; overflow-wrap: anywhere; }
.ev-loc svg { flex: 0 0 auto; margin-top: 2.5px; color: var(--accent); }
.ev-loc.none { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.ev-loc.none svg { color: var(--ink-3); opacity: 0.65; }
.ev-acts { position: relative; display: flex; justify-content: flex-end; gap: 2px; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--ink-3); cursor: pointer; padding: 0; transition: color 0.12s, background-color 0.12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.icon-btn.copied { color: var(--live); }

/* ---------- calendar menu and toast ---------- */
.cal-menu {
  position: absolute; right: 0; top: 36px; z-index: 40; width: 232px; padding: 5px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}
.cal-menu p { margin: 0; padding: 6px 9px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.cal-menu a, .cal-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 9px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; cursor: pointer;
}
.cal-menu a span, .cal-menu button span { font-size: 11.5px; color: var(--ink-3); }
.cal-menu a:hover, .cal-menu button:hover { background: var(--surface-2); }
.empty { padding: 52px 16px; text-align: center; color: var(--ink-2); }
.empty b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.empty span { display: block; font-size: 14px; color: var(--ink-3); }
.empty button {
  margin-top: 14px; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.empty button:hover { border-color: var(--ink-3); }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  z-index: 50; white-space: nowrap; pointer-events: none;
}

/* ---------- student nights ---------- */
.filters { display: grid; gap: 4px; padding-block: 12px 4px; }
.segs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.segs::-webkit-scrollbar { display: none; }
.seg {
  position: relative; flex: 0 0 auto; height: 38px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit;
  font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.seg:hover { color: var(--ink); }
.seg[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.seg[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--accent); border-radius: 2px 2px 0 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.chip b { font-size: 11.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] b { color: var(--accent); }
.chip[disabled] { opacity: 0.4; cursor: default; }
.ev.night { grid-template-columns: 96px minmax(0, 1fr) auto; }
.ev.night .ev-loc { margin-top: 4px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 4px;
  background: var(--surface-2); color: var(--ink-2); margin-left: 7px; vertical-align: 1px; white-space: nowrap;
}
.tag.soc { background: var(--accent-soft); color: var(--accent); }
.night-buy { display: grid; justify-items: end; gap: 6px; }
.price { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; background: var(--accent);
  color: var(--accent-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ticket-btn:hover { filter: brightness(1.08); }
.ticket-btn.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.ticket-btn.quiet:hover { filter: none; border-color: var(--ink-3); }
.later-head { padding-top: 28px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.night-note { margin: -40px 0 48px; font-size: 13px; color: var(--ink-3); max-width: 66ch; }

/* ---------- prose pages (About, 404) ---------- */
.prose { padding-block: 32px 64px; max-width: 660px; }
.prose h1 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(28px, 5vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.prose h2 { margin: 36px 0 8px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 2.5px solid var(--accent); border-radius: 6px; padding: 14px 16px; margin: 16px 0; }
.callout p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 26px 42px; font-size: 13px; color: var(--ink-3); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: flex-start; }
.site-foot p { margin: 0; max-width: 62ch; line-height: 1.55; }
.site-foot strong { color: var(--ink-2); font-weight: 600; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-foot a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.site-foot a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- phones ---------- */
@media (max-width: 740px) {
  .wrap { padding-inline: 16px; }
  .brand { font-size: 20px; }
  .brand-sub { display: none; }
  .nav a.hide-sm { display: none; }
  .nav { gap: 11px; }
  .nav a { font-size: 13px; }
  .edition { padding-block: 14px 10px; }
  .edition-meta { font-size: 13px; }
  .days { margin-inline: -16px; padding-inline: 12px; }
  .day-btn { min-width: 61px; padding: 9px 9px 10px; }
  .search { max-width: none; flex-basis: 100%; }
  .search input { font-size: 16px; height: 40px; } /* 16px stops iOS and the Instagram browser zooming on tap */
  .tools { gap: 8px 12px; padding-block: 12px 4px; }
  .ev { grid-template-columns: 68px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 5px 12px; padding: 14px 0; }
  .ev-time { grid-column: 1; grid-row: 1 / span 2; }
  .ev-time b { font-size: 15px; }
  .ev-time span { font-size: 11.5px; }
  .ev-body { grid-column: 2; grid-row: 1; }
  .ev-acts { grid-column: 3; grid-row: 1; margin-top: -3px; margin-right: -4px; }
  .icon-btn { width: 34px; height: 34px; }
  .ev-loc { grid-column: 2 / -1; grid-row: 2; padding-top: 1px; }
  .cal-menu { right: -4px; }
  .ev.night { grid-template-columns: 68px minmax(0, 1fr); }
  .ev.night .ev-time { grid-row: 1; }
  .ev.night .ev-main { grid-column: 2; grid-row: 1; }
  .ev.night .ev-loc { grid-column: auto; grid-row: auto; }
  .night-buy { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* short nav label on phones, so the brand and the menu fit side by side */
.show-sm { display: none; }
@media (max-width: 740px) {
  .nav .hide-sm { display: none; }
  .nav .show-sm { display: inline; }
}
@media (max-width: 360px) {
    .nav { gap: 9px; }
}
@media (max-width: 740px) {
  .edition-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .edition-meta > .dot { display: none; }
}

/* ---------- intro (kept from the original design at the owner's request, 18 Nov 2026) ---------- */
.intro { padding-block: 36px 22px; display: grid; gap: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.intro h1 {
  margin: 0; font-family: var(--font-display); font-size: clamp(34px, 6.2vw, 56px); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.intro p { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); max-width: 58ch; }
.intro-live { color: var(--live); font-weight: 600; }
@media (max-width: 740px) {
  .intro { padding-block: 24px 16px; }
  .intro p { font-size: 15px; }
}

/* ---------- society, promoter and venue logos beside each listing ---------- */
.logos { display: inline-flex; vertical-align: -7px; margin-right: 7px; }
.logos img {
  width: 24px; height: 24px; border-radius: 6px; object-fit: cover; background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
}
.logos img + img { margin-left: -5px; box-shadow: 0 0 0 1px var(--line), 0 0 0 2.5px var(--bg); }
@media (max-width: 740px) {
  .logos img { width: 22px; height: 22px; }
  .logos { vertical-align: -6px; margin-right: 6px; }
}
