/* =========================================================
   GREI — Grupo de Redes Elétricas Inteligentes (UFC)
   Tema WordPress — tokens e componentes do handoff hi-fi
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #2F5E4B;
  --color-primary-dark: #1C3A2E;
  --color-primary-darker: #24493A;
  --color-primary-light: #3D6E59;
  --color-primary-lighter: #4A7C68;
  --color-primary-pale: #9BD2B4;

  --tint-a-bg: #EFF4F1;
  --tint-a-border: #D2E1D9;
  --tint-a-text: #3D6E59;
  --tint-a-value: #2A5443;
  --tint-a-strong: #1F4436;

  --tint-b-bg: oklch(0.965 0.035 128);
  --tint-b-border: oklch(0.89 0.07 128);
  --tint-b-text: oklch(0.42 0.12 128);
  --tint-b-text-2: oklch(0.46 0.13 128);
  --tint-b-value: oklch(0.36 0.11 128);
  --tint-b-soft: oklch(0.93 0.05 128);

  --bg: #FFFFFF;
  --bg-white: #ffffff;
  --fg: #101114;
  --fg-muted: rgba(16,17,20,0.62);
  --fg-muted-2: rgba(16,17,20,0.5);
  --fg-muted-3: rgba(16,17,20,0.42);
  --border: rgba(16,17,20,0.10);
  --border-strong: rgba(16,17,20,0.2);

  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --font-sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --shadow-card: 0 18px 50px -30px rgba(16,17,20,0.28);
  --wrap-width: 1560px;
  --header-wrap-width: 1560px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px; }

.pg-icon { flex-shrink: 0; vertical-align: -2px; margin-right: 5px; opacity: 0.7; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted-2);
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn-pill-dark { background: var(--fg); color: var(--bg); }
.btn-pill-dark:hover { background: var(--color-primary); color: #fff; }
.btn-pill-outline { background: #fff; border-color: var(--border-strong); color: var(--fg); }
.btn-pill-outline:hover { border-color: var(--fg); color: var(--fg); }
.btn-pill-light { background: var(--bg); color: var(--color-primary-darker); }
.btn-pill-light:hover { background: var(--tint-b-soft); }
.btn-pill-tint { background: var(--fg); color: var(--bg); font-size: 14.5px; padding: 11px 20px; }
.btn-pill-tint:hover { background: var(--color-primary); color: #fff; }
.btn-pill-sm { font-size: 14px; padding: 9px 16px; }

/* ---------- Header (barra flutuante, estilo pill com blur) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 24px;
  transition: padding 220ms ease;
}
.site-header-inner {
  max-width: var(--header-wrap-width);
  margin: 0 auto;
  padding: 0 14px 0 24px;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: none;
  transition: box-shadow 220ms ease, height 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.site-header.is-scrolled { padding: 10px 24px; }
.site-header.is-scrolled .site-header-inner {
  height: 78px;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header-inner, .site-branding, .site-branding img, .site-branding-divider { transition: none; }
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.site-branding img.logo-grei { height: 58px; width: auto; transition: height 220ms ease; }
.site-branding img.logo-ufc { height: 44px; width: auto; transition: height 220ms ease; }
.site-branding-divider { width: 1px; height: 42px; background: var(--border-strong); transition: height 220ms ease; }
.site-branding-text { color: var(--fg); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

/* No topo da página a barra inteira (logo + menu) fica mais alta, com
   espaço de sobra pra logo ficar maior sem esbarrar no menu. Ao rolar,
   tudo volta ao tamanho normal. A largura é a mesma do conteúdo
   (--wrap-width = --header-wrap-width). Só no desktop — no mobile o
   cabeçalho já é compacto. */
@media (min-width: 781px) {
  .site-header-inner { height: 128px; }
  .site-branding img.logo-grei { height: 92px; }
  .site-branding img.logo-ufc { height: 70px; }
  .site-branding-divider { height: 66px; }
  .site-header.is-scrolled .site-branding img.logo-grei { height: 58px; }
  .site-header.is-scrolled .site-branding img.logo-ufc { height: 44px; }
  .site-header.is-scrolled .site-branding-divider { height: 42px; }
}

.primary-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; row-gap: 6px; justify-content: center; }
.primary-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.primary-nav a:hover { color: var(--fg); }
.primary-nav a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .primary-nav a::after { transition: none; }
}

/* ---------- Dropdown "Projetos" ---------- */
.nav-item-projects { position: relative; }
/* Ponte invisível entre o link "Projetos" e o painel do dropdown: sem isso,
   o :hover se perde no vão vazio ao mover o mouse na diagonal até o painel,
   fazendo o menu sumir antes da hora. */
.nav-item-projects::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 312px;
  height: 14px;
}
.nav-item-chevron { margin-left: 3px; vertical-align: 2px; transition: transform 180ms ease; }
.nav-item-projects:hover .nav-item-chevron,
.nav-item-projects:focus-within .nav-item-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  margin-top: 14px;
  width: 312px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease 120ms, transform 160ms ease 120ms, visibility 0s linear 280ms;
}
.nav-item-projects:hover .nav-dropdown,
.nav-item-projects:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
  transform: translateX(-50%) translateY(0);
}
.primary-nav .nav-dropdown-list,
.mobile-nav .nav-dropdown-list { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.nav-dropdown-list li { display: block; margin: 0; }
.nav-dropdown-list li + li { border-top: 1px solid var(--border); }

/* Precisa vencer a especificidade de ".primary-nav a" (que define
   inline-block/nowrap/underline em TODO link do menu), senão o texto
   estoura a largura fixa do painel. */
.primary-nav .nav-dropdown-link,
.mobile-nav .nav-dropdown-link {
  position: static;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  box-sizing: border-box;
  padding: 12px 10px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600; color: var(--fg);
  white-space: normal;
  transition: background 150ms ease;
}
.primary-nav .nav-dropdown-link::after, .mobile-nav .nav-dropdown-link::after { content: none; }
.nav-dropdown-link-title { display: block; width: 100%; line-height: 1.3; }
.nav-dropdown-link-area {
  flex: none;
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--tint-a-bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--tint-a-value);
  white-space: nowrap;
}
.nav-dropdown-link:hover, .nav-dropdown-link.is-active { background: var(--tint-a-bg); }

.primary-nav .nav-dropdown-viewall, .mobile-nav .nav-dropdown-viewall {
  position: static;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; box-sizing: border-box;
  margin-top: 8px; padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  font-size: 12.5px; font-weight: 600; color: #fff;
  text-align: center; white-space: normal;
  transition: opacity 150ms ease;
}
.primary-nav .nav-dropdown-viewall:hover, .mobile-nav .nav-dropdown-viewall:hover { opacity: 0.85; color: #fff; }
.primary-nav .nav-dropdown-viewall::after, .mobile-nav .nav-dropdown-viewall::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown, .nav-dropdown-link, .nav-item-chevron { transition: none; }
}
@media (max-width: 780px) {
  .nav-dropdown { display: none; }
}

.header-side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.lang-select {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
}
.lang-select-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 160ms ease;
}
.lang-select-trigger:hover { border-color: var(--fg); }
.lang-select-trigger svg { color: var(--fg-muted-2); transition: transform 160ms ease; }
.lang-select.is-open .lang-select-trigger svg { transform: rotate(180deg); }
.lang-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 50;
}
.lang-select.is-open .lang-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-select-menu li { list-style: none; }
.lang-select-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-size: 13px;
  font-family: var(--font-sans);
}
.lang-select-menu a:hover { background: var(--bg); color: var(--fg); }
.lang-select-menu a.is-active { color: var(--color-primary); font-weight: 600; }
.social-icons { display: flex; align-items: center; gap: 14px; }
.social-icons a { display: flex; color: var(--fg-muted-2); transition: color 160ms ease; }
.social-icons a:hover { color: var(--fg); }

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  flex: none;
}
.mobile-nav-toggle .icon-close { display: none; }
.site-header.is-nav-open .mobile-nav-toggle .icon-burger { display: none; }
.site-header.is-nav-open .mobile-nav-toggle .icon-close { display: block; }
.mobile-nav-panel {
  display: none;
  max-width: var(--wrap-width);
  margin: 10px auto 0;
  background: rgba(251,251,249,0.98);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.site-header.is-nav-open .mobile-nav-panel { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; padding: 10px; }
.mobile-nav a { display: block; padding: 14px 16px; border-radius: var(--radius-md); font-size: 16px; color: var(--fg); }
.mobile-nav a:hover { background: var(--bg); color: var(--fg); }
.mobile-nav li + li { border-top: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero-section { position: relative; background: var(--bg); }
.hero-inner {
  padding: 56px 40px 76px;
  position: relative;
}
.hero-grid {
  max-width: var(--wrap-width);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16,17,20,0.66);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: var(--radius-pill);
  background: var(--color-primary);
  animation: grei-pulse 2.4s ease-in-out infinite;
}
.hero-badge-highlight { color: var(--color-primary); font-weight: 700; }
@keyframes grei-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hero-title {
  margin: 26px 0 0;
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-title em { font-style: normal; color: var(--color-primary); }
.hero-lede {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 46ch;
}
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.hero-link-cta span { transition: transform 200ms ease; }
.hero-link-cta:hover span { transform: translateX(3px); }
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 54px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted-2);
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 31px;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-transform: none;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Hero carousel card */
.hero-video-frame {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Marquee ---------- */
.marquee-section {
  background: var(--bg);
  padding: 38px 0 42px;
}
.marquee-section .eyebrow { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px 22px; text-align: center; }
.marquee-mask { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px; overflow: hidden; }
.marquee-group { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 60px; }
.marquee-group span { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-muted-2); }
.marquee-group img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot { animation: none; }
  .hero-video-frame video { display: none; }
}

/* ---------- Rede Verdes ---------- */
.rede-verdes-section { max-width: var(--wrap-width); margin: 0 auto; padding: 72px 40px 0; }
.home-news-section { max-width: var(--wrap-width); margin: 0 auto; padding: 56px 40px 0; }
.home-news-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-news-header h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; font-weight: 700; color: var(--fg); }
.home-news-header a { font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.home-news-header a:hover { text-decoration: underline; }
.home-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-news-item { display: block; text-decoration: none; color: var(--fg); }
.home-news-thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--tint-a-bg); }
.home-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 320ms ease; }
.home-news-item:hover .home-news-thumb img { transform: scale(1.04); }
.home-news-item h3 { margin: 12px 0 0; font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.home-news-item:hover h3 { color: var(--color-primary); }
@media (max-width: 900px) { .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .home-news-grid { grid-template-columns: 1fr; } }
.rede-verdes-card {
  border: 1px solid var(--color-primary-darker);
  background: linear-gradient(100deg, var(--color-primary), var(--color-primary-darker) 72%);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}
.rede-verdes-logos {
  height: 150px;
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 18px;
}
.rede-verdes-logos img.logo-rv { max-width: 62%; max-height: 78%; object-fit: contain; }
.rede-verdes-logos img.logo-funcap { height: 28px; width: auto; object-fit: contain; flex: none; }
.rede-verdes-divider { width: 1px; height: 40px; background: rgba(16,17,20,0.12); flex: none; }
.rede-verdes-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,247,245,0.7); }
.rede-verdes-badge-dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--color-primary-pale); animation: grei-pulse 2.4s ease-in-out infinite; }
.rede-verdes-card h2 { margin: 14px 0 0; font-size: 34px; line-height: 1.08; letter-spacing: -0.032em; font-weight: 600; color: #F4F7F5; }
.rede-verdes-card h2 em { font-style: normal; color: var(--color-primary-pale); }
.rede-verdes-card p { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: rgba(244,247,245,0.72); max-width: 62ch; }
.rede-verdes-cta { flex: none; font-size: 15px; font-weight: 500; background: #F4F7F5; color: var(--color-primary-darker); padding: 13px 24px; border-radius: var(--radius-pill); }
.rede-verdes-cta:hover { background: var(--color-primary-pale); color: var(--color-primary-darker); }

/* ---------- Frentes de P&D ---------- */
.research-tracks-section { max-width: var(--wrap-width); margin: 0 auto; padding: 90px 40px 40px; }
.research-tracks-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.research-tracks-header h2 { margin: 0; font-size: 46px; line-height: 1.04; letter-spacing: -0.034em; font-weight: 600; }
.research-tracks-header p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(16,17,20,0.6); }
.research-track-rows { display: flex; flex-direction: column; gap: 64px; margin-top: 56px; }
.research-track-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.research-track-row.is-reverse .research-track-row-media { grid-column: 2; grid-row: 1; }
.research-track-row.is-reverse .research-track-row-text { grid-column: 1; grid-row: 1; }
.research-track-row-media { border-radius: var(--radius-lg); overflow: hidden; }
.research-track-row-media img, .research-track-row-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.research-track-row-media-placeholder { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--tint-a-bg); }
.research-track-row-media-placeholder.alt { background: var(--tint-b-soft); }

/* Mockup animado de chat de IA (ilustrativo, não é um chat funcional) */
.ai-chat-mock { display: flex; align-items: center; justify-content: center; padding: 24px; }
.ai-chat-mock-window {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ai-chat-mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
}
.ai-chat-mock-status-dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(47,94,75,0.45);
  animation: aiChatPulse 2s ease-in-out infinite;
}
.ai-chat-mock-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  min-height: 168px;
}
.ai-chat-mock-msg {
  padding: 11px 15px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
}
.ai-chat-mock-msg-user {
  align-self: flex-end;
  max-width: 82%;
  background: var(--fg);
  color: #fff;
  border-bottom-right-radius: 4px;
  opacity: 0;
  transform: translateY(6px);
  animation: aiChatUser 6s ease-in-out infinite;
}
.ai-chat-mock-ai-group { display: flex; align-items: flex-end; gap: 7px; max-width: 88%; }
.ai-chat-mock-avatar {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.ai-chat-mock-msg-ai {
  background: var(--tint-a-bg);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.ai-chat-mock-typing-group { opacity: 0; animation: aiChatTyping 6s ease-in-out infinite; }
.ai-chat-mock-reply-group { opacity: 0; transform: translateY(6px); animation: aiChatAi 6s ease-in-out infinite; }
.ai-chat-mock-typing {
  display: flex;
  gap: 5px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  background: var(--tint-a-bg);
}
.ai-chat-mock-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-muted-2); animation: aiChatDot 1s ease-in-out infinite; }
.ai-chat-mock-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-mock-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiChatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,94,75,0.45); }
  50% { box-shadow: 0 0 0 4px rgba(47,94,75,0); }
}
@keyframes aiChatUser {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  8%, 88% { opacity: 1; transform: translateY(0); }
  95% { opacity: 0; }
}
@keyframes aiChatTyping {
  0%, 28%, 100% { opacity: 0; }
  34%, 56% { opacity: 1; }
  60% { opacity: 0; }
}
@keyframes aiChatAi {
  0%, 60%, 100% { opacity: 0; transform: translateY(6px); }
  66%, 88% { opacity: 1; transform: translateY(0); }
  95% { opacity: 0; }
}
@keyframes aiChatDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat-mock-msg-user, .ai-chat-mock-typing-group, .ai-chat-mock-reply-group, .ai-chat-mock-status-dot { animation: none; opacity: 1; transform: none; }
  .ai-chat-mock-typing-group { display: none; }
}
.research-track-row-text h3 { margin: 0; font-size: 27px; letter-spacing: -0.028em; font-weight: 600; }
.research-track-row-text p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.6; color: rgba(16,17,20,0.62); max-width: 48ch; }
.research-track-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted-2); }
.research-track-chips span { border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 6px 11px; }

/* ---------- CTA piloto ---------- */
.pilot-section { max-width: var(--wrap-width); margin: 0 auto; padding: 60px 40px 100px; }
.pilot-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.pilot-card h2 { margin: 18px 0 0; font-size: 40px; line-height: 1.06; letter-spacing: -0.032em; font-weight: 600; }
.pilot-card > div:first-child p { margin: 18px 0 0; font-size: 17.5px; line-height: 1.55; color: rgba(16,17,20,0.6); max-width: 46ch; }
.pilot-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.pilot-steps { display: grid; gap: 1px; background: var(--border); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.pilot-step { background: var(--bg); padding: 22px 24px; display: flex; align-items: baseline; gap: 16px; }
.pilot-step span:first-child { font-size: 16.5px; color: rgba(16,17,20,0.72); }

/* ---------- Projetos: header de seção + filtros ---------- */
.section-header { background: #fff; border-bottom: 1px solid var(--border); padding: 40px 40px 32px; }
.section-header-inner { max-width: var(--wrap-width); margin: 0 auto; }
.section-header h1 { margin: 10px 0 0; font-size: 38px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.section-header p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: rgba(16,17,20,0.6); max-width: 60ch; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; font-size: 14px; }
.filter-chips a { border-radius: var(--radius-pill); padding: 9px 16px; border: 1px solid var(--border-strong); color: var(--fg); }
.filter-chips a:hover { border-color: var(--fg); color: var(--fg); }
.filter-chips a.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Projetos grid & card ---------- */
.projects-list { max-width: var(--wrap-width); margin: 0 auto; padding-top: 12px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }
.project-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.project-row:hover { border-color: rgba(16,17,20,0.3); box-shadow: var(--shadow-card); }
.project-row-media {
  position: relative;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.tint-a .project-row-media { background-color: var(--tint-a-bg); }
.tint-b .project-row-media { background-color: var(--tint-b-bg); }
.project-row-media.has-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(28,58,46,0.08) 35%, rgba(16,17,20,0.72) 100%);
}
.project-row-metric { position: relative; z-index: 1; }
.project-row-metric .metric-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.project-row-metric .metric-value { margin-top: 6px; font-size: 30px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.tint-a .project-row-media:not(.has-media) .metric-label { color: var(--tint-a-text); }
.tint-a .project-row-media:not(.has-media) .metric-value { color: var(--tint-a-value); }
.tint-b .project-row-media:not(.has-media) .metric-label { color: var(--tint-b-text); }
.tint-b .project-row-media:not(.has-media) .metric-value { color: var(--tint-b-value); }
.project-row-media.has-media .metric-label { color: rgba(255,255,255,0.78); }
.project-row-media.has-media .metric-value { color: #fff; }
.project-row-body { padding: 22px 28px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.project-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-row-top .eyebrow { color: var(--fg-muted-2); }
.project-row-body h3 { margin: 10px 0 0; font-size: 23px; letter-spacing: -0.026em; font-weight: 600; color: var(--fg); }
.project-row-body p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: rgba(16,17,20,0.6); max-width: 62ch; }
.project-row-funding { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted-3); }
.status-badge {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-badge.is-ongoing { color: var(--color-primary); border-color: var(--tint-a-border); background: var(--tint-a-bg); }
.status-badge.is-wrapping-up { color: #9A6B12; border-color: #EBD9AE; background: #FBF3E1; }
.status-badge.is-closed { color: var(--fg-muted); border-color: var(--border-strong); background: var(--bg); }
.project-row-arrow {
  flex: none;
  align-self: center;
  margin-right: 26px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted-2);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.project-row:hover .project-row-arrow { border-color: var(--color-primary); color: var(--color-primary); background: var(--tint-a-bg); }
.project-single-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Cards em destaque na home */
.highlight-grid { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.highlight-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; padding: 26px; transition: border-color 160ms ease; display: block; }
.highlight-card:hover { border-color: rgba(16,17,20,0.3); }
.highlight-card .metric-value { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; font-size: 46px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.highlight-card h3 { margin: 18px 0 0; font-size: 23px; letter-spacing: -0.028em; font-weight: 600; }
.highlight-card p { margin: 9px 0 0; font-size: 15.5px; line-height: 1.5; color: rgba(16,17,20,0.62); }
.tint-a .highlight-card .eyebrow, .highlight-card.tint-a .eyebrow { color: var(--tint-a-text); }
.tint-a .metric-value { color: var(--tint-a-value); }
.tint-b .metric-value { color: var(--tint-b-value); }
.highlight-card.tint-b .eyebrow { color: var(--tint-b-text-2); }

/* ---------- Single projeto ---------- */
.project-single-header { background: #fff; border-bottom: 1px solid var(--border); padding: 36px 40px 56px; }
.project-single-header-inner { max-width: var(--wrap-width); margin: 0 auto; }
.back-link { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted-2); }
.back-link:hover { color: var(--fg); }
.project-single-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: end; margin-top: 40px; }
.project-single-top h1 { margin: 18px 0 0; font-size: 62px; line-height: 0.97; letter-spacing: -0.038em; font-weight: 600; }
.project-single-top .lede { margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: rgba(16,17,20,0.64); max-width: 48ch; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.meta-grid > div { background: var(--bg); padding: 20px 22px; }
.meta-grid .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted-2); }
.meta-grid .value { margin-top: 7px; font-size: 16px; }

.kpi-strip { max-width: var(--wrap-width); margin: 0 auto; padding: 44px 40px 0; }
.kpi-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.kpi-strip-grid > div { background: #fff; padding: 26px; }
.kpi-strip-grid .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted-2); }
.kpi-strip-grid .value { margin-top: 10px; font-size: 34px; letter-spacing: -0.035em; font-weight: 600; color: var(--tint-a-value); }

.project-gallery { max-width: var(--wrap-width); margin: 0 auto; padding: 40px 40px 0; }
.project-gallery-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.project-gallery-item { flex: 0 0 auto; width: 280px; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; box-shadow: var(--shadow-card); }
.project-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.project-gallery-item:hover img { transform: scale(1.04); }

.project-body-grid { max-width: var(--wrap-width); margin: 0 auto; padding: 64px 40px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.project-body h2 { margin: 48px 0 0; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.project-body > h2:first-child { margin-top: 0; }
.project-body p { margin: 14px 0 0; font-size: 18px; line-height: 1.65; color: rgba(16,17,20,0.72); }
.highlights-list { display: grid; gap: 12px; margin-top: 28px; }
.highlights-list div { border-left: 2px solid var(--color-primary); padding: 4px 0 4px 18px; font-size: 17px; line-height: 1.55; color: rgba(16,17,20,0.72); }
.milestones-list { display: grid; gap: 1px; background: var(--border); margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.milestones-list div { background: #fff; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; }
.milestones-list .texto { font-size: 16.5px; }
.milestones-list .status { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted-2); white-space: nowrap; }
.milestones-list .status.is-andamento { color: var(--tint-a-text); }
.project-publications-list { display: grid; gap: 18px; margin-top: 20px; }
.project-publications-list .titulo { font-size: 17px; font-weight: 500; }
.project-publications-list .meta { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted-2); }

.project-sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.sidebar-logo-box { border-radius: var(--radius-md); padding: 22px; background: var(--tint-b-soft); display: flex; align-items: center; justify-content: center; }
.sidebar-logo-box img { height: 64px; width: auto; filter: hue-rotate(-58deg) saturate(1.4) brightness(1.08); }
.sidebar-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: #fff; }
.sidebar-box .eyebrow { color: var(--fg-muted-2); }
.sidebar-box-list { display: grid; gap: 10px; margin-top: 14px; font-size: 16px; color: rgba(16,17,20,0.75); }
.sidebar-box-list a { color: var(--color-primary); }
.sidebar-cta { border-radius: var(--radius-md); padding: 24px; background: var(--tint-a-bg); border: 1px solid var(--tint-a-border); }
.sidebar-cta p { font-size: 17.5px; line-height: 1.45; color: var(--tint-a-strong); margin: 0; }

/* ---------- Equipe do projeto (single) ---------- */
.team-section { max-width: var(--wrap-width); margin: 0 auto; padding: 0 40px 96px; }
.team-section h2 { margin: 0 0 22px; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.team-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 24px; }
.team-avatar { width: 64px; height: 64px; border-radius: var(--radius-pill); overflow: hidden; background: var(--tint-a-bg); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 17px; color: var(--tint-a-value); margin-bottom: 14px; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.team-role { margin-top: 6px; font-size: 14px; color: rgba(16,17,20,0.6); }
.team-link { margin-top: 10px; display: inline-block; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted-2); }

/* ---------- Equipe (página) ---------- */
.team-page-header { max-width: var(--wrap-width); margin: 0 auto; padding: 20px 40px 8px; text-align: center; }
.team-page-header h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.faculty-grid { max-width: var(--wrap-width); margin: 0 auto; padding: 52px 40px 40px; }
.faculty-grid .eyebrow { margin-bottom: 22px; display: block; }
.faculty-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.faculty-card {
  position: relative;
  border-radius: 16px;
  background: #fff;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.social-icons { display: flex; align-items: center; gap: 6px; }
.social-icons a {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--fg-muted-2);
  opacity: 0.7;
  transition: opacity 160ms ease, border-color 160ms ease, color 160ms ease;
}
.social-icons a:hover { opacity: 1; border-color: var(--color-primary); color: var(--color-primary); }
.social-icon-svg { display: block; }
.faculty-avatar {
  width: 176px; height: 176px; border-radius: 20px;
  background: var(--tint-a-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 42px; color: var(--tint-a-value);
  overflow: hidden;
  flex: none;
}
.faculty-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.faculty-card:hover .faculty-avatar img { transform: scale(1.06); }
.faculty-avatar.tint-b { background: var(--tint-b-soft); color: var(--tint-b-value); }
.name-row { display: flex; align-items: center; gap: 7px; }
.flag { font-size: 15px; line-height: 1; }
.area-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.area-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  width: fit-content;
}
.activity { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--fg-muted-2); font-style: italic; }

.faculty-card .nome { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.faculty-card .name-row { margin-top: 18px; justify-content: center; }
.faculty-card .social-icons { justify-content: center; margin-top: 10px; }
.faculty-card .cargo { margin-top: 6px; font-size: 15px; color: rgba(16,17,20,0.6); }
.faculty-card .affiliation { margin-top: 4px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--fg-muted-2); }
.faculty-card .area-tags { justify-content: center; }
.faculty-card .links { margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted-2); display: flex; gap: 4px; }

.postgrad-section { max-width: var(--wrap-width); margin: 0 auto; padding: 32px 40px 40px; }
.postgrad-group { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.postgrad-group:first-of-type { margin-top: 22px; padding-top: 0; border-top: none; }
.postgrad-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted-2);
}
.postgrad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.postgrad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  background: #fff;
  padding: 28px 20px;
}
.postgrad-avatar {
  flex: none;
  width: 168px; height: 168px; border-radius: 20px;
  background: var(--tint-b-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 40px; color: var(--tint-b-value);
  overflow: hidden;
}
.postgrad-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.postgrad-card:hover .postgrad-avatar img { transform: scale(1.06); }
.postgrad-card .name-row { margin-top: 18px; justify-content: center; }
.postgrad-card .nome { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.postgrad-card .social-icons { margin-top: 8px; justify-content: center; }
.postgrad-card .social-icons a { width: 22px; height: 22px; }
.postgrad-card .social-icons svg { width: 11px; height: 11px; }
.postgrad-card .linha { margin-top: 6px; font-size: 14px; color: rgba(16,17,20,0.6); }
.postgrad-card .area-tags { justify-content: center; }
.postgrad-card .project { margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted-2); }

.openings-cta { max-width: var(--wrap-width); margin: 0 auto; padding: 24px 40px 96px; }
.openings-cta-inner {
  border: 1px solid var(--tint-a-border);
  background: var(--tint-a-bg);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.openings-cta-inner h2 { margin: 0; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; color: var(--tint-a-strong); }
.openings-cta-inner p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: #3B6656; max-width: 54ch; }

/* ---------- Publicações ---------- */
.publications-wrap, .products-wrap { padding: 52px 40px 96px; }
.products-wrap .projects-list { padding: 0; max-width: none; }
.publications-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.publications-search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.publications-search-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 13.5px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 9px 34px 9px 14px;
}
.publications-search-input:focus { outline: none; border-color: var(--color-primary); }
.publications-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: var(--fg-muted-2);
  font-size: 16px;
  line-height: 1;
}
.publications-search-clear:hover { color: var(--fg); background: var(--bg); }
.publications-year-select {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  flex: none;
}
.publications-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.publication-row {
  background: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--fg);
  transition: background-color 140ms ease;
}
a.publication-row:hover { background: var(--bg); color: var(--fg); }
.publication-row-date { flex: none; width: 68px; font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--fg-muted); }
.publication-row-main { min-width: 0; flex: 1; }
.publication-row-title { font-size: 16px; font-weight: 500; line-height: 1.4; }
.publication-row-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.publication-row-meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--fg-muted-2); }
.publication-row-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tint-a-text);
  background: var(--tint-a-bg);
  border-radius: 5px;
  padding: 3px 9px;
}
.publication-row-meta span:not(.publication-row-type) { font-family: var(--font-mono); }
.publication-row-arrow {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted-2);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
a.publication-row:hover .publication-row-arrow { border-color: var(--color-primary); color: var(--color-primary); background: var(--tint-a-bg); }
.publications-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; font-family: var(--font-mono); font-size: 13px; }
.publications-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
}
a.page-numbers:hover { border-color: var(--fg); color: var(--fg); }
.publications-pagination .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.publications-pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Notícias ---------- */
/* ---------- Notícia principal + "Leia também" (estilo portal de notícias) ---------- */
.news-featured { padding: 40px 40px 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

.news-master-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.news-master-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.news-master-thumb { aspect-ratio: 16 / 8.5; overflow: hidden; }
.news-master-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 320ms ease; }
.news-master-card:hover .news-master-thumb img { transform: scale(1.03); }
.news-master-thumb-placeholder { background: var(--tint-a-bg); }
.news-master-body { padding: 28px; }
.news-master-category {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tint-a-text); background: var(--tint-a-bg); border-radius: var(--radius-pill); padding: 4px 10px; margin-bottom: 12px;
}
.news-master-body h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--fg); }
.news-master-body p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); }
.news-master-body .news-card-meta { margin-top: 18px; }

.news-reading {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  padding: 20px; display: flex; flex-direction: column;
}
.news-reading-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted-2); padding-bottom: 14px; border-bottom: 2px solid var(--fg); margin-bottom: 4px; }
.news-reading-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.news-reading-list li { border-bottom: 1px solid var(--border); }
.news-reading-list li:last-child { border-bottom: none; }
.news-reading-list a {
  display: block; padding: 14px 10px; margin: 0 -10px;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, padding-left 150ms ease;
}
.news-reading-list a:hover { background: var(--tint-a-bg); border-left-color: var(--color-primary); padding-left: 14px; }
.news-reading-category { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tint-a-text); margin-bottom: 5px; }
.news-reading-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--fg); }
.news-reading-date { display: flex; align-items: center; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted-2); }

.news-more-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted-2); margin-bottom: 20px; padding-top: 44px; border-top: 1px solid var(--border); }

.news-wrap { padding: 40px 40px 96px; }
.news-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.news-date-filters { display: flex; gap: 10px; }
.news-select {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  cursor: pointer;
}
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: border-color 160ms ease; }
.news-card:hover { border-color: var(--border-strong); }
.news-card-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-thumb-placeholder { background: var(--tint-a-bg); }
.news-card-body { padding: 22px; }
.news-card-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.news-card-category { color: var(--tint-a-text); background: var(--tint-a-bg); border-radius: var(--radius-pill); padding: 3px 9px; }
.news-card-date { color: var(--fg-muted-2); }
.news-card-author { color: var(--fg-muted-2); }
.news-card-body h3 { margin: 14px 0 0; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; color: var(--fg); line-height: 1.3; }
.news-card-body p { margin: 9px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(16,17,20,0.6); }

/* ---------- Artigo (single post) ---------- */
.single-post .section-header-inner .post-card-meta { margin-top: 16px; display: flex; gap: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-muted-2); }
.single-post .section-header h1 { margin-top: 14px; }
.entry-thumb { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }

.suggested-news { max-width: 760px; padding-top: 8px; padding-bottom: 64px; }
.suggested-news .eyebrow { margin-bottom: 18px; }
.suggested-news-card { max-width: 340px; }
.contact-wrap { padding-top: 44px; padding-bottom: 96px; }
.contact-content > p { margin: 0 0 28px; max-width: 760px; font-size: 18px; line-height: 1.7; color: rgba(16,17,20,0.75); }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { background: var(--tint-a-bg); border: 1px solid var(--tint-a-border); border-radius: var(--radius-lg); padding: 28px; }
.contact-card .contact-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tint-a-text); }
.contact-card h2 { margin: 10px 0 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; color: var(--fg); }
.contact-card p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); }
.contact-card a { color: var(--color-primary); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; } }
.entry-content-wrap { max-width: 760px; padding-top: 44px; padding-bottom: 30px; }
.entry-content p { margin: 18px 0 0; font-size: 18px; line-height: 1.7; color: rgba(16,17,20,0.75); }
.entry-content p:first-child { margin-top: 0; }
.entry-content h2 { margin: 40px 0 0; font-size: 26px; letter-spacing: -0.025em; font-weight: 600; }
.entry-content img { max-width: 100%; border-radius: var(--radius-md); margin-top: 20px; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Infraestrutura ---------- */
.section-header .infrastructure-intro { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: rgba(16,17,20,0.65); max-width: 70ch; }
.section-header .infrastructure-intro p { margin: 10px 0 0; }
.section-header .infrastructure-intro p:first-child { margin-top: 0; }
.laboratory-block { padding: 52px 0; }
.laboratory-block + .laboratory-block { border-top: 1px solid var(--border); }
.laboratory-block-header { margin-bottom: 28px; }
.laboratory-block-header h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; }
.laboratory-block-header p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--fg-muted); max-width: 65ch; }
.laboratory-block-group { margin-top: 32px; }
.laboratory-block-group:first-of-type { margin-top: 0; }
.laboratory-block-group h3 { margin: 0 0 16px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-muted-2); }
.laboratory-empty { color: var(--fg-muted-2); font-size: 14.5px; }
.infrastructure-photos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.infrastructure-photo-card { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); }
.infrastructure-photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.infrastructure-photo-card figcaption { padding: 14px 16px; font-size: 14.5px; color: var(--fg-muted); }
.infrastructure-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.infrastructure-list-row { background: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.infrastructure-list-row .nome { font-size: 16.5px; font-weight: 500; }
.infrastructure-list-row .especificacao { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted-2); text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 68px 40px 36px; }
.site-footer-inner { max-width: var(--wrap-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { margin: 16px 0 0; font-size: 15.5px; line-height: 1.55; color: rgba(16,17,20,0.55); max-width: 36ch; }
.footer-rede-verdes { display: flex; align-items: center; gap: 12px; margin-top: 22px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; width: fit-content; }
.footer-rede-verdes img { height: 34px; width: auto; object-fit: contain; }
.footer-rede-verdes span { font-size: 14px; line-height: 1.35; color: rgba(16,17,20,0.6); }
.footer-rede-verdes strong { color: var(--fg); }
.footer-col { display: grid; gap: 11px; font-size: 15px; color: rgba(16,17,20,0.6); }
.footer-col .eyebrow { color: rgba(16,17,20,0.4); }
.footer-col a { color: rgba(16,17,20,0.6); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted-3);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .research-tracks-header { grid-template-columns: 1fr; gap: 24px; }
  .research-track-row, .research-track-row.is-reverse { grid-template-columns: 1fr; gap: 24px; }
  .research-track-row.is-reverse .research-track-row-media, .research-track-row.is-reverse .research-track-row-text { grid-column: 1; }
  .pilot-card { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faculty-cards, .team-grid, .postgrad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-row { grid-template-columns: 220px minmax(0, 1fr) auto; }
  .project-body-grid { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .rede-verdes-card { grid-template-columns: 1fr; text-align: left; }
  .project-single-top { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .wrap, .site-header-inner, .hero-grid, .marquee-section .eyebrow,
  .rede-verdes-section, .home-news-section, .research-tracks-section, .pilot-section,
  .projects-list, .highlight-grid, .section-header-inner,
  .project-single-header-inner, .kpi-strip, .project-gallery, .project-body-grid,
  .faculty-grid, .postgrad-section, .openings-cta, .site-footer-inner, .team-section,
  .infrastructure-photos-section, .infrastructure-list-section, .publications-wrap, .news-wrap, .news-featured, .entry-content-wrap, .team-page-header, .products-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .primary-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .social-icons { gap: 10px; }
  .site-branding img.logo-ufc { display: none; }
  .site-branding-divider { display: none; }
  .site-header { padding: 12px 16px; }
  .site-header-inner { height: 68px; border-radius: var(--radius-lg); gap: 16px; }
  .site-branding img.logo-grei { height: 42px; }
  .highlight-grid, .faculty-cards, .team-grid, .postgrad-grid { grid-template-columns: 1fr; }
  .infrastructure-photos-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .news-master-body h2 { font-size: 24px; }
  .project-row { grid-template-columns: 1fr; }
  .project-row-media { min-height: 150px; }
  .project-row-arrow { display: none; }
  .news-filters { flex-direction: column; align-items: flex-start; }
  .kpi-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-title { font-size: clamp(30px, 8vw, 44px); }
  .hero-video-frame { min-height: 260px; }
  .publication-row { flex-wrap: wrap; gap: 8px 14px; }
  .publication-row-date { width: auto; order: 2; }
  .publication-row-main { order: 1; flex-basis: 100%; }
  .publication-row-arrow { order: 3; }
  .infrastructure-list-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .infrastructure-list-row .especificacao { text-align: left; }
}

/* ---------- Página de projeto estilo "loja de jogo" (VRSL e afins) ---------- */
.vrsl-game-page { background: #10161c; color: rgba(255,255,255,0.86); }

.vgp-hero {
  position: relative;
  padding: 40px 40px 44px;
  background: var(--vgp-hero-img, none) center/cover no-repeat, #0c1116;
  overflow: hidden;
}
.vgp-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,16,0.78) 0%, rgba(8,12,16,0.94) 65%, #10161c 100%);
}
.vgp-hero-inner { position: relative; max-width: var(--wrap-width); margin: 0 auto; }
.vgp-back-link { display: inline-block; color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: none; margin-bottom: 28px; }
.vgp-back-link:hover { color: #fff; }

.vgp-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vgp-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
}
.vgp-tag-status { background: rgba(155,210,180,0.16); border-color: rgba(155,210,180,0.32); color: #9BD2B4; }

.vgp-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px; color: #fff; max-width: 820px; }
.vgp-lede { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.68); max-width: 640px; margin: 0 0 28px; }

.vgp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.vgp-btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-primary-light); color: #fff; font-weight: 700;
  padding: 14px 26px; border-radius: var(--radius-pill); text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(74,124,104,0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}
.vgp-btn-download:hover { background: var(--color-primary-lighter); transform: translateY(-1px); }
.vgp-btn-download-icon { font-size: 16px; }
.vgp-btn-secondary {
  display: inline-flex; align-items: center;
  padding: 14px 22px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.85);
  text-decoration: none; font-weight: 600; transition: border-color 0.15s ease, color 0.15s ease;
}
.vgp-btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.vgp-stats { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); max-width: 640px; }
.vgp-stat { display: flex; flex-direction: column; gap: 4px; }
.vgp-stat strong { font-size: 22px; font-weight: 800; color: #fff; }
.vgp-stat span { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.04em; }

.vgp-gallery { max-width: var(--wrap-width); margin: 0 auto; padding: 28px 40px 0; }
.vgp-gallery-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.vgp-gallery-item { flex: 0 0 auto; width: 260px; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.vgp-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.vgp-gallery-item:hover img { transform: scale(1.04); }

.vgp-body { max-width: var(--wrap-width); margin: 0 auto; padding: 48px 40px 96px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.34fr); gap: 56px; align-items: start; }
.vgp-section { margin-bottom: 48px; }
.vgp-section h2 { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 16px; }
.vgp-section p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.7); margin: 0 0 14px; }

.vgp-feature-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.vgp-feature-list li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255,255,255,0.78); }
.vgp-feature-list li::before { content: "✓"; position: absolute; left: 0; color: #9BD2B4; font-weight: 700; }

.vgp-requirements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.1); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.vgp-requirements-col { background: #151c23; padding: 22px 24px; }
.vgp-requirements-col.is-recommended { background: #161f1a; }
.vgp-requirements-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #9BD2B4; margin-bottom: 14px; }
.vgp-requirements-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vgp-requirements-col li { font-size: 14.5px; color: rgba(255,255,255,0.75); padding-left: 16px; position: relative; }
.vgp-requirements-col li::before { content: "–"; position: absolute; left: 0; color: rgba(255,255,255,0.35); }
.vgp-muted { color: rgba(255,255,255,0.35) !important; }

.vgp-controls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.vgp-control-row { display: flex; align-items: center; gap: 12px; background: #151c23; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 10px 14px; }
.vgp-key { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #10161c; background: #9BD2B4; padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.vgp-action { font-size: 14px; color: rgba(255,255,255,0.75); }

.vgp-publications-list { display: grid; gap: 14px; }
.vgp-pub-title { font-size: 15px; font-weight: 600; color: #fff; }
.vgp-pub-meta { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.vgp-pub-meta a { color: #9BD2B4; }

.vgp-sidebar { display: grid; gap: 20px; position: sticky; top: 24px; }
.vgp-sidebar-box { background: #151c23; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 20px; }
.vgp-sidebar-eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.vgp-awards-list { display: grid; gap: 10px; }
.vgp-award { font-size: 13.5px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.vgp-credits-list { display: grid; gap: 8px; }
.vgp-credits-list a, .vgp-credits-list span { font-size: 14px; color: rgba(255,255,255,0.78); text-decoration: none; }
.vgp-credits-list a:hover { color: #9BD2B4; }
.vgp-credit-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vgp-credit-row small { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.vgp-sidebar-cta p { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0 0 14px; }
.vgp-sidebar-cta .vgp-btn-secondary { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .vgp-body { grid-template-columns: 1fr; }
  .vgp-sidebar { position: static; }
}
@media (max-width: 780px) {
  .vgp-hero, .vgp-gallery, .vgp-body { padding-left: 20px; padding-right: 20px; }
  .vgp-requirements-grid { grid-template-columns: 1fr; }
}

.vgp-gallery-item { cursor: zoom-in; }

.vgp-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,9,12,0.92);
  padding: 40px;
  opacity: 0; transition: opacity 0.18s ease;
}
.vgp-lightbox.is-open { display: flex; opacity: 1; }
body.vgp-lightbox-locked { overflow: hidden; }
.vgp-lightbox-img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: var(--radius-md); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.vgp-lightbox-close, .vgp-lightbox-prev, .vgp-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff;
  border-radius: var(--radius-pill); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vgp-lightbox-close:hover, .vgp-lightbox-prev:hover, .vgp-lightbox-next:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.vgp-lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.vgp-lightbox-prev, .vgp-lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 20px; }
.vgp-lightbox-prev { left: 24px; }
.vgp-lightbox-next { right: 24px; }
@media (max-width: 780px) {
  .vgp-lightbox { padding: 16px; }
  .vgp-lightbox-prev, .vgp-lightbox-next { width: 40px; height: 40px; }
  .vgp-lightbox-prev { left: 10px; }
  .vgp-lightbox-next { right: 10px; }
  .vgp-lightbox-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .vgp-lightbox { transition: none; }
}

/* ---------- Docs (template-docs.php) ---------- */
.docs-app { max-width: var(--wrap-width); margin: 0 auto; padding: 32px 40px 96px; }
.docs-picker-head h2 { margin: 0; font-size: 30px; letter-spacing: -0.03em; font-weight: 700; color: var(--fg); }
.docs-picker-head p { margin: 8px 0 0; font-size: 17px; color: var(--fg-muted); }
.docs-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.docs-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--tint-a-border); border-radius: var(--radius-lg); background: var(--tint-a-bg); text-decoration: none; color: var(--fg); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.docs-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.docs-card h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.docs-card p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); }
.docs-card-open { margin-top: auto; padding-top: 20px; font-size: 14px; font-weight: 700; color: var(--color-primary); }
.docs-back { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.docs-back:hover { text-decoration: underline; }
.docs-source-title { margin: 10px 0 14px; font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.docs-layout[hidden], .docs-picker[hidden] { display: none; }
.docs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; gap: 40px; align-items: start; }
.docs-sidebar { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; padding-right: 8px; }
.docs-filter { width: 100%; font: inherit; font-size: 14px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: #fff; margin-bottom: 14px; }
.docs-filter:focus { outline: 2px solid var(--color-primary-pale); border-color: var(--color-primary); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav-list.depth-0 > li { margin-top: 14px; }
.docs-nav-list.depth-0 > li > a { display: block; }
.docs-nav summary { cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tint-a-text); padding: 6px 0; list-style: none; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-nav summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform 160ms ease; }
.docs-nav details[open] > summary::before { transform: rotate(90deg); }
.docs-nav .depth-1 { padding-left: 10px; border-left: 1px solid var(--border); margin-left: 3px; }
.docs-nav .depth-2 { padding-left: 10px; border-left: 1px solid var(--border); margin-left: 3px; }
.docs-nav .depth-1 summary, .docs-nav .depth-2 summary { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; color: var(--fg); }
.docs-nav a { display: block; padding: 6px 10px; margin: 1px 0; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.35; color: var(--fg-muted); text-decoration: none; }
.docs-nav a:hover { background: var(--tint-a-bg); color: var(--fg); }
.docs-nav a.is-active { background: var(--tint-a-bg); color: var(--color-primary); font-weight: 700; }
.docs-nav-empty { font-size: 14px; color: var(--fg-muted); }

.docs-main { min-width: 0; }
.docs-status { font-size: 16px; color: var(--fg-muted); }
.docs-status.is-error { color: #9a2f2f; }
.docs-lang-note { font-size: 13px; color: var(--fg-muted); margin: 0 0 18px; }
.docs-body { font-size: 17px; line-height: 1.7; color: rgba(16,17,20,0.8); overflow-wrap: anywhere; }
.docs-body h1 { margin: 0 0 20px; font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; color: var(--fg); }
.docs-body h2 { margin: 44px 0 0; padding-top: 8px; font-size: 26px; letter-spacing: -0.025em; font-weight: 700; color: var(--fg); }
.docs-body h3 { margin: 32px 0 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 700; color: var(--fg); }
.docs-body h4 { margin: 24px 0 0; font-size: 17px; font-weight: 700; color: var(--fg); }
/* o cabeçalho do site é fixo: sem essa margem o título do tópico fica escondido embaixo dele ao clicar num link do índice */
.docs-body [id] { scroll-margin-top: 180px; }
@media (prefers-reduced-motion: no-preference) { html:has(.docs-app) { scroll-behavior: smooth; } }
.docs-body h1 .docs-anchor { display: none; }
.docs-anchor { margin-left: 8px; font-weight: 400; color: var(--fg-muted-2); text-decoration: none; opacity: 0; }
.docs-body :is(h2, h3, h4):hover .docs-anchor, .docs-anchor:focus { opacity: 1; }
.docs-body p { margin: 16px 0 0; }
.docs-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.docs-body ul, .docs-body ol { margin: 16px 0 0; padding-left: 26px; }
.docs-body li { margin-top: 6px; }
.docs-body li > p { margin-top: 8px; }
.docs-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.docs-body img { max-width: 100%; height: auto; vertical-align: middle; }
.docs-body blockquote { margin: 20px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--tint-a-border); color: var(--fg-muted); }
.docs-body code { font-family: var(--font-mono); font-size: 0.88em; background: var(--tint-a-bg); border: 1px solid var(--tint-a-border); border-radius: 6px; padding: 1px 6px; color: var(--tint-a-strong); }
.docs-body table { width: 100%; border-collapse: collapse; margin: 20px 0 0; font-size: 15px; display: block; overflow-x: auto; }
.docs-body th, .docs-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.docs-body th { background: var(--tint-a-bg); font-weight: 700; }

.docs-code { position: relative; margin: 20px 0 0; border-radius: var(--radius-md); background: #14201B; overflow: hidden; }
.docs-code-title { padding: 9px 16px; font-family: var(--font-mono); font-size: 12px; color: #9BD2B4; border-bottom: 1px solid rgba(255,255,255,0.1); }
.docs-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.docs-body .docs-code code { background: none; border: 0; padding: 0; border-radius: 0; font-size: 13.5px; line-height: 1.6; color: #E6EDE9; }
.docs-copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #E6EDE9; cursor: pointer; opacity: 0; transition: opacity 160ms ease; }
.docs-code:hover .docs-copy, .docs-copy:focus { opacity: 1; }
.hljs-comment, .hljs-quote { color: #7f9a8e; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-built_in, .hljs-doctag { color: #9BD2B4; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta .hljs-string { color: #F2C879; }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-link { color: #F0A07A; }
.hljs-title, .hljs-section, .hljs-title.function_, .hljs-name { color: #8FC1F2; }
.hljs-variable, .hljs-template-variable, .hljs-attr, .hljs-params { color: #D9B8F2; }
.hljs-type, .hljs-class .hljs-title, .hljs-title.class_ { color: #8FD6D6; }
.hljs-deletion { color: #F28B8B; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

.docs-body .admonition { margin: 22px 0 0; padding: 14px 18px 16px; border-radius: var(--radius-md); border: 1px solid var(--tint-a-border); border-left: 4px solid var(--color-primary-light); background: var(--tint-a-bg); font-size: 16px; }
.docs-body .admonition > :first-child { margin-top: 0; }
.docs-body .admonition-title, .docs-body .admonition > summary { margin: 0 0 6px; font-weight: 700; color: var(--fg); cursor: default; }
.docs-body details.admonition > summary { cursor: pointer; margin-bottom: 0; }
.docs-body details.admonition[open] > summary { margin-bottom: 8px; }
.docs-body .admonition.note, .docs-body .admonition.info { background: #EEF4FA; border-color: #CFE0F1; border-left-color: #3F7CB8; }
.docs-body .admonition.warning, .docs-body .admonition.caution { background: #FBF4E4; border-color: #EFDDB0; border-left-color: #C98A12; }
.docs-body .admonition.danger, .docs-body .admonition.failure, .docs-body .admonition.bug { background: #FBEDED; border-color: #EFC9C9; border-left-color: #B23A3A; }
.docs-body .admonition.abstract, .docs-body .admonition.example, .docs-body .admonition.quote { background: #F3F0FA; border-color: #DDD5F0; border-left-color: #7A5BC2; }
.docs-body .admonition.success, .docs-body .admonition.tip { background: #EDF6F0; border-color: #CBE3D3; border-left-color: #2F8A55; }

.docs-body .tabbed-set { margin: 22px 0 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.docs-body .tabbed-labels { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 10px; background: var(--tint-a-bg); border-bottom: 1px solid var(--border); }
.docs-body .tabbed-labels button { font: inherit; font-size: 14px; font-weight: 600; padding: 11px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--fg-muted); cursor: pointer; }
.docs-body .tabbed-labels button.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.docs-body .tabbed-block { display: none; padding: 0 18px 18px; }
.docs-body .tabbed-block.is-active { display: block; }
.docs-body .tabbed-block > :first-child { margin-top: 16px; }

.docs-body .grid.cards > ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.docs-body .grid.cards > ul > li { margin: 0; padding: 20px; border: 1px solid var(--tint-a-border); border-radius: var(--radius-md); background: var(--tint-a-bg); font-size: 15.5px; }
.docs-body .grid.cards > ul > li > p:first-child { margin-top: 0; font-size: 18px; color: var(--fg); }
.docs-body .grid.cards > ul > li hr { margin: 12px 0; }
.docs-body pre.mermaid { margin: 22px 0 0; padding: 16px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; }

.docs-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.docs-foot a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.docs-foot a:hover { text-decoration: underline; }
.docs-pager { display: flex; gap: 16px; margin-top: 28px; }
.docs-pager-link { flex: 1; display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--fg); transition: border-color 160ms ease, box-shadow 160ms ease; }
.docs-pager-link:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.docs-pager-link span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted-2); }
.docs-pager-link strong { display: block; margin-top: 4px; font-size: 15.5px; }
.docs-pager-link.is-next { text-align: right; margin-left: auto; }
.docs-pager-link.is-prev:only-child { max-width: 50%; }
.docs-pager-link.is-next:only-child { max-width: 50%; }

.docs-toc { position: sticky; top: 110px; font-size: 13.5px; max-height: calc(100vh - 130px); overflow-y: auto; }
.docs-toc-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted-2); margin-bottom: 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.docs-toc li a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--fg-muted); text-decoration: none; line-height: 1.35; }
.docs-toc li.is-sub a { padding-left: 26px; }
.docs-toc li a:hover { color: var(--fg); }
.docs-toc li a.is-active { color: var(--color-primary); border-left-color: var(--color-primary); font-weight: 600; }

@media (max-width: 1180px) {
  .docs-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs-picker-grid { grid-template-columns: 1fr; }
  .docs-app { padding: 24px 20px 72px; }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-sidebar { position: static; max-height: 280px; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
  .docs-body h1 { font-size: 30px; }
  .docs-body .grid.cards > ul { grid-template-columns: 1fr; }
  .docs-pager { flex-direction: column; }
  .docs-pager-link.is-prev:only-child, .docs-pager-link.is-next:only-child { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .docs-nav summary::before, .docs-copy, .docs-pager-link, .docs-card { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faculty-avatar img, .postgrad-avatar img { transition: none; }
  .faculty-card:hover .faculty-avatar img, .postgrad-card:hover .postgrad-avatar img { transform: none; }
}
