/* ==========================================================================
   LIDIA — folha de estilo principal
   Paleta e tipografia: seção 4 da especificação. Um arquivo, sem build.
   ========================================================================== */

/* ---- Fontes (IBM Plex Sans e Mono, hospedadas localmente) --------------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.b2c9031d9fd6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext.f0e2925b3fa6.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400-latin.16796c7cc5d4.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-latin.3bd6f090515e.woff2") format("woff2"); }


/* ---- Tokens ------------------------------------------------------------- */
:root {
  --navy-900: #00264D; /* tom mais escuro do mesmo azul; usado só em hover */
  --navy-800: #0f1f33;
  --blue-600: #006CCE; /* azul dos links secundários: contraste WCAG ≥ 4,5 (era #0076DF) */
  --blue-400: #3B7EA1;
  --cyan-500: #0076DF; /* cor de destaque (a do "IA" do logo); trocar com scripts/set_logo_accent.py */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F3F3F3;
  --gray-200: #E5E7EB;
  --text: #18181b;
  --text-muted: #6B7280;
  --text-on-dark: #FFFFFF;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1200px;
  --reading: 700px;
  --gutter: 20px;
  --radius: 6px;
  --shadow: none;
  --header-h: 76px;

  /* paleta (preto e zinco) */
  --ink: #0a0a0a;
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #52525b;
  --muted-2: #71717a;
  --faint: #71717a;  /* contraste WCAG ≥ 4,5 em texto pequeno (era #a1a1aa) */
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --link: #1d4ed8;
  --venue: #b45309;
  /* escala de tamanhos de texto */
  --fs-2xs: .7rem;
  --fs-xs: .8rem;
  --fs-sm: .875rem;
  --fs-md: .95rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
}

/* ---- Reset leve ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; color: var(--navy-800); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 1em; }
code, pre { font-family: var(--font-mono); font-size: 0.92em; }
pre { background: var(--gray-100); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--alt { background: var(--gray-50); }
.section-title {
  font-size: var(--fs-2xl);
  color: var(--navy-800);
  margin-bottom: 24px;
  padding-bottom: 10px;
  position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--cyan-500);
}
.section-title--small { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.section-title--small::after { display: none; }
.lead { font-size: var(--fs-lg); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--navy-800); color: var(--white); padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* ---- Botões --------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-md); line-height: 1.3; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--navy-800); color: var(--white); }
.btn--primary:hover { background: var(--navy-900); }
.btn--secondary, .btn--outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn--secondary:hover, .btn--outline:hover { background: var(--blue-600); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--gray-100); }
.btn--small { padding: 7px 14px; font-size: var(--fs-sm); }

/* ---- Cabeçalho ------------------------------------------------------------ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.site-header__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; }
.site-header__brand:hover { text-decoration: none; }
.site-header__brand img { height: 74px; width: auto; }
/* linha de texto sob o logo (Settings > Site settings > Tagline) */
.site-header__tagline { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy-800); white-space: nowrap; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; color: var(--navy-800); font-weight: 500; font-size: var(--fs-base);
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
  border-bottom: 3px solid transparent; border-radius: 0;
}
.site-nav__link:hover, .site-nav__item.is-active > .site-nav__link { border-bottom-color: var(--navy-800); text-decoration: none; }
.site-nav__caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.site-nav__submenu {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--gray-200); border-top: 3px solid var(--navy-800);
  box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  display: none; z-index: 50;
}
.site-nav__item.is-open > .site-nav__submenu { display: block; }
.site-nav__sublink { display: block; padding: 9px 16px; color: var(--text); font-size: var(--fs-md); }
.site-nav__sublink:hover, .site-nav__sublink.is-active { background: var(--gray-100); color: var(--navy-800); text-decoration: none; }
.site-nav__login { padding-left: 16px; border-left: 1px solid var(--gray-200); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 26px; height: 3px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  /* altura do cabeçalho: 76 px em todas as telas (:root no topo) */
  .site-header__brand img { height: 50px; }
  .site-header__tagline { font-size: var(--fs-2xs); letter-spacing: 0.07em; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--gray-100); }
  .site-nav__submenu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--navy-800); margin: 0 var(--gutter); border-radius: 0; }
  .site-nav__login { border: 0; padding: 12px var(--gutter) 0; }
}

/* ---- Título de página (caixa azul-marinho) -------------------------------- */
.page-title { padding: 36px 0 8px; }
.page-title__box {
  display: inline-block; background: var(--navy-800); color: var(--white);
  padding: 12px 22px; border-radius: var(--radius); font-size: var(--fs-2xl); margin: 0 0 12px;
}
.page-title__box--inline { margin-top: 24px; }
.page-title__intro { font-size: var(--fs-lg); color: var(--text-muted); max-width: var(--reading); margin: 8px 0 0; }
.breadcrumbs { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--text-muted); }

/* ---- Hero / carrossel (estilo BAIR: título em caixa azul, texto em caixas brancas) */
.hero { position: relative; background: var(--navy-800); }
.hero__track { position: relative; }
.hero__slide { position: relative; min-height: 460px; display: flex; align-items: center; }
.hero__slide[hidden] { display: none; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 25, 60, 0.22); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 88px; }
.hero__panel { max-width: 780px; }
.hero__title {
  display: inline-block; background: var(--navy-800); color: var(--white);
  font-size: 2.6rem; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em;
  padding: 10px 18px; margin: 0 0 18px;
}
.hero__text { margin: 0 0 20px; font-size: var(--fs-lg); line-height: 2.3; }
.hero__text span {
  background: var(--white); color: var(--navy-800); padding: 7px 12px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__controls {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  width: auto; max-width: none; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(17, 24, 39, 0.82); padding: 8px 14px; border-radius: 999px;
}
.hero__btn {
  background: transparent; color: var(--white); border: 0; border-radius: 50%;
  width: 28px; height: 28px; font-size: var(--fs-xl); line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.hero__btn:hover { background: rgba(255, 255, 255, 0.18); }
.hero__btn--pause { font-size: var(--fs-2xs); }
.hero__btn--pause[aria-pressed="true"] { background: rgba(255, 255, 255, 0.28); }
.hero__dots { display: flex; align-items: center; gap: 8px; }
.hero__dot { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.55); cursor: pointer; padding: 0; transition: width 0.2s; }
.hero__dot.is-active { width: 34px; background: var(--white); }
@media (max-width: 700px) {
  .hero__slide { min-height: 360px; }
  .hero__title { font-size: var(--fs-2xl); }
  .hero__text { font-size: var(--fs-base); }
}

/* ---- Intro + números (fundo claro, números em azul-marinho) ------------------ */
.section--intro { background: var(--gray-100); }
.intro { display: block; }
.intro__text { max-width: none; } /* usa a largura toda, como a faixa dos números */
.stats {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--gray-200); }
.stat:first-child { border-left: 0; }
.stat__number { font-size: 2.75rem; font-weight: 700; line-height: 1; color: var(--navy-800); }
.stat__label { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--gray-200); }
  .stat:first-child { border-top: 0; }
}

/* ---- Cartões (base para projetos, pessoas, notícias) ----------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__body { padding: 18px 20px; flex: 1; }
.card__title { font-size: var(--fs-lg); margin-bottom: 6px; }
.card__title a { color: var(--navy-800); }
.card__meta { font-size: var(--fs-sm); color: var(--text-muted); }
.card--navy { background: var(--navy-800); color: var(--white); border: 0; }
.card--navy .card__title a, .card--navy .card__meta { color: var(--white); }

/* ---- Financiadores ----------------------------------------------------------- */
.section--funders { padding: 32px 0; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.funders { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.funders img { max-height: 64px; width: auto; }
.funders__text { font-weight: 600; color: var(--navy-800); }
.funders--footer { gap: 16px; }
.funders--footer li { background: var(--white); border-radius: 4px; padding: 6px 10px; }
.funders--footer img { max-height: 36px; }
.funders--footer .funders__text { color: var(--navy-800); }

/* ---- Rodapé ------------------------------------------------------------------ */
.site-footer { background: var(--navy-800); color: var(--white); margin-top: 48px; font-size: var(--fs-md); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 48px var(--gutter) 40px; }
.site-footer__brand img { height: 84px; width: auto; margin-bottom: 12px; }
.site-footer__fullname { color: #C9D6EA; max-width: 320px; }
.site-footer__heading { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7); margin-bottom: 10px; }
.site-footer__heading + .site-footer__heading, .site-footer__links + .site-footer__heading { margin-top: 20px; }
.site-footer__address { font-style: normal; line-height: 1.7; }
.site-footer__links, .site-footer__social { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: var(--fs-sm); color: #C9D6EA; }
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---- Texto editorial (StreamField) ------------------------------------------- */
.prose { max-width: 100%; }
.prose--reading { max-width: var(--reading); font-size: 18px; line-height: 1.7; }
.prose h2, .block-heading { margin-top: 1.6em; }
.prose > :first-child, .prose .block-heading:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--cyan-500); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.block-paragraph { margin-bottom: 1.2em; }
.block-image { margin: 1.5em 0; }
.block-image--medium { max-width: 800px; }
.block-image--small { max-width: 480px; }
.block-image figcaption, .block-gallery figcaption, .block-video figcaption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 6px; }
.block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.5em 0; }
.block-gallery figure { margin: 0; }
.block-gallery img { border-radius: var(--radius); }
.block-quote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cyan-500); font-size: 1.15em; color: var(--navy-800); }
.block-quote p { margin-bottom: 0.3em; }
.block-quote cite { font-style: normal; font-size: 0.85em; color: var(--text-muted); }
.block-button { margin: 1.4em 0; }
.callout { margin: 1.5em 0; padding: 18px 22px; border-radius: var(--radius); border-left: 5px solid var(--blue-600); background: #EEF5FC; }
.callout--navy { background: var(--navy-800); color: var(--white); border-left-color: var(--blue-400); }
.callout--navy a { color: var(--white); text-decoration: underline; }
.callout--neutral { background: var(--gray-100); border-left-color: var(--text-muted); }
.callout__title { font-weight: 600; margin-bottom: 4px; }
.callout__text > :last-child { margin-bottom: 0; }
.block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 1.5em 0; }
@media (max-width: 700px) { .block-columns { grid-template-columns: 1fr; } }
.block-table { overflow-x: auto; margin: 1.5em 0; }
.block-table table { border-collapse: collapse; width: 100%; font-size: var(--fs-md); }
.block-table th, .block-table td { border: 1px solid var(--gray-200); padding: 8px 12px; text-align: left; vertical-align: top; }
.block-table th { background: var(--navy-800); color: var(--white); }
.block-table__caption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 6px; }
.block-video { margin: 1.5em 0; }
.block-video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.block-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block-downloads { margin: 1.5em 0; padding: 18px 22px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.block-downloads h3 { margin-top: 0; }
.block-downloads ul { margin: 0; padding-left: 1.2em; }

/* ---- Utilitários de demonstração ---------------------------------------------- */
.demo-badge {
  display: inline-block; background: #FFF4D6; color: #7A4B00; border: 1px solid #F0C36D;
  padding: 2px 8px; border-radius: 3px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em;
}

/* ==========================================================================
   People (Fase 2)
   ========================================================================== */
.section--tight { padding-top: 24px; }
.section-title--spaced { margin-top: 56px; }

/* abas da seção e botões de filtro */
.pill-nav, .filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill, .filter-btn {
  display: inline-block; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-md);
  background: var(--gray-100); color: var(--navy-800); border: 1px solid var(--gray-200); text-decoration: none;
}
.pill:hover, .filter-btn:hover { background: var(--gray-200); text-decoration: none; }
.pill.is-active:hover, .filter-btn.is-active:hover { background: var(--navy-900); }
.pill.is-active, .filter-btn.is-active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.filter-bar { margin: 0 0 28px; }
.filter-btn { padding: 6px 14px; font-size: var(--fs-sm); border-radius: 999px; }

/* avatar: foto redonda ou iniciais */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--navy-800); color: var(--white); flex: none; width: 112px; height: 112px; }
.avatar--sm { width: 40px; height: 40px; }
.avatar--lg { width: 148px; height: 148px; }
.avatar--xl { width: 200px; height: 200px; }
.avatar__img { width: 100%; height: 100%; object-fit: cover; }
.avatar__initials { font-weight: 600; font-size: var(--fs-3xl); letter-spacing: 0.02em; }
.avatar--sm .avatar__initials { font-size: var(--fs-sm); }
.avatar--lg .avatar__initials { font-size: 2.6rem; }
.avatar--xl .avatar__initials { font-size: 3.4rem; }

/* grades de pessoas */
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.person-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px 16px; box-shadow: var(--shadow);
}
.person-card__name { font-weight: 600; font-size: var(--fs-lg); color: var(--navy-800); margin-top: 8px; }
.person-card__name a { color: inherit; }
.person-card__role { font-size: var(--fs-sm); color: var(--text-muted); }
.person-card__advisor, .person-card__links { font-size: var(--fs-sm); color: var(--text-muted); }
.person-card__areas { font-size: var(--fs-xs); opacity: 0.85; margin-top: 4px; }

/* docentes: cartão azul-marinho inteiro clicável (estilo BAIR) */

/* selos */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.03em; background: var(--gray-100); color: var(--navy-800); margin-top: 8px; }
.badge--postdoc { background: var(--navy-800); color: var(--white); }
.badge--phd { background: var(--blue-600); color: var(--white); }
.badge--msc { background: var(--blue-400); color: var(--white); }
.badge--undergrad { background: #E6EEF8; color: var(--navy-800); }
.badge--plain { margin-top: 0; font-weight: 600; }

/* tabela (alumni) */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.data-table thead th { background: var(--navy-800); color: var(--white); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.data-table tbody th { font-weight: 600; color: var(--navy-800); }
.data-table tbody tr:nth-child(even) { background: var(--gray-50); }
.download-link { white-space: nowrap; }

/* perfil */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.profile__side { text-align: center; position: sticky; top: calc(var(--header-h) + 24px); }
.profile__position { font-weight: 600; color: var(--navy-800); margin: 16px 0 4px; }
.profile__links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.link-chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--blue-600); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--blue-600); text-decoration: none; }
.link-chip:hover { background: var(--blue-600); color: var(--white); text-decoration: none; }
.profile__main section { margin-bottom: 40px; }
.profile__main .link-chip, .profile__main .tag { text-decoration: none; }
.tag-list { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 999px; padding: 4px 12px; font-size: var(--fs-sm); color: var(--navy-800); }
.plain-list { list-style: none; margin: 0; padding: 0 !important; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.mini-people { list-style: none; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mini-people li { display: flex; align-items: center; gap: 10px; }
@media (max-width: 800px) {
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile__side { position: static; }
  .avatar--xl { width: 160px; height: 160px; }
}

/* item de menu com página própria + setinha do submenu */
.site-nav__item.has-children { display: flex; align-items: center; }
.site-nav__caret-btn { background: none; border: 0; cursor: pointer; color: var(--navy-800); padding: 10px 8px 12px 0; margin-left: -4px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .site-nav__item.has-children { flex-wrap: wrap; }
  .site-nav__item.has-children > .site-nav__link { flex: 1; width: auto; }
  .site-nav__caret-btn { padding: 14px var(--gutter); margin: 0; border-bottom: 1px solid var(--gray-100); align-self: stretch; }
  .site-nav__submenu { flex-basis: 100%; }
}

/* ==========================================================================
   Projects (Fase 3)
   ========================================================================== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head__more { font-weight: 600; white-space: nowrap; }
.listing-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.pill-nav--flush, .filter-bar--flush { margin: 0; }

.card-grid--projects { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.project-card__figure { display: block; aspect-ratio: 16 / 9; background: var(--gray-100); overflow: hidden; }
.project-card__figure { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.project-card__figure img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.25s; }
.project-card:hover .project-card__figure img { transform: scale(1.03); }
.project-card__nofigure { display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #E6EEF8 0%, #F4F7FB 60%, #E3F4F8 100%); }
.project-card .card__title a { color: var(--navy-800); }
.project-card__summary { font-size: var(--fs-md); margin-bottom: 10px; }
.project-card__footer { padding: 0 20px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.project-card__footer:empty { display: none; }
.badge--funder { background: #E6EEF8; color: var(--navy-800); margin-top: 0; }
.badge--flush { margin-top: 0; }
.small { font-size: var(--fs-sm); }

/* Projetos: "Main projects" / "Students & PhD" (abas) acima dos filtros Active/Completed */
.type-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 22px; }
.type-tab { padding: 10px 18px; margin-bottom: -2px; border-bottom: 3px solid transparent; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.type-tab:hover { color: var(--navy-800); }
.type-tab.is-active { color: var(--navy-800); border-bottom-color: var(--cyan-500); }
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* perfil público: cartão do projeto do aluno */
.prose a.project-feature { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--gray-200); border-left: 4px solid var(--cyan-500); border-radius: var(--radius); background: var(--gray-50); color: inherit; text-decoration: none; }
.prose a.project-feature:hover { border-color: var(--navy-800); }
.project-feature__image { width: 100%; height: auto; max-height: 160px; object-fit: contain; background: var(--white); border-radius: calc(var(--radius) - 2px); display: block; }
.project-feature__body { display: flex; flex-direction: column; gap: 4px; }
.project-feature__title { color: var(--navy-800); font-size: var(--fs-lg); }
.project-feature__summary { font-size: var(--fs-md); }
.prose a.project-feature:not(:has(img)) { grid-template-columns: 1fr; }
@media (max-width: 600px) { .prose a.project-feature { grid-template-columns: 1fr; } }

/* figura do projeto: inteira, sem corte, num quadro claro no começo do texto */
.project-figure { margin: 0 0 36px; padding: 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); text-align: center; }
.project-figure a { display: block; cursor: zoom-in; }
.prose .project-figure a { text-decoration: none; }
.project-figure__image { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 440px; object-fit: contain; }
@media (max-width: 600px) { .project-figure { padding: 8px; } }
.project-figure figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-muted); text-align: left; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.project__main section { margin-bottom: 40px; }
.project__caption { font-size: var(--fs-sm); margin-top: -8px; }
.project__side { display: grid; gap: 16px; }
.side-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-top: 3px solid var(--navy-800); border-radius: var(--radius); padding: 16px 18px; font-size: var(--fs-md); }
.side-box__title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 10px; }
.side-box p:last-child { margin-bottom: 0; }
.mini-people--stack { grid-template-columns: 1fr; gap: 10px; }
.plain-list--tight li { padding: 6px 0; }
.plain-list--tight li:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Publications (Fase 4)
   ========================================================================== */
.pub-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.pub-filters label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.pub-filters select { font: inherit; font-size: var(--fs-md); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); padding: 7px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); max-width: 260px; }
.pub-filters__clear { font-size: var(--fs-sm); padding-bottom: 8px; }
.pub-count { font-size: var(--fs-sm); margin-bottom: 8px; }
.pub-year { margin-bottom: 32px; }
.pub-year__title { font-size: var(--fs-xl); color: var(--navy-800); border-bottom: 2px solid var(--navy-800); padding-bottom: 6px; margin: 28px 0 4px; }
.pub-list { list-style: none; margin: 0; padding: 0 !important; }
.pub { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.pub p { margin: 0 0 4px; }
.pub__title { font-weight: 600; font-size: var(--fs-lg); line-height: 1.4; }
.pub__title a { color: var(--blue-600); text-decoration: none; }
.pub__title a:hover { text-decoration: underline; }
.pub__authors { font-size: var(--fs-md); color: var(--text); }
.pub__member { font-weight: 600; color: var(--navy-800); text-decoration: none; }
a.pub__member { text-decoration: underline; text-decoration-color: var(--gray-200); text-underline-offset: 3px; }
.pub__venue { font-size: var(--fs-sm); color: var(--text-muted); }
.pub__links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: flex-start; font-size: var(--fs-sm); font-weight: 600; margin-top: 6px; }
.pub__links a { text-decoration: none; }
.pub__bibtex summary { cursor: pointer; color: var(--blue-600); list-style: none; }
.pub__bibtex summary::-webkit-details-marker { display: none; }
.pub__bibtex summary::after { content: " +"; }
.pub__bibtex[open] summary::after { content: " –"; }
.pub__bibtex[open] { flex-basis: 100%; }
.pub__bibtex pre { margin: 8px 0; font-size: var(--fs-xs); font-weight: 400; white-space: pre-wrap; word-break: break-word; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }

.pub-filters input[type="search"] { font: inherit; font-size: var(--fs-md); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text); padding: 7px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); width: 280px; max-width: 100%; }
.pub-filters__search { flex: 1 1 240px; }

/* caixas de seleção de coordenadores (Publications) */
.pub-filters__people { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-basis: 100%; }
.pub-filters__people legend { padding: 0; margin-bottom: 6px; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.pub-filters .check-chip { flex-direction: row; align-items: center; gap: 0; text-transform: none; letter-spacing: 0; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); color: var(--navy-800); font-size: var(--fs-md); font-weight: 600; }
.check-chip span::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--navy-800); border-radius: 3px; background: var(--white); flex: none; }
.check-chip input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.check-chip input:checked + span::before { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23003262' stroke-width='2.2'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--white); }
.check-chip input:focus-visible + span { outline: 3px solid var(--cyan-500); outline-offset: 2px; }
.check-chip:hover span { border-color: var(--navy-800); }

/* caixa de filtros de publicações, compacta: busca em cima; ano e coordenadores embaixo */
.pub-filters { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
.pub-filters__search { display: flex; gap: 8px; flex: none; }
.pub-filters .pub-filters__search input[type="search"] { flex: 1; width: auto; max-width: none; }
.pub-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pub-filters__row select { padding: 6px 10px; }
.pub-filters .pub-filters__people { flex-basis: auto; display: contents; }
.pub-filters .check-chip span { padding: 5px 12px; font-size: var(--fs-sm); }
.pub-filters__clear { padding-bottom: 0; margin-left: auto; font-size: var(--fs-sm); }

.profile__scholarship { font-size: var(--fs-sm); margin: 8px 0; }
.person-card .badge--funder { margin-top: 2px; }
.person-card__advisor + .person-card__grant { margin-top: -2px; }

/* ==========================================================================
   News, Blog, Awards e Markdown (Fase 5)
   ========================================================================== */
.reading { max-width: calc(var(--reading) + 2 * var(--gutter)); }
.feed-links { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 24px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.news-item__date { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); padding-top: 3px; }
.news-item__title { font-size: var(--fs-lg); margin: 0 0 4px; }
.news-item__title a { color: var(--navy-800); }
.news-item__excerpt { margin: 0; color: var(--text); font-size: var(--fs-md); }
.ext { font-size: 0.85em; color: var(--text-muted); }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: 2px; } }

.blog-item { padding: 8px 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--gray-200); }
.blog-item__title { font-size: var(--fs-2xl); margin: 0 0 6px; line-height: 1.25; }
.blog-item__title a { color: var(--blue-600); }
.blog-item__meta { color: var(--text-muted); font-size: var(--fs-md); margin-bottom: 14px; }
.blog-item__image img { width: 100%; border-radius: var(--radius); margin-bottom: 14px; }
.blog-item__excerpt { font-size: var(--fs-lg); line-height: 1.7; }
.blog-item__more { font-weight: 600; }

.post-title { font-size: 2.1rem; line-height: 1.2; color: var(--navy-800); margin: 4px 0 10px; }
.post-meta { color: var(--text-muted); }
.archive-years { list-style: none; padding: 0; margin: 0 0 24px; }
.archive-years li { padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: var(--fs-lg); }

.award-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.award__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.award__date { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 4px; }
.award__recipients { font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.award__desc { font-size: var(--fs-md); }

.home-news { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.home-news .news-item { grid-template-columns: 1fr; gap: 2px; }
@media (max-width: 800px) { .home-news { grid-template-columns: 1fr; gap: 24px; } }

.markdown-body pre, .markdown-body .codehilite { border-radius: var(--radius); }
.markdown-body .codehilite { background: #f6f8fa; padding: 0; margin: 1.2em 0; overflow-x: auto; }
.markdown-body .codehilite pre { background: transparent; margin: 0; padding: 14px 16px; }
.markdown-body code { background: var(--gray-100); padding: 1px 5px; border-radius: 3px; }
.markdown-body pre code { background: transparent; padding: 0; }
.markdown-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: var(--fs-md); }
.markdown-body th, .markdown-body td { border: 1px solid var(--gray-200); padding: 6px 10px; text-align: left; }
.markdown-body th { background: var(--gray-100); }
.markdown-body img { max-width: 100%; }
.math-display { overflow-x: auto; margin: 1em 0; }

/* miniaturas opcionais (Settings → Site settings → Thumbnails in news lists)
   Mesmo desenho na lista de News e na home: miniatura 16:10 à esquerda, data + título + resumo à direita. */
.news-item.news-item--thumbs { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; }
.home-news .news-item.news-item--thumbs { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
/* miniatura sempre mais larga que alta (3:2), centralizada verticalmente em relação ao texto */
.news-item__thumb { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; align-self: center;
                    border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.news-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-item__thumb--empty { background: var(--navy-800) url("../img/hero-default.47cf4bec564b.jpg") center / cover no-repeat; }
.news-item--thumbs .news-item__body { align-self: center; }
.news-item--thumbs .news-item__date { display: block; padding-top: 0; margin-bottom: 2px; }
.news-item--thumbs .news-item__title { font-size: var(--fs-lg); line-height: 1.35; }
.news-item--thumbs .news-item__excerpt { font-size: var(--fs-md); line-height: 1.55; }
@media (max-width: 600px) {
  .news-item.news-item--thumbs, .home-news .news-item.news-item--thumbs { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
}

/* fontes da notícia (crédito) */
.post-sources { margin: 2em 0 1em; padding: 14px 18px; border-left: 3px solid var(--navy-800); background: var(--gray-50); font-size: var(--fs-md); line-height: 1.6; }
.post-sources__title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin: 0 0 6px; }
.post-sources ul { margin: 0; padding-left: 1.1em; }
.prose .post-sources a { word-break: break-word; }
figcaption .credit { opacity: 0.85; }

.markdown-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--blue-600); color: var(--navy-800); }
.markdown-body blockquote p:last-child { margin-bottom: 0; }

/* slide com foto comum (não panorâmica): foto inteira ao lado do texto, fundo com a foto desfocada */
.hero__slide--photo { overflow: hidden; background: var(--navy-800); }
.hero__backdrop { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover;
                  filter: blur(28px) brightness(0.45) saturate(1.1); transform: scale(1.05); }
.hero__content--photo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.hero__content--photo .hero__panel { max-width: 640px; }
.hero__content--photo .hero__title { font-size: 2.2rem; }
.hero__photo { margin: 0; justify-self: end; }
.hero__photo img { display: block; height: 340px; width: auto; max-width: 46vw; object-fit: contain;
                   border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
@media (max-width: 900px) {
  .hero__content--photo { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .hero__photo { justify-self: start; order: -1; }
  .hero__photo img { height: auto; max-height: 240px; max-width: 100%; }
  .hero__content--photo .hero__title { font-size: var(--fs-2xl); }
}

/* ==========================================================================
   Login e área de membros (Fase 6)
   ========================================================================== */
.site-nav__login { display: flex; align-items: center; gap: 12px; }
.site-nav__member { font-weight: 600; font-size: var(--fs-md); color: var(--navy-800); white-space: nowrap; }
.site-nav__logout { margin: 0; }
.auth { max-width: 520px; }
.auth__form { display: grid; gap: 10px; margin: 20px 0; }
.auth__form label { font-weight: 600; font-size: var(--fs-sm); }
.auth__form input[type="email"], .auth__form input[type="text"] { font: inherit; font-size: var(--fs-lg); padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.auth__form .btn { justify-self: start; }
.auth__form .errorlist, .profile-form .errorlist { list-style: none; margin: 0; padding: 0; color: #B42318; font-size: var(--fs-sm); }
.auth__messages { list-style: none; padding: 12px 16px; margin: 0 0 16px; background: #EEF5FC; border-left: 4px solid var(--blue-600); border-radius: var(--radius); }
.auth__note { font-size: var(--fs-sm); }
.members-bar { background: var(--gray-100); border-bottom: 1px solid var(--gray-200); font-size: var(--fs-sm); }
.members-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.members-bar__links { display: flex; align-items: center; gap: 16px; }
.members-bar__links form { margin: 0; }
.members-bar__links a { font-weight: 600; }
.toc { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 1.5em; font-size: var(--fs-md); }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.toc__sub { margin-left: 1.2em; list-style: circle; }
.profile-form fieldset { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 20px 8px; margin: 0 0 20px; }
.profile-form legend { font-weight: 600; color: var(--navy-800); padding: 0 8px; }
.profile-form p { margin: 0 0 14px; display: grid; gap: 4px; }
.profile-form label { font-weight: 600; font-size: var(--fs-sm); }
.profile-form input[type="text"], .profile-form input[type="email"], .profile-form input[type="url"], .profile-form input[type="number"], .profile-form input[type="date"],
.profile-form textarea, .profile-form select { font: inherit; padding: 9px 11px; border: 1px solid var(--gray-200); border-radius: var(--radius); width: 100%; box-sizing: border-box; }
.profile-form small { color: var(--text-muted); font-size: var(--fs-sm); }
.profile-form .check label { font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.profile-form__photo { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.formset-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.formset-row label { display: grid; gap: 4px; }

/* Área de membros: escrever (rascunhos e envio para revisão) */
.write-new { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.write-list { list-style: none; margin: 0; padding: 0; }
.write-list__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.write-list__actions { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.write-list__actions form { margin: 0; }
.write-status { display: inline-block; margin-left: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gray-100); color: var(--text-muted); }
.write-status--review { background: #FFF4D6; color: #7A5200; }
.write-status--published, .write-status--changes { background: #E3F4E8; color: #1E6B3A; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-600); cursor: pointer; font-weight: 600; }
.linklike:hover { text-decoration: underline; }
.write-actions { display: flex !important; gap: 12px; align-items: center; flex-wrap: wrap; }
.profile-form textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); line-height: 1.5; }

/* ===================================================================
   Área de membros: menu lateral (estilo documentação) + conteúdo
   =================================================================== */
.page-members .site-footer { margin-top: 0; }
/* fundo cinza da coluna do menu vai até o fim da página, mesmo quando o menu é curto */
.kb { display: grid; grid-template-columns: 280px minmax(0, 1fr); border-top: 1px solid var(--gray-200); min-height: calc(100vh - var(--header-h));
  background: linear-gradient(to right, var(--surface) 279px, var(--gray-200) 279px, var(--gray-200) 280px, var(--white) 280px); }
.kb-toggle { display: none; }
.kb-side { background: transparent; padding: 20px 16px 28px; font-size: var(--fs-md);
  position: sticky; top: var(--header-h); align-self: start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-sizing: border-box; }
.kb-search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 0 10px; color: var(--text-muted); margin: 0 0 14px; }
.kb-search:focus-within { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(0, 50, 98, 0.12); }
.kb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-sm); padding: 9px 0; color: var(--text); }
.kb-search input::-webkit-search-cancel-button { display: none; }
.kb-clear { border: 0; background: none; font-size: var(--fs-lg); line-height: 1; color: var(--text-muted); cursor: pointer; padding: 2px 4px; }
.kb-hint { font-size: var(--fs-xs); color: var(--text-muted); margin: -6px 10px 10px; }
.kb-label { font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin: 18px 10px 6px; }
.kb-label span { font-weight: 400; letter-spacing: 0; }
.kb-link { display: block; width: 100%; text-align: left; box-sizing: border-box; color: var(--text); text-decoration: none; padding: 5px 10px; border-radius: 6px; line-height: 1.35; background: none; border: 0; font: inherit; cursor: pointer; }
.kb-link:hover { background: #ECEFF3; color: var(--text); text-decoration: none; }
.kb-link.is-active { background: #E3EAF3; color: var(--navy-800); font-weight: 600; }
.kb-cat summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--text); }
.kb-cat summary::-webkit-details-marker { display: none; }
.kb-cat summary:hover { background: #ECEFF3; }
.kb-cat summary::after { content: "\25B8"; color: var(--text-muted); font-size: var(--fs-xs); width: 12px; text-align: center; transition: transform 0.15s; }
.kb-cat[open] summary::after { transform: rotate(90deg); }
.kb-cat__name { flex: 1; }
.kb-cat__n { color: var(--text-muted); font-weight: 400; font-size: var(--fs-xs); }
.kb-sub { margin: 2px 0 8px 10px; padding-left: 4px; border-left: 1px solid var(--gray-200); }
.kb-sub .kb-link { font-size: var(--fs-sm); }
.kb-mention { color: var(--text-muted); font-size: var(--fs-xs); }
.kb-side mark { background: #FFF1B8; color: inherit; padding: 0 1px; border-radius: 2px; }
.kb-me { border-top: 1px solid var(--gray-200); margin-top: 20px; padding-top: 14px; }
.kb-me form { margin: 0; }
.kb-who { font-size: var(--fs-xs); color: var(--text-muted); padding: 0 10px 8px; overflow-wrap: anywhere; }
.kb-who strong { color: var(--text); }
.kb-logout { color: var(--text-muted); }

.kb-body { min-width: 0; }
.kb-messages { margin: 24px 56px 0; max-width: 820px; }
.kb-main { padding: 36px 56px 64px; max-width: 860px; }
.kb-crumb { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 6px; }
.kb-crumb a { color: var(--text-muted); }
.kb-title { font-size: var(--fs-3xl); line-height: 1.2; color: var(--text); margin: 0 0 8px; font-weight: 700; }
.kb-lead { color: var(--text-muted); font-size: var(--fs-lg); margin: 0 0 24px; }
.kb-meta { color: var(--text-muted); font-size: var(--fs-md); margin: 0 0 24px; }
.kb-h2 { font-size: var(--fs-lg); color: var(--text); margin: 32px 0 10px; }
.kb-quick { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.kb-quick a { border: 1px solid var(--gray-200); border-radius: 8px; padding: 9px 14px; text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--fs-md); background: var(--white); }
.kb-quick a:hover { border-color: var(--navy-800); color: var(--navy-800); }
.kb-rows { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--gray-200); }
.kb-rows li { border-bottom: 1px solid var(--gray-200); }
.kb-rows a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 6px; color: var(--text); text-decoration: none; }
.kb-rows a:hover { background: var(--surface); }
.kb-rows__main { display: grid; gap: 2px; }
.kb-rows__main span { color: var(--text-muted); font-size: var(--fs-md); }
.kb-rows__side { color: var(--text-muted); font-size: var(--fs-sm); white-space: nowrap; }
.kb-rows__empty { padding: 14px 6px; color: var(--text-muted); }

.kb-doc { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 48px; padding: 36px 56px 64px; max-width: 1120px; }
.kb-article { min-width: 0; max-width: 760px; }
.kb-toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; font-size: var(--fs-sm); }
.kb-toc strong { display: block; font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.kb-toc a { display: block; color: var(--text-muted); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid var(--gray-200); }
.kb-toc a.toc-sub { padding-left: 24px; }
.kb-toc a:hover { color: var(--navy-800); }
.kb-toc a.is-active { color: var(--navy-800); border-left-color: var(--navy-800); font-weight: 600; }
.kb-pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--gray-200); margin-top: 40px; padding-top: 16px; font-size: var(--fs-md); }
.kb-main .profile-form, .kb-main .write-list { max-width: 760px; }

@media (max-width: 1150px) {
  .kb-doc { grid-template-columns: minmax(0, 1fr); }
  .kb-toc { display: none; }
}
@media (max-width: 900px) {
  .kb { grid-template-columns: minmax(0, 1fr); background: var(--white); }
  .kb-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 14px 16px 0; padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); font: inherit; font-weight: 600; color: var(--navy-800); cursor: pointer; justify-self: start; }
  .kb-side { display: none; background: var(--surface); position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--gray-200); margin-top: 10px; }
  .kb-side.is-open { display: block; }
  .kb-main, .kb-doc { padding: 24px 16px 48px; }
  .kb-messages { margin: 16px 16px 0; }
}
.kb-label a { color: inherit; text-decoration: none; }
.kb-label a:hover { color: var(--navy-800); text-decoration: underline; }
.kb-h2__link { color: inherit; text-decoration: none; }
.kb-h2__link:hover { color: var(--navy-800); text-decoration: underline; }
.kb-desc { color: var(--text-muted); margin: -4px 0 10px; font-size: var(--fs-md); }

/* News/Blog com miniatura: imagem alinhada pelo topo com a data; resumo limitado na home para as colunas ficarem parelhas */
.news-item.news-item--thumbs { align-items: start; }
.news-item__thumb, .news-item--thumbs .news-item__body { align-self: start; }
.news-item--thumbs .news-item__thumb { margin-top: 3px; }
.home-news .news-item--thumbs .news-item__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-news .news-item--thumbs .news-item__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Home, News e Blog lado a lado: todos os itens com a mesma altura (título 2 linhas + resumo 3 linhas,
   mesmo quando o texto é menor), assim as linhas de baixo das duas colunas ficam alinhadas;
   a imagem fica centralizada na altura do texto. */
.home-news .news-item.news-item--thumbs { align-items: center; }
.home-news .news-item--thumbs .news-item__thumb, .home-news .news-item--thumbs .news-item__body { align-self: center; margin-top: 0; }
.home-news .news-item--thumbs .news-item__title { -webkit-line-clamp: 2; line-height: 1.35; min-height: calc(2em * 1.35); }
.home-news .news-item--thumbs .news-item__excerpt { -webkit-line-clamp: 3; line-height: 1.55; min-height: calc(3em * 1.55); }

/* "Show more" das listas longas */
.show-more { display: block; margin: 18px auto 0; }
.section-title__count { font-size: 0.6em; font-weight: 500; color: var(--text-muted); }

/* números da home clicáveis */
.stat:has(.stat__link) { padding: 0; }
.stat__link { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; height: 100%; box-sizing: border-box; text-decoration: none; color: inherit; border-radius: var(--radius); }
.stat__link:hover { background: var(--gray-50, #f8fafc); text-decoration: none; }
.stat__link:hover .stat__number { color: var(--blue-600); }
.stat__link:focus-visible { outline: 3px solid var(--blue-600); outline-offset: -3px; }

.kb-files { list-style: none; padding: 0; margin: 0 0 1.5em; }
.kb-files li { padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.kb-files a { font-weight: 600; }

/* Área interna: abas Profile / My project e cadastro do projeto */
.kb-tabs { margin: 4px 0 20px; }
.project-feature--row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; margin-bottom: 14px;
  border: 1px solid var(--gray-200); border-left: 4px solid var(--cyan-500); border-radius: var(--radius); background: var(--gray-50); }
.project-feature--row:not(:has(img)) { grid-template-columns: 1fr; }
.project-feature--row .write-actions { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .project-feature--row { grid-template-columns: 1fr; } }
/* cartões de projeto dentro de texto (página do projeto principal) */
.prose .card-grid { padding-left: 0; margin-left: 0; list-style: none; }
.prose .card-grid > li { margin: 0; padding: 0; }
.prose .card a { text-decoration: none; }

/* Server account & SSH (members/servers.py) */
.servers-page { max-width: 760px; }
.servers-block { margin-bottom: 40px; scroll-margin-top: 110px; }
.servers-block .profile-form textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); }
.servers-done { margin-bottom: 24px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.key-help { margin: -4px 0 18px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); }
.key-help > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--navy-800); }
.key-help__body { padding: 0 16px 14px; font-size: var(--fs-md); }
.key-help__body h3 { font-size: var(--fs-md); margin: 14px 0 6px; color: var(--navy-800); }
.key-help__body pre { background: var(--white); border: 1px solid var(--gray-200); border-radius: 6px; padding: 8px 12px; overflow-x: auto; margin: 0 0 8px; }
/* texto corrido dentro do formulário (o .profile-form p vira grade para rótulo+campo) */
.profile-form .key-help p, .profile-form p.muted { display: block; }
.key-help code { background: var(--white); border: 1px solid var(--gray-200); border-radius: 4px; padding: 0 4px; font-size: 0.85em; }
.key-help pre code { border: 0; padding: 0; background: none; }

/* Publicação com figura: linha destacada com a figura inteira à direita (publication_item.html) */
.pub--figure { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: center;
  background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--cyan-500);
  border-radius: 8px; padding: 16px 18px; margin: 8px 0; }
/* caixa de tamanho fixo (240 × 140); a figura cabe inteira dentro, sem corte */
.pub__figure { display: flex; align-items: center; justify-content: center; width: 240px; height: 140px; justify-self: end;
  background: transparent; border: 0; padding: 0; cursor: zoom-in; overflow: hidden; }
.pub__figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) {
  .pub--figure { grid-template-columns: 1fr; }
  .pub__figure { order: -1; width: 100%; height: 180px; justify-self: stretch; }
}

/* Students: níveis em botões + orientador numa lista suspensa discreta à direita */
.people-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.advisor-filter { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.advisor-filter label { color: var(--text-muted); font-weight: 600; }
.advisor-filter select { padding: 7px 30px 7px 12px; border: 1px solid var(--gray-200); border-radius: 999px; background-color: var(--white); color: var(--navy-800); font: inherit; max-width: 240px; }

/* lista longa recolhida (ex.: projetos no perfil do coordenador) */
.more-list { margin-top: 4px; }
.more-list > summary { cursor: pointer; list-style: none; color: var(--blue-600); font-weight: 600; font-size: var(--fs-md); padding: 4px 0; }
.more-list > summary::-webkit-details-marker { display: none; }
.more-list > summary::after { content: " \25BE"; }
.more-list[open] > summary { display: none; }

/* Área de membros: revisão pelos coordenadores */
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 56px 0; max-width: 820px; padding: 12px 18px; border-radius: 8px; background: #FFF4D6; color: #5C3E00; border-left: 5px solid #E0A100; font-weight: 600; }
.review-banner a { color: #5C3E00; text-decoration: underline; }
.review-list { list-style: none; margin: 0 0 32px; padding: 0; max-width: 820px; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.review-item__head strong { display: inline; margin-left: 4px; }
.review-item__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.review-item__actions form { margin: 0; display: flex; gap: 10px; align-items: center; }
.review-approve label { display: inline-flex; gap: 6px; align-items: center; color: var(--text-muted); }
.review-return { margin-top: 10px; }
.review-return summary { cursor: pointer; color: var(--blue-600); font-weight: 600; font-size: var(--fs-sm); }
.review-return form { display: grid; gap: 8px; margin-top: 8px; max-width: 620px; }
.review-return textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--gray-300, #cfd5dc); border-radius: 6px; font: inherit; }
.review-return button { justify-self: start; }
.write-status--returned { background: #FDE8E8; color: #8A1C1C; }
.write-note { margin: 6px 0 0; padding: 8px 12px; background: #FDF3F3; border-left: 3px solid #C24141; border-radius: 4px; font-size: var(--fs-sm); white-space: pre-line; }
@media (max-width: 760px) { .review-banner { margin: 16px 16px 0; } }
.kb-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #E0A100; color: var(--white); font-size: var(--fs-xs); font-weight: 600; text-align: center; line-height: 20px; }
.kb-admin { color: var(--navy-800); font-weight: 600; }
.kb-admin.is-off { color: var(--text-muted); font-weight: 400; }
.kb-admin__note { display: block; font-size: var(--fs-xs); color: var(--text-muted); }

/* Escolha múltipla em chips (ex.: "Visible only to"); com muitos itens vira lista com busca (members.js) */
div.chip-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
div.chip-choices > div { margin: 0; }
.chip-choices label { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); font-weight: 500 !important; cursor: pointer; user-select: none; }
.chip-choices label:hover { border-color: var(--blue-600); }
.chip-choices label:has(input:checked) { background: #E6F0FB; border-color: var(--blue-600); color: var(--navy-800); font-weight: 600 !important; }
.chip-choices input { margin: 0; accent-color: var(--blue-600); }
.chip-picker { margin: 4px 0 2px; }
.chip-picker__selected { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-picker__tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: #E6F0FB; border: 1px solid var(--blue-600); color: var(--navy-800); font-weight: 600; font-size: var(--fs-sm); }
.chip-picker__tag button { border: 0; background: none; cursor: pointer; font-size: var(--fs-lg); line-height: 1; color: var(--navy-800); padding: 0 4px; }
.chip-picker__none { color: var(--text-muted); font-size: var(--fs-sm); }
.chip-picker__toggle { border: 1px dashed var(--blue-600); background: var(--white); color: var(--blue-600); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.chip-picker__panel { margin-top: 8px; padding: 10px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); max-width: 560px; }
.chip-picker__panel input[type=search] { width: 100%; padding: 7px 10px; border: 1px solid var(--gray-200); border-radius: 6px; font: inherit; margin-bottom: 8px; }
.chip-picker__panel div.chip-choices { max-height: 220px; overflow-y: auto; }
.chip-picker__empty { color: var(--text-muted); font-size: var(--fs-sm); margin: 4px 0 0; }
.chip-picker [hidden] { display: none !important; }

/* busca dentro de uma lista da página (ex.: publicações no perfil) */
.list-search { margin: 4px 0 18px; max-width: 560px; }
.list-search input[type="search"] { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font: inherit; background: var(--white); }
.list-search input[type="search"]:focus { outline: 2px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600); }
.list-search__status { margin: 6px 0 0; min-height: 1.2em; }
.list-search[hidden], .show-more[hidden] { display: none !important; }

/* Code & Data */
.cd-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 24px; }
.cd-search input[type="search"] { flex: 1 1 320px; max-width: 480px; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font: inherit; background: var(--white); }
.cd-search__clear { font-weight: 600; }
.cd-card__kind { margin: 0 0 6px; }
.cd-kind { display: inline-block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; text-align: center; }
.cd-kind--code { background: #E6F0FB; color: #0B4A8B; }
.cd-kind--data { background: #E3F4E8; color: #1E6B3A; }
.cd-kind--model { background: #F3E8FD; color: #5B2A86; }
.cd-h { font-size: var(--fs-xl); margin: 40px 0 4px; }
.cd-auto { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--gray-200); }
.cd-auto li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--gray-200); }
.cd-auto__src { font-size: var(--fs-sm); color: var(--text-muted); }
.cd-auto__src a { color: inherit; text-decoration: underline; }
.cd-host { font-size: var(--fs-sm); color: var(--text-muted); white-space: nowrap; }
.cd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-meta { margin: 8px 0 0; }
.cd-meta dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 10px; }
.cd-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
pre.cd-code { background: #0F1E33; color: #E6EEF8; padding: 14px 16px; border-radius: 8px; font-size: var(--fs-sm); overflow: auto; white-space: pre; }
@media (max-width: 640px) { .cd-auto li { grid-template-columns: 1fr; gap: 4px; } }

/* Ícones de links e logos de financiadores */
.link-chip { display: inline-flex; align-items: center; gap: 6px; }
.link-chip__icon { width: 16px; height: 16px; object-fit: contain; flex: none; }
.link-chip:hover .link-chip__icon { background: var(--white); border-radius: 3px; }
.badge-icon { width: 14px; height: 14px; object-fit: contain; vertical-align: -2px; margin-right: 5px; }
.btn-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 7px; }
.btn--primary .btn-icon { background: var(--white); border-radius: 3px; padding: 1px; }
.funding-logo { display: block; margin: 2px 0 4px; }
.funding-logo img { max-height: 40px; width: auto; max-width: 170px; display: block; }
.agency-icon { height: 18px; width: auto; vertical-align: -4px; }
/* rodapé: logos em caixas iguais (logos quadrados, como o da CAPES, não ficam miúdos) */
.funders--footer { display: grid; grid-template-columns: repeat(2, 128px); gap: 10px; }
.funders--footer li { display: flex; align-items: center; justify-content: center; height: 60px; padding: 8px 10px; }
.funders--footer li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.funders--footer img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* faixa da home: mesma altura visual para logos largos e quadrados */
.funders li { display: flex; align-items: center; }
.funders:not(.funders--footer) img { max-height: 56px; max-width: 180px; object-fit: contain; }

/* Contact: cartões dos coordenadores */
.contact-grid { list-style: none; margin: 8px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; align-items: start; transition: border-color .2s; }
.contact-card:hover { border-color: var(--faint); }
.contact-card__photo { width: 104px; height: 104px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.contact-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-card__photo span { font-weight: 700; font-size: var(--fs-3xl); color: var(--faint); }
.contact-card__body { min-width: 0; }
.contact-card__kicker { margin: 0 0 2px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); }
.contact-card__name { margin: 0; font-size: var(--fs-xl); line-height: 1.25; }
.contact-card__name a, .prose .contact-card__name a { color: var(--ink); text-decoration: none; }
.contact-card__name a:hover { text-decoration: underline; }
.contact-card__role { color: var(--muted); margin: 3px 0 10px; font-size: var(--fs-sm); }
.contact-card__tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.prose .contact-card__tags li { margin: 0; }
.contact-card__tags li { font-size: var(--fs-xs); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--text-2); background: var(--surface); }
.contact-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding-top: 12px; border-top: 1px solid var(--surface-2); }
.contact-card__mail, .prose .contact-card__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-md); overflow-wrap: anywhere; }
.contact-card__mail:hover { text-decoration: underline; }
.contact-card__more, .prose .contact-card__more { margin-left: auto; font-weight: 600; font-size: var(--fs-sm); color: var(--link); text-decoration: none; }
.contact-card__more:hover { text-decoration: underline; }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; } .contact-card__photo { width: 72px; height: 72px; } .contact-card__more { margin-left: 0; } }
.prose .contact-grid { margin-top: 20px; margin-bottom: 28px; padding-left: 0; }
.prose .contact-grid > li { margin: 0; }
/* cartões de projeto: logo da agência no rodapé do cartão */
.card-funder { display: inline-flex; align-items: center; height: 26px; margin-right: 8px; }
.card-funder img { max-height: 24px; max-width: 96px; width: auto; height: auto; object-fit: contain; }
.project-card__footer { align-items: center; }

.pub__kicker { display: none; }

/* Compartilhar (includes/share.html) */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.share__label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-right: 4px; }
.share__btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--gray-200); border-radius: 50%; background: var(--white); color: var(--muted); cursor: pointer; padding: 0; text-decoration: none; transition: color .15s, border-color .15s; }
.share__btn[hidden] { display: none; }
.share__btn:hover { text-decoration: none; border-color: currentColor; }
.share__btn--linkedin:hover { color: #0A66C2; }
.share__btn--x:hover { color: var(--ink); }
.share__btn--bluesky:hover { color: #1185FE; }
.share__btn--facebook:hover { color: #1877F2; }
.share__btn--whatsapp:hover { color: #1FAF54; }
.share__btn--email:hover, .share__btn--copy:hover, .share__btn--native:hover { color: var(--navy-800); }
.share__btn.is-copied { color: #1E6B3A; border-color: #1E6B3A; }
.share__copied { font-size: var(--fs-sm); color: #1E6B3A; font-weight: 600; }
/* dentro das caixas laterais (projetos, Code & Data) e do perfil: sem a linha de cima */
.share--compact { margin: 0; padding: 0; border: 0; gap: 6px; }
.share--compact .share__btn { width: 32px; height: 32px; }
.side-box .share__label { display: none; }
.profile__share .share { justify-content: center; }
.profile__share .share__label { display: block; width: 100%; text-align: center; margin: 0 0 2px; }
.profile__share { margin-top: 16px; display: flex; justify-content: center; }

/* ---- Perfil completo dos coordenadores (people/person_full.html) -------------------------------- */
.cv { --cv-line: var(--gray-200); padding-bottom: 64px; }
.cv .breadcrumbs { margin: 0 0 4px; }
.cv-head { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px 0 28px; border-bottom: 1px solid var(--cv-line); }
.cv-head__photo { width: 152px; height: 152px; border-radius: 50%; object-fit: cover; display: block; }
.cv-name { font-size: 2.4rem; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 6px; color: var(--navy-800); }
.cv-name--side { font-size: var(--fs-2xl); margin-top: 4px; }
.cv-role { margin: 0 0 12px; color: var(--text-muted); font-size: var(--fs-lg); }
.cv-role--main { margin: 0; color: var(--text); font-size: var(--fs-lg); }
.cv-role--sub { margin: 2px 0 14px; }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cv-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--cv-line); border-radius: 6px; padding: 6px 13px; font-size: var(--fs-sm); font-weight: 500; color: var(--text); text-decoration: none; background: var(--white); }
.cv-btn:hover { border-color: var(--navy-800); }
.cv-icons { list-style: none; margin: 0 0 0 8px; padding: 0 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; border-left: 1px solid var(--cv-line); }
.cv-icons a { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--cv-line); border-radius: 6px; background: var(--white); }
.cv-icons a:hover { border-color: var(--navy-800); }
.cv-icons img { width: 18px; height: 18px; object-fit: contain; }
.cv-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-links a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--cv-line); border-radius: 6px; padding: 5px 11px; font-size: var(--fs-sm); color: var(--text); text-decoration: none; background: var(--white); }
.cv-links a:hover { border-color: var(--navy-800); }
.cv-links img { width: 15px; height: 15px; object-fit: contain; }
.cv-links--stacked { flex-direction: column; }
.cv-links--stacked a { width: 100%; }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 56px; align-items: start; padding-top: 28px; }
.cv-grid--3 { grid-template-columns: 190px minmax(0, 1fr) 150px; gap: 32px; padding-top: 32px; }
.cv-side { position: sticky; top: calc(var(--header-h) + 16px); }
.cv-side__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 14px; }
.cv-share { margin-top: 16px; }
.cv-share .share__label { display: block; width: 100%; margin-bottom: 2px; }
.cv-main { min-width: 0; }
.cv-sec { padding: 0 0 30px; scroll-margin-top: calc(var(--header-h) + 16px); }
.cv-sec + .cv-sec { border-top: 1px solid var(--cv-line); padding-top: 22px; }
.cv-sec__title { font-size: var(--fs-xl); font-weight: 600; margin: 0 0 16px; color: var(--navy-800); }
.cv-sub { font-size: var(--fs-base); margin: 20px 0 8px; color: var(--text-muted); font-weight: 600; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.cv-list li:last-child { border-bottom: 0; }
/* interesses: links que filtram as publicações */
.cv-interests { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cv-interests a { color: var(--blue-600); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.cv-interests a:hover { color: var(--navy-800); }
.cv-interests a.is-active { color: var(--navy-800); font-weight: 600; }
.cv-hint { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
/* linha do tempo (formação e cargos) */
.cv-timeline { list-style: none; margin: 0; padding: 0; }
.cv-timeline li { display: grid; grid-template-columns: 120px 16px minmax(0, 1fr); gap: 0 16px; padding-bottom: 20px; position: relative; }
.cv-timeline li::before { content: ""; position: absolute; left: 143px; top: 9px; bottom: -3px; width: 1px; background: var(--cv-line); }
.cv-timeline li:last-child { padding-bottom: 0; }
.cv-timeline li:last-child::before { display: none; }
.cv-timeline__when { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); text-align: right; padding-top: 3px; white-space: nowrap; }
.cv-timeline__dot { width: 9px; height: 9px; margin: 7px 0 0 4px; border: 2px solid var(--navy-800); border-radius: 50%; background: var(--white); position: relative; z-index: 1; }
.cv-timeline li.is-current .cv-timeline__dot { background: var(--navy-800); }
.cv-timeline__what strong { display: block; font-weight: 600; }
.cv-timeline__what span { display: block; color: var(--text-muted); font-size: var(--fs-md); }
.cv-tag { display: inline-block !important; font-family: var(--font-mono); font-size: var(--fs-2xs) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-800) !important; border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
/* prêmios por ano */
.cv-awards { list-style: none; margin: 0; padding: 0; }
.cv-awards > li { display: grid; grid-template-columns: 52px 64px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--gray-100); align-items: center; }
.cv-awards__thumb { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--cv-line); background: var(--white); padding: 6px; box-sizing: border-box; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.cv-awards__thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.cv-awards > li:first-child { border-top: 0; padding-top: 0; }
.cv-awards__year { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-muted); }
.cv-awards p { margin: 0 0 10px; }
.cv-awards p:last-child { margin: 0; }
.cv-awards small { display: block; color: var(--text-muted); font-size: var(--fs-sm); }
/* alunos em duas colunas */
.cv-students { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; }
.cv-students li { padding: 5px 0; border-bottom: 1px solid var(--gray-100); }
.cv-students span { color: var(--text-muted); font-size: var(--fs-sm); margin-left: 4px; }
.cv-students + .more-list { margin-top: 8px; }
.cv-former { margin-top: 18px; }
.cv-former[open] > summary { display: block; color: var(--text-muted); }
.cv-former[open] > summary::after { content: " \25B4"; }
.cv-sub--flush { margin-top: 0; }
.cv-teaching { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cv-teaching .cv-list li { padding: 5px 0; border-bottom: 1px solid var(--gray-100); }
.cv-projects { list-style: none; margin: 0; padding: 0; }
.cv-project { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); align-items: center; }
.cv-project:first-child { padding-top: 0; }
.cv-project__thumb { display: block; width: 104px; aspect-ratio: 22 / 15; border-radius: 6px; overflow: hidden; background: var(--gray-100); }
.cv-project__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-project__thumb--empty { background: repeating-linear-gradient(135deg, var(--gray-100) 0 6px, var(--white) 6px 12px); }
.cv-project__title { font-weight: 600; text-decoration: none; color: var(--text); }
.cv-project__title:hover { text-decoration: underline; }
.cv-project__meta { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.cv-projects + .more-list { margin-top: 8px; }
/* índice fixo à direita */
.cv-nav { position: sticky; top: calc(var(--header-h) + 16px); font-size: var(--fs-sm); }
.cv-nav__title { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-2xs); color: var(--text-muted); margin: 0 0 10px; }
.cv-nav ul { list-style: none; margin: 0; padding: 0; }
.cv-nav a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--cv-line); color: var(--text-muted); text-decoration: none; }
.cv-nav a:hover { color: var(--text); }
.cv-nav a.is-active { border-left-color: var(--navy-800); color: var(--navy-800); font-weight: 600; }
@media (max-width: 1100px) { .cv-grid--3 { grid-template-columns: 200px minmax(0, 1fr); } .cv-grid--3 .cv-nav { display: none; } }
@media (max-width: 900px) {
  .cv-grid, .cv-grid--3 { grid-template-columns: 1fr; gap: 24px; }
  .cv-nav { display: none; }
  .cv-side { position: static; max-width: 420px; }
  .cv-side__photo { width: 160px; border-radius: 50%; }
}
@media (max-width: 600px) {
  .cv-head { grid-template-columns: 1fr; text-align: left; }
  .cv-head__photo { width: 104px; height: 104px; }
  .cv-name { font-size: var(--fs-3xl); }
  .cv-timeline li { grid-template-columns: 1fr; padding-left: 18px; }
  .cv-timeline li::before { left: 4px; top: 6px; }
  .cv-timeline__when { text-align: left; }
  .cv-timeline__dot { position: absolute; left: 0; top: 0; margin: 4px 0 0; }
  .cv-students { grid-template-columns: 1fr; }
  .cv-icons { margin: 4px 0 0; padding: 0; border-left: 0; width: 100%; }
  .cv-awards > li { grid-template-columns: 40px 52px minmax(0, 1fr); gap: 12px; }
  .cv-awards__thumb { width: 52px; height: 52px; }
  .cv-teaching { grid-template-columns: 1fr; gap: 12px; }
  .cv-project { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .cv-project__thumb { width: 64px; }
  }
/* itens escondidos pelo "Show more" ou pela busca: o display:grid das publicações com figura não pode vencer o hidden */
.pub[hidden], .pub-year[hidden] { display: none !important; }

/* ===== Home: faixas no estilo OpenAlex (home_page.html + includes/strip.html) ===== */
.strip { border-bottom: 1px solid var(--gray-100); background: var(--white); overflow-x: clip; } /* as listas roláveis não alargam a página no celular */
.strip--alt { background: var(--surface); }
.strip .container { padding-top: 30px; padding-bottom: 34px; }
.strip__label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-xs); color: var(--muted-2); margin: 0 0 14px; }
.strip__label a { margin-left: 10px; color: var(--link); text-decoration: none; }
.strip__label a:hover { text-decoration: underline; }
.strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.strip__item { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; position: relative; }
.strip__thumb { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin-bottom: 6px; }
.strip__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.strip__item:hover .strip__thumb img { transform: scale(1.03); }
.strip__thumb--fit { background: var(--white); border: 1px solid var(--line); }
.strip__thumb--fit img { object-fit: contain; }
.strip__thumb--empty { display: flex; align-items: flex-end; padding: 10px 12px; box-sizing: border-box; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--white) 8px 16px); }
.strip__thumb--empty span { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.strip__kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); }
.strip__title { color: var(--link); font-size: var(--fs-base); line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.strip__title:hover { text-decoration: underline; }
.strip__meta { font-size: var(--fs-xs); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strip__meta em { color: var(--venue); font-style: normal; }
.strip--lines .strip__title { font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.strip--lines .strip__item:hover .strip__title { text-decoration: underline; }
.home-about.section { padding-top: 44px; padding-bottom: 44px; }
.home-about__text { max-width: none; font-size: var(--fs-lg); }
.home-about__text p { max-width: none; }
/* faixa passando: a lista vai duplicada e corre para a esquerda; pausa com o mouse ou o foco */
.strip--marquee .strip__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 4%, var(--ink) 96%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ink) 4%, var(--ink) 96%, transparent); }
.strip--marquee .strip__list { display: flex; width: max-content; gap: 28px; animation: strip-run 60s linear infinite; }
.strip--marquee .strip__item { width: 280px; flex: none; }
/* velocidade igual em todas as faixas (~38 px/s): 8 s por item, qualquer que seja o número de itens */
.strip--marquee .strip__list { animation-duration: calc(var(--strip-n, 8) * 8s); }
.strip--marquee:hover .strip__list, .strip--marquee:focus-within .strip__list { animation-play-state: paused; }
@keyframes strip-run { to { transform: translateX(calc(-50% - 14px)); } }
@media (prefers-reduced-motion: reduce) {
  .strip--marquee .strip__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .strip--marquee .strip__list { animation: none; }
  .strip--marquee .strip__item[aria-hidden="true"] { display: none; }
}
@media (max-width: 1000px) {
  .strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .strip:not(.strip--marquee) .strip__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; scrollbar-width: none; }
  .strip:not(.strip--marquee) .strip__item { flex: 0 0 78%; scroll-snap-align: start; }
  .strip--lines .strip__list { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .strip--lines .strip__item { flex: none; }
  .strip--marquee .strip__item { width: 240px; }
}
.home-about__stats { margin-top: 28px; }
.strip__pause { margin-left: 14px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: var(--fs-2xs); letter-spacing: .08em; color: var(--muted); cursor: pointer; }
.strip__pause:hover { border-color: var(--ink); color: var(--ink); }
.strip--paused .strip__list { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .strip__pause { display: none; } }

/* ===== People › Head: cartões dos coordenadores (people/includes/faculty_cards.html) ===== */
.head-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.head-card { border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
.head-card:hover { border-color: var(--ink); }
.head-card__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.head-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; transition: transform .3s; }
.head-card:hover .head-card__photo img { transform: scale(1.03); }
.head-card__initials { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: var(--faint); }
.head-card__body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.head-card__kicker { margin: 0 0 4px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); }
.head-card__name { margin: 0; font-size: var(--fs-lg); line-height: 1.2; }
.head-card__name a { color: var(--text); text-decoration: none; }
.head-card__name a:hover { text-decoration: underline; }
.head-card__bio { margin: 8px 0 12px; font-size: var(--fs-md); color: var(--text-2); }
.head-card__tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.head-card__tags li { font-size: var(--fs-2xs); line-height: 1.5; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; color: var(--text-2); background: var(--surface); white-space: nowrap; }
.head-card__tags .head-card__tag-more { padding: 0; background: var(--white); }
.head-card__tag-more a { display: block; padding: 1px 7px; color: var(--link); font-weight: 600; text-decoration: none; }
.head-card__tag-more a:hover { text-decoration: underline; }
.head-card__foot { margin-top: auto; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--surface-2); padding-top: 12px; }
.head-card__icon { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; color: var(--text-2); background: var(--white); }
.head-card__icon:hover { border-color: var(--ink); }
.head-card__more { margin-left: auto; white-space: nowrap; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--link); }
@media (max-width: 1000px) { .head-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .head-grid { grid-template-columns: 1fr; } }
.cv-head > .avatar { width: 152px; height: 152px; font-size: 2.6rem; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--faint); border: 0; }
@media (max-width: 640px) { .cv-head > .avatar { width: 104px; height: 104px; font-size: var(--fs-3xl); } }

/* ===== People › Students & Postdocs: cartões compactos (students.html) ===== */
.student-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.student-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); min-width: 0; transition: border-color .2s; }
.student-card:hover { border-color: var(--faint); }
.student-card__photo { width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.student-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.student-card__photo span { font-weight: 700; color: var(--muted); font-size: var(--fs-md); }
.student-card__text { display: flex; flex-direction: column; min-width: 0; }
.student-card__name { font-weight: 600; font-size: var(--fs-md); line-height: 1.25; }
.student-card__name a { color: var(--text); text-decoration: none; }
.student-card__name a:hover { text-decoration: underline; }
.student-card__meta { font-size: var(--fs-xs); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-card__meta b { font-weight: 600; color: var(--text-2); }
.student-card__meta a { color: inherit; text-decoration: none; }
.student-card__meta a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .student-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .student-grid { grid-template-columns: 1fr; } }

/* ===== People: título, abas sublinhadas com total e filtro de níveis em bloco único ===== */
.people-head { padding-bottom: 0; }
.people-head { padding-top: 24px; }
.people-head__title { font-size: var(--fs-3xl); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 4px; }
.people-head .page-title__intro { font-size: var(--fs-base); margin-top: 2px; }
.people-tabs { display: flex; gap: 28px; margin-top: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.people-tabs__item { padding: 8px 0 10px; font-weight: 600; color: var(--muted-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.people-tabs__item:hover { color: var(--ink); text-decoration: none; }
.people-tabs__item.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.people-tabs__item span { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 400; color: var(--faint); margin-left: 3px; }
.people-body { padding-top: 20px; }
.people-filters { margin: 0 0 22px; }
.people-filters .advisor-filter select { padding: 5px 30px 5px 12px; font-size: var(--fs-sm); border-radius: 8px; }
.seg { gap: 0; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--surface); }
.seg .filter-btn { padding: 4px 12px; font-size: var(--fs-sm); border: 0; border-radius: 6px; background: transparent; color: var(--text-2); }
.seg .filter-btn:hover { background: #f0f0f1; }
.seg .filter-btn.is-active, .seg .filter-btn.is-active:hover { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.filter-btn__n { font-family: var(--font-mono); font-size: var(--fs-2xs); opacity: .6; margin-left: 2px; }

/* ===== Projects: lista (barra de filtros, cartões dos ativos, lista dos concluídos) ===== */
.proj-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.proj-toolbar__right { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-toolbar select, .proj-toolbar input[type=search] { padding: 6px 12px; font: inherit; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--text); }
.proj-toolbar select { padding-right: 30px; max-width: 220px; }
.proj-toolbar input[type=search] { width: 220px; }
.proj-toolbar--end { justify-content: flex-end; }
.pj3__h { font-size: var(--fs-lg); margin: 6px 0 14px; display: flex; gap: 8px; align-items: baseline; }
.pj3__h span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted-2); font-weight: 400; }
.pj3-done { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pj3-done li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 280px; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--surface-2); align-items: baseline; font-size: var(--fs-md); }
.pj3-done a { color: var(--text); text-decoration: none; font-weight: 600; }
.pj3-done a:hover { text-decoration: underline; }
.pj3-done__years { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted-2); }
.pj3-done__pi { color: var(--muted-2); font-size: var(--fs-sm); text-align: right; }
@media (max-width: 700px) {
  .pj3-done li { grid-template-columns: 1fr; gap: 2px; } .pj3-done__pi { text-align: left; }
  .proj-toolbar__right, .proj-toolbar input[type=search] { width: 100%; }
}
/* cartões dos projetos ativos: 4 por linha */
.pc-grid { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pc { border: 1px solid var(--line); border-radius: 10px; background: var(--white); display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s; }
.pc:hover { border-color: var(--ink); }
.pc__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--surface-2); }
.pc__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc__media--fit { background: var(--white); }
.pc__media--fit img { object-fit: contain; }
.pc__media--logo { background: var(--white); padding: 18px 28px; box-sizing: border-box; }
.pc__media--logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.pc__media--empty { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--white) 8px 16px); }
.pc__media--empty span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; color: var(--faint); }
.pc__body { padding: 14px 16px 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.pc__kicker { margin: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-2xs); color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__kicker b { color: var(--ink); font-weight: 600; }
.pc__title { margin: 0; font-size: var(--fs-md); line-height: 1.35; }
.pc__title a { color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc__title a:hover { text-decoration: underline; }
.pc__inst { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.pc__role { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.pc__role span { display: inline-block; font-weight: 600; color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: var(--fs-2xs); margin-right: 4px; }
.pc__fund { margin: 0; font-size: var(--fs-xs); color: var(--muted-2); line-height: 1.45; }
.pc__grant { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.pc__links { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--surface-2); display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-sm); font-weight: 600; }
.pc__links a { color: var(--link); text-decoration: none; }
.pc__links a:hover { text-decoration: underline; }
.pc__more { color: var(--ink) !important; }
@media (max-width: 1100px) { .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pc-grid { grid-template-columns: 1fr; } }
.pj3-done__title a { color: var(--text); text-decoration: none; font-weight: 600; }
.pj3-done__title > span, .pj3-done__title { font-weight: 600; }
.pj3-done__ext { margin-left: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--link) !important; white-space: nowrap; }
.pj3-more { margin-top: 14px; }
.pj3-done--rest { border-top: 0; }
.prose ul.contact-card__tags, .prose ul.contact-grid { padding-left: 0; }
.prose .contact-card__tags li::before { content: none; }
/* News / Blog / Awards: mesmos cartões dos projetos */
.pc__kicker--muted { color: var(--muted-2); font-weight: 400; }
.pc__excerpt { margin: 0; font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc__role a { color: inherit; text-decoration: none; }
.pc__role a:hover { text-decoration: underline; }
.feed-rss { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; color: var(--muted-2); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.feed-rss:hover { color: var(--ink); border-color: var(--ink); }
.pc__media--empty span { text-transform: uppercase; }
.post-kicker { margin: 0 0 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); color: var(--muted-2); }
.post-kicker a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-kicker a:hover { text-decoration: underline; }
.post-share-top { margin: 4px 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--surface-2); }
.post-share-top .share { margin: 0; }
.blog-item__title a { color: var(--ink); }
.blog-item__title a:hover { text-decoration: underline; }
/* Blog: coluna de leitura centralizada */
.reading.blog-center { margin-left: auto; margin-right: auto; }
.pc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pc-grid--3 { grid-template-columns: 1fr; } }
.blog-head { padding-bottom: 14px; border-bottom: 0; }
.blog-head + .people-body .proj-toolbar { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ===== Perfil de aluno: coluna com foto à esquerda + seções do perfil completo ===== */
.sp { padding-top: 28px; }
.sp__grid { padding-top: 0; }
.sp__side { position: sticky; top: calc(var(--header-h) + 20px); }
.sp__photo { display: flex; width: 180px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); align-items: center; justify-content: center; margin-bottom: 16px; }
.sp__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp__photo span { font-size: 3rem; font-weight: 700; color: var(--faint); }
.sp__crumb { margin: 0 0 2px; }
.sp__name { margin: 0; font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: -.01em; }
.sp__kicker { margin: 6px 0 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); }
.sp__line { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--text-2); }
.sp__line span:first-child { display: inline-block; font-weight: 600; color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: var(--fs-2xs); margin-right: 4px; }
.sp__line a { color: inherit; }
.sp__grant span.pc__grant { background: none; padding: 0; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); margin: 0; border-radius: 0; display: inline; }
.sp__contact { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.sp__icons { margin: 0; padding: 0; border-left: 0; }
.sp__share { margin-top: 16px; }
.sp__main .cv-sec:first-child { padding-top: 0; }
@media (max-width: 860px) { .sp__side { position: static; } .sp__photo { width: 140px; } }
.sp__share .share { flex-wrap: wrap; }
.sp__share .share__label { display: block; width: 100%; margin-bottom: 4px; }
.cv-interests li > span { color: var(--text-2); border-bottom: 1px solid var(--line); }

/* ===== Gallery ===== */
.gal-filter { margin-bottom: 20px; display: inline-flex; }
.gal { list-style: none; margin: 0; padding: 0; }
/* A: mosaico justificado — cada foto cresce na proporção da imagem; o último "filler" segura a última linha */
.gal--a { display: flex; flex-wrap: wrap; gap: 6px; }
.gal--a::after { content: ""; flex-grow: 1000000; }
.gal--a .gal__item { position: relative; aspect-ratio: var(--r); max-height: 280px; }
.gal--a .gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__link { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.gal__link img { transition: transform .4s ease; }
.gal__link:hover img, .gal__link:focus-visible img { transform: scale(1.03); }
.gal__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; display: flex; flex-direction: column; gap: 1px; color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.gal__cap b { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.gal__cap small { font-size: var(--fs-xs); opacity: .85; }
.gal__link:hover .gal__cap, .gal__link:focus-visible .gal__cap { opacity: 1; }
@media (hover: none) { .gal__cap { opacity: 1; } }
@media (max-width: 560px) { .gal--a:not(.gal--js) .gal__item { flex-basis: 45% !important; } }
/* foto aberta */
.lb { border: 0; padding: 0; width: min(1200px, 96vw); max-height: 94vh; background: var(--white); border-radius: 10px; overflow: hidden; }
.lb::backdrop { background: rgba(10,10,10,.82); }
.lb[open] { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.lb__fig { margin: 0; background: var(--ink); display: flex; align-items: center; justify-content: center; min-height: 60vh; max-height: 94vh; }
.lb__fig img { max-width: 100%; max-height: 94vh; object-fit: contain; display: block; }
.lb__info { padding: 28px 22px; display: flex; flex-direction: column; gap: 8px; }
.lb__cap { margin: 0; font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.lb__meta { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--muted-2); }
.lb__share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.lb__share .share { width: 100%; flex-wrap: wrap; }
.lb__close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: var(--white); border-radius: 50%; font-size: var(--fs-2xl); cursor: pointer; z-index: 2; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; font-size: var(--fs-lg); z-index: 2; }
.lb__nav--prev { left: 10px; }
.lb__nav--next { right: 310px; }
@media (max-width: 800px) { .lb[open] { grid-template-columns: 1fr; overflow-y: auto; } .lb__fig { min-height: 40vh; } .lb__nav--next { right: 10px; } .lb__nav { top: 28vh; } }
.lb__share .btn { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.lb__share .btn:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
/* mosaico calculado no JavaScript: cada foto recebe largura/altura exatas da sua linha */
.gal--js { display: flex; flex-wrap: wrap; gap: 6px; }
.gal--js::after { display: none; }
.gal--js .gal__item { flex: none !important; max-height: none; aspect-ratio: auto; }
/* área de membros: envio e revisão de fotos */
.gal-upload { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 18px 0 28px; display: grid; gap: 4px; }
.gal-upload .form-row { display: grid; gap: 4px; margin: 6px 0; }
.gal-upload input[type=text], .gal-upload input[type=date], .gal-upload select { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; }
.gal-drop { display: block; border: 1.5px dashed var(--faint); border-radius: 10px; padding: 22px; text-align: center; cursor: pointer; background: var(--surface); }
.gal-drop input { display: block; margin: 0 auto 8px; }
.gal-drop__list { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.gal-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gal-mine li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--surface-2); }
.gal-mine img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; }
.review-photo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.review-photo__img img { width: 200px; height: 138px; object-fit: cover; border-radius: 6px; display: block; }
.review-photo__form { display: grid; gap: 6px; margin: 8px 0; }
.review-photo__form input[type=text] { width: 100%; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; box-sizing: border-box; }
@media (max-width: 640px) { .review-photo { grid-template-columns: 1fr; } }
/* faixa de fotos da galeria na home */
.strip__list--photos { display: flex !important; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.strip:not(.strip--marquee) .strip__list--photos { flex-wrap: nowrap; }
.strip__photo { flex: none; height: 180px; position: relative; }
.strip__photo a { display: block; height: 100%; border-radius: 6px; overflow: hidden; position: relative; }
.strip__photo img { height: 100%; width: auto; display: block; }
.strip__photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: var(--white); font-size: var(--fs-xs); font-weight: 600; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); opacity: 0; transition: opacity .25s; }
.strip__photo a:hover span { opacity: 1; }
.strip--marquee .strip__list--photos { overflow: visible; width: max-content; }
.strip--marquee .strip__photo { width: auto; }
.write-options { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

/* ===== Área de membros: prévia do visual novo (?ui=new) ===== */
.kb--new .kb-grp, .kb-grp { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .09em; font-size: var(--fs-2xs); color: var(--muted-2); margin: 18px 6px 6px; font-weight: 400; }
.kb--new .kb-me--new { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.kb--new .kb-link { color: var(--text-2); border-radius: 6px; }
.kb--new .kb-link.is-active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.kb--new .kb-link.is-off { color: var(--faint); }
.kb-count { display: inline-block; min-width: 18px; text-align: center; font-size: var(--fs-2xs); font-weight: 600; background: var(--ink); color: var(--white); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.kb-who--new { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--muted-2); margin: 18px 6px 2px; word-break: break-all; }
.kb--new .review-banner { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0 6px 6px 0; color: var(--ink); font-weight: 500; }
.kb--new .review-banner a { color: var(--ink); }
.kb-kicker { margin: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .09em; font-size: var(--fs-2xs); color: var(--muted-2); }
.kb-title--new { font-size: var(--fs-3xl); margin: 2px 0 4px; }
.kb-lead { color: var(--muted); margin: 0 0 8px; font-size: var(--fs-base); }
.kb-grp--main { margin: 20px 0 8px; }
.new-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.new-card { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); background: var(--white); transition: border-color .2s; }
.new-card:hover { border-color: var(--ink); text-decoration: none; }
.new-card b { font-weight: 600; font-size: var(--fs-md); }
.new-card span { font-size: var(--fs-xs); color: var(--muted-2); }
.write-tabs { margin-top: 30px; }
.mytexts { list-style: none; margin: 0; padding: 0; }
.mytexts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--surface-2); align-items: center; }
.mytexts__kicker { margin: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .07em; font-size: var(--fs-2xs); color: var(--muted-2); }
.mytexts__title { margin: 2px 0 0; font-weight: 600; }
.st { display: inline-block; font-size: var(--fs-2xs); font-weight: 600; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; background: var(--surface-2); color: var(--muted); }
.st--published { background: #dcfce7; color: #166534; }
.st--review { background: #fef3c7; color: #92400e; }
.st--returned { background: #fee2e2; color: #991b1b; }
.mytexts__actions { display: flex; gap: 14px; font-size: var(--fs-sm); }
.mytexts__actions a, .mytexts__actions .linklike { color: var(--ink); }
@media (max-width: 900px) { .new-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* mesmo topo e estilo em todas as páginas da área de membros */
.kb--new .kb-crumb { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .09em; font-size: var(--fs-2xs); color: var(--muted-2); margin: 0 0 2px; }
.kb--new .kb-crumb a { color: var(--muted-2); }
.kb--new .kb-title { color: var(--ink); margin: 2px 0 6px; }
.kb--new .kb-main > .lead { font-size: var(--fs-base); color: var(--muted); }
.kb--new .kb-h2 { color: var(--ink); font-size: var(--fs-lg); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.kb--new .write-status { font-size: var(--fs-2xs); padding: 1px 8px; }
.kb--new .write-status--published, .kb--new .write-status--changes { background: #dcfce7; color: #166534; }
.kb--new .write-status--review { background: #fef3c7; color: #92400e; }
.kb--new .write-status--returned { background: #fee2e2; color: #991b1b; }
.kb--new .review-list { max-width: none; }
.kb--new .review-item { border-bottom: 1px solid var(--surface-2); }
.kb--new .badge--plain { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .07em; font-size: var(--fs-2xs); background: none; border: 0; color: var(--muted-2); padding: 0; }
.kb--new .btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.kb--new .btn--outline:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
.kb--new .review-return > summary, .kb--new .review-photo__body .linklike { color: var(--muted); font-weight: 500; font-size: var(--fs-sm); }
.kb--new .review-photo__form .btn { justify-self: start; }
.kb--new .review-item__head .small .badge--phd { background: var(--ink); color: var(--white); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .07em; border-radius: 999px; padding: 1px 8px; }
/* área de membros: detalhes restantes no visual novo */
.kb--new .kb-back { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); }
.kb--new .kb-back:hover { color: var(--ink); text-decoration: underline; }
.kb--new .callout--info, .kb--new .callout--neutral { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0 8px 8px 0; color: #27272a; }
.kb--new .kb-main .btn, .kb--new .kb-main .btn:hover { text-decoration: none; }
.kb--new .kb-pager a { color: var(--ink); }
.kb--new .kb-pager a:hover { text-decoration: underline; }
.kb--new fieldset { border-color: var(--line); border-radius: 10px; }
.kb--new legend { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); font-weight: 400; }
.myproj { list-style: none; margin: 0; padding: 0; }
.myproj li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.myproj__thumb { width: 80px; height: 55px; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--white) 6px 12px); border: 1px solid var(--surface-2); display: block; }
.myproj__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myproj-more { margin-top: 8px; }
@media (max-width: 640px) { .myproj li { grid-template-columns: 60px minmax(0, 1fr); } .myproj .mytexts__actions { grid-column: 2; } }
.kb--new .more-list > summary { color: var(--ink); }
.kb-headrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 760px; }
.new-card--inline { padding: 8px 14px; flex-direction: column; gap: 1px; }
.new-card--inline span { font-size: var(--fs-xs); }
.myproj-search { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.myproj-search input { width: 320px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: var(--fs-sm); }
.myproj li[hidden], .myproj-group[hidden] { display: none; }
.myproj-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; flex-wrap: wrap; }
.myproj-bar .myproj-search { margin: 0; }
.myproj-new { margin-left: auto; }
.site-footer__unesp { display: inline-block; margin: 2px 0 12px; opacity: .92; }
.site-footer__unesp:hover { opacity: 1; }
.site-footer__unesp img { display: block; width: 120px; height: auto; }
/* área de membros: texto mais largo nos tutoriais e páginas internas */
.kb--new .kb-doc { max-width: 1280px; gap: 40px; }
.kb--new .kb-article { max-width: 810px; }
.kb--new .kb-article .prose--reading { max-width: 790px; font-size: 17px; }
.kb--new .kb-main { max-width: 980px; }
/* o índice "On this page" fica logo ao lado do texto (sem vão em telas largas) */
.kb--new .kb-doc { grid-template-columns: minmax(0, 810px) 220px; justify-content: start; gap: 48px; }
@media (max-width: 1100px) { .kb--new .kb-doc { grid-template-columns: minmax(0, 1fr); } }
.external-toggle { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
[data-internal-only][hidden] { display: none; }
.ext-tag { display: inline-block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-2xs); font-weight: 600; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; line-height: 1.5; vertical-align: 1px; }
.fill-link-btn { margin-top: 6px; width: auto !important; display: inline-block; }
.fill-link-note { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.fill-link-thumb { display: inline-block; width: 120px; height: auto; border-radius: 6px; vertical-align: middle; margin-right: 6px; }
[data-external-only][hidden] { display: none !important; }

/* botão "Show N more" das listas longas (site.js, [data-more-limit]) — mesmo visual do "Show more" de Projects */
.more-btn-wrap { margin-top: 10px; }
.more-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; color: var(--blue-600); font-weight: 600; font-size: var(--fs-md); }
.more-btn::after { content: " \25BE"; }
.more-btn:hover { text-decoration: underline; }
[data-more-limit] > [hidden] { display: none !important; }

/* =========================================================================
   Visual final (minimalista: IBM Plex, preto e branco, logo preto)
   ========================================================================= */
/* cabeçalho enxuto */
.site-header__brand img { height: 48px; }
.site-header__tagline { display: none; }
.site-nav__link { font-weight: 500; font-size: var(--fs-md); color: var(--text-2); border-bottom: 0; }
.site-nav__item.is-active > .site-nav__link { color: var(--ink); }
/* Log in / Log out: ação dos membros, então botão de contorno (os botões de conteúdo continuam pretos) */
.site-nav__login .btn, .site-nav__logout .btn { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; }
.site-nav__login .btn:hover, .site-nav__logout .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.site-nav__submenu { border-top: 0; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* títulos */
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.015em; }
.section-title { font-size: var(--fs-2xl); font-weight: 600; color: var(--ink); padding-bottom: 0; }
.section-title::after { display: none; }
/* topo compacto, igual em todas as páginas (People, News, Projects, Publications, páginas de texto...) */
.page-title { padding: 24px 0 4px; }
.page-title__box { background: none; color: var(--ink); padding: 0; font-size: var(--fs-3xl); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; border-radius: 0; }
.page-title__intro { font-size: var(--fs-base); margin-top: 4px; }

/* rótulos em fonte monoespaçada */
.breadcrumbs, .badge, .stat__label, .post-meta, time { font-family: var(--font-mono); }
.badge { background: transparent; border: 0; padding: 0; text-transform: uppercase; font-weight: 500; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted); }
.card, .stats { box-shadow: none; }
.pub--figure { border-left: 1px solid var(--gray-200); }
.btn { border-radius: 6px; }
.btn--primary { background: var(--ink); border-color: var(--ink); }

/* carrossel em forma de texto (home/includes/hero_c.html) */
.hero-c { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-c .container { padding-top: 56px; padding-bottom: 28px; }
/* altura travada: todos os slides com 340 px, o carrossel não muda de tamanho ao trocar de slide */
.hero-c__slide { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; height: 340px; min-height: 0; }
.hero-c__main { max-height: 340px; overflow: hidden; }
.hero-c__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-c__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* notícias e posts em destaque: títulos costumam ser longos, então fonte um pouco menor e resumo em 2 linhas */
.hero-c__slide--promoted .hero-c__title { font-size: 2.1rem; line-height: 1.12; letter-spacing: -.025em; }
.hero-c__slide--promoted .hero-c__lead { -webkit-line-clamp: 2; font-size: var(--fs-lg); }
.hero-c__slide[hidden] { display: none; }
.hero-c__slide--text { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.hero-c__eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-xs); color: var(--muted-2); margin: 0; }
.hero-c__eyebrow a { margin-left: 10px; color: var(--link); text-decoration: none; }
.hero-c__title { font-size: 3rem; line-height: 1.06; letter-spacing: -.04em; margin: 10px 0 16px; font-weight: 700; color: var(--ink); }
.hero-c__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 560px; }
.hero-c__actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-c__btn { border: 1px solid var(--text); border-radius: 6px; padding: 9px 18px; color: var(--text); font-weight: 500; text-decoration: none; }
.hero-c__btn--dark { background: var(--ink); color: var(--white); }
/* imagem: mesma altura de antes (340 px), ocupando toda a largura da coluna; o recorte segue o ponto de foco da imagem */
.hero-c__figure { margin: 0; height: 340px; width: 100%; overflow: hidden; border-radius: 8px; }
.hero-c__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-c__controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.hero-c__ctl { width: 34px; height: 34px; border: 1px solid var(--line-strong); background: var(--white); border-radius: 6px; cursor: pointer; color: var(--text); font-size: var(--fs-base); }
.hero-c__ctl:hover { border-color: var(--text); }
.hero-c__ctl--pause { font-size: var(--fs-2xs); }
.hero-c__ctl--pause[aria-pressed="true"] { background: var(--text); color: var(--white); }
.hero-c__dots { display: flex; gap: 6px; }
.hero-c__dot { width: 22px; height: 4px; border-radius: 2px; background: var(--line-strong); border: 0; padding: 0; cursor: pointer; }
.hero-c__dot.is-active { background: var(--ink); width: 34px; }
/* faixa das últimas publicações */
.hero-c-pubs { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-c-pubs .container { padding-top: 28px; padding-bottom: 32px; }
.hero-c__pubs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hero-c__pubs li { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.hero-c__type { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); }
.hero-c__pubtitle { color: var(--link); font-size: var(--fs-base); line-height: 1.35; text-decoration: none; }
.hero-c__pubtitle:hover { text-decoration: underline; }
.hero-c__meta { font-size: var(--fs-xs); color: var(--muted); }
.hero-c__meta em { color: var(--venue); font-style: normal; }
@media (max-width: 900px) {
  /* celular: imagem em cima, texto embaixo, altura também travada */
  .hero-c__slide { grid-template-columns: 1fr; grid-template-rows: 200px minmax(0, 1fr); gap: 18px; height: 540px; min-height: 0; align-items: start; }
  .hero-c__figure { height: 200px; order: -1; }
  .hero-c__main { max-height: none; }
  .hero-c__slide--text { grid-template-rows: minmax(0, 1fr); }
  .hero-c__title { font-size: 2.2rem; }
  .hero-c__pubs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .hero-c__pubs { grid-template-columns: 1fr; } }
/* o slide C não usa a película escura nem a altura do carrossel com foto */
.hero-c__slide::after { display: none; }
h2.hero-c__title { font-size: 2.3rem; line-height: 1.1; letter-spacing: -.03em; }

/* publicações no estilo OpenAlex: todas iguais, sem caixas; tipo e ano acima do título */
.pub, .pub--figure { background: transparent; border: 0; border-left: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0; box-shadow: none; }
.pub--figure { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; }
.pub__kicker { display: block; margin: 0 0 4px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); }
.pub__venue .badge { display: none; }
.pub__title { font-weight: 500; font-size: var(--fs-lg); }
.pub__title a { color: var(--link); }
.pub__authors { color: var(--text-2); }
.pub__member { font-weight: 600; color: var(--ink); }
.pub__venue em { font-style: normal; color: var(--venue); }
.pub__links { font-weight: 500; }
.pub-year__title { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; border-bottom: 1px solid var(--ink); }
@media (max-width: 760px) { .pub--figure { grid-template-columns: 1fr; } .pub__figure { width: 100%; height: 180px; order: -1; } }
/* compartilhar: quadrados discretos, como os outros controles do C */
.share__btn { border-radius: 6px; color: var(--muted); border-color: var(--line); }
.share__label { font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; font-size: var(--fs-2xs); }
/* perfil completo no C: preto em vez do azul-marinho nos destaques */
.cv-name, .cv-sec__title { color: var(--ink); }
.cv-timeline__dot { border-color: var(--ink); }
.cv-timeline li.is-current .cv-timeline__dot, .cv-nav a.is-active { border-left-color: var(--ink); color: var(--ink); }
.cv-tag { color: var(--ink) !important; }
.cv-interests a { color: var(--link); }

/* abas antigas (Code & Data, área de membros): mesmo desenho das abas sublinhadas de People/News */
.type-tabs { gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.type-tab { padding: 8px 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted-2); }
.type-tab:hover { color: var(--ink); }
.type-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
/* o recorte de 3 linhas cortava a perna do g/p/y: um pouco mais de entrelinha e uma folga embaixo */
.hero-c__title { line-height: 1.12; padding-bottom: .1em; margin-bottom: 10px; }
.hero-c__slide--promoted .hero-c__title { line-height: 1.16; }

/* slide-mosaico da galeria: 1 foto grande à esquerda + até 4 menores */
.hero-c__mosaic { display: grid; gap: 4px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hero-c__mosaic a { display: block; overflow: hidden; border-radius: 4px; min-height: 0; }
.hero-c__mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hero-c__mosaic a:hover img { transform: scale(1.04); }
.hero-c__mosaic a:first-child { grid-row: span 2; }
.hero-c__mosaic--1 { grid-template-columns: 1fr; } .hero-c__mosaic--1 a:first-child { grid-row: span 2; }
.hero-c__mosaic--2 { grid-template-columns: 2fr 1fr; } .hero-c__mosaic--2 a:nth-child(2) { grid-row: span 2; }
.hero-c__mosaic--3 { grid-template-columns: 2fr 1fr; }
.hero-c__mosaic--4 { grid-template-columns: 2fr 1fr 1fr; } .hero-c__mosaic--4 a:nth-child(4) { grid-column: span 2; }
/* logo de prêmio / figura de artigo: inteiro, centralizado numa caixa branca com borda fina */
.hero-c__figure--contain { background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 28px; box-sizing: border-box; }
.hero-c__figure--contain img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* ===== Awards: cartão inteiro clicável e página do prêmio (news/award_detail.html) ===== */
.pc--link { position: relative; }
.pc--link:hover { border-color: var(--line-strong); }
.pc--link .pc__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc--link .pc__links a, .pc--link .pc__role a { position: relative; z-index: 2; }
.award-page__head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin: 0 0 24px; }
.award-page__logo { flex: none; display: flex; align-items: center; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.award-page__logo img { display: block; max-width: 220px; max-height: 160px; width: auto; height: auto; }
.award-page__facts { flex: 1 1 280px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: var(--fs-sm); }
.award-page__facts dt { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.award-page__facts dd { margin: 0; color: var(--text); }
.award-page__photo { margin: 0 0 24px; }
.award-page__work { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.award-page__label { margin: 0 0 8px; font-family: "IBM Plex Mono", monospace; font-size: var(--fs-2xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.award-page__work-title { margin: 0 0 6px; font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; }
.award-page__work-title a { color: var(--text); }
.award-page__authors { margin: 0 0 4px; font-size: var(--fs-sm); color: var(--text-2); }
.award-page__venue { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.award-page__links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 24px 0; font-weight: 600; font-size: var(--fs-sm); }
.award-page__links a { color: var(--link); text-decoration: none; }
.award-page__links a:hover { text-decoration: underline; }
.award-page__links a.award-page__btn { background: var(--ink); color: var(--white); padding: 9px 16px; border-radius: 8px; }
.award-page__back { margin: 28px 0 0; font-size: var(--fs-sm); }

/* Alumni: coluna "Final work" com o título do trabalho (até 2 linhas; o completo no title) */
.data-table td.alumni-work { min-width: 260px; max-width: 420px; font-size: var(--fs-sm); line-height: 1.4; }
.alumni-work > a, .alumni-work > span:not(.alumni-work__tag) { display: -webkit-inline-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alumni-work__tag { font-family: "IBM Plex Mono", monospace; font-size: var(--fs-2xs); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }

/* People › Students: busca ao lado do filtro de orientador */
.people-filters .advisor-filter { flex-wrap: wrap; }
.people-filters .advisor-filter input[type="search"] { padding: 5px 12px; font: inherit; font-size: var(--fs-sm); border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); color: var(--text); width: 200px; max-width: 100%; }
.people-filters .advisor-filter input[type="search"]:focus { outline: 2px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600); }

/* Perfil: projetos de pesquisa (linha curta; com resumo/bolsa abre ao clicar) */
.rp-list { list-style: none; margin: 0; padding: 0; }
.rp { border-bottom: 1px solid var(--line); padding: 12px 0; }
.rp:last-child { border-bottom: 0; }
.rp__head { display: flex; flex-direction: column; gap: 3px; }
details.rp__box > summary { list-style: none; cursor: pointer; position: relative; padding-right: 28px; }
details.rp__box > summary::-webkit-details-marker { display: none; }
details.rp__box > summary::after { content: ""; position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details.rp__box[open] > summary::after { transform: rotate(-135deg); top: 10px; }
details.rp__box > summary:hover .rp__title { text-decoration: underline; }
details.rp__box > summary:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }
.rp__title { color: var(--text); font-weight: 600; line-height: 1.4; }
.rp__meta { color: var(--muted); font-size: var(--fs-sm); }
.rp__grant { font-family: "IBM Plex Mono", monospace; font-size: var(--fs-xs); color: var(--text-2); }
.rp__body { margin-top: 10px; padding: 12px 16px; background: var(--surface); border-radius: 8px; font-size: var(--fs-sm); color: var(--text-2); }
.rp__body p { margin: 0 0 10px; }
.rp__body p:last-child { margin-bottom: 0; }
.rp__fund span { font-family: "IBM Plex Mono", monospace; font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.rp__links { display: flex; gap: 16px; margin: 6px 0 0; font-size: var(--fs-sm); font-weight: 600; }
.rp__links a { color: var(--link); text-decoration: none; }
.rp__links a:hover { text-decoration: underline; }

/* Área de membros: My research projects */
.myrp { list-style: none; margin: 0 0 18px; padding: 0; }
.myrp__item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.myrp__fig { width: 160px; height: 100px; object-fit: cover; border-radius: 6px; flex: none; }
.myrp__body { display: flex; flex-direction: column; gap: 4px; }
.profile-form__more { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; }
.profile-form__more > summary { cursor: pointer; font-weight: 600; }
.profile-form__more > fieldset { border: 0; padding: 10px 0 0; margin: 0; }
@media (max-width: 640px) { .myrp__fig { width: 96px; height: 64px; } }

/* ---------------------------------------------------------------------------
   Editor de Markdown da área de membros (members.js → textarea[data-md-editor])
   --------------------------------------------------------------------------- */
.mde { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); overflow: hidden; }
.mde__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mde__tabs, .mde__tools { display: flex; align-items: center; gap: 4px; }
.mde__tab, .mde__img-btn { font: inherit; font-size: var(--fs-sm); padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.mde__tab:hover, .mde__img-btn:hover { color: var(--ink); background: var(--surface-2); }
.mde__tab.is-active { color: var(--ink); background: var(--white); border-color: var(--line-strong); font-weight: 600; }
.mde__img-btn { color: var(--ink); border-color: var(--line-strong); background: var(--white); font-weight: 500; }
.mde__hint { font-size: var(--fs-xs); color: var(--faint); padding: 0 4px; }
.mde__tab--side { display: none; }
@media (min-width: 1200px) { .mde__tab--side { display: inline-block; } }
.mde__panes { display: grid; grid-template-columns: minmax(0, 1fr); }
.profile-form .mde textarea { border: 0; border-radius: 0; min-height: 12em; resize: vertical; }
.profile-form .mde textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-400); }
.mde__preview { padding: 12px 16px; min-height: 12em; overflow: auto; font-size: var(--fs-md); }
.mde[data-mode="write"] .mde__preview { display: none; }
.mde[data-mode="preview"] textarea { display: none; }
.mde[data-mode="side"] .mde__panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mde[data-mode="side"] .mde__preview { border-left: 1px solid var(--line); max-height: 70vh; }
.mde--full .mde__preview { min-height: 24em; }
.mde__empty { color: var(--faint); font-style: italic; }
/* dentro do formulário o "p" vira grade (rótulo + campo); na pré-visualização volta ao normal */
.profile-form .mde__preview p, .profile-form .mde__dialog p { display: block; }
.kb-main:has(.mde[data-mode="side"]) { max-width: none; }
.kb-main:has(.mde[data-mode="side"]) .profile-form { max-width: 1400px; }
.mde__dialog { padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 10px; max-width: 640px; }
.mde__dialog[hidden] { display: none; }
.mde__dialog-title { font-weight: 600; margin: 0; }
.mde__dialog label { display: grid; gap: 3px; font-size: var(--fs-sm); font-weight: 500; }
.mde__dialog small { font-weight: 400; color: var(--muted); }
.mde__dialog input[type="text"], .mde__dialog input[type="url"] { font: inherit; padding: 7px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.mde__src { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.mde__src legend { font-size: var(--fs-sm); font-weight: 500; padding: 0 4px; }
@media (max-width: 640px) { .mde__src { grid-template-columns: 1fr; } }
.mde__dialog-actions { margin: 0; display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; }
.mde__status { font-size: var(--fs-sm); color: var(--muted); }

/* Figura no Markdown (core/mdx_figure.py): imagem, legenda e fonte */
.md-figure { margin: 1.6em 0; }
.md-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
.md-figure figcaption { margin-top: .5em; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.md-figure__src { display: block; font-size: var(--fs-xs); color: var(--faint); }
.md-figure figcaption:not(:empty) .md-figure__src:not(:first-child) { margin-top: 2px; }
.markdown-body img { max-width: 100%; height: auto; }

/* Aviso de formulário não salvo (members/_form_errors.html) */
.form-alert { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 0 0 22px; color: #7f1d1d; }
.form-alert__title { font-weight: 700; margin: 0 0 6px; color: #991b1b; }
.form-alert ul { margin: 0; padding-left: 1.2em; }
.form-alert li { margin: 4px 0; }
.form-alert a { color: #991b1b; font-weight: 600; }
.profile-form .errorlist { color: #b91c1c; font-weight: 600; font-size: var(--fs-sm); margin: 4px 0 0; padding: 0; list-style: none; }
.profile-form .has-error input, .profile-form .has-error textarea, .profile-form .has-error select, .profile-form .has-error .mde { border-color: #dc2626; }

/* Página Write com muitas seções (members/write/list_new.html) */
.new-pick { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--white); display: grid; gap: 10px; max-width: 620px; }
.new-pick label { display: grid; gap: 2px; }
.new-pick label span { color: var(--muted); font-size: var(--fs-sm); }
.new-pick__row { display: flex; gap: 10px; flex-wrap: wrap; }
.new-pick select { flex: 1 1 260px; font: inherit; padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); }

/* Menu da área de membros: "Write" em primeiro e em destaque */
.kb-link--write { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.kb-link--write svg { flex: none; }

/* Tamanho da figura no Markdown: ![…](…){.small|.medium|.large} */
.md-figure--small img { width: 33.333%; }
.md-figure--medium img { width: 50%; }
.md-figure--large img { width: 75%; }
.md-figure--small figcaption, .md-figure--medium figcaption, .md-figure--large figcaption { max-width: 75%; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .md-figure--small img { width: 60%; }
  .md-figure--medium img, .md-figure--large img { width: 100%; }
  .md-figure--small figcaption, .md-figure--medium figcaption, .md-figure--large figcaption { max-width: none; }
}
.mde__dialog select { font: inherit; padding: 7px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); max-width: 260px; }

/* Ajuda recolhida no topo dos formulários (members/write/_guide.html e outros) */
.form-guide { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin: 0 0 20px; max-width: 760px; }
.form-guide > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.form-guide > summary::-webkit-details-marker { display: none; }
.form-guide > summary::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; }
.form-guide > summary::after { content: "▸"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.form-guide[open] > summary::after { transform: rotate(90deg); }
.form-guide__body { padding: 2px 18px 14px; font-size: var(--fs-sm); color: var(--text-2); border-top: 1px solid var(--line); }
.form-guide__body ol { margin: 10px 0; padding-left: 1.3em; }
.form-guide__body li { margin: 6px 0; line-height: 1.5; }
.form-guide__flow { margin: 8px 0; }
.form-guide__links { margin: 8px 0 0; }
.form-guide__links a, .kb-guide-link a { font-weight: 600; }
.kb-guide-link { font-size: var(--fs-sm); color: var(--muted); margin: -6px 0 18px; }
.mde__hint { font: inherit; font-size: var(--fs-xs); color: var(--muted); background: none; border: 0; padding: 4px 6px; cursor: pointer; text-decoration: underline dotted; }
.mde__hint:hover, .mde__hint.is-active { color: var(--ink); }
.mde__help { padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.mde__help[hidden] { display: none; }
.mde__help table { border-collapse: collapse; width: 100%; max-width: 720px; }
.mde__help td { padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mde__help td:first-child { white-space: nowrap; width: 1%; }
.mde__help code { font-size: var(--fs-xs); background: var(--white); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }
.profile-form .mde__help p { display: block; margin: 8px 0 0; }

/* Banner do guia dos membros (primeiros logins) */
.guide-banner { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin: 24px 56px 0; max-width: 820px; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue-600); border-radius: 0 8px 8px 0; background: #eff6ff; color: var(--ink); }
.guide-banner__icon { flex: none; color: var(--blue-600); }
.guide-banner__text { flex: 1 1 320px; margin: 0; line-height: 1.5; }
.guide-banner__text strong { display: block; }
.guide-banner__go { flex: none; padding: 8px 14px; border-radius: 6px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap; }
.guide-banner__go:hover { opacity: .9; }
.guide-banner__hide { flex: none; margin: 0; }
.guide-banner__hide button { background: none; border: 0; padding: 8px 4px; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .guide-banner { margin: 16px 16px 0; } }

/* Editor: destaque do "Side by side" até a primeira vez que a pessoa usa */
/* Dicas para iniciantes (members.js → LidiaNudge): "New" + anel piscando + seta até a pessoa usar o recurso 3 vezes;
   .nudge-tip = dica sem clique, só nas primeiras visitas. */
.nudge { position: relative; color: var(--blue-600); animation: nudge-ring 1.8s ease-out infinite; border-radius: 6px; }
.nudge--used, .nudge.is-active { animation: none; }
.nudge__new { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.nudge.is-active .nudge__new, .nudge--used .nudge__new { display: none; }
.nudge__arrow { display: inline-block; margin-left: 8px; color: var(--blue-600); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; animation: nudge-move 1.2s ease-in-out infinite; }
.nudge__arrow.nudge--used, .nudge.is-active + .nudge__arrow, details[open] > summary > .nudge__arrow { display: none; }
summary > .nudge__arrow { white-space: normal; }
.nudge__arrow.mde__side-hint { display: none; }
@media (min-width: 1200px) { .mde:not([data-mode="side"]) .nudge__arrow.mde__side-hint:not(.nudge--used) { display: inline-block; } }
@media (max-width: 700px) { .mde__tools .nudge__arrow { display: none; } }
.nudge-tip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 14px; padding: 8px 12px; border-left: 3px solid var(--blue-600); background: var(--surface); color: var(--text); font-size: var(--fs-sm); }
.nudge-tip__ok { margin-left: auto; font-size: var(--fs-xs); }
.mde .nudge-tip { margin: 0; border-radius: 0; }
@keyframes nudge-ring { 0% { box-shadow: 0 0 0 0 rgba(0, 108, 206, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(0, 108, 206, 0); } }
@keyframes nudge-move { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(-6px); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .nudge, .nudge__arrow { animation: none; } }

/* Perfil: seções extras recolhidas no fim do formulário (ex.: Teaching, só docentes) */
.profile-more { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.profile-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.profile-more > summary::-webkit-details-marker { display: none; }
.profile-more > summary::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 700; color: var(--blue-600); }
.profile-more[open] > summary::before { content: "\2212"; }
.profile-more__title { font-weight: 700; color: var(--ink); }
.profile-more__hint { color: var(--muted); font-size: var(--fs-sm); }
.profile-more[open] > summary { border-bottom: 1px solid var(--line); }
.profile-more > :not(summary) { margin-left: 18px; margin-right: 18px; }
.profile-more > small:last-child { display: block; margin-bottom: 16px; }

/* Página inicial da área de membros: lista direta (esquerda) + caixa "You" (direita) */
.kb--new .kb-main--overview { max-width: 1120px; }
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; margin-top: 28px; }
.ov-sec { margin: 0 0 32px; }
.ov-sec__title { font-size: var(--fs-lg); color: var(--ink); margin: 0 0 2px; }
.ov-sec__title a { color: inherit; text-decoration: none; }
.ov-sec__title a:hover { text-decoration: underline; }
.ov-sec__desc { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 10px; }
.ov-sec__desc:empty { display: none; }
.ov-empty { color: var(--muted-2); font-style: italic; }
.ov-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ov-rows li { border-bottom: 1px solid var(--line); }
.ov-rows a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 6px; color: var(--text); text-decoration: none; }
.ov-rows a:hover { background: var(--surface); }
.ov-rows__title { font-weight: 600; min-width: 0; }
.ov-rows__date { color: var(--muted-2); font-size: var(--fs-sm); white-space: nowrap; }
.ov-cat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 4px; }
.ov-cat__name { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-2xs); color: var(--muted-2); font-weight: 400; margin: 0; }
.ov-cat__n { font-size: var(--fs-xs); color: var(--muted-2); }
.ov-cat__all { font-size: var(--fs-sm); color: var(--link); white-space: nowrap; }
.ov-you { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 8px; }
.ov-you__title { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .09em; font-size: var(--fs-2xs); color: var(--muted-2); font-weight: 400; margin: 0 0 6px; }
.ov-you ul { list-style: none; margin: 0; padding: 0; }
.ov-you li + li { border-top: 1px solid var(--line); }
.ov-you a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-md); }
.ov-you a:hover span:first-child { text-decoration: underline; }
.ov-you__side { color: var(--muted-2); font-weight: 400; font-size: var(--fs-sm); }
.ov-you__ok { color: #15803d; }
.ov-you__badge { padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
@media (max-width: 1000px) {
  .ov { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ov-you { position: static; order: -1; }
}

/* ---- edição rápida dos coordenadores (members/quick_edit.py) ---- */
.callout--warn { background: #fffbeb; border-left-color: #d97706; color: #78350f; }
.quick-form .lidia-pp__search { width: 100%; }
.quick-form select[multiple][data-person-picker] { min-height: 8em; }
.quick-doi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: -4px; }
.quick-doi [data-doi-status].is-error { color: #b91c1c; }
.quick-doi [data-doi-status].is-ok { color: #15803d; }
.quick-funding { border-top: 1px dashed var(--gray-200); padding-top: 10px; margin-top: 6px; }
.quick-funding:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.quick-cms { margin-left: 14px; font-size: .9rem; }
.mytexts__actions .quick-cms-link { color: var(--gray-500, #6b7280); font-size: .85em; }
.myproj-bar__cms { font-size: .85rem; color: var(--gray-500, #6b7280); white-space: nowrap; }

/* ---- Groups & sections (members/groups.py) ---- */
.gs { margin-bottom: 28px; }
.gs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gs__head .kb-h2 { flex: 1; }
.gs-list { list-style: none; margin: 0; padding: 0; }
.gs-item { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.gs-item__main { min-width: 0; }
.gs-item__main p { margin: 2px 0; }
.gs-item__title { font-weight: 600; }
.gs-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 !important; }
.gs-chip { padding: 2px 10px; border-radius: 999px; background: var(--gray-100, #f3f4f6); font-size: .85rem; }
.gs-vis { color: var(--gray-500, #6b7280); }
.gs-vis--on { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 8px; font-size: .85rem; }
.gs-sec { margin-bottom: 18px; }
.gs-cats { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: .92rem; }
.gs-cats th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--gray-500, #6b7280); padding: 4px 8px; border-bottom: 1px solid var(--gray-200); }
.gs-cats td { padding: 6px 8px; border-bottom: 1px solid var(--gray-100, #f3f4f6); }
.gs-cats__act { text-align: right; }
.quick-delete { margin-top: 18px; }
div.gs-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.gs-more > summary { list-style: none; cursor: pointer; padding: 2px 10px; border-radius: 999px; border: 1px dashed var(--gray-300, #d1d5db); font-size: .85rem; color: var(--gray-600, #4b5563); }
.gs-more > summary::-webkit-details-marker { display: none; }
.gs-more[open] { flex-basis: 100%; }
.gs-more[open] > summary { display: inline-block; margin-bottom: 6px; }
.kb-open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 18px; }

/* Sugestões ao digitar (members.js → input[data-suggest]), ex.: Research interests no Meu perfil */
.suggest { position: relative; }
.suggest > input { width: 100%; }
.suggest__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 4px 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); max-height: 260px; overflow-y: auto; }
.suggest__list li { padding: 6px 12px; font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.suggest__list li:hover, .suggest__list li.is-active { background: var(--surface); color: var(--ink); }

/* Members → Announcements (members/announce.py) */
.announce-review { margin: 12px 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.announce-review__to { margin: 0 0 6px; }
.announce-review__names { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--text-2); }
.announce-review__names summary { cursor: pointer; color: var(--link); }
.announce-review__subject { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--surface-2); }
.announce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.announce-h2 { margin: 36px 0 10px; font-size: var(--fs-lg); }
.announce-history { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.announce-history th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.announce-history td { vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--surface-2); }
.announce-history summary { cursor: pointer; }
.announce-history__msg { margin-top: 6px; padding: 8px 10px; background: var(--surface); border-radius: 6px; color: var(--text-2); }
