/* Exhibition Hub V6.4.2 — venue tabs, brand fallback, ticket spacing, and mobile two-column cards. */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #f1eee8;
  --ink: #23211e;
  --muted: #6f6a62;
  --line: #ddd8cf;
  --accent: #b46f45;
  --accent-dark: #875036;
  --success: #34785a;
  --danger: #b95749;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 24px rgba(40, 33, 24, .06);
  --shadow: 0 18px 50px rgba(40, 33, 24, .10);
  --max: 1200px;
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html.overlay-open,
body.menu-open,
body.venue-selector-open {
  overflow: hidden;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
.page-noise { display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,241,.94);
  border-bottom: 1px solid rgba(221,216,207,.85);
  backdrop-filter: blur(18px);
}
.nav-shell {
  max-width: var(--max);
  height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-seal {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif TC", serif;
  font-weight: 800;
  font-size: 19px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-family: "Noto Serif TC", serif; font-size: 17px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .11em; }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: 18px; }
.desktop-nav a { color: var(--muted); font-size: 14px; }
.desktop-nav a:hover { color: var(--ink); }
.nav-search {
  margin-left: auto;
  width: min(310px, 27vw);
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.nav-search svg, .hero-search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--muted); }
.nav-search input, .hero-search input, .mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.mobile-menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; }
.mobile-menu-button span { width: 20px; height: 1.5px; margin: 5px auto; background: var(--ink); }
.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  padding: 28px 24px;
  background: var(--bg);
  overflow: auto;
}
.mobile-menu > a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.mobile-search { margin-top: 24px; display: flex; gap: 8px; }
.mobile-search input { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mobile-search button { border: 0; border-radius: 12px; padding: 0 18px; background: var(--ink); color: #fff; }

/* Shared typography and buttons */
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.primary-link, .location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.primary-link svg, .location-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.primary-link:hover, .location-button:hover { background: var(--accent-dark); }
.location-button.light { background: #fff; color: var(--ink); }
.text-link, .section-link { color: var(--muted); font-size: 14px; font-weight: 600; }
.text-link:hover, .section-link:hover { color: var(--accent); }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}
.icon-button:hover { border-color: var(--ink); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 74px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 58px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero h1 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.18;
  letter-spacing: -.04em;
}
.hero-lead { max-width: 520px; margin: 22px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-search {
  max-width: 560px;
  min-height: 58px;
  padding: 7px 8px 7px 18px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hero-search input { font-size: 15px; }
.hero-search button { height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; }
.hero-actions { margin-top: 18px; display: flex; align-items: center; gap: 18px; }
.hero-stats { margin-top: 36px; display: flex; gap: 34px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Noto Serif TC", serif; font-size: 22px; line-height: 1.2; }
.hero-stats span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d7c6b2;
  box-shadow: var(--shadow);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,12,.42), transparent 52%); }
.floating-note { display: none; }
.ticket-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}
.ticket-topline, .ticket-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.ticket-main { margin: 15px 0; display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; }
.ticket-index { font-family: "Noto Serif TC", serif; font-size: 42px; color: var(--accent); }
.ticket-main small { color: var(--muted); font-size: 11px; }
.ticket-main h2 { margin: 5px 0 4px; font-family: "Noto Serif TC", serif; font-size: 20px; line-height: 1.4; }
.ticket-main p { margin: 0; color: var(--muted); font-size: 12px; }
.barcode { letter-spacing: .06em; }

/* Home sections */
.discovery-panel, .editorial-section {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.discovery-panel { margin-bottom: 76px; }
.panel-topline, .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 24px;
}
.panel-topline h2, .section-heading h2, .nearby-copy h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(30px, 3.4vw, 43px);
  line-height: 1.3;
}
.quick-filters {
  padding: 18px;
  display: flex;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.date-field { min-width: 170px; }
.date-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.date-field input, #listingDatePicker {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.status-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pills button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}
.status-pills button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.clear-filter { margin-left: auto; min-height: 42px; border: 0; background: transparent; color: var(--muted); }
.category-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}
.category-chip {
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 9px;
  align-items: center;
}
.category-chip:hover, .category-chip.active { border-color: var(--accent); background: #fff8f3; }
.category-icon { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-soft); display: grid; place-items: center; font-size: 17px; }
.category-chip .category-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-chip strong { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-chip small { color: var(--muted); font-size: 11px; }
.editorial-section { padding-bottom: 82px; }
.section-controls { display: flex; gap: 8px; }

/* Exhibition cards */
.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 286px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.exhibition-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.exhibition-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card-image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #d8cabb; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.exhibition-card:hover .card-image img { transform: scale(1.025); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; font-size: 48px; }
.card-badge { position: absolute; left: 12px; top: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11px; font-weight: 700; }
.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 20px;
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
.favorite-button.active { color: var(--danger); }
.card-body { padding: 16px 16px 18px; }
.card-kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 700; }
.card-title { margin: 9px 0 10px; font-family: "Noto Serif TC", serif; font-size: 18px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 52px; }
.card-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.card-price { margin-top: 11px; font-size: 12px; font-weight: 700; }
.card-price.free { color: var(--success); }

/* Time lists */
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.time-column {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.dark-column { background: var(--surface); color: var(--ink); }
.time-column-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.time-column-head > div { display: flex; align-items: center; gap: 9px; }
.time-column-head h3 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 21px; }
.time-column-head a { color: var(--muted); font-size: 12px; }
.time-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.time-dot.closing { background: var(--danger); }
.compact-list { display: flex; flex-direction: column; }
.compact-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.compact-date { width: 58px; height: 58px; border-radius: 12px; background: var(--surface-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.compact-date strong { font-family: "Noto Serif TC", serif; font-size: 20px; line-height: 1; }
.compact-date span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.compact-info h4 { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.compact-info p { margin: 0; color: var(--muted); font-size: 12px; }
.compact-arrow { color: var(--muted); }

/* Nearby home */
.nearby-home {
  max-width: none;
  margin-bottom: 82px;
  padding: 70px max(24px, calc((100vw - var(--max))/2 + 24px));
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
  background: #ede8df;
}
.nearby-copy p:not(.eyebrow) { max-width: 500px; color: var(--muted); }
.nearby-copy .location-button { margin: 18px 12px 0 0; }
.nearby-stack { display: grid; gap: 12px; }
.nearby-mini-card { display: grid; grid-template-columns: 112px 1fr; min-height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.nearby-mini-card img, .nearby-mini-media { width: 112px; height: 112px; object-fit: cover; background: #d8cabb; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; font-size: 28px; }
.nearby-mini-body { padding: 14px 16px; align-self: center; }
.nearby-mini-body small { color: var(--accent); font-size: 11px; font-weight: 700; }
.nearby-mini-body h3 { margin: 5px 0; font-family: "Noto Serif TC", serif; font-size: 16px; line-height: 1.4; }
.nearby-mini-body p { margin: 0; color: var(--muted); font-size: 12px; }

/* Venues */
.venue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.venue-tile { position: relative; min-height: 230px; overflow: hidden; border-radius: var(--radius); background: #756a5c; color: #fff; }
.venue-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,12,9,.72), rgba(15,12,9,.03) 70%); }
.venue-tile-content { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 17px; }
.venue-tile-content small { font-size: 10px; letter-spacing: .08em; }
.venue-tile-content h3 { margin: 5px 0; font-family: "Noto Serif TC", serif; font-size: 18px; line-height: 1.35; }
.venue-tile-content p { margin: 0; font-size: 12px; opacity: .82; }

/* Listing */
.app-view { max-width: var(--max); margin: 0 auto; padding: 0 24px 84px; }
.view-hero { padding: 64px 0 40px; }
.view-hero h1 { margin: 0 0 10px; font-family: "Noto Serif TC", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.2; }
.view-hero > p:last-child { margin: 0; color: var(--muted); }
.listing-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; align-items: start; }
.filter-sidebar { position: sticky; top: 96px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); max-height: calc(100vh - 120px); overflow: auto; }
.filter-block + .filter-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.filter-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.filter-title button { border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.vertical-options { display: flex; flex-direction: column; gap: 2px; }
.vertical-option { width: 100%; padding: 8px 0; display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 13px; }
.vertical-option.active { color: var(--accent); font-weight: 700; }
.vertical-option span:last-child { font-size: 11px; }
.listing-toolbar { min-height: 44px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.listing-toolbar select { height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.filter-drawer-button { display: none; height: 42px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filter { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; }
.active-filter button { border: 0; background: transparent; color: #fff; padding: 0; }
.exhibition-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.listing-content .card-image, .favorites-shell .card-image { aspect-ratio: 4 / 5; }
.empty-state { padding: 72px 20px; text-align: center; }
.empty-state > span { color: var(--accent); font-family: "Noto Serif TC", serif; font-size: 46px; }
.empty-state h3 { margin: 12px 0; font-family: "Noto Serif TC", serif; font-size: 23px; }
.empty-state p { color: var(--muted); }

/* Nearby page */
.nearby-view { max-width: none; padding: 0; }
.nearby-view-hero { padding: 58px max(24px,calc((100vw - var(--max))/2 + 24px)) 36px; display: flex; justify-content: space-between; align-items: flex-end; background: var(--bg); color: var(--ink); }
.nearby-view-hero h1 { margin: 0; font-family: "Noto Serif TC", serif; font-size: clamp(42px,6vw,64px); }
.nearby-view-hero p:last-child { color: var(--muted); }
.nearby-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.nearby-layout { max-width: var(--max); margin: 0 auto 84px; padding: 0 24px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.nearby-map { min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.nearby-results { max-height: 650px; overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.nearby-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nearby-results-head h2 { margin: 0; font-family: "Noto Serif TC", serif; font-size: 22px; }
.nearby-results-head span { color: var(--muted); font-size: 12px; }
.nearby-result-list { display: flex; flex-direction: column; }
.nearby-result-card { padding: 14px 0; display: grid; grid-template-columns: 92px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.nearby-result-card img, .nearby-result-media { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: #d8cabb; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; }
.nearby-result-card small { color: var(--accent); font-size: 11px; font-weight: 700; }
.nearby-result-card h3 { margin: 4px 0 5px; font-family: "Noto Serif TC", serif; font-size: 15px; line-height: 1.4; }
.nearby-result-card p { margin: 2px 0; color: var(--muted); font-size: 12px; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.map-popup h3 { margin: 0 0 6px; font-family: "Noto Serif TC", serif; font-size: 15px; }
.map-popup p { margin: 2px 0; color: var(--muted); font-size: 12px; }
.map-popup a { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 12px; font-weight: 700; }
.nearby-map-pin { border: 0; background: transparent; }
.nearby-map-pin-shell { width: 100%; height: 100%; display: grid; place-items: center; cursor: pointer; filter: drop-shadow(0 3px 3px rgba(23,23,19,.25)); transition: transform .16s ease, filter .16s ease; }
.nearby-map-pin-shell svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nearby-map-pin-origin .nearby-map-pin-shell { filter: drop-shadow(0 4px 4px rgba(23,23,19,.32)); }
.nearby-map-pin-origin.is-picked .nearby-map-pin-shell, .nearby-map-pin-venue:hover .nearby-map-pin-shell { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 5px 5px rgba(23,23,19,.34)); }
.nearby-map-pin-origin .nearby-map-pin-shell, .leaflet-marker-draggable .nearby-map-pin-shell { cursor: grab; }
.leaflet-dragging .nearby-map-pin-shell, .nearby-map-pin-origin.is-picked .nearby-map-pin-shell { cursor: grabbing; }

/* Detail */
.detail-view { padding-top: 40px; }
.detail-shell { max-width: 1100px; margin: 0 auto; }
.detail-breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 58px; align-items: start; }
.detail-poster { position: sticky; top: 98px; overflow: hidden; border-radius: var(--radius); background: #d8cabb; box-shadow: var(--shadow-sm); }
.detail-poster img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.detail-poster-placeholder { aspect-ratio: 4/5; display: grid; place-items: center; color: #fff; font-family: "Noto Serif TC", serif; font-size: 56px; }
.detail-info { padding-top: 8px; }
.detail-category { color: var(--accent); font-size: 12px; font-weight: 700; }
.detail-info h1 { margin: 12px 0 22px; font-family: "Noto Serif TC", serif; font-size: clamp(34px,4.2vw,52px); line-height: 1.28; }
.detail-summary { color: var(--muted); font-size: 15px; line-height: 1.9; }
.detail-meta { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.detail-meta-row { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.detail-meta-row:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.detail-meta-row small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.detail-meta-row strong { font-size: 13px; line-height: 1.6; }
.detail-actions { margin: 26px 0; display: flex; flex-wrap: wrap; gap: 9px; }
.detail-actions a, .detail-actions button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; }
.detail-actions .primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.detail-description { padding-top: 24px; border-top: 1px solid var(--line); }
.detail-description h2, .detail-related h2 { font-family: "Noto Serif TC", serif; font-size: 26px; }
.detail-description p { white-space: pre-line; color: #4f4a42; font-size: 15px; line-height: 2; }
.detail-related { margin-top: 64px; }
.detail-related .featured-rail { grid-auto-columns: minmax(240px,280px); }
.favorites-shell { padding-top: 8px; }

/* Loading / footer */
.loading-view, .error-view { min-height: 65vh; display: grid; place-content: center; text-align: center; }
.loader-mark { width: 66px; height: 66px; margin: auto; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: "Noto Serif TC", serif; font-size: 28px; animation: pulse 1.2s ease-in-out infinite; }
.loading-view p, .error-view p { color: var(--muted); }
.error-view > span { color: var(--accent); font-family: "Noto Serif TC", serif; font-size: 54px; }
.error-view h2 { font-family: "Noto Serif TC", serif; }
.error-view button { margin: auto; padding: 11px 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .55; } }
.site-footer { padding: 58px max(24px,calc((100vw - var(--max))/2 + 24px)) 24px; background: #24221f; color: #fff; }
.footer-top { padding-bottom: 40px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; }
.footer-top h2 { margin: 18px 0 0; font-family: "Noto Serif TC", serif; font-size: clamp(28px,3.6vw,42px); line-height: 1.45; }
.footer-top .brand-seal { border-color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: start; }
.footer-links > div { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { margin-bottom: 5px; color: #d7d2ca; font-size: 12px; }
.footer-links a, .footer-links span { color: #a9a49c; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-social-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.footer-social-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.04); color: #f1ece6; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.footer-social-icon:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.footer-social-icon svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer-mail-link { margin-top: 14px; width: fit-content; padding: 11px 14px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); color: #f1ece6; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.footer-mail-link:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.footer-mail-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer-mail-link span { color: inherit; font-size: 13px; letter-spacing: .01em; }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); color: #99948c; font-size: 10px; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translate(-50%,24px); opacity: 0; pointer-events: none; padding: 11px 17px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 34px; }
  .category-strip { grid-template-columns: repeat(4,1fr); }
  .venue-grid { grid-template-columns: repeat(2,1fr); }
  .exhibition-grid { grid-template-columns: repeat(2,1fr); }
  .nearby-layout { grid-template-columns: 1fr 390px; }
}

@media (max-width: 820px) {
  .nav-shell { height: 68px; padding: 0 18px; }
  .nav-search { display: none; }
  .mobile-menu-button { display: block; }
  .mobile-menu { inset: 68px 0 0; }
  .hero { grid-template-columns: 1fr; padding: 46px 18px 62px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { min-height: 500px; }
  .discovery-panel, .editorial-section { padding-left: 18px; padding-right: 18px; }
  .quick-filters { align-items: flex-start; flex-wrap: wrap; }
  .clear-filter { margin-left: 0; }
  .category-strip { grid-template-columns: repeat(3,1fr); }
  .time-grid, .nearby-home, .detail-grid { grid-template-columns: 1fr; }
  .nearby-home { padding: 58px 18px; gap: 32px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: fixed; inset: 68px 0 0; z-index: 90; max-height: none; border-radius: 0; transform: translateX(-105%); transition: transform .25s ease; }
  .filter-sidebar.open { transform: translateX(0); }
  .filter-drawer-button { display: inline-block; }
  .nearby-layout { grid-template-columns: 1fr; padding: 0 18px; }
  .nearby-map { min-height: 430px; }
  .nearby-results { max-height: none; }
  .nearby-view-hero { align-items: flex-start; flex-direction: column; gap: 20px; padding-left: 18px; padding-right: 18px; }
  .nearby-hero-actions { justify-content: flex-start; }
  .detail-poster { position: relative; top: auto; max-width: 520px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .brand-copy small { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 14px; }
  .hero-search { grid-template-columns: 22px 1fr; border-radius: 16px; }
  .hero-search button { grid-column: 1/-1; width: 100%; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-stats { gap: 18px; justify-content: space-between; }
  .hero-stats strong { font-size: 19px; }
  .hero-visual { min-height: 410px; }
  .ticket-card { left: 14px; right: 14px; bottom: 14px; padding: 15px; }
  .ticket-main { grid-template-columns: 48px 1fr; }
  .ticket-index { font-size: 34px; }
  .ticket-main h2 { font-size: 16px; }
  .panel-topline, .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .quick-filters { padding: 14px; }
  .date-field { width: 100%; }
  .status-pills { width: 100%; }
  .status-pills button { flex: 1 1 calc(50% - 4px); padding: 0 8px; }
  .category-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; }
  .featured-rail { grid-auto-columns: 82%; }
  .time-column { padding: 18px; }
  .compact-item { grid-template-columns: 52px 1fr auto; gap: 11px; }
  .compact-date { width: 52px; height: 52px; }
  .nearby-mini-card { grid-template-columns: 92px 1fr; }
  .nearby-mini-card img, .nearby-mini-media { width: 92px; height: 100%; }
  .venue-grid, .exhibition-grid { grid-template-columns: 1fr; }
  .app-view { padding: 0 16px 70px; }
  .view-hero { padding: 48px 0 30px; }
  .listing-toolbar { align-items: flex-start; gap: 12px; }
  .nearby-view { padding: 0; }
  .nearby-layout { padding: 0 16px; }
  .nearby-results { padding: 18px 16px; }
  .nearby-result-card { grid-template-columns: 82px 1fr; }
  .nearby-result-card img, .nearby-result-media { width: 82px; height: 82px; }
  .detail-view { padding-top: 26px; }
  .detail-grid { gap: 28px; }
  .detail-info h1 { font-size: 33px; }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-meta-row:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-mail-link span { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

/* =========================================================
   V3.3 — ticket hero, date results and structured filters
   ========================================================= */
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.text-button:hover { color: var(--accent); }
.section-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* Hero: three real exhibition tickets */
.hero-visual {
  min-height: 548px;
  isolation: isolate;
  background: #8c6c4e;
}
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(125deg, rgba(28,21,16,.06), rgba(28,21,16,.18)),
    linear-gradient(to top, rgba(28,21,16,.48), rgba(28,21,16,.03) 62%);
}
.hero-scene-caption {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  background: rgba(41,31,23,.34);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-scene-caption span { font-size: 9px; letter-spacing: .14em; opacity: .78; }
.hero-scene-caption strong { font-size: 12px; font-weight: 600; }
.hero-ticket-stack {
  position: absolute;
  z-index: 4;
  inset: 0;
  transition: opacity .24s ease, transform .24s ease, filter .24s ease;
}
.hero-ticket-stack.is-changing { opacity: 0; transform: translateX(-20px); filter: blur(3px); }
.hero-ticket-card {
  position: absolute;
  display: block;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(70,58,45,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 22px 50px rgba(20,14,9,.22);
  backdrop-filter: blur(14px);
  transform-origin: right center;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.hero-ticket-card::before,
.hero-ticket-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8b6d51;
  transform: translateY(-50%);
}
.hero-ticket-card::before { left: -10px; }
.hero-ticket-card::after { right: -10px; }
.hero-ticket-slot-1 { left: 28px; right: 28px; bottom: 27px; z-index: 3; }
.hero-ticket-slot-2 { width: 78%; right: 18px; top: 165px; z-index: 2; transform: rotate(-2.2deg); opacity: .96; }
.hero-ticket-slot-3 { width: 66%; right: -17px; top: 66px; z-index: 1; transform: rotate(4.5deg); opacity: .9; }
.hero-ticket-stack.is-entering .hero-ticket-slot-1 { animation: ticket-slide-in .72s cubic-bezier(.16,.8,.22,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation: ticket-slide-in .72s .11s cubic-bezier(.16,.8,.22,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation: ticket-slide-in .72s .2s cubic-bezier(.16,.8,.22,1) both; }
.hero-ticket-slot-1:hover { transform: translateY(-7px); box-shadow: 0 28px 62px rgba(20,14,9,.28); }
.hero-ticket-slot-2:hover { z-index: 5; transform: rotate(0) translate(-8px,-7px); opacity: 1; }
.hero-ticket-slot-3:hover { z-index: 5; transform: rotate(1deg) translate(-12px,-7px); opacity: 1; }
@keyframes ticket-slide-in {
  from { opacity: 0; transform: translateX(115%) rotate(7deg); }
}
.hero-ticket-card .ticket-main { margin: 13px 0; grid-template-columns: 55px 1fr; gap: 12px; }
.hero-ticket-card .ticket-index { font-size: 38px; }
.hero-ticket-card .ticket-main h2 {
  margin: 4px 0;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-ticket-card .ticket-main p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-ticket-slot-2 .ticket-main h2,
.hero-ticket-slot-3 .ticket-main h2 { font-size: 15px; }
.hero-ticket-slot-2 .ticket-main,
.hero-ticket-slot-3 .ticket-main { grid-template-columns: 45px 1fr; }
.hero-ticket-slot-2 .ticket-index,
.hero-ticket-slot-3 .ticket-index { font-size: 30px; }
.hero-ticket-hint {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  letter-spacing: .05em;
}
.hero-ticket-hint span { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .3; transform: scale(.7); } }

/* Date-selected results on home */
.date-results-section {
  margin-bottom: 72px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(180,111,69,.055), transparent 55%);
}
.date-results-footer { margin-top: 18px; display: flex; align-items: center; gap: 16px; }

/* Listing filter hub */
.listing-filter-hub {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(315px,.7fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.listing-category-panel,
.listing-calendar-panel,
.listing-status-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.listing-category-panel { grid-row: 1 / 3; }
.filter-panel-heading,
.filter-panel-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.filter-panel-heading { margin-bottom: 18px; }
.filter-panel-heading > div { justify-content: flex-start; }
.filter-panel-heading small,
.filter-sidebar-head small { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.filter-panel-heading h2,
.filter-sidebar-head h2 { margin: 1px 0 0; font-family: "Noto Serif TC",serif; font-size: 19px; line-height: 1.35; }
.filter-step {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--accent);
  font-family: "Noto Serif TC",serif;
  font-size: 15px;
}
.listing-category-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.listing-category-option {
  min-width: 0;
  min-height: 102px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf8;
  color: var(--ink);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.listing-category-option:hover { transform: translateY(-2px); border-color: var(--accent); }
.listing-category-option.active { border-color: var(--accent); background: #fff4ec; box-shadow: inset 0 0 0 1px var(--accent); }
.listing-category-option .category-icon { grid-row: auto; width: 36px; height: 36px; font-size: 18px; }
.listing-category-option strong { max-width: 100%; font-size: 13px; }
.listing-category-option small { color: var(--muted); font-size: 10px; }

/* Expanded calendar */
.calendar-shell { padding: 2px; }
.calendar-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 12px; }
.calendar-head strong { text-align: center; font-family: "Noto Serif TC",serif; font-size: 15px; }
.calendar-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.calendar-day.empty { pointer-events: none; }
.calendar-day:hover { border-color: var(--line); background: var(--surface-soft); }
.calendar-day.has-events::after { content: ""; position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.calendar-day small { position: absolute; top: 2px; right: 3px; color: var(--accent); font-size: 7px; line-height: 1; }
.calendar-day.today { border-color: var(--accent); }
.calendar-day.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.calendar-day.selected::after { background: #fff; }
.calendar-day.selected small { color: #fff; }
.calendar-footer { margin-top: 12px; padding-top: 11px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.calendar-footer button { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 700; }
.listing-status-options { display: flex; flex-wrap: wrap; gap: 7px; }
.status-filter-button { min-height: 37px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.status-filter-button.active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* County > venue accordion */
.listing-layout { grid-template-columns: 276px 1fr; }
.filter-sidebar { padding: 18px; }
.filter-sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.filter-sidebar-intro { margin: 10px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.filter-close-button { display: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 20px; }
.location-accordion { display: flex; flex-direction: column; gap: 7px; }
.region-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf8; }
.region-accordion.selected { border-color: var(--accent); }
.region-accordion summary {
  min-height: 44px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
}
.region-accordion summary::-webkit-details-marker { display: none; }
.region-accordion summary small { color: var(--muted); font-size: 10px; font-weight: 500; }
.region-accordion summary i { color: var(--muted); font-style: normal; transition: transform .18s ease; }
.region-accordion[open] summary i { transform: rotate(180deg); }
.region-venues { padding: 5px 8px 9px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); background: var(--surface); }
.venue-filter-option { width: 100%; min-height: 37px; padding: 7px 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 11px; }
.venue-filter-option span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.venue-filter-option small { flex: 0 0 auto; font-size: 9px; }
.venue-filter-option:hover,
.venue-filter-option.active { background: var(--surface-soft); color: var(--accent); font-weight: 700; }

/* Detail buttons: optical and actual centering */
.detail-actions a,
.detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  line-height: 1;
}
.detail-info h1 { margin-bottom: 26px; }
.detail-meta { margin-top: 0; }
.detail-poster > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 1050px) {
  .listing-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .hero-visual { min-height: 520px; }
  .listing-filter-hub { grid-template-columns: 1fr; grid-template-rows: auto; }
  .listing-category-panel { grid-row: auto; }
  .listing-calendar-panel, .listing-status-panel { grid-column: auto; }
  .filter-sidebar { padding-top: 24px; }
  .filter-close-button { display: grid; place-items: center; }
}

@media (max-width: 600px) {
  .hero-visual { min-height: 470px; }
  .hero-scene-caption { top: 14px; left: 14px; }
  .hero-ticket-card { padding: 14px; border-radius: 15px; }
  .hero-ticket-slot-1 { left: 13px; right: 13px; bottom: 24px; }
  .hero-ticket-slot-2 { width: 86%; top: 143px; right: 6px; }
  .hero-ticket-slot-3 { width: 74%; top: 62px; right: -12px; }
  .hero-ticket-card .ticket-main { grid-template-columns: 42px 1fr; gap: 8px; }
  .hero-ticket-card .ticket-index { font-size: 29px; }
  .hero-ticket-card .ticket-main h2 { font-size: 15px; }
  .hero-ticket-slot-2 .ticket-main h2,
  .hero-ticket-slot-3 .ticket-main h2 { font-size: 13px; }
  .hero-ticket-slot-2 .ticket-footer,
  .hero-ticket-slot-3 .ticket-footer { display: none; }
  .hero-ticket-hint { right: 13px; }
  .date-results-section { margin-bottom: 52px; padding-top: 24px; padding-bottom: 24px; }
  .date-results-footer { align-items: flex-start; flex-direction: column; }
  .listing-category-panel,
  .listing-calendar-panel,
  .listing-status-panel { padding: 16px; }
  .listing-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .listing-category-option { min-height: 86px; padding: 9px 5px; }
  .listing-category-option .category-icon { width: 31px; height: 31px; font-size: 15px; }
  .listing-category-option strong { font-size: 11px; }
  .calendar-day { border-radius: 7px; font-size: 10px; }
  .calendar-day small { display: none; }
  .filter-panel-heading h2,
  .filter-sidebar-head h2 { font-size: 17px; }
  .filter-step { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-card, .hero-ticket-stack { transition: none; animation: none !important; }
  .hero-ticket-hint span { animation: none; }
}

/* =========================================================
   V3.4 — calm ticket counter, compact filters and data polish
   ========================================================= */

/* Softer global type scale */
.panel-topline h2,
.section-heading h2,
.nearby-copy h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.34;
  letter-spacing: -.018em;
}
.editorial-section { padding-bottom: 66px; }
.discovery-panel { margin-bottom: 62px; }
.section-heading { margin-bottom: 20px; }

/* Minimal ticket-counter hero */
.hero { padding-top: 54px; padding-bottom: 66px; }
.hero-visual {
  min-height: 520px;
  isolation: isolate;
  background: #e9e3d9;
  box-shadow: 0 24px 60px rgba(56,44,31,.12);
}
.hero-counter-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-counter-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), transparent 48%),
    linear-gradient(to top, rgba(37,27,20,.12), transparent 38%);
}
.hero-shuffle-button {
  position: absolute;
  z-index: 7;
  top: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(58,47,36,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #4e473f;
  box-shadow: 0 10px 25px rgba(50,38,27,.08);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 650;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero-shuffle-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 30px rgba(50,38,27,.12);
}
.hero-shuffle-button:disabled { cursor: wait; opacity: .72; transform: none; }
.shuffle-icon { font-size: 17px; line-height: 1; transition: transform .45s ease; }
.hero-shuffle-button:hover .shuffle-icon { transform: rotate(-35deg); }
.hero-ticket-stack {
  z-index: 4;
  transition: opacity .48s ease, transform .48s ease, filter .48s ease;
}
.hero-ticket-stack.is-changing {
  opacity: 0;
  transform: translateX(-14px) translateY(4px);
  filter: blur(2px);
}
.hero-ticket-card {
  background: rgba(255,255,255,.975);
  box-shadow: 0 20px 44px rgba(30,22,17,.18);
  transition: transform .34s ease, box-shadow .34s ease, opacity .34s ease;
}
.hero-ticket-card::before,
.hero-ticket-card::after { background: #e8e1d7; }
.hero-ticket-slot-1 { left: 28px; right: 38px; bottom: 32px; }
.hero-ticket-slot-2 { width: 77%; right: 16px; top: 174px; }
.hero-ticket-slot-3 { width: 65%; right: -12px; top: 82px; }
.hero-ticket-stack.is-entering .hero-ticket-slot-1 { animation: ticket-slide-calm 1.55s cubic-bezier(.18,.72,.18,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation: ticket-slide-calm 1.55s .16s cubic-bezier(.18,.72,.18,1) both; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation: ticket-slide-calm 1.55s .31s cubic-bezier(.18,.72,.18,1) both; }
@keyframes ticket-slide-calm {
  from { opacity: 0; transform: translateX(122%) rotate(4deg); filter: blur(2px); }
  55% { opacity: 1; }
  to { filter: blur(0); }
}
.hero-ticket-hint { color: rgba(255,255,255,.88); text-shadow: 0 1px 10px rgba(20,14,9,.4); }

/* Date results: graceful reveal and dismissal */
.date-results-section {
  opacity: 0;
  transform: translateY(14px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-color: transparent;
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.2,.75,.2,1),
    max-height .52s cubic-bezier(.2,.75,.2,1),
    margin .52s ease,
    padding .52s ease,
    border-color .35s ease;
}
.date-results-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 980px;
  margin-bottom: 64px;
  padding-top: 28px;
  padding-bottom: 30px;
  border-color: var(--line);
}
.date-results-section.is-leaving { opacity: 0; transform: translateY(-8px); }
.date-reveal-card {
  opacity: 0;
  transform: translateY(13px);
  animation: date-card-reveal .48s calc(var(--reveal-index, 0) * 70ms + 130ms) ease forwards;
}
@keyframes date-card-reveal { to { opacity: 1; transform: translateY(0); } }

/* Pastel, exceptional-only badges */
.card-badges {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 64px);
}
.card-badge {
  position: static;
  padding: 5px 9px;
  border: 1px solid transparent;
  box-shadow: none;
  font-size: 10px;
  line-height: 1;
}
.badge-new { background: #fff5cf; border-color: #eadca8; color: #6d5a24; }
.badge-upcoming { background: #e9f2f8; border-color: #cbdde9; color: #375b70; }
.badge-ending { background: #f8e9e6; border-color: #ebcbc4; color: #7b443c; }
.badge-free { background: #e8f3ec; border-color: #c9dfd0; color: #365f45; }
.badge-curated { background: #eeeaf6; border-color: #d9d0e8; color: #5d5075; }

/* Compact Explore header */
.listing-view-hero {
  padding: 36px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.view-title-row { display: flex; align-items: center; gap: 13px; }
.view-title-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.view-title-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.listing-view-hero h1 { margin: 0; font-size: clamp(34px, 3.8vw, 44px); }
.listing-view-hero .eyebrow { margin-bottom: 3px; }
.listing-view-hero > p { max-width: 440px; text-align: right; font-size: 13px; }

/* Smaller circular categories */
.listing-filter-hub {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto;
  align-items: end;
  gap: 14px;
}
.listing-category-panel,
.listing-status-panel {
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: none;
}
.listing-category-panel { grid-row: auto; }
.filter-panel-heading { margin-bottom: 14px; }
.filter-panel-heading.compact > div { display: block; }
.filter-panel-heading h2 { font-size: 17px; }
.listing-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}
.listing-category-option {
  min-height: 76px;
  padding: 5px 2px;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transform: none;
}
.listing-category-option:hover { transform: none; border-color: transparent; background: var(--surface-soft); }
.listing-category-option .category-icon {
  width: 48px;
  height: 48px;
  border: 1px solid #ded8ce;
  border-radius: 50%;
  background: #f4f1ec;
  color: #514b44;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.listing-category-option .category-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.listing-category-option strong { font-size: 12px; font-weight: 600; }
.listing-category-option small { display: none; }
.listing-category-option.active { border: 0; background: transparent; box-shadow: none; }
.listing-category-option.active .category-icon {
  border-color: #c49372;
  background: #f8e9df;
  color: #815137;
  box-shadow: 0 0 0 3px rgba(180,111,69,.1);
  transform: translateY(-2px);
}
.listing-category-option.active strong { color: var(--accent-dark); font-weight: 700; }
.listing-status-panel { min-width: 250px; }
.listing-status-options { max-width: 260px; }
.status-filter-button { min-height: 34px; padding: 0 11px; font-size: 11px; }

/* Calendar and county panel share the same sidebar */
.listing-layout { grid-template-columns: 302px minmax(0,1fr); gap: 30px; }
.filter-sidebar {
  position: sticky;
  top: 94px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sidebar-calendar-panel,
.location-filter-panel {
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.location-filter-panel { margin-top: 13px; }
.sidebar-panel-heading { margin-bottom: 10px; }
.calendar-shell { padding: 0; }
.calendar-head { grid-template-columns: 30px 1fr 30px; margin-bottom: 8px; }
.calendar-head strong { font-size: 14px; }
.calendar-head button { width: 29px; height: 29px; font-size: 11px; }
.calendar-weekdays,
.calendar-grid { gap: 3px; }
.calendar-weekdays { margin-bottom: 3px; font-size: 9px; }
.calendar-day { min-height: 32px; aspect-ratio: auto; border-radius: 7px; font-size: 10px; }
.calendar-day small { top: 1px; right: 2px; font-size: 6px; }
.calendar-day.has-events::after { bottom: 3px; }
.calendar-footer { margin-top: 8px; padding-top: 8px; font-size: 9px; }
.filter-sidebar-intro { margin: 8px 0 13px; }
.location-accordion { max-height: min(46vh, 520px); overflow-y: auto; padding-right: 3px; }

/* Square, lower-fatigue cards in listing view only */
.listing-content .card-image { aspect-ratio: 1 / 1; }
.listing-content .exhibition-grid { gap: 18px; }
.listing-content .card-body { padding: 14px 14px 16px; }
.listing-content .card-title { font-size: 16px; min-height: 2.8em; }
.listing-content .card-meta { font-size: 11px; }

/* Venue cards no longer misuse event posters */
.venue-tile.venue-placeholder {
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.5), transparent 35%),
    linear-gradient(135deg, #d8c9b9, #9c8069);
}
.venue-placeholder-mark {
  position: absolute;
  right: 18px;
  top: 15px;
  color: rgba(255,255,255,.34);
  font-family: "Noto Serif TC", serif;
  font-size: 58px;
  font-weight: 900;
}

/* Detail page: calmer title, stronger factual information */
.detail-info h1 {
  margin: 10px 0 22px;
  font-size: clamp(34px, 3.35vw, 42px);
  line-height: 1.34;
}
.detail-category { font-size: 13px; }
.detail-meta-row { padding-top: 17px; padding-bottom: 17px; }
.detail-meta-row small { font-size: 12px; }
.detail-meta-row strong { font-size: 16px; line-height: 1.65; }
.detail-description p { font-size: 16px; line-height: 1.85; }
.detail-description h2, .detail-related h2 { font-size: 24px; }

@media (max-width: 1050px) {
  .listing-filter-hub { grid-template-columns: 1fr; }
  .listing-status-panel { min-width: 0; }
  .listing-status-options { max-width: none; }
  .listing-category-grid { grid-template-columns: repeat(9, minmax(56px,1fr)); overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 820px) {
  .hero { padding-top: 38px; }
  .hero-visual { min-height: 500px; }
  .listing-view-hero { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 28px; }
  .listing-view-hero > p { text-align: left; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: fixed;
    inset: 74px 0 0;
    z-index: 120;
    padding: 18px;
    overflow-y: auto;
    background: var(--bg);
  }
  .filter-sidebar:not(.open) { display: none; }
  .location-accordion { max-height: none; }
  .listing-category-grid { grid-template-columns: repeat(7, 64px); }
}

@media (max-width: 600px) {
  .panel-topline h2,
  .section-heading h2,
  .nearby-copy h2 { font-size: 24px; }
  .editorial-section { padding-bottom: 52px; }
  .hero-visual { min-height: 455px; }
  .hero-shuffle-button { top: 13px; left: 13px; min-height: 38px; font-size: 11px; }
  .hero-ticket-slot-1 { left: 12px; right: 12px; bottom: 25px; }
  .hero-ticket-slot-2 { width: 85%; top: 148px; right: 4px; }
  .hero-ticket-slot-3 { width: 73%; top: 66px; right: -10px; }
  .hero-ticket-stack.is-entering .hero-ticket-slot-1,
  .hero-ticket-stack.is-entering .hero-ticket-slot-2,
  .hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-duration: 1.35s; }
  .date-results-section.is-visible { margin-bottom: 50px; padding-top: 24px; padding-bottom: 24px; }
  .listing-category-panel, .listing-status-panel { padding: 15px; }
  .listing-category-grid { grid-template-columns: repeat(6, 58px); gap: 7px; }
  .listing-category-option { min-height: 70px; }
  .listing-category-option .category-icon { width: 44px; height: 44px; }
  .listing-category-option .category-icon svg { width: 21px; height: 21px; }
  .listing-content .exhibition-grid { grid-template-columns: 1fr; }
  .detail-info h1 { font-size: 29px; }
  .detail-meta-row strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .date-results-section,
  .date-reveal-card,
  .hero-shuffle-button,
  .hero-ticket-stack { animation: none !important; transition: none !important; }
}

/* ========================================================================== */
/* V3.5 — paper collage hero, calmer motion, location stability               */
/* ========================================================================== */

/* Hero: Japanese editorial paper collage, built entirely with HTML/CSS. */
.hero-paper-collage {
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #d8d0c4;
  background:
    linear-gradient(rgba(85,82,76,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85,82,76,.045) 1px, transparent 1px),
    #e9e1d3;
  background-size: 28px 28px;
  box-shadow: 0 25px 70px rgba(48,38,28,.16);
}
.hero-paper-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 13%, rgba(255,255,255,.75), transparent 30%),
    radial-gradient(circle at 92% 92%, rgba(117,83,56,.14), transparent 35%);
}
.paper-collage-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.paper-sheet { position: absolute; display: block; border: 1px solid rgba(83,72,61,.14); box-shadow: 0 13px 28px rgba(56,42,28,.11); }
.paper-sheet-main {
  width: 70%; height: 76%; left: -7%; top: 11%; transform: rotate(-3deg);
  background: #f5efe3;
}
.paper-sheet-grid {
  width: 53%; height: 49%; right: -5%; top: -6%; transform: rotate(5deg);
  background:
    linear-gradient(rgba(82,88,85,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,88,85,.08) 1px, transparent 1px),
    #e8e2d6;
  background-size: 20px 20px;
}
.paper-map-fragment {
  position: absolute; left: 8%; top: 15%; width: 48%; height: 30%; overflow: hidden;
  border: 1px solid rgba(92,88,80,.18); background: rgba(224,224,210,.72); transform: rotate(-4.5deg);
}
.paper-map-fragment svg { width: 100%; height: 100%; fill: none; stroke: #8c9993; stroke-width: 2; opacity: .64; }
.paper-stamp {
  position: absolute; right: 9%; top: 9%; width: 112px; height: 112px; display: grid; place-content: center;
  border: 2px solid rgba(153,81,51,.58); border-radius: 50%; color: rgba(143,72,45,.72);
  font-size: 10px; line-height: 1.2; letter-spacing: .15em; text-align: center; transform: rotate(9deg);
}
.paper-stamp::before, .paper-stamp::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid currentColor; }
.paper-stamp::before { inset: 7px; }
.paper-stamp::after { inset: 12px; opacity: .45; }
.paper-stamp b { font-family: "Noto Serif TC",serif; font-size: 13px; letter-spacing: .08em; }
.paper-stamp small { margin-top: 4px; font-size: 6px; }
.paper-date {
  position: absolute; left: 8%; bottom: 13%; color: rgba(63,58,53,.36); font-family: "Noto Serif TC",serif;
  font-size: 40px; font-weight: 700; letter-spacing: .04em; transform: rotate(-5deg);
}
.paper-ticket-stub {
  position: absolute; right: -22px; bottom: 10%; padding: 10px 42px 10px 18px;
  border: 1px dashed rgba(83,73,62,.35); background: #d6c7af; color: rgba(71,58,47,.62);
  font-size: 8px; letter-spacing: .22em; transform: rotate(-4deg);
}
.paper-tape { position: absolute; width: 82px; height: 24px; background: rgba(218,198,159,.58); box-shadow: inset 0 0 0 1px rgba(117,93,61,.08); }
.tape-one { left: 31%; top: 6%; transform: rotate(-7deg); }
.tape-two { right: 27%; bottom: 6%; transform: rotate(8deg); }
.hero-counter-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(239,232,220,.08), rgba(55,42,31,.03));
}
.hero-shuffle-button, .hero-ticket-stack, .hero-ticket-hint { z-index: 4; }
.hero-shuffle-button {
  border-color: rgba(80,66,52,.22);
  background: rgba(251,248,242,.88);
  color: #413a33;
  box-shadow: 0 8px 24px rgba(60,45,31,.09);
  backdrop-filter: blur(8px);
}
.hero-shuffle-button:hover { background: #fffdf8; color: var(--accent-dark); }
.hero-ticket-hint { color: rgba(60,52,45,.7); text-shadow: none; }
.hero-ticket-hint span { background: var(--accent); }
.hero-ticket-card { box-shadow: 0 18px 45px rgba(48,35,23,.17); }
.hero-ticket-stack.is-changing { transition: opacity .76s ease, transform .76s ease, filter .76s ease; }
.hero-ticket-stack.is-entering .hero-ticket-slot-1 { animation-duration: 1.95s; }
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation-duration: 1.95s; animation-delay: .22s; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-duration: 1.95s; animation-delay: .42s; }

/* Exact update date/time inside homepage statistics. */
.hero-stats .updated-stat { min-width: 184px; }
.hero-stats .updated-stat strong { max-width: 190px; font-size: clamp(15px,1.25vw,20px); line-height: 1.35; white-space: normal; }
.hero-stats .updated-stat span { margin-top: 3px; }

/* Slower, less abrupt home date result motion. */
.date-results-section {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: clip;
  transform: translateY(20px);
  transition:
    opacity .95s cubic-bezier(.22,.65,.25,1),
    transform .95s cubic-bezier(.22,.65,.25,1),
    max-height 1.15s cubic-bezier(.22,.65,.25,1),
    padding .95s ease,
    margin .95s ease;
}
.date-results-section.is-visible {
  max-height: 980px;
  margin-bottom: 72px;
  padding-top: 34px;
  padding-bottom: 34px;
  opacity: 1;
  transform: translateY(0);
}
.date-results-section.is-leaving {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-12px);
}
.date-reveal-card {
  animation: date-card-reveal-v35 .9s calc(var(--reveal-index, 0) * 115ms + 240ms) cubic-bezier(.19,.72,.22,1) forwards;
}
@keyframes date-card-reveal-v35 { from { opacity: 0; transform: translate3d(-20px,12px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }

/* Scroll-triggered, left-to-right reveal for search controls and categories. */
.reveal-sequence .reveal-item {
  opacity: 0;
  transform: translate3d(-22px, 10px, 0);
  transition:
    opacity .82s calc(var(--reveal-index, 0) * 105ms) cubic-bezier(.19,.72,.22,1),
    transform .82s calc(var(--reveal-index, 0) * 105ms) cubic-bezier(.19,.72,.22,1);
}
.reveal-sequence.is-in-view .reveal-item { opacity: 1; transform: translate3d(0,0,0); }
.quick-filters.reveal-sequence > * { min-width: 0; }

/* Location accordion: prevent blank outlined bars and force readable labels. */
.location-filter-panel { min-height: 220px; }
.location-accordion { scrollbar-width: thin; scrollbar-color: #c7beb2 transparent; }
.region-accordion { flex: 0 0 auto; min-height: 46px; }
.region-accordion summary { color: #26221e; background: #fbfaf8; }
.region-accordion summary .region-name { display: block; min-width: 0; overflow: hidden; color: #26221e; white-space: nowrap; text-overflow: ellipsis; }
.region-accordion summary small, .region-accordion summary i { color: #756e66; }
.region-accordion[open] summary { border-bottom: 1px solid var(--line); background: #f6f2ec; }
.region-venues { min-height: 42px; }
.venue-filter-option { color: #5f5952; }
.venue-filter-option span { display: block; color: inherit; }
.region-no-venue { margin: 5px 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* Detail taxonomy links and a slightly calmer title. */
.detail-info h1 { font-size: clamp(29px,3vw,38px); line-height: 1.35; }
.detail-taxonomy { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.detail-taxonomy a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #faf7f2; color: var(--accent-dark);
  font-size: 12px; font-weight: 650; text-decoration: none;
}
.detail-taxonomy a:hover { border-color: #c8a088; background: #fff; }
.detail-meta-row strong { font-size: 16.5px; }

@media (max-width: 900px) {
  .hero-paper-collage { min-height: 485px; }
  .paper-stamp { width: 92px; height: 92px; right: 6%; }
  .paper-date { font-size: 31px; }
  .hero-stats .updated-stat { min-width: 0; }
}
@media (max-width: 680px) {
  .hero-paper-collage { min-height: 455px; }
  .paper-sheet-main { width: 83%; height: 72%; }
  .paper-map-fragment { width: 60%; }
  .paper-stamp { width: 78px; height: 78px; font-size: 8px; }
  .paper-stamp b { font-size: 10px; }
  .paper-date { left: 4%; bottom: 12%; font-size: 24px; }
  .hero-ticket-stack.is-entering .hero-ticket-slot-1,
  .hero-ticket-stack.is-entering .hero-ticket-slot-2,
  .hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-duration: 1.7s; }
  .date-results-section.is-visible { margin-bottom: 50px; padding-top: 27px; padding-bottom: 27px; }
  .detail-info h1 { font-size: 27px; }
  .detail-meta-row strong { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-sequence .reveal-item { opacity: 1; transform: none; transition: none; }
  .date-results-section { transition: none; }
  .date-reveal-card { animation: none; opacity: 1; transform: none; }
}
.venue-image-label {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  padding: 4px 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  background: rgba(35,31,27,.6); color: #fff; font-size: 9px; font-weight: 650; letter-spacing: .06em;
  backdrop-filter: blur(7px);
}

/* ========================================================================== */
/* V3.6 — filtered home rails, slow editorial motion, stable SPA navigation   */
/* ========================================================================== */

/* A filtered status rail appears independently; it no longer replaces picks. */
.status-results-section {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: clip;
  transform: translateY(18px);
  transition:
    opacity 1.05s cubic-bezier(.2,.7,.2,1),
    transform 1.05s cubic-bezier(.2,.7,.2,1),
    max-height 1.2s cubic-bezier(.2,.7,.2,1),
    padding 1s ease,
    margin 1s ease;
}
.status-results-section.is-visible {
  max-height: 1040px;
  margin-bottom: 72px;
  padding-top: 34px;
  padding-bottom: 34px;
  opacity: 1;
  transform: translateY(0);
}
.status-results-section.is-leaving {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-10px);
}
.status-results-footer { margin-top: 18px; display: flex; justify-content: center; }

/* Cards enter slowly from the right and settle toward the left. */
.motion-card {
  opacity: 0;
  transform: translate3d(78px, 10px, 0);
  transition:
    opacity 1.15s calc(var(--motion-index, 0) * 125ms + 120ms) cubic-bezier(.18,.72,.2,1),
    transform 1.28s calc(var(--motion-index, 0) * 125ms + 120ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, transform;
}
[data-motion-group].is-in-view .motion-card,
.status-results-section.is-visible .motion-card {
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* The two planning panels enter from opposite sides. */
[data-split-reveal] > .time-column {
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(.2,.7,.2,1), transform 1.35s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-split-reveal] > .time-column:first-child { transform: translate3d(-78px,0,0); }
[data-split-reveal] > .time-column:last-child { transform: translate3d(78px,0,0); transition-delay: 140ms; }
[data-split-reveal].is-in-view > .time-column { opacity: 1; transform: translate3d(0,0,0); }

/* Nearby block uses a restrained, slow fade rather than a directional slide. */
[data-fade-reveal] {
  opacity: 0;
  transform: translate3d(0,24px,0);
  transition: opacity 1.35s cubic-bezier(.2,.7,.2,1), transform 1.35s cubic-bezier(.2,.7,.2,1);
}
[data-fade-reveal].is-in-view { opacity: 1; transform: translate3d(0,0,0); }

/* Explore header: title/status at left, compact category matrix at right. */
.listing-view-hero {
  padding: 34px 0 26px;
  display: grid;
  grid-template-columns: minmax(260px,.68fr) minmax(540px,1.32fr);
  align-items: stretch;
  gap: 22px;
}
.listing-heading-column {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.listing-view-hero .view-title-row { align-items: flex-start; }
.listing-view-hero h1 { font-size: clamp(30px,3.2vw,40px); }
.listing-view-hero .listing-status-panel,
.listing-view-hero .listing-category-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.listing-view-hero .listing-category-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.listing-view-hero .listing-status-options { max-width: none; }
.listing-view-hero .filter-panel-heading { margin-bottom: 11px; }
.listing-view-hero .listing-category-grid {
  grid-template-columns: repeat(9, minmax(52px,1fr));
  gap: 7px;
}
.listing-view-hero .listing-category-option { min-height: 68px; }
.listing-view-hero .listing-category-option .category-icon { width: 42px; height: 42px; }
.listing-view-hero .listing-category-option .category-icon svg { width: 20px; height: 20px; }
.listing-view-hero .listing-category-option strong { font-size: 11px; }

/* County and venue list follows the document flow with no nested scrollbar. */
.listing-layout { align-items: start; }
.filter-sidebar {
  position: relative;
  top: auto;
  max-height: none !important;
  overflow: visible !important;
}
.location-filter-panel { min-height: 0; }
.location-accordion {
  max-height: none !important;
  height: auto;
  overflow: visible !important;
  padding-right: 0;
  scrollbar-width: none;
}
.location-accordion::-webkit-scrollbar { display: none; }
.region-accordion[open] .region-venues { display: block; }

/* The map CTA only appears when a reliable address, venue, or coordinate exists. */
.detail-action-disabled {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1c9be;
  border-radius: 999px;
  background: #f3f0eb;
  color: #8b847b;
  font-size: 13px;
  cursor: not-allowed;
}
.detail-info h1 { font-size: clamp(27px,2.55vw,34px); line-height: 1.38; }

/* A calmer fallback is preferable to an empty or loud default image. */
.card-placeholder,
.detail-poster-placeholder,
.nearby-mini-media,
.nearby-result-media {
  background:
    linear-gradient(rgba(76,72,66,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,72,66,.055) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(190,116,72,.18), transparent 24%),
    linear-gradient(145deg, #eee7dc, #d8ccbc);
  background-size: 22px 22px, 22px 22px, auto, auto;
  color: rgba(78,67,57,.72);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

/* Footer update label and complete timestamp stay as two deliberate lines. */
.footer-update-block {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px !important;
}
.footer-update-block small {
  color: #d7d2ca;
  font-size: 11px;
  font-weight: 600;
}
.footer-update-block #footerUpdatedAt {
  display: block;
  white-space: nowrap;
  color: #a9a49c;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .listing-view-hero { grid-template-columns: 1fr; }
  .listing-view-hero .listing-category-grid { grid-template-columns: repeat(9, minmax(54px,1fr)); }
}

@media (max-width: 820px) {
  .listing-view-hero { display: grid; padding-top: 28px; }
  .listing-view-hero .listing-category-grid { grid-template-columns: repeat(7, 62px); overflow-x: auto; }
  .filter-sidebar {
    position: fixed;
    top: 74px;
    max-height: calc(100vh - 74px) !important;
    overflow-y: auto !important;
  }
  .location-accordion { overflow: visible !important; }
}

@media (max-width: 600px) {
  .status-results-section.is-visible { margin-bottom: 50px; padding-top: 27px; padding-bottom: 27px; }
  .motion-card { transform: translate3d(52px,8px,0); }
  [data-split-reveal] > .time-column:first-child { transform: translate3d(-46px,0,0); }
  [data-split-reveal] > .time-column:last-child { transform: translate3d(46px,0,0); }
  .detail-info h1 { font-size: 25px; }
  .footer-update-block #footerUpdatedAt { white-space: normal; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-card,
  [data-split-reveal] > .time-column,
  [data-fade-reveal],
  .status-results-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Exhibition Hub V4.6
   ========================================================================== */

/* Restore the warm paper cast that was lost when pure-white surfaces occupied
   more of the viewport. */
:root {
  --bg: #f3eee6;
  --surface: #fffaf3;
  --surface-soft: #ece5db;
  --line: #d8cfc3;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.42), transparent 28%),
    linear-gradient(rgba(115,91,65,.018) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}
.site-header { background: rgba(243,238,230,.94); }

/* The copy aligns with the main navigation. The collage becomes the complete
   right side of the Hero, while a smaller ticket stage sits farther right. */
.hero {
  min-height: 584px;
  padding-top: 0;
  padding-left: max(32px, calc((100vw - 1248px) / 2 + 44px));
  padding-bottom: 0;
  align-items: stretch;
}
.hero-copy {
  min-height: 584px;
  padding-top: 54px;
  padding-right: 58px;
  padding-bottom: 60px;
}
.hero-visual,
.hero-paper-collage {
  height: auto;
  min-height: 584px;
  align-self: stretch;
  border: 0;
}
.hero-ticket-stage {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(28px,4vw,72px);
  width: min(760px,calc(100% - 96px));
  height: 472px;
  transform: translateY(-49%);
}
.hero-ticket-stage .hero-ticket-stack {
  right: 0;
  width: auto;
}
.hero-ticket-stage .hero-shuffle-button,
.hero-ticket-stage .hero-ticket-hint { z-index: 8; }

/* Explore uses related low-chroma paper colours instead of five white boxes. */
.listing-view { --listing-panel-border: rgba(116,94,70,.15); }
.listing-heading-column {
  border-color: var(--listing-panel-border);
  background: #e8ded1;
}
.listing-view-hero .listing-category-panel {
  border-color: var(--listing-panel-border);
  background: #e1e4da;
}
.listing-view-hero .listing-status-panel { background: transparent; }
.sidebar-calendar-panel {
  border-color: var(--listing-panel-border);
  background: #eee1cf;
}
.location-filter-panel {
  border-color: var(--listing-panel-border);
  background: #e8dcd6;
}
.listing-content {
  padding: 18px;
  border: 1px solid var(--listing-panel-border);
  border-radius: 18px;
  background: #e7e1d8;
}
.listing-content .listing-toolbar select,
.listing-content .filter-drawer-button { background: #fffaf3; }
.listing-view .exhibition-card {
  border-color: rgba(118,94,69,.14);
  background: #fffaf3;
}
.listing-view .listing-category-option:hover { background: rgba(255,250,243,.56); }
.listing-view .listing-category-option.active .category-icon { background: #f3dfd1; }
.listing-view .calendar-day:not(.empty) { background: rgba(255,250,243,.56); }
.listing-view .region-accordion summary { background: rgba(255,250,243,.68); }
.listing-view .region-accordion[open] summary { background: rgba(246,238,228,.88); }

/* Major panels arrive one after another, brightening slowly from a deeper
   paper tone into their final colour. */
.listing-tone-block {
  opacity: 0;
  filter: brightness(.78) saturate(.82);
  transform: translate3d(0,20px,0);
  transition:
    opacity 1.25s calc(var(--listing-block-index,0) * 180ms + 70ms) cubic-bezier(.2,.7,.2,1),
    filter 1.65s calc(var(--listing-block-index,0) * 180ms + 70ms) ease,
    transform 1.45s calc(var(--listing-block-index,0) * 180ms + 70ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, filter, transform;
}
.listing-view.is-animated-in .listing-tone-block {
  opacity: 1;
  filter: brightness(1) saturate(1);
  transform: translate3d(0,0,0);
}

/* Rebuilding the result grid on every filter/sort change creates fresh nodes,
   so this quiet stagger restarts for every new selection. */
.listing-reveal-card {
  opacity: 0;
  filter: brightness(.72) saturate(.82);
  transform: translate3d(0,24px,0);
  animation:
    listing-card-reveal-v46 1.35s
    calc(var(--listing-card-index,0) * 120ms + 160ms)
    cubic-bezier(.18,.72,.2,1) both;
  will-change: opacity, filter, transform;
}
@keyframes listing-card-reveal-v46 {
  0% {
    opacity: 0;
    filter: brightness(.72) saturate(.82);
    transform: translate3d(0,24px,0);
  }
  38% { opacity: .42; }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: translate3d(0,0,0);
  }
}

@media (max-width: 1120px) {
  .hero {
    min-height: 566px;
    padding-top: 0;
    padding-left: 28px;
    padding-bottom: 0;
  }
  .hero-copy {
    min-height: 566px;
    padding-top: 50px;
    padding-right: 44px;
    padding-bottom: 56px;
  }
  .hero-visual,
  .hero-paper-collage { min-height: 566px; }
  .hero-ticket-stage {
    right: 24px;
    width: min(660px,calc(100% - 36px));
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    padding: 44px 18px 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-copy {
    min-height: 0;
    padding: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    min-height: 500px;
    margin-right: -18px;
    margin-left: -18px;
  }
  .hero-ticket-stage {
    right: 18px;
    width: calc(100% - 36px);
    height: 440px;
  }
  .listing-content { padding: 15px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .hero-visual,
  .hero-paper-collage { min-height: 470px; }
  .hero-ticket-stage {
    right: 10px;
    width: calc(100% - 20px);
    height: 420px;
  }
  .listing-content { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .listing-tone-block,
  .listing-reveal-card {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ========================================================================== */
/* V3.7 — unified filters, reliable hero controls and editorial image frames  */
/* ========================================================================== */

/* The redraw control always stays above the ticket stack. JavaScript pauses
   the fifteen-second countdown while the pointer or keyboard focus is inside. */
.hero-ticket-stack { z-index: 4; }
.hero-shuffle-button {
  z-index: 8;
  pointer-events: auto;
  touch-action: manipulation;
}
.hero-shuffle-button[aria-busy="true"] .shuffle-icon { animation: v37-spin .72s ease both; }
@keyframes v37-spin { to { transform: rotate(-360deg); } }

/* Date and status now share one result area. Every change fades the previous
   result out, replaces its content, then replays the card entrance motion. */
.filter-results-section {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: clip;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background: linear-gradient(90deg, rgba(180,111,69,.055), transparent 55%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .62s ease, transform .72s cubic-bezier(.2,.72,.2,1), max-height .72s ease, margin .72s ease, padding .72s ease, border-color .5s ease;
}
.filter-results-section.is-visible {
  max-height: 1080px;
  margin-bottom: 68px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-color: var(--line);
  opacity: 1;
  transform: translateY(0);
}
.filter-results-section.is-changing,
.filter-results-section.is-leaving { opacity: 0; transform: translateY(-9px); }
.filter-results-section.is-visible .motion-card { opacity: 1; transform: translate3d(0,0,0); }
.filter-results-footer { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }

.quick-filters .clear-filter { order: 99; margin-left: auto; white-space: nowrap; }
.quick-filters .clear-filter[hidden] { display: none; }
.active-filters { align-items: center; }
.clear-all-filters {
  margin-left: auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #c8b8aa;
  border-radius: 999px;
  background: #fffaf5;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.clear-all-filters:hover { border-color: var(--accent); background: #fff3e9; }

/* One county can be open at a time; all counties are collapsed initially. */
.region-accordion:not([open]) .region-venues { display: none; }
.region-accordion summary { cursor: pointer; }

/* A clear, uncropped poster sits over a soft duplicate of the same image.
   This keeps mixed portrait/landscape sources legible without empty bars. */
.smart-image-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #ded5c8;
}
.smart-image-frame > img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
}
.smart-image-blur {
  z-index: 0;
  object-fit: cover !important;
  filter: blur(20px) saturate(.88);
  opacity: .72;
  transform: scale(1.14);
}
.smart-image-foreground {
  z-index: 1;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 12px rgba(31,24,18,.14));
  transition: transform .35s ease;
}
.exhibition-card:hover .smart-image-blur { transform: scale(1.14); }
.exhibition-card:hover .smart-image-foreground { transform: scale(1.018); }
.nearby-mini-card .smart-image-frame,
.nearby-result-card .smart-image-frame { flex: 0 0 auto; border-radius: 12px; }
.nearby-mini-card .smart-image-frame { width: 112px; height: 112px; }
.nearby-result-card .smart-image-frame { width: 92px; height: 92px; }
.detail-poster > .smart-image-frame { width: 100%; aspect-ratio: 4 / 5; height: auto; }
.detail-poster .smart-image-frame > img { aspect-ratio: auto; }

/* Smaller type makes Explore and Detail easier to scan on desktop. */
.listing-view-hero h1 { font-size: clamp(25px,2.7vw,34px); line-height: 1.28; }
.listing-view-hero .filter-panel-heading h2 { font-size: 14px; }
.listing-view-hero .filter-panel-heading small { font-size: 9px; }
.listing-view-hero .listing-category-option { min-height: 58px; }
.listing-view-hero .listing-category-option .category-icon { width: 36px; height: 36px; }
.listing-view-hero .listing-category-option strong { font-size: 10px; }
.listing-view-hero .status-filter-button { min-height: 31px; padding-inline: 10px; font-size: 10px; }
.listing-toolbar, #listingCount { font-size: 12px; }
.listing-content .card-title { font-size: 16px; line-height: 1.55; }
.detail-info h1 { font-size: clamp(23px,2.2vw,30px); line-height: 1.42; }
.detail-meta-row small { font-size: 10px; }
.detail-meta-row strong { font-size: 13.5px; line-height: 1.65; }
.detail-description h2, .detail-related h2 { font-size: 20px; }
.detail-description p { font-size: 14px; line-height: 1.9; }

@media (max-width: 600px) {
  .filter-results-section.is-visible { margin-bottom: 50px; padding-top: 27px; padding-bottom: 27px; }
  .quick-filters .clear-filter { width: 100%; margin-left: 0; text-align: right; }
  .clear-all-filters { width: 100%; margin-left: 0; }
  .nearby-mini-card .smart-image-frame { width: 92px; height: 100%; }
  .nearby-result-card .smart-image-frame { width: 82px; height: 82px; }
  .detail-info h1 { font-size: 21px; }
  .detail-description h2, .detail-related h2 { font-size: 18px; }
  .detail-description p { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-results-section { transition: none !important; }
  .filter-results-section.is-visible { opacity: 1 !important; transform: none !important; }
  .hero-shuffle-button[aria-busy="true"] .shuffle-icon { animation: none; }
}

/* ========================================================================== */
/* V3.8 — illustrated city hero, square home cards and animated venue rail     */
/* ========================================================================== */

/* A denser editorial collage gives the ticket counter a crafted print feel. */
.hero-paper-collage {
  background:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,.88), transparent 23%),
    radial-gradient(circle at 88% 82%, rgba(117,74,48,.17), transparent 32%),
    repeating-linear-gradient(117deg, rgba(78,67,56,.025) 0 1px, transparent 1px 7px),
    #e7ddce;
}
.hero-paper-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), inset 0 -42px 80px rgba(79,57,37,.07);
  mix-blend-mode: multiply;
}
.paper-collage-layer::before {
  content: "";
  position: absolute;
  width: 178px;
  height: 178px;
  right: 2%;
  top: 27%;
  border: 34px solid rgba(54,82,78,.12);
  border-radius: 50%;
  transform: rotate(11deg);
}
.paper-collage-layer::after {
  content: "";
  position: absolute;
  width: 126px;
  height: 88px;
  left: 38%;
  bottom: 4%;
  border-radius: 46% 54% 58% 42%;
  background: rgba(184,91,56,.13);
  transform: rotate(-14deg);
}
.paper-sheet-main {
  background:
    radial-gradient(circle, rgba(89,75,60,.075) 0 1px, transparent 1.3px) 0 0 / 13px 13px,
    linear-gradient(145deg, #fbf4e7 0%, #efe1cd 100%);
}
.paper-sheet-grid {
  background:
    linear-gradient(32deg, transparent 47%, rgba(83,91,87,.07) 48% 50%, transparent 51%) 0 0 / 24px 24px,
    linear-gradient(rgba(82,88,85,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,88,85,.07) 1px, transparent 1px),
    #e4ddd0;
  background-size: 24px 24px, 20px 20px, 20px 20px, auto;
}
.paper-city-map {
  position: absolute;
  left: 5%;
  top: 14%;
  width: 59%;
  aspect-ratio: 420 / 250;
  overflow: hidden;
  border: 1px solid rgba(83,72,61,.24);
  border-radius: 7px;
  background: #f3ecdc;
  box-shadow: 0 18px 36px rgba(62,45,30,.16), 0 2px 0 rgba(255,255,255,.72) inset;
  transform: rotate(-5deg);
}
.paper-city-map::after {
  content: "TAIWAN CITY EDITION  /  03";
  position: absolute;
  right: 8px;
  top: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(72,66,58,.23);
  border-radius: 999px;
  background: rgba(250,245,235,.82);
  color: rgba(52,49,45,.68);
  font-size: 5px;
  font-weight: 750;
  letter-spacing: .12em;
}
.paper-city-map svg { display: block; width: 100%; height: 100%; }
.city-river { fill: none; stroke: url(#cityRiver); stroke-width: 26; stroke-linecap: round; opacity: .82; }
.city-streets path { fill: none; stroke: #fffaf0; stroke-width: 8; stroke-linecap: round; opacity: .9; }
.city-streets path:nth-child(2) { stroke-width: 5; opacity: .7; }
.city-blocks path { stroke: rgba(91,72,52,.16); stroke-width: 1; }
.city-trees circle { fill: #6f8c70; stroke: #f3ecdc; stroke-width: 3; }
.city-trees path { stroke: #67523b; stroke-width: 3; stroke-linecap: round; }
.city-pin path { fill: #b7583b; stroke: #fff5e7; stroke-width: 3; }
.city-pin circle { fill: #fff5e7; }
.city-compass circle { fill: rgba(250,244,232,.9); stroke: #6c756b; stroke-width: 2; }
.city-compass path { fill: #6c756b; }
.city-compass text { fill: #5a6259; font-family: serif; font-size: 10px; text-anchor: middle; font-weight: 700; }
.city-map-title { fill: #51483e; font-family: "Noto Serif TC", serif; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; }
.paper-stamp {
  border-color: rgba(153,81,51,.7);
  color: rgba(143,72,45,.82);
  background: rgba(241,226,207,.3);
  box-shadow: 0 9px 22px rgba(76,48,31,.07);
}

/* Every exhibition card on the homepage uses the same square image rhythm. */
.home-view .exhibition-card .card-image { aspect-ratio: 1 / 1; }

/* Venue cards become a swipeable editorial rail with venue/exhibition imagery. */
.venue-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 306px);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 3px 3px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c1b4a6 transparent;
}
.venue-tile {
  min-height: 286px;
  scroll-snap-align: start;
  border: 1px solid rgba(75,63,50,.16);
  box-shadow: 0 15px 34px rgba(43,33,23,.1);
}
.venue-tile img {
  filter: saturate(.9) contrast(1.02);
  transform: scale(1.015);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .9s ease;
}
.venue-tile:hover img { transform: scale(1.055); filter: saturate(1) contrast(1.04); }
.venue-tile::after {
  background:
    linear-gradient(to top, rgba(18,15,12,.84), rgba(18,15,12,.17) 63%, rgba(18,15,12,.03)),
    linear-gradient(120deg, rgba(177,94,56,.12), transparent 50%);
}
.venue-tile-content small { display: block; color: rgba(255,255,255,.76); line-height: 1.45; }
.venue-controls { align-items: center; }
.venue-controls .section-link { margin-right: 6px; }
.venue-section .motion-card {
  transform: translate3d(96px, 8px, 0);
  transition:
    opacity 1.5s calc(var(--motion-index, 0) * 165ms + 100ms) cubic-bezier(.18,.72,.2,1),
    transform 1.7s calc(var(--motion-index, 0) * 165ms + 100ms) cubic-bezier(.18,.72,.2,1);
}
.venue-section.is-in-view .motion-card { opacity: 1; transform: translate3d(0,0,0); }

@media (max-width: 680px) {
  .paper-city-map { left: 4%; top: 16%; width: 67%; }
  .paper-city-map::after { display: none; }
  .venue-grid { grid-template-columns: none; grid-auto-columns: minmax(225px, 82vw); }
  .venue-tile { min-height: 250px; }
  .venue-controls .section-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .venue-section .motion-card { opacity: 1; transform: none; transition: none; }
  .venue-tile img { transition: none; }
}

/* ==========================================================================
   Exhibition Hub V3.9
   ========================================================================== */

/* The supplied balanced journal signature replaces the compact seal/wordmark. */
.brand-logo-frame {
  position: relative;
  display: block;
  width: 314px;
  height: 58px;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 508px;
  max-width: none;
  height: auto;
  transform: translate(-50%,-50%);
  mix-blend-mode: multiply;
}

/* R16: one branded, neutral artwork is shown after every official image candidate fails. */
.fallback-art {
  position: relative;
  overflow: hidden;
  background-color: #ded1bd;
  background-image: url("exhibition-placeholder-v16.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
.fallback-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to top, rgba(34,27,20,.58), transparent 52%),
    linear-gradient(120deg, rgba(255,255,255,.07), transparent 42%);
}
.fallback-art-brand {
  position: absolute;
  left: 14px;
  top: 13px;
  z-index: 1;
  display: grid;
  gap: 2px;
  color: #372d24;
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(255,250,242,.8);
}
.fallback-art-brand b {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.fallback-art-brand small {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .14em;
}
.fallback-art-label {
  position: absolute;
  left: 13px;
  bottom: 11px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(28,23,19,.38);
  color: #fff;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 1px 4px rgba(0,0,0,.34);
  backdrop-filter: blur(5px);
}
.nearby-mini-media .fallback-art-brand,
.nearby-result-media .fallback-art-brand {
  left: 9px;
  top: 9px;
}
.nearby-mini-media .fallback-art-brand b,
.nearby-result-media .fallback-art-brand b { font-size: 8px; }
.nearby-mini-media .fallback-art-brand small,
.nearby-result-media .fallback-art-brand small { display: none; }

/* Home filters use one non-conflicting animation, avoiding opacity/transform flashes. */
.filter-results-section.is-changing { opacity: 1; transform: translateY(0); }
.filter-results-section .date-reveal-card {
  opacity: 0;
  transform: translate3d(0,16px,0);
  animation: filter-card-reveal-v39 1.05s calc(var(--reveal-index, 0) * 90ms + 90ms) cubic-bezier(.19,.72,.22,1) both;
  will-change: opacity, transform;
}
@keyframes filter-card-reveal-v39 {
  0% { opacity: 0; transform: translate3d(0,16px,0); }
  30% { opacity: .28; }
  100% { opacity: 1; transform: translate3d(0,0,0); }
}

/* Upcoming is visually distinct from the terracotta "ending soon" state. */
.time-dot.upcoming { background: #3f8a62; box-shadow: 0 0 0 5px rgba(63,138,98,.12); }

/* Favorites: four square cards, slow bottom-up reveal, and a swipeable affinity rail. */
.favorites-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}
.favorites-shell .favorites-grid .card-image { aspect-ratio: 1 / 1; }
.favorite-reveal-card {
  opacity: 0;
  transform: translate3d(0,34px,0);
  animation: favorite-card-rise-v39 1.25s calc(var(--favorite-index, 0) * 125ms + 120ms) cubic-bezier(.18,.72,.2,1) both;
  will-change: opacity, transform;
}
@keyframes favorite-card-rise-v39 {
  from { opacity: 0; transform: translate3d(0,34px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
.favorites-recommendations {
  margin-top: 76px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.favorites-recommendations .section-description { max-width: 620px; }
.favorites-recommendation-rail {
  grid-auto-columns: minmax(232px,270px);
  scroll-snap-type: x proximity;
}
.favorites-recommendation-rail .card-image { aspect-ratio: 1 / 1; }

/* Nearby cards expose distance as a colored datum and keep external navigation separate. */
.nearby-result-card {
  position: relative;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nearby-result-main {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding-right: 76px;
}
.nearby-result-copy { min-width: 0; }
.distance-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dcece5;
  color: #24654b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}
.nearby-map-link {
  position: absolute;
  right: 0;
  bottom: 16px;
  color: #2e6f84;
  font-size: 10px;
  font-weight: 750;
}
.nearby-map-link:hover { color: #174f62; }
.map-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-popup-actions a:last-child { color: #2e6f84; }

@media (max-width: 1120px) {
  .brand-logo-frame { width: 250px; }
  .brand-logo-frame img { width: 405px; }
  .nav-shell { gap: 20px; }
  .desktop-nav { margin-left: 2px; gap: 18px; }
  .favorites-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .brand-logo-frame { width: 220px; height: 52px; }
  .brand-logo-frame img { width: 356px; }
  .favorites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nearby-result-main { grid-template-columns: 82px 1fr; }
}

@media (max-width: 520px) {
  .brand-logo-frame { width: 190px; height: 48px; }
  .brand-logo-frame img { width: 308px; }
  .favorites-grid { grid-template-columns: 1fr; }
  .favorites-recommendations { margin-top: 54px; padding-top: 32px; }
  .nearby-result-main { padding-right: 0; }
  .nearby-map-link { position: static; display: inline-block; margin: 8px 0 0 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-results-section .date-reveal-card,
  .favorite-reveal-card { opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   Exhibition Hub V4.0
   ========================================================================== */

/* Keep the complete supplied signature, but let it sit only slightly above
   the navigation type instead of dominating the header. */
.brand-logo-frame {
  width: 210px;
  height: 44px;
}
.brand-logo-frame img { width: 340px; }

/* Warm editorial hero band: a quiet paper grid separates the opening story
   from the white content below without turning it into a flat banner. */
.hero {
  max-width: none;
  padding: 56px max(24px, calc((100vw - 1248px) / 2)) 62px;
  grid-template-columns: minmax(350px,430px) minmax(0,720px);
  justify-content: center;
  gap: 48px;
  background-color: #eee8de;
  background-image:
    linear-gradient(rgba(88,73,56,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,73,56,.035) 1px, transparent 1px),
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.48), transparent 28%);
  background-size: 24px 24px, 24px 24px, auto;
  border-bottom: 1px solid rgba(114,94,71,.11);
}
.hero-copy { max-width: 430px; }
.hero-visual {
  width: 100%;
  height: 470px;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(99,77,54,.13);
  box-shadow: 0 24px 60px rgba(59,45,31,.13);
}

/* The all-exhibitions CTA belongs to the right edge of the filter frame. */
.quick-filters { flex-wrap: nowrap; }
.quick-filters .status-pills { flex: 1 1 auto; }
.quick-filters .clear-filter {
  order: 1;
  margin-left: 0;
  padding: 0 4px;
  white-space: nowrap;
}
.discover-all-button,
.venue-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(154,104,72,.24);
  border-radius: 999px;
  background: #eee4d8;
  color: #75513d;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.discover-all-button {
  order: 2;
  margin-left: auto;
}
.discover-all-button:hover,
.venue-all-button:hover {
  border-color: rgba(134,81,50,.38);
  background: #e7d7c7;
  transform: translateY(-1px);
}

/* Three rows of four shorter venue cards are visible at once. Additional
   columns remain swipeable. Every failed real image exposes refined category
   artwork instead of the old single-character placeholder. */
.venue-grid {
  grid-template-columns: none;
  grid-template-rows: repeat(3,142px);
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, calc((100% - 54px) / 4));
  column-gap: 18px;
  row-gap: 14px;
  padding: 3px 3px 16px;
}
.venue-tile {
  min-height: 0;
  height: 142px;
  border-radius: 15px;
}
.venue-tile img,
.venue-fallback-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.venue-fallback-art { z-index: 0; }
.venue-tile img { z-index: 0; }
.venue-tile::after { z-index: 1; }
.venue-tile-content {
  left: 14px;
  right: 14px;
  bottom: 12px;
}
.venue-tile-content small { font-size: 8px; letter-spacing: .07em; }
.venue-tile-content h3 {
  margin: 3px 0 2px;
  font-size: 15px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.venue-tile-content p { font-size: 10px; }
.venue-placeholder-mark { display: none; }
.venue-section-footer {
  padding-top: 22px;
  display: flex;
  justify-content: center;
}
.venue-all-button {
  min-height: 44px;
  padding-inline: 22px;
  background: #f7f1e9;
}

/* The footer now contains only the useful navigation group. */
.footer-links {
  grid-template-columns: minmax(150px,220px);
  justify-content: end;
}

@media (max-width: 1120px) {
  .brand-logo-frame { width: 188px; height: 42px; }
  .brand-logo-frame img { width: 304px; }
  .hero {
    padding-left: 28px;
    padding-right: 28px;
    grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
    gap: 32px;
  }
  .hero-copy { max-width: 460px; }
  .hero-visual { height: 460px; }
  .quick-filters { flex-wrap: wrap; }
  .quick-filters .status-pills { flex: 1 1 560px; }
  .discover-all-button { margin-left: auto; }
}

@media (max-width: 820px) {
  .brand-logo-frame { width: 186px; height: 42px; }
  .brand-logo-frame img { width: 301px; }
  .hero {
    padding: 44px 18px 58px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-copy { max-width: 680px; }
  .hero-visual {
    height: auto;
    min-height: 440px;
    aspect-ratio: 16 / 10;
  }
  .venue-grid {
    grid-template-rows: repeat(3,136px);
    grid-auto-columns: minmax(220px,42vw);
  }
  .venue-tile { height: 136px; }
}

@media (max-width: 600px) {
  .brand-logo-frame { width: 176px; height: 40px; }
  .brand-logo-frame img { width: 285px; }
  .quick-filters .status-pills { flex-basis: 100%; }
  .quick-filters .clear-filter { width: auto; text-align: left; }
  .discover-all-button {
    width: 100%;
    margin-left: 0;
  }
  .venue-grid {
    grid-template-rows: repeat(3,128px);
    grid-auto-columns: minmax(218px,78vw);
  }
  .venue-tile { height: 128px; }
  .venue-section-footer { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-all-button,
  .venue-all-button { transition: none; }
}

/* ==========================================================================
   Exhibition Hub V4.1
   ========================================================================== */

/* The wordmark is transparent outside the ticket; only the ticket keeps color. */
.brand-logo-frame {
  width: 210px;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.brand-logo-frame img {
  position: static;
  width: 210px;
  max-width: 100%;
  height: auto;
  transform: none;
  mix-blend-mode: normal;
}

/* A calmer headline and bottom-aligned figures restore balance with the
   neighboring ticket drawer. The current slogan stays editable for a later
   copy decision. */
.hero-copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
}
.hero h1 {
  max-width: 410px;
  font-size: clamp(38px,3.55vw,51px);
  line-height: 1.24;
  letter-spacing: -.032em;
}
.hero-lead { margin-top: 18px; margin-bottom: 22px; }
.hero-stats {
  margin-top: auto;
  padding-top: 26px;
  align-items: flex-end;
}

/* Flatter illustrated city map: no drop shadows or dimensional buildings. */
.paper-city-map {
  border-color: rgba(79,72,63,.2);
  background: #f3ecdc;
  box-shadow: none;
  transform: rotate(-2.2deg);
}
.paper-city-map::after {
  border-radius: 3px;
  background: rgba(243,236,220,.9);
}
.city-river {
  stroke: #91b7b5;
  stroke-width: 22;
  opacity: .76;
}
.city-streets path {
  stroke: #fffaf0;
  stroke-width: 5;
  opacity: .88;
}
.city-streets path:nth-child(2) { stroke-width: 3; opacity: .72; }
.city-blocks path {
  stroke: none;
  opacity: .82;
}
.city-landmarks path {
  fill: none;
  stroke: rgba(255,249,237,.78);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.city-trees circle {
  fill: #718d72;
  stroke: none;
}
.city-trees path {
  stroke: #6b5843;
  stroke-width: 2;
}
.city-pin path {
  fill: #b85f43;
  stroke: #fff6e9;
  stroke-width: 2;
}
.city-compass circle {
  fill: #f7f0e2;
  stroke-width: 1.5;
}

/* Ticket hierarchy, print details, deeper barcode, and a restrained seal. */
.hero-ticket-card {
  border-color: rgba(64,52,41,.24);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.86),
    inset 0 0 0 3px rgba(81,65,50,.13),
    0 18px 45px rgba(48,35,23,.17);
}
.hero-ticket-card .ticket-topline,
.hero-ticket-card .ticket-main,
.hero-ticket-card .ticket-footer {
  position: relative;
  z-index: 1;
}
.hero-ticket-card .ticket-main small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 3px double rgba(137,84,54,.54);
  border-radius: 999px;
  background: rgba(255,252,247,.72);
  color: #795039;
  line-height: 1.1;
}
.hero-ticket-card .barcode {
  color: #241f1a;
  font-weight: 900;
  letter-spacing: .09em;
}
.ticket-watermark {
  position: absolute;
  z-index: 0;
  right: 23px;
  top: 43px;
  width: 84px;
  height: 84px;
  display: grid;
  place-content: center;
  border: 4px double currentColor;
  border-radius: 50%;
  color: #9f6544;
  text-align: center;
  opacity: .075;
  transform: rotate(-11deg);
  pointer-events: none;
}
.ticket-watermark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed currentColor;
  border-radius: inherit;
}
.ticket-watermark b {
  font-family: "Noto Serif TC",serif;
  font-size: 29px;
  line-height: 1;
}
.ticket-watermark i {
  margin-top: 3px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero-ticket-slot-1 {
  left: 25px;
  right: 30px;
  bottom: 25px;
}
.hero-ticket-slot-2 {
  width: 79%;
  right: 20px;
  top: 108px;
  transform: rotate(-3.4deg);
}
.hero-ticket-slot-3 {
  width: 67%;
  right: -7px;
  top: 39px;
  transform: rotate(3.2deg);
}
.hero-ticket-slot-2:hover {
  z-index: 5;
  transform: rotate(-.4deg) translate(-7px,-5px);
}
.hero-ticket-slot-3:hover {
  z-index: 5;
  transform: rotate(.5deg) translate(-10px,-5px);
}
.hero-ticket-slot-2 .ticket-watermark,
.hero-ticket-slot-3 .ticket-watermark {
  width: 66px;
  height: 66px;
  right: 16px;
  top: 36px;
}

/* Venue cards reveal inside their fixed cells. No card is translated, so the
   three-row rail cannot appear offset before settling. */
.venue-section .motion-card {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 0 100% round 15px);
  transition:
    opacity 1.05s calc(var(--motion-index, 0) * 95ms + 80ms) ease,
    clip-path 1.35s calc(var(--motion-index, 0) * 95ms + 80ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, clip-path;
}
.venue-section.is-in-view .motion-card {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 15px);
}

/* Selected filters become a quieter editorial line instead of one oversized
   title with a prominent plus sign. */
.listing-view-hero h1 {
  font-size: clamp(21px,2.15vw,29px);
  line-height: 1.42;
  letter-spacing: -.018em;
}
#listingTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
}
.listing-title-filter { min-width: 0; }
.listing-title-separator {
  color: #b3aaa0;
  font-size: .56em;
  font-weight: 400;
}

@media (max-width: 1120px) {
  .brand-logo-frame { width: 188px; height: 42px; }
  .brand-logo-frame img { width: 188px; }
  .hero-copy { min-height: 460px; }
}

@media (max-width: 820px) {
  .brand-logo-frame { width: 186px; height: 42px; }
  .brand-logo-frame img { width: 186px; }
  .hero-copy {
    min-height: 0;
    display: block;
  }
  .hero-stats {
    margin-top: 32px;
    padding-top: 0;
  }
  .hero h1 { max-width: 560px; font-size: clamp(37px,7vw,48px); }
}

@media (max-width: 600px) {
  .brand-logo-frame { width: 176px; height: 40px; }
  .brand-logo-frame img { width: 176px; }
  .hero h1 { font-size: 35px; }
  .hero-ticket-slot-1 { left: 12px; right: 12px; bottom: 24px; }
  .hero-ticket-slot-2 { width: 85%; top: 98px; right: 5px; }
  .hero-ticket-slot-3 { width: 74%; top: 38px; right: -8px; }
  .ticket-watermark { width: 66px; height: 66px; top: 42px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .venue-section .motion-card {
    opacity: 1;
    clip-path: none;
    transition: none;
  }
}

/* ==========================================================================
   Exhibition Hub V4.2
   ========================================================================== */

/* More breathing room after the opening band and calmer editorial copy. */
.discovery-panel { padding-top: 86px; }

/* Status choices borrow the tactile response of the category cards while
   keeping their own pale butter palette. */
.status-pills button {
  transition:
    color .22s ease,
    background .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}
.status-pills button:not(.active):hover {
  border-color: #d4bb82;
  background: #fff4d8;
  color: #69552d;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91,70,32,.09);
}
.status-pills button.active:hover {
  border-color: #666858;
  background: #666858;
}

/* Nearby discovery is a warm editorial action, rather than a hard black CTA. */
.hero-actions .primary-link {
  border: 1px solid rgba(113,91,51,.2);
  background: #ddcba5;
  color: #4f412d;
  box-shadow: 0 9px 22px rgba(83,63,33,.1);
}
.hero-actions .primary-link:hover {
  border-color: rgba(102,78,39,.32);
  background: #cfb887;
  color: #40331f;
  transform: translateY(-1px);
}

/* A simplified paper map: one river, three walking routes, two quiet parks,
   two gallery symbols, and one destination pin. */
.paper-city-map {
  background: #f3ecdc;
  transform: rotate(-1.35deg);
}
.paper-city-map::after { display: none; }
.city-river {
  fill: none;
  stroke: #a9c5bf;
  stroke-width: 18;
  stroke-linecap: round;
  opacity: .72;
}
.city-routes path {
  fill: none;
  stroke: #d4c6ad;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  opacity: .9;
}
.city-parks path {
  fill: #d8dfc6;
  stroke: #aab899;
  stroke-width: 1;
  opacity: .82;
}
.city-landmarks path {
  fill: rgba(249,245,235,.68);
  stroke: #806f58;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.city-pin path {
  fill: #bd7655;
  stroke: #fff8e9;
  stroke-width: 2;
}
.city-pin circle { fill: #fff8e9; }
.city-map-title {
  fill: #665b4d;
  font-size: 10px;
  letter-spacing: 1.35px;
}

/* Venue hover is deliberately clearer, but remains slow and composed. */
.venue-tile {
  transition:
    transform .52s cubic-bezier(.2,.72,.2,1),
    box-shadow .52s ease,
    border-color .4s ease;
}
.venue-section.is-in-view .venue-tile:hover {
  z-index: 4;
  transform: translateY(-6px) scale(1.028);
  border-color: rgba(255,245,225,.58);
  box-shadow: 0 23px 46px rgba(38,29,20,.24);
}
.venue-section.is-in-view .venue-tile:hover img {
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.06);
}
.venue-section.is-in-view .venue-tile:hover::after {
  background:
    linear-gradient(to top, rgba(18,15,12,.76), rgba(18,15,12,.08) 66%, transparent),
    linear-gradient(120deg, rgba(221,167,105,.18), transparent 52%);
}

/* Featured cards reveal without a horizontal translation, removing the
   temporary left-offset appearance inside the swipe rail. */
.featured-block .motion-card {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 12% 0 round 16px);
  transition:
    opacity 1.05s calc(var(--motion-index, 0) * 95ms + 80ms) ease,
    clip-path 1.22s calc(var(--motion-index, 0) * 95ms + 80ms) cubic-bezier(.18,.72,.2,1);
  will-change: opacity, clip-path;
}
.featured-block.is-in-view .motion-card {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 16px);
}

/* The Explore grid behaves as one large, keyboard-accessible card target. */
.exhibition-card.is-whole-card-link { cursor: pointer; }
.exhibition-card.is-whole-card-link:focus-visible {
  outline: 3px solid rgba(187,126,80,.38);
  outline-offset: 3px;
}

/* Exploration and live data sit side by side with compact, unbroken rows. */
.footer-links {
  grid-template-columns: minmax(120px,160px) minmax(255px,1fr);
  justify-content: end;
  gap: clamp(34px,5vw,72px);
}
.footer-metrics {
  min-width: 255px;
  gap: 11px !important;
}
.footer-metric {
  display: grid;
  grid-template-columns: 76px max-content;
  align-items: baseline;
  gap: 20px;
  white-space: nowrap;
}
.footer-metric strong {
  margin: 0;
  color: #d7d2ca;
  font-size: 11px;
  font-weight: 650;
}
.footer-metric span {
  color: #bcb6ad;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .discovery-panel { padding-top: 68px; }
  .footer-links { justify-content: start; }
}

@media (max-width: 600px) {
  .discovery-panel { padding-top: 54px; }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-metrics { min-width: 0; }
  .footer-metric { grid-template-columns: 76px max-content; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .status-pills button,
  .venue-tile,
  .featured-block .motion-card { transition: none !important; }
  .featured-block .motion-card { opacity: 1; clip-path: none; }
}

/* ==========================================================================
   Exhibition Hub V4.3
   ========================================================================== */

/* A shorter, direct headline keeps the opening spread in proportion. */
.hero h1 {
  max-width: 390px;
  font-size: clamp(33px,3vw,44px);
  line-height: 1.32;
  letter-spacing: -.026em;
}
.hero-lead {
  max-width: 405px;
  line-height: 1.9;
}

/* The nearby action uses a quiet stone-taupe instead of saturated yellow. */
.hero-actions .primary-link {
  border-color: rgba(91,79,66,.18);
  background: #d9d0c3;
  color: #514b43;
  box-shadow: 0 9px 22px rgba(65,54,43,.08);
}
.hero-actions .primary-link:hover {
  border-color: rgba(83,70,57,.28);
  background: #cbc0b2;
  color: #403a34;
}

/* Editorial city illustration: layered neighbourhoods, topographic lines,
   architecture and one restrained route marker. */
.paper-city-map {
  background: #f1eadf;
  transform: rotate(-1.45deg);
}
.city-contours path {
  fill: none;
  stroke: #b7aa99;
  stroke-width: 1.1;
  opacity: .28;
}
.city-districts path {
  stroke: rgba(101,86,70,.22);
  stroke-width: 1.1;
  opacity: .76;
}
.city-districts .district-sage { fill: #c9d2bd; }
.city-districts .district-clay { fill: #d8b5a1; }
.city-districts .district-sand { fill: #dfcfad; }
.city-districts .district-rose { fill: #d6b8ae; }
.city-districts .district-olive { fill: #bdc5a4; }
.city-districts .district-blue { fill: #b9cdca; }
.city-river {
  fill: none;
  stroke: #91b8b6;
  stroke-width: 15;
  stroke-linecap: round;
  opacity: .72;
}
.city-routes path {
  fill: none;
  stroke: rgba(255,250,240,.9);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: none;
  opacity: .88;
}
.city-routes path:nth-child(2),
.city-routes path:nth-child(4) {
  stroke: #8d7d69;
  stroke-width: 1.35;
  opacity: .44;
}
.city-nodes circle {
  fill: #f8f1e6;
  stroke: #897662;
  stroke-width: 1.4;
}
.city-landmarks path {
  fill: rgba(248,243,233,.58);
  stroke: #6f6253;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.city-pin path {
  fill: #ae6d53;
  stroke: #fff8ea;
  stroke-width: 2;
}
.city-pin circle { fill: #fff8ea; }

/* Each ticket now has a visible tear-off section in the centre-right area. */
.ticket-perforation {
  position: absolute;
  z-index: 0;
  top: 12px;
  bottom: 12px;
  right: 28%;
  border-left: 1.5px dashed rgba(77,61,48,.28);
  pointer-events: none;
}
.ticket-perforation::before,
.ticket-perforation::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(77,61,48,.12);
}
.ticket-perforation::before { top: 18%; }
.ticket-perforation::after { bottom: 18%; }

/* Compact floating admission ticket for returning to the top. */
.back-to-top-ticket {
  position: fixed;
  z-index: 180;
  right: clamp(14px,2.4vw,30px);
  bottom: 28px;
  width: 54px;
  height: 76px;
  padding: 10px 7px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(77,63,49,.32);
  background: #eadfce;
  color: #594c40;
  box-shadow:
    inset 0 0 0 3px #f7f0e6,
    inset 0 0 0 4px rgba(88,70,54,.16),
    0 12px 28px rgba(51,40,31,.14);
  clip-path: polygon(0 0,100% 0,100% 36%,91% 40%,87% 50%,91% 60%,100% 64%,100% 100%,0 100%,0 64%,9% 60%,13% 50%,9% 40%,0 36%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease;
}
.back-to-top-ticket::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  border-top: 1px dashed rgba(77,63,49,.26);
}
.back-to-top-ticket span,
.back-to-top-ticket small {
  position: relative;
  z-index: 1;
}
.back-to-top-ticket span {
  margin-bottom: 8px;
  font-family: "Noto Serif TC",serif;
  font-size: 20px;
  line-height: 1;
}
.back-to-top-ticket small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .16em;
}
.back-to-top-ticket.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-ticket:hover {
  background: #dfd0bc;
  transform: translateY(-3px);
}
.back-to-top-ticket:focus-visible {
  outline: 3px solid rgba(164,111,77,.35);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .hero h1 {
    max-width: 510px;
    font-size: clamp(32px,6.3vw,42px);
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 31px; }
  .ticket-perforation { right: 26%; }
  .back-to-top-ticket {
    right: 12px;
    bottom: 18px;
    width: 48px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-ticket { transition: none; }
}

/* ==========================================================================
   Exhibition Hub V4.4
   ========================================================================== */

/* The opening spread is a true two-column editorial composition. The collage
   fills the ticket column and is separated from the copy by one quiet rule. */
.hero {
  padding-top: 38px;
  padding-bottom: 42px;
  grid-template-columns: minmax(350px,430px) minmax(0,720px);
  gap: 0;
}
.hero-copy {
  min-height: 444px;
  padding-right: 44px;
}
.hero h1 {
  max-width: 430px;
  font-size: clamp(34px,3vw,43px);
  line-height: 1.3;
}
.hero-lead {
  max-width: 410px;
  margin-top: 16px;
  margin-bottom: 20px;
}
.hero-visual,
.hero-paper-collage {
  width: 100%;
  height: 444px;
  min-height: 0;
  border: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(99,77,54,.2);
  border-radius: 0;
  box-shadow: none;
}
.hero-paper-collage::after {
  border-radius: 0;
  box-shadow: inset 0 -42px 80px rgba(79,57,37,.07);
}

/* Shorter section joins preserve the editorial rhythm without oversized
   blank bands between each English label and the preceding content. */
.discovery-panel { padding-top: 48px; margin-bottom: 44px; }
.featured-block { padding-bottom: 46px; }
.split-feature { padding-bottom: 22px; }
.nearby-home {
  margin-bottom: 0;
  padding-top: 42px;
  padding-bottom: 42px;
}
.venue-section { padding-top: 42px; padding-bottom: 54px; }

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
    gap: 0;
  }
  .hero-copy {
    min-height: 436px;
    padding-right: 32px;
  }
  .hero-visual,
  .hero-paper-collage { height: 436px; }
}

@media (max-width: 820px) {
  .hero {
    padding: 30px 18px 34px;
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-copy {
    min-height: 0;
    padding-right: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: auto;
    min-height: 420px;
    border-left: 0;
    border-top: 1px solid rgba(99,77,54,.2);
  }
  .discovery-panel { padding-top: 38px; margin-bottom: 38px; }
  .featured-block { padding-bottom: 40px; }
  .split-feature { padding-bottom: 16px; }
  .nearby-home {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .venue-section { padding-top: 36px; padding-bottom: 48px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 24px; padding-bottom: 30px; }
  .hero h1 { font-size: 31px; }
  .hero-visual,
  .hero-paper-collage { min-height: 400px; }
  .discovery-panel { padding-top: 32px; margin-bottom: 34px; }
  .featured-block { padding-bottom: 36px; }
  .split-feature { padding-bottom: 12px; }
  .nearby-home {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .venue-section { padding-top: 32px; padding-bottom: 42px; }
}

/* ==========================================================================
   Exhibition Hub V4.5
   ========================================================================== */

/* Restore the more relaxed V4.3 proportions while allowing the collage to
   become the entire right half of the opening band, all the way to the edge. */
.hero {
  padding-top: 54px;
  padding-right: 0;
  padding-bottom: 60px;
  grid-template-columns: minmax(350px,430px) minmax(0,1fr);
}
.hero-copy {
  min-height: 470px;
  padding-right: 48px;
}
.hero-visual,
.hero-paper-collage {
  height: 470px;
  min-height: 470px;
}
.hero-ticket-stack {
  right: auto;
  width: min(760px,100%);
}
.hero-lead br { display: block; }

/* Date and status results are now a continuation of the same filter frame,
   placed immediately beneath its controls rather than after the categories. */
.filter-workbench {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.filter-workbench .quick-filters {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.filter-workbench .filter-results-section {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 18px;
  padding-left: 18px;
  border-right: 0;
  border-left: 0;
  background:
    linear-gradient(90deg, rgba(180,111,69,.06), transparent 58%),
    #fcfaf7;
}
.filter-workbench .filter-results-section.is-visible {
  margin-bottom: 0;
  padding-top: 27px;
  padding-bottom: 27px;
  border-top-color: var(--line);
  border-bottom-color: transparent;
}
.filter-workbench + .category-strip { margin-top: 18px; }

@media (max-width: 1120px) {
  .hero {
    padding-top: 50px;
    padding-right: 0;
    padding-bottom: 56px;
  }
  .hero-copy {
    min-height: 460px;
    padding-right: 36px;
  }
  .hero-visual,
  .hero-paper-collage {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 44px 18px 52px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-copy {
    min-height: 0;
    padding-right: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: auto;
    min-height: 440px;
  }
  .hero-ticket-stack {
    right: 0;
    width: auto;
  }
}

@media (max-width: 600px) {
  .hero { padding-top: 36px; padding-bottom: 44px; }
  .hero-visual,
  .hero-paper-collage { min-height: 420px; }
  .filter-workbench .filter-results-section {
    padding-right: 14px;
    padding-left: 14px;
  }
  .filter-workbench .filter-results-section.is-visible {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

/* ==========================================================================
   Exhibition Hub V4.7
   ========================================================================== */

/* A warmer Japanese milk-tea palette replaces the cool grey cast while
   retaining enough contrast for long-form browsing. */
:root {
  --bg: #f2e7d9;
  --surface: #fcf7ef;
  --surface-soft: #eadfd2;
  --line: #d8c8b7;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(255,251,243,.58), transparent 30%),
    linear-gradient(rgba(111,82,55,.022) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}
.site-header { background: rgba(242,231,217,.94); }

/* Hero returns to the same 24px container inset as the category section.
   The ticket collage is a rounded rectangle, not a full-bleed right panel. */
.hero {
  min-height: 0;
  padding: 36px 24px 44px;
  grid-template-columns: minmax(350px,430px) minmax(0,1fr);
  gap: 36px;
  align-items: center;
}
.hero-copy {
  min-height: 0;
  padding: 18px 0;
}
.hero-visual,
.hero-paper-collage {
  width: 100%;
  height: 438px;
  min-height: 438px;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(112,82,56,.18);
  border-radius: 24px;
  background:
    linear-gradient(rgba(100,75,51,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,75,51,.052) 1px, transparent 1px),
    linear-gradient(90deg, #faf5ed 0%, #ead8c4 57%, #d4b99f 100%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 20px 52px rgba(74,52,34,.12);
}
.hero-paper-collage::before {
  background:
    radial-gradient(circle at 9% 14%, rgba(255,255,255,.62), transparent 27%),
    radial-gradient(circle at 90% 86%, rgba(119,77,45,.12), transparent 34%);
}
.hero-paper-collage::after {
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.34),
    inset 0 -34px 68px rgba(79,57,37,.055);
}
.hero-ticket-stage {
  top: 50%;
  right: 18px;
  width: calc(100% - 36px);
  height: 408px;
}

/* Nearby is deliberately browner than the page, but remains light enough to
   preserve the airy wood-and-paper character. */
.nearby-home {
  background: linear-gradient(132deg, #e7d8c8 0%, #dfcbb7 58%, #d8bea5 100%);
}
.nearby-mini-card {
  border-color: rgba(112,82,56,.18);
  background: #fbf4e9;
}

/* Explore page: all motion is removed for immediate filter response. Its
   category area now shares the same milk-tea family instead of sage green. */
.listing-heading-column {
  border-color: rgba(116,86,58,.16);
  background: #eadccd;
}
.listing-view-hero .listing-category-panel {
  border-color: rgba(116,86,58,.16);
  background: #eee1d3;
}
.sidebar-calendar-panel {
  border-color: rgba(116,86,58,.16);
  background: #efe1d1;
}
.location-filter-panel {
  border-color: rgba(116,86,58,.16);
  background: #e8d7c9;
}
.listing-content {
  border-color: rgba(116,86,58,.16);
  background: #eadfd2;
}
.listing-view .listing-category-option:hover {
  background: rgba(252,247,239,.72);
}
.listing-view .listing-category-option.active .category-icon {
  background: #e6cbb4;
}
.listing-view .exhibition-card {
  background: #fcf7ef;
}
.listing-view .listing-heading-column,
.listing-view .listing-category-panel,
.listing-view .sidebar-calendar-panel,
.listing-view .location-filter-panel,
.listing-view .listing-content,
.listing-view .exhibition-card,
.listing-view .listing-category-option,
.listing-view .status-filter-button,
.listing-view .region-accordion,
.listing-view .venue-filter-option {
  animation: none !important;
  transition: none !important;
  will-change: auto;
}
.listing-view .exhibition-card:hover {
  transform: none;
}

@media (max-width: 1120px) {
  .hero {
    min-height: 0;
    padding: 34px 24px 42px;
    grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
    gap: 28px;
  }
  .hero-copy {
    min-height: 0;
    padding: 14px 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: 426px;
    min-height: 426px;
  }
  .hero-ticket-stage {
    right: 14px;
    width: calc(100% - 28px);
    height: 398px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    padding: 32px 18px 40px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy {
    min-height: 0;
    padding: 0;
  }
  .hero-visual,
  .hero-paper-collage {
    height: auto;
    min-height: 420px;
    margin: 0;
    border: 1px solid rgba(112,82,56,.18);
    border-radius: 22px;
  }
  .hero-ticket-stage {
    right: 14px;
    width: calc(100% - 28px);
    height: 394px;
  }
}

@media (max-width: 600px) {
  .hero { padding: 28px 16px 36px; }
  .hero-visual,
  .hero-paper-collage {
    min-height: 408px;
    border-radius: 18px;
  }
  .hero-ticket-stage {
    right: 10px;
    width: calc(100% - 20px);
    height: 382px;
  }
}

/* ==========================================================================
   Exhibition Hub V4.8
   ========================================================================== */

/* Reduce saturation and brightness contrast for long, comfortable browsing.
   The page remains warm, but reads as pale milk-tea paper rather than brown. */
:root {
  --bg: #f7f1e9;
  --surface: #fffaf4;
  --surface-soft: #f1e8de;
  --line: #ded2c5;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(255,253,249,.72), transparent 31%),
    linear-gradient(rgba(107,80,55,.014) 1px, transparent 1px);
  background-size: auto, 30px 30px;
}
.site-header { background: rgba(247,241,233,.95); }

/* Match the Hero to the same centred 1200px rhythm used by the sections
   below. Both sides regain generous breathing room, while the ticket panel
   and ticket stack are deliberately shorter. */
.hero {
  width: 100%;
  max-width: var(--max);
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 36px 24px 44px;
  grid-template-columns: minmax(340px,400px) minmax(0,680px);
  justify-content: space-between;
  gap: 48px;
}
.hero-copy {
  min-height: 0;
  padding: 18px 0 18px 12px;
}
.hero-visual,
.hero-paper-collage {
  width: 100%;
  max-width: 680px;
  height: 432px;
  min-height: 432px;
  justify-self: end;
  background:
    linear-gradient(rgba(100,75,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,75,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, #fdfaf5 0%, #f4ebe1 58%, #e8d7c7 100%);
  background-size: 30px 30px, 30px 30px, auto;
  border-color: rgba(112,82,56,.13);
  box-shadow: 0 18px 46px rgba(74,52,34,.075);
}
.hero-paper-collage::before {
  background:
    radial-gradient(circle at 9% 14%, rgba(255,255,255,.7), transparent 28%),
    radial-gradient(circle at 90% 86%, rgba(119,77,45,.07), transparent 35%);
}
.hero-ticket-stage {
  right: 22px;
  width: min(590px,calc(100% - 44px));
  height: 400px;
}

/* Nearby remains distinct from the page but no longer forms a saturated
   brown band. */
.nearby-home {
  background: linear-gradient(132deg, #f5ede4 0%, #eee2d6 58%, #e8d8c8 100%);
}
.nearby-mini-card {
  border-color: rgba(112,82,56,.13);
  background: #fffaf4;
}

/* Five related but visibly different pale papers for the Explore page. */
.listing-heading-column {
  border-color: rgba(116,86,58,.12);
  background: #f2e7db;
}
.listing-view-hero .listing-category-panel {
  border-color: rgba(116,86,58,.12);
  background: #f7efe3;
}
.sidebar-calendar-panel {
  border-color: rgba(116,86,58,.12);
  background: #f3e6dc;
}
.location-filter-panel {
  border-color: rgba(116,86,58,.12);
  background: #efe4df;
}
.listing-content {
  border-color: rgba(116,86,58,.12);
  background: #f4ede4;
}
.listing-content .listing-toolbar select,
.listing-content .filter-drawer-button,
.listing-view .exhibition-card {
  background: #fffaf4;
}
.listing-view .listing-category-option:hover {
  background: rgba(255,250,244,.76);
}
.listing-view .listing-category-option.active .category-icon {
  background: #ecd9c7;
}

@media (max-width: 1120px) {
  .hero {
    width: 100%;
    max-width: var(--max);
    padding: 34px 24px 42px;
    grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
    justify-content: normal;
    gap: 32px;
  }
  .hero-copy { padding: 14px 0 14px 8px; }
  .hero-visual,
  .hero-paper-collage {
    max-width: none;
    height: 422px;
    min-height: 422px;
  }
  .hero-ticket-stage {
    right: 18px;
    width: min(570px,calc(100% - 36px));
    height: 394px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 32px 18px 40px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-copy { padding: 0 6px; }
  .hero-visual,
  .hero-paper-collage {
    max-width: none;
    height: auto;
    min-height: 414px;
  }
  .hero-ticket-stage {
    right: 14px;
    width: calc(100% - 28px);
    height: 388px;
  }
}

@media (max-width: 600px) {
  .hero { padding: 28px 16px 36px; }
  .hero-copy { padding-right: 4px; padding-left: 4px; }
  .hero-visual,
  .hero-paper-collage { min-height: 400px; }
  .hero-ticket-stage {
    right: 10px;
    width: calc(100% - 20px);
    height: 376px;
  }
}

/* ==========================================================================
   Exhibition Hub V4.9
   ========================================================================== */

/* Extend only the Hero paper band to both viewport edges. The calculated
   insets preserve the exact V4.8 positions of the copy and ticket collage. */
.hero {
  max-width: none;
  padding-right: max(24px,calc((100vw - var(--max))/2 + 24px));
  padding-left: max(24px,calc((100vw - var(--max))/2 + 24px));
  background-color: #f5ecdf;
  background-image:
    linear-gradient(rgba(116,87,59,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116,87,59,.03) 1px, transparent 1px),
    linear-gradient(90deg, #fbf6ef 0%, #f4eadd 48%, #ead9c8 100%);
  background-size: 30px 30px, 30px 30px, auto;
}
.hero-visual,
.hero-paper-collage {
  background:
    linear-gradient(rgba(105,77,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,77,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, #fbf6ee 0%, #f0e3d5 58%, #dfc6ae 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

/* The city drawing reaches into the former blank corner, with fewer districts
   and routes so it reads like an editorial illustration rather than a map UI. */
.paper-city-map {
  left: -3%;
  top: 1%;
  width: 64%;
  border-color: rgba(98,77,56,.17);
  background: #f4ecdf;
  transform: rotate(-1.1deg);
}
.city-contours path { opacity: .21; }
.city-districts path {
  stroke: rgba(101,86,70,.16);
  opacity: .67;
}
.city-routes path {
  stroke-width: 2.7;
  opacity: .78;
}
.city-nodes circle {
  r: 3px;
  stroke-width: 1.15;
}
.city-landmarks path {
  stroke-width: 1.6;
  opacity: .88;
}

/* A quiet clay-beige action remains identifiable against the milk-tea paper. */
.hero-actions .primary-link {
  border-color: rgba(126,85,56,.22);
  background: #cfb298;
  color: #42352b;
  box-shadow: 0 9px 22px rgba(84,57,37,.1);
}
.hero-actions .primary-link:hover {
  border-color: rgba(118,76,50,.32);
  background: #c39e80;
  color: #352920;
}

/* Lighten the supplied raster wordmark without softening its fine outlines. */
.brand-logo-frame img {
  filter: brightness(1.08) saturate(.72);
  opacity: .96;
}

/* Filter results continue as clean exhibition paper rather than a brown band. */
.filter-workbench .filter-results-section {
  background: #fffaf4;
}

/* Keep each venue cell still; only its photograph grows under the fixed crop. */
.venue-tile {
  transform: none !important;
  transition: box-shadow .52s ease, border-color .4s ease;
}
.venue-section.is-in-view .venue-tile:hover {
  transform: none !important;
}
.venue-section.is-in-view .venue-tile:hover img {
  transform: scale(1.12);
}

@media (max-width: 1120px) {
  .hero {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }
  .paper-city-map {
    left: -5%;
    top: 0;
    width: 72%;
  }

  /* On narrow screens the two date columns stack at the true centre. Their
     reveal becomes opacity-only, so no column can sit outside the viewport. */
  .split-feature {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow: clip;
  }
  .split-feature .section-heading,
  .time-grid,
  .time-column {
    width: 100%;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
  }
  [data-split-reveal] > .time-column,
  [data-split-reveal] > .time-column:first-child,
  [data-split-reveal] > .time-column:last-child,
  [data-split-reveal].is-in-view > .time-column {
    transform: none !important;
  }

  /* Direct mobile taps now follow the ticket link immediately. These styles
     remain available for keyboard or programmatic previews. */
  .hero-ticket-card.is-touch-preview {
    z-index: 12;
    opacity: 1;
    box-shadow: 0 28px 62px rgba(20,14,9,.28);
  }
  .hero-ticket-slot-1.is-touch-preview {
    transform: translateY(-7px) !important;
  }
  .hero-ticket-slot-2.is-touch-preview {
    transform: rotate(-.4deg) translate(-7px,-5px) !important;
  }
  .hero-ticket-slot-3.is-touch-preview {
    transform: rotate(.5deg) translate(-10px,-5px) !important;
  }

}

@media (max-width: 600px) {
  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* ==========================================================================
   Exhibition Hub V5.0
   ========================================================================== */

/* Keep the confirmed V4.9 geometry, but move the shuffle control to the true
   upper-left corner of the collage instead of letting the narrower ticket
   stage make it appear centred. */
.hero-ticket-stage .hero-shuffle-button {
  top: -4px;
  left: -46px;
}

/* A paler oat-milk action remains readable without becoming the darkest
   object in the opening copy column. */
.hero-actions .primary-link {
  border-color: rgba(120,91,65,.18);
  background: #eadfd2;
  color: #51483f;
  box-shadow: 0 8px 20px rgba(78,58,40,.07);
}
.hero-actions .primary-link:hover {
  border-color: rgba(112,82,57,.26);
  background: #dfcfbd;
  color: #403830;
}

/* Neutral milk-tea replaces the slightly rosy cast. The grid is one step
   darker than V4.9, remaining visible only as a quiet paper texture. */
.hero {
  background-color: #f5eee3;
  background-image:
    linear-gradient(rgba(103,80,57,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,80,57,.055) 1px, transparent 1px),
    linear-gradient(90deg, #fbf7f1 0%, #f3ebdd 50%, #e8dcc7 100%);
  background-size: 30px 30px, 30px 30px, auto;
}
.hero-visual,
.hero-paper-collage {
  background:
    linear-gradient(rgba(98,75,52,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,75,52,.05) 1px, transparent 1px),
    linear-gradient(90deg, #fbf7f0 0%, #f1e7d6 58%, #e2d0b5 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

/* The selected-date/status continuation uses a deeper milk-tea sheet. Cards
   retain a lighter ivory top edge so the rail still has visual hierarchy. */
.filter-workbench .filter-results-section {
  background: linear-gradient(105deg, #f5ece1 0%, #efe2d3 56%, #e9d8c5 100%);
}
.filter-workbench .filter-results-section .exhibition-card {
  border-color: rgba(116,86,58,.14);
  background: linear-gradient(145deg, #fffaf4 0%, #f5e9dc 100%);
  box-shadow: 0 12px 28px rgba(91,65,43,.075);
}

@media (max-width: 1120px) {
  .hero-ticket-stage .hero-shuffle-button {
    top: -5px;
    left: -8px;
  }
}

@media (max-width: 820px) {
  .hero-ticket-stage .hero-shuffle-button {
    top: -7px;
    left: -8px;
  }
}

@media (max-width: 600px) {
  .hero-ticket-stage .hero-shuffle-button {
    top: -7px;
    left: -6px;
    max-width: calc(100% - 4px);
  }
}

/* 4-E-1B: shared category order and exact desktop grouping */
@media (min-width: 1100px) {
  .category-strip,
  .listing-view-hero .listing-category-grid {
    grid-template-columns: repeat(20, minmax(0, 1fr));
    grid-auto-flow: row;
  }

  .category-strip > .category-chip,
  .listing-view-hero .listing-category-grid > .listing-category-option {
    grid-column: span 4;
  }

  .category-strip > .category-chip:nth-child(n + 6),
  .listing-view-hero .listing-category-grid > .listing-category-option:nth-child(n + 6) {
    grid-column: span 5;
  }
}

/* 4-E-4: calendar contrast and compact six-column category layouts */

/* Selected dates use a warm light background and retain dark readable text. */
.calendar-day.selected {
  border-color: #b86f45;
  background: #f2d8c5;
  color: #352d28;
  box-shadow: inset 0 0 0 1px rgba(184,111,69,.2);
}
.calendar-day.selected::after { background: #b86f45; }
.calendar-day.selected small { color: #8a4f2f; }

/* Once another date is selected, today becomes a quieter reference state. */
.calendar-shell.has-selected-date .calendar-day.today:not(.selected) {
  border-color: rgba(184,111,69,.28);
  background: rgba(184,111,69,.065);
  color: #7b726a;
  box-shadow: none;
}

/* Home: six compact category cards per desktop row. */
@media (min-width: 1100px) {
  .category-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    gap: 10px;
  }

  .category-strip > .category-chip,
  .category-strip > .category-chip:nth-child(n + 6) {
    grid-column: auto !important;
    min-height: 80px;
    padding: 12px 10px;
  }
}

/* Explore header: do not stretch the left introduction card to match the right. */
.listing-view-hero { align-items: start; }
.listing-heading-column { align-self: start; }

/* Explore categories: six circles per row and only the circle is clickable. */
.listing-view-hero .listing-category-grid {
  grid-template-columns: repeat(6, minmax(62px, 1fr)) !important;
  gap: 15px 10px;
  align-items: start;
}

.listing-category-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.listing-category-item > strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.listing-view-hero .listing-category-option {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}

.listing-view-hero .listing-category-option:hover {
  background: transparent;
}

.listing-view-hero .listing-category-option .category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.listing-view-hero .listing-category-option:hover .category-icon {
  border-color: var(--accent);
  background: #fff8f3;
  transform: translateY(-2px);
}

.listing-view-hero .listing-category-option:focus-visible {
  outline: none;
}

.listing-view-hero .listing-category-option:focus-visible .category-icon {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.listing-view-hero .listing-category-option.active + strong {
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 820px) {
  .listing-view-hero .listing-category-grid {
    grid-template-columns: repeat(6, 62px) !important;
    overflow-x: auto;
    justify-content: start;
  }
}

/* 4-E-5: align the explore panels and simplify the title/sort control */

/* Left and right cards share the same top and bottom edges. */
.listing-view-hero {
  align-items: stretch;
}

.listing-view-hero .listing-heading-column {
  align-self: stretch;
  height: 100%;
}

/* With the decorative magnifier removed, the title aligns with STATUS. */
.listing-view-hero .view-title-row {
  display: block;
  width: 100%;
  gap: 0;
}

.listing-view-hero .view-title-row > div {
  width: 100%;
}

/* Keep the combined status/sort menu compact and readable. */
.listing-content .listing-toolbar select {
  min-width: 142px;
  font-weight: 600;
}

@media (max-width: 820px) {
  .listing-view-hero {
    align-items: start;
  }

  .listing-view-hero .listing-heading-column {
    height: auto;
  }
}

/* 5-A: consistent status buttons and independent admission filters */
.listing-view-hero .listing-heading-column {
  justify-content: flex-start;
  gap: 26px;
}

.listing-view-hero .listing-status-panel,
.listing-view-hero .listing-admission-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.listing-view-hero .listing-admission-panel {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.listing-view-hero .listing-status-options,
.listing-view-hero .listing-admission-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: none;
}

.listing-view-hero .listing-status-panel .filter-panel-heading,
.listing-view-hero .listing-admission-panel .filter-panel-heading {
  margin-bottom: 12px;
}

.listing-view-hero .listing-status-panel .filter-panel-heading h2,
.listing-view-hero .listing-admission-panel .filter-panel-heading h2 {
  font-size: 17px;
  line-height: 1.35;
}

.listing-view-hero .listing-status-panel .filter-panel-heading small,
.listing-view-hero .listing-admission-panel .filter-panel-heading small {
  font-size: 10px;
  letter-spacing: .13em;
}

.listing-view-hero .status-filter-button,
.listing-view-hero .admission-filter-button {
  appearance: none;
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.listing-view-hero .status-filter-button:hover,
.listing-view-hero .admission-filter-button:hover {
  border-color: rgba(184,111,69,.48);
  background: #fff8f3;
  color: var(--ink);
  transform: translateY(-1px);
}

.listing-view-hero .status-filter-button.active,
.listing-view-hero .admission-filter-button.active,
.listing-view-hero .status-filter-button[aria-pressed="true"],
.listing-view-hero .admission-filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.listing-view-hero .status-filter-button.active:hover,
.listing-view-hero .admission-filter-button.active:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

@media (max-width: 820px) {
  .listing-view-hero .listing-heading-column { gap: 22px; }
  .listing-view-hero .listing-admission-panel { padding-top: 16px; }
  .listing-view-hero .status-filter-button,
  .listing-view-hero .admission-filter-button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 12px;
  }
}


/* 6-C2 — northern venue matrix and editorial venue selector */
.venue-selector-launch {
  width: 100%;
  min-height: 68px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d8cbbc;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,250,243,.96), rgba(239,225,207,.7)),
    var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(73,56,38,.06);
}
.venue-selector-launch small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}
.venue-selector-launch strong { display: block; font-family: "Noto Serif TC",serif; font-size: 13px; }
.venue-selector-launch-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(104,81,57,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.56);
}
.venue-selector-launch-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8b684c;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.venue-selector-launch-icon circle {
  fill: #f8efe3;
}
.venue-selected-preview { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.venue-selected-preview small { width: 100%; color: var(--muted); font-size: 9px; }
.venue-selected-preview span {
  max-width: 100%;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe3d5;
  color: #665444;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.venue-selector-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(36,29,23,.38);
  backdrop-filter: blur(5px);
  touch-action: none;
}
.venue-selector-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 151;
  width: min(820px, 88vw);
  height: 100dvh;
  max-width: 100vw;
  padding: 30px 32px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border-left: 1px solid rgba(102,79,55,.14);
  background:
    linear-gradient(180deg, #fbf5ec 0%, #f5eadc 56%, #f1e4d4 100%);
  box-shadow: -26px 0 70px rgba(44,32,22,.18);
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.2,.72,.2,1);
  pointer-events: none;
}
.venue-selector-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}
.venue-selector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.venue-selector-head h2 { margin: 3px 0 8px; font-family: "Noto Serif TC",serif; font-size: clamp(25px,3vw,35px); }
.venue-selector-head p:last-child { margin: 0; max-width: 510px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.venue-selector-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,250,243,.74);
  color: var(--ink);
  font-size: 24px;
}
.venue-selector-search {
  height: 50px;
  margin-top: 24px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6c6b5;
  border-radius: 14px;
  background: rgba(255,250,243,.9);
}
.venue-selector-search span { color: var(--accent); font-size: 22px; }
.venue-selector-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.venue-selector-selected { margin-top: 17px; padding: 14px; border: 1px solid rgba(124,94,64,.13); border-radius: 14px; background: rgba(255,250,243,.58); }
.venue-selector-selected-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.venue-selector-selected-head strong { font-size: 11px; }
.venue-selector-selected-head button { border: 0; background: none; color: var(--accent); font-size: 10px; }
.venue-selector-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.venue-selector-chips button {
  padding: 7px 10px;
  border: 1px solid rgba(94,71,47,.13);
  border-radius: 999px;
  background: #eadac8;
  color: #5f4d3e;
  font-size: 10px;
}
.venue-selector-chips span { margin-left: 5px; }
.venue-type-tabs {
  margin: 18px 0 13px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.venue-type-tabs::-webkit-scrollbar { display: none; }
.venue-type-tabs button {
  min-height: 34px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid #d7c8b7;
  border-radius: 999px;
  background: rgba(255,250,243,.74);
  color: #726559;
  font-size: 10px;
}
.venue-type-tabs button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.venue-selector-region {
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid rgba(107,82,57,.14);
  border-radius: 14px;
  background: rgba(255,250,243,.69);
  content-visibility: auto;
  contain-intrinsic-size: 52px 420px;
}
.venue-selector-region summary {
  min-height: 50px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: "Noto Serif TC",serif;
  font-size: 13px;
  font-weight: 700;
}
.venue-selector-region summary small { color: var(--muted); font-family: sans-serif; font-size: 9px; font-weight: 500; }
.venue-selector-list {
  min-height: 0;
  flex: 1 1 auto;
  padding-bottom: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.venue-selector-region-body { padding: 0 12px 13px; border-top: 1px solid rgba(107,82,57,.1); }
.venue-selector-district h3 { margin: 14px 4px 6px; color: var(--accent); font-size: 9px; letter-spacing: .11em; }
.venue-selector-option {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.venue-selector-option:hover { background: #f3e7d8; }
.venue-selector-option.active { background: #ddc7af; }
.venue-selector-option span { min-width: 0; }
.venue-selector-option strong,
.venue-selector-option small { display: block; }
.venue-selector-option strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.venue-selector-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.venue-selector-option em { flex: 0 0 auto; color: var(--accent); font-size: 9px; font-style: normal; }
.venue-selector-empty { padding: 45px 18px; color: var(--muted); text-align: center; font-size: 12px; }
.venue-selector-footer {
  position: static;
  width: auto;
  min-height: 78px;
  margin: 0 -32px;
  padding: 13px 32px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(107,82,57,.14);
  background: rgba(250,243,233,.94);
  backdrop-filter: blur(12px);
}
.venue-selector-reset,
.venue-selector-apply { min-height: 46px; padding: 0 20px; border-radius: 999px; }
.venue-selector-reset { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.venue-selector-apply { border: 1px solid var(--ink); background: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .venue-selector-drawer {
    top: 5vh;
    width: 100%;
    height: 95dvh;
    padding: 22px 18px 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
  }
  .venue-selector-drawer.open { transform: translateY(0); }
  .venue-selector-footer { width: auto; margin: 0 -18px; padding: 12px 18px; }
  .venue-selector-reset { flex: 0 0 auto; padding-inline: 15px; }
  .venue-selector-apply { flex: 1; }
}

/* Exhibition Hub V6.4.1 — stable mobile discovery drawers */
.card-image .fallback-art-label,
.card-image .venue-image-label,
.detail-poster .fallback-art-label {
  display: none !important;
}

.mobile-home-filter-launch,
.mobile-listing-filter-launchers,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(43, 33, 25, .34);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity .3s ease;
  touch-action: none;
}
.mobile-menu-backdrop.open { opacity: 1; }
.mobile-menu-backdrop[hidden],
.mobile-menu[hidden] { display: none !important; }

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 221;
  width: min(440px, 92vw);
  max-width: 100vw;
  height: 100dvh;
  padding: 24px 22px calc(42px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, .98), rgba(244, 232, 217, .98)),
    #f7efe4;
  border-left: 1px solid rgba(104, 78, 53, .16);
  box-shadow: -24px 0 60px rgba(53, 38, 26, .18);
  contain: layout paint;
  transform: translateX(104%);
  transition: transform .34s cubic-bezier(.2, .72, .2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.mobile-menu > .mobile-menu-head {
  position: sticky;
  top: -24px;
  z-index: 3;
  margin: -24px -22px 0;
  padding: 24px 22px 14px;
  background: linear-gradient(180deg, #fffaf3 78%, rgba(255,250,243,.92));
  border-bottom: 1px solid rgba(113,85,58,.08);
}
.mobile-menu-head h2 {
  margin: 4px 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: 26px;
  line-height: 1.25;
}
.mobile-menu-close,
.mobile-subpanel-back {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d9cbbb;
  border-radius: 50%;
  background: rgba(255, 251, 246, .78);
  color: var(--ink);
  font-size: 23px;
}
.mobile-search {
  min-height: 54px;
  margin: 22px 0 18px;
  padding: 0 10px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7c6b4;
  border-radius: 16px;
  background: rgba(255, 252, 247, .86);
}
.mobile-search > span { color: var(--accent); font-size: 22px; }
.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.mobile-search button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #826348;
  color: #fffaf3;
  font-size: 11px;
}
.mobile-filter-section {
  scroll-margin-top: 18px;
  margin-top: 14px;
  padding: 18px 15px;
  border: 1px solid rgba(115, 86, 58, .14);
  border-radius: 20px;
  background: rgba(255, 251, 245, .72);
}
#mobileCategorySection {
  background: linear-gradient(145deg, rgba(250,239,226,.94), rgba(246,231,213,.82));
}
#mobileCalendarSection {
  background: linear-gradient(145deg, rgba(248,243,232,.96), rgba(238,230,214,.84));
}
#mobileLocationSection {
  background: linear-gradient(145deg, rgba(243,235,222,.96), rgba(232,219,200,.84));
}
.mobile-filter-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.mobile-filter-section-head small {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}
.mobile-filter-section-head h3 {
  margin: 4px 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: 19px;
}
.mobile-filter-section-head > button {
  border: 0;
  background: transparent;
  color: #806146;
  font-size: 11px;
}
.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 8px;
}
.mobile-category-item {
  min-width: 0;
  text-align: center;
}
.mobile-category-item > button {
  width: clamp(52px, 14vw, 66px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border: 1px solid #d9ccbd;
  border-radius: 50%;
  background: #fffaf3;
  color: #65594e;
}
.mobile-category-item > button.active {
  border-color: #b77a55;
  background: #ead4c0;
  color: #7c4d35;
  box-shadow: 0 0 0 4px rgba(183, 122, 85, .08);
}
.mobile-category-item svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-category-item strong,
.mobile-category-item small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mobile-category-item strong { font-size: 11px; }
.mobile-category-item small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.mobile-calendar .calendar-head { margin-bottom: 12px; }
.mobile-calendar .calendar-grid { gap: 4px; }
.mobile-calendar .calendar-day { min-height: 43px; }
.mobile-calendar .calendar-day.selected {
  background: #8a6a4e;
  color: #fff;
}
.mobile-calendar .calendar-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1px #9c7557;
  color: #6d4c35;
}
.mobile-location-actions {
  display: grid;
  gap: 9px;
}
.mobile-location-actions > button {
  min-height: 62px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dacbbb;
  border-radius: 14px;
  background: #fffaf3;
  color: var(--ink);
  text-align: left;
}
.mobile-location-actions span { font-family: "Noto Serif TC", serif; font-size: 15px; font-weight: 700; }
.mobile-location-actions small { color: var(--muted); font-size: 10px; }
.mobile-location-actions i { color: #946b4d; font-size: 24px; font-style: normal; }
.mobile-menu-nav {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #dacbbb;
  border-radius: 14px;
  background: linear-gradient(110deg, #f5eadc, #ecddcb);
}
.mobile-menu-nav a {
  padding: 15px 4px;
  color: var(--ink);
  text-align: center;
  font-size: 11px;
}
.mobile-menu-nav a + a { border-left: 1px solid rgba(115,86,58,.12); }
.mobile-menu-nav a:active { background: rgba(255,250,243,.72); }
.mobile-region-subpanel {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 24px 22px 42px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #fbf5ec, #f2e4d3);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(104%);
  transition: transform .32s cubic-bezier(.2, .72, .2, 1);
}
.mobile-region-subpanel.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-region-subpanel .mobile-menu-head {
  justify-content: flex-start;
  align-items: center;
}
.mobile-region-options {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}
.mobile-region-options > button {
  min-height: 56px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dacbbb;
  border-radius: 14px;
  background: rgba(255, 251, 245, .76);
  color: var(--ink);
  text-align: left;
}
.mobile-region-options > button.active { background: #e6d0ba; }
.mobile-region-options span { font-family: "Noto Serif TC", serif; font-size: 15px; font-weight: 700; }
.mobile-region-options small { color: var(--muted); font-size: 10px; }
.mobile-region-options i { font-size: 21px; font-style: normal; }

@media (max-width: 900px) {
  .mobile-menu-button {
    position: relative;
    z-index: 102;
    width: 44px;
    height: 44px;
    display: block !important;
    flex: 0 0 auto;
    border: 1px solid rgba(111, 84, 58, .18);
    border-radius: 50%;
    background: rgba(255, 250, 243, .7);
  }
  .mobile-menu-button span {
    width: 18px;
    height: 1.5px;
    margin: 4px auto;
    display: block;
    background: #4d4239;
  }
  .mobile-menu-backdrop { display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-menu-button {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  .mobile-home-filter-launch {
    width: 100%;
    min-height: 70px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #d7c5b2;
    border-radius: 18px;
    background: linear-gradient(110deg, #fffaf2, #ecddcc);
    color: var(--ink);
    text-align: left;
    box-shadow: 0 10px 24px rgba(75, 54, 36, .06);
  }
  .mobile-home-filter-launch small,
  .mobile-home-filter-launch strong { display: block; }
  .mobile-home-filter-launch small { margin-bottom: 5px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
  .mobile-home-filter-launch strong { font-family: "Noto Serif TC", serif; font-size: 16px; }
  .mobile-home-filter-launch i { color: #90694b; font-size: 27px; font-style: normal; }
  .home-view .category-strip { display: none !important; }

  .mobile-listing-filter-launchers {
    margin: 0 var(--page-pad) 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mobile-listing-filter-launchers button {
    min-height: 66px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #d8c8b6;
    border-radius: 16px;
    background: rgba(255, 250, 243, .82);
    color: var(--ink);
    text-align: left;
  }
  .mobile-listing-filter-launchers button.wide {
    min-height: 68px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .mobile-listing-filter-launchers span { font-family: "Noto Serif TC", serif; font-size: 15px; font-weight: 700; }
  .mobile-listing-filter-launchers small { margin-top: 4px; color: var(--muted); font-size: 9px; }
  .mobile-listing-filter-launchers i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #946d50; font-size: 26px; font-style: normal; }
  .listing-view .listing-category-panel,
  .listing-view .filter-sidebar,
  .listing-view .filter-drawer-button {
    display: none !important;
  }
  .listing-view .compact-view-hero {
    grid-template-columns: 1fr !important;
  }

  .venue-selector-drawer {
    top: 0;
    right: 0;
    width: min(440px, 94vw);
    height: 100dvh;
    padding: 22px 18px 0;
    border-left: 1px solid rgba(102, 79, 55, .14);
    border-radius: 0;
    transform: translateX(105%);
  }
  .venue-selector-drawer.open { transform: translateX(0); }
  .venue-selector-footer { width: auto; }
}

/* Exhibition Hub V6.4.2 — post-deploy visual regression hotfixes */

/* Keep the exact raster wordmark in the package, and retain a legible
   text-and-ticket fallback if a stale Pages artifact ever misses the PNG. */
.brand-logo-frame > img {
  display: block;
  flex: 0 0 auto;
}
.brand-logo-fallback {
  display: none;
  align-items: center;
  gap: 10px;
  color: #2c2722;
  white-space: nowrap;
}
.brand-logo-frame.logo-load-failed .brand-logo-fallback { display: flex; }
.brand-logo-fallback > b {
  width: 48px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px double #5e5145;
  border-radius: 4px;
  background: #f2e4cf;
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  line-height: 1;
}
.brand-logo-fallback > span,
.brand-logo-fallback strong,
.brand-logo-fallback small { display: block; }
.brand-logo-fallback strong {
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  letter-spacing: .14em;
}
.brand-logo-fallback small {
  margin-top: 3px;
  color: #6f665e;
  font-size: 7px;
  letter-spacing: .13em;
}

/* The venue-type rail is structural chrome, not part of the scrollable venue
   result list. Prevent the flex column from compressing it into thin arcs. */
.venue-selector-search,
.venue-selector-selected,
.venue-type-tabs {
  flex-shrink: 0;
}
.venue-type-tabs {
  min-height: 38px;
  align-items: center;
  padding: 1px 0 3px;
}
.venue-type-tabs button {
  height: 34px;
  min-height: 34px;
}

/* Reveal a little more of tickets 02 and 03 while preserving the editorial
   fan and keeping ticket 01 as the clear interaction target. */
.hero-ticket-slot-2 {
  width: 80%;
  top: 84px;
  right: 14px;
  transform: rotate(-2.8deg);
}
.hero-ticket-slot-3 {
  width: 69%;
  top: 18px;
  right: -3px;
  transform: rotate(3deg);
}

/* The mobile Explore result view keeps two useful cards per row. Typography,
   controls and badges are tightened without removing exhibition metadata. */
@media (max-width: 760px) {
  .listing-view .listing-content {
    padding-right: 10px;
    padding-left: 10px;
  }
  .listing-view .exhibition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .listing-view .exhibition-card {
    min-width: 0;
    border-radius: 16px;
  }
  .listing-view .card-image { aspect-ratio: 1 / 1; }
  .listing-view .card-body { padding: 11px 10px 13px; }
  .listing-view .card-kicker {
    gap: 5px;
    font-size: 9px;
  }
  .listing-view .card-kicker span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .listing-view .card-title {
    min-height: 4.35em;
    margin: 7px 0 8px;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }
  .listing-view .card-meta {
    gap: 3px;
    font-size: 9px;
    line-height: 1.45;
  }
  .listing-view .card-meta span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .listing-view .card-price {
    margin-top: 8px;
    font-size: 10px;
  }
  .listing-view .favorite-button {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
    font-size: 23px;
  }
  .listing-view .card-badges {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 50px);
    gap: 4px;
  }
  .listing-view .card-badge {
    min-height: 24px;
    padding: 0 7px;
    font-size: 8px;
  }

  .hero-ticket-slot-2 {
    width: 86%;
    top: 80px;
    right: 3px;
    transform: rotate(-2.7deg);
  }
  .hero-ticket-slot-3 {
    width: 76%;
    top: 14px;
    right: -4px;
    transform: rotate(3deg);
  }
}

/* ==========================================================================
   Exhibition Hub V6.5.0-R3 — refined ticket + exhibition postcard carousel
   ========================================================================== */

.mobile-home-quick-actions { display: none; }

.hero-ticket-stage {
  overflow: visible;
  isolation: isolate;
}
.hero-ticket-stage .hero-ticket-stack {
  position: absolute;
  inset: 0;
  width: auto;
  overflow: visible;
  touch-action: pan-y;
}
.hero-exhibit-pair {
  --postcard-left: 0%;
  --postcard-top: -2%;
  --postcard-width: 56%;
  --postcard-rotate: -4deg;
  --ticket-left: 28%;
  --ticket-top: 50%;
  --ticket-width: 81%;
  --ticket-rotate: -2deg;
  position: absolute;
  height: 66%;
  opacity: 1;
  transition:
    left .76s cubic-bezier(.2,.76,.2,1),
    top .76s cubic-bezier(.2,.76,.2,1),
    width .76s cubic-bezier(.2,.76,.2,1),
    opacity .56s ease;
  will-change: left, top, width, opacity;
}
.hero-pair-slot-0 {
  left: -82%;
  top: 28%;
  width: 70%;
  z-index: 7;
  opacity: 0;
}
.hero-pair-slot-1 {
  left: 4%;
  top: 13%;
  width: 82%;
  z-index: 8;
}
.hero-pair-slot-2 {
  left: 56%;
  top: 5%;
  width: 50%;
  z-index: 5;
}
.hero-pair-slot-3 {
  left: 112%;
  top: 7%;
  width: 50%;
  z-index: 4;
  opacity: 0;
}
.hero-exhibit-pair[data-pose="1"] {
  --postcard-left: 1%;
  --postcard-top: -8%;
  --postcard-width: 70%;
  --postcard-rotate: -4.6deg;
  --ticket-left: 35%;
  --ticket-top: 62%;
  --ticket-width: 92%;
  --ticket-rotate: -1.1deg;
}
.hero-exhibit-pair[data-pose="2"] {
  --postcard-left: 2%;
  --postcard-top: -3%;
  --postcard-width: 57%;
  --postcard-rotate: 3.9deg;
  --ticket-left: 33%;
  --ticket-top: 20%;
  --ticket-width: 77%;
  --ticket-rotate: 1.5deg;
}
.hero-exhibit-pair[data-pose="3"] {
  --postcard-left: 2%;
  --postcard-top: 0%;
  --postcard-width: 60%;
  --postcard-rotate: -2.8deg;
  --ticket-left: 29%;
  --ticket-top: 56%;
  --ticket-width: 84%;
  --ticket-rotate: -1.3deg;
}
.hero-postcard,
.hero-exhibit-pair .hero-ticket-card {
  position: absolute;
  transition:
    transform .76s cubic-bezier(.2,.76,.2,1),
    filter .56s ease,
    box-shadow .56s ease,
    opacity .56s ease;
}
.hero-postcard {
  z-index: 0;
  left: var(--postcard-left);
  top: var(--postcard-top);
  width: var(--postcard-width);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 6px solid rgba(255,251,245,.98);
  border-bottom-width: 18px;
  border-radius: 8px;
  background: #ede1d3;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(63,45,29,.16);
  transform: rotate(var(--postcard-rotate));
  transform-origin: center;
}
.hero-postcard::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(171,123,90,.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(171,123,90,.06);
  pointer-events: none;
}
.hero-postcard-image,
.hero-postcard-image.smart-image {
  position: absolute;
  inset: 0 0 12px;
  display: block;
  overflow: hidden;
  background: #e7d9c9;
}
.hero-postcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-postcard-caption {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 3px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #62564a;
  font-size: 6px;
  line-height: 1.12;
  white-space: nowrap;
}
.hero-postcard-caption b {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
}
.hero-postcard-caption small { flex: 0 0 auto; font-size: inherit; }
.hero-exhibit-pair .hero-ticket-card {
  z-index: 1;
  left: var(--ticket-left);
  top: var(--ticket-top);
  width: var(--ticket-width);
  min-height: 100px;
  padding: 8px 18px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(51,37,24,.16);
  transform: rotate(var(--ticket-rotate));
  transform-origin: center;
}
.hero-exhibit-pair .hero-ticket-card:hover {
  box-shadow: 0 22px 42px rgba(51,37,24,.22);
  transform: translateY(-2px) rotate(var(--ticket-rotate));
}
.hero-exhibit-pair .hero-ticket-card .ticket-main {
  margin: 4px 0;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 8px;
}
.hero-exhibit-pair .hero-ticket-card .ticket-index { font-size: 24px; }
.hero-exhibit-pair .hero-ticket-card .ticket-main h2 {
  margin: 0;
  font-size: 11px;
  line-height: 1.24;
}
.hero-exhibit-pair .hero-ticket-card .ticket-main small,
.hero-exhibit-pair .hero-ticket-card .ticket-main p,
.hero-exhibit-pair .hero-ticket-card .ticket-topline,
.hero-exhibit-pair .hero-ticket-card .ticket-footer { font-size: 7px; }
.hero-pair-slot-2 .hero-postcard,
.hero-pair-slot-2 .hero-ticket-card {
  filter: blur(1.8px) saturate(.93);
}
.hero-pair-slot-3 .hero-postcard,
.hero-pair-slot-3 .hero-ticket-card,
.hero-pair-slot-0 .hero-postcard,
.hero-pair-slot-0 .hero-ticket-card {
  filter: blur(3px) saturate(.88);
}

.hero-ticket-stack.is-moving-next .hero-pair-exit-next {
  left: -82%;
  opacity: 0;
}
.hero-ticket-stack.is-moving-next .hero-pair-promote-next {
  left: 4%;
  top: 13%;
  width: 82%;
  z-index: 8;
}
.hero-ticket-stack.is-moving-next .hero-pair-promote-next .hero-postcard,
.hero-ticket-stack.is-moving-next .hero-pair-promote-next .hero-ticket-card {
  filter: blur(0px) saturate(1);
}
.hero-ticket-stack.is-moving-next .hero-pair-incoming-next {
  left: 56%;
  top: 5%;
  width: 50%;
  opacity: 1;
}
.hero-ticket-stack.is-moving-next .hero-pair-incoming-next .hero-postcard,
.hero-ticket-stack.is-moving-next .hero-pair-incoming-next .hero-ticket-card {
  filter: blur(1.8px) saturate(.93);
}
.hero-ticket-stack.is-moving-previous .hero-pair-incoming-previous {
  left: 4%;
  top: 13%;
  width: 82%;
  opacity: 1;
}
.hero-ticket-stack.is-moving-previous .hero-pair-incoming-previous .hero-postcard,
.hero-ticket-stack.is-moving-previous .hero-pair-incoming-previous .hero-ticket-card {
  filter: blur(0px) saturate(1);
}
.hero-ticket-stack.is-moving-previous .hero-pair-demote-previous {
  left: 56%;
  top: 5%;
  width: 50%;
  z-index: 5;
}
.hero-ticket-stack.is-moving-previous .hero-pair-demote-previous .hero-postcard,
.hero-ticket-stack.is-moving-previous .hero-pair-demote-previous .hero-ticket-card {
  filter: blur(1.8px) saturate(.93);
}
.hero-ticket-stack.is-moving-previous .hero-pair-exit-previous {
  left: 112%;
  opacity: 0;
}
.hero-carousel-arrow {
  position: absolute;
  z-index: 12;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(116,91,65,.22);
  border-radius: 50%;
  background: rgba(255,251,245,.96);
  color: #6f523b;
  box-shadow: 0 14px 30px rgba(61,44,28,.12);
  font-size: 38px;
  line-height: .9;
  font-weight: 500;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}
.hero-carousel-arrow:hover {
  border-color: rgba(143,95,60,.44);
  background: #f3e4d2;
  transform: translateY(-50%) scale(1.05);
}
.hero-carousel-arrow:disabled { opacity: .45; cursor: wait; }
.hero-carousel-next { left: -48px; }
.hero-carousel-previous { right: -48px; }
.hero-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero-ticket-stage {
    height: 406px;
    width: min(100%,calc(100% - 10px));
    right: 2px;
    transform: translateY(-47%);
  }
  .hero-carousel-arrow { display: none; }
  .hero-pair-slot-0 {
    left: -102%;
    top: 31%;
    width: 88%;
  }
  .hero-pair-slot-1 {
    left: 1%;
    top: 14%;
    width: 97%;
  }
  .hero-pair-slot-2 {
    left: 51%;
    top: 5%;
    width: 55%;
  }
  .hero-pair-slot-3 {
    left: 107%;
    top: 8%;
    width: 55%;
  }
  .hero-ticket-stack.is-moving-next .hero-pair-exit-next { left: -102%; }
  .hero-ticket-stack.is-moving-next .hero-pair-promote-next {
    left: 1%;
    top: 14%;
    width: 97%;
  }
  .hero-ticket-stack.is-moving-next .hero-pair-incoming-next {
    left: 51%;
    top: 5%;
    width: 55%;
  }
  .hero-ticket-stack.is-moving-previous .hero-pair-incoming-previous {
    left: 1%;
    top: 14%;
    width: 97%;
  }
  .hero-ticket-stack.is-moving-previous .hero-pair-demote-previous {
    left: 51%;
    top: 5%;
    width: 55%;
  }
  .hero-ticket-stack.is-moving-previous .hero-pair-exit-previous { left: 107%; }
  .hero-exhibit-pair[data-pose="1"] {
    --postcard-left: 0%;
    --postcard-top: -6%;
    --postcard-width: 70%;
    --postcard-rotate: -4deg;
    --ticket-left: 22%;
    --ticket-top: 64%;
    --ticket-width: 92%;
    --ticket-rotate: -1deg;
  }
  .hero-exhibit-pair[data-pose="2"] {
    --postcard-left: 2%;
    --postcard-top: -3%;
    --postcard-width: 58%;
    --postcard-rotate: 3.5deg;
    --ticket-left: 30%;
    --ticket-top: 21%;
    --ticket-width: 76%;
    --ticket-rotate: 1.5deg;
  }
  .hero-exhibit-pair[data-pose="3"] {
    --postcard-left: 1%;
    --postcard-top: 0%;
    --postcard-width: 61%;
    --postcard-rotate: -2.4deg;
    --ticket-left: 23%;
    --ticket-top: 58%;
    --ticket-width: 84%;
    --ticket-rotate: -1.2deg;
  }
  .hero-postcard {
    border-width: 5px;
    border-bottom-width: 15px;
  }
  .hero-postcard::after {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 9px;
  }
  .hero-exhibit-pair .hero-ticket-card {
    min-height: 78px;
    padding: 6px 11px;
    border-radius: 14px;
  }
  .hero-exhibit-pair .hero-ticket-card .ticket-main {
    margin: 3px 0;
    grid-template-columns: 28px minmax(0,1fr);
    gap: 7px;
  }
  .hero-exhibit-pair .hero-ticket-card .ticket-index { font-size: 20px; }
  .hero-exhibit-pair .hero-ticket-card .ticket-main h2 {
    font-size: 8.6px;
    line-height: 1.18;
  }
  .hero-exhibit-pair .hero-ticket-card .ticket-main small,
  .hero-exhibit-pair .hero-ticket-card .ticket-main p,
  .hero-exhibit-pair .hero-ticket-card .ticket-topline,
  .hero-exhibit-pair .hero-ticket-card .ticket-footer { font-size: 5.6px; }
  .hero-exhibit-pair .hero-ticket-card .ticket-watermark { transform: scale(.63); transform-origin: center; }
  .hero-postcard-caption { font-size: 4.7px; }

  .home-view .discovery-panel .panel-topline,
  .home-view .filter-workbench,
  .home-view .category-strip {
    display: none !important;
  }
  .mobile-home-quick-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 0;
  }
  .mobile-home-quick-actions > button,
  .mobile-home-quick-actions > a {
    min-height: 78px;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid rgba(116,91,65,.15);
    border-radius: 18px;
    background: #fffaf3;
    color: var(--ink);
    text-align: left;
    box-shadow: 0 10px 24px rgba(78,54,33,.06);
  }
  .mobile-home-quick-actions > :nth-child(1) { background: linear-gradient(180deg,#f2e2bf 0%,#ead7af 100%); }
  .mobile-home-quick-actions > :nth-child(2) { background: linear-gradient(180deg,#ead8c3 0%,#e2ccb2 100%); }
  .mobile-home-quick-actions > :nth-child(3) { background: linear-gradient(180deg,#d6ded0 0%,#c9d3c1 100%); }
  .mobile-home-quick-actions > :nth-child(4) { background: linear-gradient(180deg,#edd8cf 0%,#e1c7bc 100%); }
  .mobile-home-quick-actions span {
    font-family: "Noto Serif TC", serif;
    font-size: 19px;
    font-weight: 750;
  }
  .mobile-home-quick-actions small {
    margin-top: 5px;
    color: #6e6358;
    font-size: 10px;
  }
  .home-view .discovery-panel {
    padding-top: 30px;
    padding-bottom: 6px;
  }

  .listing-view .card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-exhibit-pair { transition-duration: .01ms !important; }
}


/* ==========================================================================
   Exhibition Hub V6.5.0-R6 — external controls and bottom-aligned hero ticket
   ========================================================================== */
@media (min-width: 761px) {
  .hero-visual {
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  .hero-paper-collage {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }
  .hero-visual > .hero-carousel-arrow {
    top: 50%;
  }
  .hero-visual > .hero-carousel-next { left: -72px; }
  .hero-visual > .hero-carousel-previous { right: -72px; }

  .hero-pair-slot-1 {
    left: 2%;
    top: 8%;
    width: 88%;
    height: 78%;
  }
  .hero-pair-slot-2 {
    left: 58%;
    top: 4%;
    width: 48%;
    height: 66%;
  }
  .hero-pair-slot-3 {
    left: 112%;
    top: 5%;
    width: 48%;
    height: 66%;
  }
  .hero-exhibit-pair[data-pose="1"] {
    --postcard-left: 0%;
    --postcard-top: -3%;
    --postcard-width: 72%;
    --postcard-rotate: -4.2deg;
    --ticket-left: 18%;
    --ticket-top: 78%;
    --ticket-width: 88%;
    --ticket-rotate: -1deg;
  }
  .hero-exhibit-pair[data-pose="2"] {
    --postcard-left: 2%;
    --postcard-top: -2%;
    --postcard-width: 60%;
    --postcard-rotate: 3.4deg;
    --ticket-left: 25%;
    --ticket-top: 22%;
    --ticket-width: 76%;
    --ticket-rotate: 1.3deg;
  }
  .hero-exhibit-pair[data-pose="3"] {
    --postcard-left: 1%;
    --postcard-top: 0%;
    --postcard-width: 63%;
    --postcard-rotate: -2.2deg;
    --ticket-left: 20%;
    --ticket-top: 70%;
    --ticket-width: 84%;
    --ticket-rotate: -1.1deg;
  }
  .hero-exhibit-pair .hero-ticket-card {
    min-height: 92px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .hero-ticket-stack.is-moving-next .hero-pair-promote-next,
  .hero-ticket-stack.is-moving-previous .hero-pair-incoming-previous {
    left: 2%;
    top: 8%;
    width: 88%;
    height: 78%;
  }
  .hero-ticket-stack.is-moving-next .hero-pair-incoming-next,
  .hero-ticket-stack.is-moving-previous .hero-pair-demote-previous {
    left: 58%;
    top: 4%;
    width: 48%;
    height: 66%;
  }
}

/* The pair is re-rendered after each movement. Keeping transforms static avoids
   the tiny settle/jump after the final frame while blur and position still animate. */
.hero-postcard,
.hero-exhibit-pair .hero-ticket-card {
  transition: filter .56s ease, box-shadow .2s ease, opacity .56s ease;
}

@media (max-width: 760px) {
  .hero-pair-slot-1 {
    left: 1%;
    top: 7%;
    width: 98%;
    height: 84%;
  }
  .hero-pair-slot-2 {
    left: 53%;
    top: 4%;
    width: 53%;
    height: 66%;
  }
  .hero-pair-slot-3 {
    left: 108%;
    top: 6%;
    width: 53%;
    height: 66%;
  }
  .hero-exhibit-pair[data-pose="1"] {
    --postcard-left: 0%;
    --postcard-top: -3%;
    --postcard-width: 73%;
    --postcard-rotate: -3.8deg;
    --ticket-left: 16%;
    --ticket-top: 79%;
    --ticket-width: 90%;
    --ticket-rotate: -.8deg;
  }
  .hero-exhibit-pair[data-pose="2"] {
    --postcard-left: 2%;
    --postcard-top: -2%;
    --postcard-width: 61%;
    --postcard-rotate: 3.2deg;
    --ticket-left: 25%;
    --ticket-top: 22%;
    --ticket-width: 76%;
    --ticket-rotate: 1.2deg;
  }
  .hero-exhibit-pair[data-pose="3"] {
    --postcard-left: 1%;
    --postcard-top: 0%;
    --postcard-width: 64%;
    --postcard-rotate: -2deg;
    --ticket-left: 18%;
    --ticket-top: 72%;
    --ticket-width: 86%;
    --ticket-rotate: -1deg;
  }
  .hero-exhibit-pair .hero-ticket-card {
    min-height: 74px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .hero-ticket-stack.is-moving-next .hero-pair-promote-next,
  .hero-ticket-stack.is-moving-previous .hero-pair-incoming-previous {
    left: 1%;
    top: 7%;
    width: 98%;
    height: 84%;
  }
  .hero-ticket-stack.is-moving-next .hero-pair-incoming-next,
  .hero-ticket-stack.is-moving-previous .hero-pair-demote-previous {
    left: 53%;
    top: 4%;
    width: 53%;
    height: 66%;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R7 — restore 3-ticket hero and compact footer
   ====================================================================== */

.hero-ticket-stage {
  overflow: visible;
  isolation: isolate;
}
.hero-ticket-stage .hero-ticket-stack {
  position: absolute;
  inset: 0;
  width: auto;
  overflow: visible;
  touch-action: pan-y;
}
.hero-ticket-slide {
  position: absolute;
  opacity: 1;
  transition:
    left .7s cubic-bezier(.2,.8,.2,1),
    top .7s cubic-bezier(.2,.8,.2,1),
    bottom .7s cubic-bezier(.2,.8,.2,1),
    width .7s cubic-bezier(.2,.8,.2,1),
    opacity .5s ease;
  will-change: left, top, bottom, width, opacity;
}
.hero-ticket-slide[data-pose="1"] { --hero-ticket-rotate: -1.6deg; }
.hero-ticket-slide[data-pose="2"] { --hero-ticket-rotate: -5.2deg; }
.hero-ticket-slide[data-pose="3"] { --hero-ticket-rotate: 2.8deg; }
.hero-ticket-slide .hero-ticket-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 144px;
  padding: 12px 24px 13px;
  border-radius: 19px;
  background: rgba(255,252,248,.98);
  box-shadow: 0 18px 42px rgba(50,36,23,.16);
  transform: rotate(var(--hero-ticket-rotate, -1.6deg));
  transform-origin: center;
  transition:
    transform .7s cubic-bezier(.2,.8,.2,1),
    filter .42s ease,
    box-shadow .42s ease,
    opacity .42s ease;
}
.hero-ticket-slide .hero-ticket-card:hover {
  transform: translateY(-4px) rotate(var(--hero-ticket-rotate, -1.6deg));
  box-shadow: 0 24px 48px rgba(50,36,23,.2);
}
.hero-ticket-slide .ticket-topline,
.hero-ticket-slide .ticket-footer {
  font-size: 10px;
  letter-spacing: .11em;
}
.hero-ticket-slide .ticket-main {
  margin: 10px 0 8px;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 12px;
}
.hero-ticket-slide .ticket-index { font-size: 40px; }
.hero-ticket-slide .ticket-main small {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 10px;
}
.hero-ticket-slide .ticket-main h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.28;
}
.hero-ticket-slide .ticket-main p {
  font-size: 11px;
  line-height: 1.4;
}
.hero-ticket-slide .ticket-watermark { opacity: .88; }
.hero-ticket-slide .ticket-perforation { right: 26%; }

.hero-ticket-slot-0 {
  left: -78%;
  top: 88px;
  width: 56%;
  opacity: 0;
  z-index: 1;
}
.hero-ticket-slot-1 {
  left: 29%;
  top: 242px;
  width: 68%;
  z-index: 7;
}
.hero-ticket-slot-2 {
  left: 12%;
  top: 92px;
  width: 61%;
  z-index: 5;
  opacity: .98;
}
.hero-ticket-slot-3 {
  left: 54%;
  top: 38px;
  width: 52%;
  z-index: 4;
  opacity: .94;
}
.hero-ticket-slot-4 {
  left: 112%;
  top: 70px;
  width: 56%;
  opacity: 0;
  z-index: 1;
}
.hero-ticket-slot-2 .hero-ticket-card,
.hero-ticket-slot-3 .hero-ticket-card {
  filter: saturate(.94);
}
.hero-ticket-slot-2 .hero-ticket-card { box-shadow: 0 14px 32px rgba(50,36,23,.12); }
.hero-ticket-slot-3 .hero-ticket-card { box-shadow: 0 12px 26px rgba(50,36,23,.1); }
.hero-ticket-slot-2 .ticket-main {
  grid-template-columns: 44px minmax(0,1fr);
  gap: 10px;
}
.hero-ticket-slot-2 .ticket-index { font-size: 32px; }
.hero-ticket-slot-2 .ticket-main h2 { font-size: 17px; }
.hero-ticket-slot-2 .ticket-main small,
.hero-ticket-slot-2 .ticket-main p,
.hero-ticket-slot-2 .ticket-topline,
.hero-ticket-slot-2 .ticket-footer { font-size: 8.6px; }
.hero-ticket-slot-3 .ticket-main {
  grid-template-columns: 38px minmax(0,1fr);
  gap: 9px;
}
.hero-ticket-slot-3 .ticket-index { font-size: 27px; }
.hero-ticket-slot-3 .ticket-main h2 { font-size: 14px; }
.hero-ticket-slot-3 .ticket-main small,
.hero-ticket-slot-3 .ticket-main p,
.hero-ticket-slot-3 .ticket-topline,
.hero-ticket-slot-3 .ticket-footer { font-size: 7.8px; }

.hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
  left: -78%;
  top: 88px;
  width: 56%;
  opacity: 0;
}
.hero-ticket-stack.is-moving-next .hero-ticket-promote-next {
  left: 29%;
  top: 242px;
  width: 68%;
}
.hero-ticket-stack.is-moving-next .hero-ticket-demote-next {
  left: 12%;
  top: 92px;
  width: 61%;
}
.hero-ticket-stack.is-moving-next .hero-ticket-incoming-next {
  left: 54%;
  top: 38px;
  width: 52%;
  opacity: .94;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
  left: 29%;
  top: 242px;
  width: 68%;
  opacity: 1;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
  left: 12%;
  top: 92px;
  width: 61%;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
  left: 54%;
  top: 38px;
  width: 52%;
  opacity: .94;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
  left: 112%;
  top: 70px;
  width: 56%;
  opacity: 0;
}

.hero-carousel-arrow {
  position: absolute;
  z-index: 14;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(116,91,65,.22);
  border-radius: 50%;
  background: rgba(255,251,245,.98);
  color: #6f523b;
  box-shadow: 0 14px 30px rgba(61,44,28,.12);
  font-size: 38px;
  line-height: .9;
  font-weight: 500;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}
.hero-carousel-next { left: -78px; }
.hero-carousel-previous { right: -78px; }
.hero-carousel-arrow:hover {
  border-color: rgba(143,95,60,.44);
  background: #f3e4d2;
  transform: translateY(-50%) scale(1.05);
}
.hero-carousel-arrow:disabled { opacity: .45; cursor: wait; }

.site-footer {
  padding-top: 46px;
}
.footer-top {
  padding-bottom: 24px;
  grid-template-columns: minmax(240px,.82fr) minmax(0,1.18fr);
  gap: 34px;
  align-items: start;
}
.footer-top h2 {
  margin-top: 14px;
  font-size: clamp(24px,3vw,36px);
  line-height: 1.42;
}
.footer-links {
  grid-template-columns: minmax(118px,150px) minmax(220px,260px) minmax(230px,1fr);
  justify-content: start;
  gap: 24px;
  align-items: start;
}
.footer-social-row {
  margin-top: 8px;
}
.footer-mail-link {
  margin-top: 10px;
}
.footer-metrics {
  min-width: 0;
  gap: 10px !important;
}
.footer-metric {
  grid-template-columns: 74px minmax(0,1fr);
  gap: 12px;
}

@media (max-width: 1120px) {
  .hero-ticket-stage {
    right: 18px;
    width: min(570px,calc(100% - 36px));
    height: 394px;
  }
  .hero-ticket-slot-1 { left: 27%; top: 244px; width: 71%; }
  .hero-ticket-slot-2 { left: 10%; top: 98px; width: 63%; }
  .hero-ticket-slot-3 { left: 55%; top: 42px; width: 53%; }
  .hero-carousel-next { left: -64px; }
  .hero-carousel-previous { right: -64px; }
  .footer-links {
    grid-template-columns: minmax(118px,150px) minmax(200px,1fr);
    gap: 20px 26px;
  }
  .footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .hero-ticket-stage {
    height: 392px;
    width: calc(100% - 18px);
    right: 9px;
    transform: translateY(-47%);
  }
  .hero-carousel-arrow { display: none; }
  .hero-ticket-slide .hero-ticket-card {
    min-height: 108px;
    padding: 9px 14px 10px;
    border-radius: 16px;
  }
  .hero-ticket-slide .ticket-main {
    margin: 7px 0 6px;
    grid-template-columns: 36px minmax(0,1fr);
    gap: 8px;
  }
  .hero-ticket-slide .ticket-index { font-size: 28px; }
  .hero-ticket-slide .ticket-main h2 { font-size: 12px; }
  .hero-ticket-slide .ticket-main small,
  .hero-ticket-slide .ticket-main p,
  .hero-ticket-slide .ticket-topline,
  .hero-ticket-slide .ticket-footer { font-size: 6px; }
  .hero-ticket-slot-0 {
    left: -92%;
    top: 96px;
    width: 74%;
  }
  .hero-ticket-slot-1 {
    left: 18%;
    top: 250px;
    width: 82%;
  }
  .hero-ticket-slot-2 {
    left: 4%;
    top: 110px;
    width: 72%;
  }
  .hero-ticket-slot-3 {
    left: 47%;
    top: 58px;
    width: 59%;
  }
  .hero-ticket-slot-4 {
    left: 108%;
    top: 86px;
    width: 70%;
  }
  .hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
    left: -92%;
    top: 96px;
    width: 74%;
  }
  .hero-ticket-stack.is-moving-next .hero-ticket-promote-next {
    left: 18%;
    top: 250px;
    width: 82%;
  }
  .hero-ticket-stack.is-moving-next .hero-ticket-demote-next {
    left: 4%;
    top: 110px;
    width: 72%;
  }
  .hero-ticket-stack.is-moving-next .hero-ticket-incoming-next {
    left: 47%;
    top: 58px;
    width: 59%;
  }
  .hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
    left: 18%;
    top: 250px;
    width: 82%;
  }
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
    left: 4%;
    top: 110px;
    width: 72%;
  }
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
    left: 47%;
    top: 58px;
    width: 59%;
  }
  .hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
    left: 108%;
    top: 86px;
    width: 70%;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-slide,
  .hero-ticket-slide .hero-ticket-card,
  .hero-carousel-arrow { transition: none !important; }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R8 — visible arrows, steadier 3-ticket hero
   ====================================================================== */
.hero-paper-collage,
.hero-visual {
  overflow: visible;
}
.hero-paper-collage .paper-collage-layer,
.hero-paper-collage .hero-counter-overlay {
  border-radius: 24px;
}
.hero-ticket-stage {
  right: 24px;
  width: calc(100% - 48px);
  height: 410px;
}
.hero-ticket-slide {
  transition:
    left .76s cubic-bezier(.2,.8,.2,1),
    top .76s cubic-bezier(.2,.8,.2,1),
    bottom .76s cubic-bezier(.2,.8,.2,1),
    width .76s cubic-bezier(.2,.8,.2,1),
    opacity .52s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-ticket-slide .hero-ticket-card {
  backface-visibility: hidden;
  transform: translateZ(0) rotate(var(--hero-ticket-rotate, -1.6deg));
  will-change: transform;
}
.hero-ticket-slide .hero-ticket-card:hover {
  transform: translateZ(0) rotate(var(--hero-ticket-rotate, -1.6deg));
  box-shadow: 0 24px 48px rgba(50,36,23,.2);
}
.hero-ticket-slot-1 {
  left: 31%;
  top: 240px;
  width: 66%;
}
.hero-ticket-slot-2 {
  left: 16%;
  top: 86px;
  width: 58%;
}
.hero-ticket-slot-3 {
  left: 60%;
  top: 24px;
  width: 49%;
}
.hero-ticket-slot-4 {
  left: 114%;
  top: 64px;
  width: 54%;
}
.hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
  left: -76%;
  top: 86px;
  width: 58%;
  opacity: 0;
}
.hero-ticket-stack.is-moving-next .hero-ticket-promote-next {
  left: 31%;
  top: 240px;
  width: 66%;
}
.hero-ticket-stack.is-moving-next .hero-ticket-demote-next {
  left: 16%;
  top: 86px;
  width: 58%;
}
.hero-ticket-stack.is-moving-next .hero-ticket-incoming-next {
  left: 60%;
  top: 24px;
  width: 49%;
  opacity: .94;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
  left: 31%;
  top: 240px;
  width: 66%;
  opacity: 1;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
  left: 16%;
  top: 86px;
  width: 58%;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
  left: 60%;
  top: 24px;
  width: 49%;
  opacity: .94;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
  left: 114%;
  top: 64px;
  width: 54%;
  opacity: 0;
}
.hero-ticket-stack.is-moving-next .hero-ticket-card,
.hero-ticket-stack.is-moving-previous .hero-ticket-card {
  pointer-events: none;
}
.hero-carousel-arrow {
  z-index: 20;
}
.hero-carousel-next {
  left: -88px;
}
.hero-carousel-previous {
  right: -88px;
}

@media (max-width: 1120px) {
  .hero-ticket-stage {
    right: 20px;
    width: calc(100% - 40px);
    height: 396px;
  }
  .hero-ticket-slot-1,
  .hero-ticket-stack.is-moving-next .hero-ticket-promote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
    left: 27%;
    top: 236px;
    width: 70%;
  }
  .hero-ticket-slot-2,
  .hero-ticket-stack.is-moving-next .hero-ticket-demote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
    left: 12%;
    top: 92px;
    width: 61%;
  }
  .hero-ticket-slot-3,
  .hero-ticket-stack.is-moving-next .hero-ticket-incoming-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
    left: 57%;
    top: 28px;
    width: 51%;
  }
  .hero-ticket-slot-4,
  .hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
    left: 112%;
    top: 66px;
    width: 56%;
  }
  .hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
    left: -80%;
    top: 92px;
    width: 61%;
  }
  .hero-carousel-next { left: -72px; }
  .hero-carousel-previous { right: -72px; }
}

@media (max-width: 760px) {
  .hero-paper-collage,
  .hero-visual {
    overflow: hidden;
  }
  .hero-ticket-stage {
    height: 390px;
    width: calc(100% - 14px);
    right: 7px;
    transform: translateY(-47%);
  }
  .hero-ticket-slot-0 {
    left: -92%;
    top: 94px;
    width: 72%;
  }
  .hero-ticket-slot-1,
  .hero-ticket-stack.is-moving-next .hero-ticket-promote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
    left: 16%;
    top: 246px;
    width: 84%;
  }
  .hero-ticket-slot-2,
  .hero-ticket-stack.is-moving-next .hero-ticket-demote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
    left: 7%;
    top: 102px;
    width: 70%;
  }
  .hero-ticket-slot-3,
  .hero-ticket-stack.is-moving-next .hero-ticket-incoming-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
    left: 49%;
    top: 46px;
    width: 57%;
  }
  .hero-ticket-slot-4,
  .hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
    left: 108%;
    top: 82px;
    width: 68%;
  }
  .hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
    left: -92%;
    top: 94px;
    width: 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-slide,
  .hero-ticket-slide .hero-ticket-card,
  .hero-carousel-arrow {
    transition: none !important;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R9 — smaller translucent arrows, fixed type scale,
   slower motion, and higher mobile front ticket
   ====================================================================== */
.hero-ticket-slide {
  transition:
    left 1.4s cubic-bezier(.22,.72,.18,1),
    top 1.4s cubic-bezier(.22,.72,.18,1),
    bottom 1.4s cubic-bezier(.22,.72,.18,1),
    width 1.4s cubic-bezier(.22,.72,.18,1),
    opacity .95s ease;
}
.hero-ticket-stack.is-resetting .hero-ticket-slide,
.hero-ticket-stack.is-resetting .hero-ticket-card {
  transition: none !important;
}

/* Keep every visible ticket on one consistent typography scale. */
.hero-ticket-slide .ticket-main {
  margin: 8px 0 7px;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 10px;
}
.hero-ticket-slide .ticket-index {
  font-size: 32px;
}
.hero-ticket-slide .ticket-main h2 {
  margin: 0 0 3px;
  font-size: 17px;
  line-height: 1.28;
}
.hero-ticket-slide .ticket-main small,
.hero-ticket-slide .ticket-main p,
.hero-ticket-slide .ticket-topline,
.hero-ticket-slide .ticket-footer {
  font-size: 8.6px;
}
.hero-ticket-slot-2 .ticket-main,
.hero-ticket-slot-3 .ticket-main {
  grid-template-columns: 44px minmax(0,1fr);
  gap: 10px;
}
.hero-ticket-slot-2 .ticket-index,
.hero-ticket-slot-3 .ticket-index {
  font-size: 32px;
}
.hero-ticket-slot-2 .ticket-main h2,
.hero-ticket-slot-3 .ticket-main h2 {
  font-size: 17px;
}
.hero-ticket-slot-2 .ticket-main small,
.hero-ticket-slot-2 .ticket-main p,
.hero-ticket-slot-2 .ticket-topline,
.hero-ticket-slot-2 .ticket-footer,
.hero-ticket-slot-3 .ticket-main small,
.hero-ticket-slot-3 .ticket-main p,
.hero-ticket-slot-3 .ticket-topline,
.hero-ticket-slot-3 .ticket-footer {
  font-size: 8.6px;
}

/* Arrow controls: half-size, translucent by default, solid on hover. */
.hero-carousel-arrow {
  width: 32px;
  height: 32px;
  border-color: rgba(116,91,65,.2);
  background: rgba(255,251,245,.5);
  color: rgba(111,82,59,.66);
  box-shadow: 0 8px 18px rgba(61,44,28,.08);
  font-size: 20px;
  opacity: .58;
  backdrop-filter: blur(8px);
  transition:
    opacity .24s ease,
    background .24s ease,
    color .24s ease,
    border-color .24s ease,
    box-shadow .24s ease,
    transform .24s ease;
}
.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
  opacity: 1;
  background: rgba(255,251,245,.98);
  color: #6f523b;
  border-color: rgba(143,95,60,.42);
  box-shadow: 0 10px 22px rgba(61,44,28,.14);
  transform: translateY(-50%);
}
.hero-carousel-arrow:disabled {
  opacity: .3;
}
.hero-carousel-next {
  left: -48px;
}
.hero-carousel-previous {
  right: -48px;
}

@media (max-width: 1120px) {
  .hero-carousel-next { left: -42px; }
  .hero-carousel-previous { right: -42px; }
}

@media (max-width: 760px) {
  /* Move the front ticket upward so it overlaps the second ticket slightly. */
  .hero-ticket-slot-1,
  .hero-ticket-stack.is-moving-next .hero-ticket-promote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
    left: 16%;
    top: 198px;
    width: 84%;
  }

  /* Keep mobile ticket typography consistent across all three layers. */
  .hero-ticket-slide .ticket-main,
  .hero-ticket-slot-2 .ticket-main,
  .hero-ticket-slot-3 .ticket-main {
    margin: 6px 0 5px;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 7px;
  }
  .hero-ticket-slide .ticket-index,
  .hero-ticket-slot-2 .ticket-index,
  .hero-ticket-slot-3 .ticket-index {
    font-size: 25px;
  }
  .hero-ticket-slide .ticket-main h2,
  .hero-ticket-slot-2 .ticket-main h2,
  .hero-ticket-slot-3 .ticket-main h2 {
    font-size: 11px;
    line-height: 1.23;
  }
  .hero-ticket-slide .ticket-main small,
  .hero-ticket-slide .ticket-main p,
  .hero-ticket-slide .ticket-topline,
  .hero-ticket-slide .ticket-footer,
  .hero-ticket-slot-2 .ticket-main small,
  .hero-ticket-slot-2 .ticket-main p,
  .hero-ticket-slot-2 .ticket-topline,
  .hero-ticket-slot-2 .ticket-footer,
  .hero-ticket-slot-3 .ticket-main small,
  .hero-ticket-slot-3 .ticket-main p,
  .hero-ticket-slot-3 .ticket-topline,
  .hero-ticket-slot-3 .ticket-footer {
    font-size: 5.8px;
  }
}


/* ======================================================================
   Exhibition Hub V6.5.0-R10 — corrected Threads icon and slow hero intro
   ====================================================================== */

/* Footer social icon: keep all icons optically centered, including Threads. */
.footer-social-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
}
.footer-social-icon[aria-label="Threads"] svg {
  width: 19px;
  height: 19px;
}

/* Hero first-load entrance: three tickets glide in slowly from right to left. */
.hero-ticket-stack.is-entering .hero-ticket-slot-1 {
  animation: ticket-slide-r10-enter 2.45s cubic-bezier(.18,.72,.18,1) both;
}
.hero-ticket-stack.is-entering .hero-ticket-slot-2 {
  animation: ticket-slide-r10-enter 2.45s .22s cubic-bezier(.18,.72,.18,1) both;
}
.hero-ticket-stack.is-entering .hero-ticket-slot-3 {
  animation: ticket-slide-r10-enter 2.45s .44s cubic-bezier(.18,.72,.18,1) both;
}
@keyframes ticket-slide-r10-enter {
  from {
    opacity: 0;
    transform: translateX(138%) rotate(3.2deg);
    filter: blur(2px);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .hero-ticket-stack.is-entering .hero-ticket-slot-1 {
    animation-duration: 2.2s;
  }
  .hero-ticket-stack.is-entering .hero-ticket-slot-2 {
    animation-duration: 2.2s;
    animation-delay: .2s;
  }
  .hero-ticket-stack.is-entering .hero-ticket-slot-3 {
    animation-duration: 2.2s;
    animation-delay: .38s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-stack.is-entering .hero-ticket-slot-1,
  .hero-ticket-stack.is-entering .hero-ticket-slot-2,
  .hero-ticket-stack.is-entering .hero-ticket-slot-3 {
    animation: none !important;
  }
}


/* ======================================================================
   Exhibition Hub V6.5.0-R10.1 — fixed Threads mark and unified hero stamp
   ====================================================================== */

/* Footer: use the official Threads mark reference image, centered like the other icons. */
.footer-social-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.footer-social-icon[aria-label="Threads"] img {
  width: 19px;
  height: 19px;
}

/* Hero: lock the "展" watermark to one constant size in every visible slot.
   This removes the extra shrink/jump after the ticket finishes moving. */
.hero-ticket-slide .ticket-watermark,
.hero-ticket-slot-1 .ticket-watermark,
.hero-ticket-slot-2 .ticket-watermark,
.hero-ticket-slot-3 .ticket-watermark,
.hero-ticket-stack.is-moving-next .ticket-watermark,
.hero-ticket-stack.is-moving-previous .ticket-watermark,
.hero-ticket-stack.is-entering .ticket-watermark {
  width: 72px !important;
  height: 72px !important;
  right: 18px !important;
  top: 34px !important;
  transform: rotate(-11deg) !important;
}
.hero-ticket-slide .ticket-watermark::before,
.hero-ticket-slot-1 .ticket-watermark::before,
.hero-ticket-slot-2 .ticket-watermark::before,
.hero-ticket-slot-3 .ticket-watermark::before {
  inset: 6px;
}
.hero-ticket-slide .ticket-watermark b,
.hero-ticket-slot-1 .ticket-watermark b,
.hero-ticket-slot-2 .ticket-watermark b,
.hero-ticket-slot-3 .ticket-watermark b {
  font-size: 25px !important;
}
.hero-ticket-slide .ticket-watermark i,
.hero-ticket-slot-1 .ticket-watermark i,
.hero-ticket-slot-2 .ticket-watermark i,
.hero-ticket-slot-3 .ticket-watermark i {
  margin-top: 2px;
  font-size: 7px !important;
}

@media (max-width: 760px) {
  .hero-ticket-slide .ticket-watermark,
  .hero-ticket-slot-1 .ticket-watermark,
  .hero-ticket-slot-2 .ticket-watermark,
  .hero-ticket-slot-3 .ticket-watermark,
  .hero-ticket-stack.is-moving-next .ticket-watermark,
  .hero-ticket-stack.is-moving-previous .ticket-watermark,
  .hero-ticket-stack.is-entering .ticket-watermark {
    width: 56px !important;
    height: 56px !important;
    right: 12px !important;
    top: 26px !important;
  }
  .hero-ticket-slide .ticket-watermark b,
  .hero-ticket-slot-1 .ticket-watermark b,
  .hero-ticket-slot-2 .ticket-watermark b,
  .hero-ticket-slot-3 .ticket-watermark b {
    font-size: 20px !important;
  }
  .hero-ticket-slide .ticket-watermark i,
  .hero-ticket-slot-1 .ticket-watermark i,
  .hero-ticket-slot-2 .ticket-watermark i,
  .hero-ticket-slot-3 .ticket-watermark i {
    font-size: 6px !important;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R10.2 — mobile ticket footer + social icon parity
   ====================================================================== */

/* Keep the footer line and barcode visible on every Hero ticket layer. */
@media (max-width: 760px) {
  .hero-ticket-slot-1 .ticket-footer,
  .hero-ticket-slot-2 .ticket-footer,
  .hero-ticket-slot-3 .ticket-footer,
  .hero-ticket-stack.is-moving-next .ticket-footer,
  .hero-ticket-stack.is-moving-previous .ticket-footer,
  .hero-ticket-stack.is-entering .ticket-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
    font-size: 5.8px !important;
    line-height: 1;
    white-space: nowrap;
  }

  .hero-ticket-slot-1 .ticket-footer .barcode,
  .hero-ticket-slot-2 .ticket-footer .barcode,
  .hero-ticket-slot-3 .ticket-footer .barcode {
    display: inline-block !important;
    letter-spacing: .025em;
    white-space: nowrap;
  }
}

/* Match Facebook and Threads to Instagram's optical icon size. */
.footer-social-icon[aria-label="Facebook"] svg,
.footer-social-icon[aria-label="Instagram"] svg,
.footer-social-icon[aria-label="Threads"] img {
  width: 18px !important;
  height: 18px !important;
  display: block;
  flex: 0 0 18px;
  object-fit: contain;
  transform-origin: center;
}

/* Facebook's glyph occupies less of its viewBox; a slight optical correction
   keeps the visible mark equal to the Instagram outline without changing the circle. */
.footer-social-icon[aria-label="Facebook"] svg {
  transform: scale(1.08);
}

.footer-social-icon[aria-label="Instagram"] svg,
.footer-social-icon[aria-label="Threads"] img {
  transform: none;
}

/* Confirmed matrix entries with no current event remain visible but cannot be selected. */
.venue-selector-option.is-unavailable,
.venue-selector-option:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: saturate(.72);
}

.venue-selector-option.is-unavailable:hover,
.venue-selector-option:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ======================================================================
   Exhibition Hub V6.5.0-R10.3 — taxonomy, venue-region and performance fix
   ====================================================================== */

/* Hero performance: animate only compositor-friendly transforms and opacity.
   All visible tickets keep one physical size, so text never resizes mid-motion. */
.hero-ticket-slide {
  left: 0 !important;
  top: 0 !important;
  bottom: auto !important;
  width: 66% !important;
  opacity: var(--hero-opacity, 1) !important;
  z-index: var(--hero-z, 1);
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0);
  transition:
    transform 1.3s cubic-bezier(.22,.72,.18,1),
    opacity .85s ease !important;
  will-change: auto !important;
  backface-visibility: hidden;
  contain: layout style;
}
.hero-ticket-slide .hero-ticket-card {
  width: 100%;
  filter: none !important;
  backface-visibility: hidden;
}
.hero-ticket-stack.is-moving-next .hero-ticket-slide,
.hero-ticket-stack.is-moving-previous .hero-ticket-slide,
.hero-ticket-stack.is-entering .hero-ticket-slide {
  will-change: transform, opacity !important;
}
.hero-ticket-stack.is-resetting .hero-ticket-slide,
.hero-ticket-stack.is-resetting .hero-ticket-card {
  transition: none !important;
}

.hero-ticket-slot-0 {
  --hero-x: -115.15%;
  --hero-y: 86px;
  --hero-opacity: 0;
  --hero-z: 1;
}
.hero-ticket-slot-1 {
  --hero-x: 46.97%;
  --hero-y: 240px;
  --hero-opacity: 1;
  --hero-z: 7;
}
.hero-ticket-slot-2 {
  --hero-x: 24.24%;
  --hero-y: 86px;
  --hero-opacity: .98;
  --hero-z: 5;
}
.hero-ticket-slot-3 {
  --hero-x: 90.91%;
  --hero-y: 24px;
  --hero-opacity: .94;
  --hero-z: 4;
}
.hero-ticket-slot-4 {
  --hero-x: 172.73%;
  --hero-y: 64px;
  --hero-opacity: 0;
  --hero-z: 1;
}

.hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
  --hero-x: -115.15%;
  --hero-y: 86px;
  --hero-opacity: 0;
  --hero-z: 1;
}
.hero-ticket-stack.is-moving-next .hero-ticket-promote-next,
.hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
  --hero-x: 46.97%;
  --hero-y: 240px;
  --hero-opacity: 1;
  --hero-z: 7;
}
.hero-ticket-stack.is-moving-next .hero-ticket-demote-next,
.hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
  --hero-x: 24.24%;
  --hero-y: 86px;
  --hero-opacity: .98;
  --hero-z: 5;
}
.hero-ticket-stack.is-moving-next .hero-ticket-incoming-next,
.hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
  --hero-x: 90.91%;
  --hero-y: 24px;
  --hero-opacity: .94;
  --hero-z: 4;
}
.hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
  --hero-x: 172.73%;
  --hero-y: 64px;
  --hero-opacity: 0;
  --hero-z: 1;
}

/* Replace the earlier blur-based intro with a transform-only entrance. */
.hero-ticket-stack.is-entering .hero-ticket-slot-1,
.hero-ticket-stack.is-entering .hero-ticket-slot-2,
.hero-ticket-stack.is-entering .hero-ticket-slot-3 {
  animation-name: ticket-slide-r103-enter !important;
  animation-duration: 2.15s !important;
  animation-timing-function: cubic-bezier(.18,.72,.18,1) !important;
  animation-fill-mode: both !important;
  filter: none !important;
}
.hero-ticket-stack.is-entering .hero-ticket-slot-1 { animation-delay: 0s !important; }
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation-delay: .16s !important; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-delay: .32s !important; }
@keyframes ticket-slide-r103-enter {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--hero-x) + 155%), var(--hero-y), 0);
  }
  to {
    opacity: var(--hero-opacity, 1);
    transform: translate3d(var(--hero-x), var(--hero-y), 0);
  }
}

/* Arrow blur was repainting during ticket movement. Keep the translucent look
   without a live backdrop-filter. */
.hero-carousel-arrow {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 1120px) and (min-width: 761px) {
  .hero-ticket-slide { width: 70% !important; }
  .hero-ticket-slot-0,
  .hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
    --hero-x: -114.29%; --hero-y: 92px;
  }
  .hero-ticket-slot-1,
  .hero-ticket-stack.is-moving-next .hero-ticket-promote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
    --hero-x: 38.57%; --hero-y: 236px;
  }
  .hero-ticket-slot-2,
  .hero-ticket-stack.is-moving-next .hero-ticket-demote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
    --hero-x: 17.14%; --hero-y: 92px;
  }
  .hero-ticket-slot-3,
  .hero-ticket-stack.is-moving-next .hero-ticket-incoming-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
    --hero-x: 81.43%; --hero-y: 28px;
  }
  .hero-ticket-slot-4,
  .hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
    --hero-x: 160%; --hero-y: 66px;
  }
}

@media (max-width: 760px) {
  .hero-ticket-slide { width: 84% !important; }
  .hero-ticket-slot-0,
  .hero-ticket-stack.is-moving-next .hero-ticket-exit-next {
    --hero-x: -109.52%; --hero-y: 94px;
  }
  .hero-ticket-slot-1,
  .hero-ticket-stack.is-moving-next .hero-ticket-promote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-incoming-previous {
    --hero-x: 19.05%; --hero-y: 198px;
  }
  .hero-ticket-slot-2,
  .hero-ticket-stack.is-moving-next .hero-ticket-demote-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-a {
    --hero-x: 8.33%; --hero-y: 102px;
  }
  .hero-ticket-slot-3,
  .hero-ticket-stack.is-moving-next .hero-ticket-incoming-next,
  .hero-ticket-stack.is-moving-previous .hero-ticket-demote-previous-b {
    --hero-x: 58.33%; --hero-y: 46px;
  }
  .hero-ticket-slot-4,
  .hero-ticket-stack.is-moving-previous .hero-ticket-exit-previous {
    --hero-x: 128.57%; --hero-y: 82px;
  }
  .hero-ticket-stack.is-entering .hero-ticket-slot-1,
  .hero-ticket-stack.is-entering .hero-ticket-slot-2,
  .hero-ticket-stack.is-entering .hero-ticket-slot-3 {
    animation-duration: 1.9s !important;
  }
}

/* Full venue registry entries are visible under their canonical county/city.
   Entries without a current event stay visible but disabled. */
.venue-filter-option.is-unavailable,
.venue-filter-option:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: saturate(.7);
}
.venue-filter-option.is-unavailable:hover,
.venue-filter-option:disabled:hover {
  transform: none;
  box-shadow: none;
}
.venue-filter-option.is-unavailable small {
  min-width: 58px;
  font-size: 10px;
}

/* Reduce off-screen card rendering cost in long result lists. */
.exhibition-card,
.venue-tile,
.nearby-result-card {
  content-visibility: auto;
  contain-intrinsic-size: 430px;
}
.listing-load-more {
  display: block;
  min-width: 220px;
  margin: 34px auto 8px;
  padding: 13px 22px;
  border: 1px solid rgba(117,88,61,.24);
  border-radius: 999px;
  background: rgba(255,251,245,.82);
  color: #6f523b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.listing-load-more:hover {
  transform: translateY(-2px);
  background: #f3e4d2;
  border-color: rgba(117,88,61,.42);
}
.listing-load-more[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-slide,
  .hero-ticket-stack.is-entering .hero-ticket-slide {
    transition: none !important;
    animation: none !important;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R10.4 — curated feed and low-cost rendering
   ====================================================================== */

/* The carousel now animates the whole stack with the Web Animations API.
   Keep individual ticket poses static so old transition layers cannot force
   repeated layout, blur, or width calculations. */
.hero-ticket-stage,
.hero-ticket-stage .hero-ticket-stack {
  contain: layout paint style;
}
.hero-ticket-stage .hero-ticket-stack {
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero-ticket-stage .hero-ticket-slide,
.hero-ticket-stage .hero-ticket-card,
.hero-ticket-stack.is-resetting .hero-ticket-slide,
.hero-ticket-stack.is-resetting .hero-ticket-card {
  transition: none !important;
  filter: none !important;
  backface-visibility: hidden;
}
.hero-ticket-stage .hero-ticket-slide {
  will-change: auto !important;
}
.hero-ticket-stack.is-entering .hero-ticket-slide {
  will-change: transform, opacity !important;
  animation-duration: 1.35s !important;
  filter: none !important;
}
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation-delay: .10s !important; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-delay: .20s !important; }

/* Listing cards use one decoded foreground image. The duplicated blur image is
   reserved for the large detail poster only. */
.exhibition-card .smart-image-frame,
.nearby-result-card .smart-image-frame,
.nearby-mini-card .smart-image-frame,
.venue-tile .smart-image-frame {
  background: linear-gradient(145deg, #ded2c1, #b4aa9c);
  overflow: hidden;
}
.exhibition-card .smart-image-foreground,
.nearby-result-card .smart-image-foreground,
.nearby-mini-card .smart-image-foreground,
.venue-tile .smart-image-foreground {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Prevent old hover layers from causing large repaints while scrolling. */
@media (hover: none), (pointer: coarse) {
  .exhibition-card,
  .venue-tile,
  .favorite-button,
  .hero-ticket-card {
    transition-duration: 0s !important;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R10.5 — per-ticket carousel + scroll performance
   ====================================================================== */

/* Never animate the whole stack. Each ticket changes only transform/opacity. */
.hero-ticket-stage .hero-ticket-stack {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  will-change: auto !important;
}

.hero-ticket-stage .hero-ticket-stack.is-r105-moving .hero-ticket-slide {
  transition:
    transform .92s cubic-bezier(.22,.72,.18,1),
    opacity .70s ease !important;
  will-change: transform, opacity !important;
  pointer-events: none;
}

.hero-ticket-stage .hero-ticket-stack:not(.is-r105-moving) .hero-ticket-slide {
  transition: none !important;
  will-change: auto !important;
}

/* Remove the most expensive live blur layers from elements that stay on screen
   while the page scrolls. Keep the same warm translucent appearance with solid
   alpha backgrounds instead. */
.site-header,
.hero-ticket-stage .hero-ticket-card,
.ticket-card,
.hero-shuffle-button,
.hero-carousel-arrow,
.venue-selector-backdrop,
.mobile-menu-backdrop,
.venue-selector-footer,
.venue-image-label {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.site-header {
  background: rgba(247,245,241,.985) !important;
}

.hero-ticket-stage .hero-ticket-card {
  background: rgba(255,253,249,.99) !important;
  box-shadow: 0 12px 28px rgba(43,31,21,.13) !important;
}

.hero-paper-collage {
  box-shadow: 0 16px 38px rgba(48,38,28,.11) !important;
}

.motion-card,
.reveal-sequence .reveal-item {
  will-change: auto !important;
}

/* Touch devices receive a calmer page outside the requested Hero motion. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .exhibition-card,
  .venue-tile,
  .nearby-result-card,
  .favorite-button {
    box-shadow: none !important;
  }

  .motion-card,
  .reveal-sequence .reveal-item {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .hero-ticket-stage .hero-ticket-stack.is-r105-moving .hero-ticket-slide {
    transition:
      transform .82s cubic-bezier(.22,.72,.18,1),
      opacity .62s ease !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-stage .hero-ticket-stack.is-r105-moving .hero-ticket-slide {
    transition: none !important;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R10.6 — stable Hero hover and touch preview
   ====================================================================== */

/* Older R7 hover rules used a pre-R10 coordinate system. Once R10.3 switched
   ticket positioning to --hero-x / --hero-y, those old hover transforms could
   pull any ticket into the wrong place. Hover, keyboard focus and touch preview
   must preserve the current carousel slot coordinates. */
.hero-ticket-stage .hero-ticket-slide:hover,
.hero-ticket-stage .hero-ticket-slide:focus-within {
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
  opacity: var(--hero-opacity, 1) !important;
  z-index: var(--hero-z, 1) !important;
  box-shadow: none !important;
}

/* Keep the ticket itself visually stable as well. No lift, translation or
   rotation replacement is allowed while the pointer is over the ticket. */
.hero-ticket-stage .hero-ticket-slide:hover .hero-ticket-card,
.hero-ticket-stage .hero-ticket-slide:focus-within .hero-ticket-card,
.hero-ticket-stage .hero-ticket-card:hover,
.hero-ticket-stage .hero-ticket-card.is-touch-preview {
  transform: translateZ(0) rotate(var(--hero-ticket-rotate, -1.6deg)) !important;
  box-shadow: 0 12px 28px rgba(43,31,21,.13) !important;
}

/* Mobile browsers may keep :hover active after a tap. Explicitly lock the
   variable-based slot pose on coarse pointers so the first-tap preview cannot
   reproduce the desktop jump. Swipe navigation remains unchanged. */
@media (hover: none), (pointer: coarse) {
  .hero-ticket-stage .hero-ticket-slide:hover,
  .hero-ticket-stage .hero-ticket-slide:focus-within {
    transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
    opacity: var(--hero-opacity, 1) !important;
    z-index: var(--hero-z, 1) !important;
    box-shadow: none !important;
  }

  .hero-ticket-stage .hero-ticket-card.is-touch-preview,
  .hero-ticket-stage .hero-ticket-card:hover {
    transform: translateZ(0) rotate(var(--hero-ticket-rotate, -1.6deg)) !important;
    box-shadow: 0 12px 28px rgba(43,31,21,.13) !important;
  }
}

/* Exhibition Hub V6.5.0-R10.9 — integrated alignment */
@media (min-width: 1025px) {
  .hero-ticket-stage .hero-ticket-slide { width: min(66%, 860px) !important; }
  .hero-ticket-stage .hero-ticket-slot-1 { --hero-x: 36% !important; --hero-y: 250px !important; }
  .hero-ticket-stage .hero-ticket-slot-2 { --hero-x: 18% !important; --hero-y: 38px !important; }
  .hero-ticket-stage .hero-ticket-slot-3 { --hero-x: 49% !important; --hero-y: 92px !important; }
  .hero-ticket-stage .hero-ticket-slot-4 { --hero-x: 112% !important; }
  .hero-ticket-stage .hero-ticket-slot-0 { --hero-x: -112% !important; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .hero-ticket-stage .hero-ticket-slide { width: min(69%, 760px) !important; }
  .hero-ticket-stage .hero-ticket-slot-1 { --hero-x: 29% !important; }
  .hero-ticket-stage .hero-ticket-slot-2 { --hero-x: 10% !important; }
  .hero-ticket-stage .hero-ticket-slot-3 { --hero-x: 42% !important; }
}
@media (max-width: 760px) {
  #mobileCategorySection, #mobileCalendarSection, #mobileLocationSection { scroll-margin-top: 132px; }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R11.0 — ticket selection and smooth home motion
   ====================================================================== */

.hero-ticket-stage .hero-ticket-slide {
  transition:
    transform .92s cubic-bezier(.22,.72,.18,1),
    opacity .62s ease,
    z-index 0s linear !important;
}

.hero-ticket-stage .hero-ticket-card {
  position: relative;
  isolation: isolate;
  transform-origin: center center;
  transition:
    transform .28s cubic-bezier(.22,.72,.18,1),
    box-shadow .28s ease !important;
}

.hero-ticket-stage .hero-ticket-slide.is-ticket-active,
.hero-ticket-stage .hero-ticket-slide:focus-within {
  z-index: 80 !important;
  opacity: 1 !important;
}

.hero-ticket-stage .hero-ticket-slide.is-ticket-active .hero-ticket-card,
.hero-ticket-stage .hero-ticket-slide:focus-within .hero-ticket-card,
.hero-ticket-stage .hero-ticket-card.is-touch-preview {
  transform: translateZ(0) scale(1.035) rotate(var(--hero-ticket-rotate, -1.6deg)) !important;
  box-shadow: 0 20px 44px rgba(43,31,21,.19) !important;
}

.hero-ticket-stage .hero-ticket-card::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid rgba(180,111,69,0);
  border-radius: inherit;
  pointer-events: none;
}

.hero-ticket-stage .hero-ticket-slide.is-ticket-active .hero-ticket-card::after,
.hero-ticket-stage .hero-ticket-card.is-touch-preview::after {
  animation: hero-ticket-choice-ring .52s ease-out both;
}

@keyframes hero-ticket-choice-ring {
  0% {
    opacity: 0;
    transform: scale(.985);
    border-color: rgba(180,111,69,0);
  }
  42% {
    opacity: .85;
    border-color: rgba(180,111,69,.42);
  }
  100% {
    opacity: 0;
    transform: scale(1.055);
    border-color: rgba(180,111,69,0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-ticket-stage .hero-ticket-slide:hover {
    z-index: 80 !important;
    opacity: 1 !important;
  }

  .hero-ticket-stage .hero-ticket-slide:hover .hero-ticket-card {
    transform: translateZ(0) scale(1.035) rotate(var(--hero-ticket-rotate, -1.6deg)) !important;
    box-shadow: 0 20px 44px rgba(43,31,21,.19) !important;
  }
}

/* Replace long clip-path reveals with compositor-friendly opacity/transform.
   Delays are capped so a long rail never spends several seconds animating. */
[data-motion-group] .motion-card,
.featured-block .motion-card,
.venue-section .motion-card,
[data-reveal-sequence] > .reveal-item,
[data-split-reveal] > *,
[data-fade-reveal] {
  clip-path: none !important;
  filter: none !important;
  opacity: 0;
  transform: translate3d(0, 14px, 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: .48s, .56s !important;
  transition-timing-function: ease, cubic-bezier(.22,.72,.18,1) !important;
  transition-delay: min(
    calc(var(--motion-index, var(--reveal-index, 0)) * 36ms),
    180ms
  ) !important;
  will-change: auto !important;
}

[data-motion-group].is-in-view .motion-card,
.featured-block.is-in-view .motion-card,
.venue-section.is-in-view .motion-card,
[data-reveal-sequence].is-in-view > .reveal-item,
[data-split-reveal].is-in-view > *,
[data-fade-reveal].is-in-view {
  clip-path: none !important;
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
}

[data-motion-group].is-in-view .exhibition-card:hover,
.featured-block.is-in-view .exhibition-card:hover {
  transform: translate3d(0, -4px, 0) !important;
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  [data-motion-group] .motion-card,
  .featured-block .motion-card,
  .venue-section .motion-card,
  [data-reveal-sequence] > .reveal-item,
  [data-split-reveal] > *,
  [data-fade-reveal] {
    transform: translate3d(0, 8px, 0) !important;
    transition-duration: .34s, .4s !important;
    transition-delay: min(
      calc(var(--motion-index, var(--reveal-index, 0)) * 22ms),
      88ms
    ) !important;
  }

  .hero-ticket-stage .hero-ticket-slide.is-ticket-active {
    z-index: 80 !important;
  }

  .hero-ticket-stage .hero-ticket-slide.is-ticket-active .hero-ticket-card,
  .hero-ticket-stage .hero-ticket-card.is-touch-preview {
    transform: translateZ(0) scale(1.025) rotate(var(--hero-ticket-rotate, -1.6deg)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-stage .hero-ticket-card,
  .hero-ticket-stage .hero-ticket-card::after,
  [data-motion-group] .motion-card,
  .featured-block .motion-card,
  .venue-section .motion-card,
  [data-reveal-sequence] > .reveal-item,
  [data-split-reveal] > *,
  [data-fade-reveal] {
    animation: none !important;
    transition: none !important;
  }

  .hero-ticket-stage .hero-ticket-slide.is-ticket-active .hero-ticket-card,
  .hero-ticket-stage .hero-ticket-card.is-touch-preview {
    transform: translateZ(0) scale(1.012) rotate(var(--hero-ticket-rotate, -1.6deg)) !important;
  }
}



/* ======================================================================
   Exhibition Hub V6.5.0-R12 STABLE2 — integrated interaction and motion
   ====================================================================== */

.hero-carousel-arrow {
  transition: transform .22s ease, opacity .22s ease, background-color .22s ease, box-shadow .22s ease !important;
  transform: translate3d(0,0,0);
}
.hero-carousel-arrow:hover:not(:disabled),
.hero-carousel-arrow:focus-visible:not(:disabled) {
  transform: translate3d(0,-2px,0) scale(1.04);
  box-shadow: 0 10px 24px rgba(52,39,27,.16);
}
.hero-carousel-arrow:active:not(:disabled) { transform: translate3d(0,0,0) scale(.97); }
.hero-carousel-arrow:disabled { opacity: .36; cursor: wait; }
.hero-ticket-stage { touch-action: pan-y pinch-zoom; }
.hero-ticket-card { -webkit-tap-highlight-color: transparent; }

.card-price {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Explore cards now enter with the same restrained rhythm as the homepage.
   The delay is capped, so loading dozens of records never creates a long queue. */
.listing-view .exhibition-grid .motion-card {
  opacity: 0;
  transform: translate3d(0,16px,0) !important;
  transition: opacity .42s ease, transform .5s cubic-bezier(.22,.72,.18,1) !important;
  transition-delay: min(calc(var(--motion-index, 0) * 24ms), 168ms) !important;
}
.listing-view .exhibition-grid.is-in-view .motion-card,
.listing-view .exhibition-grid .motion-card.is-in-view {
  opacity: 1;
  transform: translate3d(0,0,0) !important;
}

.venue-selector-backdrop {
  opacity: 0;
  backdrop-filter: none;
  transition: opacity .3s ease;
}
body.venue-selector-open .venue-selector-backdrop { opacity: 1; }
.venue-selector-drawer {
  transition: transform .42s cubic-bezier(.22,.72,.18,1), box-shadow .32s ease !important;
  will-change: transform;
}
.venue-selector-drawer.open { will-change: auto; }
.venue-selector-region,
.venue-selector-option {
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.venue-selector-option:hover:not(:disabled) { transform: translate3d(3px,0,0); }

.home-view:not([hidden]),
.listing-view:not([hidden]) {
  animation: r12-view-enter .36s ease both;
}
@keyframes r12-view-enter {
  from { opacity: .72; transform: translate3d(0,6px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

@media (max-width: 760px) {
  .hero-ticket-stage { touch-action: pan-y pinch-zoom; }
  .hero-ticket-stage .hero-ticket-slide.is-ticket-active .hero-ticket-card,
  .hero-ticket-stage .hero-ticket-card.is-touch-preview {
    transform: translateZ(0) scale(1.022) rotate(var(--hero-ticket-rotate, -1.6deg)) !important;
  }
  .venue-selector-drawer { transition-duration: .36s !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-arrow,
  .listing-view .exhibition-grid .motion-card,
  .venue-selector-backdrop,
  .venue-selector-drawer,
  .venue-selector-region,
  .venue-selector-option,
  .home-view:not([hidden]),
  .listing-view:not([hidden]) {
    animation: none !important;
    transition: none !important;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R12 STABLE2 P1 — inward controls and smooth paint
   ====================================================================== */

/* Keep desktop controls inside the paper collage instead of at the far edges
   of the viewport. The smaller hit circle still remains comfortably clickable. */
@media (min-width: 761px) {
  .hero-visual > .hero-carousel-arrow {
    width: 52px !important;
    height: 52px !important;
    font-size: 32px !important;
    background: rgba(255,251,245,.96) !important;
  }
  .hero-visual > .hero-carousel-next {
    left: clamp(18px, 2vw, 30px) !important;
  }
  .hero-visual > .hero-carousel-previous {
    right: clamp(18px, 2vw, 30px) !important;
  }
}

/* Blur and drop-shadow filters force repeated raster work while the page is
   moving. Preserve depth with opacity and one static shadow instead. */
.hero-ticket-stage .hero-postcard,
.hero-ticket-stage .hero-ticket-card,
.exhibition-card .smart-image-foreground,
.venue-tile .smart-image-foreground,
.nearby-result-card .smart-image-foreground,
.nearby-mini-card .smart-image-foreground {
  filter: none !important;
}

.exhibition-card,
.venue-tile,
.nearby-result-card,
.nearby-mini-card {
  contain: layout paint style;
}

.exhibition-card {
  box-shadow: 0 8px 20px rgba(46,35,24,.085) !important;
  transition: transform .42s cubic-bezier(.2,.72,.2,1), border-color .28s ease !important;
}
.venue-tile {
  box-shadow: 0 8px 20px rgba(38,29,20,.10) !important;
  transition: transform .46s cubic-bezier(.2,.72,.2,1), border-color .3s ease !important;
}
.featured-block.is-in-view .exhibition-card:hover,
[data-motion-group].is-in-view .exhibition-card:hover {
  box-shadow: 0 12px 28px rgba(46,35,24,.13) !important;
}
.venue-section.is-in-view .venue-tile:hover {
  box-shadow: 0 13px 30px rgba(38,29,20,.15) !important;
  transform: translate3d(0,-4px,0) scale(1.012) !important;
}
.venue-section.is-in-view .venue-tile:hover img {
  filter: none !important;
  transform: translateZ(0) scale(1.045) !important;
}

/* Skip layout and paint work for lower homepage sections until they approach
   the viewport. Intrinsic sizes prevent the page from jumping while scrolling. */
.home-view > .featured-block {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}
.home-view > .split-feature {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
.home-view > .nearby-home {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}
.home-view > .venue-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 860px;
}
.venue-selector-region {
  content-visibility: auto;
  contain-intrinsic-size: auto 64px;
}

/* One large view-level transform repaints the whole page. Section reveals are
   enough, so views appear immediately and lower sections animate independently. */
.home-view:not([hidden]),
.listing-view:not([hidden]) {
  animation: none !important;
}

/* Slow the reveal rhythm while keeping it compositor-only. The travel distance
   is shorter than before, producing a softer and more continuous entrance. */
[data-motion-group] .motion-card,
.featured-block .motion-card,
.venue-section .motion-card,
[data-reveal-sequence] > .reveal-item,
[data-split-reveal] > *,
[data-fade-reveal] {
  transform: translate3d(0,10px,0) !important;
  transition-duration: .72s, .82s !important;
  transition-timing-function: ease-out, cubic-bezier(.16,1,.3,1) !important;
  transition-delay: min(
    calc(var(--motion-index, var(--reveal-index, 0)) * 46ms),
    230ms
  ) !important;
}

[data-motion-group].is-in-view .motion-card,
.featured-block.is-in-view .motion-card,
.venue-section.is-in-view .motion-card,
[data-reveal-sequence].is-in-view > .reveal-item,
[data-split-reveal].is-in-view > *,
[data-fade-reveal].is-in-view {
  transform: translate3d(0,0,0) !important;
}

/* The Hero entrance receives the same slower editorial rhythm without blur. */
.hero-ticket-stack.is-entering .hero-ticket-slide {
  animation-duration: 1.65s !important;
  animation-timing-function: cubic-bezier(.16,1,.3,1) !important;
}
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation-delay: .14s !important; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-delay: .28s !important; }

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  [data-motion-group] .motion-card,
  .featured-block .motion-card,
  .venue-section .motion-card,
  [data-reveal-sequence] > .reveal-item,
  [data-split-reveal] > *,
  [data-fade-reveal] {
    transform: translate3d(0,6px,0) !important;
    transition-duration: .54s, .62s !important;
    transition-delay: min(
      calc(var(--motion-index, var(--reveal-index, 0)) * 30ms),
      120ms
    ) !important;
  }

  .exhibition-card,
  .venue-tile,
  .nearby-result-card,
  .nearby-mini-card {
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-view > .featured-block,
  .home-view > .split-feature,
  .home-view > .nearby-home,
  .home-view > .venue-section,
  .venue-selector-region {
    content-visibility: visible;
  }
}

/* ======================================================================
   Exhibition Hub V6.5.0-R12 STABLE2 P2 — responsive routes and calm motion
   ====================================================================== */

/* The P1 controls moved too far into the collage. P2 returns them to the
   outside edge, but keeps them close enough to the paper frame. */
@media (min-width: 761px) {
  .hero-visual > .hero-carousel-arrow {
    width: 42px !important;
    height: 42px !important;
    font-size: 25px !important;
    line-height: 1 !important;
    background: rgba(255,251,245,.97) !important;
    box-shadow: 0 6px 16px rgba(61,44,28,.09) !important;
  }
  .hero-visual > .hero-carousel-next {
    left: clamp(-28px, -1.7vw, -16px) !important;
  }
  .hero-visual > .hero-carousel-previous {
    right: clamp(-28px, -1.7vw, -16px) !important;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .hero-visual > .hero-carousel-next { left: -14px !important; }
  .hero-visual > .hero-carousel-previous { right: -14px !important; }
}

/* Large content-visibility containers caused a full section to materialize in
   one frame on Safari/Chrome. Keep it only on individual result cards. */
.home-view > .featured-block,
.home-view > .split-feature,
.home-view > .nearby-home,
.home-view > .venue-section,
.venue-selector-region {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

/* A visible but unobtrusive route progress line gives the browser one paint
   before the venue result view is created. */
body.is-route-pending {
  cursor: progress;
}
body.is-route-pending::before {
  content: "";
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, #b66f45, #d5aa82, #b66f45);
  animation: r12-p2-route-progress 1.05s cubic-bezier(.2,.7,.2,1) infinite;
  pointer-events: none;
}
@keyframes r12-p2-route-progress {
  0% { transform: scaleX(.08); opacity: .45; }
  55% { transform: scaleX(.72); opacity: 1; }
  100% { transform: scaleX(.96); opacity: .2; }
}

/* Home venue records are built near the viewport rather than during the first
   page paint. The placeholder reserves a stable rail height. */
.venue-grid-loading {
  min-width: min(100%, 420px);
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(119,91,66,.13);
  border-radius: 24px;
  background: rgba(255,251,245,.55);
  color: #8a7663;
}
.venue-grid-loading span {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(182,111,69,.18);
  border-top-color: #b66f45;
  border-radius: 50%;
  animation: r12-p2-spin .85s linear infinite;
}
.venue-grid-loading p { margin: 0; font-size: 12px; letter-spacing: .12em; }
@keyframes r12-p2-spin { to { transform: rotate(360deg); } }

/* A double requestAnimationFrame in app.js guarantees the initial state gets
   painted. These longer timings and wider stagger make the sequence visible
   without blur, clip-path, shadow or filter animation. */
[data-motion-group] .motion-card,
.featured-block .motion-card,
.venue-section .motion-card,
[data-reveal-sequence] > .reveal-item,
[data-split-reveal] > *,
[data-fade-reveal],
.listing-view .exhibition-grid .motion-card {
  opacity: 0 !important;
  transform: translate3d(0, 16px, 0) !important;
  filter: none !important;
  clip-path: none !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.02s, 1.16s !important;
  transition-timing-function: cubic-bezier(.2,.68,.2,1), cubic-bezier(.16,1,.3,1) !important;
  transition-delay: min(calc(var(--motion-index, var(--reveal-index, 0)) * 82ms), 574ms) !important;
}
[data-motion-group].is-in-view .motion-card,
.featured-block.is-in-view .motion-card,
.venue-section.is-in-view .motion-card,
[data-reveal-sequence].is-in-view > .reveal-item,
[data-split-reveal].is-in-view > *,
[data-fade-reveal].is-in-view,
.listing-view .exhibition-grid.is-in-view .motion-card {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}

/* Stop hover transitions and image scaling while a wheel/touch scroll is in
   progress. This prevents the stationary pointer from repainting cards. */
body.is-scrolling .smart-image-foreground,
body.is-scrolling .card-image img,
body.is-scrolling .venue-tile img {
  transition: none !important;
}
body.is-scrolling .exhibition-card:hover,
body.is-scrolling .venue-tile:hover,
body.is-scrolling .featured-block.is-in-view .exhibition-card:hover,
body.is-scrolling .venue-section.is-in-view .venue-tile:hover {
  transform: translate3d(0,0,0) !important;
  box-shadow: 0 8px 20px rgba(46,35,24,.085) !important;
}
body.is-scrolling .venue-tile:hover img,
body.is-scrolling .exhibition-card:hover img {
  transform: translate3d(0,0,0) scale(1) !important;
  filter: none !important;
}

/* Keep each card isolated, but avoid style containment on large parent rails. */
.exhibition-card,
.venue-tile,
.nearby-result-card,
.nearby-mini-card {
  contain: layout paint !important;
}

/* The first result paint is intentionally smaller; subsequent records remain
   available through the existing load-more control. */
.listing-view .exhibition-grid {
  min-height: 280px;
}

.hero-ticket-stack.is-entering .hero-ticket-slide {
  animation-duration: 1.9s !important;
  animation-timing-function: cubic-bezier(.16,1,.3,1) !important;
}
.hero-ticket-stack.is-entering .hero-ticket-slot-2 { animation-delay: .18s !important; }
.hero-ticket-stack.is-entering .hero-ticket-slot-3 { animation-delay: .36s !important; }

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  [data-motion-group] .motion-card,
  .featured-block .motion-card,
  .venue-section .motion-card,
  [data-reveal-sequence] > .reveal-item,
  [data-split-reveal] > *,
  [data-fade-reveal],
  .listing-view .exhibition-grid .motion-card {
    transform: translate3d(0, 11px, 0) !important;
    transition-duration: .82s, .96s !important;
    transition-delay: min(calc(var(--motion-index, var(--reveal-index, 0)) * 62ms), 372ms) !important;
  }
  .venue-grid-loading { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-route-pending::before,
  .venue-grid-loading span {
    animation: none !important;
  }
}


/* ==========================================================================
   Exhibition Hub V6.5.0-R12 STABLE2 P3 — nearby and venue smoothness
   ========================================================================== */

/* P2 disabled the entire card transition while scrolling, which also disabled
   the intended reveal motion. P3 only freezes image hover work; the section
   reveal remains GPU-friendly and visible while the page is moving. */
body.is-scrolling .smart-image-foreground,
body.is-scrolling .card-image img,
body.is-scrolling .venue-tile img {
  transition: none !important;
}

/* Nearby: reveal the copy and three cards independently instead of fading the
   whole large section in one frame. */
.nearby-home[data-section-motion="nearby"] .motion-card {
  opacity: 0 !important;
  transform: translate3d(0, 14px, 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.38s, 1.56s !important;
  transition-timing-function: cubic-bezier(.2,.66,.2,1), cubic-bezier(.16,1,.3,1) !important;
  transition-delay: min(calc(var(--motion-index, 0) * 150ms), 450ms) !important;
}
.nearby-home[data-section-motion="nearby"].is-in-view .motion-card {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}

/* Venue: slower column-by-column movement, no clip/filter/shadow animation. */
.venue-section[data-section-motion="venue"] .motion-card {
  opacity: 0 !important;
  transform: translate3d(0, 15px, 0) !important;
  filter: none !important;
  clip-path: none !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.46s, 1.64s !important;
  transition-timing-function: cubic-bezier(.2,.66,.2,1), cubic-bezier(.16,1,.3,1) !important;
  transition-delay: min(calc(var(--motion-index, 0) * 125ms), 875ms) !important;
}
.venue-section[data-section-motion="venue"].is-in-view .motion-card {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}
.venue-section[data-section-motion="venue"]:not(.is-in-view) .venue-tile img,
.nearby-home[data-section-motion="nearby"]:not(.is-in-view) .smart-image-foreground {
  transition: none !important;
}

/* Paint containment is enough here. Layout containment on every card can make
   Safari perform extra size reconciliation while the horizontal rail appears. */
.nearby-home .nearby-mini-card,
.venue-section .venue-tile {
  contain: paint !important;
  backface-visibility: hidden;
}

/* Static reserve space: avoid an animated spinner competing with scroll and
   section reveal work. */
.venue-grid-loading span {
  animation: none !important;
  border-color: rgba(182,111,69,.22) !important;
  border-top-color: rgba(182,111,69,.52) !important;
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .nearby-home[data-section-motion="nearby"] .motion-card {
    transform: translate3d(0, 10px, 0) !important;
    transition-duration: 1.08s, 1.22s !important;
    transition-delay: min(calc(var(--motion-index, 0) * 110ms), 330ms) !important;
  }
  .venue-section[data-section-motion="venue"] .motion-card {
    transform: translate3d(0, 10px, 0) !important;
    transition-duration: 1.14s, 1.3s !important;
    transition-delay: min(calc(var(--motion-index, 0) * 92ms), 552ms) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nearby-home[data-section-motion="nearby"] .motion-card,
  .venue-section[data-section-motion="venue"] .motion-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Exhibition Hub V6.5.0-R12 STABLE2 P4 — deep first-load and scroll repair
   ========================================================================== */

/* The old intro moved three large tickets from more than one full stage width.
   P4 paints the final geometry first, then reveals each already-laid-out ticket
   with a short compositor-only offset. No keyframe, blur, filter, width, left or
   top animation participates in the first-load sequence. */
.hero-ticket-stack.is-entering .hero-ticket-slide {
  animation: none !important;
}
.hero-ticket-stack.is-intro-pending .hero-ticket-slide {
  opacity: 0 !important;
  transform: translate3d(calc(var(--hero-x, 0%) + 11%), calc(var(--hero-y, 0px) + 8px), 0) !important;
  transition: none !important;
  will-change: auto !important;
}
.hero-ticket-stack.is-intro-playing .hero-ticket-slide {
  opacity: var(--hero-opacity, 1) !important;
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.08s, 1.34s !important;
  transition-timing-function: cubic-bezier(.2,.7,.2,1), cubic-bezier(.16,1,.3,1) !important;
  will-change: transform, opacity !important;
}
.hero-ticket-stack.is-intro-playing .hero-ticket-slot-1 { transition-delay: .04s !important; }
.hero-ticket-stack.is-intro-playing .hero-ticket-slot-2 { transition-delay: .18s !important; }
.hero-ticket-stack.is-intro-playing .hero-ticket-slot-3 { transition-delay: .32s !important; }
.hero-ticket-stack.is-intro-complete .hero-ticket-slide {
  opacity: var(--hero-opacity, 1) !important;
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
  transition: none !important;
  will-change: auto !important;
}
.hero-ticket-stack.is-intro-pending .hero-ticket-card,
.hero-ticket-stack.is-intro-playing .hero-ticket-card {
  filter: none !important;
  box-shadow: 0 10px 24px rgba(43,31,21,.12) !important;
}

/* Home cards are deliberately hydrated off screen after the Hero settles.
   Keeping their content visible prevents Chrome/Safari from materialising a
   whole rail in the exact frame in which the user scrolls into it. Long listing
   pages retain content-visibility on their own cards. */
.home-view .featured-block .exhibition-card,
.home-view .nearby-mini-card,
.home-view .venue-section .venue-tile {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}
.home-view .featured-block .exhibition-card,
.home-view .nearby-mini-card,
.home-view .venue-section .venue-tile {
  contain: paint style !important;
}

/* Stable, non-animated reserve blocks are visible only during the staged home
   hydration. They avoid empty-section collapse without running shimmer loops. */
.home-section-placeholder {
  width: min(100%, 1080px);
  min-height: 330px;
  border: 1px solid rgba(115,88,63,.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(244,237,226,.72), rgba(232,220,204,.42));
}
.home-list-placeholder {
  min-height: 230px;
  border-radius: 18px;
  background: rgba(241,233,222,.48);
}
.home-nearby-placeholder {
  min-height: 360px;
  border-radius: 22px;
  background: rgba(241,233,222,.42);
}

/* Images are decoded one at a time before the section reaches the viewport.
   If a slow remote source finishes later, only the bitmap fades; card geometry
   never changes and no full-section repaint is required. */
.home-view .nearby-mini-card .smart-image-foreground,
.home-view .venue-section .venue-tile > img,
.home-view .featured-block .smart-image-foreground {
  opacity: 0;
  transition: opacity .42s ease !important;
}
.home-view .nearby-mini-card.is-media-ready .smart-image-foreground,
.home-view .nearby-mini-card .smart-image-frame.is-media-ready .smart-image-foreground,
.home-view .venue-section .venue-tile.is-media-ready > img,
.home-view .featured-block .exhibition-card.is-media-ready .smart-image-foreground,
.home-view .featured-block .smart-image-frame.is-media-ready .smart-image-foreground {
  opacity: 1;
}

/* P4 keeps the requested editorial pacing but reduces travel distance. The
   browser now has decoded media and stable card geometry before these run. */
.nearby-home[data-section-motion="nearby"] .motion-card {
  opacity: 0 !important;
  transform: translate3d(0, 8px, 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.55s, 1.75s !important;
  transition-timing-function: cubic-bezier(.2,.68,.2,1), cubic-bezier(.16,1,.3,1) !important;
  transition-delay: min(calc(var(--motion-index, 0) * 180ms), 540ms) !important;
}
.nearby-home[data-section-motion="nearby"].is-in-view .motion-card {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}
.venue-section[data-section-motion="venue"] .motion-card {
  opacity: 0 !important;
  transform: translate3d(0, 8px, 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.5s, 1.7s !important;
  transition-timing-function: cubic-bezier(.2,.68,.2,1), cubic-bezier(.16,1,.3,1) !important;
  transition-delay: min(calc(var(--motion-index, 0) * 95ms), 665ms) !important;
}
.venue-section[data-section-motion="venue"].is-in-view .motion-card {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}

/* Leaflet is no longer part of the homepage critical path. */
.map-runtime-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #746657;
  text-align: center;
  background: linear-gradient(145deg, #eee5d8, #ded3c4);
}
.map-runtime-placeholder span {
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  font-weight: 700;
}
.map-runtime-placeholder small { color: #8c7d6d; }
.map-runtime-placeholder.is-error { background: #eee4d9; }

/* During wheel/touch movement, only hover-only effects are suppressed. Reveal
   opacity and transform transitions continue uninterrupted. */
body.is-scrolling .home-view .featured-block .exhibition-card:hover,
body.is-scrolling .home-view .nearby-mini-card:hover,
body.is-scrolling .home-view .venue-section .venue-tile:hover {
  transform: translate3d(0,0,0) !important;
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .hero-ticket-stack.is-intro-pending .hero-ticket-slide {
    transform: translate3d(calc(var(--hero-x, 0%) + 7%), calc(var(--hero-y, 0px) + 5px), 0) !important;
  }
  .hero-ticket-stack.is-intro-playing .hero-ticket-slide {
    transition-duration: .96s, 1.18s !important;
  }
  .hero-ticket-stack.is-intro-playing .hero-ticket-slot-2 { transition-delay: .13s !important; }
  .hero-ticket-stack.is-intro-playing .hero-ticket-slot-3 { transition-delay: .26s !important; }
  .nearby-home[data-section-motion="nearby"] .motion-card {
    transform: translate3d(0, 6px, 0) !important;
    transition-duration: 1.22s, 1.38s !important;
    transition-delay: min(calc(var(--motion-index, 0) * 130ms), 390ms) !important;
  }
  .venue-section[data-section-motion="venue"] .motion-card {
    transform: translate3d(0, 6px, 0) !important;
    transition-duration: 1.18s, 1.34s !important;
    transition-delay: min(calc(var(--motion-index, 0) * 72ms), 504ms) !important;
  }
  .home-section-placeholder { min-height: 280px; }
  .home-nearby-placeholder { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-stack.is-intro-pending .hero-ticket-slide,
  .hero-ticket-stack.is-intro-playing .hero-ticket-slide,
  .hero-ticket-stack.is-intro-complete .hero-ticket-slide,
  .nearby-home[data-section-motion="nearby"] .motion-card,
  .venue-section[data-section-motion="venue"] .motion-card {
    opacity: 1 !important;
    transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
    animation: none !important;
    transition: none !important;
  }
  .nearby-home[data-section-motion="nearby"] .motion-card,
  .venue-section[data-section-motion="venue"] .motion-card {
    transform: none !important;
  }
}

/* ==========================================================================
   Exhibition Hub V6.5.0-R12 STABLE2 P5-B — restored motion and working rails
   ========================================================================== */

/* Attach the transition while tickets remain in the pending pose; JavaScript
   removes pending on the following painted frame. This guarantees a visible,
   slow right-to-left entrance instead of an instant final render. */
.hero-ticket-stack.is-intro-playing .hero-ticket-slide {
  opacity: var(--hero-opacity, 1) !important;
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.65s, 2.05s !important;
  transition-timing-function: cubic-bezier(.2,.68,.2,1), cubic-bezier(.16,1,.3,1) !important;
  will-change: opacity, transform !important;
}
.hero-ticket-stack.is-intro-playing .hero-ticket-slot-1 { transition-delay: .06s !important; }
.hero-ticket-stack.is-intro-playing .hero-ticket-slot-2 { transition-delay: .34s !important; }
.hero-ticket-stack.is-intro-playing .hero-ticket-slot-3 { transition-delay: .62s !important; }
.hero-ticket-stack.is-intro-pending .hero-ticket-slot-1 {
  opacity: 0 !important;
  transform: translate3d(calc(var(--hero-x, 0%) + clamp(310px, 42vw, 690px)), calc(var(--hero-y, 0px) + 8px), 0) !important;
}
.hero-ticket-stack.is-intro-pending .hero-ticket-slot-2 {
  opacity: 0 !important;
  transform: translate3d(calc(var(--hero-x, 0%) + clamp(270px, 37vw, 610px)), calc(var(--hero-y, 0px) + 6px), 0) !important;
}
.hero-ticket-stack.is-intro-pending .hero-ticket-slot-3 {
  opacity: 0 !important;
  transform: translate3d(calc(var(--hero-x, 0%) + clamp(230px, 32vw, 530px)), calc(var(--hero-y, 0px) + 4px), 0) !important;
}
.hero-ticket-stack.is-intro-complete .hero-ticket-slide {
  opacity: var(--hero-opacity, 1) !important;
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
}

/* Restore the two editorial reveals. Their card DOM now exists immediately;
   images fade independently as they decode rather than holding the whole rail. */
.featured-block .motion-card {
  opacity: 0 !important;
  transform: translate3d(30px, 10px, 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.05s, 1.28s !important;
  transition-timing-function: cubic-bezier(.2,.68,.2,1), cubic-bezier(.16,1,.3,1) !important;
  transition-delay: min(calc(var(--motion-index, 0) * 115ms), 690ms) !important;
}
.featured-block.is-in-view .motion-card {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}
[data-split-reveal] > .time-column {
  opacity: 0 !important;
  transform: translate3d(0, 18px, 0) !important;
  transition-property: opacity, transform !important;
  transition-duration: 1.08s, 1.3s !important;
  transition-timing-function: cubic-bezier(.2,.68,.2,1), cubic-bezier(.16,1,.3,1) !important;
}
[data-split-reveal] > .time-column:nth-child(2) { transition-delay: .22s !important; }
[data-split-reveal].is-in-view > .time-column {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}
.home-view .featured-block .exhibition-card {
  min-height: 100%;
  background: var(--paper, #fffaf4);
}

/* Detail-page recommendation rail: visible controls and actual horizontal
   overflow. The controls share the same visual language as the venue guide. */
.detail-related-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.detail-related-heading h2,
.detail-related-heading .eyebrow { margin-bottom: 0; }
.detail-related-heading .eyebrow { margin-bottom: 12px; }
.detail-related-rail {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, calc((100% - 72px) / 4));
  grid-template-columns: none !important;
  gap: 24px;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.detail-related-rail > * { scroll-snap-align: start; }

/* 36 venues are arranged as three 4x3 pages. Horizontal overflow is required;
   otherwise the buttons have nothing to scroll and appear non-functional. */
#venueGrid.venue-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 20px 24px;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  padding-bottom: 12px;
  scrollbar-width: none;
}
#venueGrid.venue-grid::-webkit-scrollbar { display: none; }
#venueGrid .venue-tile {
  width: auto !important;
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .detail-related-rail { grid-auto-columns: minmax(260px, calc((100% - 24px) / 2)); }
  #venueGrid.venue-grid {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: calc((100% - 18px) / 2);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .hero-ticket-stack.is-intro-playing .hero-ticket-slide {
    transition-duration: 1.3s, 1.58s !important;
  }
  .hero-ticket-stack.is-intro-playing .hero-ticket-slot-2 { transition-delay: .22s !important; }
  .hero-ticket-stack.is-intro-playing .hero-ticket-slot-3 { transition-delay: .44s !important; }
  .hero-ticket-stack.is-intro-pending .hero-ticket-slot-1 {
    transform: translate3d(calc(var(--hero-x, 0%) + 78vw), calc(var(--hero-y, 0px) + 5px), 0) !important;
  }
  .hero-ticket-stack.is-intro-pending .hero-ticket-slot-2 {
    transform: translate3d(calc(var(--hero-x, 0%) + 68vw), calc(var(--hero-y, 0px) + 4px), 0) !important;
  }
  .hero-ticket-stack.is-intro-pending .hero-ticket-slot-3 {
    transform: translate3d(calc(var(--hero-x, 0%) + 58vw), calc(var(--hero-y, 0px) + 3px), 0) !important;
  }
  .featured-block .motion-card {
    transform: translate3d(18px, 7px, 0) !important;
    transition-duration: .88s, 1.05s !important;
    transition-delay: min(calc(var(--motion-index, 0) * 90ms), 450ms) !important;
  }
  [data-split-reveal] > .time-column {
    transform: translate3d(0, 12px, 0) !important;
    transition-duration: .9s, 1.08s !important;
  }
  .detail-related-heading { align-items: center; }
  .detail-related-rail { grid-auto-columns: minmax(82vw, 340px); gap: 16px; }
  #venueGrid.venue-grid {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: 82vw;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-stack.is-intro-pending .hero-ticket-slide,
  .hero-ticket-stack.is-intro-playing .hero-ticket-slide,
  .featured-block .motion-card,
  [data-split-reveal] > .time-column {
    opacity: 1 !important;
    transition: none !important;
  }
  .hero-ticket-stack.is-intro-pending .hero-ticket-slide,
  .hero-ticket-stack.is-intro-playing .hero-ticket-slide {
    transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
  }
  .featured-block .motion-card,
  [data-split-reveal] > .time-column { transform: none !important; }
}


/* Venue taxonomy rail keeps both navigation buttons visible. */
.venue-type-tabs-shell {
  margin: 18px 0 13px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.venue-type-tabs-shell .venue-type-tabs {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.venue-type-tabs-shell .venue-type-tabs::-webkit-scrollbar { display: none; }
.venue-type-tabs-shell .venue-type-tabs button { scroll-snap-align: start; }
.venue-type-scroll-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7c8b7;
  border-radius: 50%;
  background: rgba(255,250,243,.94);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.venue-type-scroll-button:hover {
  border-color: #aa8467;
  background: #fffaf3;
  transform: translateY(-1px);
}
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .venue-type-tabs-shell {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }
  .venue-type-scroll-button { width: 32px; height: 32px; font-size: 15px; }
}


/* ==========================================================================
   Exhibition Hub V6.5.0-R12 STABLE2 P5-B HOTFIX2 — reliable Hero entrance
   ========================================================================== */

/* R10.5 intentionally disables idle slide transitions with a more-specific
   selector. P5-B's earlier intro selector was less specific, so the browser
   kept `transition: none` and jumped directly to the final pose. These rules
   match and supersede that specificity, while keeping the already-calculated
   carousel geometry stable. */
.hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slide {
  transition-property: opacity, transform !important;
  transition-duration: 1.72s, 2.12s !important;
  transition-timing-function: cubic-bezier(.2,.68,.2,1), cubic-bezier(.16,1,.3,1) !important;
  will-change: opacity, transform !important;
}

/* Enter back-to-front, one ticket at a time, so the stack assembles naturally. */
.hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slot-2 { transition-delay: .06s !important; }
.hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slot-3 { transition-delay: .38s !important; }
.hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slot-1 { transition-delay: .70s !important; }

/* While pending and playing coexist, keep each ticket off-screen to the right.
   Removing `is-intro-pending` exposes the final pose and starts the transition. */
.hero-ticket-stage .hero-ticket-stack.is-intro-playing.is-intro-pending .hero-ticket-slot-1 {
  opacity: 0 !important;
  transform: translate3d(calc(var(--hero-x, 0%) + clamp(300px, 40vw, 660px)), calc(var(--hero-y, 0px) + 8px), 0) !important;
}
.hero-ticket-stage .hero-ticket-stack.is-intro-playing.is-intro-pending .hero-ticket-slot-2 {
  opacity: 0 !important;
  transform: translate3d(calc(var(--hero-x, 0%) + clamp(340px, 46vw, 740px)), calc(var(--hero-y, 0px) + 6px), 0) !important;
}
.hero-ticket-stage .hero-ticket-stack.is-intro-playing.is-intro-pending .hero-ticket-slot-3 {
  opacity: 0 !important;
  transform: translate3d(calc(var(--hero-x, 0%) + clamp(320px, 43vw, 700px)), calc(var(--hero-y, 0px) + 4px), 0) !important;
}
.hero-ticket-stage .hero-ticket-stack.is-intro-playing:not(.is-intro-pending) .hero-ticket-slide {
  opacity: var(--hero-opacity, 1) !important;
  transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
}

@media (max-width: 600px) {
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slide {
    transition-duration: 1.34s, 1.68s !important;
  }
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slot-2 { transition-delay: .04s !important; }
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slot-3 { transition-delay: .27s !important; }
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slot-1 { transition-delay: .50s !important; }
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing.is-intro-pending .hero-ticket-slot-1 {
    transform: translate3d(calc(var(--hero-x, 0%) + 76vw), calc(var(--hero-y, 0px) + 5px), 0) !important;
  }
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing.is-intro-pending .hero-ticket-slot-2 {
    transform: translate3d(calc(var(--hero-x, 0%) + 88vw), calc(var(--hero-y, 0px) + 4px), 0) !important;
  }
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing.is-intro-pending .hero-ticket-slot-3 {
    transform: translate3d(calc(var(--hero-x, 0%) + 82vw), calc(var(--hero-y, 0px) + 3px), 0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket-stage .hero-ticket-stack.is-intro-playing .hero-ticket-slide {
    transition: none !important;
    opacity: var(--hero-opacity, 1) !important;
    transform: translate3d(var(--hero-x, 0%), var(--hero-y, 0px), 0) !important;
  }
}

/* S2 approved social discussion rail */
.social-discussions-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,32vw);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 16px;scrollbar-width:thin}.social-discussion-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:18px;min-height:240px;padding:24px;border:1px solid rgba(124,86,53,.2);border-radius:22px;background:#fffaf3}.social-discussion-card>div{display:flex;justify-content:space-between;color:#b66f43;font-size:.78rem;letter-spacing:.08em}.social-discussion-card p{font-family:"Noto Serif TC",serif;font-size:1.18rem;line-height:1.75;margin:0}.social-discussion-card a{color:inherit;text-decoration:none}.social-original-link{margin-top:auto;font-size:.88rem;color:#8b5a3c!important}@media(max-width:760px){.social-discussions-rail{grid-auto-columns:82vw}}

.social-discussion-card time{font-size:.82rem;color:#806f60}

/* C3 reviewed social discovery and discussion index */
.social-discussions-home{margin-top:clamp(28px,4vw,58px);padding-top:clamp(28px,4vw,52px);border-top:1px solid rgba(124,86,53,.16)}
.section-heading-actions{display:flex;align-items:center;gap:18px}.section-heading-actions .text-link{white-space:nowrap}
.social-discussions-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(290px,31vw);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 18px;scrollbar-width:thin;overscroll-behavior-inline:contain}
.social-discussion-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:16px;min-height:260px;padding:24px;border:1px solid rgba(124,86,53,.2);border-radius:24px;background:linear-gradient(145deg,#fffaf3,#f7eee2);box-shadow:0 16px 38px rgba(91,62,39,.07)}
.social-discussion-card.is-compact{min-height:238px}.social-discussion-meta{display:flex;justify-content:space-between;align-items:center;color:#b66f43;font-size:.76rem;letter-spacing:.09em}.social-discussion-meta span{font-weight:700}.social-discussion-card time{font-size:.8rem;color:#806f60}.social-discussion-card>p{font-family:"Noto Serif TC",serif;font-size:1.13rem;line-height:1.72;margin:0;color:#302923}.social-related-event{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding-top:14px;border-top:1px solid rgba(124,86,53,.15);text-decoration:none;color:inherit}.social-related-event small{grid-column:1;color:#9c7354}.social-related-event strong{font-weight:600}.social-related-event span{grid-column:2;grid-row:1/3;align-self:center}.social-original-link{margin-top:auto;font-size:.86rem;color:#8b5a3c!important;text-decoration:none}.social-view-shell{max-width:1440px;margin:0 auto;padding:0 clamp(20px,4vw,64px) 90px}.social-view-toolbar{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:0 0 24px}.social-platform-filters{display:flex;gap:10px;flex-wrap:wrap}.social-platform-filters button{border:1px solid rgba(124,86,53,.24);border-radius:999px;background:#fffaf3;padding:10px 18px;color:#67594e}.social-platform-filters button.active{background:#27231f;color:#fff;border-color:#27231f}.social-view-toolbar select{border:1px solid rgba(124,86,53,.24);border-radius:999px;background:#fffaf3;padding:10px 38px 10px 16px}.social-view-count{color:#7d6f61;margin:0 0 20px}.social-discussion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.social-discussion-grid .social-discussion-card{min-height:300px}.detail-social-discussions{margin-top:70px;padding-top:44px;border-top:1px solid rgba(124,86,53,.18)}.detail-social-rail{grid-auto-columns:minmax(290px,38vw)}
@media(max-width:980px){.social-discussion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-discussions-rail{grid-auto-columns:minmax(290px,58vw)}}
@media(max-width:760px){.social-discussions-home{margin-top:22px}.social-discussions-home .section-heading{align-items:flex-end}.section-heading-actions{gap:10px}.section-heading-actions .text-link{display:none}.social-discussions-rail{grid-auto-columns:84vw}.social-view-toolbar{align-items:stretch;flex-direction:column}.social-platform-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.social-platform-filters button{white-space:nowrap}.social-view-toolbar select{width:100%}.social-discussion-grid{grid-template-columns:1fr}.detail-social-rail{grid-auto-columns:84vw}}

/* Exhibition Hub V6.5.0-R18.6 — mobile discovery polish. */
.listing-inline-search {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  padding: 0 8px 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7c6b4;
  border-radius: 14px;
  background: rgba(255, 252, 247, .88);
}
.listing-inline-search svg {
  width: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
}
.listing-inline-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.listing-inline-search input::placeholder { color: #9a8c7f; }
.listing-inline-search button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #826348;
  color: #fffaf3;
  font-size: 11px;
  white-space: nowrap;
}

/* Leaflet creates high-z-index panes inside the map. Keep those panes below
   the mobile navigation drawer whenever the drawer is open. */
.nearby-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
}
@media (max-width: 900px) {
  .mobile-menu-backdrop { z-index: 3000 !important; }
  .mobile-menu { z-index: 3001 !important; }
  .site-header { z-index: 2998; }
  body.menu-open .nearby-map,
  body.menu-open .nearby-map .leaflet-container,
  body.menu-open .nearby-map .leaflet-control-container {
    z-index: 0 !important;
  }
}

@media (max-width: 760px) {
  .nearby-view-hero {
    padding-inline: clamp(24px, 8vw, 40px) !important;
  }
  .nearby-view-hero > div:first-child {
    width: 100%;
    min-width: 0;
  }
  .nearby-view-hero .eyebrow { margin-bottom: 8px; }
  .nearby-view-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.22;
    overflow-wrap: anywhere;
  }
  .nearby-view-hero p:last-child {
    max-width: 34rem;
    margin-top: 10px;
    line-height: 1.75;
  }
  .nearby-hero-actions { width: 100%; }
  .listing-inline-search {
    min-height: 54px;
    margin-top: 17px;
    border-radius: 15px;
  }
  .listing-inline-search input { font-size: 12px; }
  .listing-inline-search button { min-height: 38px; padding-inline: 13px; }
}

/* Exhibition Hub V6.5.0-R18.7 — reusable nearby-map search pin. */
.nearby-view-hero .nearby-status-text {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
}
.nearby-view-hero .nearby-pin-instructions {
  max-width: 46rem;
  margin: 8px 0 0;
  color: #765f4d;
  font-size: 13px;
  line-height: 1.7;
}
.nearby-pin-control.leaflet-bar {
  width: 34px;
  height: 34px;
  clear: both;
  overflow: visible;
  border: 2px solid rgba(0, 0, 0, .2);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.nearby-pin-control[hidden] { display: none; }
.nearby-pin-control-button {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 3px 6px 4px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: #fff;
  cursor: grab;
  touch-action: none;
}
.nearby-pin-control-button:hover,
.nearby-pin-control-button:focus-visible {
  background: #f4eee6;
  outline: 2px solid #c56538;
  outline-offset: 2px;
}
.nearby-pin-control-button.is-picked {
  background: #f4ddd1;
  cursor: grabbing;
}
.nearby-pin-control-icon,
.nearby-pin-control-icon svg {
  width: 18px;
  height: 23px;
  display: block;
}
.nearby-pin-drag-ghost {
  position: fixed;
  z-index: 10000;
  width: 30px;
  height: 38px;
  pointer-events: none;
  transform: translate(-50%, -100%);
  filter: none;
}
.nearby-pin-drag-ghost svg { width: 100%; height: 100%; display: block; }
.nearby-map.is-pin-placement-armed,
.nearby-map.is-pin-placement-armed .leaflet-grab,
.nearby-map.is-pin-placement-armed .leaflet-interactive { cursor: crosshair; }

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .nearby-pin-control.leaflet-bar { width: 44px; height: 44px; }
  .nearby-pin-control-button { width: 40px; height: 40px; padding: 7px 10px; }
  .nearby-pin-control-icon,
  .nearby-pin-control-icon svg { width: 20px; height: 26px; }
  .nearby-view-hero .nearby-pin-instructions { font-size: 12px; }
}

/* The movable/search pin follows the supplied flat yellow-and-lavender artwork. */
.nearby-map-pin-origin .nearby-map-pin-shell,
.nearby-map-pin-origin.is-picked .nearby-map-pin-shell {
  filter: none;
}
