/*
 * Design tokens. Dark is the default theme on :root; light only applies when the visitor
 * has chosen it (data-theme="light" on <html>, set before first paint in BaseLayout).
 * Components only use these variables, never raw colours.
 */
:root {
  color-scheme: dark;

  /* Neutrals (80-90% of every page) */
  --bg: #090b0e;
  --surface: #11151a;
  --surface-2: #191e24;
  --surface-3: #20262e;
  --border: #343b44;
  --border-soft: #242a32;
  /* Titles and strong text: 5% under full white (not #fff), so bright type does not
   * glare on the near-black background. Contrast on --bg is still about 16:1 (AAA 7:1). */
  --text: #e9eaeb;
  /* Running article text: a touch softer than titles, so long reading is calmer */
  --text-body: #dcdfe3;
  --text-2: #abb3bd;
  --text-3: #8a929c;

  /* Brand yellow: fill for buttons and badges, mark for logo/slashes, text for small links */
  --brand: #efff00;
  --on-brand: #090b0e;
  --brand-mark: #efff00;
  --brand-text: #efff00;

  /* Default accent; categories override --accent and --accent-ink-light inline */
  --accent: #efff00;
  --accent-ink-light: #5f6600;

  /* Signal colours: cyan for active controls and contact icons, red for form errors */
  --cyan: #00d9ed;
  /* Fixed marks that look the same in both themes */
  --cyan-mark: #00d9ed;
  --pink-mark: #ff2ba6;
  --danger: #ff7a8a;
  --danger-border: #ff5a6e;
  --input-border: var(--border);

  /* Photo areas stay dark in both themes; product photos sit on white */
  --photo-bg: #090b0e;
  --photo-bg-2: #0d1014;
  --photo-text: #e9eaeb;
  --photo-text-2: #d0d5db;
  --photo-text-3: #b5bcc5;
  --photo-lead: #e2e4e6;
  --photo-border: #343b44;
  --product-bg: #fff;

  /* Image overlays keep text readable on photos in both themes */
  --scrim: linear-gradient(180deg, rgb(9 11 14 / 0%) 35%, rgb(9 11 14 / 88%) 100%);
  --scrim-side: linear-gradient(90deg, #090b0e 0%, rgb(9 11 14 / 92%) 32%, rgb(9 11 14 / 0%) 62%);

  /* Type scale. Nothing on the site is smaller than --fs-xs (14px): that is for meta,
   * labels and captions only. Running text is 16px, article text 18px. */
  --font: 'Poppins', system-ui, sans-serif;
  --fs-xs: 14px; /* meta, labels, badges, captions */
  --fs-sm: 15px; /* navigation, buttons, secondary UI */
  --fs-base: 16px; /* standard text, list titles */
  --fs-md: 18px; /* card titles, lead text in panels */
  --fs-lg: 20px; /* intros, large card titles */
  --fs-xl: 24px; /* small section titles */
  --fs-2xl: 32px; /* section titles */
  --fs-body: 18px; /* article text */
  --lh-tight: 1;
  --lh-snug: 1.3;
  --lh-body: 1.75;

  /* Space and layout */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --container: 1600px;
  /* Window width for full-bleed bands; global.css corrects it for the 2K/4K zoom */
  --bleed: 100vw;
  --view-h: 100dvh;
  --gutter: clamp(16px, 2.6vw, 40px);
  --measure: 720px;
  --header-h: 64px;
  --radius: 0px;
  --radius-sm: 0px;
  --stripe: 4px;
  --skew: -14deg;

  /* Form fields never span a whole page or block (AGENTS.md). On phones a field may fill
   * the narrow column; everywhere else these are the ceilings. */
  --field-max: 420px; /* text, e-mail, select, date */
  --field-max-search: 560px; /* search field, including its button */
  --field-max-text: 640px; /* textarea */
}

/* Breakpoints (literal values in media queries; the full list and rules are in
 * docs/design/design-system.md, tests/design-system.test.ts guards them):
 * 1600px  header tagline hides
 * 1440px  desktop navigation collapses into the menu button
 * 1280px  wide grids drop from four columns to three
 * 1200px  tablet header (two rows) ends; iPad landscape (1180) is still a tablet
 * 1024px  multi-column sections drop to fewer columns
 *  720px  mobile: one main column
 *  480px  small phones
 * Above 2K the page zooms instead of stretching (global.css): 2880, 3520px. */

:root[data-theme='light'] {
  color-scheme: light;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eaedf1;
  --surface-3: #e1e5ea;
  --border: #d5dae0;
  --border-soft: #e3e7ec;
  --text: #15191e;
  --text-body: #15191e;
  --text-2: #58616c;
  --text-3: #626b76;

  /* A stronger lime-green keeps direct links and logo marks readable on light tablets. */
  --brand-mark: #596f00;
  --brand-text: #536800;

  --cyan: #00727d;
  /* Small screens in light mode need a darker yellow ink than the brand text */
  --brand-text-strong: #4c5300;
  --danger: #c4002b;
  --input-border: #b9c0c8;
}

/* Each element resolves its own accent text colour from the accent it inherits.
 * Dark: the bright accent. Light: the darker ink variant of that same accent. */
*,
::before,
::after {
  --accent-text: var(--accent);
}

:root[data-theme='light'] *,
:root[data-theme='light'] ::before,
:root[data-theme='light'] ::after {
  --accent-text: var(--accent-ink-light);
}

/* Areas that sit on a photo stay dark in both themes */
.on-image,
.on-image * {
  --text: var(--photo-text);
  --text-2: var(--photo-text-2);
  --text-3: var(--photo-text-3);
  --brand-mark: #efff00;
  --brand-text: #efff00;
  --accent-text: var(--accent);
}

:root[data-theme='light'] .on-image,
:root[data-theme='light'] .on-image * {
  --accent-text: var(--accent);
}

.live-page {
  max-width: 1240px;
  margin-inline: auto;
  padding: 48px var(--gutter) 32px;
  color: var(--text);
  font-family: var(--font);
}
.live-page *,
.live-page *::before,
.live-page *::after {
  box-sizing: border-box;
}
.live-page a {
  color: inherit;
  text-decoration: none;
}
.live-page a:hover {
  color: var(--brand-text);
}
.live-intro {
  max-width: 850px;
  margin-bottom: 32px;
}
.live-eyebrow {
  color: var(--brand-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.live-intro h1 {
  margin: 12px 0 20px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  font-style: italic;
  line-height: var(--lh-snug);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.live-intro > p:last-child {
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}
.live-page label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
}
.live-page input,
.live-page select,
.live-page textarea {
  min-width: 0;
  width: 100%;
  /* No input field ever stretches across the page: it keeps a normal width. */
  max-width: 420px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
}
.live-page input:focus-visible,
.live-page select:focus-visible,
.live-page textarea:focus-visible,
.live-page a:focus-visible,
.live-page summary:focus-visible,
.live-page button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.live-page select {
  /* Same box as the enhanced dropdown, so nothing changes size when the script takes over:
     not stretched to the row height, same text weight and inner spacing. */
  align-self: start;
  padding-left: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.live-page label:has(> select) {
  max-width: 420px;
}
.live-page input[type='checkbox'] {
  width: 20px;
  min-height: 20px;
  flex: none;
  accent-color: var(--brand);
}
.live-page .live-check {
  flex-direction: row;
  align-items: center;
  align-self: end;
  min-height: 46px;
}
.live-page button,
.live-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 0;
  background: var(--brand);
  color: var(--on-brand) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
/* A search field never stretches across the whole page: it keeps its own width. */
.live-filters {
  max-width: 1080px;
  margin-bottom: var(--space-4);
}
/* Keep search, place and date visible; additional filters open on demand. */
.live-grid {
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
}
.live-search {
  grid-column: span 2;
  display: flex;
  max-width: 560px;
}
.live-page .live-search input {
  flex: 1;
  max-width: 100%;
  border-right: 0;
}
.live-search button {
  flex: none;
}
.live-checks {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: var(--space-2) var(--space-5);
}
.live-page .live-checks .live-check {
  min-height: 44px;
  align-self: start;
  font-size: 14px;
  font-weight: 400;
}
.live-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 18px;
}
.live-page .live-more > summary {
  width: fit-content;
  min-height: 44px;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.live-extra {
  padding-block: var(--space-2);
}
.live-custom-dates:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: var(--field-max-search);
  margin-top: var(--space-3);
}
@media (max-width: 720px) {
  .live-intro {
    margin-bottom: var(--space-4);
  }
  .live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.live-page textarea {
  max-width: 640px;
}
.live-page input[type='checkbox'] {
  max-width: none;
}
.live-page summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
}
.live-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.live-quick a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  font-size: 14px;
  min-height: 44px;
}
.live-quick a[aria-current] {
  border-color: var(--brand);
  color: var(--brand-text);
}
/* A search jumps straight to the results, just below the sticky header. */
.live-result-head {
  scroll-margin-top: calc(var(--header-h) + 16px);
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 14px;
}
.live-result-head p {
  font-size: 20px;
  margin: 0;
}
.live-date-links { display: none; }
@media (min-width: 1024px) {
  .live-result-head { max-width: none; }
  .live-result-head p { margin-right: auto; }
  .live-date-links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }
  .live-date-links a {
    padding-block: var(--space-3);
    color: var(--cyan);
    font-size: var(--fs-sm);
    font-weight: 600;
  }
  .live-date-links a:hover,
  .live-date-links a[aria-current] {
    text-decoration: underline;
    text-underline-offset: var(--space-1);
  }
}
/* Small and quiet, at the far right of the count line. */
.live-page .live-clear {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
}
.live-page .live-clear:hover {
  border-color: var(--brand);
  color: var(--text);
}
.live-active {
  color: var(--cyan);
  font-size: 13px;
  overflow-wrap: anywhere;
}
/* Day headings use type and a quiet background instead of stacked divider lines. */
.live-day {
  color: var(--cyan);
  margin: 32px 0 0;
  padding: 12px 16px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}
.live-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.live-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: var(--lh-snug);
}
.live-date strong {
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
}
.live-date span {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-2);
}
.live-row h3 {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.live-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.live-row p span {
  color: var(--text-2);
}
.live-row .live-meta {
  font-size: 12px;
  color: var(--text-3);
}
.live-meta:empty {
  display: none;
}
.live-meta strong {
  margin-left: 8px;
  font-weight: 500;
  color: var(--brand-text);
}
.live-meta .live-status {
  color: var(--cyan);
  text-transform: capitalize;
}
.live-row-action {
  font-size: 13px;
  color: var(--text-2);
}
.live-row-action a {
  padding: 12px 2px;
  display: inline-block;
  color: var(--brand-text);
  white-space: nowrap;
}
/* A cancelled or moved concert says so above its facts, in plain text. */
.live-notice {
  max-width: 760px;
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}
.live-notice strong {
  color: var(--danger);
}
.live-empty {
  padding: 40px 24px;
  background: var(--surface);
  margin-top: 30px;
}
.live-empty h2 {
  font-size: 24px;
}
.live-empty p,
.live-note {
  color: var(--text-2);
}
.live-note {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 28px;
}
.live-note a {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.live-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-block: 32px;
  font-size: 14px;
}
.live-pagination a {
  padding: 12px 0;
  color: var(--brand-text);
}
.live-breadcrumb {
  display: block;
  margin-bottom: 28px;
  color: var(--text-2);
  font-size: 13px;
}
.live-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: 64px;
  align-items: start;
}
.live-event-label {
  color: var(--brand-text);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.live-event-image {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}
.live-facts {
  margin: 20px 0;
}
.live-facts > div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.live-facts dt {
  color: var(--text-2);
}
.live-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.live-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-block: 18px 0;
  font-size: 14px;
}
/* Normal breathing room: a clear gap between the links, the text and the source line. */
.live-description {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.live-section-title {
  margin-top: 48px;
  font-size: 24px;
  font-style: italic;
}
/* The event submission form follows the contact page: open layout, understated fields. */
.live-submit {
  max-width: 860px;
  margin-top: 24px;
  padding: 0;
  background: transparent;
  border: 0;
}
.live-submit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.live-submit__wide {
  grid-column: 1 / -1;
}
.live-submit label {
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-submit input,
.live-submit select,
.live-submit textarea {
  max-width: 420px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid var(--input-border);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s;
}
.live-submit textarea {
  max-width: 640px;
  min-height: 170px;
  resize: vertical;
}
.live-submit select {
  padding-left: 14px;
}
.live-submit :is(input, select, textarea):hover {
  border-bottom-color: var(--text-3);
}
.live-submit :is(input, select, textarea):focus-visible {
  outline: none;
  outline-offset: 0;
  border-bottom-color: var(--brand-mark);
}
.live-submit__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.live-submit__actions .live-note {
  margin: 0;
  font-size: var(--fs-sm);
}
.live-submit__actions .btn {
  min-height: 48px;
  padding: 0 36px;
  background: none;
  color: var(--on-brand) !important;
  font-size: var(--fs-base);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.live-submit__sent {
  max-width: 640px;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
}
@media (max-width: 720px) {
  .live-submit__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.live-honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
}
.live-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.live-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.live-page th,
.live-page td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  max-width: 400px;
  overflow-wrap: anywhere;
}
.live-page td button {
  padding: 8px;
  min-height: 42px;
}
.live-page details {
  scroll-margin-top: 90px;
}
.live-page h2[id] {
  scroll-margin-top: 90px;
}
.live-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0;
  border-block: 1px solid var(--border);
}
.live-admin-stats p {
  font-size: 13px;
}
.live-admin-stats strong {
  display: block;
  font-size: 26px;
  color: var(--brand-text);
}
.live-submission {
  border-bottom: 1px solid var(--border);
  padding-block: 20px;
}
.live-fallback-nav {
  display: flex;
  gap: 30px;
  padding: 20px 40px;
  font-family: var(--font);
  border-bottom: 1px solid var(--border);
}
body:has(.live-fallback-nav) {
  background: var(--bg);
  color: var(--text);
  margin: 0;
}
@media (max-width: 720px) {
  .live-page {
    padding-top: 28px;
  }
  .live-intro h1 {
    font-size: 46px;
  }
  .live-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .live-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }
  .live-date strong {
    font-size: 28px;
  }
  .live-row-action {
    grid-column: 2;
    margin-top: -8px;
  }
  .live-row-action a {
    padding: 4px 0;
    min-height: 32px;
  }
  .live-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .live-detail .live-event-image {
    order: -1;
    max-height: 300px;
  }
  .live-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .live-grid {
    gap: 10px;
  }
  .live-page .live-grid .sonus-select__control,
  .live-page .live-grid select {
    padding-left: 12px;
    font-size: 15px;
  }
  .live-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-quick a {
    padding-inline: 12px;
  }
  .live-facts > div {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

.live-page .live-route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.live-page .live-route:hover {
  text-decoration: underline;
}

/* Concert page: route on the right of the same row, the source line tight underneath. */
.live-actions .live-route {
  margin: 0 0 0 auto;
}
.live-page .live-source {
  margin-top: 16px;
}

/* Both links on the concert page in cyan. */
/* Links in the same bright colour as the title; cyan stays for the date headings. */
.live-page .live-official {
  color: var(--text);
  font-weight: 600;
}
.live-page .live-route--inline {
  display: none;
}
@media (max-width: 720px) {
  .live-page .live-route--row {
    display: none;
  }
  .live-page .live-route--inline {
    display: inline-flex;
    margin: 8px 0 0;
  }
  .live-facts dd {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

.live-active.live-quick {
  margin-block: 18px;
}
.live-active a {
  color: var(--text);
}

.live-thumbnail {
  float: right;
  width: var(--space-8);
  height: var(--space-8);
  margin-left: var(--space-3);
  object-fit: contain;
  background: var(--surface);
  color: transparent;
}
.live-photo {
  margin: 0;
  min-width: 0;
}
.live-photo .live-event-image {
  object-fit: contain;
}
.live-photo figcaption {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
