/* ===========================================================================
   Tema EDITORIAL — claro, tipográfico, ar de revista científica
   Reveste as MESMAS páginas do site com outra pele (mesmo vocabulário de
   classes do tema aurora, valores claros). LaTec — CAV/UDESC.
   =========================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --border: #e7e3da;
  --border-strong: #d4cfc2;
  --text: #1b1a16;
  --muted: #6c6a61;
  --primary: #15795f;
  --primary-d: #0f5a46;
  --cyan: #2563eb;
  --violet: #6d28d9;
  --grad: var(--primary);
  --grad-soft: #eef5f1;
  --radius: 8px;
  --shadow: 0 12px 30px -22px rgba(20, 30, 25, .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; }
.aurora-bg { display: none; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; color: #15140f; }

.container-l { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.text-grad { color: var(--primary); -webkit-text-fill-color: currentColor; background: none; font-style: italic; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); font-weight: 600; }

/* ---------- Navbar (chrome próprio do tema) ---------- */
.ed-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.ed-nav .container-l { display: flex; align-items: center; gap: 18px; height: 70px; }
.ed-brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--text); }
.ed-brand small { font-family: var(--font); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ed-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ed-links a { color: #44423b; font-size: .93rem; padding: 8px 12px; border-radius: 6px; }
.ed-links a:hover { color: var(--primary); text-decoration: none; background: var(--surface-2); }
.ed-links a.active { color: var(--primary); font-weight: 600; }
.ed-cta { margin-left: 8px; border: 1px solid var(--border-strong); padding: 7px 15px !important; border-radius: 7px; }
.ed-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); width: 42px; height: 42px; border-radius: 8px; font-size: 1.3rem; color: var(--text); }

/* ---------- Botões ---------- */
.btn-a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: .18s; }
.btn-primary-a { background: var(--primary); color: #fff; }
.btn-primary-a:hover { background: var(--primary-d); color: #fff; text-decoration: none; }
.btn-ghost-a { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-ghost-a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ---------- Seções / hero ---------- */
.sec { padding: 76px 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 10px 0 8px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.hero { padding: 76px 0 56px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin: 16px 0; font-weight: 600; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: #45433c; max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 36px; }
.foco-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border-strong); color: var(--text); font-size: .86rem; }
.chip i { color: var(--primary); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--primary); }
.stat .lbl { color: var(--muted); font-size: .88rem; margin-top: 8px; }

/* ---------- Cards ---------- */
.card-a { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .2s; height: 100%; }
.card-a:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Pessoas ---------- */
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-2); flex: none; }
.avatar-iniciais { display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: #fff; background: var(--primary); }
.avatar-lg { width: 104px; height: 104px; border-radius: 50%; font-size: 2rem; }
.pessoa-card { display: flex; flex-direction: column; gap: 13px; }
.pessoa-card .nome { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.pessoa-card .cargo { color: var(--primary); font-size: .85rem; font-weight: 600; }
.pessoa-meta { color: var(--muted); font-size: .9rem; }
.pessoa-links { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.pessoa-links a { color: var(--muted); font-size: 1.1rem; }
.pessoa-links a:hover { color: var(--primary); }

/* ---------- Pesquisas ---------- */
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 5px; font-size: .76rem; font-weight: 600; border: 1px solid var(--border-strong); background: var(--surface-2); color: #44423b; }
.selo-tese { background: #f3eefb; color: #6d28d9; border-color: #e0d4f5; }
.selo-dissertacao { background: #eaf1fb; color: #2563eb; border-color: #d3e1f7; }
.status-andamento { background: #eaf1fb; color: #2563eb; border-color: #d3e1f7; }
.status-qualificada { background: #fdf5e6; color: #b7791f; border-color: #f3e2bf; }
.status-defendida { background: #eaf6f0; color: var(--primary); border-color: #cfe9dd; }
.pesquisa-card .titulo { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; margin: 12px 0 8px; line-height: 1.3; }
.pesquisa-card .resumo { color: #4d4b43; font-size: .95rem; }
.palavras { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.palavra { font-size: .75rem; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 5px; }
.filtros { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filtros a { padding: 7px 15px; border-radius: 6px; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: .87rem; }
.filtros a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.filtros a.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ---------- Eventos / defesas ---------- */
.evento-card { overflow: hidden; padding: 0; }
.evento-foto { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border); }
.evento-foto.ph { background: var(--grad-soft); display: grid; place-items: center; font-size: 2.8rem; color: var(--primary); }
.evento-body { padding: 24px; }
.banca-list { list-style: none; padding: 0; margin: 10px 0 0; }
.banca-list li { color: #4d4b43; font-size: .9rem; padding: 3px 0 3px 20px; position: relative; }
.banca-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--primary); font-size: .8rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-date { font-size: .8rem; color: var(--primary); font-weight: 600; }
.tl-card { margin-top: 8px; }
.tl-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.tl-title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.tl-foto { width: 100%; max-height: 280px; object-fit: cover; border-radius: 6px; margin-top: 12px; border: 1px solid var(--border); }

/* ---------- Projetos ---------- */
.projeto-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.projeto-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--border); }
.projeto-img.ph { background: var(--grad-soft); display: grid; place-items: center; font-size: 2.6rem; color: var(--primary); }
.projeto-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.projeto-body .titulo { font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; }
.techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tech { font-size: .73rem; color: #2563eb; background: #eaf1fb; border: 1px solid #d3e1f7; padding: 3px 9px; border-radius: 5px; }
.projeto-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }

/* ---------- Sobre / institucional ---------- */
.prosa p { color: #36342d; font-size: 1.1rem; margin-bottom: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item i { color: var(--primary); font-size: 1.35rem; margin-top: 2px; }
.info-item .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-item .v { font-weight: 500; }

/* ---------- Footer ---------- */
.ed-footer { border-top: 2px solid var(--text); background: var(--bg-2); margin-top: 30px; }
.ed-footer .container-l { padding-top: 50px; padding-bottom: 30px; }
.ed-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.ed-footer h5 { font-family: var(--font); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.ed-footer .flinks { display: flex; flex-direction: column; gap: 8px; }
.ed-footer .flinks a { color: #44423b; font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .85rem; }

/* ---------- Seletor de tema ---------- */
.tema-dock { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.2); }
.tema-dock .lbl { font-size: .72rem; color: var(--muted); padding: 0 6px; text-transform: uppercase; letter-spacing: .1em; }
.tema-dock a { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; }
.tema-dock a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tema-dock a.on { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------- Util ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--border-strong); display: block; margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(14px); transition: .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .ed-foot-grid, .info-grid { grid-template-columns: 1fr; }
  .ed-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px; gap: 2px; border-bottom: 1px solid var(--border); }
  .ed-links.open { display: flex; }
  .ed-toggle { display: inline-block; }
  .tema-dock .lbl { display: none; }
}
@media (max-width: 560px) { .grid-3, .grid-4, .grid-2, .stats { grid-template-columns: 1fr; } .sec { padding: 54px 0; } }
