/* rolepoahoje — shared interface tokens */
:root {
  --paper: #f7f6f2;
  --white: #fff;
  --ink: #252f29;
  --muted: #626c64;
  --line: #dfe4db;
  --orange: #c83f25;
  --orange-tint: #fcf0ea;
  --green: #345741;
  --green-dark: #254331;
  --tint: #edf2e9;
  --hover: #f4f7ef;
  --warning: #805c20;
  --logo-dark: #26372d;
  --radius: 12px;
  --sans: 'DM Sans', sans-serif;
  --display: 'Syne', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button, a, input, select, summary { transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .5; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; padding: 12px 18px; background: var(--green); color: white; z-index: 200; }
.skip:focus { top: 12px; }
.mobile-only { display: none; }

/* Primary navigation */
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1480px; padding: 0 40px; margin: auto; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font: 800 29px var(--display); letter-spacing: -1.8px; white-space: nowrap; }
.logo span, .logo i { color: var(--orange); }
.logo i { display: inline-block; margin-left: 4px; font-style: normal; transition: transform .25s; }
.logo:hover i { transform: rotate(90deg); }
nav { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #eeeee7; }
nav a { min-height: 42px; padding: 9px 18px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; }
nav a.active { background: var(--white); color: var(--green); box-shadow: 0 1px 5px #26392a12; }
nav a:hover { background: var(--white); color: var(--green-dark); }
nav a.active:hover { background: var(--tint); }
nav svg { width: 18px; height: 18px; }
#savedCount { font-size: 11px; min-width: 21px; text-align: center; padding: 1px 6px; border-radius: 5px; background: #dfe7d8; color: var(--green); }
.location { font-size: 12px; color: var(--muted); }
main { max-width: 1480px; padding: 34px 40px 60px; margin: auto; min-height: 70vh; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
h1 { font: 700 clamp(28px, 2.6vw, 38px)/1.2 var(--display); letter-spacing: -1.3px; margin: 0 0 10px; }
h1 span { color: var(--orange); }
.page-intro p:not(.eyebrow), .lead { color: var(--muted); font-size: 15px; margin: 0; }
.date-badge { display: flex; align-items: center; gap: 15px; border-left: 1px solid var(--line); padding-left: 24px; flex-shrink: 0; }
.date-badge b { font: 600 50px/1 var(--display); letter-spacing: -2px; }
.date-badge span { max-width: 140px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.date-navigation { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.control-label { display: block; margin-bottom: 7px; font-size: 12px; color: var(--muted); font-weight: 600; }
.date-controls { display: flex; align-items: center; gap: 7px; }
.date-controls button, .date-controls input { min-height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 8px 13px; }
.date-controls button { min-width: 44px; font-size: 18px; }
.date-controls input { min-width: 158px; font-size: 14px; font-weight: 600; }
.date-controls button:hover:not(:disabled) { background: var(--tint); border-color: #9eaf96; }
.date-controls #todayButton { color: var(--green); font-size: 13px; font-weight: 600; }
#dateAvailability { color: var(--muted); font-size: 12px; text-align: right; max-width: 530px; overflow-wrap: anywhere; }
.edition { display: flex; align-items: center; gap: 14px; padding: 0 0 17px; color: var(--muted); font-size: 13px; }
.edition strong { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.edition-right { margin-left: auto; font-size: 12px; }

/* Search, category tabs and filters */
.explorer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px #26392a04; }
.explorer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--paper); }
.tabs button { font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 16px; border-radius: 7px; white-space: nowrap; }
.tabs button:hover { background: #e2eadb; }
.tabs .active { background: var(--green); color: white; }
.tabs .active:hover { background: var(--green-dark); }
.tabs button span { display: inline-block; padding: 1px 5px; margin-left: 6px; border-radius: 4px; font-size: 11px; background: #dce4d3; color: var(--green); }
.tabs .active span { color: white; background: #ffffff26; }
.search { display: flex; align-items: center; gap: 10px; width: min(390px, 46%); min-height: 46px; padding: 10px 13px; border: 1px solid #ccd5c7; border-radius: 8px; background: var(--white); color: var(--muted); }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #34574115; }
.search input { background: none; border: 0; width: 100%; min-width: 0; padding: 0; font-size: 14px; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search>span { font-size: 24px; line-height: 1; }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; padding: 18px 20px 16px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
select { max-width: 100%; min-width: 0; height: 44px; padding: 9px 28px 9px 11px; border: 1px solid #cfd7ca; border-radius: 7px; background: var(--white); font-size: 13px; cursor: pointer; }
select:hover { border-color: #92a487; background-color: #fafcf7; }
.filters select { color: var(--ink); font-weight: 400; width: 100%; }
.filters select.has-value { border-color: var(--green); color: var(--green-dark); background: var(--tint); font-weight: 500; }
.filter-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 20px 16px; }
.favorite-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--green); font-size: 13px; cursor: pointer; }
.favorite-filter:hover { background: var(--hover); border-color: #9eaf96; }
.favorite-filter:has(input:checked) { background: var(--tint); border-color: var(--green); }
.favorite-filter input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.favorite-filter span { color: var(--muted); }
.filter-hint { font-size: 12px; color: var(--muted); }
.reset { min-height: 44px; margin-left: auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.reset span { margin-left: 6px; }
.reset:hover:not(:disabled) { color: var(--orange); border-color: var(--orange); background: var(--orange-tint); }
.filter-toggle { display: none; }
.compact-filter-apply, .compact-genre, .compact-district, .venue-directions { display: none; }
.venue-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-left: auto; }
.venue-hero-actions .favorite-large { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fafbf7; border-radius: 0 0 var(--radius) var(--radius); }
.filter-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 11px; border: 1px solid #cbd8c1; border-radius: 6px; color: var(--green-dark); background: var(--tint); font-size: 12px; overflow-wrap: anywhere; text-align: left; }
.filter-chip span { font-size: 19px; line-height: 1; }
.filter-chip:hover { background: #dce8d3; border-color: var(--green); }

/* Agenda: clear reading order, restrained density */
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0 14px; }
.result-bar p { margin: 0; font-size: 14px; color: var(--muted); }
.result-bar b { color: var(--ink); font-weight: 700; }
.result-hint { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.sort-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sort-control select { background: transparent; border-color: transparent; color: var(--ink); font-size: 13px; }
.sort-control select:hover { background: var(--white); border-color: var(--line); }
.table-wrap { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
thead { background: #eaf0e3; }
th { text-align: left; padding: 0; font-size: 12px; font-weight: 600; color: #4e6048; border-bottom: 1px solid #cfdbc5; }
th button { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; min-height: 48px; padding: 12px 14px; text-align: left; font: inherit; }
th button:hover { background: #dce8d1; }
th[aria-sort] { color: var(--green-dark); }
th[aria-sort] button { font-weight: 700; }
th:nth-child(1) { width: 9%; }
th:nth-child(2) { width: 24%; }
th:nth-child(3) { width: 22%; }
th:nth-child(4) { width: 13%; }
th:nth-child(5) { width: 10%; }
th:nth-child(6) { width: 16%; }
th:nth-child(7) { width: 6%; }
td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
td:last-child { padding-inline: 6px; text-align: center; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .16s; }
tbody tr[data-event-row] { cursor: pointer; }
tbody tr:hover, tbody tr:focus-within { background: var(--hover); }
.time-main { font-size: 21px; font-weight: 700; letter-spacing: -.6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.time-label { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.event-title { display: inline-block; min-height: 28px; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: left; text-wrap: pretty; }
.event-title:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.event-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.event-sub span { color: var(--warning); }
.listing-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.listing-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--green); }
.listing-link svg { width: 16px; height: 16px; }
.listing-link:hover { color: var(--green-dark); border-color: var(--green); background: var(--tint); }
.listing-ticket { color: var(--orange); background: var(--orange-tint); border-color: var(--orange-tint); }
.listing-ticket:hover { color: var(--orange); border-color: var(--orange); background: var(--orange-tint); }
.listing-more { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.venue-link { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.venue-link:hover { color: var(--orange); }
.venue-link:hover .venue-name { text-decoration: underline; text-underline-offset: 3px; }
.venue-copy { flex: 1; min-width: 0; }
.venue-name { display: block; }
.venue-cell .agenda-logo { width: 52px; height: 52px; flex-basis: 52px; }
.venue-cell .venue-logo { padding: 3px; }
.agenda-logo { position: relative; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); color: var(--green); overflow: hidden; font: 700 21px var(--display); }
.venue-logo, .place-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: var(--white); opacity: 0; }
.venue-logo.loaded, .place-logo.loaded { opacity: 1; }
/* Supplied reverse logos need a dark surface to remain legible. */
:is(.venue-logo,.place-logo):is([src$="local_009.png"],[src$="local_020.svg"],[src$="local_022.svg"],[src$="local_024.png"],[src$="local_036.png"],[src$="local_044.png"],[src$="local_047.png"],[src$="local_060.svg"],[src$="local_061.svg"],[src$="local_062.png"],[src$="local_063.png"],[src$="local_101.png"],[src$="local_110.png"],[src$="local_113.png"],[src$="local_115.png"]) { background: var(--logo-dark); }
.small-line { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.venue-copy .small-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-weight: 400; line-height: 1.45; }
.genre-tag { color: #52634a; font-size: 12px; line-height: 1.7; }
.missing { color: var(--muted); font-size: 12px; white-space: normal; }
.time-main.missing { display: block; font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.price-value { display: inline-block; font-size: 14px; font-weight: 700; line-height: 1.5; }
.price-value.free { padding: 3px 8px; border-radius: 5px; color: var(--green); background: #e8f1df; }
.price-value.conditional { color: var(--warning); }
.price-conditions { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.price-more { display: block; padding: 5px 0; min-height: 32px; color: var(--green); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.price-more:hover { color: var(--orange); }
.save { width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #697962; font-size: 25px; line-height: 1; }
.save:hover { background: var(--orange-tint); color: var(--orange); border-color: #e9c9bc; }
.save[aria-pressed=true] { color: var(--orange); background: var(--orange-tint); }
#empty { text-align: center; padding: 50px 24px; }
#empty>span { font-size: 36px; color: var(--muted); }
#empty h2 { font: 700 22px var(--display); margin: 12px 0; }
#empty p { color: var(--muted); font-size: 14px; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border-radius: 7px; color: white; background: var(--green); font-size: 14px; font-weight: 600; }
.primary:hover { background: var(--green-dark); }
.secondary { min-height: 44px; border: 1px solid #bccbb3; border-radius: 7px; padding: 10px 15px; font-size: 14px; }
.secondary:hover { background: var(--tint); border-color: var(--green); }
.text-link { color: var(--green); font-size: 14px; font-weight: 600; padding: 0; }
.text-link:hover { color: var(--orange); text-decoration: underline; }
.data-note { margin: 28px 0; padding: 2px 0 2px 16px; border-left: 2px solid #a9b79d; color: var(--muted); font-size: 13px; }
.data-note b { color: var(--ink); }
.data-note p { margin: 6px 0; line-height: 1.7; max-width: 960px; }
.data-note summary { padding: 8px 0; cursor: pointer; color: var(--green); }
.cautions { padding: 20px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cautions summary { cursor: pointer; }
.cautions summary>span { float: right; color: var(--muted); font-size: 12px; }
#cautionRows article { padding: 18px 0; border-bottom: 1px solid var(--line); }
#cautionRows article>span { margin-left: 15px; color: var(--warning); font-size: 12px; }
.cautions p { color: var(--muted); font-size: 13px; }
.cautions a { text-decoration: underline; }

/* Places and venue pages */
.places-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 22px; color: var(--muted); font-size: 14px; }
.places-tools p { margin: 0; }
.place-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.place-card { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.place-card:hover, .place-card:focus-within { border-color: #9aaf8b; background: #fcfdf9; box-shadow: 0 4px 15px #26392a08; }
.place-mark { position: relative; display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.place-initial { display: grid; place-items: center; width: 100%; height: 100%; color: var(--green); font: 700 26px var(--display); }
.place-copy { flex: 1; min-width: 0; }
.place-card h2 { font-size: 16px; line-height: 1.4; margin: 0 0 5px; }
.place-card h2 a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.place-card p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.place-card small { color: var(--green); font-size: 12px; }
.place-save { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--green); font-size: 25px; }
.place-save:hover { border-color: var(--green); background: var(--tint); }
.place-save[aria-pressed=true] { color: var(--green-dark); background: #e2edcf; border-color: #789164; }
.favorite-large { margin-left: auto; padding: 10px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--orange); }
.venue-hero { display: flex; align-items: center; gap: 24px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.venue-monogram { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 96px; height: 96px; background: var(--tint); color: var(--green); border-radius: 12px; overflow: hidden; font: 700 50px var(--display); }
.venue-monogram .venue-logo { padding: 8px; }
.venue-hero h1 { font-size: 36px; }
.venue-hero p { color: var(--muted); font-size: 14px; margin: 0; }
.venue-description { max-width: 650px; line-height: 1.7; margin-top: 10px !important; }
.separator { margin: 0 9px; color: #a5b29a; }
.venue-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 32px; align-items: start; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading h2 { font: 700 24px var(--display); letter-spacing: -.7px; margin: 0; }
.section-heading span { color: var(--muted); font-size: 13px; }
.venue-event { display: flex; align-items: flex-start; gap: 20px; padding: 24px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.event-date { display: flex; flex-direction: column; text-align: center; padding-right: 18px; border-right: 1px solid var(--line); }
.event-date b { font: 600 30px var(--display); }
.event-date span, .event-date small { color: var(--muted); font-size: 12px; }
.venue-event-body { flex: 1; min-width: 0; }
.venue-event-body small { color: var(--green); font-size: 12px; }
.venue-event h3 { margin: 7px 0 12px; font-size: 20px; line-height: 1.4; }
.venue-event h3 button { font: inherit; text-align: left; padding: 0; }
.venue-event h3 button:hover { color: var(--orange); }
.venue-event p { font-size: 14px; color: var(--muted); margin: 8px 0; }
.venue-event .price-detail { color: var(--ink); }
.venue-event .event-note { font-size: 13px; }
.event-links { display: flex; gap: 12px 20px; flex-wrap: wrap; margin-top: 18px; color: var(--green); font-size: 13px; }
.event-links a, .event-links button { font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
.event-links a:hover { color: var(--orange); text-decoration: underline; }
.ticket-link { font-weight: 700; }
.venue-info { background: #eaf0e2; border: 1px solid #dae3d1; border-radius: 10px; padding: 26px; }
.venue-info h2 { font: 700 25px var(--display); letter-spacing: -.7px; margin: 0 0 18px; }
.venue-info p { font-size: 14px; line-height: 1.8; }
.venue-info hr { border: 0; border-top: 1px solid #cbd7c1; margin: 24px 0; }
.venue-info h3 { font-size: 15px; }
.venue-info .text-link { display: inline-block; margin-top: 12px; }
.venue-info .primary { margin-top: 10px; }
.venue-social { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; color: var(--green); font-size: 14px; font-weight: 600; }
.venue-social a { padding: 5px 0; }
.venue-social a:hover { color: var(--orange); text-decoration: underline; }
.muted { color: var(--muted); }
.venue-notice, .no-program { padding: 20px; border: 1px solid #e1d2b6; border-radius: 8px; color: var(--warning); background: #fcf4e5; font-size: 14px; }
.no-program h3 { color: var(--ink); margin: 0; }
.no-program p { margin-bottom: 0; }
.event-status { display: inline-flex; margin: 6px 0; padding: 3px 8px; border-radius: 5px; color: var(--green); background: var(--tint); font-size: 12px; font-weight: 600; }
.event-status.a_confirmar { background: #fff0cf; color: #735209; }
.event-status.esgotado, .event-status.cancelado { background: #f8e5df; color: #8c3c2d; }
.venue-event-body>.event-status { margin-left: 8px; }
.venue-event:has(.event-status.esgotado), .venue-event:has(.event-status.a_confirmar) { background: #fcf9f2; }

/* Event details and feedback */
dialog { width: min(660px,calc(100% - 32px)); max-height: 90vh; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px #16251d44; }
dialog::backdrop { background: #23372c88; backdrop-filter: blur(4px); }
.close { position: sticky; top: 0; display: flex; align-items: center; justify-content: center; z-index: 2; margin: -10px -8px -32px auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); box-shadow: 0 2px 8px #26392a12; font-size: 28px; line-height: 1; }
.close:hover { background: #e4e9df; }
dialog h2 { font: 700 28px/1.25 var(--display); letter-spacing: -.6px; margin: 12px 20px 16px 0; }
.detail-place { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 15px; font-weight: 600; }
.detail-place:hover { color: var(--orange); }
.schedule-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 18px 0; margin: 24px 0; border-block: 1px solid var(--line); }
.schedule-strip span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.schedule-strip b { font-size: 15px; }
dialog dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 0 0 22px; margin: 24px 0; border-bottom: 1px solid var(--line); }
dialog dt { color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 6px; }
dialog dd { margin: 0; font-size: 14px; line-height: 1.7; }
.full-conditions { margin: 8px 0 0; }
.detail-notes { font-size: 14px; line-height: 1.8; color: var(--muted); }
.detail-notes h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.detail-notes p { margin: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-resources { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
dl+.detail-resources { margin-top: 0; padding-top: 0; border-top: 0; }
.resource-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.resource-heading h3 { margin: 0; font: 700 20px/1.3 var(--display); letter-spacing: -.4px; scroll-margin-top: 56px; }
.resource-heading>span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.resource-heading>span svg { width: 12px; height: 12px; }
.resource-group+.resource-group { margin-top: 18px; }
.resource-group h4 { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.resource-group h4 span { font-weight: 400; }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.resource-card { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.resource-card:only-child { grid-column: 1/-1; }
.resource-card:hover { border-color: var(--green); background: var(--hover); box-shadow: 0 3px 12px #26372d0a; }
.resource-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--green); }
.resource-copy { min-width: 0; flex: 1; }
.resource-copy strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.resource-copy small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.resource-arrow { color: var(--muted); flex: 0 0 14px; }
.resource-arrow svg { display: block; width: 14px; height: 14px; }
.resource-ticket { grid-column: 1/-1; border-color: var(--green); background: var(--green); color: var(--white); }
.resource-ticket:hover { background: var(--green-dark); border-color: var(--green-dark); }
.resource-ticket .resource-icon { background: #ffffff1a; color: var(--white); }
.resource-ticket :is(small,.resource-arrow) { color: var(--white); }
.resource-instagram { color: var(--orange); background: var(--orange-tint); }
.source-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 14px; }
.status-notice { background: #fff1d7; border-radius: 8px; padding: 14px; font-size: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,15px); z-index: 100; max-width: 90vw; padding: 13px 20px; border-radius: 8px; background: var(--ink); color: white; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
footer { max-width: 1400px; margin: auto; border-top: 1px solid var(--line); padding: 26px 0 34px; display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--muted); }
footer .logo { font-size: 24px; }
footer>span { margin-left: auto; font-size: 12px; }

@media (max-width: 1200px) {
  main, .header-inner { padding-inline: 28px; }
  footer { margin-inline: 28px; }
  .location { display: none; }
  .filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filter-hint { display: none; }
  .place-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .venue-layout { gap: 22px; }
}

/* Tablet keeps the table readable without a horizontal scroll. */
@media (max-width: 1100px) {
  header { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); }
  .header-inner { min-height: 72px; padding-inline: 24px; }
  nav a { min-height: 44px; }
  main { padding: 28px 24px 48px; }
  .page-intro { margin-bottom: 22px; }
  .page-intro h1 { font-size: 32px; }
  .page-intro .date-badge { display: none; }
  .date-navigation { gap: 16px; }
  #dateAvailability { max-width: 320px; }
  .edition { flex-wrap: wrap; gap: 8px 12px; }
  .explorer-top { padding: 14px 16px; gap: 16px; border-bottom: 0; }
  .tabs button { min-height: 44px; padding-inline: 13px; }
  .search { min-height: 46px; }
  .search input, select { font-size: 16px; }
  .filter-toggle { display: flex; align-items: center; gap: 9px; width: calc(100% - 32px); min-height: 44px; margin: 0 16px 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--green); font-size: 14px; font-weight: 600; text-align: left; }
  .filter-toggle:hover { background: var(--tint); }
  .filter-chevron { margin-left: auto; font-size: 20px; }
  .filter-toggle[aria-expanded=true] .filter-chevron { transform: rotate(180deg); }
  .filter-fields:not(.is-open) { display: none; }
  .filters { padding: 0 16px 16px; gap: 14px 12px; }
  .filter-bottom { padding: 0 16px 16px; }
  .compact-filter-apply { display: inline-flex; min-width: 150px; font-size: 14px; }
  .active-filters { padding: 12px 16px; }
  .filter-chip { min-height: 44px; }
  .result-bar { gap: 12px; }
  #resultCount { scroll-margin-top: 96px; }
  #main { scroll-margin-top: 88px; }
  .sort-control select { min-height: 44px; height: 44px; padding: 8px 10px; background: var(--white); border-color: var(--line); font-size: 14px; }
  .table-wrap table { min-width: 0; }
  th:nth-child(1) { width: 11%; }
  th:nth-child(2) { width: 30%; }
  th:nth-child(3) { width: 29%; }
  th:nth-child(6) { width: 22%; }
  th:nth-child(7) { width: 8%; }
  th:nth-child(4), th:nth-child(5), #rows td:nth-child(4), #rows td:nth-child(5) { display: none; }
  th button { padding-inline: 9px; }
  td { padding: 15px 9px; }
  td:last-child { padding-inline: 5px; }
  .time-main { font-size: 20px; }
  .compact-genre { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: #52634a; }
  .compact-district { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; font-weight: 400; color: var(--muted); }
  .venue-link { gap: 9px; }
  .price-more { min-height: 44px; }
  .places-tools { gap: 12px; }
  .places-tools .search { width: 100%; }
  .place-card { padding: 18px; gap: 12px; }
  .venue-directions { display: inline-flex; align-items: center; justify-content: center; }
  #venueInfo { scroll-margin-top: 92px; }
  dialog { overscroll-behavior: contain; }
  #detailContent>.eyebrow { padding-right: 44px; }
  .venue-social a, .event-links a, .event-links button { min-height: 44px; }
  .listing-link { width: 44px; height: 44px; }
}
@media (max-width: 1000px) {
  .venue-layout { grid-template-columns: 1fr; }
  .venue-hero { flex-wrap: wrap; }
  .venue-hero>div:nth-child(2) { flex: 1; min-width: 0; }
  .venue-hero-actions { flex: 1 1 100%; margin: 0; }
  .venue-info { max-width: none; }
}

/* Phone: compact heading, complete event rows and reachable navigation. */
@media (max-width: 760px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  header { position: static; }
  .header-inner { min-height: 64px; padding: 12px 16px; gap: 12px; }
  .header-inner>.logo { font-size: 25px; }
  .location { display: block; font-size: 11px; white-space: nowrap; }
  nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; width: 100%; gap: 5px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #f7f6f2f5; backdrop-filter: blur(12px); box-shadow: 0 -4px 18px #26392a08; }
  nav { padding-left: max(12px,env(safe-area-inset-left)); padding-right: max(12px,env(safe-area-inset-right)); }
  nav a { flex: 1; gap: 7px; min-height: 44px; padding: 8px 6px; font-size: 14px; }
  nav svg { width: 18px; height: 18px; }
  main { padding: 22px max(16px,env(safe-area-inset-right)) 34px max(16px,env(safe-area-inset-left)); }
  .page-intro { margin-bottom: 20px; }
  .page-intro .eyebrow, #agendaLead { display: none; }
  .page-intro h1 { margin: 0; }
  .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
  h1, .page-intro h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.9px; }
  .page-intro p:not(.eyebrow), .lead { font-size: 14px; line-height: 1.6; }
  .date-navigation { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
  .date-controls { gap: 6px; }
  .date-controls input { flex: 1; width: 140px; min-width: 0; padding-inline: 8px; font-size: 16px; }
  .date-controls button { padding-inline: 11px; }
  #dateAvailability { max-width: none; font-size: 11px; text-align: left; }
  .edition { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 14px; font-size: 12px; }
  .edition-right, .edition strong { display: none; }
  .explorer { position: relative; }
  .explorer-top { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .explorer-top>.search { order: -1; width: calc(100% - 104px); }
  .search { width: 100%; }
  .search input { font-size: 16px; }
  .tabs button { flex: 1; padding-inline: 10px; font-size: 13px; }
  .tabs button span { margin-left: 4px; }
  .filter-toggle { position: absolute; top: 14px; right: 14px; width: 94px; min-height: 46px; margin: 0; gap: 6px; padding-inline: 9px; font-size: 13px; }
  .filter-toggle svg { width: 18px; height: 18px; }
  .filter-toggle .filter-chevron { display: none; }
  .filter-toggle[aria-expanded=true] { border-color: var(--green); background: var(--tint); }
  #filterTotal { position: absolute; top: -9px; right: -8px; min-width: 22px; padding: 2px 4px; border: 2px solid var(--white); border-radius: 12px; background: var(--green); color: white; font-size: 10px; text-align: center; }
  #filterTotal:empty { display: none; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; padding: 0 14px 16px; }
  .filters label { font-size: 12px; }
  .filters label:nth-last-child(-n+2) { grid-column: 1/-1; }
  .filters select { padding-left: 9px; font-size: 16px; }
  .filter-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 14px; }
  .filter-bottom .favorite-filter { grid-column: 1/-1; }
  .favorite-filter { font-size: 13px; padding-inline: 10px; }
  .reset { width: 100%; margin: 0; }
  .compact-filter-apply { width: 100%; min-width: 0; padding-inline: 9px; }
  .active-filters { padding: 12px 14px; }
  .filter-chip { max-width: 100%; min-height: 44px; }
  .result-bar { align-items: stretch; flex-direction: column; gap: 10px; margin: 18px 0 12px; }
  .result-bar p { font-size: 14px; }
  #resultCount { scroll-margin-top: 16px; }
  #main { scroll-margin-top: 16px; }
  .result-hint { font-size: 11px; }
  .sort-control { justify-content: space-between; width: 100%; font-size: 12px; }
  .sort-control select { font-size: 16px; max-width: 230px; }
  .table-wrap { border: 0; border-radius: 0; overflow: visible; background: none; }
  .table-wrap table { display: block; width: 100%; min-width: 0; table-layout: auto; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  #rows tr { display: grid; grid-template-columns: 64px minmax(0,1fr) 40px; align-items: start; gap: 0 10px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
  td, tbody tr:last-child td { padding: 0; border: 0; min-width: 0; }
  #rows td:nth-child(1) { grid-column: 1; grid-row: 1; padding-top: 1px; }
  #rows td:nth-child(2) { grid-column: 2; grid-row: 1; }
  #rows td:nth-child(3) { grid-column: 1/-1; grid-row: 2; margin-top: 13px; }
  #rows td:nth-child(6) { grid-column: 1/-1; grid-row: 3; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line) !important; }
  #rows td:nth-child(7) { grid-column: 3; grid-row: 1; margin: -4px -4px 0 0; padding: 0; justify-self: end; }
  .event-title { font-size: 15px; line-height: 1.45; }
  .event-sub { font-size: 11px; }
  .compact-genre { margin-top: 5px; font-size: 12px; }
  .time-main { font-size: 22px; }
  .time-label { font-size: 11px; }
  .small-line { font-size: 10px; line-height: 1.5; }
  .venue-cell .agenda-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .venue-link { gap: 10px; min-height: 44px; font-size: 14px; }
  .venue-copy .small-line { font-size: 12px; }
  .compact-district { margin-top: 3px; font-size: 12px; }
  .agenda-logo { width: 34px; height: 34px; flex-basis: 34px; border-radius: 6px; font-size: 18px; }
  .price-value { font-size: 15px; }
  .price-conditions { font-size: 12px; -webkit-line-clamp: 2; }
  .price-more { min-height: 44px; }
  #empty { padding: 32px 12px; }
  #empty h2 { font-size: 21px; }
  .data-note { font-size: 12px; }
  .cautions summary>span { display: none; }
  #cautionRows article>span { display: block; margin: 5px 0; }
  .places-tools { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
  .places-tools .search { flex: 1 1 100%; }
  .places-tools p { font-size: 12px; }
  .place-grid { grid-template-columns: 1fr; gap: 12px; }
  .place-card { padding: 16px; gap: 12px; }
  .place-card h2 { font-size: 16px; }
  .place-mark { width: 52px; height: 52px; flex-basis: 52px; }
  .back { margin-bottom: 18px; }
  .venue-hero { align-items: flex-start; gap: 14px; padding-bottom: 22px; margin-bottom: 24px; }
  .venue-monogram { width: 64px; height: 64px; font-size: 36px; }
  .venue-hero h1 { font-size: 27px; overflow-wrap: anywhere; }
  .venue-hero p { font-size: 13px; }
  .venue-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .venue-hero-actions>* { width: 100%; padding-inline: 8px; font-size: 13px; }
  .venue-layout { gap: 24px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading span { font-size: 12px; }
  .venue-event { position: relative; padding: 18px 14px; gap: 12px; }
  .event-date { padding-right: 12px; }
  .event-date b { font-size: 26px; }
  .venue-event-body>small { display: block; padding-right: 38px; }
  .venue-event h3 { font-size: 18px; padding-right: 38px; }
  .venue-event p { font-size: 13px; }
  .venue-event>.save { position: absolute; top: 10px; right: 8px; }
  .venue-event-body>.event-status { margin-left: 0; }
  .venue-info { padding: 22px; }
  #venueInfo { scroll-margin-top: 16px; }
  dialog { inset: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 18px - env(safe-area-inset-top)); margin: 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border-bottom: 0; }
  dialog h2 { font-size: 25px; }
  dialog dl { grid-template-columns: 1fr; gap: 18px; }
  .schedule-strip { gap: 8px; }
  .schedule-strip b { font-size: 14px; font-variant-numeric: tabular-nums; }
  .detail-actions>* { flex: 1 1 140px; }
  .detail-actions>.primary { flex-basis: 100%; }
  .resource-grid { grid-template-columns: minmax(0,1fr); }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); font-size: 13px; }
  footer { margin-inline: 16px; flex-wrap: wrap; gap: 8px 20px; padding: 22px 0; }
  footer>span { margin-left: 0; width: 100%; }
}
@media (max-width: 360px) {
  main { padding-inline: 12px; }
  .header-inner { padding-inline: 12px; }
  .header-inner>.logo { font-size: 23px; }
  .location { font-size: 10px; }
  nav a { gap: 5px; font-size: 13px; }
  .tabs button { padding-inline: 6px; font-size: 12px; }
  #rows tr { padding: 14px 12px; grid-template-columns: 58px minmax(0,1fr) 36px; gap: 0 8px; }
  .time-main { font-size: 20px; }
  .filters { grid-template-columns: 1fr; }
  .date-controls input { padding-inline: 6px; }
  .places-tools .favorite-filter { flex: 1 1 100%; }
}
@media (max-width: 1100px) and (max-height: 600px) {
  .page-intro { display: none; }
  main { padding-top: 18px; }
  .date-navigation { margin-bottom: 12px; }
  .edition { padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  nav a.active, .tabs .active, .filter-chip, .price-value.free { outline: 2px solid Highlight; outline-offset: -2px; }
}

.privacy-settings, .privacy-details { border: 0; padding: 6px 0; background: transparent; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-banner { position: fixed; z-index: 120; inset: auto 16px max(16px,env(safe-area-inset-bottom)); margin-inline: auto; width: min(880px,calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 48px #16251d33; }
.privacy-banner[hidden] { display: none; }
.privacy-banner strong { font: 700 16px/1.3 var(--display); }
.privacy-banner p { max-width: 560px; margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.privacy-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.privacy-actions button { white-space: nowrap; }
.privacy-dialog { width: min(620px,calc(100% - 32px)); }
.privacy-dialog>p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.65; }
.privacy-dialog .privacy-current { padding: 12px 14px; border-radius: 8px; background: #edf0e9; color: var(--ink); }
.privacy-dialog .privacy-actions { margin-top: 20px; }
@media (max-width: 760px) {
  .privacy-banner { bottom: calc(78px + env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
  .privacy-banner .privacy-actions { justify-content: stretch; }
  .privacy-banner .privacy-actions button { flex: 1 1 auto; }
}

.snapshot-notice{padding:12px 24px;text-align:center;background:#e9eee5;font-size:14px;border-bottom:1px solid #c8d5c3}.snapshot-notice a{font-weight:600;text-decoration:underline}
