/* Repertuarium – editorial theatre look. Mobile-first, light + dark. */
:root {
  --bg: #f7f2ea;
  --surface: #fffdf9;
  --surface-2: #f1e9de;
  --ink: #1b1216;
  --muted: #6f6166;
  --line: #e7dccf;
  --accent: #9b1238;
  --accent-hover: #7d0d2c;
  --accent-ink: #fff;
  --accent-soft: #f7e3e8;
  --gold: #a8781f;
  --gold-soft: #f8ecd2;
  --danger: #b42318;
  --danger-soft: #fdebe8;
  --ok: #1d7a46;
  --ok-soft: #e4f3ea;
  --hero-bg: #16080e;
  --hero-ink: #fbf3ea;
  --hero-muted: #cdb9bd;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(40 18 26 / .05), 0 6px 20px -8px rgb(40 18 26 / .12);
  --shadow-hover: 0 2px 4px rgb(40 18 26 / .06), 0 16px 36px -12px rgb(40 18 26 / .22);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 64px;
  color-scheme: light;
}
/* per-theatre colour: must be computed on the element that carries --h (style="--h: 210") */
[style*="--h"] { --tc: hsl(var(--h) 58% 38%); --tc-soft: hsl(var(--h) 62% 94%); }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e090b; --surface: #181114; --surface-2: #21181c; --ink: #f5ede7; --muted: #a8979c; --line: #2d2226;
    --accent: #ff5c82; --accent-hover: #ff7a98; --accent-ink: #1a070d; --accent-soft: #3a1621;
    --gold: #e9bb62; --gold-soft: #33260f; --danger: #ff8a7d; --danger-soft: #3b1714; --ok: #6fd69e; --ok-soft: #14301f;
    --hero-bg: #0a0507;
    --shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-hover: 0 1px 0 rgb(255 255 255 / .05) inset, 0 18px 40px -14px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
  [style*="--h"] { --tc: hsl(var(--h) 75% 72%); --tc-soft: hsl(var(--h) 32% 17%); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { padding-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ico { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--hero-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgb(255 255 255 / .06); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hero-ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
.brand-text { font: 700 1.2rem/1 var(--serif); letter-spacing: -.01em; display: grid; gap: 3px; }
.brand-text small { font: 500 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hero-muted); }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .06); }
.nav a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--hero-muted); font: 500 .92rem var(--sans); transition: .15s; }
.nav a:hover { color: var(--hero-ink); }
.nav a[aria-current] { color: var(--hero-bg); background: var(--hero-ink); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: var(--hero-ink); background: var(--hero-bg);
  padding: 36px 0 28px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 160%; z-index: -1;
  background:
    radial-gradient(48% 55% at 18% 30%, rgb(176 22 64 / .55), transparent 70%),
    radial-gradient(38% 45% at 88% 8%, rgb(233 176 79 / .28), transparent 70%),
    radial-gradient(60% 50% at 70% 110%, rgb(120 16 52 / .45), transparent 70%); }
.hero::after { /* stage-curtain folds */ content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: repeating-linear-gradient(90deg, rgb(0 0 0 / .0) 0 28px, rgb(0 0 0 / .22) 28px 30px, rgb(0 0 0 / 0) 30px 58px);
  mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero--compact { padding: 22px 0 18px; }
.eyebrow { margin: 0 0 10px; font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #f1c873; }
.hero-title { margin: 0; font: 600 clamp(2.5rem, 9vw, 4.6rem)/.98 var(--serif); letter-spacing: -.025em;
  font-variation-settings: "opsz" 144; }
.hero-title--sm { font-size: clamp(2rem, 7vw, 3.2rem); }
.hero-sub { margin: 14px 0 0; color: var(--hero-muted); font-size: 1.02rem; }
.hero-sub strong { color: var(--hero-ink); font-weight: 600; }
.br-mobile { display: inline; }

.hero-search { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 22px; max-width: 640px;
  background: rgb(255 255 255 / .96); border-radius: 999px; padding: 6px 6px 6px 46px;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .2); }
.hero--compact .hero-search { margin-top: 0; }
.hero-search .ico { position: absolute; left: 16px; width: 20px; height: 20px; color: #7d6b70; }
.hero-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #1b1216;
  font: 500 1rem var(--sans); height: 44px; min-height: 0; padding: 0; border-radius: 0; }
.hero-search input::placeholder { color: #8b7a7f; }
.hero-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.presets { display: flex; gap: 8px; margin: 16px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  color: var(--hero-ink); text-decoration: none; font: 500 .92rem var(--sans);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); transition: .15s; }
.pill:hover { background: rgb(255 255 255 / .14); }
.pill.on { background: var(--hero-ink); color: var(--hero-bg); border-color: var(--hero-ink); font-weight: 600; }
/* tag row: categories / highlights, toggles */
.tagbar { display: flex; gap: 6px; margin: 10px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.tagbar::-webkit-scrollbar { display: none; }
.pill-tag { height: 32px; padding: 0 13px; font-size: .84rem; background: transparent; border-color: rgb(255 255 255 / .22);
  color: var(--hero-muted); }
.pill-tag:hover { color: var(--hero-ink); }
.pill-tag.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- buttons, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--sans); text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-accent { background: var(--accent); color: #fff; height: 44px; }
.btn-accent:hover { background: #7d0d2c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 15px; font-size: .88rem; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-block { width: 100%; margin-top: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px;
  font: 600 .74rem/1 var(--sans); letter-spacing: .01em; background: var(--surface-2); color: var(--muted); }
.badge.hl { background: var(--gold-soft); color: var(--gold); }
.badge.soft { background: var(--tc-soft, var(--accent-soft)); color: var(--tc, var(--accent)); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.muted { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.mono { display: inline-grid; place-items: center; border-radius: 50%; flex: none; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h) 62% 48%), hsl(calc(var(--h) + 18) 60% 34%));
  font: 700 .8rem/1 var(--serif); }
.mono-sm { width: 24px; height: 24px; font-size: .74rem; }
.mono-lg { width: 64px; height: 64px; font-size: 1.9rem; box-shadow: 0 0 0 4px rgb(255 255 255 / .2); }

/* ---------------------------------------------------------------- day strip */
.daystrip { display: flex; gap: 8px; margin: 18px -16px 0; padding: 4px 16px 10px; overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.daystrip::-webkit-scrollbar { display: none; }
.daystrip { align-items: flex-start; }
.day-tile { flex: none; scroll-snap-align: start; width: 64px; padding: 10px 0 9px; display: grid; justify-items: center; gap: 2px;
  align-content: start; grid-auto-rows: min-content;
  border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  text-decoration: none; transition: .15s; }
.day-tile:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-1px); }
.dt-dow { font: 600 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dt-num { font: 600 1.6rem/1.1 var(--serif); }
.dt-mon { font: 500 .7rem/1 var(--sans); color: var(--muted); }
.dt-count { margin-top: 5px; min-width: 26px; padding: 3px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font: 700 .7rem/1 var(--sans); text-align: center; }
.day-tile.we .dt-dow { color: var(--accent); }
.day-tile.is-empty { opacity: .5; }
.day-tile.is-empty .dt-count { background: transparent; color: var(--muted); }
.day-tile.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.day-tile.on .dt-dow, .day-tile.on .dt-mon { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.day-tile.on .dt-count { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- filter bar + dropdowns / sheets */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 14px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 600 .9rem var(--sans);
  user-select: none; transition: .15s; }
.dd summary:hover, .dd[open] summary { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dd summary::-webkit-details-marker { display: none; }
.dd summary .ico { width: 16px; height: 16px; color: var(--muted); }
.chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.dd[open] .chev { transform: rotate(180deg); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .72rem; }
.link-clear { font: 600 .9rem var(--sans); color: var(--muted); padding: 0 8px; }
.dd-body { background: var(--surface); padding: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--serif); font-size: 1.15rem; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dates label { display: grid; gap: 6px; font: 600 .78rem var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
input[type=search], input[type=date], input[type=text], input[type=url], input:not([type]), select, textarea {
  font: 500 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); min-height: 46px; padding: 10px 14px; width: 100%; }
.dd-search { margin-bottom: 6px; }
.dd-sub { margin: 14px 0 4px; font: 600 .72rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; max-height: min(46vh, 360px); overflow-y: auto; overscroll-behavior: contain; }
.checklist li label { display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; border-radius: 10px; }
.checklist li label:hover { background: var(--surface-2); }
.checklist input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.checklist small { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-name { font-weight: 500; }

/* mobile: compact header, dropdowns become bottom sheets */
@media (max-width: 719px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-text { font-size: 1.08rem; }
  .nav a { padding: 7px 11px; font-size: .86rem; }
}
@media (max-width: 400px) {
  .brand-text small { display: none; }
}
@media (max-width: 719px) {
  .dd[open]::before { content: ""; position: fixed; inset: 0; background: rgb(10 4 7 / .55); z-index: 60;
    animation: fade .2s ease; }
  .dd[open] .dd-body { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86vh; overflow-y: auto;
    border-radius: 24px 24px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 50px -10px rgb(0 0 0 / .4); animation: sheet .25s cubic-bezier(.2, .8, .2, 1); }
  .dd[open] .dd-body::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 99px;
    background: var(--line); margin: 0 auto 12px; }
}
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 13px; border-radius: 999px;
  background: var(--tc-soft); color: var(--tc); text-decoration: none; font: 600 .85rem var(--sans); }
.chip svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- results */
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }
.results-head h2 { margin: 0; font: 600 clamp(1.5rem, 4.5vw, 2rem)/1.15 var(--serif); letter-spacing: -.015em; }
.results-head p { margin: 0; font-weight: 500; }
.day-head { position: sticky; top: var(--header-h); z-index: 20; display: flex; align-items: baseline; gap: 10px;
  margin: 0; padding: 22px 0 10px; background: var(--bg); }
.day-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; pointer-events: none;
  background: linear-gradient(var(--bg), transparent); }
.dh-label { font: 600 1.25rem/1.2 var(--serif); }
.dh-label::first-letter { text-transform: uppercase; }
.dh-date { color: var(--muted); font: 500 .9rem var(--sans); }
.dh-count { margin-left: auto; color: var(--muted); font: 600 .8rem var(--sans); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 2px 14px; padding: 16px 16px 16px 18px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-time time { display: block; font: 600 1.45rem/1.15 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card-main { min-width: 0; }
.card-venue { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; text-decoration: none; color: var(--tc);
  font: 600 .82rem/1.3 var(--sans); }
.card-venue:hover span:nth-child(2) { text-decoration: underline; }
.card-venue .stage { color: var(--muted); font-weight: 500; }
.card-venue .stage::before { content: "·"; margin-right: 7px; }
.card-title { margin: 6px 0 0; font: 600 1.2rem/1.25 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.badges:empty { display: none; }
.card-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 14px; }
.card-actions .btn { flex: 1; }
.card.is-cancelled { opacity: .7; }
.card.is-cancelled .card-title, .card.is-cancelled time { text-decoration: line-through; text-decoration-thickness: 1.5px; }

.empty { text-align: center; padding: 48px 20px; margin-top: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.empty-art svg { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; }
.empty h3 { margin: 0; font: 600 1.6rem var(--serif); }
.empty p { color: var(--muted); }
.more { text-align: center; margin: 28px 0 0; }

/* ---------------------------------------------------------------- catalog */
.venues { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.venue { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .18s, box-shadow .18s; }
.venue:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.venue-cover { position: relative; height: 112px; display: flex; align-items: flex-end; padding: 0 18px 0;
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--h) 65% 42%), hsl(calc(var(--h) + 25) 55% 18%)); }
.venue-cover::after { content: ""; position: absolute; inset: 0; opacity: .25;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgb(0 0 0 / .35) 22px 24px); }
.venue-cover .mono { position: relative; z-index: 1; transform: translateY(32px); background: hsl(var(--h) 55% 30%);
  box-shadow: 0 0 0 5px var(--surface); }
.badge.on-cover { position: absolute; top: 14px; right: 14px; z-index: 1; background: rgb(255 255 255 / .16); color: #fff;
  backdrop-filter: blur(6px); }
.venue-body { display: flex; flex-direction: column; gap: 10px; padding: 44px 18px 18px; flex: 1; }
.venue h2 { margin: 0; font: 600 1.3rem/1.2 var(--serif); letter-spacing: -.01em; }
.venue-desc { margin: 0; color: var(--muted); font-size: .94rem; }
.venue-addr { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; }
.venue-addr .ico { width: 16px; height: 16px; color: var(--tc); }
.venue-addr span { color: var(--muted); font-weight: 400; }
.venue-next { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tc-soft);
  text-decoration: none; color: var(--ink); margin-top: 2px; }
.vn-label { font: 700 .66rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--tc); }
.vn-title { font: 600 1.02rem/1.25 var(--serif); }
.vn-when { font-size: .85rem; color: var(--muted); }
.venue-foot { margin-top: auto; padding-top: 4px; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.others { margin-top: 44px; }
.others-note { margin: 6px 0 0; }
.others-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.others-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface);
  border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.ol-main { display: grid; min-width: 0; flex: 1; }
.ol-name { font-weight: 600; line-height: 1.25; }
.ol-addr { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 56px; background: var(--hero-bg); color: var(--hero-muted); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 22px; }
.brand-footer { margin-bottom: 12px; }
.footer-note { margin: 0; max-width: 46ch; font-size: .92rem; }
.footer-meta p { margin: 0 0 8px; font-size: .9rem; }
.footer-meta a { color: var(--hero-ink); }
.freshness { display: flex; align-items: center; gap: 8px; }
.freshness strong { color: var(--hero-ink); font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgb(61 220 132 / .18); }

/* ---------------------------------------------------------------- admin (kept simple) */
body.admin .main { padding-top: 24px; }
body.admin h1 { font: 600 1.9rem/1.2 var(--serif); margin: 0; }
.flash { background: var(--ok-soft); color: var(--ok); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; }
table.status { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.status th, table.status td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.status th { font: 600 .72rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
table.status tr.err td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
table.status tr.stale td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
table.status tr.off { opacity: .5; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions .btn, body.admin .btn.small { height: 34px; padding: 0 12px; font-size: .82rem; }
body.admin .btn.ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); }
body.admin .btn.primary { background: var(--accent); color: var(--accent-ink); }
.errmsg { color: var(--danger); }
.warn { color: var(--gold); }
pre { white-space: pre-wrap; font-size: .78rem; max-width: 60ch; }
form.edit { display: grid; gap: 14px; max-width: 560px; margin-top: 16px; }
form.edit label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }

/* ---------------------------------------------------------------- larger screens */
@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .hero { padding: 64px 0 40px; }
  .hero--compact { padding: 28px 0 24px; }
  .br-mobile { display: none; }
  .presets { margin: 18px 0 0; padding: 0; }
  .tagbar { margin: 10px 0 0; padding: 0; flex-wrap: wrap; }
  .daystrip { margin: 24px 0 0; padding: 4px 0 10px; }
  .day-tile { width: 70px; }
  .dd[open] .dd-body { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 340px;
    border-radius: var(--radius); box-shadow: 0 24px 48px -16px rgb(20 6 12 / .35), 0 0 0 1px var(--line);
    animation: pop .16s ease; }
  .dd:last-of-type[open] .dd-body { left: auto; right: 0; }
  .sheet-head .icon-btn { display: none; }
  .card { grid-template-columns: 84px 1fr auto; align-items: center; padding: 18px 20px 18px 24px; gap: 4px 20px; }
  .card-time time { font-size: 1.65rem; }
  .card-title { font-size: 1.3rem; }
  .card-actions { grid-column: auto; margin: 0; flex-direction: column; align-items: stretch; min-width: 140px; }
  .card-actions .btn { flex: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .footer-meta { text-align: right; }
  .freshness { justify-content: flex-end; }
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- SEO landing pages */
.hero-title--page { margin-bottom: 16px; }
.h1-sub { display: block; margin-top: 6px; font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--hero-muted); }
.crumbs a, .hero-sub--page a { color: inherit; text-decoration-color: rgb(255 255 255 / .35); }
.crumbs a:hover, .hero-sub--page a:hover { color: var(--hero-ink); }
.hero-sub--page { margin: -6px 0 18px; }
.venue h2 .venue-link { color: inherit; text-decoration: none; }
.venue h2 .venue-link:hover { color: var(--accent); text-decoration: underline; }
.about { margin: 56px 0 0; padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--muted); }
.about h2 { margin: 0 0 10px; color: var(--ink); font: 600 1.3rem/1.2 var(--serif); }
.about h3 { margin: 18px 0 8px; color: var(--ink); font: 600 .95rem/1.2 var(--sans); }
.about p { margin: 0; max-width: 75ch; }
.about-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.about-links a { text-decoration: none; }
.about-links a:hover { text-decoration: underline; }
