/* OrchestraFinder — design system v1. Mobile-first, no build step. */

:root {
  --paper: #f6f2ea;
  --paper-2: #ede7db;
  --card: #fffdf8;
  --ink: #171923;
  --ink-2: #232633;
  --text: #1f2130;
  --muted: #6a6d7a;
  --line: #e1dacc;
  --gold: #c8a24a;
  --gold-2: #a9852f;
  --wine: #8a1c2b;
  --wine-2: #6e1522;
  --on-dark: #f3eee4;
  --on-dark-muted: #b8b3a7;
  --shadow: 0 1px 2px rgba(20, 22, 35, .05), 0 10px 28px rgba(20, 22, 35, .08);
  --shadow-hover: 0 2px 4px rgba(20, 22, 35, .06), 0 16px 40px rgba(20, 22, 35, .14);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
  --tab-h: 62px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12141c;
    --paper-2: #181b25;
    --card: #1b1e29;
    --text: #ebe6da;
    --muted: #9d998f;
    --line: #2a2e3c;
    --gold: #d6b25b;
    --wine: #b23a4a;
    --wine-2: #8f2a38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; }
.h3 { font-family: var(--font-display); font-weight: 600; margin: 1.6rem 0 .6rem; }
.h3:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: .5rem .8rem; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 44rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 .5rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 42rem; }
.hero .lede { color: var(--on-dark-muted); }

/* Header */

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(200, 162, 74, .28), transparent 60%),
    radial-gradient(700px 400px at 90% 110%, rgba(138, 28, 43, .35), transparent 60%),
    var(--ink);
  color: var(--on-dark);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 600; max-width: 14ch; margin-bottom: .5em; }
.hero-inner { max-width: 760px; }

.finder { margin-top: 1.6rem; }
.finder-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.finder-row input[type="text"], .finder-row input[type="search"], .finder-row select, .finder-row input[type="date"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1.05rem; padding: .85rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.hero .finder-row input, .hero .finder-row select { border-color: transparent; }
.finder-row select { flex: 0 1 160px; }
.finder-row label { display: flex; align-items: center; gap: .5rem; color: inherit; }
.finder-row label input { flex: 1; }
.finder-dates { margin-top: .6rem; align-items: center; }
.finder-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
.finder-hint { font-size: .85rem; }
.hero .finder-hint { color: var(--on-dark-muted); }
.hero .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .25); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: 1.5rem 2.2rem; flex-wrap: wrap; color: var(--on-dark-muted); font-size: .95rem; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--on-dark); line-height: 1.1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 600; font-size: .98rem; padding: .8rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-2); box-shadow: 0 6px 18px rgba(138, 28, 43, .3); }
.btn-secondary { background: var(--ink); color: var(--on-dark); }
.btn-secondary:hover { background: var(--ink-2); }
@media (prefers-color-scheme: dark) { .btn-secondary { background: var(--gold); color: var(--ink); } .btn-secondary:hover { background: var(--gold-2); } }
.btn-ghost { background: transparent; color: inherit; border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Sections */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head.compact { margin-bottom: .8rem; }
.link-more { font-weight: 600; color: var(--wine); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .link-more { color: var(--gold); } }
.split { display: grid; gap: 2rem; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.page-head { padding: clamp(1.8rem, 4vw, 3rem) 0 1.2rem; }
.page-head h1 { margin-bottom: .3em; }
.detail-head { background: var(--paper-2); padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a:hover { color: var(--text); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.actions.center { justify-content: center; }
.notice { background: #fff4e1; border: 1px solid #f0d9a8; color: #6b4a00; padding: .8rem 1rem; border-radius: var(--radius-sm); display: inline-block; }

.filters { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; margin-top: .8rem; }
.filters label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 500; color: var(--muted); flex: 1 1 160px; }
.filters select, .filters input { font: inherit; font-size: 1rem; padding: .65rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--text); }
.filters .btn { flex: 0 0 auto; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.chip { display: inline-flex; gap: .35rem; align-items: baseline; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .92rem; font-weight: 500; }
.chip:hover { text-decoration: none; border-color: var(--gold); }
.chip.is-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.chip.is-active .muted { color: var(--on-dark-muted); }
@media (prefers-color-scheme: dark) {
  .chip.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
  .chip.is-active .muted { color: var(--ink-2); }
}

/* Grids and cards */
.grid { display: grid; gap: 1rem; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid.people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card {
  display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
  min-height: 100%;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--gold); text-decoration: none; }
.card-body { min-width: 0; flex: 1; }
.card-title { font-size: 1.12rem; margin: 0 0 .25rem; }
.card-orchestra { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--wine); margin: 0 0 .15rem; line-height: 1.2; }
@media (prefers-color-scheme: dark) { .card-orchestra { color: var(--gold); } }
.concert-card .card-title { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--text); }
.card-place { margin-top: .1rem; font-weight: 600; color: var(--text); }
.card-sub { font-weight: 500; margin: 0 0 .2rem; }
.card-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.card-cities { margin: .2rem 0 0; font-size: .78rem; line-height: 1.35; color: var(--muted); opacity: .9; }
.card-kicker { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin: 0 0 .35rem; }
.date-block {
  flex: none; width: 64px; text-align: center; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-sm);
  padding: .45rem 0; line-height: 1.05; align-self: flex-start;
}
.date-block .dow { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.date-block .day { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: .1rem 0; }
.date-block .mon { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); }
.program-chips { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.program-chips li { font-size: .8rem; background: var(--paper-2); border-radius: 999px; padding: .2rem .6rem; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.program-chips .more { color: var(--muted); background: transparent; }

.person-card { align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.avatar-initials { display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--gold-2); background: var(--paper-2); }
.portrait { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--card); box-shadow: var(--shadow); font-size: 2rem; }
.person-head-row { display: flex; gap: 1.4rem; align-items: center; }
@media (max-width: 560px) { .person-head-row { flex-direction: column; align-items: flex-start; } .portrait { width: 88px; height: 88px; } }

.day-group { margin-bottom: 1.8rem; }
.day-heading { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--muted); margin: 0 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.day-heading span { color: var(--text); font-weight: 600; }
.state-group { margin-bottom: 2rem; }
.state-heading { margin-bottom: .8rem; }

/* Detail layouts */
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 3rem; } }
.two-col > aside { align-self: start; }
.two-col > * { min-width: 0; max-width: 100%; } /* a grid track never grows past the phone because one child has a wide min-content (/me on a Pixel, 2026-09-04) */
.appearances .ap-orch, .appearances .ap-work, .notif-list li, .follow-row { overflow-wrap: anywhere; min-width: 0; }
.notif-list li > a, .follow-row > * { min-width: 0; }
.notif-list li > a + span { flex: none; white-space: nowrap; margin-left: auto; padding-left: .5rem; } /* the date column stays one line */
@media (min-width: 900px) { .two-col > aside { position: sticky; top: calc(var(--header-h) + 1rem); } } /* direct child only: inline asides (first-time box, source note) must scroll with the text */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.artist-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.artist-list li { display: flex; flex-direction: column; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.artist-list .muted { font-size: .85rem; }
.program { padding-left: 1.4rem; margin: 0 0 1.5rem; }
.program li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.program .composer { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); font-weight: 600; }
.program .work { font-size: 1.05rem; font-weight: 500; }
.work-group { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: .6rem; }
.work-group summary { cursor: pointer; padding: .7rem .9rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.work-group summary::after { content: "+"; color: var(--muted); }
.work-group[open] summary::after { content: "–"; }
.work-group .plain-list { padding: 0 .9rem .5rem; font-size: .95rem; }
.star { color: var(--gold); font-size: .8em; }
.nick { font-style: italic; font-weight: 400; color: var(--muted); }
.result-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.result-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 .9em; }
.hook { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--text); max-width: 44ch; margin: .2rem 0 0; }
.start-list { padding-left: 1.3rem; max-width: 66ch; }
.start-list li { margin: 0 0 .6rem; }
.start-list .work { font-weight: 600; }
.tips { max-width: 66ch; padding-left: 1.2rem; }
.tips li { margin: 0 0 .5rem; }
.appearances li a { display: flex; flex-direction: column; gap: .05rem; padding: .1rem 0; }
.appearances li a:hover { text-decoration: none; }
.appearances li a:hover .ap-orch { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ap-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-2); font-weight: 600; }
.ap-orch { font-weight: 600; font-size: .95rem; }
.ap-work { font-size: .88rem; color: var(--muted); }
.work-group .appearances { padding: 0 .9rem .5rem; }
/* Glossary terms in prose: quiet underline, definition on hover/tap, page on click. */
a.term { color: inherit; text-decoration: underline dotted var(--gold-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; position: relative; cursor: help; }
a.term:hover, a.term:focus { text-decoration-style: solid; text-decoration-color: var(--gold); }
a.term::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; width: max(220px, min(320px, 60vw));
  background: var(--ink); color: var(--on-dark); font-size: .82rem; line-height: 1.4; font-weight: 400; font-style: normal; padding: .55rem .7rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .12s, transform .12s; white-space: normal;
}
a.term:hover::after, a.term:focus::after { opacity: 1; transform: translateY(0); }
@media (hover: none) { a.term::after { display: none; } } /* touch: the tap goes to the page */
.glossary { margin: 0 0 2rem; }
.glossary-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .4rem 1.2rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .glossary-row { grid-template-columns: 1fr; gap: .15rem; } }
.glossary dt { margin: 0; font-weight: 600; }
.glossary dt .say { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.glossary dd { margin: 0; }
.glossary .more { font-weight: 600; color: var(--wine); white-space: nowrap; }
.movements { padding-left: 1.3rem; font-size: .95rem; }
.movements li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.movements li:last-child { border-bottom: 0; }
.source-note { margin: 1.6rem 0 0; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); background: var(--paper-2); max-width: 66ch; font-size: .92rem; display: flex; flex-direction: column; gap: .15rem; }
.source-note-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Search typeahead */
.has-suggest { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  text-align: left;
}
.header-search .suggest { min-width: min(92vw, 460px); right: 0; left: auto; top: calc(100% + 8px); }
.suggest-group + .suggest-group { border-top: 1px solid var(--line); }
.suggest-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); padding: .65rem 1rem .25rem; }
.suggest-item { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; min-height: 48px; color: var(--text); }
.suggest-item:hover, .suggest-item.is-active { background: var(--paper-2); text-decoration: none; }
.suggest-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.suggest-text { display: flex; flex-direction: column; min-width: 0; }
.suggest-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-title mark { background: transparent; color: var(--wine); font-weight: 700; }
@media (prefers-color-scheme: dark) { .suggest-title mark { color: var(--gold); } }
.suggest-sub { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-all { border-top: 1px solid var(--line); font-weight: 600; color: var(--wine); }
@media (prefers-color-scheme: dark) { .suggest-all { color: var(--gold); } }
.notice-block { display: block; margin: 0 0 1.5rem; }
.notice-block a { text-decoration: underline; }

/* Admin */
.admin-nav { background: var(--ink); color: var(--on-dark); }
.admin-nav-row { display: flex; align-items: center; gap: 1.2rem; height: 46px; overflow-x: auto; font-size: .95rem; }
.admin-nav a { white-space: nowrap; }
.admin-nav a:hover { color: var(--gold); text-decoration: none; }
.admin-brand { font-family: var(--font-display); color: var(--gold); font-weight: 600; }
.admin-logout { margin-left: auto; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.admin-flash { margin-top: 1rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--paper-2); color: var(--text); vertical-align: middle; }
.badge-ok { background: #dff3e4; color: #145a2b; }
.badge-warn { background: #fff1c9; color: #6b4a00; }
.badge-err { background: #f8dede; color: #8a1c2b; }
.badge-run { background: #dbe8ff; color: #1a3f8a; }
.admin-nav .badge { background: var(--gold); color: var(--ink); }
.stats-light { color: var(--muted); margin: 0 0 1.5rem; }
.stats-light b { color: var(--text); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table th, .table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.w-4 { width: 4.5rem; }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 1rem 0; }
.panel > summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; }
.panel > form { padding: 0 1.1rem 1.1rem; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.stack label, .cand-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.stack input, .stack select, .stack textarea, .cand-grid input, .cand-grid select, .cand-grid textarea, .inline-form input {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem; width: 100%;
}
.stack .row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
label.check { flex-direction: row; align-items: center; gap: .5rem; }
label.check input { width: auto; }
.cand { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.cand.is-changed { border-color: var(--gold); }
.cand-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.cand-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .cand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cand-grid .span2 { grid-column: span 2; }
.cand-grid textarea { min-height: 2.4rem; }
.matches { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
.match.is-ok { color: #145a2b; }
.match.is-miss { color: #8a1c2b; }
.match.is-partial { color: #6b4a00; }
.match { display: block; padding: .15rem 0; line-height: 1.45; }
.match-text { display: inline; }
.worklink-toggle { width: 22px; height: 22px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; opacity: .5; vertical-align: middle; margin-left: .2rem; }
.worklink-toggle:hover { opacity: 1; background: var(--paper-2); color: var(--wine); }
.worklink-toggle svg { width: 14px; height: 14px; }
.worklink { display: block; position: relative; margin: .25rem 0 .4rem; max-width: 420px; }
.worklink[hidden] { display: none; }
.worklink input[type="text"] { font-size: .85rem; padding: .35rem .6rem; width: 100%; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); }
.worklink input.is-linked { border-style: solid; border-color: var(--gold); }
.suggest-compact { top: calc(100% + 4px); max-height: 260px; z-index: 80; }
.suggest-compact .suggest-item { min-height: 36px; padding: .4rem .8rem; font-size: .88rem; }
@media (prefers-color-scheme: dark) { .match.is-ok { color: #7fd39a; } .match.is-miss { color: #f08a96; } .badge-ok { background: #1d4a2a; color: #b6f0c4; } .badge-warn { background: #4d3a00; color: #ffe08a; } .badge-err { background: #4a1a20; color: #f5b3bb; } .badge-run { background: #1a2f5a; color: #b9d0ff; } }
.cand-actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }

/* Empty states */
.empty { text-align: center; padding: 2.2rem 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.empty.compact { padding: 1.4rem 1rem; text-align: left; margin-bottom: 1.5rem; }
.empty.tall { padding: 4rem 1rem; }
.empty-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: .3rem; }
.empty .btn { margin-top: .5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 1.5rem; font-size: .95rem; }
.footer-row { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 500; }
.footer-legal { margin-top: 1.5rem; font-size: .85rem; }

/* Mobile tab bar */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
.tab-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 500; color: var(--muted); }
.tab-bar a:hover { text-decoration: none; }
.tab-bar svg { width: 24px; height: 24px; }
.tab-bar a[aria-current="page"] { color: var(--wine); }
@media (prefers-color-scheme: dark) { .tab-bar a[aria-current="page"] { color: var(--gold); } }
@media (min-width: 900px) { .tab-bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.guide-body h2 { font-size: 1.35rem; margin-top: 1.8em; }
.guide-body p { font-size: 1.05rem; line-height: 1.65; }
.guide-card .card-title { font-family: var(--font-display); font-size: 1.2rem; }
/* Accounts */
.account-link { display: inline-flex; align-items: center; gap: .35rem; position: relative; font-weight: 500; white-space: nowrap; }
.account-link svg { width: 22px; height: 22px; }
.account-link:hover { text-decoration: none; color: var(--wine); }
.is-home .account-link:hover { color: var(--gold); }
.badge-dot { position: absolute; top: -6px; left: 12px; background: var(--wine); color: #fff; font-size: .65rem; font-weight: 700; border-radius: 999px; padding: 0 .35rem; line-height: 1.5; }
@media (max-width: 640px) { .account-label { display: none; } }
.follow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.follow .is-following { background: var(--paper-2); color: var(--text); border-color: var(--line); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn-google { gap: .6rem; }
.btn-google svg { width: 18px; height: 18px; }
.notif-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.notif-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.notif-list li.is-unread { background: color-mix(in srgb, var(--gold) 10%, transparent); padding-left: .5rem; border-left: 3px solid var(--gold); }
.follow-row { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.badge-kind { display: inline-block; font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.kind-signup, .kind-verify { background: color-mix(in srgb, var(--gold) 25%, transparent); }
.kind-follow, .kind-save { background: color-mix(in srgb, #2f7d4a 18%, transparent); }
.kind-unfollow, .kind-unsave, .kind-delete { background: color-mix(in srgb, var(--wine) 14%, transparent); }
.legal h2 { margin-top: 1.8rem; } .legal h3 { margin-top: 1.2rem; font-size: 1.05rem; } .legal ul { padding-left: 1.2rem; } .legal li { margin: .35rem 0; }

/* Trip planner */
.trip-tabs { display: flex; gap: .4rem; margin: 1.2rem 0 .4rem; }
.trip-tab { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.trip-tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.trip-tab:hover { text-decoration: none; }
.trip-rows { display: flex; flex-direction: column; gap: .5rem; }
.trip-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.trip-row input, .trip-row select { min-width: 0; width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--text); font: inherit; }
.trip-row label { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.trip-row label input, .trip-row label select { flex: 1; }
.trip-route { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: .5rem; }
.trip-remove { font-size: 1.3rem; line-height: 1; padding: .2rem .5rem; color: var(--muted); }
.trip-head { flex-wrap: wrap; }
.trip-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.trip-tools .inline-form { display: flex; gap: .4rem; }
.trip-tools input[type="text"] { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--text); font: inherit; width: 12rem; }
.trip-stop { margin-top: 2rem; }
.trip-stop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.trip-stop-head h3 { margin: 0; font-size: 1.25rem; }
.trip-num { display: inline-flex; width: 1.7rem; height: 1.7rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .9rem; font-weight: 700; margin-right: .3rem; }
.trip-item { margin-bottom: .6rem; }
.trip-along { margin: -.3rem 0 0 .4rem; }
.trip-saved li { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .trip-row { grid-template-columns: 1fr 1fr; } .trip-row input[type="text"] { grid-column: 1 / -1; } .trip-remove { justify-self: end; } }
/* Maps (Leaflet) */
.of-map { height: 380px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 1.6rem; background: var(--paper-2); z-index: 0; }
.of-map-tall { height: min(70vh, 640px); border-radius: 0; border-left: 0; border-right: 0; margin: 0; }
.of-pin { display: flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.of-pin-stop { background: var(--ink); color: var(--paper); font-size: .8rem; border: 2px solid var(--gold); }
.of-pin-concert { background: var(--wine); color: #fff; font-size: .85rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.of-pin-concert { display: flex; }
.of-pin-concert::after { content: none; }
.leaflet-div-icon.of-pin-concert { line-height: 1; }
.of-pin-concert > * { transform: rotate(45deg); }
.leaflet-popup-content { font: inherit; font-size: .9rem; line-height: 1.4; }
.leaflet-popup-content hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0; }
.leaflet-container a { color: var(--wine); }
.trip-route-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.compact-head { padding-bottom: 1rem; }
.map-form { margin-top: .8rem; }
.map-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.map-list .ap-date { display: inline-block; min-width: 7.5rem; color: var(--gold-dark, var(--muted)); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 640px) { .of-map { height: 300px; } .trip-route-row { grid-template-columns: auto minmax(0, 1fr) auto; } .trip-route-row input[type="text"] { grid-column: auto; } }
/* "New to classical?" nav highlight and home section */
.primary-nav .nav-new { background: var(--gold); color: var(--ink); border-radius: 999px; padding: .3rem .8rem; border-bottom: 0; font-weight: 600; }
.primary-nav .nav-new:hover { background: var(--wine); color: #fff; }
.is-home .primary-nav .nav-new { color: var(--ink); }
.section-new { background: color-mix(in srgb, var(--gold) 12%, var(--paper)); }
.section-new .lede-sm { max-width: 62ch; margin: -.4rem 0 1.4rem; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.guide-tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guide-tile { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem; }
.guide-tile .card-title { margin: 0; font-size: 1.1rem; }
.guide-tile .card-meta { margin: 0; flex: 1; }
.guide-tile:hover { text-decoration: none; border-color: var(--gold); }

.place-suggest { position: absolute; z-index: 1000; left: 0; top: 0; min-width: 240px; }

.badge-new { display: inline-block; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; vertical-align: middle; }
.trip-item.is-new .concert-card { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.trip-item.is-new .trip-along::before { content: "New · "; color: var(--gold-2, var(--gold)); font-weight: 700; }
.trip-card summary b { font-weight: 600; }
.trip-card-body { padding: .3rem .9rem .8rem; }
.trip-card-body .appearances .ap-orch { white-space: normal; }
/* Hero: trip call-out */
.hero-trip { display: flex; align-items: center; gap: .9rem; margin: 1.1rem 0 .4rem; padding: .85rem 1.1rem; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.07); color: var(--on-dark); max-width: 720px; }
.hero-trip:hover { text-decoration: none; background: rgba(255,255,255,.12); border-color: var(--gold); }
.hero-trip-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.hero-trip-icon svg { width: 22px; height: 22px; }
.hero-trip-text { flex: 1; line-height: 1.4; }
.hero-trip-text b { color: #fff; }
.hero-trip-cta { flex: none; font-weight: 600; color: var(--gold); white-space: nowrap; }
@media (max-width: 640px) { .hero-trip { flex-wrap: wrap; } .hero-trip-cta { margin-left: 52px; } }
/* Hero trip call-out, louder */
.hero-trip { background: linear-gradient(120deg, var(--gold) 0%, #e6c063 60%, #f0d58a 100%); color: var(--ink); border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35); transform: translateZ(0); transition: transform .15s ease, box-shadow .15s ease; }
.hero-trip:hover { background: linear-gradient(120deg, #e6c063 0%, var(--gold) 100%); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.4); border: 0; }
.hero-trip-icon { background: var(--ink); color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero-trip-text { color: var(--ink); }
.hero-trip-text b { color: var(--ink); font-size: 1.08em; }
.hero-trip-cta { background: var(--ink); color: var(--gold); padding: .5rem .95rem; border-radius: 999px; }

/* I'm going + messages */
.going-panel { border: 1px solid var(--gold); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; background: color-mix(in srgb, var(--gold) 8%, var(--card)); }
.going-panel .h3 { margin-top: 0; }
.going-state { margin: .2rem 0 .4rem; font-weight: 600; }
.going-edit summary { cursor: pointer; color: var(--muted); }
.going-fields { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.going-fields label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.going-fields input[type="text"], .going-fields select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--text); font: inherit; }
.going-fields input[type="text"] { flex: 1; min-width: 12rem; }
.inline-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .3rem 0 0; }
.going-list { list-style: none; padding: 0; margin: .8rem 0 .4rem; }
.going-list li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.going-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.going-note { font-style: italic; color: var(--muted); font-size: .9rem; }
.badge-meet { display: inline-block; background: color-mix(in srgb, #2f7d4a 18%, transparent); color: #1f5c35; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; font-weight: 600; }
.avatar.small { width: 34px; height: 34px; font-size: .8rem; flex: none; }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.badge-dot.inline { position: static; margin-left: .2rem; }
.thread-list { list-style: none; padding: 0; margin: 0; }
.thread-list li a { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.thread-list li a:hover { text-decoration: none; background: var(--paper-2); }
.thread-list li.is-unread b { color: var(--wine); }
.thread-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.thread-last { color: var(--muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-when { flex: none; }
.thread { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.2rem; }
.msg { max-width: 82%; align-self: flex-start; }
.msg.is-mine { align-self: flex-end; text-align: right; }
.msg-body { display: inline-block; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: .6rem .9rem; line-height: 1.45; }
.msg.is-mine .msg-body { background: var(--ink); color: var(--paper); border-color: var(--ink); border-radius: 14px 14px 4px 14px; }
.msg-meta { margin-top: .15rem; }
.msg-reply textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--text); font: inherit; }
.stack-sm { display: flex; flex-direction: column; gap: .3rem; }
.going-note-label { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; }
.going-note-label textarea { width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--text); font: inherit; resize: vertical; }
.going-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.going-mynote { font-style: italic; margin: .1rem 0 .4rem; padding-left: .6rem; border-left: 3px solid var(--gold); }

/* Community */
.member-chip { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.member-chip .avatar { width: 26px; height: 26px; font-size: .7rem; }
.stars { color: var(--line); letter-spacing: .05em; font-size: .95rem; }
.stars .on { color: var(--gold); }
.post-list, .review-list { display: flex; flex-direction: column; gap: .8rem; margin: .6rem 0 1rem; }
.post, .review { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: var(--card); }
.post-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.post-body { line-height: 1.5; }
.post-actions { margin-top: .4rem; }
.post-replies { margin: .6rem 0 0 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.post-reply { background: var(--paper-2); }
.post-form { margin-top: .8rem; }
.post-form textarea, .review-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--text); font: inherit; }
.post-reply-form { margin: .5rem 0 0 1.2rem; }
.post-reply-form textarea { margin-bottom: .4rem; }
.discussion, .audience { margin-top: 2rem; }
.review-form { border: 1px solid var(--gold); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; background: color-mix(in srgb, var(--gold) 8%, var(--card)); display: flex; flex-direction: column; gap: .5rem; }
.rating-pick { display: flex; gap: .15rem; font-size: 1.7rem; direction: rtl; justify-content: flex-end; width: max-content; }
.rating-pick label { cursor: pointer; }
.rating-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-pick span { color: var(--line); transition: color .1s; }
.rating-pick label:hover span, .rating-pick label:hover ~ label span, .rating-pick input:checked ~ span, .rating-pick label:has(input:checked) ~ label span { color: var(--gold); }
.badge-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.badge-list li { display: flex; gap: .6rem; align-items: center; }
.badge-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 50%; font-size: 1.1rem; flex: none; }
.attended-list { display: flex; flex-direction: column; gap: .7rem; }
.attended { border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.attended-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; color: inherit; }
.attended-review { margin-top: .3rem; font-size: .95rem; line-height: 1.45; }
.handle { font-family: var(--font-body, inherit); font-size: 1.1rem; font-weight: 400; }
.color-pick { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; display: inline-block; }
.swatch:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px var(--card); }
.swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.prompt-card { margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid var(--gold); border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, var(--card)); }
.stats-light li b { color: var(--ink); }
.member-list li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.how-list li { margin: .5rem 0; line-height: 1.45; }

/* Seasons and tenure */
.season-banner { background: var(--ink); color: var(--paper); font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.season-banner .wrap { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-top: .45rem; padding-bottom: .45rem; }
.season-banner a { color: var(--gold); }
.season-banner-bottom { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
.season-tag { background: var(--gold); color: var(--ink); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.season-cta { margin-left: auto; font-weight: 600; white-space: nowrap; }
.is-home .season-banner { background: var(--ink); }
.hero-season { margin: 1rem 0 .2rem; max-width: 720px; color: var(--on-dark); }
.hero-season b { color: var(--gold); }
.tenure-pill { display: inline-block; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; font-size: .85rem; font-weight: 600; color: var(--text); }
.tenure-pill.inaugural { background: color-mix(in srgb, var(--gold) 25%, var(--paper-2)); border-color: var(--gold); }
.tenure-line { margin: -.2rem 0 .6rem; }
.tenure-mini { font-size: .8rem; margin-left: .15rem; cursor: help; }
.rank-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; }
.rank-list li { display: flex; gap: .6rem; align-items: center; }
@media (max-width: 640px) { .season-banner .wrap { gap: .4rem; font-size: .85rem; } .season-cta { margin-left: 0; } }

/* Join card + header join link */
.join-card { border: 1px solid var(--gold); border-radius: 14px; padding: 1.2rem 1.4rem; background: color-mix(in srgb, var(--gold) 10%, var(--card)); margin: 1.5rem 0; }
.join-card.is-compact { padding: .9rem 1rem; margin: 1.2rem 0; }
.join-card .h3 { margin: .2rem 0 .6rem; }
.join-card.is-compact .h3 { font-size: 1.05rem; }
.join-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2, #8a6a1c); margin: 0; }
.join-perks { margin: 0 0 .8rem; padding-left: 1.1rem; display: grid; gap: .3rem; }
.join-card .actions { margin: .4rem 0 .3rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.account-link.is-join { background: var(--gold); color: var(--ink); border-radius: 999px; padding: .3rem .8rem .3rem .6rem; font-weight: 600; }
.account-link.is-join:hover { background: var(--wine); color: #fff; }
.footer-join { padding-top: .8rem; font-weight: 600; }
.footer-join a { color: var(--gold-2, var(--wine)); }

/* Composer slider (home): one thin slide per composer, autoplays, swipe or arrows. */
.section-slider { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.section-slider .section-head { margin-bottom: .8rem; }
.cslider { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.cslider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--radius); outline: none; }
.cslider-track::-webkit-scrollbar { display: none; }
.cslider-track:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.cslide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: .7rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 92px; box-sizing: border-box; }
.cslide-who { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; min-width: 0; }
.cslide-who .avatar { width: 52px; height: 52px; }
.cslide-name { display: flex; flex-direction: column; min-width: 0; }
.cslide-name strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; }
.cslide-who:hover strong { color: var(--wine); }
.cslide-perfs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.cslide-perfs li { min-width: 0; }
.cslide-perfs a { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: .2rem .6rem; color: inherit; text-decoration: none; font-size: .86rem; line-height: 1.3; }
.cslide-perfs a:hover .cslide-work, .cslide-perfs a:hover .cslide-orch { color: var(--wine); }
.cslide-date { font-weight: 700; color: var(--gold-2); white-space: nowrap; }
.cslide-orch { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cslide-work { grid-column: 2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cslide-more a { font-size: .82rem; font-weight: 600; color: var(--wine); text-decoration: none; }
.cslider-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; box-shadow: var(--shadow); }
.cslider-btn:hover { background: var(--wine); color: var(--on-dark); border-color: var(--wine); }
.cslider-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: .4rem; margin-top: .6rem; }
.cslider-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: transform .2s, background .2s; }
.cslider-dots button[aria-selected="true"] { background: var(--wine); transform: scale(1.35); }
.cslider-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .cslider-dots button { background: #4a4d5a; } .cslider-dots button[aria-selected="true"] { background: var(--gold); } .cslide-date { color: var(--gold); } }
@media (max-width: 760px) {
  .cslider { grid-template-columns: minmax(0, 1fr); }
  .cslider-btn { display: none; }
  .cslide { grid-template-columns: 1fr; gap: .5rem; padding: .7rem .9rem; }
  .cslide-perfs li:nth-child(n+3):not(.cslide-more) { display: none; }
  .cslide-perfs a { grid-template-columns: 5em minmax(0, 1fr); }
  .cslide-work { grid-column: 1 / -1; }
}

/* Concert page: why-go layer, first-timer box, report form. */
.why-go { background: var(--paper-2); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: .7rem 1rem; margin: 1rem 0 1.4rem; display: grid; gap: .35rem; }
.why-go p { margin: 0; line-height: 1.45; }
.first-time { margin: 1.5rem 0; padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.first-time-title { margin: 0 0 .25rem; font-weight: 700; font-family: var(--font-display); }
.first-time p { margin: 0; }
.report-box { margin: 1.2rem 0 0; }
.report-box summary { cursor: pointer; }
.report-box form { margin-top: .6rem; max-width: 520px; }
.code { background: var(--ink); color: var(--on-dark); padding: 1rem; border-radius: var(--radius-sm); font-size: .8rem; overflow-x: auto; line-height: 1.45; }

/* Orchestra page: season grid, steward box, staff badge. */
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: 0 0 1.6rem; }
.season-month { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; text-decoration: none; min-height: 88px; }
.season-month:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.season-month-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.season-month-n { position: absolute; }
.season-month { position: relative; }
.season-month-n { top: .5rem; right: .6rem; font-size: .8rem; font-weight: 700; color: var(--wine); background: var(--paper-2); border-radius: 999px; padding: .05rem .5rem; }
.season-month-titles { display: flex; flex-direction: column; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.season-anchor { margin-top: 1.4rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.steward-box { margin-top: .8rem; }
.staff-badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark); background: var(--wine); border-radius: 4px; padding: .1rem .4rem; margin-left: .35rem; vertical-align: middle; }

/* Conductors, heard-live, leaders, month chips. */
.conductor-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; }
.conductor-name { font-weight: 600; }
.heard-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.leaders { counter-reset: n; }
.leaders li { padding: .3rem 0; }
.month-chips { margin-top: .8rem; }
.trip-map { height: 320px; border-radius: var(--radius); margin-bottom: 1.2rem; background: var(--paper-2); }
@media (prefers-color-scheme: dark) { .why-go { background: #2a2d3a; } .season-month-n { background: #2a2d3a; } }

/* Header: plain "Sign in" beside the Join pill for signed-out visitors. */
.signin-link { margin-left: .7rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.signin-link:hover { color: var(--wine); text-decoration: none; }
@media (prefers-color-scheme: dark) { .signin-link { color: var(--text); } .signin-link:hover { color: var(--gold); } }
.is-home .signin-link, .section-dark .signin-link { color: var(--on-dark); }
.is-home .signin-link:hover { color: var(--gold); }
@media (max-width: 640px) { .signin-link { margin-left: .5rem; font-size: .9rem; } }

.account-group { display: inline-flex; align-items: center; margin-left: auto; white-space: nowrap; position: relative; }
.account-group .account-link { margin-left: 0 !important; }

/* Listen box on work pages. */
.listen-box { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.4rem; }
.listen-box .h3 { margin-top: 0; }
.listen-rec { margin: 0 0 .3rem; }
.listen-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.listen-btn { display: inline-block; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .82rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.listen-btn:hover { border-color: var(--wine); color: var(--wine); text-decoration: none; }

/* Meet-ups, rooms, mentions. */
.meetups { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.meetup { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.meetup-what { font-weight: 700; }
.meetup-meta { color: var(--muted); font-size: .85rem; }
.meetup-form { margin-top: .6rem; }
.meetup-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.room-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; }
.room-name { font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; }
.mention { font-weight: 600; color: var(--wine); }

/* Newcomer bar under section heads: a gold call-out card, same voice as the hero's trip call-out. */
.newcomer-bar { padding: .9rem 0 .2rem; }
.newcomer-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; padding: .85rem 1.1rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--gold) 0%, #e6c063 60%, #f0d58a 100%); color: var(--ink); box-shadow: 0 8px 24px rgba(20, 22, 35, .14), inset 0 1px 0 rgba(255,255,255,.4); }
.newcomer-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: var(--ink); border-radius: 999px; padding: .32rem .7rem; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.newcomer-tag::before { content: "♪"; font-size: .95rem; }
.newcomer-blurb { color: var(--ink); font-weight: 600; font-size: .95rem; max-width: 34rem; }
.newcomer-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-left: auto; }
.newcomer-btn { background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: .38rem .8rem; font-size: .84rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; transition: transform .12s ease, background .12s ease; }
.newcomer-btn .muted { color: var(--gold); }
.newcomer-btn:hover { background: var(--wine); border-color: var(--wine); color: #fff; text-decoration: none; transform: translateY(-1px); }
.newcomer-all { font-size: .84rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 760px) { .newcomer-links { margin-left: 0; } .newcomer-row { padding: .8rem .9rem; } }
@media (prefers-color-scheme: dark) { .newcomer-row { color: var(--ink); } .newcomer-blurb { color: var(--ink); } }

/* If-you-like bridges and pop-culture roots. */
.bridges, .roots { display: grid; gap: .8rem; margin: 1.2rem 0 2rem; }
.bridge, .root { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.bridge p, .root p { margin: 0 0 .35rem; }
.bridge-from { font-size: .95rem; }
.bridge-to { font-family: var(--font-display); font-size: 1.2rem; }
.root-song { font-size: 1rem; }
.root-src { color: var(--muted); font-size: .9rem; }

/* Orchestra page redesign (2026-09-04): header stats, next-up strip, program rows, month strip, kind filters. */
.orch-lede a { font-weight: 600; }
.orch-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .4rem 0 1rem; font-size: .95rem; color: var(--muted); }
.orch-stats b { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }
.orch-next { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.month-strip { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .9rem; }
.month-strip a { display: inline-flex; align-items: baseline; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .82rem; font-weight: 600; color: var(--text); text-decoration: none; }
.month-strip a b { color: var(--wine); font-weight: 700; }
.month-strip a:hover { border-color: var(--gold); text-decoration: none; }
.kind-chips { margin: 0 0 1.2rem; }
.kind-chips .chip { cursor: pointer; font-family: inherit; }
.kind-chips .chip.is-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.kind-chips .chip.is-active .muted { color: var(--gold); }
.season-list { display: flex; flex-direction: column; }
.season-month-head { font-family: var(--font-display); font-size: 1.15rem; margin: 1.6rem 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid var(--gold); scroll-margin-top: calc(var(--header-h) + 1rem); }
.season-month-head:first-child { margin-top: .2rem; }
.prog { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr); gap: .6rem 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.prog.is-hidden { display: none; }
.prog-dates { display: flex; flex-wrap: wrap; gap: .35rem; }
.prog-date { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: .3rem .4rem; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-dark); text-decoration: none; line-height: 1.1; }
.prog-date:hover { background: var(--wine); text-decoration: none; }
.prog-dow { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.prog-day { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: .1rem 0; }
.prog-time { font-size: .62rem; color: var(--on-dark-muted); white-space: nowrap; }
.prog-body { min-width: 0; }
.prog-title { margin: 0 0 .25rem; font-size: 1.08rem; font-family: var(--font-display); }
.prog-title a { color: inherit; }
.prog-title a:hover { color: var(--wine); text-decoration: none; }
.prog-kind { margin-left: .3rem; font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--ink); }
.prog-works { margin: 0 0 .25rem; font-size: .93rem; line-height: 1.45; }
.prog-people, .prog-where { margin: 0 0 .15rem; }
.orch-about { margin-top: 2.4rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (max-width: 640px) {
  .prog { grid-template-columns: 1fr; gap: .4rem; }
  .prog-dates { order: 2; }
  .prog-date { flex-direction: row; gap: .35rem; align-items: baseline; padding: .25rem .55rem; }
  .prog-day { font-size: 1rem; margin: 0; }
}

/* Orchestra page: community strip in the wine family, so it reads as "people", not as the gold newcomer bar. */
.community-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin: 1.4rem 0 0; padding: .8rem 1.1rem; border-radius: var(--radius); background: linear-gradient(110deg, var(--wine) 0%, #a8283b 100%); color: #fff; box-shadow: 0 8px 24px rgba(138, 28, 43, .25); }
.community-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: .2rem .65rem; }
.community-tag::before { content: "👋"; font-size: .95rem; }
.community-item { font-size: .95rem; color: rgba(255,255,255,.85); }
.community-item b { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.community-item a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.community-cta { margin-left: auto; background: #fff !important; color: var(--wine) !important; border-color: #fff !important; font-weight: 700; }
.community-cta:hover { background: var(--gold) !important; color: var(--ink) !important; border-color: var(--gold) !important; }
.orch-community { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1.6rem; }
.orch-community .discussion { margin: 0 0 1rem; }
.orch-community .h3 { margin-top: 0; }
.orch-community .post-form textarea { min-height: 3.4rem; }
@media (max-width: 760px) { .community-cta { margin-left: 0; } }

/* Mobile review (2026-09-04): answers before chrome, nothing wider than the phone, compact banners.
   A page wider than the viewport makes Android Chrome zoom the whole site out; overflow-x hidden on body
   (propagated to the viewport) stops that for good. */
body { overflow-x: hidden; }

/* Search and filter boxes fold into a one-line summary on phones so results start near the top;
   site.js opens them on desktop (details.js-desktop-open). */
.finder-toggle > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .9rem; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-size: .95rem; }
.finder-toggle > summary::-webkit-details-marker { display: none; }
.finder-summary { min-width: 0; }
.finder-change { font-weight: 700; color: var(--wine); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .finder-change { color: var(--gold); } }
@media (max-width: 899px) {
  .finder-toggle[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .finder-toggle[open] > .finder, .finder-toggle[open] > .filters { margin-top: 0; padding: .9rem .95rem 1rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--card); }
}
@media (min-width: 900px) { .finder-toggle[open] > summary { display: none; } }

/* Near-me form: "Use my location" is the phone's primary action, so it comes first and spans the row;
   From/To share one row as two labelled columns. */
.finder-dates label span { color: inherit; }
@media (max-width: 640px) {
  .near-form { display: flex; flex-direction: column; gap: .5rem; }
  .near-form .finder-locate { order: -1; margin-top: 0; }
  .near-form .finder-dates { margin-top: 0; }
  .finder-locate .js-locate, .hero .js-locate { width: 100%; justify-content: center; font-size: 1.02rem; padding: .9rem 1rem; }
  .finder-dates { flex-wrap: nowrap; align-items: stretch; }
  .finder-dates label { flex: 1 1 50%; min-width: 0; flex-direction: column; align-items: stretch; gap: .2rem; font-size: .82rem; color: var(--muted); }
  .finder-dates label input { width: 100%; min-width: 0; flex: none; }
  .finder-row input[type="date"] { flex-basis: auto; }
  .finder-hint { width: 100%; }
  .hero-season { display: none; } /* the season banner above already says it */
  .filters label { flex: 1 1 100%; }
  .filters label:last-of-type { flex: 1 1 55%; } /* the last field shares its row with the button */
  .filters .btn { flex: 1 1 30%; }
}

/* Season banner: one line on phones (tag + call to action); the sentence is for wider screens. */
@media (max-width: 640px) {
  .season-banner:not(.season-banner-bottom) .season-copy { display: none; }
  .season-banner:not(.season-banner-bottom) .wrap { flex-wrap: nowrap; justify-content: space-between; padding-top: .4rem; padding-bottom: .4rem; }
  .season-cta, .season-short { margin-left: auto; font-size: .85rem; }
  .season-banner:not(.season-banner-bottom) .season-years { display: none; }
}

/* Newcomer bar: on phones the guide buttons become a swipeable strip instead of stacking. */
@media (max-width: 760px) {
  .newcomer-bar { padding: .7rem 0 .1rem; }
  .newcomer-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; padding: .7rem .9rem .6rem; }
  .newcomer-tag { justify-self: start; }
  .newcomer-blurb { font-size: .9rem; line-height: 1.35; }
  .newcomer-links { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -.9rem; padding: .1rem .9rem .3rem; gap: .4rem; }
  .newcomer-links::-webkit-scrollbar { display: none; }
  .newcomer-btn, .newcomer-all { flex: none; }
}

/* Chip rows that can be long (months) scroll sideways on phones, bleeding to the screen edges. */
@media (max-width: 640px) {
  .month-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -1.25rem; margin-right: -1.25rem; padding: .15rem 1.25rem .35rem; }
  .month-chips::-webkit-scrollbar { display: none; }
  .month-chips .chip { flex: none; }
  .detail-head .actions .btn { padding: .6rem .9rem; font-size: .9rem; }
  .grid.people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .person-card { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .8rem .85rem; }
  .person-card .avatar { width: 44px; height: 44px; }
  .person-card .card-title { font-size: 1rem; }
  .person-card .card-meta { font-size: .82rem; }
  .of-map-tall { height: 62vh; }
  .empty { padding: 1.6rem 1rem; }
  .trip-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (hover: none) { .chip { padding: .5rem .9rem; } }

/* Long lists (upcoming performances on a person or work page) show eight, then "Show all N". */
.js-more-hidden { display: none !important; }
.btn-more { margin: .4rem 0 .6rem; }
.work-group > .btn-more { margin: 0 .9rem .8rem; }

/* ===== Header (rebuilt 2026-09-04): one coherent block. Row one is brand + nav + account; row two is the search bar,
   full content width, on every page and every screen size. Phones get the same two rows, not sticky. ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 22, 35, .08); }
.is-home .site-header { background: var(--ink); color: var(--on-dark); border-bottom-color: #2a2e3c; }
.header-row { display: flex; flex-direction: column; gap: .6rem; padding: .75rem 0 .85rem; }
.header-top { display: flex; align-items: center; gap: 1rem; min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.brand b { font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; color: var(--gold); flex: none; }
.brand.small { font-size: 1.15rem; }
.primary-nav { display: none; align-items: center; gap: 1.3rem; margin-left: auto; font-weight: 500; font-size: .98rem; }
.primary-nav a { padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a[aria-current="page"] { border-color: var(--gold); }
.primary-nav a:hover { text-decoration: none; border-color: var(--gold); }
.account-group { display: inline-flex; align-items: center; gap: .9rem; margin-left: auto; }
.header-search { display: flex; align-items: center; width: 100%; max-width: 900px; margin: 0 auto; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .3rem .3rem 1.2rem; box-shadow: 0 2px 10px rgba(20, 22, 35, .06); position: relative; }
.header-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); }
.is-home .header-search { border-color: transparent; box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.header-search input { border: 0; background: transparent; font: inherit; font-size: 1.08rem; color: var(--ink); width: 100%; min-width: 0; outline: none; padding: .5rem 0; }
.header-search input::placeholder { color: #6b6f7b; opacity: 1; }
.header-search button { border: 0; background: var(--gold); color: var(--ink); height: 44px; padding: 0 1.15rem 0 .95rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 700; cursor: pointer; flex: none; }
.header-search button:hover { background: var(--wine); color: #fff; }
.header-search button svg { width: 20px; height: 20px; }
.header-search .suggest { left: 0; right: 0; min-width: 0; top: calc(100% + 8px); }
@media (min-width: 900px) {
  :root { --header-h: 130px; }
  .primary-nav { display: flex; }
  .account-group { margin-left: 1.4rem; }
}
@media (max-width: 899px) {
  :root { --header-h: 0px; }               /* the header is not sticky on phones, so nothing needs to clear it */
  .site-header { position: static; }
  .header-row { padding: .6rem 0 .7rem; gap: .5rem; }
  .header-top { gap: .75rem; }
  .brand { font-size: 1.32rem; gap: .45rem; }
  .brand-mark { width: 30px; height: 30px; }
  .account-group { gap: .55rem; }
  .signin-link { font-size: .92rem; white-space: nowrap; }
  .header-search { padding: .22rem .22rem .22rem 1rem; }
  .header-search input { font-size: 1rem; padding: .4rem 0; }
  .header-search button { height: 40px; width: 40px; padding: 0; justify-content: center; }
  .search-word { display: none; }
}

/* "Claim this page" call-out on orchestra pages (2026-09-05: the old one-line link was easy to miss). */
.claim-card { margin-top: 1.4rem; padding: .95rem 1.1rem 1.05rem; border: 1.5px dashed var(--gold); border-radius: 14px; background: color-mix(in srgb, var(--gold) 9%, var(--card)); }
.claim-card .eyebrow { margin: 0 0 .15rem; }
.claim-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin: 0 0 .35rem; }
.claim-card .muted { margin: 0 0 .7rem; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--wine); color: #fff; border-color: var(--wine); box-shadow: 0 6px 18px rgba(138, 28, 43, .3); }
.claimed-pill { display: inline-block; background: color-mix(in srgb, var(--gold) 22%, var(--paper)); color: var(--ink); border: 1px solid var(--gold); border-radius: 999px; padding: .05rem .55rem; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; vertical-align: middle; }
.claim-card.is-claimed { border-style: solid; }

/* Gallery, thumbnails, lightbox (steward uploads, 2026-09-05) */
.thumb-strip { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .4rem; margin: .4rem 0 .3rem; scroll-snap-type: x proximity; }
.thumb-strip a { flex: none; width: 150px; height: 110px; border-radius: 10px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); scroll-snap-align: start; position: relative; }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-strip .thumb-program { display: grid; place-items: center; text-align: center; padding: .4rem; font-size: .78rem; line-height: 1.2; }
.thumb-strip .thumb-program img { position: absolute; inset: 0; opacity: .35; }
.thumb-strip .thumb-program b { position: relative; background: rgba(255,255,255,.85); border-radius: 6px; padding: .15rem .35rem; }
.thumb-strip .thumb-program span { position: relative; font-weight: 700; color: var(--wine); }
.from-orch-program { margin: .2rem 0 .8rem; }
.gallery-grid { columns: 3 260px; column-gap: 1rem; margin: .5rem 0 2rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item figcaption { padding: .55rem .75rem .7rem; font-size: .9rem; line-height: 1.4; }
.gallery-caption { display: block; color: var(--muted); margin-top: .15rem; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.program-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; }
.program-card:hover { border-color: var(--gold); text-decoration: none; }
.program-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; display: block; background: #fff; }
.program-icon { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--paper-2); font-weight: 800; color: var(--wine); letter-spacing: .1em; }
.program-meta { display: grid; gap: .15rem; padding: .55rem .7rem .7rem; font-size: .9rem; }
.program-remove { margin: -.6rem 0 .6rem; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 20, .93); display: grid; place-items: center; padding: 2rem; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 1.2rem; text-align: center; color: #fff; font-size: .95rem; padding: 0 3rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.admin-media { border: 1px solid var(--line); border-radius: 10px; padding: .5rem; background: var(--card); }
.admin-media.is-hidden { opacity: .55; }
.admin-media img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; display: block; }
.admin-media .program-icon { height: 120px; aspect-ratio: auto; border-radius: 6px; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
@media (max-width: 640px) { .gallery-grid { columns: 2 150px; } .lightbox { padding: .5rem; } .lightbox-caption { bottom: .5rem; padding: 0 .5rem; } }
