/* ==========================================================================
   E-vigilância — folha de estilo única do site
   Tokens no :root; modo escuro automático; mobile-first.
   ========================================================================== */

:root {
  --brand: #e18246;
  --brand-strong: #c4612a;
  --brand-soft: #fdf0e7;
  --ink: #102534;
  --ink-2: #33475a;
  --muted: #637282;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --line: #e7e1d8;
  --accent: #1d7a8a;
  --accent-soft: #e3f2f4;
  --ok: #2f855a;
  --night: #102534;
  --violet: #8b5cf6; --violet-soft: #efe9ff;
  --amber: #d98a0b;  --amber-soft: #fff3da;
  --green: #1f9d6b;  --green-soft: #e1f6ec;
  --rose: #e05561;   --rose-soft: #fde8ea;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 37, 52, .06), 0 6px 24px -8px rgba(16, 37, 52, .12);
  --shadow-lg: 0 2px 4px rgba(16, 37, 52, .06), 0 24px 48px -16px rgba(16, 37, 52, .25);
  --maxw: 1160px;
  --header-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ef9358;
    --brand-strong: #f6a874;
    --brand-soft: #3a2518;
    --ink: #eef2f5;
    --ink-2: #c7d1da;
    --muted: #93a1ae;
    --bg: #0d1820;
    --surface: #13222d;
    --surface-2: #182a37;
    --line: #243745;
    --accent: #5ec2d1;
    --accent-soft: #15333b;
    --night: #152d3e;
    --violet-soft: #2a2342; --amber-soft: #3a2c10; --green-soft: #12342a; --rose-soft: #3c1b20;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin: .25em 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: var(--surface-2); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 68ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.1em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(225, 130, 70, .7); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .btn-row .btn { flex: 1 1 100%; white-space: normal; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 38px; height: 33px; color: var(--brand); }
.brand-name { font: 700 1.2rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-year { font: 600 .75rem/1 var(--font); color: var(--brand-strong); background: var(--brand-soft); padding: 4px 7px; border-radius: 999px; margin-left: 2px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 11px; white-space: nowrap; border-radius: 8px; font-size: .93rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
.nav-cta { margin-left: 8px; }

.lang-switch { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 999px; margin-left: 8px; }
.lang-switch a { font: 600 .75rem/1 var(--font); padding: 6px 8px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 12px 14px; font-size: 1.02rem; }
  .lang-switch { align-self: flex-start; margin: 0; }
  .lang-switch a { padding: 8px 12px; font-size: .85rem; }
  .nav-cta { margin: 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Faixa de aviso ---------- */
.notice { background: var(--night); color: #fff; font-size: .92rem; }
.notice .container { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 10px; padding-bottom: 10px; text-align: center; flex-wrap: wrap; }
.notice a { color: #ffd2b5; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 26, 38, .94) 0%, rgba(10, 26, 38, .8) 45%, rgba(10, 26, 38, .35) 100%); }
.hero-inner { padding: clamp(72px, 12vw, 140px) 20px clamp(64px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .3em; }
.hero h1 span { color: var(--brand); }
.hero .lead { color: rgba(255, 255, 255, .86); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 54ch; }
.hero .eyebrow { color: #ffc49e; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; margin: 0; }
.chip svg { width: 18px; height: 18px; color: var(--brand); }

.countdown { display: flex; gap: 10px; margin-top: 28px; }
.countdown div { min-width: 74px; text-align: center; padding: 10px 8px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.countdown b { display: block; font: 700 1.7rem/1.1 var(--font-display); color: #fff; }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); }

/* Cabeçalho de página interna */
.page-head { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 340px; height: 300px; opacity: .1;
  background: var(--brand); -webkit-mask: url("../img/logo.svg") center / contain no-repeat; mask: url("../img/logo.svg") center / contain no-repeat; }
.page-head .container { padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(36px, 6vw, 64px); position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: .25em; }
.page-head p { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 62ch; margin: 0; }
.page-head .eyebrow { color: #ffc49e; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards e grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); position: relative;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: inherit; }
.card-link .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--brand-strong); display: inline-flex; gap: 6px; align-items: center; }
.card-link .more svg { width: 18px; transition: transform .2s; }
.card-link:hover .more svg { transform: translateX(3px); }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 16px; }
.icon-badge svg { width: 24px; height: 24px; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.35fr 1fr; } .split-even { grid-template-columns: 1fr 1fr; } }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 22px 20px; }
.stat b { display: block; font: 700 2.1rem/1 var(--font-display); color: var(--ink); margin-bottom: 6px; }
.stat span { font-size: .9rem; color: var(--muted); }

.theme-quote { border-left: 4px solid var(--brand); padding: 6px 0 6px 20px; margin: 24px 0; font: 600 clamp(1.2rem, 2.2vw, 1.5rem)/1.35 var(--font-display); color: var(--ink); }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 32px; margin: .6em 0; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7a8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.numbered li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; }
.numbered li::before { content: counter(n); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 .9rem/1 var(--font-display); }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font: 700 .85rem/1 var(--font-display); color: var(--brand-strong); letter-spacing: .1em; margin-bottom: 10px; }

/* ---------- Tabela ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.is-current { background: var(--brand-soft); }
th.is-current { color: var(--brand-strong); }
.tag { display: inline-block; font: 700 .68rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--brand); color: #fff; vertical-align: middle; margin-left: 6px; }
.tag-muted { background: var(--surface-2); color: var(--muted); }
.tag-ok { background: var(--green-soft); color: var(--green); }

/* tabela vira lista no celular */
@media (max-width: 640px) {
  .table-cards thead { display: none; }
  .table-cards tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; }
  .table-cards td:first-child { display: block; text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 8px; }
  .table-cards td:first-child::before { content: none; }
}

/* ---------- Timeline (prazos) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 28px 56px; margin: 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: grid; place-items: center; }
.tl-item.is-past .tl-dot { background: var(--muted); border-color: var(--muted); }
.tl-item.is-past .tl-dot::after { content: ""; width: 8px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.tl-item.is-now .tl-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent); }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.tl-item.is-now .tl-card { border-color: var(--brand); }
.tl-item.is-past .tl-card { opacity: .78; }
.tl-card h3 { font-size: 1.1rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-date { font: 600 1.05rem/1.4 var(--font); color: var(--ink); }
.tl-date s { color: var(--muted); font-weight: 400; margin-right: 6px; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { padding: 0 18px 16px; }

/* ---------- Pessoas (comitê) ---------- */
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); list-style: none; padding: 0; margin: 0; }
.person { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem/1 var(--font-display); color: #fff; background: var(--brand); }
.person:nth-child(5n+2) .avatar { background: var(--accent); }
.person:nth-child(5n+3) .avatar { background: #7a5af5; }
.person:nth-child(5n+4) .avatar { background: #2f855a; }
.person:nth-child(5n+5) .avatar { background: #b8456e; }
.person b { display: block; color: var(--ink); font-weight: 600; line-height: 1.3; }
.person div span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- Programação ---------- */
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 14px; overflow-x: auto; margin-bottom: 20px; }
.tab { flex: 1 0 auto; border: 0; background: none; padding: 10px 16px; border-radius: 10px; cursor: pointer; font: 600 .95rem/1.2 var(--font); color: var(--muted); text-align: center; }
.tab small { display: block; font-weight: 500; font-size: .78rem; margin-top: 2px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.schedule { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .schedule { grid-template-columns: repeat(3, 1fr); }
  .schedule-tabs { display: none; }
  .schedule .day[hidden] { display: block; }
}
.day-head { padding: 14px 18px; border-radius: var(--radius) var(--radius) 0 0; color: var(--ink); border: 1px solid var(--line); border-bottom: 0; }
.day-head b { display: block; font: 700 1.1rem/1.2 var(--font-display); }
.day-head span { font-size: .9rem; font-style: italic; }
.day[data-color="violet"] .day-head { background: var(--violet-soft); }
.day[data-color="amber"] .day-head { background: var(--amber-soft); }
.day[data-color="green"] .day-head { background: var(--green-soft); }
.agenda { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); overflow: hidden; }
.slot { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); margin: 0; }
.slot:first-child { border-top: 0; }
.slot time { font: 600 .82rem/1.5 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.slot-title { color: var(--ink); font-weight: 500; line-height: 1.4; }
.slot-title a { color: inherit; }
.slot-code { display: inline-block; font: 700 .72rem/1 var(--font); padding: 4px 6px; border-radius: 5px; margin-right: 6px; background: var(--ink); color: var(--surface); vertical-align: 1px; }
.slot.k-break { background: var(--surface-2); }
.slot.k-break .slot-title { color: var(--muted); font-weight: 400; font-size: .94rem; }
.slot.k-plenary { box-shadow: inset 4px 0 0 var(--rose); }
.slot.k-poster { box-shadow: inset 4px 0 0 var(--muted); }
.day[data-color="violet"] .slot.k-session { box-shadow: inset 4px 0 0 var(--violet); }
.day[data-color="amber"] .slot.k-session { box-shadow: inset 4px 0 0 var(--amber); }
.day[data-color="green"] .slot.k-session { box-shadow: inset 4px 0 0 var(--green); }

.search { position: relative; margin-bottom: 16px; }
.search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 1rem var(--font); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; color: var(--muted); }
.posters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.poster { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; }
.poster b { display: block; color: var(--ink); font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.poster span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.poster mark { background: color-mix(in srgb, var(--brand) 30%, transparent); color: inherit; border-radius: 3px; }
.result-count { font-size: .9rem; color: var(--muted); margin: -4px 0 14px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Edições anteriores ---------- */
.edition { display: grid; gap: 22px; grid-template-columns: 1fr; padding: 28px; }
@media (min-width: 760px) { .edition { grid-template-columns: 150px 1fr; } }
.edition-year { font: 700 3rem/1 var(--font-display); color: var(--brand); }
.edition-year small { display: block; font: 600 .8rem/1.3 var(--font); color: var(--muted); letter-spacing: .04em; margin-top: 6px; }
.edition h2 { font-size: 1.5rem; }
.clips { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 16px; }
.clip { display: block; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: var(--ink); }
.clip:hover { border-color: var(--brand); color: var(--ink); }
.clip small { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.clip span { font-weight: 500; line-height: 1.4; }

/* ---------- Local ---------- */
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.address { font-style: normal; font-size: 1.05rem; color: var(--ink); line-height: 1.6; }

/* ---------- Programa (imagem) ---------- */
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.figure img { width: 100%; height: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #d2652b 100%); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 56ch; }
.cta-band .btn-secondary { border-color: transparent; }
.cta-band .btn-light { background: rgba(255,255,255,.18); }

/* ---------- Parceiros ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; list-style: none; padding: 0; margin: 0; }
.partners li { margin: 0; }
.partners a { display: grid; place-items: center; width: 168px; height: 84px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .2s, box-shadow .2s; }
.partners a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.partners img { max-height: 54px; width: auto; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); padding: 56px 0 28px; margin-top: 0; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #08121a; } }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--brand); color: #fff; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.55); }

/* copiar e-mail */
.copy { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copy[data-copied]::after { content: attr(data-copied); font-size: .78rem; background: var(--ok); color: #fff; padding: 2px 6px; border-radius: 5px; text-decoration: none; }

/* 404 */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page b { font: 700 6rem/1 var(--font-display); color: var(--brand); display: block; }

/* animação de entrada */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media print {
  .site-header, .site-footer, .notice, .nav-toggle, .btn, .tabs { display: none !important; }
  .page-head, .hero { background: none; color: #000; }
  .schedule .day[hidden] { display: block; }
}

/* ---------- Ajustes de responsividade ---------- */
.split > *, .grid > * { min-width: 0; }
.schedule-tabs .tab { flex: 1 1 0; min-width: 0; white-space: normal; padding: 10px 8px; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .chip { white-space: normal; }
  .slot { grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; }
  .slot time { font-size: .76rem; }
  .countdown div { min-width: 0; flex: 1; }
}

.slot time { white-space: nowrap; }
.inline-icon svg { width: 18px; height: 18px; display: inline; vertical-align: -3px; margin-right: 6px; }
