/* ============================================================
 * Sertão Tech — site styles
 * Component classes below are the CSS translation of the design
 * system's React components (Button, Card, Tag, Badge, Icon).
 * Everything else is page layout for the landing page.
 * ============================================================ */

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-page); color: var(--text-body); font-family: var(--font-body); overflow-x: hidden; }
img { max-width: 100%; }
a { text-decoration: none; }
section[id], div[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------- primitives ---------- */
.container { max-width: 1120px; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terra-700); /* terra-600 only hit 4.0:1 on band-sunken (sand-200) — bumped a step for AA */
  display: block;
}
.eyebrow--ink { color: var(--amber-300); }

.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* ---------- Button (DS: components/buttons/Button.jsx) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  border-radius: var(--radius-control);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--sm { height: 36px; padding: 0 18px; font-size: var(--text-sm); gap: 6px; }
.btn--md { height: 46px; padding: 0 26px; font-size: var(--text-base); gap: 8px; }
.btn--lg { height: 56px; padding: 0 34px; font-size: var(--text-lg); gap: 10px; }

.btn--primary { background: var(--brand-primary); color: var(--text-on-brand); }
.btn--primary:hover { background: var(--brand-primary-hover); color: var(--text-on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:active { background: var(--brand-primary-active); }

.btn--accent { background: var(--amber-500); color: var(--text-on-accent); }
.btn--accent:hover { background: var(--amber-400); color: var(--text-on-accent); box-shadow: var(--shadow-sm); }
.btn--accent:active { background: var(--amber-600); }

.btn--outline { background: transparent; color: var(--brand-ink); border-color: var(--espresso-800); }
.btn--outline:hover { background: var(--surface-hover); color: var(--brand-ink); }

/* outline-on-dark — the hero / CTA secondary action */
.btn--outline-ink { background: transparent; color: var(--sand-50); border-color: var(--sand-300); }
.btn--outline-ink:hover { background: var(--sand-50); color: var(--espresso-800); border-color: var(--sand-50); }

/* ---------- Card (DS: components/display/Card.jsx) ---------- */
.card {
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.card--badge { border: 2px solid var(--border-ink); box-shadow: var(--shadow-badge); }
.card--interactive { cursor: pointer; }
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card--badge.card--interactive:hover { box-shadow: 8px 8px 0 var(--border-ink); }

/* ---------- Tag (DS: components/display/Tag.jsx) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  white-space: nowrap;
}
.tag--terra  { background: var(--terra-100);  color: var(--terra-700); }
.tag--amber  { background: var(--amber-100);  color: var(--terra-700); } /* amber-600 only hit 3.65:1 on amber-100 */
.tag--cactus { background: var(--cactus-100); color: var(--cactus-600); }
.tag--agave  { background: var(--agave-100);  color: var(--agave-600); }

/* ---------- Badge (DS: components/display/Badge.jsx) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge--success-soft { background: var(--cactus-100); color: var(--cactus-600); }
.badge--danger-soft { background: var(--brick-100); color: var(--brick-600); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface-page) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
/* faixa das páginas de edições passadas (ex.: /2026) */
.edition-banner { background: var(--surface-accent); color: var(--text-on-accent); text-align: center; font-size: 14px; padding: 10px 16px; }
.edition-banner a { color: inherit; font-weight: 700; text-decoration: underline; }
.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 40px; display: block; }
.brand__word {
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--espresso-900);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.site-nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.site-nav__link:hover { background: var(--surface-hover); color: var(--text-strong); }
.site-nav__sep { width: 1px; height: 26px; background: var(--border-default); margin: 0 10px; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 2px solid var(--espresso-800);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--espresso-800);
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--surface-ink); overflow: hidden; }
.hero__glow {
  position: absolute; top: -180px; right: -100px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,125,14,0.32), rgba(216,125,14,0) 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  padding: 72px 40px 0;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.015em;
  color: var(--sand-50); margin: 18px 0 0;
}
.hero__title em { font-style: normal; color: var(--amber-400); }
.hero__title-sub {
  display: block; margin-top: 18px;
  font-family: var(--font-wordmark); font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 1.7vw, 18px); line-height: 1.35; letter-spacing: 0.05em;
  color: var(--amber-300);
}
.hero__lead {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: var(--text-on-ink-muted); margin: 22px 0 0; max-width: 520px;
}
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__support { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__support-label {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-on-ink-muted);
}
.pill-on-ink {
  border: 1.5px solid var(--border-on-ink); border-radius: var(--radius-pill);
  padding: 6px 14px; font-family: var(--font-display); font-weight: 600;
  font-size: 14px; color: var(--sand-100);
}
.hero__art { display: flex; justify-content: center; align-items: center; }
.hero__art img { width: min(100%, 360px); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }

.hero__facts {
  position: relative; max-width: 1120px; margin: 40px auto 0;
  padding: 34px 40px 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--border-on-ink);
}
.fact { display: flex; align-items: center; gap: 12px; }
.fact__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-md);
  background: rgba(246,197,108,0.14); color: var(--amber-300);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-on-ink);
}
.fact__k {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-on-ink-muted);
}
.fact__v {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--sand-50); margin-top: 2px;
}
.fact__v a {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--border-on-ink); text-underline-offset: 3px;
}
.fact__v a:hover { text-decoration-color: currentColor; }
.fact__note {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-on-ink-muted); margin-top: 2px;
}

/* ---------- generic section rhythm ---------- */
.section { padding: 84px 40px; }
.section--tight { padding: 80px 40px; }
.band-sunken { background: var(--surface-sunken); }
.band-ink { background: var(--surface-ink); }

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 40px); line-height: 1.08;
  margin: 14px 0 0; color: var(--text-strong);
}
.section-title--on-ink { color: var(--sand-50); }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 10px 0 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* per-section desktop column ratios — kept as classes (not inline styles) so the
   mobile/tablet media queries below can reset .two-col back to a single column */
.two-col--diferenciais { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.two-col--parcerias { grid-template-columns: 0.9fr 1.1fr; }
.two-col--inscricao { grid-template-columns: 1.15fr 0.85fr; }
.two-col--submissao { grid-template-columns: 0.95fr 1.05fr; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- sobre ---------- */
.prose { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin: 18px 0 0; }
.prose strong { color: var(--text-body); }

/* Inline links in body copy must not rely on color alone to read as links */
.prose a, .section-lead a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.prose a:hover, .section-lead a:hover { text-decoration-color: currentColor; }

/* ---------- icon chips inside cards ---------- */
.chip-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-ink);
}
.chip-icon--terra { background: var(--terra-100); color: var(--terra-700); }
.chip-icon--amber { width: 44px; height: 44px; flex-shrink: 0; background: var(--amber-100); color: var(--amber-600); }
.chip-icon--agave { width: 44px; height: 44px; background: var(--agave-100); color: var(--agave-600); }
.chip-icon--terra-sm { width: 44px; height: 44px; flex-shrink: 0; background: var(--terra-100); color: var(--terra-700); }
.chip-round-cactus {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--cactus-100); color: var(--cactus-600);
  display: inline-flex; align-items: center; justify-content: center;
}

.card-title { font-family: var(--font-display); font-size: 19px; margin: 16px 0 6px; color: var(--text-strong); }
.card-text { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 0; }

/* ---------- topics ---------- */
.topic { display: flex; align-items: center; gap: 14px; }
.topic h3 { font-family: var(--font-display); font-size: 19px; margin: 0; color: var(--text-strong); line-height: 1.15; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px; margin-bottom: 34px;
}

/* ---------- cabeçalho de página interna (/patrocinio, /palestrantes) ---------- */
.page-head { padding: 56px 40px 68px; }
.page-head__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 50px); line-height: 1.06; letter-spacing: -0.015em;
  color: var(--sand-50); margin: 16px 0 0;
}
.page-head .hero__actions { margin-top: 28px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-on-ink-muted); margin-bottom: 22px;
}
.breadcrumb a { color: var(--amber-300); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- agenda ---------- */
.agenda-head { padding: 72px 40px 40px; }
.agenda-body { padding: 8px 40px 84px; }
.agenda-list { display: flex; flex-direction: column; gap: 10px; }
.agenda-row {
  background: rgba(245,234,208,0.04);
  border: 1px solid var(--border-on-ink);
  border-radius: var(--radius-lg);
}
.agenda-row--highlight { background: rgba(216,125,14,0.12); border-color: rgba(246,197,108,0.45); }
.agenda-row--break { background: rgba(94,122,50,0.14); border-color: rgba(94,122,50,0.4); }
.agenda-row__inner {
  display: grid; grid-template-columns: 132px 1fr auto;
  align-items: center; gap: 22px; padding: 18px 24px;
}
.agenda-row__time {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  color: var(--amber-300); letter-spacing: 0.02em;
}
.agenda-row__title { font-family: var(--font-display); font-size: 19px; margin: 0; color: var(--sand-50); line-height: 1.2; }
.agenda-row__desc { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-on-ink-muted); max-width: 640px; }
.agenda-row__body { display: flex; align-items: center; gap: 14px; }
.agenda-row__avatar {
  display: block; width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius-pill); overflow: hidden;
  background: rgba(245,234,208,0.08);
  box-shadow: 0 0 0 1px var(--border-on-ink);
}
.agenda-row__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.agenda-row__avatars { display: flex; flex-shrink: 0; }
.agenda-row__avatars .agenda-row__avatar {
  border: 2px solid var(--surface-ink); box-shadow: none;
}
.agenda-row__avatars .agenda-row__avatar + .agenda-row__avatar { margin-left: -14px; }
.agenda-row__who {
  margin: 6px 0 0; font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em; color: var(--amber-300);
}

/* parallel track (minicursos running alongside the main stage) */
.agenda-track {
  border: 1px dashed rgba(246,197,108,0.45);
  border-radius: var(--radius-lg);
  background: rgba(46,122,111,0.10);
  padding: 18px 24px 20px;
}
.agenda-track__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.agenda-track__note { margin: 0; flex: 1 1 260px; font-size: 13px; line-height: 1.5; color: var(--text-on-ink-muted); }
.agenda-track__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agenda-track__item {
  background: rgba(245,234,208,0.05);
  border: 1px solid var(--border-on-ink);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.agenda-track__tag {
  display: block; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--agave-100);
}
.agenda-track__item .agenda-row__title { font-size: 17px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 11px;
  border-radius: var(--radius-pill); white-space: nowrap;
}
.chip--break { background: rgba(94,122,50,0.25); color: var(--cactus-100); }
.chip--talk { background: rgba(245,234,208,0.1); color: var(--text-on-ink-muted); }
.chip--gold { background: rgba(246,197,108,0.22); color: var(--amber-300); }
/* on light surfaces (e.g. inside .card) amber-300 fails contrast — swap to the tag--amber pairing */
.card .chip--gold { background: var(--amber-100); color: var(--terra-700); }
.chip--sponsor { background: rgba(216,125,14,0.2); color: var(--amber-300); }
.chip--micro { background: rgba(206,122,46,0.22); color: var(--terra-100); }
.chip--course { background: rgba(46,122,111,0.35); color: var(--agave-100); }
.agenda-note {
  margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-on-ink-muted);
}
.agenda-cta {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border-on-ink);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.agenda-cta__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-on-ink-muted); max-width: 520px; }
.agenda-cta__text strong { color: var(--sand-50); font-weight: 700; }

/* ---------- experience / contrapartidas rows ---------- */
.feature-row {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.feature-row h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; color: var(--text-strong); }
.feature-row p { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* ---------- sponsors table ---------- */
.sponsors-intro { text-align: center; margin-bottom: 40px; }
.sponsors-intro .section-lead { margin: 0 auto; max-width: 560px; }
.sponsor-table {
  max-width: 1000px; margin: 0 auto;
  background: var(--surface-card); border: 2px solid var(--border-ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-badge);
  overflow: hidden;
}
.sponsor-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(88px, 1fr)); }
.sponsor-grid + .sponsor-grid { border-top: 1px solid var(--border-subtle); }
.sponsor-head__label { padding: 24px 22px; display: flex; align-items: flex-end; }
.sponsor-head__cell {
  padding: 24px 14px 22px; text-align: center;
  border-left: 1px solid var(--border-subtle);
}
.sponsor-head__cell--gold { background: rgba(246,197,108,0.28); }
.sponsor-head__flag { height: 20px; margin-bottom: 6px; }
.sponsor-head__flag span {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--terra-700);
  background: var(--amber-300); border: 1px solid var(--border-ink);
  border-radius: var(--radius-pill); padding: 2px 9px;
}
.sponsor-head__medal {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--border-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.sponsor-head__medal--silver { background: var(--sand-300); color: var(--espresso-800); }
.sponsor-head__medal--gold   { background: var(--amber-300); color: var(--espresso-900); }
.sponsor-head__medal--bronze { background: var(--terra-400); color: #FFF8EC; }
.sponsor-head__name {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--text-strong); line-height: 1; margin: 10px 0 6px;
}
.sponsor-head__tagline { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); margin: 0; }

.sponsor-row__label {
  padding: 15px 22px; font-size: 14.5px; line-height: 1.4;
  color: var(--text-body); display: flex; align-items: center; text-wrap: pretty;
}
.sponsor-row__cell {
  padding: 15px 8px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--border-subtle);
}
.sponsor-row__cell--gold { background: rgba(246,197,108,0.14); }
.sponsor-grid--stripe .sponsor-row__label,
.sponsor-grid--stripe .sponsor-row__cell:not(.sponsor-row__cell--gold) { background: rgba(60,33,11,0.035); }
.yes {
  width: 24px; height: 24px; border-radius: 50%; background: var(--cactus-500);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.no { color: var(--text-muted); opacity: 0.35; font-size: 17px; line-height: 1; }
.sponsor-cta { text-align: center; margin-top: 36px; }
.sponsor-cta p { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }

/* ---------- sponsor logo wall ----------
 * Grid of sponsor logos, grouped by tier. Each tier is a <div class="logo-tier">
 * with a label plus a .logo-wall grid; the tier modifier only changes the tile
 * size, so adding a sponsor is a matter of pasting one .logo-card and dropping
 * the image in assets/patrocinadores/. See that folder's README for the rules
 * every logo file has to follow. */
.logo-tier + .logo-tier { margin-top: 40px; }
.logo-tier__head {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; justify-content: center;
}
.logo-tier__name {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted);
  margin: 0;
}
.logo-tier__rule { flex: 1; max-width: 120px; height: 1px; background: var(--border-subtle); }
/* Flex, não grid: com auto-fit uma cota de um patrocinador só esticava o card
 * por toda a largura do mural. Aqui o tile fica na largura da cota
 * (--logo-min), quantos houver, sempre centralizados. */
.logo-wall {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px; margin: 0 auto; padding: 0; list-style: none;
  max-width: var(--logo-wall-max, 1000px);
}
.logo-wall > li { display: flex; flex: 0 1 var(--logo-min, 200px); min-width: 0; }
/* Tier sizing: gold reads first, bronze/apoio sit quieter. --logo-h drives the
 * tile height so every logo in a row optically matches regardless of its own
 * aspect ratio.
 *
 * Os números são folgados de propósito: arquivo oficial de marca costuma trazer
 * a área de respiro embutida no viewBox (o do Programe Studio gasta um terço da
 * altura com isso), então o desenho renderiza menor que a caixa. Sem essa folga
 * uma cota alta acaba parecendo menor que uma cota abaixo dela. Ao trocar um
 * logo, confira a hierarquia no olho, não só o número. */
.logo-wall--gold   { --logo-min: 380px; --logo-h: 140px; --logo-wall-max: 860px; }
.logo-wall--silver { --logo-min: 300px; --logo-h: 116px; }
.logo-wall--bronze { --logo-min: 210px; --logo-h: 92px; }
/* 120px: os logos das comunidades são verticais (PHP PI 240x186, PHPWomen 240x309) */
.logo-wall--apoio  { --logo-min: 190px; --logo-h: 120px; --logo-wall-max: 900px; }

.logo-card {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: var(--logo-h); padding: 18px 22px;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.logo-card--gold { border: 2px solid var(--border-ink); box-shadow: var(--shadow-badge); }
a.logo-card:hover, a.logo-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
a.logo-card--gold:hover, a.logo-card--gold:focus-visible {
  border-color: var(--border-ink);
  box-shadow: 8px 8px 0 var(--border-ink);
}
.logo-card img {
  max-width: 100%; width: auto;
  max-height: calc(var(--logo-h) - 30px);
  object-fit: contain;
}
/* Fallback for a sponsor that hasn't sent artwork yet: the name renders as
 * type in the same tile, so the wall never shows a broken image. */
.logo-card__name {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--text-strong); text-align: center; line-height: 1.25; margin: 0;
  text-wrap: balance;
}
/* nomes de apoio costumam ser o nome inteiro do curso/comunidade, não uma
 * marca curta — um corpo menor evita quatro linhas num tile de 190px */
.logo-wall--apoio .logo-card__name { font-size: 15px; }
.logo-wall__empty {
  text-align: center; font-family: var(--font-mono); font-size: 13px;
  color: var(--text-muted); margin: 0;
}

/* screen-reader-only column labels for the sponsor table */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- institutions ---------- */
.pill-outline {
  border: 2px solid var(--border-ink); border-radius: var(--radius-pill);
  padding: 6px 14px; font-family: var(--font-display); font-weight: 600;
  font-size: 14px; color: var(--espresso-800); background: var(--surface-card);
}
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- inscrição ---------- */
.cta { background: var(--surface-ink); position: relative; overflow: hidden; }
.cta__glow {
  position: absolute; bottom: -200px; left: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(188,94,26,0.35), rgba(188,94,26,0) 64%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 46px); line-height: 1.05; margin: 14px 0 0; color: var(--sand-50);
}
.cta__lead { font-size: 18px; line-height: 1.6; color: var(--text-on-ink-muted); margin: 20px 0 0; max-width: 500px; }

.ticket img { height: 44px; display: block; }
.ticket__price-row { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 4px; flex-wrap: wrap; }
.ticket__price { font-family: var(--font-display); font-weight: 700; font-size: 46px; color: var(--terra-600); line-height: 1; }
.ticket__meta {
  margin: 0 0 18px; font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
}
.ticket__rule { height: 1px; background: var(--border-subtle); margin-bottom: 16px; }
.ticket__list { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.ticket__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-body); }
.ticket__list .icon { color: var(--cactus-500); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-ink-deep); color: var(--text-on-ink); padding: 56px 40px 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.site-footer__about { max-width: 340px; }
.site-footer__about p { margin-top: 16px; color: var(--text-on-ink-muted); font-size: 15px; line-height: 1.6; }
.site-footer__word { font-family: var(--font-wordmark); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--sand-50); }
.site-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer__cols h3 {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--amber-300); margin: 0 0 14px; font-weight: 700;
}
.site-footer__cols a,
.site-footer__cols div.static {
  display: block; color: var(--text-on-ink); font-family: var(--font-body);
  font-size: 15px; padding: 5px 0;
}
.site-footer__cols a:hover { color: var(--amber-300); }
.site-footer__apoio { display: flex; align-items: center; gap: 18px; }
.site-footer__apoio img { height: 48px; width: auto; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-on-ink);
}
.site-footer__bottom span { font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-muted); }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border: 1.5px solid var(--border-on-ink); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--sand-100);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.social a:hover { background: var(--sand-50); color: var(--espresso-800); }

/* ---------- steps — passo a passo numerado (página /caravanas) ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; max-width: 780px; }
.step {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 24px 26px;
  background: var(--surface-card); border: 2px solid var(--border-ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-badge-sm);
}
/* A linha liga um passo ao seguinte: deixa claro que é sequência, não lista solta. */
.step::after {
  content: ""; position: absolute; left: 47px; top: 100%; width: 2px; height: 18px;
  background: var(--border-default);
}
.step:last-child::after { display: none; }
.step__num {
  counter-increment: step;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--surface-brand); color: var(--text-on-brand);
  border: 2px solid var(--border-ink);
  font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1;
}
.step__num::before { content: counter(step); }
.step__title {
  font-family: var(--font-display); font-size: 20px; color: var(--text-strong);
  margin: 8px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.step__text { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0 0 10px; }
.step__text:last-child { margin-bottom: 0; }
.step__text a { color: var(--text-link); text-decoration: underline; }
.step__text a:hover { color: var(--text-link-hover); }
.step__hint {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-top: 12px;
  background: var(--surface-sunken); border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.5; color: var(--text-muted);
}
.step__hint svg { flex: none; margin-top: 2px; color: var(--terra-600); }

/* ---------- range de participantes (mínimo / máximo da caravana) ---------- */
.range-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.range-fact {
  padding: 22px 24px; text-align: center;
  background: var(--surface-card); border: 2px solid var(--border-ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-badge-sm);
}
.range-fact__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.range-fact__v { font-family: var(--font-display); font-size: clamp(34px, 6vw, 48px); line-height: 1; color: var(--text-strong); margin: 8px 0 4px; }
.range-fact__note { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 22px; font-family: var(--font-display); font-size: 17px; color: var(--text-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--terra-600); flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { background: var(--surface-hover); }
.faq summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.faq p { padding: 0 22px 20px; margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-body); }
.faq p a { color: var(--text-link); text-decoration: underline; }

/* ---------- home 2027 (fotos da 2ª edição e listas de espera) ---------- */
/* .hero__art img é feito pro selo (360px, drop-shadow); a foto ocupa a coluna toda. */
.hero__art .hero__photo {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-card); border: 2px solid var(--border-on-ink);
  filter: none; box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.photo { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); }
/* 4 colunas: a primeira foto ocupa 2x2 (a altura bate com as quatro pequenas
   ao lado) e as .photo--wide ocupam 2 colunas cada, fechando a última linha. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0 20px; }
.gallery .photo:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .photo--wide { grid-column: span 2; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.waitlist-card { display: flex; flex-direction: column; }
.waitlist-card .card-text { margin-bottom: 22px; }
.waitlist-card .btn { margin-top: auto; align-self: flex-start; }
/* After é à noite: painel escuro com o mesmo brilho do CTA final, pra não sumir
 * abaixo dos cards claros das listas de espera. */
.after {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 64px; padding: 56px 48px; text-align: center;
  background: var(--surface-ink); border-radius: var(--radius-card);
}
.after .cta__glow { z-index: -1; left: auto; right: -160px; top: -220px; bottom: auto; }
.after .cta__lead { margin: 16px auto 0; max-width: 560px; }
.after .photo-row { margin-top: 36px; }
.after .photo { border: 2px solid var(--border-on-ink); }
.after .hero__actions { justify-content: center; margin-top: 36px; }

/* ============================================================
 * Responsive — the design canvas is desktop-only (1200px);
 * these breakpoints are the site's own adaptation.
 * ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 32px 0; }
  .hero__art { order: -1; }
  .hero__art img { width: min(70%, 260px); }
  .hero__facts { grid-template-columns: repeat(2, 1fr); padding: 28px 32px 36px; }
  .section, .section--tight { padding: 64px 32px; }
  .page-head { padding: 44px 32px 56px; }
  .agenda-head { padding: 56px 32px 32px; }
  .agenda-body { padding: 8px 32px 64px; }
  .site-header__inner { padding: 0 32px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .speaker-grid.grid-4 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .site-footer { padding: 48px 32px 32px; }
}

@media (max-width: 760px) {
  .site-header__inner { height: 64px; padding: 0 20px; }
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px;
    background: var(--surface-page);
    border-bottom: 1px solid var(--border-subtle);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__sep { display: none; }
  .site-nav a.site-nav__link { padding: 12px 14px; font-size: 16px; }
  .site-nav .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }

  .hero__inner { padding: 40px 20px 0; }
  .hero__lead { font-size: 17px; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px 32px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions a { width: 100%; }

  .sponsor-cta .btn {
    width: 100%; height: auto; min-height: 56px;
    padding: 14px 20px; white-space: normal; text-align: center;
  }

  /* logo wall: 2 tiles per row on phones (1 for gold), so a logo never gets
     squeezed below a readable size */
  .logo-wall { gap: 12px; }
  .logo-wall > li { flex-basis: var(--logo-min-sm, 130px); }
  .logo-wall--gold { --logo-min-sm: 100%; --logo-h: 116px; }
  .logo-wall--silver { --logo-min-sm: 100%; --logo-h: 100px; }
  .logo-wall--bronze { --logo-min-sm: 200px; }
  .logo-wall--apoio { --logo-min-sm: 150px; }
  .logo-card { padding: 14px 16px; }

  .section, .section--tight { padding: 48px 20px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  /* celular: 2 colunas, as fotos grandes ocupam a linha inteira */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery .photo:first-child { grid-row: auto; }
  .waitlist-card .btn { align-self: stretch; }
  .after { padding: 40px 20px; }
  .after .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .speaker-grid.grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .section-head { align-items: flex-start; }

  .page-head { padding: 36px 20px 44px; }
  .agenda-head { padding: 44px 20px 24px; }
  .agenda-body { padding: 8px 20px 48px; }
  .agenda-row__inner { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .agenda-track { padding: 16px 18px; }
  .agenda-track__items { grid-template-columns: 1fr; }
  .agenda-row__desc { max-width: none; }
  .agenda-row__inner .chip { justify-self: start; }

  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .step::after { left: 37px; }
  .step__num { width: 36px; height: 36px; font-size: 17px; }
  .step__title { font-size: 18px; margin-top: 4px; }
  .range-facts { grid-template-columns: 1fr; }

  /* sponsor table: narrow tier columns, benefit label keeps the first column */
  .sponsor-grid { grid-template-columns: minmax(0, 1fr) repeat(3, 56px); }
  .sponsor-head__label { padding: 16px 14px; }
  .sponsor-head__cell { padding: 16px 6px; }
  .sponsor-head__name { font-size: 15px; }
  .sponsor-head__tagline { display: none; }
  .sponsor-head__flag { height: 16px; }
  .sponsor-head__flag span { font-size: 8px; padding: 1px 6px; }
  .sponsor-head__medal { width: 34px; height: 34px; }
  .sponsor-row__label { padding: 12px 14px; font-size: 13.5px; }
  .sponsor-row__cell { padding: 12px 4px; }

  .cta__lead { font-size: 16px; }
  .site-footer { padding: 40px 20px 28px; }
  .site-footer__cols { gap: 32px; }
}

/* ---------- speakers (palestrantes confirmados) ---------- */
.speaker-group { margin-top: 44px; }
.speaker-group__title {
  font-family: var(--font-display); font-size: 24px; margin: 8px 0 20px;
  color: var(--text-strong);
}
.speaker-grid { gap: 20px; align-items: start; }

/* O retrato manda no card: 4:5, sangrando até a borda, com a moldura do card
   por cima (o mesmo enquadramento do card de divulgação das palestras). */
.speaker { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.speaker__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--terra-100);
  border-bottom: 1px solid var(--border-subtle);
}
.speaker__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.speaker__photo--initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(44px, 7vw, 60px);
  font-weight: var(--fw-semibold); letter-spacing: 0.04em;
  color: var(--terra-700);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 60%),
    var(--terra-100);
}

.speaker__meta { display: flex; flex-direction: column; gap: 9px; padding: 18px 18px 20px; flex: 1; }
.speaker__meta .tag { align-self: flex-start; font-size: 11px; padding: 4px 10px; }
.speaker__name {
  font-family: var(--font-display); font-size: 19px; line-height: 1.15;
  margin: 0; color: var(--text-strong);
}
.speaker__role { margin: -4px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-subtle); }
/* o tema da palestra em destaque, como no card de divulgação */
.speaker__talk {
  margin: 3px 0 0; padding: 11px 12px;
  background: var(--surface-sunken); border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.45; color: var(--text-strong); font-weight: var(--fw-medium);
}
.speaker__bio { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.speaker__actions {
  margin-top: auto; padding-top: 6px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.speaker__more {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: var(--fw-semibold);
  color: var(--text-link); text-decoration: underline;
}
.speaker__more:hover { color: var(--text-link-hover); }
.speaker__linkedin {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: var(--fw-medium); color: var(--text-link);
}
.speaker__linkedin:hover { color: var(--text-link-hover); text-decoration: underline; }

/* no modal o mesmo retrato vira um quadrado compacto ao lado do nome */
.modal--speaker { max-width: 560px; }
.modal--speaker .modal__title { margin: 0 0 8px; }
.modal--speaker .speaker__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 36px; }
.modal--speaker .speaker__photo {
  width: 96px; flex-shrink: 0; aspect-ratio: 1 / 1;
  border: 0; border-radius: var(--radius-md); overflow: hidden;
}
.modal--speaker .speaker__photo--initials { font-size: 34px; }
.modal--speaker .speaker__talk { margin: 0 0 14px; font-size: 16px; }
.modal--speaker .modal__text { white-space: pre-line; }

/* ---------- modal ---------- */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31,19,5,0.55);
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
dialog.modal { width: calc(100% - 32px); margin: auto; color: inherit; }
dialog.modal::backdrop { background: rgba(31,19,5,0.55); backdrop-filter: blur(4px); }

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-badge);
  padding: 32px 28px 28px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.modal__close:hover { background: var(--surface-hover); color: var(--text-strong); }

.modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-strong);
  margin: 14px 0 10px;
}

.modal__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 12px;
}
.modal__text a { color: var(--text-link); text-decoration: underline; }
.modal__text a:hover { color: var(--text-link-hover); }

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ============================================================
 * GALERIA DE FOTOS (/fotos e /fotos/<ano>)
 * O lightbox é um <dialog> nativo: Esc, trava de foco e backdrop
 * vêm do navegador, o JS da página só troca a foto.
 * ============================================================ */

/* Hub: o card inteiro é link. */
.edicao-card { display: block; text-decoration: none; }

/* `.photo` traz `height: 100%` porque na .gallery da home a primeira foto
   precisa preencher duas linhas do grid. Aqui a foto é filha de um card que é
   item de grid: o card é esticado pela linha, ganha altura definida, e o 100%
   passa a valer a altura do card inteiro — a imagem cobria o título e o texto.
   `height: auto` devolve o controle pro aspect-ratio. */
.edicao-card__capa { height: auto; margin-bottom: 14px; }
.edicao-card .eyebrow { display: block; margin-top: 12px; }

/* Grade uniforme — ao contrário da .gallery da home, aqui nenhuma foto tem
   destaque: a 1ª não é mais importante que a 10ª. */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 34px 0 8px;
}

.gal-item { position: relative; margin: 0; }

/* O thumbnail inteiro é o botão de ampliar. */
.gal-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-card);
}
.gal-open:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.gal-dl {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-strong);
  background: rgba(255,255,255,0.92);
  border: 2px solid var(--border-ink);
  border-radius: 999px;
  box-shadow: var(--shadow-badge);
  /* No touch não existe hover, então o ícone fica sempre visível; no desktop
     ele aparece ao passar o mouse ou receber foco pelo teclado. */
}
.gal-dl:hover { background: #fff; transform: translateY(-1px); }
.gal-dl:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

@media (hover: hover) {
  .gal-dl { opacity: 0; transition: opacity 140ms ease, transform 140ms ease; }
  .gal-item:hover .gal-dl,
  .gal-item:focus-within .gal-dl { opacity: 1; }
}

/* Lightbox */
dialog.lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  color: inherit;
  background: var(--surface-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-card);
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(31,19,5,0.8); backdrop-filter: blur(4px); }

.lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(94vh - 84px);
  object-fit: contain;
  border-radius: calc(var(--radius-card) - 2px) calc(var(--radius-card) - 2px) 0 0;
  background: var(--surface-ink);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}
.lightbox__cap { margin: 0; font-size: 0.9rem; line-height: 1.4; }

.lightbox__btn {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-strong);
  background: rgba(255,255,255,0.92);
  border: 2px solid var(--border-ink);
  border-radius: 999px;
  cursor: pointer;
}
.lightbox__btn:hover { background: #fff; }
.lightbox__btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.lightbox__close { top: -14px; right: -14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: -14px; }
.lightbox__nav--next { right: -14px; }

/* O <dialog> modal já bloqueia o clique, mas não a rolagem do fundo. */
html:has(dialog[open]) { overflow: hidden; }

@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  dialog.lightbox { width: calc(100vw - 28px); }
  .lightbox__close { top: 8px; right: 8px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- trilhas 2027: mesmo card do kit (midia-kit.css: .track) ---------- */
.tracks { margin-top: 18px; }
.t-principal { --track: var(--terra-600); --track-fg: var(--text-on-brand); }
.t-robotica { --track: var(--amber-500); --track-fg: var(--espresso-900); }
.t-negocios { --track: var(--espresso-800); --track-fg: var(--sand-100); }
.t-senior { --track: var(--cactus-600); --track-fg: var(--sand-50); }
.track { display: flex; flex-direction: column; overflow: hidden; background: var(--surface-card); border: 2px solid var(--border-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-badge); }
.track-head { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--track); color: var(--track-fg); }
.track-head .eyebrow { color: inherit; opacity: 0.8; }
.track-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0; color: inherit; }
.track-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.track-body__text { font-size: 15px; line-height: 1.55; color: var(--text-body); margin: 0; }
.track-body .eyebrow { margin-top: auto; padding-top: 8px; color: var(--text-muted); }
.track-body__small { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* ---------- faixas de números de /patrocinio e da home 2027 ---------- */
/* No fim do arquivo para vencer o `.range-facts { 1fr }` do celular. */
.range-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.range-facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.range-facts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .range-facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .range-facts--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .range-facts--3 { grid-template-columns: 1fr; }
  .range-facts--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- propriedades 2027: "tela" de programa do kit (midia-kit.css: .screen) ---------- */
.props { gap: 24px; }
.prop { display: flex; flex-direction: column; gap: 22px; }
.prop-screen {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 16 / 9; padding: 48px 24px 36px; overflow: hidden; text-align: center;
  background: var(--espresso-900); border: 2px solid var(--amber-300); border-radius: var(--radius-card);
  box-shadow: 6px 6px 0 var(--terra-600);
}
.prop-screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--terra-600); }
.prop-screen__top { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; }
.prop-rec, .prop-vaga, .prop-presented { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.prop-rec { display: flex; align-items: center; gap: 8px; color: var(--sand-100); }
.prop-rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brick-500); animation: prop-rec 1.6s steps(1) infinite; }
@keyframes prop-rec { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .prop-rec::before { animation: none; } }
.prop-vaga { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--amber-300); color: var(--espresso-900); font-weight: 700; }
.prop-program { margin: 0; font-family: var(--font-wordmark); font-weight: 800; line-height: 0.9; text-transform: uppercase; color: var(--amber-300); font-size: clamp(40px, 6vw, 72px); }
.prop-program small { display: block; margin-bottom: 0.5em; font-size: 0.3em; letter-spacing: 0.24em; color: var(--sand-100); }
.prop-presented { margin: 4px 0 0; color: var(--text-on-ink-muted); }
.prop-slot { margin: 0; padding: 8px 28px; border: 2px dashed var(--amber-300); border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--sand-100); }
.prop-body { display: flex; flex-direction: column; gap: 10px; }
.prop-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-on-ink); font-size: 15px; line-height: 1.45; }
.prop-list li { display: flex; gap: 10px; align-items: flex-start; }
.prop-list .icon { flex-shrink: 0; margin-top: 3px; color: var(--amber-300); }
.prop-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.prop-list--light { color: var(--text-body); }
.prop-list--light .icon { color: var(--cactus-600); }
.prop-common { margin-top: 36px; padding: 26px 28px; border: 1px solid rgba(246,197,108,0.35); border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 16px; }
.prop-plus { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-300); }
.prop-senior { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 360px) 1fr; }
.prop-senior__lead { margin: 0; font-size: 15px; line-height: 1.5; opacity: 0.9; }
.prop-senior .track-body { padding: 26px 28px; }
@media (max-width: 760px) {
  .prop-list--grid { grid-template-columns: 1fr; }
  .prop-senior { grid-template-columns: 1fr; }
  .prop-common { padding: 22px 20px; }
  .prop-screen { aspect-ratio: auto; padding: 64px 20px 34px; }
}
