/*
Theme Name: Melchior Lab
Theme URI: https://melchiorlab.example
Author: Uxer Design
Description: Tema customizado do Melchior Lab (Florida State University) — reproduz fielmente o site original com edição fácil via WordPress. Bilíngue EN/PT. Cores Garnet & Gold da FSU, tipografia Cormorant Garamond + DM Sans.
Version: 1.6.7
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: melchior
*/

/* ==========================================================================
   Tokens (espelham theme.json — disponíveis também fora dos blocos)
   ========================================================================== */
:root {
  --garnet: #782F40;
  --garnet-dark: #5a2130;
  --garnet-light: #9a3d52;
  --gold: #CEB888;
  --gold-light: #e0d4a8;
  --gold-pale: #f5f0e4;
  --ink: #1a1a2e;
  --slate: #4a4a6a;
  --muted: #8080a0;
  --border: #e0dde8;
  --white: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f2f8;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fafafa;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}
a { color: var(--garnet); }
.wp-site-blocks { overflow-x: clip; }

/* Larguras utilitárias */
.mlx-wrap { max-width: 1100px; margin-inline: auto; padding-inline: 28px; }

/* ==========================================================================
   Cabeçalho / navegação
   ========================================================================== */
/* Wrapper do template-part não pode confinar o sticky do header */
header.wp-block-template-part { display: contents; }

.mlx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.mlx-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 20px rgba(26, 26, 46, .07);
}
.mlx-logo-main {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px; color: var(--garnet);
  line-height: 1.1; letter-spacing: .02em; text-decoration: none;
}
.mlx-logo-sub {
  font-size: 9.5px; font-weight: 500; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}
.mlx-header .wp-block-navigation {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
}
.mlx-header .wp-block-navigation-item__content {
  color: var(--slate); padding: 5px 9px; border-radius: 4px;
  letter-spacing: .02em; text-decoration: none; transition: all .2s;
}
.mlx-header .wp-block-navigation-item__content:hover,
.mlx-header .current-menu-item .wp-block-navigation-item__content {
  color: var(--garnet); background: var(--surface-2);
}

/* Menu principal (bloco dinâmico) */
.mlx-mainnav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mlx-mainnav li { margin: 0; }
.mlx-nav-link {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--slate);
  text-decoration: none; padding: 5px 9px; border-radius: 4px; letter-spacing: .02em;
  white-space: nowrap; transition: color .2s ease;
}
.mlx-nav-link:hover { color: var(--garnet); }
.mlx-nav-link.is-active { color: var(--garnet); }

/* Underline animado em gradiente — só no header */
.mlx-header .mlx-nav-link { position: relative; }
.mlx-header .mlx-nav-link::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 1px; height: 2px;
  background: linear-gradient(90deg, var(--garnet), var(--gold));
  border-radius: 2px; transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.mlx-header .mlx-nav-link:hover::after,
.mlx-header .mlx-nav-link.is-active::after { transform: scaleX(1); }

/* Menu principal reaproveitado no rodapé (vertical, claro sobre fundo escuro) */
.mlx-footer .mlx-mainnav ul { flex-direction: column; align-items: flex-start; gap: 10px; }
.mlx-footer .mlx-nav-link { color: rgba(255, 255, 255, .75); padding: 0; font-size: 13px; background: none; }
.mlx-footer .mlx-nav-link:hover,
.mlx-footer .mlx-nav-link.is-active { color: var(--gold-light); background: none; }

/* Seletor de idioma (Polylang) */
.mlx-lang-switcher ul { display: flex; gap: 3px; list-style: none; margin: 0; padding: 3px 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 24px; }
.mlx-lang-switcher li { margin: 0; }
.mlx-lang-switcher a {
  display: flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: all .2s; letter-spacing: .04em;
}
.mlx-lang-switcher .current-lang a,
.mlx-lang-switcher a:hover { background: var(--white); color: var(--garnet); }

/* ==========================================================================
   Botões
   ========================================================================== */
.mlx-btn,
.wp-block-button.is-style-mlx-primary .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--garnet); color: var(--white);
  padding: 11px 22px; border-radius: 4px; font-weight: 600; font-size: 13px;
  font-family: var(--font-body); text-decoration: none; border: none;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.mlx-btn:hover,
.wp-block-button.is-style-mlx-primary .wp-block-button__link:hover {
  background: var(--garnet-dark); color: var(--white);
}
.mlx-btn-outline,
.wp-block-button.is-style-mlx-outline .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--garnet);
  padding: 10px 21px; border-radius: 4px; font-weight: 600; font-size: 13px;
  font-family: var(--font-body); text-decoration: none;
  border: 1px solid var(--garnet); cursor: pointer; transition: all .2s;
}
.mlx-btn-outline:hover,
.wp-block-button.is-style-mlx-outline .wp-block-button__link:hover {
  background: rgba(120, 47, 64, .08);
  color: var(--garnet-dark);
  border-color: var(--garnet-dark);
  box-shadow: 0 6px 16px rgba(120, 47, 64, .12);
}
.wp-block-button.is-style-mlx-white .wp-block-button__link {
  background: var(--white); color: var(--garnet); font-weight: 600; font-size: 13px;
  padding: 9px 20px; border-radius: 4px;
}

/* ==========================================================================
   Eyebrow / subtítulo de seção
   ========================================================================== */
.mlx-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--garnet);
  display: flex; align-items: center; gap: 10px;
}
.mlx-eyebrow::after { content: ""; height: 1px; width: 40px; background: var(--gold); }
.mlx-section-subtitle {
  color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: .08em;
  text-transform: uppercase; display: flex; align-items: center; gap: 10px;
}
.mlx-section-subtitle::after { content: ""; flex: 1; max-width: 48px; height: 1px; background: var(--gold); }

/* ==========================================================================
   Hero
   ========================================================================== */
.mlx-hero-title { font-family: var(--font-display); font-weight: 500; line-height: 1.05;
  font-size: clamp(44px, 6vw, 68px); color: var(--ink); }
.mlx-hero-title em { color: var(--garnet); font-style: normal; }
.mlx-hero-desc { font-size: 15.5px; color: var(--slate); line-height: 1.82; max-width: 440px; }

/* Faixa de estatísticas */
.mlx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; }
.mlx-stat { background: var(--white); padding: 18px 16px; text-align: center; }
.mlx-stat-num { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--garnet); line-height: 1; }
.mlx-stat-label { font-size: 10.5px; color: var(--muted); margin-top: 4px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; }

/* ==========================================================================
   Faixa de citação (fundo escuro)
   ========================================================================== */
.mlx-quote-strip { background: var(--ink); color: var(--white); text-align: center;
  padding: 64px 24px; }
.mlx-quote-strip blockquote { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px);
  font-style: italic; line-height: 1.5; max-width: 820px; margin: 0 auto; border: 0; }
.mlx-quote-strip cite { display: block; margin-top: 15px; font-size: 12px; font-style: normal;
  color: var(--gold); letter-spacing: .06em; font-family: var(--font-body); font-weight: 500; }

/* ==========================================================================
   Cards de pesquisa
   ========================================================================== */
.mlx-research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mlx-research-card { position: relative; isolation: isolate;
  border: 1px solid var(--border); border-radius: 8px; padding: 26px 22px;
  background: var(--white); }
/* Anel de gradiente garnet→gold (sutil em repouso, intenso no hover) */
.mlx-research-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--garnet) 0%, var(--gold) 42%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .32s ease; pointer-events: none; z-index: 1;
}
.mlx-research-card:hover::before { opacity: 1; }
.mlx-research-card .mlx-card-icon { font-size: 26px; margin-bottom: 14px;
  display: inline-block; transform-origin: center;
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1); }
.mlx-research-card:hover .mlx-card-icon { transform: scale(1.14) rotate(-4deg); }
.mlx-research-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500;
  color: var(--ink); margin-bottom: 10px; }
.mlx-research-card p { font-size: 13.5px; color: var(--slate); line-height: 1.7; margin: 0; }

/* ==========================================================================
   Cards de área (Research & Philosophy) — faixa colorida no topo
   ========================================================================== */
.mlx-area-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 22px; margin-bottom: 48px; }
/* subgrid: a faixa colorida mais alta (título de 2 linhas) define a altura de ambas */
.mlx-area-card { display: grid; grid-row: span 2; grid-template-rows: subgrid;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); }
.mlx-area-header { display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, var(--garnet-dark), var(--garnet)); padding: 24px 26px; }
.mlx-area-header.is-gold { background: linear-gradient(135deg, #8a6a20, #b38a30); }
.mlx-area-header h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400;
  color: var(--white); line-height: 1.25; margin: 0; }
.mlx-area-header p { color: rgba(255, 255, 255, .7); font-size: 12.5px; margin: 4px 0 0; }
.mlx-area-body { padding: 24px 26px; background: var(--white); }
.mlx-area-body p { font-size: 14px; color: var(--slate); line-height: 1.85; margin: 0; }

/* Título de seção garnet (ex.: "Philosophy of Science") */
.mlx-section-title { font-family: var(--font-display); font-size: 33px; font-weight: 500;
  color: var(--garnet); margin-bottom: 8px; }

/* ==========================================================================
   Notícias (blog / Latest News)
   ========================================================================== */
.mlx-news-list { border-top: 1px solid var(--border); }
.mlx-news-item { display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--border); align-items: start; }
.mlx-news-date { font-family: var(--font-mono); font-size: 11px; color: var(--garnet);
  font-weight: 500; padding-top: 3px; }
.mlx-news-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 5px; }
.mlx-news-title em { font-style: italic; }
.mlx-news-desc { font-size: 13.5px; color: var(--slate); line-height: 1.65; margin: 0; }
.mlx-tag { display: inline-block; margin-left: 8px; background: var(--gold-pale);
  border: 1px solid var(--gold-light); border-radius: 4px; padding: 1px 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--garnet); vertical-align: middle; }

/* ==========================================================================
   Banner "junte-se ao lab"
   ========================================================================== */
.mlx-joining-banner { background: linear-gradient(90deg, var(--garnet), var(--garnet-light));
  border-radius: 8px; padding: 28px 30px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--white); }
.mlx-joining-banner h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--white); margin: 0 0 4px; }
.mlx-joining-banner p { font-size: 13.5px; color: rgba(255, 255, 255, .85); margin: 0; }

/* ==========================================================================
   Equipe
   ========================================================================== */
.mlx-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mlx-team-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: all .25s; }
.mlx-team-card:hover { border-color: var(--garnet); box-shadow: 0 6px 24px rgba(120, 47, 64, .1); transform: translateY(-2px); }
.mlx-team-avatar { background: linear-gradient(135deg, var(--garnet), var(--garnet-light));
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 38px; font-weight: 300; color: rgba(255, 255, 255, .9); }
.mlx-team-photo { height: 120px; overflow: hidden; }
.mlx-team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.mlx-team-body { padding: 18px 18px 20px; }
/* Seção "Lab Members" (bloco dinâmico) — some quando não há membros */
.mlx-lab-members { margin-bottom: 40px; }
.mlx-team-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.mlx-team-role { font-size: 11px; color: var(--garnet); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; margin: 4px 0 8px; }
.mlx-team-desc { font-size: 13px; color: var(--slate); line-height: 1.65; }

/* Intro da página de equipe + caixa de vagas (openings) */
/* bloco ocupa a largura de conteúdo (alinha à esquerda com os headings); só o texto limita a 680px */
.mlx-team-intro.wp-block-group { margin-bottom: 40px; }
.mlx-team-intro p { max-width: 680px; font-size: 15px; color: var(--slate); line-height: 1.85; margin-bottom: 11px; }
/* Título de seção da equipe: ink + linha cinza que se estende à direita (igual ao original) */
.mlx-team-section-title { font-family: var(--font-display); font-size: 25px; font-weight: 500;
  color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 13px; }
.mlx-team-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* Tags do PI */
.mlx-team-tags { margin-top: 8px; }
.mlx-team-tag { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 8px; font-size: 11px; color: var(--muted); margin: 0; }
.mlx-openings { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 32px; margin-bottom: 40px; }
.mlx-openings p { font-size: 15px; color: var(--slate); line-height: 1.85; margin-bottom: 14px; }
.mlx-openings p:last-child { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* ==========================================================================
   Cabeçalho de página interna (fundo escuro)
   ========================================================================== */
/* Conteúdo cola na nav (remove o blockGap do FSE entre header e main) */
.wp-site-blocks > main { margin-block-start: 0; }

.mlx-page-header {
  background: linear-gradient(135deg, var(--garnet-dark) 0%, var(--garnet) 60%, var(--garnet-light) 100%);
  color: var(--white); padding: 48px 24px 44px; position: relative; overflow: hidden;
}
.mlx-page-header .mlx-breadcrumb { font-size: 11px; color: var(--gold-light);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; font-weight: 500; }
.mlx-page-header h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px);
  font-weight: 500; color: var(--white); line-height: 1.1; margin-bottom: 8px; }
.mlx-page-subtitle { color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 300; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.mlx-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 56px 24px 30px; }
.mlx-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.mlx-footer a:hover { color: var(--gold-light); }
.mlx-footer-title { font-family: var(--font-display); font-size: 20px; color: var(--white); font-weight: 600; }
.mlx-footer-sub { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mlx-footer-heading { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600; margin-bottom: 14px; }
.mlx-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px;
  font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Página de contato — layout + formulário (Web3Forms)
   ========================================================================== */
.mlx-contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.mlx-contact-aside .mlx-eyebrow { margin-bottom: 12px; }
.mlx-contact-lead { font-size: 16px; line-height: 1.65; color: var(--slate); margin-bottom: 28px; }
.mlx-contact-detail { margin-bottom: 20px; }
.mlx-contact-detail .mlx-contact-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.mlx-contact-detail a { color: var(--garnet); text-decoration: none; font-weight: 500; }
.mlx-contact-detail a:hover { color: var(--garnet-dark); text-decoration: underline; }
.mlx-contact-detail p { font-size: 14px; line-height: 1.7; color: var(--slate); }

.mlx-form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px; box-shadow: 0 6px 28px rgba(26, 26, 46, .05); }
.mlx-field { display: grid; gap: 7px; }
.mlx-field label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); font-weight: 600; }
.mlx-field input, .mlx-field textarea { font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px;
  width: 100%; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.mlx-field input::placeholder, .mlx-field textarea::placeholder { color: var(--muted); }
.mlx-field input:focus, .mlx-field textarea:focus { outline: none; border-color: var(--garnet);
  box-shadow: 0 0 0 3px rgba(120, 47, 64, .1); }
.mlx-field textarea { resize: vertical; min-height: 130px; }
.mlx-form .mlx-btn { justify-content: center; width: 100%; padding: 14px 22px; font-size: 14px; }
.mlx-form .mlx-btn:disabled { opacity: .6; cursor: default; }
.mlx-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.mlx-form-feedback { font-size: 14px; line-height: 1.6; padding: 12px 16px; border-radius: 6px; margin: 0; display: none; }
.mlx-form-feedback.is-visible { display: block; }
.mlx-form-feedback.is-success { background: var(--gold-pale); color: var(--garnet-dark); border: 1px solid var(--gold); }
.mlx-form-feedback.is-error { background: rgba(120, 47, 64, .06); color: var(--garnet); border: 1px solid var(--garnet-light); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .mlx-research-grid, .mlx-team-grid, .mlx-area-grid { grid-template-columns: 1fr; }
  .mlx-stats { grid-template-columns: repeat(3, 1fr); }
  .mlx-contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .mlx-news-item { grid-template-columns: 1fr; gap: 4px; }
  .mlx-joining-banner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   PÁGINAS INTERNAS — componentes
   ========================================================================== */

/* Layout de duas colunas — barra lateral à esquerda, conteúdo à direita (como no prod) */
.mlx-two-col { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }

/* Cartão de perfil (barra lateral do Sobre) */
.mlx-profile-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.mlx-profile-card img { width: 100%; display: block; }
.mlx-profile-photo { height: 240px; overflow: hidden; margin: 0; }
.mlx-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.mlx-profile-body { padding: 18px; }
.mlx-profile-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25; margin-bottom: 3px; }
.mlx-profile-title { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.mlx-profile-detail { font-size: 12px; color: var(--slate); display: flex; gap: 7px; align-items: flex-start; margin-bottom: 6px; }

/* Lista de links da barra lateral (ORCID, SmithLab, CV, Contato) */
.mlx-sidebar-links { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.mlx-sidebar-link { display: flex; align-items: center; gap: 8px; padding: 10px 15px;
  font-size: 12.5px; font-weight: 500; color: var(--slate); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: all .2s; cursor: pointer; }
.mlx-sidebar-link:last-child { border-bottom: none; }
.mlx-sidebar-link:hover { background: var(--gold-pale); color: var(--garnet); }

/* Chips de habilidades / competências (grade 2 colunas, como no prod) */
.mlx-skill-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.mlx-skill-chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 9px 13px; font-size: 12.5px; color: var(--slate); }

/* Títulos e texto de seção do Sobre */
.mlx-about-heading { font-family: var(--font-display); font-size: 25px; font-weight: 500; color: var(--garnet); margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mlx-about-content p { font-size: 15px; color: var(--slate); line-height: 1.85; margin-bottom: 13px; }

/* Timeline (educação / experiência) */
.mlx-timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mlx-timeline-year { font-family: var(--font-mono); font-size: 11px; color: var(--garnet); font-weight: 500; padding-top: 3px; }
.mlx-timeline-inst { font-size: 12px; color: var(--garnet); margin-bottom: 3px; font-weight: 500; }
.mlx-timeline-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.mlx-timeline-desc { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* Bloco de filosofia (citação em destaque dourado) */
.mlx-philosophy { background: var(--gold-pale); border: 1px solid var(--gold-light); border-radius: 10px; padding: 34px 40px; margin-bottom: 22px; }
.mlx-philosophy blockquote { font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--ink); line-height: 1.6; border-left: 3px solid var(--gold); padding-left: 20px; margin: 0 0 13px; }

/* Cartão do Investigador Principal (PI) */
.mlx-pi-card { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 40px; background: var(--white); }
.mlx-pi-photo { overflow: hidden; }
.mlx-pi-photo figure, .mlx-pi-photo .wp-block-image { height: 100%; width: 100%; margin: 0; }
.mlx-pi-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.mlx-pi-body { padding: 26px 26px 26px 16px; }
.mlx-pi-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.mlx-pi-title { font-size: 12px; color: var(--garnet); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.mlx-pi-body p { font-size: 14px; color: var(--slate); line-height: 1.8; margin-bottom: 10px; }

/* Publicações */
.mlx-pub-item { display: grid; grid-template-columns: 36px 1fr 160px; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.mlx-pub-body { padding-right: 16px; }
.mlx-pub-num { font-family: var(--font-mono); font-size: 11px; color: var(--garnet); font-weight: 500; padding-top: 3px; }
.mlx-pub-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; line-height: 1.45; }
.mlx-pub-authors { font-size: 12px; color: var(--muted); margin-bottom: 3px; line-height: 1.5; }
.mlx-pub-journal { font-size: 12px; color: var(--slate); font-style: italic; margin-bottom: 8px; }
.mlx-pub-links { display: flex; gap: 7px; flex-wrap: wrap; }
.mlx-pub-link { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--garnet); text-decoration: none; padding: 3px 8px; border: 1px solid var(--garnet); border-radius: 3px; transition: all .2s; }
.mlx-pub-link:hover { background: var(--garnet); color: #fff; }
/* Coluna de imagem da publicação (capa / graphical abstract; placeholder "No Image" enquanto vazio) */
.mlx-pub-img-wrap { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; height: 130px; background: var(--surface); }
.mlx-pub-img-wrap figure, .mlx-pub-img-wrap .wp-block-image { height: 100%; width: 100%; margin: 0; }
.mlx-pub-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Agrupamento por ano */
.mlx-pub-year-group { margin-bottom: 38px; }
.mlx-pub-year { font-family: var(--font-display); font-size: 36px; font-weight: 300; color: var(--border); margin-bottom: 12px; line-height: 1; }
/* Filtros */
.mlx-pub-filters { display: flex; gap: 7px; margin-bottom: 30px; flex-wrap: wrap; }
.mlx-pub-filter { padding: 6px 13px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 12px;
  font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; background: transparent; font-family: var(--font-body); }
.mlx-pub-filter:hover { border-color: var(--garnet); color: var(--garnet); }
.mlx-pub-filter.is-active { background: var(--garnet); border-color: var(--garnet); color: var(--white); }
.mlx-pub-legend { font-size: 12.5px; color: var(--muted); font-style: italic; margin-bottom: 10px; }
.mlx-pub-footnote { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 18px 22px; margin-top: 8px; }
.mlx-pub-footnote p { font-size: 13px; color: var(--muted); font-style: italic; margin: 0; }
.mlx-pub-footnote a { color: var(--garnet); }
@media (max-width: 700px) {
  .mlx-pub-item { grid-template-columns: 32px 1fr; }
  .mlx-pub-img-wrap { grid-column: 2 / 3; height: 150px; }
}

/* Recursos */
.mlx-resources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mlx-resource-card { border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; transition: all .2s; }
.mlx-resource-card:hover { border-color: var(--garnet); box-shadow: 0 6px 20px rgba(120, 47, 64, .08); }
.mlx-resource-icon { width: 40px; height: 40px; background: var(--garnet); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; color: #fff; }
.mlx-resource-card.is-gold .mlx-resource-icon { background: #9a7830; }
.mlx-resource-icon svg { width: 22px; height: 22px; display: block; }
.mlx-resource-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.mlx-resource-desc { font-size: 12.5px; color: var(--slate); line-height: 1.65; margin-bottom: 8px; }
.mlx-resource-meta { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }

/* Cursos / ensino */
.mlx-courses-list { display: flex; flex-direction: column; gap: 16px; }
.mlx-course-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mlx-course-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; gap: 16px; flex-wrap: wrap; }
.mlx-course-code { font-family: var(--font-mono); font-size: 11px; color: var(--garnet); font-weight: 500; }
.mlx-course-title-text { font-size: 14.5px; font-weight: 600; color: var(--ink); flex: 1; }
.mlx-course-semester { font-size: 11.5px; color: var(--muted); }
.mlx-course-body { padding: 16px 22px 20px; border-top: 1px solid var(--border); }
.mlx-course-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mlx-course-topic { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; font-size: 11.5px; color: var(--slate); }
.mlx-teaching-philosophy { background: var(--ink); border-radius: 10px; padding: 38px 42px; margin-top: 40px; }
.mlx-teaching-philosophy h3 { font-family: var(--font-display); font-size: 27px; font-weight: 400; color: #fff; margin-bottom: 13px; }
.mlx-teaching-philosophy p { font-size: 14px; color: rgba(255, 255, 255, .75); line-height: 1.85; margin-bottom: 12px; }

@media (max-width: 900px) {
  .mlx-two-col { grid-template-columns: 1fr; }
  .mlx-resources-grid { grid-template-columns: 1fr; }
  .mlx-pi-card { grid-template-columns: 1fr; }
  .mlx-pi-photo { height: 240px; }
}

/* ==========================================================================
   ANIMAÇÕES
   (movimento só com JS ativo — classe .js-anim — e sem prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* ── Revelar ao rolar ── */
  .js-anim .mlx-research-card,
  .js-anim .mlx-area-card,
  .js-anim .mlx-news-item,
  .js-anim .mlx-pub-item,
  .js-anim .mlx-resource-card,
  .js-anim .mlx-course-card,
  .js-anim .mlx-pi-card,
  .js-anim .mlx-team-card,
  .js-anim .mlx-philosophy,
  .js-anim .mlx-joining-banner,
  .js-anim .mlx-about-heading,
  .js-anim .mlx-timeline-item,
  .js-anim .mlx-profile-card,
  .js-anim .mlx-skill-chips,
  .js-anim .mlx-teaching-philosophy,
  .js-anim .mlx-quote-strip .wp-block-quote,
  .js-anim main h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
  }
  .js-anim .is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* ── Research & Philosophy: reveal mais pronunciado + hover ──
     Reveal usa `transform` (compõe com o !important do .is-visible);
     hover usa a propriedade `translate` separada, então não conflitam. */
  .js-anim .mlx-area-card,
  .js-anim .mlx-philosophy {
    transform: translateY(46px);
    transition: opacity .78s cubic-bezier(.22, .61, .36, 1),
                transform .78s cubic-bezier(.22, .61, .36, 1),
                translate .32s cubic-bezier(.22, .61, .36, 1),
                box-shadow .32s ease,
                border-color .32s ease;
  }
  .mlx-area-card:hover { translate: 0 -4px; box-shadow: 0 16px 38px rgba(26, 26, 46, .13); }
  .mlx-area-header { transition: filter .32s ease; }
  .mlx-area-card:hover .mlx-area-header { filter: brightness(1.07) saturate(1.04); }
  .mlx-philosophy:hover { translate: 0 -3px; box-shadow: 0 12px 30px rgba(206, 184, 136, .28);
    border-color: var(--gold); }

  /* ── Entrada do hero (no carregamento, só na home) ── */
  .js-anim body.home .mlx-eyebrow,
  .js-anim body.home .mlx-hero-title,
  .js-anim body.home .mlx-hero-desc,
  .js-anim body.home .wp-block-buttons,
  .js-anim body.home .mlx-stats,
  .js-anim body.home .mlx-hero-image {
    opacity: 0;
    transform: translateY(26px);
    animation: mlx-rise .85s cubic-bezier(.22, .61, .36, 1) forwards;
  }
  .js-anim body.home .mlx-eyebrow    { animation-delay: .05s; }
  .js-anim body.home .mlx-hero-title { animation-delay: .16s; }
  .js-anim body.home .mlx-hero-desc  { animation-delay: .30s; }
  .js-anim body.home .wp-block-buttons { animation-delay: .42s; }
  .js-anim body.home .mlx-stats      { animation-delay: .52s; }
  .js-anim body.home .mlx-hero-image { animation-delay: .22s; }
  @keyframes mlx-rise { to { opacity: 1; transform: none; } }

  /* ── Conteúdo entra por trás das cortinas ── */
  .js-anim body { animation: mlx-page-in .6s .15s ease both; }
  @keyframes mlx-page-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ==========================================================================
   Cortina de transição de página — fade (curtains-fade)
   (markup injetado no wp_body_open; opacidade controlada por JS via WAAPI)
   ========================================================================== */
.mlx-curtains {
  display: none; position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; background: #fafafa; opacity: 0;
}
/* Com JS: cobre a tela já no primeiro paint e faz fade-out ao carregar. */
.js-anim .mlx-curtains { display: block; opacity: 1; will-change: opacity; }

/* Movimento reduzido → sem cortina. */
@media (prefers-reduced-motion: reduce) {
  .js-anim .mlx-curtains { display: none; }
}

/* ── Hovers refinados (independem de JS) ── */
.mlx-research-card, .mlx-team-card, .mlx-resource-card, .mlx-course-card, .mlx-pi-card {
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .28s ease, border-color .2s ease;
}
.mlx-research-card:hover, .mlx-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(120, 47, 64, .12);
}
.mlx-resource-card:hover, .mlx-course-card:hover {
  transform: translateY(-3px);
  border-color: var(--garnet);
  box-shadow: 0 10px 28px rgba(120, 47, 64, .10);
}
.mlx-pub-item { transition: background .2s ease; }
.mlx-pub-item:hover { background: var(--surface-2); }
.wp-block-button__link { transition: transform .2s ease, background-color .2s ease, box-shadow .25s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(120, 47, 64, .22); }
