/* =========================
   Fonte oficial PEJ / MPS
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&display=swap');

:root {
  --pej-page-bg: #b7e0e8;

  --pej-teal-light: #78d3df;
  --pej-teal-dark:  #16728d;

  --pej-dark: #16344a;
  --pej-hover: #0f2530;

  --pej-accent: #2f9bb5;

  --pej-gray-light: #e5e7eb;
  --pej-gray-mid:   #9ca3af;
  --pej-gray-dark:  #4b5563;

  --pej-text: #1f2933;
}

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

html, body {
  margin: 0;
  padding: 0;
}

/* =========================
   Corpo
   ========================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pej-text);
  background: var(--pej-page-bg);

  padding-bottom: 24px; /* respiro final */
}

/* =========================
   Caixa branca
   ========================= */
.page-wrapper {
  max-width: 960px;
  margin: 3rem auto 4rem;
  background: #ffffff;
  border: 4px solid var(--pej-dark);
  padding: 2.8rem 2.6rem;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   Cabeçalho
   ========================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;

  padding-bottom: 1.2rem;
  margin-bottom: 2.4rem;

  border-bottom: 1px solid var(--pej-gray-light);
}

/* =========================
   Identidade
   ========================= */
.branding {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand-logo {
  height: 88px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-text .title {
  font-family: "EB Garamond", "Georgia", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pej-dark);
}

.brand-text .subtitle {
  font-family: "EB Garamond", "Georgia", serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--pej-gray-dark);
}

/* =========================
   Navegação
   ========================= */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}

nav a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  font-weight: 500;

  text-decoration: none;
  color: var(--pej-dark);
  padding: 0.45rem 0.75rem;
  border-radius: 2px;

  transition: background-color 0.18s ease, color 0.18s ease;
}

nav a:hover {
  background-color: var(--pej-hover);
  color: #ffffff;
}

nav a.active {
  background-color: var(--pej-dark);
  color: #ffffff;
}

/* =========================
   Conteúdo
   ========================= */
main {
  max-width: 720px;
  margin: 0 auto;
}

/* =========================
   Tipografia
   ========================= */
h1, h2, h3 {
  font-family: "EB Garamond", "Georgia", serif;
  color: var(--pej-dark);
  font-weight: 600;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.45rem; }

p {
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

/* =========================
   CORPS – listagem de membros
   ========================= */

.corps-section {
  margin-top: 2.4rem;
}

/* bloco de cada categoria (Director, Researchers, Students etc.) */
.corps-category {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--pej-gray-light);
}

.corps-category:first-of-type {
  margin-top: 1.8rem;
}

.corps-category h2 {
  margin: 0 0 0.8rem;
}

/* cartão de cada pessoa dentro da categoria */
.corps-card {
  margin-top: 1.2rem;
}

.corps-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

/* linha com instituição / vínculo / email */
.corps-meta {
  font-size: 0.9rem;
  color: var(--pej-gray-dark);
  margin-bottom: 0.4rem;
}

.corps-meta a {
  color: var(--pej-accent);
  text-decoration: none;
}

.corps-meta a:hover {
  text-decoration: underline;
}

/* bio do membro */
.corps-bio {
  margin: 0.4rem 0 0.2rem;
}

/* links Lattes / ORCID / Academia */
.corps-links {
  margin-top: 0.2rem;
}

/* =========================
   Avisos
   ========================= */
.notice {
  border-left: 3px solid var(--pej-accent);
  background: #f9fafb;
  padding: 1rem 1.3rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

/* =========================
   Rodapé “normal”
   ========================= */
footer:not(.site-footer) {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--pej-gray-light);
  font-size: 0.85rem;
  color: var(--pej-gray-mid);
  text-align: center;
}

.external-links {
  margin-top: 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ext-icon {
  min-width: 70px;
  height: 40px;
  padding: 0 0.7rem;

  border-radius: 12px;
  border: 1px solid var(--pej-gray-light);
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  color: var(--pej-dark);
  text-decoration: none;

  transition: background-color 0.18s ease,
              color 0.18s ease,
              border-color 0.18s ease,
              transform 0.12s ease;
}

.ext-icon:hover {
  background-color: var(--pej-dark);
  color: #ffffff;
  border-color: var(--pej-dark);
  transform: translateY(-1px);
}

/* =========================
   Acessibilidade
   ========================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Associated Project Block
   ========================= */
.associated-project {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 900px;
  margin: 18px 0 34px;
}

.associated-project__logo-link {
  flex: 0 0 auto;
  display: inline-block;
  line-height: 0;
}

.associated-project__logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: block;
}

.associated-project__content {
  flex: 1 1 auto;
}

.associated-project__title {
  margin: 0 0 8px 0;
}

.associated-project__meta {
  margin: 0;
  opacity: 0.85;
}

/* =========================
   Rodapé editorial (CENTRALIZADO)
   ========================= */
.site-footer {
  margin-top: 72px;
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.site-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  justify-content: center;   /* CENTRALIZADO */
}

.editorial-note {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.78;
  max-width: 820px;
  text-align: center;        /* CENTRALIZADO */
}

.editorial-note strong {
  font-weight: 600;
}

.editorial-note .brand {
  white-space: nowrap;
}

/* =========================
   Responsivo
   ========================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .brand-logo {
    height: 64px;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
  }

  .page-wrapper {
    margin: 1.5rem auto 2.5rem;
    padding: 2rem 1.6rem;
  }

  .external-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
  }
}

@media (max-width: 700px) {
  .associated-project {
    flex-direction: column;
    gap: 12px;
  }

  .associated-project__logo {
    width: 96px;
    height: 96px;
  }

  .site-footer .footer-inner {
    justify-content: center;
  }

  .editorial-note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  main {
    max-width: 100%;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }

  p, li {
    font-size: 0.95rem;
  }
}