/* ============================================================
   FLARE — EXHIBITION GUIDE
   Behaves like a guidebook. Doesn't pretend to be paper.
   Mobile first, one hand, generous air.
   ============================================================ */

:root {
  --gold: #b0822e;
  --gold-deep: #8a6522;
  --ink: #17130f;
  --ink-soft: #6e6459;
  --ink-faint: #a49a8c;
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --line: rgba(23, 19, 15, .11);
  --line-2: rgba(23, 19, 15, .20);

  --display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --voice: 'Fraunces', Georgia, serif;

  --pad: 22px;
  --bar: 52px;
  --tabs: 60px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --turn: 420ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
/* pre-existing gap: #bar declares its own `display: flex`, which (by
   specificity) silently wins over the UA [hidden] rule, so the bar
   never actually hid on the cover/home screen. Found while rebuilding
   Home for Phase 2 — fixed here rather than left for someone to
   puzzle over later. */
[hidden] { display: none !important; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; }
::selection { background: rgba(176, 130, 46, .22); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   THE BOOK
   ============================================================ */
#book {
  position: fixed; inset: 0;
  overflow: hidden;
  padding-top: 0;
}
.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--bar) + env(safe-area-inset-top)) var(--pad)
           calc(var(--tabs) + env(safe-area-inset-bottom) + 34px);
  background: var(--paper);
  will-change: transform, opacity;
}
.page.cover { padding-top: env(safe-area-inset-top); }
/* the turn */
@keyframes inFromRight { from { transform: translate3d(28px,0,0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inFromLeft  { from { transform: translate3d(-28px,0,0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes outToLeft   { from { transform: none; opacity: 1; } to { transform: translate3d(-22px,0,0); opacity: 0; } }
@keyframes outToRight  { from { transform: none; opacity: 1; } to { transform: translate3d(22px,0,0); opacity: 0; } }
.page.in-next { animation: inFromRight var(--turn) var(--ease) both; }
.page.in-prev { animation: inFromLeft var(--turn) var(--ease) both; }
.page.out-next { animation: outToLeft var(--turn) var(--ease) both; }
.page.out-prev { animation: outToRight var(--turn) var(--ease) both; }

/* progress hairline */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; background: transparent; }
#progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width var(--turn) var(--ease); }

/* ============================================================
   TOP BAR
   ============================================================ */
#bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: calc(var(--bar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
#bar button {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--ink-soft); border-radius: 50%;
}
#bar button:active { background: var(--paper-2); }
#b-mark[aria-pressed="true"] { color: var(--gold); }
#b-mark[aria-pressed="true"] svg path { fill: var(--gold); }
#bar-title {
  flex: 1; text-align: center;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   TAB BAR — thumb zone
   ============================================================ */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabs) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
#tabs button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  position: relative;
}
#tabs button svg { width: 21px; height: 21px; }
#tabs button:active { color: var(--gold); }
#tabs button span { position: relative; }
.dot {
  position: absolute; top: -13px; right: -9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ============================================================
   TYPE
   ============================================================ */
.kicker {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.opener { padding: 26px 0 4px; }
.opener h1 {
  font-family: var(--display); font-weight: 400;
  font-size: 36px; line-height: 1.1; letter-spacing: -.01em;
  margin: 12px 0 0;
}
.opener .lede {
  font-family: var(--voice); font-style: italic; font-weight: 300;
  font-size: 18px; line-height: 1.55; color: var(--gold-deep);
  margin-top: 14px;
}
.rule { height: 1px; background: var(--line); margin: 26px 0; border: 0; }
.rule.short { width: 40px; height: 1px; background: var(--gold); margin: 18px 0; }
h2.sec {
  font-family: var(--display); font-weight: 400; font-size: 22px;
  margin: 34px 0 14px;
}
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; line-height: 1.62; }
.note {
  font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
  border-left: 2px solid var(--gold); padding: 2px 0 2px 14px; margin: 16px 0;
}


/* ============================================================
   THE WORLD MAP
   A silhouette, and a light wherever someone is working.
   ============================================================ */
.world { margin: 22px 0 6px; }
.world .mapbox { position: relative; }
.world svg { display: block; width: 100%; height: auto; }
.world .land {
  fill: #efe9df;           /* paper, one step darker than the page */
  stroke: #e2d9c9;
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}
.world .pins { position: absolute; inset: 0; }

/* the tap target is generous even though the light is small */
.world .pin {
  position: absolute;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0; border: 0; background: none;
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.world .pin i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  /* the glow stays tight: six European lights sit close together and a
     wide halo turns them into one smudge */
  box-shadow: 0 0 0 2px rgba(176, 130, 46, .18), 0 0 5px 1px rgba(176, 130, 46, .40);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* a slow breath, so the map feels alive rather than plotted */
@keyframes flarePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(176,130,46,.16), 0 0 4px 1px rgba(176,130,46,.34); }
  50%      { box-shadow: 0 0 0 3px rgba(176,130,46,.09), 0 0 8px 2px rgba(176,130,46,.52); }
}
.world .pin i { animation: flarePulse 3.4s ease-in-out infinite; }
.world .pin:nth-child(3n) i   { animation-delay: -1.1s; }
.world .pin:nth-child(3n+1) i { animation-delay: -2.3s; }

.world .pin:hover i,
.world .pin:focus-visible i,
.world .pin.on i { transform: scale(1.7); }
.world .pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; border-radius: 50%; }

.world .pin-label {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px; letter-spacing: .04em;
  background: var(--ink); color: #fff;
  padding: 3px 7px; border-radius: 3px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.world .pin:hover .pin-label,
.world .pin:focus-visible .pin-label,
.world .pin.on .pin-label { opacity: 1; }

.world figcaption {
  font-family: var(--voice); font-style: italic;
  color: var(--ink-faint); font-size: 14px;
  text-align: center; margin-top: 10px;
}

/* the country you tapped, briefly acknowledged */
@keyframes flareLit {
  from { background: rgba(176, 130, 46, .13); }
  to   { background: transparent; }
}
section.lit { animation: flareLit 1.5s ease-out; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .world .pin i { animation: none; }
  section.lit { animation: none; }
}

/* the text stand-in for an image that has not arrived (or does not
   exist). display:contents keeps it out of the layout entirely, so a
   monogram or wordmark sits exactly where the picture would have. */
.ph { display: contents; }

/* ============================================================
   ENTRIES — the repeating unit
   ============================================================ */
.entry { padding: 20px 0; border-bottom: 1px solid var(--line); }
.entry:last-of-type { border-bottom: 0; }
.entry .meta {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 6px;
}
.entry h3 {
  font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.2;
  margin-bottom: 6px;
}
.entry .time {
  font-family: var(--display); font-size: 15px; color: var(--gold-deep); margin-bottom: 4px;
}
.entry p { font-size: 15.5px; line-height: 1.68; color: var(--ink-soft); margin-bottom: 10px; }
.entry .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.act {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--line-2); color: var(--ink);
  text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.act:active { background: var(--paper-2); }
.act.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.act.saved { background: var(--gold); border-color: var(--gold); color: #fff; }

/* simple lists */
ul.plain { list-style: none; }
ul.plain li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
}
ul.plain li:last-child { border-bottom: 0; }
ul.plain li b { color: var(--ink); font-weight: 500; }

/* names in a row (artists) */
.names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.names span {
  font-size: 14px; padding: 7px 13px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-soft);
}

/* ============================================================
   COVER
   ============================================================ */
.cover-in {
  min-height: 100%; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  gap: 14px; padding: 60px 8px 40px;
}
.cover-in .flame {
  width: 2px; height: 54px;
  background: linear-gradient(to top, transparent, var(--gold));
  margin-bottom: 4px;
}
.cover-in img { width: min(230px, 62vw); }
.cover-in .sub {
  font-family: var(--voice); font-style: italic; font-weight: 300;
  font-size: 16px; color: var(--gold-deep); max-width: 26ch; line-height: 1.5;
}
.cover-in .dates {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 2;
}
.cover-in .official {
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 6px;
}
.turn-cue {
  margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint);
}
.turn-cue i {
  width: 26px; height: 26px; border-right: 1px solid var(--gold); border-top: 1px solid var(--gold);
  transform: rotate(45deg) translateY(2px); animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .5; } 50% { transform: rotate(45deg) translate(4px,-4px); opacity: 1; } }

/* ============================================================
   PAGE FOOT — folio + turn
   ============================================================ */
.foot{margin-top:40px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;gap:12px}
.foot-turn{display:flex;align-items:center;gap:10px}
.foot-back{display:flex;justify-content:center}
.foot button {
  flex: 1; min-height: 46px; padding: 8px 12px; border-radius: 10px;
  text-align: left; font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--paper);
}
.foot button:active { background: var(--paper-2); }
.foot button.next { text-align: right; }
.foot button b { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--ink); }
.foot button i { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.folio {
  text-align: center; font-family: var(--display); font-size: 13px; color: var(--ink-faint);
  margin-top: 22px; letter-spacing: .1em;
}

/* ============================================================
   SHEETS
   ============================================================ */
#scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(23, 19, 15, .34);
  opacity: 0; transition: opacity .3s ease;
}
#scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 82vh; overflow-y: auto;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 10px var(--pad) calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 50px rgba(23, 19, 15, .22);
  transform: translateY(101%); transition: transform .42s var(--ease);
}
.sheet.on { transform: none; }
.grip { width: 38px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px auto 14px; }
.sheet h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 14px; }
.sheet input {
  width: 100%; min-height: 46px; padding: 0 14px; margin-bottom: 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper-2);
  font-family: var(--voice); font-style: italic; font-size: 16px;
}
.sheet input:focus { outline: none; border-color: var(--gold); background: var(--paper); }

.toc-row {
  display: flex; align-items: baseline; gap: 12px; width: 100%;
  padding: 13px 2px; border-bottom: 1px solid var(--line); text-align: left;
}
.toc-row:last-child { border-bottom: 0; }
.toc-row .n { font-family: var(--display); font-size: 12px; color: var(--gold); min-width: 20px; }
.toc-row .t { flex: 1; font-family: var(--display); font-size: 18px; line-height: 1.25; }
.toc-row .t small { display: block; font-family: var(--body); font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; margin-top: 2px; }
.toc-row.here .t { color: var(--gold); }
.toc-row .mk { color: var(--gold); font-size: 12px; }

.res-row {
  display: block; width: 100%; text-align: left;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.res-row .where { display: block; margin-bottom: 2px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.res-row .what { font-size: 16px; }
/* an event whose entry isn't sold — invitation only, or included with
   another ticket. Reads as a quiet statement of fact, not a button. */
.admission {
  font-family: var(--voice); font-style: italic; color: var(--gold-deep);
  font-size: 15px; margin-top: 10px;
  padding-left: 12px; border-left: 2px solid var(--gold);
}
/* a question and its answer: the question carries the weight,
   the answer stays quiet underneath it */
.entry.qa { padding: 16px 0; }
.entry.qa h3 { font-size: 18px; margin-bottom: 8px; }

.empty { font-family: var(--voice); font-style: italic; color: var(--ink-faint); font-size: 15px; padding: 12px 0 20px; }

/* ============================================================
   BUILD MY WEEKEND
   ============================================================ */
.wk-day { margin-top: 26px; }
.wk-day .dh {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 700;
  padding-bottom: 8px; border-bottom: 1px solid var(--gold); margin-bottom: 4px;
}
.wk-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wk-item .tm { font-family: var(--display); font-size: 14px; color: var(--gold-deep); min-width: 78px; line-height: 1.4; }
.wk-item .bd { flex: 1; }
.wk-item .bd b { font-family: var(--display); font-weight: 400; font-size: 17px; display: block; }
.wk-item .bd small { color: var(--ink-faint); font-size: 12.5px; }
.wk-item .rm { color: var(--ink-faint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.wk-item .rm:active { color: #a33; }
#wk-notes {
  width: 100%; min-height: 120px; padding: 14px; margin-top: 10px;
  font-family: var(--voice); font-style: italic; font-size: 16px; line-height: 1.6;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper-2); color: var(--ink);
  resize: vertical;
}
#wk-notes:focus { outline: none; border-color: var(--gold); background: var(--paper); }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 16px);
  transform: translate(-50%, 14px); z-index: 45;
  background: var(--ink); color: var(--paper);
  padding: 11px 18px; border-radius: 999px;
  font-size: 13px; letter-spacing: .04em;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  max-width: 88vw; text-align: center;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   PHASE 2 — UTILITY MODE
   Home, the three hubs (Visit / Explore / About & Information),
   the hub-card grid they're built from, the breadcrumb back into
   the editorial book, the utility foot, and the Map's level switch.
   ============================================================ */

/* ---------- breadcrumb: the one way back to Home from inside
   a book chapter, so the book never feels like a trap ---------- */
.crumb {
  display: inline-block; margin-bottom: 18px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.crumb:active { color: var(--gold); }

/* ---------- utility foot: one way back to the hub, not a
   Previous/Next pair into unrelated neighbours ---------- */
.foot.foot-utility { justify-content: center; }
.backbtn {
  flex: none; min-width: 220px; text-align: center;
  min-height: 46px; padding: 8px 20px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 13px; color: var(--ink-soft);
}
.backbtn:active { background: var(--paper-2); }
.backbtn i { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; }
.backbtn b { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--ink); margin-top: 2px; }

/* ---------- hub grid: the card layer every index screen
   (Home, Visit, Plan Your Visit, Explore, Advocacy, Community,
   About & Information) is built from ---------- */
.hubgrid { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; }
.hubcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  text-align: left; width: 100%; position: relative;
  padding: 16px 40px 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper);
  transition: background .2s, border-color .2s;
}
.hubcard:active { background: var(--paper-2); border-color: var(--line-2); }
.hc-kicker { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hc-title { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--ink); }
.hc-blurb { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.hc-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 16px; }

/* ---------- Home ---------- */
.home-in { padding-bottom: 20px; }
.home-hero { text-align: center; padding: 34px 4px 6px; }
.home-hero .flame {
  display: block; width: 2px; height: 40px; margin: 0 auto 10px;
  background: linear-gradient(to top, transparent, var(--gold));
}
.home-logo { width: min(190px, 54vw); margin: 0 auto; }
.home-sub {
  font-family: var(--voice); font-style: italic; font-weight: 300;
  font-size: 17px; color: var(--gold-deep); margin-top: 10px;
}
.home-when {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.9; margin-top: 12px;
}
.home-ctas { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 10px; }
.home-ctas .act { width: 100%; justify-content: center; min-height: 50px; font-size: 13px; }
.home-cta { border: 1px solid var(--line-2); }
.home-h { margin-top: 34px; }
.home-days { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.home-day {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; padding: 12px 16px; border-radius: 10px;
  background: var(--paper-2);
}
.home-day:active { background: var(--line); }
.hd-label { font-family: var(--display); font-size: 17px; }
.hd-date { font-size: 11px; color: var(--gold-deep); letter-spacing: .06em; text-transform: uppercase; }
.hd-events { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

.book-teaser {
  display: block; width: 100%; text-align: left; margin: 30px 0 4px;
  padding: 20px; border-radius: 12px; border: 1px solid var(--gold);
  background: var(--gold-wash, #fbf2da);
}
.bt-kicker { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.bt-title { display: block; font-family: var(--display); font-size: 21px; margin-top: 6px; color: var(--ink); }
.bt-blurb { display: block; font-family: var(--voice); font-style: italic; font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

.home-foot { margin-top: 26px; text-align: center; }
.home-foot .crumb { margin-bottom: 0; }

/* ---------- Contents sheet, grouped ---------- */
.toc-group-h {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  margin: 22px 0 4px; padding-top: 2px;
}
.toc-group-h:first-child { margin-top: 4px; }

/* ---------- Map: the Level 1/2/3 switch ---------- */
.levelswitch { display: flex; gap: 8px; margin: 6px 0 18px; }
.lvl-btn {
  flex: 1; min-height: 46px; border-radius: 10px;
  border: 1px solid var(--line-2); font-size: 13px; letter-spacing: .06em;
  color: var(--ink-soft);
}
.lvl-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.levelpanels { position: relative; }
.lvl-panel { display: none; }
.lvl-panel.on { display: block; }
.planholder {
  min-height: 220px; border-radius: 10px; border: 1px dashed var(--line-2);
  background: var(--paper-2); display: grid; place-items: center;
  color: var(--ink-faint); font-family: var(--voice); font-style: italic; font-size: 15px;
  text-align: center; padding: 20px; margin-bottom: 14px;
}
/* once a real floor plan image lands in assets/floorplans/, media() swaps
   it in and the dashed placeholder box is no longer the right frame —
   let the plan breathe as a plain bordered image instead */
.planholder-img:has(.floorplan-img:not([hidden])) {
  display: block; min-height: 0; border-style: solid; padding: 0;
  background: var(--paper); overflow: hidden;
}
.floorplan-img { display: block; width: 100%; height: auto; }

.venue-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 20px;
}
.venue-photo {
  display: block; width: 100%; height: 130px; object-fit: cover;
  border-radius: 10px; background: var(--paper-2);
}
.venue-photo:first-child { grid-column: 1 / -1; height: 180px; }

/* ============================================================
   DESKTOP — the same guide, larger
   ============================================================ */
@media (min-width: 760px) {
  body { background: #f2f1ee; }
  :root { --pad: 44px; }
  #book, #bar, #tabs, .sheet, #scrim {
    left: 50%; transform: translateX(-50%);
    width: 560px; right: auto;
  }
  #scrim { width: 100vw; }
  .sheet { transform: translateX(-50%) translateY(101%); border-radius: 20px 20px 0 0; }
  .sheet.on { transform: translateX(-50%); }
  #book { box-shadow: 0 0 60px rgba(23, 19, 15, .10); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  #progress { left: 50%; transform: translateX(-50%); width: 560px; }
  .opener h1 { font-size: 44px; }
  .entry h3 { font-size: 23px; }
  #toast { bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .page.in-next, .page.in-prev, .page.out-next, .page.out-prev { animation: none !important; }
  .turn-cue i { animation: none; }
  .sheet, #scrim, #progress i { transition: none; }
}

/* print — the itinerary only */
#printsheet { display: none; }
@media print {
  body * { visibility: hidden !important; }
  #printsheet, #printsheet * { visibility: visible !important; }
  #printsheet { display: block; position: absolute; inset: 0; padding: 2rem; background: #fff; color: #111; }
  #printsheet h1 { font-family: Georgia, serif; margin-bottom: .3rem; }
  #printsheet .dh { letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: #8a6522; margin: 1.3rem 0 .4rem; border-bottom: 1px solid #8a6522; }
  #printsheet .li { margin: .3rem 0; }
  #printsheet .tm { color: #8a6522; }
}

/* ============================================================
   MEDIA — headshots, logos, artwork
   Every image upgrades itself the moment the file appears in
   assets/. Until then an elegant placeholder stands in.
   ============================================================ */

/* artist rows */
.person {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.person:last-child { border-bottom: 0; }
.avatar {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  overflow: hidden; background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 17px; color: var(--gold);
  border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .who { flex: 1; min-width: 0; }
.person .who b {
  font-family: var(--display); font-weight: 400; font-size: 17.5px;
  display: block; line-height: 1.25;
}
.person .who small {
  display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.person .links { display: flex; gap: 4px; flex: none; align-items: center; }
.iconlink {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-faint);
  border: 1px solid var(--line);
}
.iconlink svg { width: 16px; height: 16px; }
.iconlink:active { background: var(--paper-2); color: var(--gold); }
.iconlink.on { color: var(--gold); border-color: var(--gold); }
.iconlink.on svg path, .iconlink.on svg rect, .iconlink.on svg circle { stroke: var(--gold); }

/* brand / organisation logos */
.brandhead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.logo {
  height: 46px; min-width: 46px; max-width: 150px; flex: none;
  display: grid; place-items: center;
}
.logo img { max-height: 46px; max-width: 150px; width: auto; object-fit: contain; }
.logo .wordmark {
  font-family: var(--display); font-size: 19px; line-height: 1.1;
  border-bottom: 2px solid var(--gold); padding-bottom: 3px;
}
.entry .brandhead + h3 { margin-top: 2px; }

/* figures — artwork and portraits at full width */
figure { margin: 16px 0; }
figure img {
  width: 100%; border-radius: 4px; background: var(--paper-2);
  border: 1px solid var(--line);
}
figcaption {
  font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; line-height: 1.5;
}
figcaption b { color: var(--ink-soft); font-weight: 500; }

/* a soft skeleton while a photo loads */
img[loading="lazy"] { background: var(--paper-2); }

/* ============================================================
   THE MENU — set the way a menu is set
   ============================================================ */
/* the day's own name, e.g. Saturday's "Flourish" — set beside the date,
   small and gold, so the day reads as a titled chapter of the weekend */
h2.sec .day-name {
  display: block;
  font-family: var(--body); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  margin-top: 5px;
}

h2.sec .menu-kind {
  display: block;
  font-family: var(--body); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  margin-top: 5px;
}
.menu { margin: 4px 0 8px; }
.course {
  padding: 15px 0; border-bottom: 1px solid var(--line);
  text-align: center;
}
.course:last-child { border-bottom: 0; }
.course-no {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 7px;
}
.course .dish {
  font-family: var(--display); font-weight: 400;
  font-size: 20px; line-height: 1.25; margin-bottom: 3px;
}
.course .detail {
  font-family: var(--voice); font-style: italic;
  font-size: 15px; color: var(--ink-soft); margin-bottom: 5px;
}
.course .benefit {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin: 0;
}

/* deals */
.offer {
  font-family: var(--display); font-size: 19px; line-height: 1.3;
  color: var(--ink) !important; margin-bottom: 8px !important;
}
.code {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; letter-spacing: .14em;
  border: 1px dashed var(--gold); color: var(--gold-deep);
  padding: 7px 14px; border-radius: 6px; background: #fdfaf3;
  margin-bottom: 8px !important;
}

/* ============================================================
   THE SPREAD — desktop, >= 1000px
   The guide opens. One sheet on a warm table: the chapter
   opener on the left leaf, the chapter on the right, a soft
   gutter between them. Everything below 1000px is untouched —
   the phone guide is unchanged, byte for byte.
   ============================================================ */
@media (min-width: 1000px) {

  :root { --lp: clamp(32px, 3.4vw, 62px); --lg: clamp(36px, 3.8vw, 66px); }
  body { background: #e9e5dd; }

  /* undo the 760px phone-column framing */
  #book {
    left: 0; right: 0; transform: none; width: auto;
    box-shadow: none; border-left: 0; border-right: 0;
    background: transparent;
  }
  #progress { left: 0; right: 0; transform: none; width: auto; }

  /* ---------- the sheet ---------- */
  .page.is-spread {
    position: absolute; inset: auto;
    top: calc(50% - 22px); left: 50%;
    transform: translate(-50%, -50%);
    width: min(1300px, 92vw);
    height: min(860px, calc(100vh - 168px));
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 100%);
    background: var(--paper);
    border-radius: 3px;
    box-shadow:
      0 1px 2px rgba(23, 19, 15, .10),
      0 34px 80px -24px rgba(23, 19, 15, .34);
  }
  /* the gutter — where the binding would fall */
  .page.is-spread::before {
    content: ""; position: absolute; z-index: 3; pointer-events: none;
    left: 50%; top: 0; bottom: 0; width: 84px; transform: translateX(-50%);
    background: linear-gradient(90deg,
      rgba(23, 19, 15, 0) 0%,
      rgba(23, 19, 15, .028) 34%,
      rgba(23, 19, 15, .075) 49.5%,
      rgba(23, 19, 15, .012) 50.5%,
      rgba(23, 19, 15, .022) 66%,
      rgba(23, 19, 15, 0) 100%);
  }
  .page.is-spread.one-leaf::before { display: none; }

  /* turning a spread — centring has to survive the animation */
  @keyframes spInNext  { from { transform: translate(-50%, -50%) translate3d(34px, 0, 0); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
  @keyframes spInPrev  { from { transform: translate(-50%, -50%) translate3d(-34px, 0, 0); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
  @keyframes spOutNext { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(-50%, -50%) translate3d(-26px, 0, 0); opacity: 0; } }
  @keyframes spOutPrev { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(-50%, -50%) translate3d(26px, 0, 0); opacity: 0; } }
  .page.is-spread.in-next  { animation: spInNext  var(--turn) var(--ease) both; }
  .page.is-spread.in-prev  { animation: spInPrev  var(--turn) var(--ease) both; }
  .page.is-spread.out-next { animation: spOutNext var(--turn) var(--ease) both; }
  .page.is-spread.out-prev { animation: spOutPrev var(--turn) var(--ease) both; }

  /* ---------- the two leaves ---------- */
  .leaf {
    position: relative; min-width: 0; min-height: 0; height: 100%;
    display: flex; flex-direction: column; overflow: hidden;
  }
  /* a fixed head band, a scrolling body, a fixed foot band — so the
     running head and the page turn are never crossed by the text */
  .leaf-in {
    flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent 100%);
  }
  .verso .leaf-in {
    display: flex; flex-direction: column; justify-content: center;
    padding: 8px var(--lg) 30px var(--lp);
  }
  .verso.has-plate .leaf-in { justify-content: flex-start; padding-top: 26px; }
  .verso.has-plate .opener { margin-bottom: 26px; }
  .recto .leaf-in { padding: 4px var(--lp) 30px var(--lg); }
  .recto .leaf-in::-webkit-scrollbar { width: 9px; }
  .recto .leaf-in::-webkit-scrollbar-thumb { background: rgba(23, 19, 15, .16); border-radius: 9px; }
  .recto .leaf-in::-webkit-scrollbar-track { background: transparent; }

  /* the opener, given a whole page to itself */
  .is-spread .opener { padding: 0; }
  .is-spread .opener h1 { font-size: clamp(42px, 3.5vw, 60px); line-height: 1.02; }
  .is-spread .opener .kicker { margin-bottom: 14px; }
  .is-spread .opener .lede { font-size: 19.5px; line-height: 1.62; max-width: 27ch; margin-top: 20px; }
  .is-spread .entry h3 { font-size: 22px; }

  /* running head left, folio right — as a book sets them */
  .runhead, .is-spread .folio {
    order: -1; flex: none; margin: 0;
    color: var(--ink-faint); pointer-events: none;
  }
  .runhead {
    padding: 32px var(--lg) 0 var(--lp);
    font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  }
  .is-spread .folio {
    padding: 30px var(--lp) 0 var(--lg); text-align: right;
    font-family: var(--display); font-size: 12px; letter-spacing: .1em;
  }

  /* page turns live in the outer corners */
  .is-spread .corner {
    order: 1; flex: none; width: auto; max-width: 100%;
    border-radius: 2px;
    transition: transform .28s var(--ease), opacity .28s;
  }
  .is-spread .corner.prev { padding: 6px var(--lg) 30px var(--lp); text-align: left; }
  .is-spread .corner.next { padding: 6px var(--lp) 30px var(--lg); text-align: right; }
  /* the turn buttons no longer live inside .foot, so they carry their own type */
  .is-spread .corner b {
    display: block; font-family: var(--display); font-weight: 400;
    font-size: 15px; line-height: 1.3; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .is-spread .corner i {
    display: block; font-style: normal;
    font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 3px;
  }
  .is-spread .corner.prev b::before { content: "\2039\00a0\00a0"; color: var(--gold); }
  .is-spread .corner.next b::after  { content: "\00a0\00a0\203a"; color: var(--gold); }
  .is-spread .corner.prev:hover { transform: translateX(-5px); }
  .is-spread .corner.next:hover { transform: translateX(5px); }
  .is-spread .corner:active { background: none; }

  /* a plate on the opener leaf */
  .verso.has-plate .world { margin: 0; }
  .verso.has-plate .world .mapbox { max-height: 300px; }

  /* ---------- the cover: a single leaf ---------- */
  .page.cover.is-spread {
    grid-template-columns: 1fr;
    width: min(680px, 88vw);
    display: flex; align-items: flex-start; justify-content: center;
    overflow-y: auto;
  }
  .page.cover.is-spread .cover-in { padding: 64px 56px; }
  .page.cover.is-spread .cover-in img { width: 300px; }
  .page.cover.is-spread .cover-in .sub { font-size: 20px; }

  /* Home is the one cover page long enough to need real desktop
     room — a wider leaf and a two-column hub grid, same content */
  .page.cover.is-spread { width: min(760px, 90vw); }
  .home-in { padding: 30px 48px 40px; width: 100%; }
  .home-ctas { flex-direction: row; flex-wrap: wrap; }
  .home-ctas .act { width: auto; flex: 1; min-width: 200px; }
  .home-days { flex-direction: row; flex-wrap: wrap; }
  .home-day { flex: 1; min-width: 200px; }
  .hubgrid { flex-direction: row; flex-wrap: wrap; }
  .hubcard { flex: 1 1 calc(50% - 10px); min-width: 230px; }

  /* ---------- chrome ---------- */
  #bar {
    left: 0; right: 0; transform: none; width: auto;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 0; height: 60px; padding: 0 26px;
  }
  #bar button:hover { background: rgba(23, 19, 15, .055); }
  #bar-title { visibility: hidden; }

  /* the thumb bar becomes a floating toolbar */
  #tabs {
    left: 50%; right: auto; transform: translateX(-50%);
    bottom: 22px; width: auto; height: auto;
    grid-template-columns: repeat(4, auto);
    gap: 2px; padding: 5px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 26px -8px rgba(23, 19, 15, .26);
  }
  #tabs button {
    flex-direction: row; gap: 8px;
    padding: 9px 17px; border-radius: 999px;
    transition: background .2s;
  }
  #tabs button svg { width: 17px; height: 17px; }
  #tabs button span { font-size: 11.5px; letter-spacing: .1em; }
  #tabs button:hover { background: var(--paper-2); }

  /* sheets become a card that rises off the toolbar */
  .sheet {
    width: 620px; bottom: 84px;
    border-radius: 16px; max-height: 66vh;
    box-shadow: 0 26px 60px -18px rgba(23, 19, 15, .34);
    transform: translateX(-50%) translateY(calc(101% + 84px));
  }
  .sheet.on { transform: translateX(-50%); }

  #toast { bottom: 96px; }

  /* nothing to drag on a desktop card */
  .sheet .grip { display: none; }
  .sheet h2 { margin-top: 4px; }

  /* the last hairline of phone-ness */
  .turn-cue { display: none; }
}

/* between the phone and the spread, the column just widens */
@media (min-width: 760px) and (max-width: 999px) {
  #book, #bar, #tabs, .sheet, #progress { width: 640px; }
  #progress { width: 640px; }
}

/* ============================================================
   SHARE — pass the Companion on. The one deliberately sparkling
   element in the guide: gold gradient, a shimmer sweep, and
   drifting flecks of light.
   ============================================================ */
.share-wrap { text-align: center; padding: 34px 0 10px; }
.share-lead {
  font-family: var(--body); font-size: 14px; color: var(--ink-soft);
  margin-bottom: 16px;
}
.btn-share {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: #3a2a06;
  padding: 17px 44px; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg,#eac77e 0%,#fff3cf 16%,#f0cf88 32%,#d9ab4e 48%,#f7e3ae 64%,#fff6d8 80%,#eac77e 100%);
  background-size: 280% 100%; animation: shareGleam 6s linear infinite;
  box-shadow: 0 10px 30px rgba(176,130,46,.40), 0 2px 0 rgba(255,255,255,.55) inset;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s;
}
.btn-share:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(176,130,46,.54), 0 2px 0 rgba(255,255,255,.7) inset; }
.btn-share:active { transform: translateY(0); }
.btn-share svg { width: 18px; height: 18px; position: relative; z-index: 2; }
.btn-share span { position: relative; z-index: 2; }
.btn-share::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(circle 1.6px at 12% 32%, rgba(255,255,255,.98) 99%, transparent),
    radial-gradient(circle 1.1px at 27% 71%, rgba(255,251,230,.92) 99%, transparent),
    radial-gradient(circle 2px   at 44% 24%, rgba(255,255,255,.9) 99%, transparent),
    radial-gradient(circle 1.2px at 59% 64%, rgba(255,248,214,.95) 99%, transparent),
    radial-gradient(circle 1.7px at 76% 36%, rgba(255,255,255,.96) 99%, transparent),
    radial-gradient(circle 1.1px at 90% 68%, rgba(255,251,230,.9) 99%, transparent);
  background-repeat: no-repeat; animation: shareDust 5.4s ease-in-out infinite;
}
.btn-share::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.72), transparent);
  transform: skewX(-18deg); animation: shareSweep 4.6s ease-in-out infinite;
}
@keyframes shareGleam { 0% { background-position: 0% 0 } 100% { background-position: -280% 0 } }
@keyframes shareDust {
  0%,100% { opacity: .45; background-position: 0 0,0 0,0 0,0 0,0 0,0 0 }
  26% { opacity: 1 }
  54% { opacity: .6; background-position: 2px -2px,-2px 2px,1px 2px,-1px -2px,2px 1px,-2px -1px }
  78% { opacity: 1 }
}
@keyframes shareSweep { 0% { left: -45% } 55%,100% { left: 125% } }
@media (prefers-reduced-motion: reduce) {
  .btn-share { animation: none; background-position: 20% 0 }
  .btn-share::before, .btn-share::after { animation: none; opacity: .6 }
}
.share-hint {
  font-family: var(--body); font-size: 12.5px; color: var(--ink-soft);
  margin-top: 14px; min-height: 1.4em;
}
.share-hint.ok { color: var(--gold); }
@media (max-width: 420px) {
  .btn-share { padding: 16px 30px; font-size: 12px; letter-spacing: .16em; width: 100%; }
}

/* --- section-to-section navigation, added 2026-09-02 ---------------
   Every screen (not just the six narrative chapters) now carries
   Previous / Next. Utility screens keep their "Back to <hub>"
   shortcut on its own centred row above the turn buttons. */
.foot-back .backbtn { flex: 0 0 auto; min-width: 240px; }
.foot-turn button { flex: 1; }
.foot-turn button.next { text-align: right; }
@media (max-width: 380px) {
  .foot-turn { gap: 8px; }
  .foot-turn button { padding: 8px 10px; font-size: 12px; }
  .foot-turn button b { font-size: 14px; }
  .foot-back .backbtn { min-width: 0; width: 100%; }
}

/* --- venue, stated plainly, added 2026-09-02 ------------------------
   873 Broadway is the confirmed address; some ticket holders bought
   when an earlier venue was listed, so the guide says so outright. */
.home-venue {
  margin: 14px auto 0; max-width: 320px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  text-align: center;
}
.hv-kicker {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.hv-name { font-family: var(--display); font-size: 19px; color: var(--ink); line-height: 1.2; }
.hv-addr { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.hv-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; line-height: 1.45; }

.venue-card {
  margin: 4px 0 22px; padding: 18px 20px;
  border: 1px solid var(--gold); border-radius: 12px; background: var(--paper);
}
.vc-kicker {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.vc-name { font-family: var(--display); font-size: 22px; color: var(--ink); line-height: 1.15; }
.vc-addr { font-size: 15px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.vc-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }
.venue-card .acts { margin-top: 12px; }

.venue-line {
  margin-top: 10px; font-size: 13.5px; color: var(--ink-soft);
}
.venue-line b { font-family: var(--display); font-weight: 400; color: var(--ink); }
