:root {
  --navy: #1a2a5e;
  --navy-profundo: #0e1733;
  --navy-hover: #142248;
  --verde: #4dc82f;
  --verde-escuro: #3aa622;
  --verde-texto: #2f7d14;
  --borda: #e5e7eb;
  --texto: #1f2937;
  --texto-secundario: #6b7280;
  --fundo: #f7f8fa;
  --branco: #ffffff;

  --ink: var(--navy);
  --ink-soft: var(--texto);
  --ink-faint: var(--texto-secundario);
  --bg: var(--fundo);
  --surface: var(--branco);
  --line: var(--borda);
  --accent: var(--verde);
  --accent-hover: var(--verde-escuro);
  --accent-ink: var(--navy-profundo);
  --accent-soft: #e3f7dc;
  --live: var(--verde-texto);
  --live-soft: #e3f7dc;
  --danger: #b3483f;
  --danger-soft: #f7e6e4;
  --amber-texto: #92400e;
  --amber-soft: #fef3c7;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(14, 23, 51, 0.06), 0 8px 24px -12px rgba(14, 23, 51, 0.18);
}

/* pesquisa.abvcap.com.br não tem modo escuro — este site também não deve
   mudar de aparência sozinho com o tema do sistema. O telão usa
   data-theme="dark" explicitamente (tela de projeção), não isto. */
:root[data-theme="dark"] {
  --ink: #eef1f7;
  --ink-soft: #c3c9d6;
  --ink-faint: #8891a3;
  --bg: var(--navy-profundo);
  --surface: var(--navy);
  --line: #2c3d70;
  --accent-soft: rgba(77, 200, 47, 0.16);
  --live: var(--verde);
  --live-soft: rgba(77, 200, 47, 0.14);
  --danger: #e2897c;
  --danger-soft: rgba(179, 72, 63, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -12px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

.mono, .timestamp, .id-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }

/* Barra de marca ABVCAP: navy + filete verde, igual ao pesquisa.abvcap.com.br */
.site-topbar {
  background: var(--navy);
}

.site-topbar-inner {
  max-width: 640px;
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-toggle { display: flex; gap: 6px; }
.lang-flag {
  appearance: none;
  border: 1px solid transparent;
  background: none;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--verde);
  opacity: 0.55;
}
.lang-flag.active { opacity: 1; border-color: var(--verde); }

.site-topbar .brand-logo {
  height: 24px;
  width: auto;
  display: block;
  margin: 0;
}

.site-topbar-stripe {
  height: 4px;
  background: var(--verde);
}

.wrap {
  max-width: 640px;
  margin-inline: auto;
  padding: 32px 20px 64px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--verde-texto);
}

.header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.header h1 { font-size: 28px; }
.header p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.day-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.day-tab {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  background: var(--branco);
  color: var(--ink-soft);
  cursor: pointer;
}
.day-tab.active { background: var(--navy); color: var(--branco); border-color: var(--navy); }

.panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
}

.panel-row.is-live { border-left-color: var(--verde); }

.panel-row-disabled { cursor: default; }
.panel-row-disabled .time,
.panel-row-disabled .title-block { opacity: 0.65; }

.row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.evaluate-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--verde-texto);
  text-decoration: none;
  white-space: nowrap;
}
.evaluate-link:hover { text-decoration: underline; }

.panel-row .time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  min-width: 92px;
}

.panel-row .title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-row .title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.speakers {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0;
}

.header .speakers { margin-top: 2px; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag.live {
  background: var(--live-soft);
  color: var(--live);
  animation: tag-pulse 1.6s ease-in-out infinite;
}
.tag.soon { background: var(--amber-soft); color: var(--amber-texto); }
.tag.done { background: var(--line); color: var(--ink-faint); }

@keyframes tag-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .tag.live { animation: none; }
}

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.08s ease, opacity 0.15s ease;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-accent { background: var(--verde); color: var(--navy-profundo); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }
.btn-live { background: var(--verde); color: var(--navy-profundo); }
.btn-live:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover:not(:disabled) { background: rgba(26, 42, 94, 0.06); }
.btn-danger-ghost { background: var(--danger-soft); color: var(--danger); }
.btn-block { width: 100%; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

textarea, input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
}

textarea:focus, input[type="text"]:focus {
  outline: 2px solid var(--verde);
  outline-offset: 1px;
}

.field { margin-bottom: 18px; }
.hint { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

.footer-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: none;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

@media (max-width: 460px) {
  .panel-row { flex-wrap: wrap; }
  .panel-row .time { min-width: 0; }
}
