/* ==========================================================================
   The Backline: site styles
   Venue layer. Styles the engine components (.ev-*) plus the venue's pages.
   ========================================================================== */

:root {
  --paper: #f3ede2;
  --paper-2: #e8dfcf;
  --ink: #161513;
  --ink-2: #3b3833;
  --muted: #5c574f;
  --orange: #ff5a1f;
  --orange-deep: #b83a0c; /* orange for text on paper (passes contrast) */
  --green: #1f4d3a;
  --green-2: #2b6a50;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  --line: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 0;
}

@media (min-width: 768px) {
  :root { --gutter: 28px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Print grain over everything. Subtle on purpose. */
body { position: relative; }
body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("/assets/img/grain.svg");
  opacity: 0.22;
  mix-blend-mode: multiply;
  z-index: 50;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink);
  padding: 10px 14px; z-index: 100; font-family: var(--mono);
}
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.muted { color: var(--muted); }
.fine { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn--primary { background: var(--orange); box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { min-height: 54px; padding: 14px 24px; font-size: 0.95rem; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 0.78rem; }

.link-arrow {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.link-arrow::after { content: " \2192"; }

/* ---------- Demo bar ---------- */
.demo-bar {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.4;
  text-align: center; padding: 8px var(--gutter);
}
.demo-bar p { margin: 0; }
.demo-bar a { color: var(--orange); font-weight: 600; white-space: nowrap; }
.demo-bar a:hover { color: var(--paper); }

/* ---------- Header ---------- */
.site-header { border-bottom: var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 0.82; margin: 0; }
.wordmark__the { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; padding-left: 2px; margin-bottom: 4px; }
.wordmark__name { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 2.3rem; text-transform: uppercase; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--ink); }
.wordmark:hover .wordmark__name { color: var(--orange-deep); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
}
.site-nav a:hover { background: var(--ink); color: var(--paper); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--orange); }

.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  border: var(--line); background: transparent; font-family: var(--mono); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; color: var(--ink);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: var(--line);
  }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid rgba(22, 21, 19, 0.15); }
  html:not(.js) .site-nav { position: static; border: 0; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 7vw, 80px); border-bottom: var(--line); }
.hero__title {
  font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase;
  font-size: clamp(3.4rem, 12.5vw, 9.5rem); line-height: 0.84; letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.hero__title span { display: block; }
.hero__hl {
  color: var(--ink);
  background: linear-gradient(transparent 58%, var(--orange) 58%, var(--orange) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  display: inline !important;
}
.hero__lead { max-width: 560px; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding-top: 24px; }
.section--featured { padding: clamp(32px, 5vw, 56px) 0; border-bottom: var(--line); background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--green { background: var(--green); color: var(--paper); }
.section--paper-2 { background: var(--paper-2); border-top: var(--line); border-bottom: var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__title {
  font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 0.9; margin-bottom: 24px;
}
.section__head .section__title { margin-bottom: 0; }

.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 48px); border-bottom: var(--line); }
.page-head__title {
  font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase;
  font-size: clamp(2.8rem, 10vw, 7rem); line-height: 0.86; margin-bottom: 20px;
}
.page-head__lead { max-width: 620px; font-size: 1.15rem; margin: 0; }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .split--form { grid-template-columns: 4fr 7fr; }
}
.prose h2 { font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: 1.8rem; text-transform: uppercase; margin: 0 0 14px; }
.prose h2:not(:first-child) { margin-top: 36px; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; background: var(--orange); border: var(--line); }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: 8px; }
.address { font-family: var(--mono); font-size: 1.05rem; }

/* ---------- Three ways in ---------- */
.paths { display: grid; gap: 16px; }
@media (min-width: 800px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border: 2px solid var(--paper); text-decoration: none; min-height: 220px;
  transition: background 0.15s ease, color 0.15s ease;
}
.path:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.path__num { font-family: var(--mono); font-size: 0.8rem; }
.path__title { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 2.4rem; text-transform: uppercase; line-height: 0.9; }
.path__text { margin-top: auto; }

/* ---------- Venue page bits ---------- */
.stat-stack { display: grid; gap: 12px; }
.stat { border: var(--line); padding: 18px 20px; display: flex; align-items: baseline; gap: 18px; background: var(--paper); box-shadow: var(--shadow); }
.stat__num { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 3.6rem; line-height: 0.9; color: var(--orange-deep); }
.stat__label { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rooms, .options { display: grid; gap: 20px; }
@media (min-width: 800px) { .rooms { grid-template-columns: 1fr 1fr; } .options { grid-template-columns: repeat(3, 1fr); } }
.room { border: 2px solid var(--paper); padding: 24px; }
.room h3 { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 2.4rem; text-transform: uppercase; margin-bottom: 12px; }
.option { border: var(--line); padding: 24px; background: var(--paper); }
.option__cap { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; color: var(--orange-deep); font-weight: 600; }
.option__title { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 2.2rem; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; background: var(--paper); border: var(--line); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.opt { font-weight: 400; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem;
  background: #fbf8f2; color: var(--ink); border: var(--line); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; }
.form .btn { justify-self: start; }
.step { border: var(--line); padding: 0 16px; }
.step[open] { padding-bottom: 16px; }
.step > .field, .step > .field-row { margin-top: 14px; }
.step summary {
  cursor: pointer; list-style: none; padding: 14px 0; display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: 1.35rem; text-transform: uppercase;
}
.step summary::-webkit-details-marker { display: none; }
.step summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 1.3rem; }
.step[open] summary::after { content: "\2212"; }
.step__num { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.85rem; }

.thanks { min-height: 50vh; }
.demo-note { border-left: 4px solid var(--orange); padding: 10px 14px; background: var(--paper-2); font-size: 0.95rem; }

/* ---------- Map ---------- */
.map-card { border: var(--line); box-shadow: var(--shadow); background: var(--paper-2); }
.map-card svg { display: block; width: 100%; height: auto; }
.map-bg { fill: #efe7d8; }
.map-road { stroke: #fbf8f2; stroke-width: 22; fill: none; }
.map-road--big { stroke-width: 30; }
.map-road--thin { stroke-width: 12; }
.map-lane { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 8 6; fill: none; }
.map-tram { stroke: var(--green); stroke-width: 4; fill: none; }
.map-stop { fill: var(--green); stroke: var(--paper); stroke-width: 3; }
.map-venue { fill: var(--orange); stroke: var(--ink); stroke-width: 3; }
.map-venue-label { font-family: var(--mono); font-weight: 600; font-size: 14px; fill: var(--ink); }
.map-label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; fill: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 28px; margin-top: 0; }
.site-footer a:hover { color: var(--orange); }
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 5fr 4fr 3fr; } }
.wordmark--footer .wordmark__name { font-size: 3.2rem; }
.site-footer__tag { margin-top: 14px; max-width: 320px; }
.site-footer__h { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; color: var(--orange); font-weight: 600; }
.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(243, 237, 226, 0.2); padding-bottom: 6px; }
.hours dt { font-family: var(--mono); font-size: 0.85rem; }
.hours dd { margin: 0; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(243, 237, 226, 0.25); font-size: 0.85rem; display: grid; gap: 6px; }
.site-footer__base p { margin: 0; }

/* ==========================================================================
   Engine components (.ev-*), styled for The Backline
   ========================================================================== */

/* Posters: real image or type-led fallback */
.ev-poster { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); container-type: inline-size; }
.ev-poster__img { width: 100%; height: 100%; object-fit: contain; }
.ev-poster__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8cqi;
  --fb-bg: var(--orange); --fb-fg: var(--ink); --fb-off: var(--green);
  background: var(--fb-bg); color: var(--fb-fg);
}
.ev-poster__fallback::after {
  /* halftone corner */
  content: ""; position: absolute; right: -10%; bottom: -10%; width: 70%; height: 55%;
  background-image: radial-gradient(circle, var(--fb-off) 28%, transparent 30%);
  background-size: 6cqi 6cqi; opacity: 0.55; mix-blend-mode: multiply; transform: rotate(-8deg);
}
.ev-poster__fallback--v1 { --fb-bg: var(--green); --fb-fg: var(--paper); --fb-off: var(--orange); }
.ev-poster__fallback--v2 { --fb-bg: var(--ink); --fb-fg: var(--paper); --fb-off: var(--orange); }
.ev-poster__fallback--v3 { --fb-bg: var(--paper-2); --fb-fg: var(--green); --fb-off: var(--orange); }
.ev-poster__fb-date, .ev-poster__fb-venue {
  font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: max(9px, 4.2cqi); position: relative; z-index: 1;
}
.ev-poster__fb-title {
  margin: auto 0; position: relative; z-index: 1;
  font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; line-height: 0.86;
  font-size: 15cqi; overflow-wrap: anywhere;
  text-shadow: 0.9cqi 0.9cqi 0 var(--fb-off);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-poster__fb-venue { border-top: 0.6cqi solid currentColor; padding-top: 3cqi; }

/* Featured banner */
.ev-featured { display: grid; gap: 0; border: var(--line); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.ev-featured__poster { border-bottom: var(--line); }
.ev-featured__body { padding: clamp(20px, 4vw, 44px); display: flex; flex-direction: column; }
@media (min-width: 800px) {
  .ev-featured { grid-template-columns: minmax(280px, 5fr) 7fr; }
  .ev-featured__poster { border-bottom: 0; border-right: var(--line); }
}
.ev-featured__label {
  align-self: flex-start; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 10px; margin-bottom: 20px;
}
.ev-featured__title { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.86; margin-bottom: 18px; }
.ev-featured__title a { text-decoration: none; }
.ev-featured__when { font-family: var(--mono); font-size: 0.95rem; }
.ev-featured__summary { font-size: 1.15rem; max-width: 520px; }
.ev-featured__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }

/* Tiles */
.tiles { display: grid; gap: 20px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.ev-card { border: var(--line); background: var(--paper); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.ev-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.ev-card__link { display: block; text-decoration: none; }
.ev-card__link:hover { color: var(--ink); }
.ev-card .ev-poster { aspect-ratio: 1 / 1; border-bottom: var(--line); }
.ev-card__body { padding: 16px 18px 20px; }
.ev-card__date { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; color: var(--orange-deep); }
.ev-card__title { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: 1.9rem; line-height: 0.92; }
.ev-card__cat { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; margin: 10px 0 0; }

/* Filters */
.ev-filters { margin-bottom: 24px; }
.ev-filters__label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.ev-filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip {
  min-height: 40px; padding: 8px 14px; border: var(--line); background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; cursor: pointer;
}
.ev-chip:hover { background: var(--paper-2); }
.ev-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Gig guide list */
.ev-list { list-style: none; margin: 0; padding: 0; border-bottom: var(--line); }
.ev-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: start;
  padding: 18px 0; border-top: var(--line);
}
.ev-row[hidden] { display: none; }
.ev-row__poster { display: none; }
.ev-row__date { margin: 0; display: grid; justify-items: start; line-height: 1; grid-row: span 2; }
.ev-row__day, .ev-row__mon { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.ev-row__num { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 3rem; line-height: 0.9; margin: 2px 0; }
.ev-row__title { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 0.92; margin-bottom: 8px; }
.ev-row__title a { text-decoration: none; }
.ev-row__title a:hover { color: var(--orange-deep); }
.ev-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; margin-bottom: 6px; }
.ev-row__meta span:first-child { color: var(--orange-deep); font-weight: 600; }
.ev-row__summary { margin: 0; max-width: 640px; color: var(--ink-2); }
.ev-row__cta { grid-column: 2; margin-top: 8px; }
@media (min-width: 760px) {
  .ev-row { grid-template-columns: 96px 80px 1fr auto; gap: 24px; align-items: center; padding: 20px 0; }
  .ev-row__poster { display: block; border: var(--line); aspect-ratio: 1 / 1; }
  .ev-row__date { grid-row: auto; }
  .ev-row__cta { grid-column: auto; margin: 0; }
}
.ev-empty { font-family: var(--mono); padding: 24px 0; }

/* Event page */
.wrap--event { padding-top: 24px; padding-bottom: clamp(48px, 7vw, 96px); }
.crumb { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; }
.crumb a::before { content: "\2190 "; }
.ev-detail { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .ev-detail { grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
  .ev-detail__poster { position: sticky; top: 24px; }
}
.ev-detail__poster { border: var(--line); box-shadow: 8px 8px 0 var(--ink); }
.ev-detail--inactive .ev-detail__poster { filter: grayscale(0.85); }
.ev-detail__cat { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 10px; }
.ev-detail__title { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 0.86; margin-bottom: 24px; overflow-wrap: anywhere; }
.ev-facts { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; border-top: var(--line); border-left: var(--line); }
.ev-facts div { padding: 12px 14px; border-right: var(--line); border-bottom: var(--line); }
.ev-facts dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.ev-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.ev-ticket { margin-bottom: 28px; }
.ev-ticket .btn { width: 100%; }
@media (min-width: 600px) { .ev-ticket .btn { width: auto; } }
.ev-detail__desc { font-size: 1.12rem; max-width: 620px; }
.ev-detail__access { border: var(--line); padding: 16px 18px; margin: 24px 0; background: var(--paper-2); }
.ev-detail__access h2 { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px; }
.ev-detail__access p { margin: 0; }
.ev-detail__share { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.ev-link { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }

.ev-status { padding: 14px 16px; border: var(--line); margin-bottom: 20px; }
.ev-status--cancelled { background: var(--orange); }
.ev-status--postponed { background: var(--green); color: var(--paper); }
.ev-status--past { background: var(--paper-2); }

.ev-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--paper);
  transform: translateY(110%); transition: transform 0.2s ease;
}
.ev-sticky.is-visible { transform: none; }
.ev-sticky__text { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .ev-sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Date spans the full facts row so long dates don't wrap awkwardly on phones */
.ev-facts div:first-child { grid-column: 1 / -1; }
/* A lone last fact fills the row instead of leaving a gap */
.ev-facts div:last-child:nth-child(even) { grid-column: 1 / -1; }
/* Hidden sticky bar is fully hidden (also keeps full-page screenshots clean) */
.ev-sticky { visibility: hidden; transition: transform 0.2s ease, visibility 0.2s; }
.ev-sticky.is-visible { visibility: visible; }
