/* ============================================================
   CELGA-ILTEC — Stylesheet
   Acessibilidade: WCAG 2.1 AA
   ============================================================ */

/* ── Variáveis ──────────────────────────────────────────────── */
/* Esta variante replica o LOOK do site atual (WordPress/The7), extraído dos tokens
   reais do tema em produção (wp-content/uploads/the7-css/css-vars.css) — não é a
   reinterpretação artística da outra versão, é a mesma aparência, em Hugo. */
:root {
  --teal:          #64C3C8;   /* --the7-accent-bg-color / --the7-menu-hover-color do tema atual */
  --teal-lt:       #e3f6f8;
  --teal-hover:    #27B99E;   /* --the7-btn-hover-bg-color do tema atual */
  --coral:         #EB505F;   /* --the7-footer-outline-color / spinner do tema atual */
  --navy:          #333333;   /* --the7-menu-color / texto do tema atual — cinza-escuro, não navy */
  --navy-mid:      #333333;
  --navy-lt:       #4a4a4a;

  /* Cores de texto acessíveis (WCAG AA ≥ 4.5:1 sobre branco) */
  --teal-text:     #0A6B75;
  --teal-btn:      #64C3C8;   /* botões usam a cor de marca diretamente, como no site atual */
  --coral-text:    #A83347;

  /* Neutros */
  --white:         #ffffff;
  --off-white:     #FAFAFA;
  --gray-50:       #F8FAFC;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-400:      #94A3B8;
  --gray-600:      #767676;   /* --the7-base-color aprox. do tema atual */
  --gray-800:      #333333;

  --paper:         #FFFFFF;   /* o site atual usa branco puro, não papel quente */
  --paper-alt:     #F8FAFC;

  /* Semântico */
  --color-text:       var(--gray-800);
  --color-text-muted: var(--gray-600);
  --color-border:     var(--gray-200);
  --color-bg:         var(--paper);
  --color-bg-alt:     var(--paper-alt);

  --gradient-contact: linear-gradient(120deg, var(--coral) 0%, var(--teal) 100%);

  /* Tipografia — Roboto (corpo/menu) + Fira Sans (botões), tal como o tema The7 em produção */
  --font-sans:   'Roboto', Helvetica, Arial, Verdana, sans-serif;
  --font-serif:  'Roboto', Helvetica, Arial, Verdana, sans-serif;
  --font-mono:   'Roboto', Helvetica, Arial, Verdana, sans-serif;
  --font-btn:    'Fira Sans', Helvetica, Arial, Verdana, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.5rem;
  --header-height: 64px;

  /* Efeitos — o site atual não usa cantos arredondados em cartões (border-radius: 0px),
     só nos botões, que são totalmente em pílula */
  --radius-sm:  0px;
  --radius:     0px;
  --radius-lg:  0px;
  --radius-xl:  0px;
  --radius-full: 100px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 20px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.06);
  --shadow-nav: 0 8px 32px rgba(0,0,0,.18);

  --transition: 0.22s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg) url('/images/atual/pattern.png') repeat left top fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
ul, ol { list-style: none; }

/* ── Acessibilidade ─────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--teal-btn); color: var(--white);
  padding: .6rem 1.2rem; border-radius: var(--radius);
  z-index: 9999; font-weight: 700; font-size: .875rem;
}
.skip-link:focus { top: 1rem; }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ══════════════════════════════════════════════════════════════
   HEADER & NAV
══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  height: var(--header-height);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--container-pad);
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.site-logo img {
  height: 44px; width: auto;
  transition: opacity var(--transition);
}
.site-logo:hover img { opacity: .85; }
.site-logo:focus-visible img { outline: none; }
.site-logo:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

/* Nav */
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; }
.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 0 .75rem;
  height: var(--header-height);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: .75rem; right: .75rem;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--teal); }
.nav-link:hover::after,
.nav-item.active > .nav-link::after { transform: scaleX(1); }
.nav-item.active > .nav-link { color: var(--teal); }
.dropdown-arrow {
  font-size: .5rem; opacity: .5;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-item.has-dropdown.is-open .dropdown-arrow,
.nav-item.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdowns */
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border-top: 2px solid var(--teal);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-nav);
  min-width: 200px;
  padding: .35rem 0;
  z-index: 200;
  animation: dropIn .15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.is-open .dropdown-menu { display: block; }

.dropdown-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1.1rem;
  font-size: .77rem; font-weight: 500;
  color: var(--gray-700, #374151);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
  border-left: 2px solid transparent;
}
.dropdown-link:hover {
  background: var(--teal-lt);
  color: var(--teal-text);
  padding-left: 1.3rem;
  border-left-color: var(--teal);
}
.dropdown-link:focus-visible { outline-offset: -3px; }

/* Sub-dropdowns */
.dropdown-item.has-sub-dropdown { position: relative; }
.sub-dropdown-menu {
  display: none;
  position: absolute; top: 0; left: 100%;
  background: var(--white);
  border-top: 2px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-nav);
  min-width: 195px; padding: .35rem 0;
  z-index: 201;
}
.dropdown-item.has-sub-dropdown:hover .sub-dropdown-menu,
.dropdown-item.has-sub-dropdown:focus-within .sub-dropdown-menu,
.dropdown-item.has-sub-dropdown.is-open .sub-dropdown-menu { display: block; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 42px; height: 42px;
  background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.1);
  cursor: pointer; margin-left: auto; padding: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(0,0,0,.08); }
.hamburger {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.38) 55%, rgba(0,0,0,.15) 100%),
    url('/images/atual/hero-estante-1.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0 5rem;
  min-height: 66vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem; align-items: center; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.hero-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.8vw, 3.75rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.25rem; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero-title .weight-light { font-weight: 400; color: var(--teal); }
.hero-lead {
  font-size: 1.08rem; color: rgba(255,255,255,.88);
  max-width: 520px; line-height: 1.8; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-sidebar {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}
.hero-uc-logo { width: 120px; filter: brightness(0) invert(1); opacity: .9; }
.hero-divider { width: 36px; height: 1px; background: rgba(255,255,255,.3); }
.hero-celga-logo { width: 170px; opacity: 1; background: rgba(255,255,255,.92); padding: .6rem .9rem; }
.hero-sidebar-label {
  font-size: .67rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .1em; text-align: center;
}

/* Stats Bar */
.stats-bar {
  background: var(--teal-btn);
  padding: 1.2rem 0;
  position: relative; z-index: 2;
}
.stats-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .15rem; padding: .4rem 0;
  border-right: 1px solid rgba(255,255,255,.18);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 1.9rem; font-weight: 700; color: var(--white); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: .67rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.78);
}

/* ══════════════════════════════════════════════════════════════
   BOTÕES
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-btn);
  font-weight: 700; font-size: .875rem; letter-spacing: .01em;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.015); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(1); }
.btn--primary { background: var(--teal-btn); color: var(--white); border-color: var(--teal-btn); }
.btn--primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white:hover { background: var(--gray-100); color: var(--navy); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--teal-btn); color: var(--teal-btn); }
.btn--outline:hover { background: var(--teal-btn); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-mid); color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   SECÇÕES
══════════════════════════════════════════════════════════════ */
.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.88); }
.section--navy .section-title { color: var(--white); }
.section--navy a { color: rgba(255,255,255,.72); }
.section--navy a:hover { color: var(--white); }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 3rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.section--navy .section-header { border-bottom-color: rgba(255,255,255,.1); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: .65rem;
}
.section-title::before {
  content: '';
  display: inline-block; flex-shrink: 0;
  width: 4px; height: 1.1em;
  background: var(--teal);
  border-radius: 2px;
}
.section-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 600;
  color: var(--teal-text); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .04em;
  padding-bottom: 3px;
}
.section-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.section-link:hover { color: var(--navy); }
.section-link:hover::after { transform: scaleX(1); }

/* Banner Projeto Estratégico */
.project-banner {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid; grid-template-columns: auto 1fr;
  gap: 2.5rem; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.project-banner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,159,173,.12) 0%, transparent 70%);
}
.project-badge {
  flex-shrink: 0;
  background: var(--teal);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem;
  text-align: center; white-space: nowrap; line-height: 1.2;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(26,159,173,.35);
}
.project-badge small {
  display: block; font-family: var(--font-sans);
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .78; margin-bottom: .3rem;
}
.project-text { position: relative; z-index: 1; color: rgba(255,255,255,.88); }
.project-text h2 {
  font-family: var(--font-serif); font-size: 1.5rem;
  color: var(--white); margin-bottom: .75rem;
}
.project-text p { font-size: .95rem; line-height: 1.75; }
.project-text strong { color: #7de8f2; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════ */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }

/* Fita de topo colorida por tipo de conteúdo — coral para notícias, aqua para eventos */
.card--news::before,
.card--event::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--coral); z-index: 1;
}
.card--event::before { background: var(--teal); }

.card--news .card-img-link { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img { transform: scale(1.05); }

.card-body { padding: 1.5rem; }
.card-date {
  display: block; font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600;
  color: var(--teal-text); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .6rem;
}
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: .5rem; letter-spacing: -.005em; }
.card-title a { color: var(--gray-800); transition: color var(--transition); }
.card-title a:hover { color: var(--teal-text); }
.card-meta { font-size: .8rem; color: var(--color-text-muted); margin-bottom: .4rem; }
.card-excerpt {
  font-size: .875rem; color: var(--color-text-muted); line-height: 1.65;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.card--group .card-excerpt { -webkit-line-clamp: 4; }

/* Cards de grupos de trabalho */
.card--group {
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.card--group .card-body { padding: 1.75rem; }
.card--group .card-title { font-size: .975rem; }
.card--group .card-title a { color: var(--navy); }
.card--group .card-title a:hover { color: var(--teal-text); }
.card--group .card-meta strong { color: var(--navy); }

/* Recursos */
.recursos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.recurso-card {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.recurso-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal);
  transform: translateY(-3px);
  text-decoration: none; color: var(--color-text);
}
.recurso-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--teal-lt);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--teal-text);
}
.recurso-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.recurso-card p { font-size: .875rem; color: var(--color-text-muted); line-height: 1.55; }

/* Publicações teaser */
.pub-teaser-band {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  box-shadow: var(--shadow-lg);
}
.pub-teaser-band h2 { font-family: var(--font-serif); font-size: 1.7rem; color: var(--white); margin-bottom: .5rem; }
.pub-teaser-band p { color: rgba(255,255,255,.68); font-size: .95rem; }

/* ══════════════════════════════════════════════════════════════
   BANNER DE PÁGINA (header de páginas internas)
══════════════════════════════════════════════════════════════ */
.page-banner {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a6e 100%);
  color: var(--white);
  padding: 3.5rem 0 2.75rem;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-banner-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad);
  position: relative; z-index: 1;
}
.page-breadcrumb { margin-bottom: 1.1rem; }
.page-breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  font-size: .72rem;
}
.page-breadcrumb-item { display: flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.48); }
.page-breadcrumb-item:not(:last-child)::after { content: '/'; opacity: .3; }
.page-breadcrumb-item a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.page-breadcrumb-item a:hover { color: var(--white); }
.page-breadcrumb-item--current { color: rgba(255,255,255,.8); }
.page-date-tag {
  display: inline-block; margin-bottom: .7rem;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: #7de8f2;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; line-height: 1.15; color: var(--white);
}
.page-lead {
  font-size: 1.025rem; color: rgba(255,255,255,.7);
  margin-top: .65rem; max-width: 620px; line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════
   CONTEÚDO DE PÁGINA
══════════════════════════════════════════════════════════════ */
.page-content { padding: 3rem 0 5rem; }
.page-content-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad);
}
.page-hero-img { margin-bottom: 2.5rem; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.page-img { width: 100%; max-height: 420px; object-fit: cover; }
.page-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.page-body { margin-top: 1.5rem; }
.post-back { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { color: var(--color-text-muted); font-size: .875rem; }
.back-link:hover { color: var(--teal-text); }

/* ── Prose ──────────────────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-serif); font-weight: 700; line-height: 1.25;
  margin-top: 2.25rem; margin-bottom: .75rem; color: var(--navy);
}
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--color-border); }
.prose h3 { font-size: 1.1rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5rem; line-height: 1.7; }
.prose a { color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--navy); }
.prose strong { font-weight: 700; color: var(--navy); }
.prose em { font-style: italic; }
.prose p { font-size: 1.03rem; }
.prose blockquote {
  border-left: 4px solid var(--teal);
  padding: .75rem 1.25rem;
  background: var(--teal-lt);
  color: var(--gray-600); font-style: italic; margin: 1.5rem 0;
}
.prose code {
  background: var(--gray-100); padding: .15rem .4rem;
  border-radius: var(--radius-sm); font-size: .88em; font-family: monospace;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.prose th {
  background: var(--navy); color: var(--white);
  padding: .75rem 1rem; text-align: left; font-weight: 600;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
}
.prose td { padding: .65rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose tr:hover td { background: var(--gray-50); }

.publications-content { max-width: 100%; }
.publications-content h2 { margin-top: 2.5rem; }
.publications-content p { font-size: .9rem; margin-bottom: .6rem; }

/* ══════════════════════════════════════════════════════════════
   MEMBROS
══════════════════════════════════════════════════════════════ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1.5rem;
}
.member-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .7rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: background var(--transition), transform var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}
.member-card:hover {
  background: var(--white); border-color: var(--teal);
  transform: translateY(-3px); box-shadow: var(--shadow);
  text-decoration: none;
}
.member-photo-wrap { width: 100px; height: 100px; }
.member-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
  transition: box-shadow var(--transition);
}
.member-card:hover .member-photo { box-shadow: 0 0 0 2px var(--teal); }
.member-photo--placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--gradient-contact);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
}
.member-initials { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--white); }
.member-name { font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--gray-800); }

/* Perfil de membro */
.member-profile { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: flex-start; }
.member-profile-photo { text-align: center; }
.member-profile-img {
  width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal), var(--shadow-lg);
  margin: 0 auto 1rem;
}
.member-profile-img--placeholder {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--gradient-contact);
  display: flex; align-items: center; justify-content: center;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal), var(--shadow-lg);
  font-family: var(--font-serif); font-size: 4rem; font-weight: 700; color: var(--white);
  margin: 0 auto 1rem;
}
.member-profile-name { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.member-profile-institution { color: var(--color-text-muted); font-size: .95rem; margin-bottom: .25rem; }
.member-profile-country { color: var(--teal-text); font-size: .875rem; font-weight: 600; margin-bottom: 1rem; }

/* Tabs */
.tab-nav { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: 3rem; }
.tab-link {
  padding: .85rem 1.5rem; font-size: .875rem; font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-link:hover { color: var(--navy); }
.tab-link--active { color: var(--teal-text); border-bottom-color: var(--teal); }

/* ══════════════════════════════════════════════════════════════
   BADGES & TABELAS
══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block; padding: .3rem .85rem;
  border-radius: var(--radius-full); font-size: .68rem;
  font-family: var(--font-mono);
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.badge--integrado { background: var(--teal-lt); color: var(--teal-text); }
.badge--colaborador { background: #fef0ef; color: var(--coral-text); }
.badge--externo { background: var(--gray-100); color: var(--gray-600); }

.table-wrapper {
  overflow-x: auto; margin-top: 1.5rem;
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  background: var(--navy); color: rgba(255,255,255,.9);
  padding: .85rem 1.1rem; text-align: left; font-weight: 600;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
}
.data-table td { padding: .75rem 1.1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table a { color: var(--teal-text); }

/* Publicações */
.pub-list { }
.pub-item { padding: 1.1rem 0; border-bottom: 1px solid var(--color-border); }
.pub-item:last-child { border-bottom: none; }
.pub-title { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: .2rem; }
.pub-title a { color: var(--navy); }
.pub-title a:hover { color: var(--teal-text); }
.pub-authors { font-size: .82rem; color: var(--color-text-muted); margin-bottom: .15rem; }
.pub-journal { font-size: .82rem; color: var(--color-text-muted); }

/* ══════════════════════════════════════════════════════════════
   RODAPÉ
══════════════════════════════════════════════════════════════ */
/* Rodapé aqua com borda coral — tal como --the7-footer-bg-color / --the7-footer-outline-color no tema atual */
.site-footer { background: var(--teal); color: rgba(255,255,255,.9); padding: 4rem 0 0; border-top: 4px solid var(--coral); }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
}
.footer-logo-celga {
  height: 40px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .95; margin-bottom: .75rem;
}
.footer-logo-uc {
  height: 52px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .8; margin-top: .75rem;
}
.footer-tagline { font-size: .78rem; opacity: .8; line-height: 1.55; margin-top: .35rem; }
.footer-heading {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.75); margin-bottom: 1rem;
}
address { font-style: normal; }
address p { font-size: .82rem; margin-bottom: .6rem; line-height: 1.55; }
.footer-link { color: rgba(255,255,255,.85); transition: color var(--transition); }
.footer-link:hover { color: var(--white); text-decoration: underline; }
.footer-nav-list li { margin-bottom: .5rem; }
.footer-nav-list a { font-size: .84rem; }

.footer-funding {
  padding: 1.75rem 0; border-top: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
  background: rgba(255,255,255,.94);
}
.footer-funding-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; opacity: .55; white-space: nowrap; color: var(--navy); }
.funding-logo { height: 34px; width: auto; object-fit: contain; opacity: .9; transition: opacity var(--transition); }
.funding-logo:hover { opacity: 1; }
.funding-logo--wide { height: 26px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.2);
}
.footer-copy { font-size: .72rem; opacity: .8; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: .72rem; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 900px) {
  .card-grid--4, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; justify-content: flex-start; }
  .project-banner { grid-template-columns: 1fr; gap: 1.5rem; }
  .pub-teaser-band { flex-direction: column; }
}
@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: var(--white); overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease;
    border-top: 2px solid var(--teal); margin-left: 0;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link {
    height: auto; padding: 1rem 1.5rem; font-size: .875rem;
    color: var(--navy);
    border-bottom: 1px solid rgba(0,0,0,.06); justify-content: space-between;
  }
  .nav-link::after { display: none; }
  .dropdown-menu, .sub-dropdown-menu {
    display: block; position: static;
    box-shadow: none; border: none; border-radius: 0;
    padding-left: 1rem; animation: none;
    background: rgba(0,0,0,.03);
    border-top: 1px solid rgba(0,0,0,.05);
  }
  .dropdown-link { color: rgba(0,0,0,.68); }
  .dropdown-link:hover { background: rgba(100,195,200,.12); color: var(--navy); padding-left: 1.25rem; }
  .nav-item.has-dropdown .dropdown-menu { display: none; }
  .nav-item.has-dropdown.is-open .dropdown-menu { display: block; }
  .dropdown-item.has-sub-dropdown .sub-dropdown-menu { display: none; }
  .dropdown-item.has-sub-dropdown.is-open .sub-dropdown-menu { display: block; }

  .hero { min-height: 55vh; padding: 4rem 0 3.5rem; }
  .hero-sidebar { display: none; }
  .hero::after { height: 40px; }
  .section { padding: 3.5rem 0; }
  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .recursos-grid { grid-template-columns: 1fr; }
  .member-profile { grid-template-columns: 1fr; }
  .member-profile-photo { text-align: left; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .section-header { flex-direction: column; gap: .75rem; align-items: flex-start; }
  .pub-teaser-band { padding: 2rem; }
}
@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .card-grid { gap: 1rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat-item:last-child { border-bottom: none; }
  .project-banner { padding: 1.75rem; }
  .hero-title { font-size: 1.75rem; }
  .tab-nav { flex-wrap: wrap; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .site-header, .nav-toggle, .site-footer, .btn, .page-breadcrumb, .stats-bar { display: none !important; }
  .page-content { padding: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: var(--gray-600); }
}
