/* ============================================================
   AD-UNIFEI — Template de páginas de leitura (texto)
   Depende de styles.css (tokens, header, footer, botões)
   ============================================================ */

/* ---------- Barra de progresso de leitura ---------- */
.nav-link.current { color: var(--accent); }
.nav-link.current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--navy-500), var(--navy-300));
  z-index: 200; transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(27, 95, 176, 0.5);
}

/* ---------- Cabeçalho da página ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 16vw, 180px) 0 clamp(44px, 7vw, 80px);
  background: linear-gradient(165deg, var(--hero-from), var(--hero-to));
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-grid {
  background-image: linear-gradient(var(--blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 80% 20%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000 5%, transparent 70%);
}
.page-hero .deco-gear { opacity: 0.06; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--ink-faint); margin-bottom: 22px;
  font-family: "Exo 2", sans-serif; font-weight: 600;
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb .cur { color: var(--accent); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
.page-lede { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--ink-soft); margin-top: 20px; max-width: 60ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.page-meta .chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-soft);
  background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: var(--r-pill);
}
.page-meta .chip svg { width: 15px; color: var(--accent); }

/* ---------- Layout artigo + aside ---------- */
.article-wrap { padding-block: clamp(48px, 7vw, 88px); }
.article-layout { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }

/* aside (sticky) */
.article-aside { display: none; }
.aside-inner { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 26px; }
.aside-box {
  background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(12px);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-glass);
}
.aside-box h4 {
  font-family: "Exo 2", sans-serif; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.aside-box h4 svg { width: 15px; color: var(--accent); }
.subnav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.subnav a:hover { background: var(--glass-2); color: var(--accent); transform: translateX(3px); }
.subnav a.active { background: var(--navy-700); color: #fff; }
.subnav a.active .pdot { background: #fff; }
.subnav .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: 0.6; }

.toc { list-style: none; }
.toc a {
  display: block; padding: 7px 0 7px 16px; font-size: 0.88rem; color: var(--ink-faint);
  border-left: 2px solid var(--line); transition: color 0.2s, border-color 0.2s, padding 0.2s;
}
.toc a:hover { color: var(--accent); }
.toc a.active { color: var(--accent); border-color: var(--accent); font-weight: 600; padding-left: 20px; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose > p {
  font-size: clamp(1.04rem, 2.1vw, 1.16rem); line-height: 1.78; color: var(--ink-soft);
  margin-bottom: 1.5em; text-wrap: pretty;
}
.prose > p strong { color: var(--ink); font-weight: 600; }
.prose h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 1.6em 0 0.6em; scroll-margin-top: 100px;
  display: flex; align-items: baseline; gap: 14px;
}
.prose h2 .idx { font-size: 0.9rem; color: var(--accent); font-weight: 700; font-family: "Exo 2", sans-serif; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 0.5em; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* Dropcap no primeiro parágrafo */
.prose .lead-p::first-letter {
  font-family: "Exo 2", sans-serif; font-weight: 800; float: left; font-size: 3.6em;
  line-height: 0.78; padding: 6px 14px 0 0; color: var(--navy-600);
}
.prose .lead-p { font-size: clamp(1.1rem, 2.3vw, 1.24rem); color: var(--ink); }

/* Pull-quote */
.pull-quote {
  margin: 2.2em 0; padding: 6px 0 6px 28px; border-left: 4px solid var(--navy-500);
  position: relative;
}
.pull-quote p {
  font-family: "Exo 2", sans-serif; font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.32; color: var(--ink); letter-spacing: -0.01em;
}
.pull-quote .mk { position: absolute; top: -10px; left: 14px; font-size: 2.4rem; color: var(--navy-300); opacity: 0.5; font-family: "Exo 2", sans-serif; }

/* Figura / placeholder */
.figure { margin: 2.4em 0; }
.figure .ph {
  aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
}
.figure figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.figure figcaption svg { width: 15px; color: var(--accent); flex-shrink: 0; }

/* Callout / fatos */
.callout {
  margin: 2.4em 0; padding: 24px 26px; border-radius: var(--r-lg);
  background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--navy-600), var(--navy-400)); }
.callout h3 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.callout h3 svg { width: 20px; color: var(--accent); }
.people { display: grid; gap: 18px; }
.person { display: flex; align-items: center; gap: 12px; }
.person .av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: #fff; display: grid; place-items: center; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 0.9rem; }
.person .nm { font-weight: 600; color: var(--ink); font-size: 0.94rem; line-height: 1.25; }
.person .rl { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.3; margin-top: 2px; }

/* ---------- Marcos do museu (timeline horizontal) ---------- */
.milestones { margin: 2.6em 0; }
.milestones-head { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.milestones-head svg { width: 20px; color: var(--accent); }
.ms-grid { display: grid; gap: 12px; }
.ms-item {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.ms-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.ms-year { font-family: "Exo 2", sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--navy-700); white-space: nowrap; min-width: 86px; }
.ms-item p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- CTA fim do artigo ---------- */
.article-cta {
  position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--r-xl); background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: #fff; padding: clamp(32px, 5vw, 56px); box-shadow: var(--shadow-lg);
}
.article-cta h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.article-cta p { color: rgba(255,255,255,0.8); margin-top: 12px; max-width: 50ch; }
.article-cta .row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; position: relative; z-index: 1; }

/* navegação anterior/próxima */
.page-nav { display: grid; gap: 14px; margin-top: 28px; }
.page-nav a {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.page-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.page-nav .ar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--navy-700); flex-shrink: 0; }
.page-nav .ar svg { width: 20px; }
.page-nav .lab { font-size: 0.76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.page-nav .ttl { font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--ink); margin-top: 2px; }
.page-nav .next { text-align: right; }
.page-nav .next .ar { margin-left: auto; order: 2; }

/* ---------- Responsivo ---------- */
@media (min-width: 980px) {
  .article-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .article-aside { display: block; }
  .page-nav { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   COMPONENTES DE PÁGINA (listas, cards, tabelas)
   ============================================================ */

/* Lista numerada de objetivos */
.obj-list { display: grid; gap: 14px; margin: 1.5em 0; max-width: none; }
.obj-row {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.obj-row:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.obj-row .mk {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  font-family: "Exo 2", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--navy-600);
  background: linear-gradient(140deg, var(--bg-2), var(--bg-3)); transition: background 0.35s, color 0.35s;
}
.obj-row:hover .mk { background: var(--navy-700); color: #fff; }
.obj-row p { font-size: 1.04rem; color: var(--ink); line-height: 1.6; margin: 0; }
/* passos "Como se associar" lado a lado (1 → 3 colunas) */
.steps-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 1.5em 0; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.steps-grid .obj-row { grid-template-columns: 1fr; align-items: start; gap: 12px; }
.steps-grid .obj-row:hover { transform: translateY(-4px); }

/* Statement / pilares (missão) */
.statement {
  font-family: "Exo 2", sans-serif; font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem); line-height: 1.4; color: var(--ink); max-width: 24ch;
  margin: 0.2em 0 0; text-wrap: balance;
}
.statement .hl { color: var(--accent); }
.pillars { display: grid; gap: 18px; margin-top: clamp(34px, 5vw, 52px); }
/* grade de benefícios (página associar): 1 → 2 → 3 colunas, sem scroll horizontal */
.benefits-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 1.2em 0 0.4em; }
@media (min-width: 600px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative; overflow: hidden; padding: 30px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(12px); box-shadow: var(--shadow-glass);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: #fff; }
.pillar .ic svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.25rem; margin-top: 20px; }
.pillar p { color: var(--ink-soft); margin-top: 10px; font-size: 0.98rem; line-height: 1.65; }

/* Projetos */
.projects { display: grid; gap: 20px; margin: 1.4em 0; }
.project-card {
  position: relative; overflow: hidden; padding: 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.project-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(440px circle at 100% 0%, rgba(27,95,176,0.08), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-card:hover::after { opacity: 1; }
.project-card .pj-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: #fff; transition: transform 0.4s var(--ease); }
.project-card:hover .pj-ic { transform: rotate(-8deg) scale(1.06); }
.project-card .pj-ic svg { width: 28px; height: 28px; }
.project-card h3 { font-size: 1.3rem; margin-top: 20px; }
.project-card p { color: var(--ink-soft); margin-top: 12px; font-size: 1rem; line-height: 1.65; }
.project-card .pj-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.project-card .pj-link svg { width: 16px; transition: transform 0.3s var(--ease); }
.project-card .pj-link:hover svg { transform: translateX(5px); }

/* Tabela de presidentes / dados */
.data-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.data-table caption { text-align: left; font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.data-table thead th { font-family: "Exo 2", sans-serif; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); background: var(--bg-2); }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover td { background: var(--bg-2); }
.data-table .yr { font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.data-table .muted { color: var(--ink-faint); font-size: 0.86rem; }

/* Chips de regionais inline */
.reg-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 1.5em 0; }
.reg-chips .rc {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.reg-chips .rc:hover { background: var(--navy-700); color: #fff; transform: translateY(-3px); border-color: transparent; }
.reg-chips .rc .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transition: background 0.25s; }
.reg-chips .rc:hover .pdot { background: #fff; }

/* Grid de pessoas (diretoria/embaixadores) */
.people-grid { display: grid; gap: 16px; margin: 1.4em 0; grid-template-columns: 1fr; }
.pcard {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.pcard .av { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: #fff; font-family: "Exo 2", sans-serif; font-weight: 700; }
.pcard .nm { font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--ink); }
.pcard .rl { font-size: 0.86rem; color: var(--ink-faint); margin-top: 2px; }
.pcard .tu { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-top: 3px; }
@media (min-width: 640px) { .people-grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .pillars.two { grid-template-columns: 1fr 1fr; } }

/* Documentos para download */
.doc-list { display: grid; gap: 14px; margin: 1.4em 0; }
.doc-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.doc-ic { width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: #fff; }
.doc-ic svg { width: 24px; height: 24px; }
.doc-card .info { flex: 1; min-width: 0; }
.doc-card .dt { font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--ink); }
.doc-card .ds { font-size: 0.85rem; color: var(--ink-faint); margin-top: 2px; }
.doc-dl {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--navy-700); color: #fff; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 0.86rem;
  transition: background 0.3s, transform 0.3s;
}
.doc-dl:hover { background: var(--navy-600); transform: translateY(-2px); }
.doc-dl svg { width: 16px; }

/* Badge de valor (campanhas) */
.val-badge {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line); font-family: "Exo 2", sans-serif;
}
.val-badge .v { font-weight: 800; font-size: 1.1rem; color: var(--navy-700); }
.val-badge .u { font-size: 0.82rem; color: var(--ink-faint); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-row .tg { font-size: 0.82rem; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-soft); }
.season-flag {
  position: absolute; top: 20px; right: 20px; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--accent);
}

