:root {
  color-scheme: light dark;
  --paper: #f5f3ed; --surface: #fffefa; --ink: #172d40; --muted: #516273;
  --line: #d5d9d7; --soft: #edf0ed; --accent: #a13e2d; --nav: #172d40;
  --match: #e2efe7; --match-ink: #235341; --hold: #f9eadb; --hold-ink: #82421e;
  font: 16px/1.5 'Inter', system-ui, sans-serif;
  background: var(--paper); color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1c2a; --surface: #142738; --ink: #f2f1e9; --muted: #bdcbd5;
    --line: #475d6e; --soft: #1f3648; --accent: #ffab93; --nav: #0f2334;
    --match: #244438; --match-ink: #c2efda; --hold: #503627; --hold-ink: #ffdbc0;
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
aside :focus-visible { outline-color: #ffab93; }
.skip { position: fixed; z-index: 2; top: 8px; left: 8px; padding: 10px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0,1fr); }
aside { background: var(--nav); color: #fffefa; padding: 28px 18px 20px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 750; line-height: 1.16; }
.mark { flex: none; display: grid; grid-auto-flow: column; place-content: center; align-items: baseline; width: 48px; height: 48px; border: 1px solid #d9866e; border-radius: 8px; color: #fff9eb; }
.mark span { color: #f6ad96; font-size: .75em; }
.brand small, .outlet small { display: block; color: #bfd0db; }
.brand small { margin-top: 5px; letter-spacing: .17em; font-size: 10px; }
.outlet { margin: 32px 0 18px; border-block: 1px solid #486073; padding: 13px 10px; font-size: 13px; }
nav { display: grid; gap: 5px; }
nav a { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: 14px; }
nav a span { width: 16px; color: #ffc2af; }
nav a:hover, nav a[aria-current] { background: #2a4255; }
nav a[aria-current] { box-shadow: inset 3px 0 #e5957e; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 32px 10px 0; color: #bfd0db; font-size: 12px; }
.sidebar-foot span { color: #a2d8bb; float: right; }
.topbar { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--surface); padding: 17px clamp(20px,4vw,56px); font-size: 13px; color: var(--muted); }
.topbar strong { color: var(--ink); }
main { max-width: 1300px; margin: auto; padding: 32px clamp(20px,4vw,56px) 48px; }
main:focus { outline: none; }
.save-message { margin-bottom: 14px; color: var(--ink); }
.page-heading { margin: 0 0 25px; }
h1, h2, p { margin: 0; }
h1 { font-family: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; font-size: clamp(40px,6vw,60px); letter-spacing: -.045em; line-height: 1.08; margin: 5px 0 8px; }
h2 { font-size: 20px; letter-spacing: -.025em; }
p, .event-info > span, .event-genre, .record > span { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .17em; font-weight: 800; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 24px; }
.stats a, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.stats a { text-decoration: none; padding: 14px 16px; display: grid; }
.stats a:hover, .review:hover { background: var(--soft); }
.stats strong { font-size: 30px; line-height: 1.15; }
.stats span { font-size: 13px; color: var(--muted); margin-top: 4px; }
.section-head { padding: 19px 20px 13px; }
.section-head p, .card p { font-size: 14px; }
.filters { padding: 0 20px 14px; display: grid; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 650; }
select, button, .review { font: inherit; border: 1px solid var(--line); border-radius: 6px; min-height: 44px; padding: 6px 10px; }
select { max-width: 100%; width: 100%; background: var(--surface); color: var(--ink); }
button { cursor: pointer; background: var(--ink); color: var(--surface); font-weight: 650; }
button:disabled { cursor: default; opacity: .57; }
.result-count { padding: 7px 20px; background: var(--soft); border-block: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.events { margin: 0; padding: 0; list-style: none; }
.event { display: grid; grid-template-columns: 50px minmax(0,2fr) minmax(0,1fr) minmax(0,1.25fr) auto; align-items: center; gap: 12px; padding: 12px 20px; font-size: 13px; }
.event + .event, .record + .record { border-top: 1px solid var(--line); }
.date-tile { display: grid; justify-items: center; align-content: center; height: 48px; background: var(--soft); border-radius: 6px; line-height: 1.1; }
.date-tile span { text-transform: uppercase; font-size: 10px; font-weight: 800; color: var(--muted); }
.date-tile strong { font-size: 22px; }
.event-info { display: grid; min-width: 0; }
.event-title { font-size: 16px; font-weight: 750; text-decoration: none; }
.event-title:hover { text-decoration: underline; }
.badge { display: inline-block; border-radius: 5px; background: var(--soft); color: var(--ink); padding: 4px 8px; font-size: 12px; font-weight: 650; }
.badge.match { background: var(--match); color: var(--match-ink); }
.badge.hold { background: var(--hold); color: var(--hold-ink); }
.event-state small { display: block; margin-top: 3px; color: var(--muted); }
.review { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 650; }
.empty, .card { padding: 20px; }
.card + .card { margin-top: 14px; }
.card p, .card form, .card button { margin-top: 8px; }
.card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.card dt { font-weight: 700; }
.card dd { margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.detail-grid .card { margin: 0; }
.back { display: inline-block; margin-bottom: 12px; font-size: 14px; }
.record { padding: 14px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.record-meta { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 190px minmax(0,1fr); }
  .event { grid-template-columns: 48px minmax(0,1fr) minmax(0,1fr) auto; }
  .event-genre { display: none; }
}
@media (max-width: 670px) {
  .shell { display: block; }
  aside { padding: 12px 14px; }
  .outlet, .sidebar-foot { display: none; }
  nav { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 10px; }
  .topbar { padding-inline: 14px; flex-wrap: wrap; }
  main { padding: 24px 14px; }
  .stats, .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 46px minmax(0,1fr) auto; gap: 7px 10px; padding-inline: 12px; }
  .date-tile { grid-row: span 2; }
  .event-state { grid-column: 2; }
  .review { grid-column: 3; grid-row: 2; }
  .event-info { grid-column: 2 / -1; }
}
input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px; width: 100%; min-height: 44px; }
textarea { min-height: 90px; }
.form-error { color: var(--accent); }
#calendar-link { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
summary { cursor:pointer; font-size:20px; font-weight:750; min-height:44px; }
details form { display:grid; gap:12px; margin-block:18px; padding-top:12px; border-top:1px solid var(--line); }
details + details { margin-top:14px; }
fieldset { border:1px solid var(--line); border-radius:6px; max-height:220px; overflow:auto; }
.check { display:flex; align-items:center; gap:10px; min-height:44px; font-weight:400; }
.check input { width:20px; min-height:20px; flex:none; }
.next-step { border-left:4px solid var(--accent); padding:12px 18px; margin-bottom:20px; background:var(--soft); }
.next-step strong { font-size:12px; text-transform:uppercase; letter-spacing:.1em; }
.next-step p { color:var(--ink); font-size:20px; font-weight:650; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:14px; color:var(--muted); }
.delivery { border-top:1px solid var(--line); margin-top:20px; padding-top:14px; }
.feedback { padding:12px 16px; margin-bottom:18px; background:var(--soft); border-left:3px solid var(--accent); color:var(--ink); }
.event { grid-template-columns:90px minmax(0,1fr) minmax(0,1fr) auto; }
.filters { padding-top:18px; }
@media(max-width:670px) { .event { grid-template-columns:1fr auto; } .event time { grid-column:1/-1; } .event-info {grid-column:1;} .event .badge {grid-column:1;} .event .review {grid-row:2/4;grid-column:2;} }
.rights-notice { padding:12px; background:var(--hold); color:var(--hold-ink); border-radius:6px; }
