/* GERADO por _ferramentas/gerar_paletas.py a partir de ../Website_DoCEIS2027_proposta_design_CfP/css/doceis27.css.
   Não editar à mão: as cores vêm de variáveis, definidas aqui (original) e em paletas.css.
   =========================================================================
   DoCEIS 2027 — design proposal based on the Call for Papers poster language
   Night-blue gradient · gold accents · Montserrat · dash headings · pills ·
   date tiles · dot grids · white sponsor band.
   (Proposal only — not a final choice.)
   ========================================================================= */

:root {
  --night: #0f1152;
  --navy: #1a1d74;
  --indigo: #252a9b;
  --royal: #2f33b4;
  --violet: #5a2b9c;
  --panel: rgba(var(--rgb-panel), 0.72);
  --panel-solid: #11135a;
  --gold: #f4b43c;
  --gold-deep: #e39f22;
  --ink: #0d0f42;
  --magenta: #9a35d6;
  --magenta-deep: #7a23b8;
  --white: var(--surface);

  /* --- tokens para as paletas (valores = proposta original) --- */
  --fg: #ffffff;               /* texto sobre o fundo */
  --rgb-fg: 255, 255, 255;
  --on-dark: #ffffff;          /* texto sobre --night / --ink / --magenta */
  --on-accent: var(--ink);     /* texto sobre o dourado */
  --surface: #ffffff;          /* caixas brancas: logótipo, banda de patrocinadores, cartões brancos */
  --rgb-deep: 5, 6, 40;        /* sombras */
  --rgb-base: 14, 16, 78;      /* cabeçalho fixo e menu móvel */
  --rgb-panel: 10, 12, 60;     /* fundos translúcidos */
  --rgb-tint: 20, 22, 107;     /* véu sobre as fotos */
  --rgb-accent: 244, 180, 60;
  --rgb-accent2: 154, 53, 214;
  --glow1: var(--glow1);
  --glow2: var(--glow2);
  --bg-1: #14166b; --bg-2: #1b1f80; --bg-3: #2427a0;
  --accent-hover: #ffc85c;
  --link-hover: #ffd27a;
  --ink-hover: #1b1e66;
  --ink-soft: #3a3d6b; --ink-mute: #4a4d7a; --ink-faint: #5a5d86;
  --rule-light: #d9dbe9;
  --photo-bg: #e9eaf5;
  --text: var(--fg);
  --muted: rgba(var(--rgb-fg), 0.8);
  --soft: rgba(var(--rgb-fg), 0.62);
  --line: rgba(var(--rgb-fg), 0.16);
  --pill: rgba(var(--rgb-accent), 0.75);
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 92px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy);
  background-image:
    radial-gradient(55% 35% at 0% 48%, var(--glow1), transparent 70%),
    radial-gradient(45% 30% at 100% 82%, var(--glow2), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--on-accent); padding: 10px 16px;
  font-weight: 700; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(var(--rgb-base), 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  padding: 14px 22px 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 10px 30px rgba(var(--rgb-deep), 0.35);
  height: calc(var(--header-h) + 22px);
  transition: height .25s ease, padding .25s ease;
  flex-shrink: 0;
}
.brand img { height: 100%; width: auto; }
.site-header.is-scrolled .brand { height: var(--header-h); padding: 10px 18px 12px; }

/* DoCEIS 2027: logótipo grande no topo da Home, que encolhe com o scroll (js/site.js põe .has-big-brand e --brand-k, 1 → 0).
   Escala a partir do canto superior esquerdo, sem mexer no resto do cabeçalho. */
:root { --brand-grow: .8; }
.site-header.has-big-brand .brand {
  transform-origin: left top;
  transform: scale(calc(1 + var(--brand-grow) * var(--brand-k, 0)));
}
.site-header.has-big-brand.brand-ready .brand { transition: height .25s ease, padding .25s ease, transform .12s linear; }
@media (max-width: 900px) { :root { --brand-grow: .35; } }
/* o texto do topo da Home começa abaixo do logótipo grande (altura do logótipo × (1 + crescimento) + 36 px) */
.hero:not(.hero--page) { padding-top: max(calc(var(--header-h) + 80px), calc((var(--header-h) + 22px) * (1 + var(--brand-grow)) + 36px)); }
@media (prefers-reduced-motion: reduce) { .site-header.has-big-brand.brand-ready .brand { transition: none; } }

.nav { align-self: center; }
.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-link,
.nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.95rem/1 var(--font); letter-spacing: 0.01em;
  color: var(--fg); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  padding: 12px 14px; border-radius: 999px;
}
.nav-link:hover,
.nav-toggle-sub:hover,
.nav-toggle-sub[aria-expanded="true"] { background: rgba(var(--rgb-fg), 0.1); color: var(--fg); }
.nav-link[aria-current="page"],
.has-sub.is-current > .nav-toggle-sub { color: var(--gold); }
.nav-toggle-sub svg { width: 12px; height: 12px; transition: transform .2s; }
/* Menu sobre a foto do topo: fundo translúcido na cor da página para o texto manter contraste
   (ex.: "Home" dourado sobre o céu dourado da Noite & Ouro). Desaparece quando o cabeçalho fica sólido. (2026-11-09) */
@media (min-width: 901px) {
  .site-header .nav-list {
    padding: 4px; border-radius: 999px;
    background: rgba(var(--rgb-base), 0.62);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: background-color .25s ease, box-shadow .25s ease;
  }
  .site-header.is-scrolled .nav-list { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav-toggle-sub[aria-expanded="true"] svg { transform: rotate(180deg); }

.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--panel-solid); border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: none;
}
.sub.is-open { display: block; }
.sub a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--fg); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.sub a:hover { background: rgba(var(--rgb-fg), 0.08); }
.sub a[aria-current="page"] { color: var(--gold); }

.burger {
  display: none; align-self: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(var(--rgb-fg), 0.08); border: 1px solid var(--line);
  color: var(--fg); cursor: pointer; align-items: center; justify-content: center;
}
.burger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand { padding: 10px 14px 12px; }
  .burger { display: inline-flex; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: rgba(var(--rgb-base), 0.98); border-top: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.is-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .nav-toggle-sub { width: 100%; justify-content: space-between; padding: 14px 12px; border-radius: 10px; font-size: 1rem; }
  .sub { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; margin: 2px 0 8px 12px; background: transparent; }
}

/* ---------- Hero ------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--header-h) + 80px) 0 72px;
  min-height: min(100vh, 920px);
  display: flex; align-items: flex-end;
}
.hero-photo {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0;
  width: min(68%, 1100px);
  background: center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 38%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 38%);
  mask-composite: intersect;
  opacity: .95;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--rgb-tint), .15), rgba(var(--rgb-tint), .35));
}
.hero--page { min-height: 0; padding: calc(var(--header-h) + 90px) 0 56px; }
.hero--page .hero-photo { width: min(60%, 900px); opacity: .7; }

.display {
  margin: 0 0 22px;
  font-weight: 800; font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: .9; letter-spacing: -0.035em;
  text-shadow: 0 6px 30px rgba(var(--rgb-deep), 0.35);
}
.hero--page .display { font-size: clamp(2.8rem, 7.5vw, 6rem); }
/* Home: o tema é o título (o logótipo já diz "DoCEIS 2027") */
.display--theme { font-size: clamp(2.1rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -0.03em; max-width: 14ch; margin-bottom: 30px; }
.hero .eyebrow { max-width: 46ch; line-height: 1.5; }
.theme-banner--meta { display: inline-block; max-width: 100%; }
@media (max-width: 680px) { .theme-banner--meta .theme-banner__meta { grid-template-columns: auto auto; } .theme-banner--meta .theme-banner__meta > * { padding: 11px 16px; } }
.display span { display: block; }
.display .gold { color: var(--gold); }
.lead {
  font-size: clamp(1.1rem, 2.1vw, 1.55rem); font-weight: 500; line-height: 1.35;
  margin: 0 0 40px; max-width: 30ch;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}

/* Theme banner (white bar with gold edge + gold/navy info strip) */
.theme-banner { max-width: 760px; box-shadow: 0 18px 40px rgba(var(--rgb-deep), 0.35); }
.theme-banner__title {
  margin: 0; background: var(--white); color: var(--ink);
  border-left: 10px solid var(--gold);
  padding: 18px 28px;
  font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em;
}
.theme-banner__meta { display: grid; grid-template-columns: auto 1fr; }
.theme-banner__meta > * {
  padding: 13px 28px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  font-size: clamp(.9rem, 1.6vw, 1.12rem);
}
.theme-banner__date { background: var(--gold); color: var(--on-accent); }
.theme-banner__place { background: var(--night); color: var(--on-dark); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 700 .95rem/1 var(--font); letter-spacing: .02em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--on-accent); }
.btn--gold:hover { background: var(--accent-hover); color: var(--ink); }
.btn--ghost { border-color: rgba(var(--rgb-fg), .55); color: var(--fg); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-hover); color: var(--on-dark); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections -------------------------------------------------- */
.section { position: relative; padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding-top: 24px; }
.section + .section { padding-top: 0; }

.dash-title {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 28px; font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2;
}
.dash-title::before {
  content: ""; width: 34px; height: 6px; border-radius: 6px; background: var(--gold); flex-shrink: 0;
}
.dash-title--ink { color: var(--ink); }
.dash-title--ink::before { background: var(--ink); }
.dash-title--sm { font-size: 1.3rem; margin-bottom: 18px; }

.prose { color: var(--muted); font-size: 1.05rem; max-width: 72ch; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--fg); }
.intro { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 80ch; line-height: 1.75; margin: 0; }
.intro strong { color: var(--fg); }
.intro + .intro { margin-top: 1em; } /* DoCEIS 2027: About com vários parágrafos */

/* Dot grid decoration */
.dots { position: relative; }
.dots::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 220px; height: 200px; right: 0; top: 10px;
  background-image: radial-gradient(rgba(var(--rgb-fg), .32) 1.6px, transparent 1.8px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 85%);
  mask-image: linear-gradient(225deg, #000 20%, transparent 85%);
}
.dots--left::after { left: 0; right: auto; top: auto; bottom: 0; -webkit-mask-image: linear-gradient(45deg, #000 20%, transparent 85%); mask-image: linear-gradient(45deg, #000 20%, transparent 85%); }

/* ---------- Topic pills ---------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.pills li {
  padding: 9px 20px; border: 1.5px solid var(--pill); border-radius: 999px;
  font-size: .98rem; font-weight: 500; color: var(--fg);
  background: rgba(var(--rgb-panel), 0.18);
}

/* ---------- Numbered list (submission types) ------------------------- */
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numbered > li {
  counter-increment: n; position: relative;
  padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line);
}
.numbered > li:first-child { padding-top: 0; }
.numbered > li:last-child { border-bottom: 0; }
.numbered > li::before {
  content: counter(n); position: absolute; left: 4px; top: 16px;
  font-weight: 800; font-size: 1.3rem; color: var(--gold);
}
.numbered > li:first-child::before { top: -2px; }
.numbered h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--fg); }
.numbered .pages {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--gold); color: var(--on-accent); font-size: .75rem; font-weight: 800; letter-spacing: .04em; vertical-align: middle;
}
.numbered p, .numbered ul { margin: 0; color: var(--muted); font-size: .97rem; }
.numbered ul { padding-left: 18px; }
.numbered ul li { margin: 3px 0; }
.numbered ul li::marker { color: var(--gold); }

/* ---------- Cards ----------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.stack { display: grid; gap: 18px; }

.card {
  border-radius: var(--radius); padding: 28px 30px;
  background: var(--panel); border: 1px solid rgba(var(--rgb-fg), .08);
  box-shadow: 0 18px 40px rgba(var(--rgb-deep), 0.25);
}
.card--gold { background: var(--gold); color: var(--on-accent); border: 0; }
.card--gold p { color: var(--on-accent); }
.card--white { background: var(--white); color: var(--ink); border: 0; }
.card--white p { color: var(--ink-soft); }
.card p { margin: 0 0 .6em; }
.card p:last-child { margin-bottom: 0; }

.chairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .97rem; }
.chairs b { font-weight: 700; color: var(--fg); }
.chairs span { color: var(--muted); }

.info-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.info-card small { flex-basis: 100%; font-size: .82rem; color: var(--ink-mute); }
.info-card a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.info-card a:hover { text-decoration: underline; }

/* ---------- Date tiles + timeline ----------------------------------- */
/* Horizontal timeline (desktop); vertical below 760px.
   States set by js/site.js: .is-past (passed), .is-next (closest upcoming), .is-now (conference running). */
.dates {
  --tile-h: 82px; --line: rgba(var(--rgb-fg), .28); --line-done: var(--gold);
  list-style: none; margin: 0; padding: 52px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; /* DoCEIS 2027: era 30px; espaço para o anel animado do próximo prazo */
}
.date {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 32px; padding: 0 10px; /* DoCEIS 2027: era 14px; o anel do próximo prazo não toca no texto */
}
/* line halves: ::before = left half, ::after = right half, centred on the tile */
.date::before,
.date::after {
  content: ""; position: absolute; z-index: 0; top: calc(var(--tile-h) / 2 - 2px); height: 4px; width: 50%;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}
.date::before { left: 0; }
.date::after { right: 0; }
.date:first-child::before,
.date:last-child::after { display: none; }
.date.is-past::before,
.date.is-past::after,
.date.is-next::before,
.date.is-now::before { background: var(--line-done); }

.tile {
  position: relative; z-index: 1;
  flex-shrink: 0; width: 76px; height: var(--tile-h); border-radius: 10px;
  background: var(--gold); color: var(--on-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(var(--rgb-deep), .3);
  transition: transform .2s ease;
}
.tile .m { font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.tile .d { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.tile--event { background: linear-gradient(160deg, var(--magenta), var(--magenta-deep)); color: var(--on-dark); }
.tile--event .d { font-size: 1.45rem; }
.date-text { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.date-label { font-size: .98rem; line-height: 1.3; color: var(--fg); }
.date-state { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* passed */
.date.is-past .tile {
  background: var(--panel-solid); color: rgba(var(--rgb-fg), .62);
  box-shadow: inset 0 0 0 2px rgba(var(--rgb-accent), .55);
}
.date.is-past .tile--event { box-shadow: inset 0 0 0 2px rgba(var(--rgb-accent2), .7); }
.date.is-past .tile::after {
  content: "✓"; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--on-accent); font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--navy);
}
.date.is-past .date-label { color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(var(--rgb-accent), .7); text-decoration-thickness: 2px; }
.date.is-past .date-state { color: var(--soft); }

/* next / now */
.date.is-next .tile,
.date.is-now .tile {
  transform: scale(1.14);
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--gold), 0 14px 34px rgba(var(--rgb-deep), .45);
  animation: pulse-ring 2.4s ease-out infinite;
}
.date.is-now .tile { box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--magenta), 0 14px 34px rgba(var(--rgb-deep), .45); animation: none; }
.date.is-next .date-label,
.date.is-now .date-label { font-weight: 700; }
.date.is-next .date-state,
.date.is-now .date-state {
  color: var(--on-accent); background: var(--gold); padding: 4px 10px; border-radius: 999px; letter-spacing: .06em;
}
.date.is-now .date-state { background: var(--magenta); color: var(--on-dark); }
.date-flag {
  position: absolute; z-index: 2; top: -52px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--gold), 0 0 0 7px rgba(var(--rgb-accent), .45), 0 14px 34px rgba(var(--rgb-deep), .45); }
  70%  { box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--gold), 0 0 0 20px rgba(var(--rgb-accent), 0), 0 14px 34px rgba(var(--rgb-deep), .45); }
  100% { box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--gold), 0 0 0 20px rgba(var(--rgb-accent), 0), 0 14px 34px rgba(var(--rgb-deep), .45); }
}

@media (max-width: 760px) {
  .dates { grid-template-columns: 1fr; padding: 0; }
  .date { flex-direction: row; align-items: center; text-align: left; gap: 20px; padding: 12px 0 12px 0; }
  .date.is-next, .date.is-now { gap: 36px; padding: 32px 0; } /* DoCEIS 2027: espaço para o anel animado */
  .date-text { align-items: flex-start; }
  .date::before,
  .date::after {
    left: calc(38px - 2px); right: auto; width: 4px; height: 50%;
    background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px);
  }
  .date::before { top: 0; }
  .date::after { top: 50%; }
  .date.is-past::before, .date.is-past::after, .date.is-next::before, .date.is-now::before { background: var(--line-done); }
  .date-flag { position: static; transform: none; order: -1; }
}

/* Cartaz e PDF da Call for Papers (placeholder até haver o de 2027) */
.cfp-files { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(24px, 4vw, 44px); align-items: center; margin-top: clamp(40px, 6vw, 64px); }
.poster-placeholder {
  aspect-ratio: 1 / 1.414; border-radius: var(--radius); border: 2px dashed var(--pill);
  background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center; color: var(--muted); box-shadow: 0 18px 40px rgba(var(--rgb-deep), .25);
}
.poster-placeholder b { color: var(--gold); font-size: 1.15rem; line-height: 1.2; }
.poster-placeholder small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.poster { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 34px rgba(var(--rgb-deep), .35); transition: transform .2s ease; } /* DoCEIS 2027: cartaz da CfP */
.poster:hover { transform: translateY(-3px); }
.poster img { display: block; width: 100%; height: auto; }
.cfp-files h3 { margin: 0 0 8px; font-size: 1.2rem; }
.cfp-files p { margin: 0 0 18px; color: var(--muted); }
@media (max-width: 560px) { .cfp-files { grid-template-columns: 1fr; } .poster-placeholder, .poster { max-width: 260px; } }
/* DoCEIS 2027: cartaz da CfP ao lado do Conference Scope (2026-11-12) */
.cfp-scope { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.cfp-scope .prose { max-width: 68ch; }
.cfp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cfp-actions .btn svg { width: 18px; height: 18px; }
.cfp-topics-title { margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 680px) { .cfp-scope { grid-template-columns: 1fr; } .cfp-scope .poster { max-width: 240px; } }


/* Countdown (home): compacta, no hero, ao lado da faixa data/Portugal */
.hero-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.countdown__units { display: flex; gap: 6px; margin: 0; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 62px; padding: 7px 6px 6px; border-radius: 10px;
  background: rgba(var(--rgb-panel), .55); border: 1px solid rgba(var(--rgb-fg), .1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cd-num { font-size: 1.45rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-lbl { margin-top: 3px; font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cd-live { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--magenta); color: var(--on-dark); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 560px) { .countdown, .countdown__units { width: 100%; } .countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); } .cd-unit { min-width: 0; } }

/* Submission System (Call for Papers) */
.submit-box { text-align: center; padding: clamp(28px, 4vw, 44px); }
.submit-box .dash-title { justify-content: center; }
.submit-box p { color: var(--muted); margin: 0 0 22px; }
.btn.is-soon { cursor: default; opacity: .75; }
.btn.is-soon:hover { transform: none; }

.footnote { margin: 22px 0 0; font-size: .92rem; color: var(--muted); }
.footnote strong { color: var(--fg); }

/* ---------- Media ----------------------------------------------------- */
.video-frame { border-radius: var(--radius); overflow: hidden; border: 4px solid var(--white); box-shadow: 0 18px 40px rgba(var(--rgb-deep), .35); background: #000; }
.video-frame video { width: 100%; display: block; }

/* ---------- People ---------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
/* DoCEIS 2027: professores em filas centradas (1 / 3 / 4); cada cartão com a largura de 1/4 da linha */
.people-rows { display: flex; flex-direction: column; gap: 20px; }
.people--row { display: flex; flex-wrap: wrap; justify-content: center; }
.people--row > .person { width: calc((100% - 3 * 20px) / 4); }
.person__also { margin: 2px 0 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); opacity: .8; } /* Conference Chair, discreto */
/* DoCEIS 2027: etiqueta ao lado de um título (ex.: "Preliminary List") */
.title-tag { display: inline-block; vertical-align: middle; margin-left: 0; padding: 4px 12px; border: 1.5px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.person {
  background: var(--panel); border: 1px solid rgba(var(--rgb-fg), .08);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.person__photo { position: relative; box-sizing: content-box; aspect-ratio: 1 / 1; overflow: hidden; background: var(--photo-bg); border-bottom: 5px solid var(--gold); }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.person__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.person__name { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.person__role { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.person__pos { display: block; margin-top: 3px; font-weight: 600; letter-spacing: .08em; color: var(--text); opacity: .8; } /* DoCEIS 2027: cargo (Chair / Co-Chair) numa linha própria, por baixo do grupo */
.person__links { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.person__links a {
  font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--fg);
  border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px;
}
.person__links a:hover { border-color: var(--gold); color: var(--gold); }
.person__links .ico-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.person__links .ico-link svg { width: 16px; height: 16px; }

/* estudantes: cartões individuais (placeholder até haver fotos) */
.people--students .person__body { padding-bottom: 20px; }
.people--students .person__name { font-size: .98rem; }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team h3 { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.team ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }

.group-photo { border-radius: var(--radius); overflow: hidden; border: 4px solid var(--white); margin-bottom: 10px; background: var(--photo-bg); }
.caption { font-size: .88rem; color: var(--soft); font-style: italic; margin: 0 0 28px; }

/* Program committee list */
.pc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.search {
  flex: 1 1 260px; max-width: 360px; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--pill); background: rgba(var(--rgb-panel), .35); color: var(--fg);
  font: 500 .95rem var(--font);
}
.search::placeholder { color: var(--soft); }
.count { font-size: .9rem; color: var(--muted); }
.pc-list { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 32px; }
.pc-list li { break-inside: avoid; padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.pc-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 3px; border-radius: 3px; background: var(--gold); }
.pc-list li[hidden] { display: none; }
/* bandeiras do país (SVG de images/flags, flag-icons, MIT), em vez do traço */
.pc-list--flags li { padding-left: 32px; }
.pc-list--flags li::before { display: none; }
.pc-list--flags .flag { position: absolute; left: 0; top: 12px; width: 20px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(var(--rgb-fg), .22), 0 1px 3px rgba(0, 0, 0, .3); }

/* Hall of fame */
.hof-year {
  display: grid; grid-template-columns: 150px 1fr; gap: 40px; align-items: center;
  padding: 40px 44px; margin-bottom: 24px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid rgba(var(--rgb-fg), .08);
  box-shadow: 0 18px 40px rgba(var(--rgb-deep), .25);
}
.year-tile {
  width: 140px; border-radius: 12px; background: var(--gold); color: var(--on-accent);
  text-align: center; padding: 16px 8px; box-shadow: 0 10px 24px rgba(var(--rgb-deep), .3);
}
.year-tile .m { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; }
.year-tile .d { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.keynotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; }
.keynote { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.keynote img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 4px solid var(--gold); background: var(--photo-bg); flex-shrink: 0; box-shadow: 0 12px 28px rgba(var(--rgb-deep), .35); }
.keynote span { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }

/* Previous editions */
.editions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.edition a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 20px 20px 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--panel); border: 1px solid rgba(var(--rgb-fg), .08); color: var(--fg);
  transition: transform .15s, border-color .15s;
}
.edition a:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--fg); }
.edition .lbl { font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: var(--soft); }
.edition .yr { font-size: 2.2rem; font-weight: 800; line-height: 1.05; color: var(--gold); letter-spacing: -0.02em; }
.edition .go { margin-top: 10px; font-size: .85rem; font-weight: 700; }
.edition .go::after { content: " →"; color: var(--gold); }
/* DoCEIS 2027: arquivos das edições anteriores ainda indisponíveis (2026-11-13) — cartão sem link e "Archive coming soon" */
.editions-note { margin: -6px 0 22px; color: var(--muted); font-size: .95rem; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
/* 2026-11-13: um só aviso "Coming soon" para todos os arquivos (em vez de um por cartão) */
.soon-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--on-accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.edition a.is-soon { cursor: default; }
.edition a.is-soon:hover { transform: none; border-color: inherit; }
.edition a.is-soon .go { font-weight: 600; opacity: .75; }
.edition a.is-soon .go::after { content: none; }
/* 2026-11-13: em tons de cinzento, para se perceber que estão indisponíveis */
.edition a.is-soon { filter: grayscale(1); opacity: .55; box-shadow: none; border-style: dashed; }

/* ---------- Footer ---------------------------------------------------- */
.sponsors { background: var(--white); color: var(--ink); border-top: 6px solid var(--gold); padding: 34px 0; }
.sponsors .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.sponsors h2 { margin: 0 0 16px; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.sponsors h2 small { font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: none; font-style: italic; color: var(--ink-faint); }
.sponsors .group + .group { border-left: 1px solid var(--rule-light); padding-left: 36px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.logos a { display: block; }
.logos img { height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: saturate(1); transition: transform .15s; }
.logos a:hover img { transform: scale(1.05); }

.site-footer { background: var(--night); padding: 44px 0 26px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.contact-list li { display: flex; align-items: flex-start; gap: 11px; line-height: 1.45; }
.contact-list .ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--gold); }
.contact-list a { white-space: nowrap; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--soft); }
.draft-tag { display: inline-flex; align-items: center; gap: 8px; }
.draft-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .people { grid-template-columns: repeat(3, 1fr); }
  .people--row > .person { width: calc((100% - 2 * 20px) / 3); }
  .hof-year { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .year-tile { width: auto; display: inline-flex; align-items: baseline; gap: 12px; padding: 10px 20px; justify-self: start; }
  .year-tile .d { font-size: 2rem; }
  .teams { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-2, .sponsors .wrap { grid-template-columns: 1fr; }
  .sponsors .group + .group { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-light); padding-top: 24px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .hero-photo { width: 100%; opacity: .55; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 60%); mask-image: linear-gradient(0deg, transparent 0%, #000 60%); }
  .hero--page .hero-photo { width: 100%; opacity: .4; } /* telemóvel: foto a toda a largura, sem a aresta vertical (2026-11-09) */
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 90px); }
}
@media (max-width: 680px) {
  .people { grid-template-columns: 1fr 1fr; gap: 14px; }
  .people-rows { gap: 14px; }
  .people--row > .person { width: calc((100% - 14px) / 2); }
  .grid-cards { grid-template-columns: 1fr; }
  .theme-banner__meta { grid-template-columns: 1fr; }
  .theme-banner__title { padding: 16px 20px; border-left-width: 8px; }
  .theme-banner__meta > * { padding: 11px 20px; }
  .hof-year { padding: 26px 20px; }
  /* telemóvel: 2 por linha e a última linha centrada (ex.: 3 oradores -> o 3.º fica ao centro) (2026-11-09) */
  .keynotes { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 12px; }
  .keynotes > .keynote { flex: 0 0 calc(50% - 6px); }
  .keynote img { width: 104px; height: 104px; }
  .keynote span { font-size: .95rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .dots::after { width: 140px; height: 140px; opacity: .6; }
}
@media (max-width: 400px) {
  .people { grid-template-columns: 1fr; }
  .people--row > .person { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Focus ring on light surfaces (gold would be ~1.8:1 on white) */
.sponsors :focus-visible,
.card--white :focus-visible,
.card--gold :focus-visible { outline-color: var(--ink); }
@media (max-width: 640px) { /* DoCEIS 2027: no telemóvel a etiqueta passa para baixo do título, alinhada com o texto */
  .dash-title:has(.title-tag) { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; row-gap: 10px; }
  .dash-title:has(.title-tag) .title-tag { grid-column: 2; justify-self: start; }
}
