/* Hoje Ali (brand chosen 04/10/2026): bright violet and sun yellow, rounded shapes, posters first. Light by default;
   dark follows the system setting, and the header button picks one and remembers it (js/theme.js sets data-theme).
   Fonts are self-hosted (OFL, fonts/OFL-*.txt): Unbounded for short headings, Figtree for reading. */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 22px; --r-input: 16px; --r-chip: 99px; --r-badge: 10px;
  --bg: #FBF9FF; --surface: #FFFFFF; --surface-2: #F1ECFF; --text: #1D1535; --muted: #5C5676;
  --border: #E8E2F6; --border-strong: #8D86AA;
  --accent: #6A3BF0; --on-accent: #FFFFFF; --accent-text: #5A2CDB; --accent-soft: #EFE9FF; --focus: #5A2CDB;
  --highlight: #FFD23F; --on-highlight: #1D1535;
  --chip-on-bg: #6A3BF0; --chip-on-fg: #FFFFFF;
  --head-bg: #FFFFFF; --foot-bg: #F3EEFF; --notice-bg: #FFF6D6;
  --stage-bg: #5A2CDB; --stage-ink: #FFFFFF; --stage-muted: #E6DEFF; --stage-chip-bg: #6B41E3; --stage-chip-border: #8A68EA;
  --logo-tile: #6A3BF0; --logo-word: #1D1535; --logo-ali: #6A3BF0;
  --shadow: 0 1px 2px rgba(29,21,53,.05), 0 8px 20px rgba(106,59,240,.08);
  --shadow-hover: 0 2px 4px rgba(29,21,53,.06), 0 16px 34px rgba(106,59,240,.16);
  --cat-standup-soft: #FEEDD8; --cat-standup-dot: #FFBD59; --cat-standup-ink: #926203;
  --cat-teatro-soft: #FDEAF1; --cat-teatro-dot: #ED5C9E; --cat-teatro-ink: #B54076;
  --cat-musica-soft: #E0F4FF; --cat-musica-dot: #05A6DE; --cat-musica-ink: #0C749C;
  --cat-festas-soft: #F9EAFE; --cat-festas-dot: #C76CE3; --cat-festas-ink: #954CAB;
  --cat-exposicoes-soft: #D5FBE4; --cat-exposicoes-dot: #07B571; --cat-exposicoes-ink: #067D4D;
  --cat-cinema-soft: #FFEBE8; --cat-cinema-dot: #F75E51; --cat-cinema-ink: #BB4037;
  --cat-outros-soft: #F1ECFF; --cat-outros-dot: #8D86AA; --cat-outros-ink: #5C5676;
  --free-soft: #D9FADF; --free-ink: #0A7E3A; --warn-soft: #FEEDDB; --warn-ink: #975F00;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191230; --surface: #231B40; --surface-2: #2D2452; --text: #F7F4FF; --muted: #BDB5D8;
  --border: #372D5C; --border-strong: #776BA8;
  --accent: #FFD23F; --on-accent: #1D1535; --accent-text: #CDBBFF; --accent-soft: #33294F; --focus: #FFD23F;
  --chip-on-bg: #FFD23F; --chip-on-fg: #1D1535;
  --head-bg: #1E1638; --foot-bg: #1E1638; --notice-bg: #2E2650;
  --stage-bg: #2D2452; --stage-ink: #F7F4FF; --stage-muted: #CDC4EA; --stage-chip-bg: #3A3063; --stage-chip-border: #54498A;
  --logo-word: #F7F4FF; --logo-ali: #FFD23F;
  --shadow: none; --shadow-hover: 0 12px 30px rgba(0,0,0,.35);
  --cat-standup-soft: #3E3156; --cat-standup-dot: #FFCA80; --cat-standup-ink: #D09945;
  --cat-teatro-soft: #482232; --cat-teatro-dot: #FF81B6; --cat-teatro-ink: #DF84A8;
  --cat-musica-soft: #043549; --cat-musica-dot: #2AC0FD; --cat-musica-ink: #46B1E3;
  --cat-festas-soft: #3D2644; --cat-festas-dot: #DD8BF6; --cat-festas-ink: #C48CD5;
  --cat-exposicoes-soft: #0F3924; --cat-exposicoes-dot: #25D086; --cat-exposicoes-ink: #5ABB88;
  --cat-cinema-soft: #3E2C55; --cat-cinema-dot: #FE8B7D; --cat-cinema-ink: #E6867A;
  --cat-outros-soft: #2D2452; --cat-outros-dot: #776BA8; --cat-outros-ink: #BDB5D8;
  --free-soft: #17391F; --free-ink: #69BA7C; --warn-soft: #3E3157; --warn-ink: #D49648;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #191230; --surface: #231B40; --surface-2: #2D2452; --text: #F7F4FF; --muted: #BDB5D8;
    --border: #372D5C; --border-strong: #776BA8;
    --accent: #FFD23F; --on-accent: #1D1535; --accent-text: #CDBBFF; --accent-soft: #33294F; --focus: #FFD23F;
    --chip-on-bg: #FFD23F; --chip-on-fg: #1D1535;
    --head-bg: #1E1638; --foot-bg: #1E1638; --notice-bg: #2E2650;
    --stage-bg: #2D2452; --stage-ink: #F7F4FF; --stage-muted: #CDC4EA; --stage-chip-bg: #3A3063; --stage-chip-border: #54498A;
    --logo-word: #F7F4FF; --logo-ali: #FFD23F;
    --shadow: none; --shadow-hover: 0 12px 30px rgba(0,0,0,.35);
    --cat-standup-soft: #3E3156; --cat-standup-dot: #FFCA80; --cat-standup-ink: #D09945;
    --cat-teatro-soft: #482232; --cat-teatro-dot: #FF81B6; --cat-teatro-ink: #DF84A8;
    --cat-musica-soft: #043549; --cat-musica-dot: #2AC0FD; --cat-musica-ink: #46B1E3;
    --cat-festas-soft: #3D2644; --cat-festas-dot: #DD8BF6; --cat-festas-ink: #C48CD5;
    --cat-exposicoes-soft: #0F3924; --cat-exposicoes-dot: #25D086; --cat-exposicoes-ink: #5ABB88;
    --cat-cinema-soft: #3E2C55; --cat-cinema-dot: #FE8B7D; --cat-cinema-ink: #E6867A;
    --cat-outros-soft: #2D2452; --cat-outros-dot: #776BA8; --cat-outros-ink: #BDB5D8;
    --free-soft: #17391F; --free-ink: #69BA7C; --warn-soft: #3E3157; --warn-ink: #D49648;
  }
}
.c-standup { --c-dot: var(--cat-standup-dot); --c-ink: var(--cat-standup-ink); --c-soft: var(--cat-standup-soft); }
.c-teatro { --c-dot: var(--cat-teatro-dot); --c-ink: var(--cat-teatro-ink); --c-soft: var(--cat-teatro-soft); }
.c-musica { --c-dot: var(--cat-musica-dot); --c-ink: var(--cat-musica-ink); --c-soft: var(--cat-musica-soft); }
.c-festas { --c-dot: var(--cat-festas-dot); --c-ink: var(--cat-festas-ink); --c-soft: var(--cat-festas-soft); }
.c-exposicoes { --c-dot: var(--cat-exposicoes-dot); --c-ink: var(--cat-exposicoes-ink); --c-soft: var(--cat-exposicoes-soft); }
.c-cinema { --c-dot: var(--cat-cinema-dot); --c-ink: var(--cat-cinema-ink); --c-soft: var(--cat-cinema-soft); }
.c-outros { --c-dot: var(--cat-outros-dot); --c-ink: var(--cat-outros-ink); --c-soft: var(--cat-outros-soft); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--sans); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }
button, a, input, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.note { font-size: 15px; color: var(--muted); }
.strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); border: 2px solid var(--accent); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---- header and footer ---------------------------------------------------------------------------------------- */
.site-head { background: var(--head-bg); border-bottom: 1px solid var(--border); }
.head-row { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-radius: 10px; }
.logo-svg { display: block; height: 34px; width: auto; }
@media (min-width: 900px) { .logo-svg { height: 38px; } .head-row { min-height: 70px; } }
.logo-tile { fill: var(--logo-tile); }
.logo-arc { stroke: #FFFFFF; }
.logo-dot { fill: var(--highlight); }
.logo-hoje { fill: var(--logo-word); }
.logo-ali { fill: var(--logo-ali); }
.beta { position: relative; display: inline-block; font: 750 11px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: var(--highlight); color: var(--on-highlight); text-decoration: none; white-space: nowrap; }
.beta::after { content: ""; position: absolute; inset: -12px -6px; } /* a 44 px target around the small pill */
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 2px 16px; font-weight: 650; font-size: 15.5px; }
.head-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--accent-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.theme-toggle { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); }
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: block; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .to-light { display: block; } :root:not([data-theme="light"]) .theme-toggle .to-dark { display: none; } }
@media (max-width: 420px) { .head-nav { gap: 2px 12px; font-size: 15px; } .logo-svg { height: 30px; } .head-row { gap: 8px; } }

.site-foot { margin-top: 60px; padding: 30px 0 42px; background: var(--foot-bg); color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.site-foot .logo-svg { height: 28px; }
.site-foot p { max-width: 560px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot a { font-weight: 650; display: inline-flex; align-items: center; min-height: 44px; }

/* ---- measurement notice (js/analytics.js): one small line at the bottom of the screen on the first visit, gone after 8 s or
   on the first scroll or click; the wrapper lets clicks through, only the line itself catches them. ------------------- */
.medicao-aviso { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 8px 8px; display: flex; justify-content: center; pointer-events: none; }
.medicao-aviso p { pointer-events: auto; margin: 0; max-width: 640px; padding: 8px 12px; background: var(--surface); color: var(--text); border: 1.5px solid var(--border-strong); border-radius: 10px; box-shadow: 0 6px 20px rgba(29,21,53,.16); font-size: 13.5px; line-height: 1.4; }
.medicao-off { display: inline; background: none; border: 0; padding: 4px 2px; margin: -4px 0; font: inherit; font-weight: 700; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.medicao-controle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 18px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); font-size: 17px; }
.medicao-controle .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media print { .medicao-aviso { display: none; } }

/* ---- buttons, search, chips ----------------------------------------------------------------------------------- */
.btn, .solid { min-height: 50px; padding: 0 20px; border-radius: var(--r-input); border: 0; background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover, .solid:hover { filter: brightness(1.07); }
.btn.ghost, .outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); font-weight: 700; min-height: 48px; padding: 0 20px; border-radius: var(--r-input); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.ghost:hover, .outline:hover { background: var(--surface-2); filter: none; }
.search-row { display: flex; gap: 8px; }
.field { flex: 1; position: relative; min-width: 0; }
.field svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; color: var(--muted); pointer-events: none; }
input[type=search] { width: 100%; height: 52px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--r-input); padding: 0 14px 0 46px; font-size: 16px; }
input[type=search]::placeholder { color: var(--muted); opacity: 1; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 2px 16px 4px; scroll-padding-left: 16px; }
.chip-row::-webkit-scrollbar { display: none; }
@media (max-width: 719px) { .chip-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); } .chip-row::after { content: ""; flex: none; width: 12px; } }
@media (min-width: 720px) { .chip-row { flex-wrap: wrap; overflow: visible; margin: 12px 0 0; padding: 0; } }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-chip); border: 2px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-fg); }
.chip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-dot); flex: none; }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--chip-on-fg); }
.chip .count { font-weight: 500; opacity: .8; font-size: 13px; }
.chip.toggle { border-style: dashed; }
.chip.toggle::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid currentColor; flex: none; }
.chip.toggle[aria-pressed="true"] { border-style: solid; }
.chip.toggle[aria-pressed="true"]::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--chip-on-bg); }
/* a row that scrolls sideways on a phone ends with a round arrow while there is more (Reviewer 35: the fade alone was no clear cue) */
.scroller { position: relative; }
.scroll-next { display: none; }
@media (max-width: 719px) {
  .scroll-next { position: absolute; right: -8px; top: 14px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--highlight); color: var(--on-highlight); box-shadow: 0 2px 10px rgba(29,21,53,.35); }
  .scroll-next svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
}
/* price and audience: their own row, never behind a sideways scroll (Reviewer 35) */
.chip-row.toggles { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; margin: 10px 0 0; padding: 0; }
.chip-row.toggles::after { content: none; }
.clear { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 8px 0; min-height: 44px; }
.clear:hover { color: var(--accent-text); }

/* ---- city page: the violet band with the search and the filters ------------------------------------------------ */
.stage { background: var(--stage-bg); color: var(--stage-ink); border-radius: 0 0 30px 30px; padding: 22px 0 22px; }
@media (min-width: 900px) { .stage { padding: 36px 0 34px; } }
.eyebrow { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; font-size: 15px; font-weight: 650; color: var(--muted); }
.stage .eyebrow { color: var(--stage-muted); }
.eyebrow a { color: var(--accent-text); display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.stage .eyebrow a { color: var(--highlight); }
h1 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.stage h1 { font-size: clamp(27px, 7.4vw, 46px); margin: 6px 0 16px; }
.stage input[type=search] { border-color: transparent; }
.stage .btn { background: var(--highlight); color: var(--on-highlight); }
.stage .chip { background: var(--stage-chip-bg); border-color: var(--stage-chip-border); color: var(--stage-ink); }
.stage .chip:hover { border-color: var(--stage-ink); }
.stage .chip[aria-pressed="true"] { background: var(--highlight); border-color: var(--highlight); color: var(--on-highlight); }
.stage .chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--on-highlight); }
.stage .chip.toggle[aria-pressed="true"]::before { box-shadow: inset 0 0 0 2px var(--highlight); }
/* keyboard focus on the violet bands: yellow, never the band's own violet (Reviewer 35: 1:1 in light mode) */
.stage :focus-visible, .home-hero :focus-visible, .suggest-cta :focus-visible { outline-color: var(--highlight); }
@media (min-width: 900px) { .stage .search-row { max-width: 640px; } }

/* refine (styles, audiences, genres): only when a category is chosen */
.refine { margin-top: 20px; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--border); }
.refine-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.refine-head h2 { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -.01em; }
.filter-line { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.filter-label { font-size: 14.5px; font-weight: 700; flex: none; width: 150px; padding-top: 12px; color: var(--muted); }
.filter-line .chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.style-disclosure { margin-top: 10px; }
.style-disclosure summary, .more-filters summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.style-disclosure .filter-label { display: none; }
.filter-hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 719px) { .filter-line { display: block; } .filter-label { display: block; width: auto; padding: 0 0 8px; } }

/* ---- results: one section per day ------------------------------------------------------------------------------- */
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 22px 0 0; }
.result-meta { font-size: 15px; color: var(--muted); }
.result-meta:focus { outline: none; } /* takes the focus after a search (announced), not a control */
.results-line { scroll-margin-top: 12px; }
.jump { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent-text); font-weight: 750; font-size: 15px; text-decoration: none; border: 2px solid transparent; }
.jump:hover { border-color: var(--border-strong); }
#em-cartaz { scroll-margin-top: 12px; }
#em-cartaz:focus { outline: none; }
.period-note { margin: -6px 0 14px; }
.recover { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 16px; }
.recover .btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
.result-meta strong { color: var(--text); }
.results-tools { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.more-filters summary { color: var(--accent-text); list-style: none; padding: 0 4px; border-radius: 10px; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.more-filters[open] { flex-basis: 100%; order: 2; }
.more-panel { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--border); display: grid; gap: 14px; }
.more-panel .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.more-panel label { display: block; font-size: 14.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.more-panel input[type=date] { height: 46px; padding: 0 12px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 16px; }
.day { margin-top: 28px; }
.day-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin: 0 0 14px; }
.day-head h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 22px; line-height: 1.15; display: inline-block; padding: 3px 14px 5px; border-radius: 12px; background: var(--highlight); color: var(--on-highlight); }
.day-head .day-sub { font-size: 15px; color: var(--muted); font-weight: 650; }
@media (min-width: 900px) { .day { margin-top: 42px; } .day-head h2 { font-size: 27px; } }
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }
@media (min-width: 1500px) { .wrap { max-width: 1440px; } .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- card -------------------------------------------------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
/* The image lies on the labelled illustration (it comes after it): until its pixels are there the illustration and its
   label show through, never a blank area; it keeps its box while it loads, so a lazy image is fetched in every browser. */
.card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media.pending img { opacity: 0; } /* loaded but not decoded yet, or a slow image painting by halves: the label stays readable */
.badge { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); display: inline-flex; align-items: center; padding: 6px 11px; border-radius: var(--r-badge); background: var(--highlight); color: var(--on-highlight); font: 650 15px/1.15 var(--display); letter-spacing: -.01em; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.badge:has(.badge-year) { flex-direction: column; align-items: flex-start; }
.badge-time { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge-year { margin-top: 3px; font: 650 12px/1.2 var(--sans); letter-spacing: 0; white-space: normal; } /* "Ano não informado pela fonte", under the date it concerns */
.badge.started { background: var(--surface); color: var(--text); font-family: var(--sans); font-weight: 750; }
.badge.period { font-size: 14px; }
.image-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--c-soft); color: var(--c-ink); }
.image-fallback svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fallback-category { font-weight: 750; font-size: 15px; }
/* top right: the time or period badge holds the bottom left, and a long one ("Em cartaz · até qua., 18 nov.") would run into it on a phone */
.fallback-label { position: absolute; right: 12px; top: 12px; max-width: calc(100% - 24px); font-size: 12.5px; font-weight: 650; padding: 5px 10px; border-radius: 99px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; min-width: 0; }
.category { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 99px; background: var(--c-soft); color: var(--c-ink); font-weight: 750; font-size: 13px; line-height: 1.2; }
.category .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-dot); flex: none; }
.card h3 { font-size: 19px; font-weight: 750; line-height: 1.24; letter-spacing: -.005em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.venue { color: var(--muted); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.venue-street { margin-top: -4px; font-size: 14px; }
.when-note { font-size: 14.5px; font-weight: 650; }
.card .note { font-size: 13.5px; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.event-tag { font-size: 13px; font-weight: 650; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.card-foot { margin-top: auto; padding-top: 10px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 10px; }
.price { font-weight: 750; font-size: 15px; }
.price.free { background: var(--free-soft); color: var(--free-ink); padding: 4px 11px; border-radius: 99px; }
.price.unknown { font-weight: 550; color: var(--muted); }
.source { font-size: 13px; color: var(--muted); }
.price-note { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.missing-tag { font-size: 13px; border-top: 1px dashed var(--border-strong); padding-top: 8px; color: var(--muted); }

.unknown-results { margin-top: 34px; padding-top: 22px; border-top: 2px dashed var(--border); }
.unknown-results > h3 { font-family: var(--display); font-weight: 650; font-size: 20px; letter-spacing: -.01em; margin: 0 0 6px; }
.unknown-results > .note { margin: 0 0 16px; }
.more { display: flex; margin: 32px auto 0; min-width: min(100%, 320px); }
.state { padding: 40px 22px; border: 2px dashed var(--border); border-radius: var(--r-card); text-align: center; color: var(--muted); background: var(--surface); margin-top: 24px; }
.state h3 { font-family: var(--display); font-weight: 650; font-size: 21px; color: var(--text); margin: 0 0 8px; }
.state p { max-width: 480px; margin: 0 auto 16px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- detail ------------------------------------------------------------------------------------------------------- */
.detail { padding-top: 22px; max-width: 900px; }
.detail:focus { outline: none; }
.back { display: inline-block; color: var(--accent-text); font-weight: 700; text-decoration: none; padding: 10px 0; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail .eyebrow { margin-top: 6px; }
.detail .eyebrow .category { font-size: 14px; }
.eyebrow .category a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; text-decoration: none; } /* a 44 px target that does not grow the pill */
.eyebrow .category a:hover { text-decoration: underline; }
.detail h1 { font-size: clamp(26px, 5.4vw, 42px); margin: 10px 0 8px; overflow-wrap: anywhere; }
.source-title { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; overflow-wrap: anywhere; }
.detail-media { aspect-ratio: 16 / 9; border-radius: var(--r-card); border: 2px solid var(--border); margin: 12px 0 22px; }
.detail-media img { object-fit: contain; } /* no background of its own: it would hide the illustration before the image is there */
.detail-box { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-card); padding: 20px 22px; margin-bottom: 18px; }
.detail-box h2 { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -.01em; margin-bottom: 10px; }
.detail-box p { margin: 4px 0; }
@media (max-width: 720px) { .detail-box { padding: 16px 18px; } }
/* the practical facts, right under the title (Reviewer 35): when, where, price and access, then the source's button */
.facts { margin: 14px 0 20px; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow); }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 26px; margin: 0; }
.facts dt { font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; min-width: 0; overflow-wrap: anywhere; }
.facts .note { margin-top: 4px; }
.facts .note a, .facts .also-on a { color: var(--accent-text); font-weight: 700; }
.facts .note > a:only-child { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.fact-main { font-weight: 750; font-size: 18px; line-height: 1.3; }
.fact-label { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--muted); } /* "Endereço": a place that is only an address, never given a venue's name */
.fact-main[data-date]:not([hidden]) ~ .fact-main[data-date] { display: none; } /* the next date only: the ones before it are hidden by /js/page.js once passed */
.note.correction a { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0; color: var(--accent-text); font-weight: 700; } /* "Sugerir uma correção": quiet, but a full-size target */
.fact-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.fact-links a { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0; }
.facts .detail-cta { margin: 18px 0 6px; }
.facts .year-note { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.year-flag { display: inline-block; margin-left: 0; padding: 1px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn-ink); font: 650 12.5px/1.5 var(--sans); letter-spacing: 0; vertical-align: 2px; white-space: nowrap; }
.intro { margin: 0 0 18px; padding: 2px 0 2px 16px; border-left: 4px solid var(--highlight); }
.intro blockquote { margin: 0; }
.intro p { font-size: 17px; line-height: 1.55; }
.intro figcaption { margin-top: 4px; font-size: 14px; color: var(--muted); }
.intro figcaption a { color: var(--accent-text); font-weight: 700; }
#sessoes { scroll-margin-top: 16px; }
.summary-text { font-weight: 700; margin-bottom: 8px !important; }
.sessions { list-style: none; padding: 0; margin: 0; }
.sessions li { padding: 11px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 4px 18px; flex-wrap: wrap; }
.sessions li:last-child { border: 0; }
.sessions .session-when { font-weight: 650; }
.sessions .session-extra { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: baseline; font-size: 15px; color: var(--muted); }
.sessions .session-extra a { color: var(--accent-text); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.sessions .session-note { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.warnings { padding-left: 20px; color: var(--muted); font-size: 15px; }
.also-on { margin-top: 8px; }

/* ---- home (redesigned 06/10/2026: the city in use, today's picks one per kind, then the city picker) ------------------------ */
.home-hero { position: relative; overflow: hidden; margin-top: 16px; padding: 26px 20px 24px; border-radius: 28px; background: var(--stage-bg); color: var(--stage-ink); }
.home-hero h1 { position: relative; z-index: 1; font-size: clamp(30px, 8vw, 56px); max-width: 15ch; }
.hero-city { color: var(--highlight); }
.hero-where { position: relative; z-index: 1; margin-top: 12px; font-size: 16px; color: var(--stage-muted); }
.hero-where strong { color: var(--stage-ink); }
.hero-where a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; color: var(--highlight); font-weight: 750; } /* a 44 px tap target that does not grow the line */
.lede { position: relative; z-index: 1; font-size: 17px; color: var(--stage-muted); margin-top: 10px; max-width: 34em; }
.hero-kinds-label { position: relative; z-index: 1; margin: 20px 0 8px; font-size: 14px; font-weight: 700; color: var(--stage-muted); }
.cats-inline { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cats-inline li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 99px; background: var(--stage-chip-bg); font-size: 14px; font-weight: 700; }
.cats-inline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-dot); flex: none; }
.cats-inline li:has(.hero-chip) { padding: 0; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 12px; border-radius: 99px; color: inherit; text-decoration: none; border: 2px solid var(--stage-chip-border); background: var(--stage-chip-bg); }
.hero-chip:hover { border-color: var(--highlight); }
.hero-chip:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
.hero-chip .n { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: var(--highlight); color: var(--on-highlight); font-size: 13px; font-weight: 800; text-align: center; }
.hero-chip.none { background: transparent; opacity: .85; }
.hero-art { display: none; position: absolute; pointer-events: none; }
@media (min-width: 720px) { .hero-art { display: block; right: -30px; bottom: -40px; width: 300px; } }
@media (min-width: 900px) { .home-hero { padding: 44px 52px 40px; } .lede { font-size: 19px; } .hero-art { right: 20px; bottom: -36px; width: 380px; } }
.today { margin-top: 26px; }
.today h2, .picker h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 20px; margin-bottom: 12px; }
@media (min-width: 480px) { .today h2, .picker h2 { font-size: 22px; } }
@media (min-width: 900px) { .today h2, .picker h2 { font-size: 26px; } }
.picks { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; list-style: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.picks::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .picks { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; overflow: visible; margin: 0; padding: 0; } }
.pick { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.pick .poster { flex: 1; }
.pick .poster .card-media { aspect-ratio: 16 / 10; }
.pick-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px 14px; }
.pick-body h3 { font-size: 17px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.poster .pick-venue { padding: 0; font-size: 14px; color: var(--muted); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.pick-more { display: flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--accent-text); font-weight: 750; }
.picks:has(.picks-empty) { display: block; margin: 0; padding: 0; overflow: visible; }
.picks-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: var(--r-card); border: 2px dashed var(--border-strong); background: var(--surface); }
.picks-empty p { font-size: 17px; font-weight: 650; }
.pick.skeleton { min-height: 300px; border-radius: var(--r-card); background: var(--surface-2); border: 2px solid var(--border); }
.picker { margin-top: 26px; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow); }
@media (min-width: 900px) { .picker { padding: 26px 28px; } }
.picker .result-meta { margin: 14px 0 10px; }
.city-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .city-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.city-list a { display: block; padding: 12px 14px; border-radius: var(--r-input); border: 2px solid var(--border); text-decoration: none; background: var(--bg); min-height: 64px; height: 100%; }
.city-list a:hover { border-color: var(--accent); }
.city-list a[aria-current] { border-color: var(--accent); background: var(--accent-soft); }
.city-name { display: block; font-weight: 750; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.city-uf { font-size: 12px; font-weight: 750; letter-spacing: .05em; color: var(--muted); margin-left: 4px; }
.city-count { display: block; font-size: 14px; color: var(--muted); }
.city-now { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 750; }
.picker .btn.ghost { margin-top: 14px; width: 100%; }
@media (min-width: 900px) { .picker .btn.ghost { width: auto; } }
.peek-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.peek-head a { color: var(--accent-text); font-weight: 750; display: inline-flex; align-items: center; min-height: 44px; }
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; list-style: none; }
.posters::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .posters { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } }
.poster { position: relative; display: block; height: 100%; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 2px solid var(--border); text-decoration: none; }
.poster .card-media { aspect-ratio: 4 / 3; }
.poster p { padding: 10px 12px 12px; font-weight: 750; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.poster p span { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.beta-line { margin-top: 28px; font-size: 15px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.beta-line a { color: var(--accent-text); font-weight: 700; }
.noscript { margin: 20px 0; padding: 14px 18px; border-radius: var(--r-card); background: var(--notice-bg); }

/* ---- text pages (Sobre, Fontes, 404) ---------------------------------------------------------------------------- */
.page { max-width: 780px; padding-top: 34px; }
.page h1 { font-size: clamp(30px, 6vw, 46px); margin: 8px 0 14px; }
.page h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.015em; font-size: 22px; line-height: 1.25; margin: 34px 0 10px; }
.page p, .page li { font-size: 18px; line-height: 1.65; }
.page p { margin: 0 0 14px; }
.page ul { padding-left: 22px; margin: 0 0 14px; }
.page li { margin-bottom: 8px; }
.page .lead { font-size: 20px; color: var(--muted); }
.page a { color: var(--accent-text); font-weight: 650; }
.page .solid { color: var(--on-accent); }
.page .placeholder { background: var(--notice-bg); border-radius: 14px; padding: 12px 16px; }
.source-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
@media (min-width: 760px) { .sources-page { max-width: 1100px; } .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.source-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.page .source-card h2 { font-size: 21px; margin: 0; }
.page .source-card h2 a { color: var(--text); text-decoration: none; }
.page .source-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page .sc-count { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.sc-kinds { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; margin: 0 !important; }
.page .sc-kinds li { margin: 0; font-size: 13px; }
.page .source-card p { margin: 0; font-size: 16px; }
.page .sc-cities { font-size: 15.5px !important; }
.sc-how summary { cursor: pointer; font-weight: 700; color: var(--accent-text); min-height: 44px; display: flex; align-items: center; }
.page .sc-how li { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.upcoming ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.page .upcoming li { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); font-size: 15px; font-weight: 650; margin: 0; }
.suggest-cta { margin: 30px 0 10px; padding: 22px 24px; border-radius: var(--r-card); background: var(--stage-bg); color: var(--stage-ink); display: grid; gap: 10px; justify-items: start; }
.page .suggest-cta h2 { margin: 0; color: var(--stage-ink); }
.page .suggest-cta p { margin: 0; color: var(--stage-muted); }
.page .suggest-cta .btn { background: var(--highlight); color: var(--on-highlight); }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
.detail > .note { margin-bottom: 18px; }

/* ---- "Sugerir uma fonte" ------------------------------------------------------------------------------------------ */
.suggest-form { margin: 22px 0 10px; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--border); display: grid; gap: 18px; position: relative; }
.field-block label { display: flex; align-items: baseline; gap: 8px; font-weight: 750; font-size: 16px; margin-bottom: 6px; }
.field-block .req, .field-block .opt { font-weight: 600; font-size: 13px; color: var(--muted); }
.field-block input, .field-block select, .field-block textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--r-input); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.field-block textarea { min-height: 110px; resize: vertical; }
.field-block [aria-invalid="true"] { border-color: var(--cat-cinema-ink); }
.field-error { color: var(--cat-cinema-ink); font-weight: 650; font-size: 15px; margin: 6px 0 0 !important; }
.hint { font-size: 14px !important; color: var(--muted); margin: 6px 0 0 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.suggest-form .btn { justify-self: start; }
.form-status { font-weight: 650; margin: 0 !important; min-height: 1.5em; }
fieldset.field-block { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field-block legend { display: flex; align-items: baseline; gap: 8px; font-weight: 750; font-size: 16px; margin-bottom: 8px; padding: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check-grid label, .radio-list label, .consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); cursor: pointer; margin: 0; }
.radio-list { display: grid; gap: 8px; }
.check-grid input, .radio-list input, .consent input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent label { font-weight: 650; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- "Fale com o Hoje Ali": pick a subject, then only its fields (js/contato.js) ----------------------------------- */
.contact-form { gap: 22px; }
.contact-form .form-status:empty { display: none; }
.subject-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.subject-grid label { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg); cursor: pointer; margin: 0; font-weight: 650; font-size: 16px; line-height: 1.3; }
.subject-grid label:hover { border-color: var(--border-strong); }
.subject-grid label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.subject-grid label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.subject-grid input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.subject-grid input:focus-visible { outline: none; }
.subject-grid small { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.contact-panel { display: grid; gap: 16px; padding-top: 6px; border-top: 2px solid var(--border); }
.contact-panel > * { margin: 0; }
.page .contact-panel h2 { margin: 12px 0 0; font-size: 21px; }
.contact-panel > p { color: var(--muted); }
.contact-link .btn { justify-self: start; color: var(--on-accent); }
.subject-context { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.page .contact-panel .subject-context { color: var(--text); font-size: 16px; }
.panel-note { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); display: grid; gap: 8px; }
.page .panel-note p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }
.panel-note-title { margin: 0; font: 750 15px/1.3 var(--sans); }
.page .suggest-cta .btn.ghost { background: transparent; color: var(--stage-ink); border-color: var(--stage-muted); }
.doc .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc table { border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.doc pre { background: var(--surface-2); padding: 12px 14px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.doc code { font-size: .92em; }
.also-on { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.also-on a { color: var(--accent-text); font-weight: 700; }
.conflict-note { color: var(--warn-ink); font-weight: 650; }
.card .conflict-note { font-size: 13.5px; }

/* ---- event and venue pages (written on the server, src/edge/render.mjs) ------------------------------------------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; padding: 0; margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "/"; padding: 0 8px; opacity: .6; }
.breadcrumb a { color: var(--accent-text); display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; }
.breadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.breadcrumb.on-stage ol { color: var(--stage-muted); }
.breadcrumb.on-stage a { color: var(--highlight); }
.ended-note { margin: 14px 0 4px; padding: 14px 18px; border-radius: var(--r-card); background: var(--surface-2); border: 2px solid var(--border-strong); }
.ended-note a { color: var(--accent-text); font-weight: 700; }
.image-credit { margin: -14px 0 16px; font-size: 13px; color: var(--muted); }
.source-title { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.detail-box .strong a, .detail-box .note a { color: var(--accent-text); font-weight: 700; }
.related { margin-top: 28px; }
.related h2, .venue-box h2, .venue-owner h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.015em; font-size: 20px; margin-bottom: 10px; }
.related .posters { margin-top: 4px; }
.poster p .price.free { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--free-ink); font-weight: 750; }
.venue-stage h1 { margin: 10px 0 8px; overflow-wrap: anywhere; }
.venue-address { color: var(--stage-muted); font-size: 16px; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.venue-actions .btn.ghost { background: transparent; color: var(--stage-ink); border-color: var(--stage-muted); }
.venue-marks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.venue-mark { padding: 5px 12px; border-radius: 99px; background: var(--stage-chip-bg); border: 1px solid var(--stage-chip-border); font-size: 14px; font-weight: 700; }
.venue-facts { margin-top: 20px; }
.venue-page .day { margin-top: 26px; }
.venue-box { margin-top: 30px; }
.venue-box.practical { margin-top: 22px; padding: 16px 20px; border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--border); }
.more-days { margin-top: 26px; }
.date-months { margin-top: 12px; }
.date-months > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--accent-text); }
.date-months ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.date-months li { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); line-height: 1.45; }
.more-days > summary { list-style: none; cursor: pointer; width: min(100%, 360px); }
.more-days > summary::-webkit-details-marker { display: none; }
.more-days > summary::after { content: ""; width: 9px; height: 9px; margin-left: 4px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: translateY(-2px) rotate(45deg); }
.more-days[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.more-days .when-open, .more-days[open] .when-closed { display: none; }
.more-days[open] .when-open { display: inline; }
.venue-box ul { padding-left: 20px; margin: 0; }
.venue-box li { margin-bottom: 6px; }
.venue-box a { color: var(--accent-text); font-weight: 700; }
.venue-box li > a, .nearby a { display: inline-flex; align-items: center; min-height: 44px; }
.nearby { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.venue-owner { margin-top: 34px; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); border: 2px solid var(--border); display: grid; gap: 10px; justify-items: start; }
.venue-owner p { color: var(--muted); }
/* category chips are links on the city pages */
a.chip { text-decoration: none; }
.chip[aria-current="page"] { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-fg); }
.stage .chip[aria-current="page"] { background: var(--highlight); border-color: var(--highlight); color: var(--on-highlight); }
.stage .chip[aria-current="page"] .dot { box-shadow: 0 0 0 2px var(--on-highlight); }
/* small posters (Veja também, a venue's agenda) carry absolute dates: a smaller badge keeps them on one line */
.related .badge, .venue-page .badge { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 9px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
