/* ==========================================================================
   Guia do Universitário — Design system + protótipo (Pacote B)
   Paleta brand: azul petróleo #00577D (identidade atual do portal)
   Tipografia: Roboto Slab (títulos, toque editorial) + Inter (texto/UI)
   Layout: modelo "uma seção por tela" (taste-skill) — .wrap com margem única,
   splits no grid de 12 colunas, seções de 1 ou 2 telas.
   ========================================================================== */

:root {
  /* Marca */
  --brand: #00577d;
  --brand-hover: #0a6e9b;
  --brand-deep: #07384f;
  --brand-darker: #062a3c;
  --brand-tint: #e3f0f7;
  --brand-tint-2: #cfe6f2;

  /* Base */
  --bg: #f6fafc;
  --surface: #ffffff;
  --ink: #12232e;
  --muted: #3d5364;      /* texto secundário — 7.5:1 sobre o fundo */
  --faint: #5a7183;      /* legendas/rótulos pequenos — 5:1 */
  --line: #d9e6ee;
  --accent: #00577d;     /* alias usado pelos assets do moment */

  /* Ação e apoio */
  --action: #00577d;
  --action-ink: #ffffff;
  --wa: #0d7a6f;          /* WhatsApp — AA com texto branco */
  --wa-hover: #0b6a60;
  --gold: #f2a93b;
  --ring-light: #ffd479;  /* anel de foco sobre fundos escuros */
  --danger: #b3382e;
  --ok: #137a4c;

  /* Tints por jornada */
  --j-curso-bg: #d9ecf6;    --j-curso-ic: #00577d;
  --j-entrar-bg: #d9f0e4;   --j-entrar-ic: #0e6f4e;
  --j-vida-bg: #fbeed3;     --j-vida-ic: #8f6210;
  --j-carreira-bg: #fbe3dc; --j-carreira-ic: #a8442c;

  /* Tipografia */
  --font-display: "Roboto Slab", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --display-tracking-xl: -0.015em;
  --t-h1: clamp(1.75rem, 1.35rem + 2vw, 2.75rem);   /* 28 → 44px */
  --t-h2: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);      /* ~22 → 30px */
  --t-h3: 1.125rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  /* Espaço, raio, sombra */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(18, 35, 46, .05), 0 6px 20px rgba(0, 87, 125, .08);
  --shadow-pop: 0 8px 30px rgba(6, 42, 60, .18);

  /* Container único: margem 64-120px a 1440, 16-24 no celular */
  --wrap: 1296px;
  --nav-h: 65px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.18; margin: 0 0 var(--s-3); color: var(--ink); }
h1 { font-size: var(--t-h1); letter-spacing: var(--display-tracking-xl); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 var(--s-4); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

/* Foco visível — WCAG 2.2 AA */
:focus-visible { outline: 3px solid var(--brand-darker); outline-offset: 2px; border-radius: 4px; }
a:focus, button:focus, summary:focus { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible, .news-inner :focus-visible, .nav__mobile :focus-visible { outline-color: var(--ring-light); }
a, button, input, summary, [tabindex] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Skip link (primeiro filho do .wrap do header) */
.skip-link {
  position: absolute; left: 0; top: -80px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-s);
  transition: top .18s ease;
}
.skip-link:focus { top: calc(var(--nav-h) + 8px); text-decoration: none; }

/* Alvos de foco/âncora nunca ficam escondidos sob o header fixo */
a, button, input, select, textarea, summary, [id], [tabindex] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Container único — conteúdo toca as linhas, a margem é o gutter */
.wrap { width: min(var(--wrap), 100% - 2 * clamp(16px, 5vw, 72px)); margin-inline: auto; }
.container { width: min(var(--wrap), 100% - 2 * clamp(16px, 5vw, 72px)); margin-inline: auto; }

/* Grid de 12 colunas para splits (coluna da direita começa na linha k=5,6,7) */
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 899px) { .cols { display: block; } }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--t-small); }
.eyebrow {
  font-size: var(--t-label); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin: 0 0 var(--s-3);
}
.sr-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botões (um par: primário + secundário) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--r-m);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--action); color: var(--action-ink); box-shadow: 0 4px 14px rgba(0, 87, 125, .28); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--brand-hover); color: var(--brand-deep); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--brand-tint); }
.search-box__btn:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { position: relative; display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -.01em; min-height: 44px;
}
.logo:hover { text-decoration: none; }
.logo:hover .logo__mark { transform: rotate(-6deg); }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  transition: transform .2s ease;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__thin { color: var(--brand); font-weight: 400; }

.topnav { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.topnav__list { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 2px; }
.topnav__list > li { position: relative; }
.topnav__list a, .topnav__drop-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 10px 12px; border-radius: var(--r-s);
  color: var(--ink); font-weight: 500; font-size: .95rem;
  background: none; border: 0;
}
.topnav__list a:hover, .topnav__drop-toggle:hover { background: var(--brand-tint); color: var(--brand-deep); text-decoration: none; }
.topnav__list a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.topnav__drop-toggle svg { transition: transform .18s ease; }
.topnav__drop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.topnav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 330px; padding: var(--s-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-pop); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.topnav__item:hover .topnav__sub,
.topnav__sub.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.topnav__sub a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-s); min-height: 0; }
.topnav__sub a:hover { background: var(--brand-tint); }
.topnav__sub .topnav__sub-title { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.topnav__sub .topnav__sub-desc { font-size: .8rem; color: var(--faint); font-weight: 400; }
.topnav__sub .topnav__sub-all { margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; color: var(--brand); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-s); flex: none;
  background: none; border: 0; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--brand-tint); color: var(--brand-deep); }
.icon-btn svg { width: 22px; height: 22px; }

/* Menu mobile (painel fechado = fora da árvore visual) */
.nav__mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 150;
  background: var(--surface); overflow-y: auto;
  padding: var(--s-4) 20px var(--s-8);
  display: none;
}
.nav__mobile.is-open { display: block; animation: menuIn .2s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav__mobile ul { list-style: none; margin: 0; padding: 0; }
.nav__mobile a {
  display: flex; align-items: center; min-height: 52px; padding: 12px 8px;
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:hover { color: var(--brand); text-decoration: none; }
.nav__mobile .nav__m-sub { padding-left: var(--s-4); }
.nav__mobile .nav__m-sub a { font-size: 1rem; font-weight: 500; min-height: 48px; gap: 10px; }
.nav__mobile .nav__m-label {
  margin: var(--s-5) 0 var(--s-2); padding: 0 8px;
  font-size: var(--t-label); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
body.nav-open { overflow: hidden; }

/* ---------- Overlay de busca ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(6, 42, 60, .55);
  display: none;
}
.search-overlay.is-open { display: block; }
.search-overlay__panel {
  background: var(--surface); padding: var(--s-4) 20px var(--s-5);
  box-shadow: var(--shadow-pop);
}
.search-overlay__row { display: flex; gap: var(--s-3); align-items: flex-start; }
.search-overlay__row .search-box { flex: 1; }
.search-overlay__label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: var(--s-2); }

/* Caixa de busca */
.search-box { position: relative; }
.search-box__label { display: block; font-weight: 700; margin-bottom: var(--s-2); }
.search-box__form { display: flex; gap: 10px; align-items: center; }
.search-box__field {
  flex: 1; min-width: 0; display: flex; align-items: stretch;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-m);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.search-box__input {
  flex: 1; min-width: 0; border: 0; padding: 11px 16px; font-size: 1.05rem;
  background: transparent; color: var(--ink); min-height: 48px;
}
.search-box__input::placeholder { color: var(--faint); }
.search-box__input:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 0; }
.search-box__btn { flex: none; }
.search-box__btn:focus-visible { outline-color: var(--brand-darker); }
.search-box__hint { margin: var(--s-2) 0 0; font-size: var(--t-small); }
@media (max-width: 480px) {
  .search-box__form { flex-direction: column; }
  .search-box__btn { width: 100%; }
}

.search-box__sug {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-pop); overflow: hidden; display: none;
}
.search-box__sug.is-open { display: block; }
.search-box__group { padding: var(--s-3) var(--s-4) var(--s-2); font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.search-box__sug ul { list-style: none; margin: 0; padding: 0 0 var(--s-2); }
.search-box__sug a {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 10px var(--s-4); color: var(--ink); font-size: .95rem;
}
.search-box__sug a:hover { background: var(--brand-tint); text-decoration: none; }
.search-box__sug .tag-def {
  margin-left: auto; flex: none; font-size: .72rem; font-weight: 600;
  color: var(--brand); background: var(--brand-tint); border-radius: var(--r-pill); padding: 2px 8px;
}

/* ---------- Hero ---------- */
.hero {
  --h: 1;
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(242, 169, 59, .18), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(11, 110, 155, .5), transparent 55%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 60%, var(--brand-darker) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0,0,0,.8) 65%, rgba(0,0,0,.8) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-text { max-width: 640px; }
.hero .eyebrow { color: var(--ring-light); }
.hero h1 { color: #fff; margin-bottom: var(--s-4); }
.hero__sub { font-size: 1.1rem; color: #d6e9f2; margin-bottom: var(--s-6); }
.hero .search-box { max-width: 620px; }
.hero .search-box__label { color: #eaf4f9; }
.hero .search-box__field { border-color: transparent; box-shadow: var(--shadow-pop); }
.hero .search-box__hint { color: #bcd9e7; }
.hero__alt { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-4); color: #fff; font-weight: 600; }
.hero__alt:hover { color: var(--ring-light); }

/* Cartão decorativo do herói (fragmento de glossário) */
.hero-card {
  display: none; flex-direction: column; gap: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-l); padding: var(--s-5); backdrop-filter: blur(6px);
  color: #eaf4f9; pointer-events: none;
}

@media (min-width: 1180px) {
  .hero-card {
    display: flex; position: absolute; right: 0; top: 50%;
    transform: translateY(-46%); width: 380px;
  }
}
.hero-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ring-light); }
.hero-card__term { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.hero-card__def { font-size: .95rem; line-height: 1.55; color: #cfe4ef; margin: 0; }
.hero-card__row { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-card__chip { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .28); color: #eaf4f9; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-5);
  font-size: var(--t-small); font-weight: 600; color: #cfe6f2;
}
.hero__facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts svg { width: 15px; height: 15px; color: var(--ring-light); }

/* Entrada do hero (uma vez, no load) */
html.m-enter .hero[data-enter] .hero__rise {
  opacity: 0; transform: translateY(14px);
  animation: heroRise .7s cubic-bezier(.22, 1, .36, 1) forwards;
}
html.m-enter .hero[data-enter] .hero__rise:nth-child(1) { animation-delay: .05s; }
html.m-enter .hero[data-enter] .hero__rise:nth-child(2) { animation-delay: .14s; }
html.m-enter .hero[data-enter] .hero__rise:nth-child(3) { animation-delay: .23s; }
html.m-enter .hero[data-enter] .hero__rise:nth-child(4) { animation-delay: .32s; }
html.m-enter .hero[data-enter] .hero__rise:nth-child(5) { animation-delay: .4s; }
html.m-enter .hero[data-enter] .hero__rise:nth-child(6) { animation-delay: .48s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.m-enter .hero[data-enter] .hero__rise { opacity: 1; transform: none; animation: none; }
}

/* ---------- Seções: uma tela (ou duas) cada ---------- */
main > section {
  min-height: calc(var(--h, 1) * 100svh);
  display: flex; flex-direction: column;
}
@media (max-width: 899px) {
  main > section { min-height: calc(var(--hm, var(--h, 1)) * 100svh); }
}
main > section > .wrap {
  flex: 1; display: flex; flex-direction: column;
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
}
main > section.section--tint { background: var(--surface); }

.sec-head { max-width: 680px; }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.sec-head .eyebrow { color: var(--brand); }
.sec-head h2 { margin-bottom: var(--s-2); }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.sec-main { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-top: var(--s-6); }

/* ---------- Cards de jornada ---------- */
.journey-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.journey {
  display: flex; flex-direction: column;
  border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow-card);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.journey:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--brand-tint-2); text-decoration: none; }
.journey:focus, .journey:focus-visible { outline: 2px solid var(--action); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--action), 0 0 0 4px var(--brand-tint); }
.journey__cover {
  height: 150px; display: grid; place-items: center; position: relative; flex: none;
  border-radius: calc(var(--r-l) - 1px) calc(var(--r-l) - 1px) 0 0; overflow: hidden;
}
@media (min-width: 900px) { .journey__cover { height: 190px; } }
.journey__cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.1px, transparent 1.2px);
  background-size: 18px 18px; opacity: .45;
}
.journey__cover svg { width: 72px; height: 72px; position: relative; transition: transform .2s ease; }
.journey:hover .journey__cover svg { transform: scale(1.07); }
.journey--curso .journey__cover { background: linear-gradient(135deg, #1a7ba6, var(--brand-deep)); color: #dff0f8; }
.journey--entrar .journey__cover { background: linear-gradient(135deg, #13855c, #0a4a35); color: #dcf2e5; }
.journey--vida .journey__cover { background: linear-gradient(135deg, #c0810f, #8a5d0d); color: #fbeed3; }
.journey--carreira .journey__cover { background: linear-gradient(135deg, #b8512f, #7e2f19); color: #fbe3dc; }
.journey__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); flex: 1; }
.journey__body h3 { margin: 0; font-size: 1.2rem; }
.journey__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.journey__cta { margin-top: auto; padding-top: var(--s-4); font-weight: 700; font-size: .95rem; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; transition: gap .15s ease; }
.journey:hover .journey__cta { gap: 10px; }

/* ---------- Cards de post ---------- */
.posts-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.posts-list { display: grid; gap: 18px; grid-template-columns: 1fr; }

.post-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); text-decoration: none; }
.post-card__cover { aspect-ratio: 16 / 9; overflow: hidden; position: relative; flex: none; }
.post-card__cover .cover { width: 100%; height: 100%; transition: transform .35s ease; }
.post-card:hover .cover { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5); }
.post-card__body h2, .post-card__body h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; font-family: var(--font-display); }
.post-card:hover h3 { color: var(--brand); }
.post-card__meta { display: flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--faint); }
.post-card__excerpt { margin: 0; font-size: .95rem; color: var(--muted); }

.post-card--featured h3 { font-size: 1.2rem; }

.post-card--row { flex-direction: row; align-items: stretch; }
.post-card--row .post-card__cover { width: 150px; aspect-ratio: auto; }
@media (min-width: 900px) {
  .posts-list .post-card--row { min-height: 148px; }
  .post-card--featured .post-card__cover { aspect-ratio: 4/3; }
}
.post-card--row .post-card__body { padding: var(--s-3) var(--s-4); }
.post-card--row h2, .post-card--row h3 { font-size: 1rem; }

/* Capas geradas (placeholders de marca — o WP trará as imagens destacadas) */
.cover { display: grid; place-items: center; position: relative; color: rgba(255, 255, 255, .92); }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.1px, transparent 1.2px);
  background-size: 18px 18px; opacity: .5;
}
.cover svg { width: 44px; height: 44px; position: relative; }
.cover--curso { background: linear-gradient(135deg, #0a6e9b, var(--brand-deep)); }
.cover--entrar { background: linear-gradient(135deg, #0e6f4e, #074233); }
.cover--vida { background: linear-gradient(135deg, #c07f16, #8f6210); }
.cover--carreira { background: linear-gradient(135deg, #b34a30, #7c2f1d); }
.cover--gloss { background: linear-gradient(135deg, var(--brand), var(--brand-darker)); }
.cover--big svg { width: 64px; height: 64px; }

/* Pills de categoria (tag discreta, não é botão) */
.pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 11px; border-radius: var(--r-m);
  background: var(--brand-tint); color: var(--brand-deep);
}
.pill:hover { background: var(--brand-tint-2); text-decoration: none; }
a.pill { min-height: 44px; display: inline-flex; align-items: center; }
.pill--curso { background: var(--j-curso-bg); color: var(--j-curso-ic); }
.pill--entrar { background: var(--j-entrar-bg); color: var(--j-entrar-ic); }
.pill--vida { background: var(--j-vida-bg); color: var(--j-vida-ic); }
.pill--carreira { background: var(--j-carreira-bg); color: var(--j-carreira-ic); }
.pill--gloss { background: var(--brand-tint); color: var(--brand-deep); }

/* ---------- Glossário na home ---------- */
.chips { display: grid; grid-template-columns: 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips a { min-height: 44px; }

.az-bar { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.az-bar li { flex: none; }
.az-bar a { width: 48px; padding-inline: 0; }
@media (max-width: 899px) {
  .az-bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
  .az-bar li { min-width: 0; }
  .az-bar a { width: 100%; }
}
.glossary__label { font-weight: 700; font-size: var(--t-small); color: var(--faint); margin: 0 0 var(--s-3); text-transform: uppercase; letter-spacing: .08em; }
.glossary__col { display: flex; flex-direction: column; gap: var(--s-5); }

/* Card de destaque do glossário (fragmento de UI = o visual da seção) */
.def-card {
  height: 100%; min-height: 420px;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.def-card__top {
  flex: 1; min-height: 200px; display: grid; place-items: center; position: relative;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-darker) 100%);
}
.def-card__top::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
.def-card__top svg { width: 88px; height: 88px; color: #dff0f8; position: relative; }
.def-card__letter {
  position: absolute; top: 14px; left: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--ring-light); letter-spacing: .1em;
}
.def-card__body { padding: var(--s-5) var(--s-6); }
.def-card__body .pill { margin-bottom: var(--s-3); }
.def-card__body h3 { font-size: 1.35rem; margin-bottom: var(--s-2); }
.def-card__body p { color: var(--muted); font-size: 1rem; margin-bottom: var(--s-4); }
.def-card__body a { font-weight: 700; display: inline-flex; min-height: 40px; align-items: center; }

/* ---------- Statement (moment word-highlight) ---------- */
.statement .wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-6); }
.statement .eyebrow { color: var(--brand); margin-bottom: var(--s-4); }
.statement .mo-wh__text {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking-xl);
  font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.25; color: var(--ink); margin: 0; max-width: 1000px;
}
.statement .mo-wh__text strong { color: var(--brand); }
.statement__sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0; }
.statement__link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 1.05rem; }
.article-body .statement { min-height: 0; display: block; }
.article-body .statement .mo-wh__text { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }

/* ---------- Confiança ---------- */
.trust-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-card); overflow: hidden;
  display: flex; flex-direction: column;
}
.trust-card--photo .trust-card__photo {
  min-height: 300px; display: grid; place-items: center; position: relative;
  background: linear-gradient(140deg, var(--brand-deep), var(--brand-darker));
}
.trust-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.3px);
  background-size: 20px 20px;
}
.trust-card__photo .avatar { position: relative; width: 112px; height: 112px; font-size: 2.2rem; }
.trust-card__inner { padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); }
.trust-card__inner strong { font-size: 1.1rem; font-family: var(--font-display); }
.trust-card__inner .faint { font-size: var(--t-small); }
.trust-card__inner p { color: var(--muted); font-size: .98rem; margin: 0; }
.trust-card--method { padding: var(--s-6); justify-content: center; }
.trust-card--method h3 { font-size: 1.25rem; margin-bottom: var(--s-4); }
.trust-card--method ul { margin: 0; padding: 0; list-style: none; }
.trust-card--method ul li {
  position: relative; padding-left: 34px; margin-bottom: var(--s-5);
  font-size: 1rem; line-height: 1.55;
}
.trust-card--method ul li:last-child { margin-bottom: 0; }
.trust-card--method ul li svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--ok); }

.avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
}
.avatar--sm { width: 40px; height: 40px; font-size: .8rem; }

/* ---------- Newsletter (a "call" dentro do rodapé) ---------- */
.news-inner { color: #fff; }
@media (min-width: 900px) {
  .news-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
}
.news-inner h2 { color: #fff; margin-bottom: var(--s-4); }
.news-inner p { color: #d6e9f2; }
.news-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.news-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--s-4); color: #d6e9f2; font-size: .98rem; }
.news-list svg { flex: none; width: 20px; height: 20px; color: var(--ring-light); margin-top: 2px; }

.news-form {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-l); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.news-form__label { font-weight: 700; font-size: 1rem; }
.news-form__row { display: flex; flex-direction: column; gap: var(--s-2); }
.news-form__row .btn { height: 48px; min-height: 48px; align-self: center; width: 100%; }
.news-form input {
  min-height: 48px; padding: 11px 16px; border-radius: var(--r-m);
  border: 2px solid transparent; font-size: 1rem; width: 100%;
}
.news-form input:focus-visible { outline: 3px solid var(--ring-light); outline-offset: -3px; }
.news-form input[aria-invalid="true"] { border-color: #ff9b8a; }
.news-form__micro { font-size: var(--t-small); color: #bcd9e7; margin: 0; }
.news-form__msg { font-size: .95rem; font-weight: 600; margin: 0; min-height: 1.4em; }
.news-form__msg.is-error { color: #ffd0c7; }
.news-form__msg.is-ok { color: #c8f0d8; }
.news-form__wa { font-size: var(--t-small); color: #bcd9e7; margin: var(--s-2) 0 0; }
.news-form__wa a { color: #fff; text-decoration: underline; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--brand-darker); color: #c9dbe6;
  min-height: calc(var(--h, 1) * 100svh);
  display: flex; flex-direction: column;
}
@media (min-width: 900px) and (max-width: 1199px) {
  .site-footer { min-height: calc(2 * 100svh); }
}
@media (max-width: 899px) {
  .site-footer { min-height: calc(var(--hm, var(--h, 1)) * 100svh); }
}
.site-footer > .wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-7); padding-top: var(--s-7); padding-bottom: var(--s-7); }
.foot-body { display: flex; flex-direction: column; gap: var(--s-6); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-size: .9rem; letter-spacing: .07em; text-transform: uppercase; font-family: var(--font-text); font-weight: 700; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: #c9dbe6; font-size: .95rem; }
.site-footer ul a:hover { color: #fff; }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: .95rem; margin: var(--s-3) 0 var(--s-4); max-width: 320px; }
.footer-seal {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--ring-light);
  border: 1px solid rgba(255, 212, 121, .4); border-radius: var(--r-pill);
  padding: 6px 14px;
}
.footer-contact { margin-top: var(--s-4); font-size: .92rem; color: #c9dbe6; }
.footer-contact a { color: #c9dbe6; text-decoration: underline; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: var(--s-5); margin: 0;
  font-size: var(--t-small); color: #9db8c6;
}

/* ---------- Página de artigo (post / glossário) ---------- */
.page { padding-top: var(--nav-h); }
.article-wrap { padding-top: var(--s-6); padding-bottom: var(--s-8); }
.breadcrumb { font-size: var(--t-small); margin-bottom: var(--s-4); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.breadcrumb li + li::before { content: "›"; }
.breadcrumb a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .breadcrumb li:nth-last-child(-n + 2) { display: none; }
}

.article-head h1 { margin: var(--s-3) 0 var(--s-4); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); color: var(--faint); font-size: .92rem; }
.article-meta__who { display: flex; align-items: center; gap: 10px; }
.article-meta__who a { font-weight: 700; color: var(--ink); }
.article-meta__who a:hover { color: var(--brand); }
.article-meta__dates { display: flex; flex-wrap: wrap; gap: 4px 12px; }

.direct-answer {
  border-left: 4px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  padding: var(--s-4) var(--s-5);
  font-size: 1.08rem; font-weight: 500;
  margin: var(--s-5) 0;
}
.direct-answer p { margin: 0; }

.article-figure { margin: var(--s-5) 0 var(--s-7); }
.article-figure .cover { aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; }

.article-layout { display: grid; gap: var(--s-7); grid-template-columns: 1fr; padding-block: var(--s-6) var(--s-8); align-items: start; }
.article-body { max-width: 740px; }
.article-body h2 { margin: var(--s-7) 0 var(--s-4); scroll-margin-top: calc(var(--nav-h) + 16px); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: var(--s-4); }
.article-body a:not(.btn):not(.pill):not(.post-card) { text-decoration: underline; text-decoration-color: var(--brand-tint-2); text-underline-offset: 3px; }
.article-body a:not(.btn):not(.pill):not(.post-card):hover { text-decoration-color: var(--brand); }
.article-body ul, .article-body ol { padding-inline-start: 0; list-style-position: inside; }
.article-body ul li, .article-body ol li { margin-bottom: var(--s-2); }
.article-body a:focus { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }

.article-aside { align-self: start; display: none; }
.article-aside-inline { display: block; }
@media (min-width: 900px) {
  .article-aside { display: block; position: sticky; top: calc(var(--nav-h) + 24px); }
  .article-aside-inline { display: none; }
}
.aside-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: var(--s-5); box-shadow: var(--shadow-card);
}
.aside-box h2 { font-family: var(--font-text); font-size: .9rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: var(--s-2); }
.term-list { list-style: none; margin: 0; padding: 0; }
.term-list li { border-bottom: 1px solid var(--line); }
.term-list li:last-child { border-bottom: 0; }
.term-list a { display: block; padding: 12px 4px; min-height: 44px; }
.term-list a strong { display: block; color: var(--brand-deep); }
.term-list a:hover strong { color: var(--brand); }
.term-list a span { font-size: var(--t-small); color: var(--faint); }
.term-list a:hover { text-decoration: none; }

/* FAQ */
.faq { margin: var(--s-4) 0 var(--s-7); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); margin-bottom: var(--s-3); overflow: hidden; }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); min-height: 56px; text-align: left;
  background: none; border: 0; font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-item__q:hover { background: var(--brand-tint); }
.faq-item__q svg { flex: none; width: 20px; height: 20px; color: var(--brand); transition: transform .2s ease; }
.faq-item__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-item__a { padding: 0 var(--s-5); display: none; }
.faq-item__a.is-open { display: block; }
.faq-item__a p { padding-bottom: var(--s-4); margin: 0; color: var(--muted); }

/* Compartilhar */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: var(--s-7) 0 var(--s-5); }
.share__label { font-weight: 600; margin: 0; }
.share .copied { font-size: var(--t-small); color: var(--ok); font-weight: 700; margin: 0; }

/* Autor box */
.author-box {
  display: flex; gap: var(--s-5); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: var(--s-6); margin: var(--s-7) 0 0; box-shadow: var(--shadow-card);
}
.author-box .avatar { width: 80px; height: 80px; font-size: 1.6rem; }
.author-box h2 { font-family: var(--font-text); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: var(--s-1); }
.author-box strong { font-family: var(--font-display); font-size: 1.2rem; display: block; margin-bottom: var(--s-2); }
.author-box p { font-size: .95rem; color: var(--muted); margin-bottom: var(--s-3); }
.author-box .links { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: .92rem; font-weight: 600; }
.author-box .links a { display: inline-flex; min-height: 40px; align-items: center; }

.see-also { margin: var(--s-7) 0; }

/* Caixa de contexto do glossário */
.context-box {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s-4) var(--s-5); margin: 0 0 var(--s-6); font-size: .95rem;
}
.context-box div { display: flex; gap: 6px; align-items: baseline; }
.context-box dt { font-weight: 700; color: var(--faint); }
.context-box dd { margin: 0; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .journey-grid { grid-template-columns: 1fr; }
  .news-form__row { flex-direction: row; align-items: center; }
  .news-form__row .btn { width: auto; }
  .posts-list--grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .topnav__list { display: flex; }
  .topnav__toggle { display: none; }
  .nav__mobile { display: none !important; }
  .journey-grid { grid-template-columns: repeat(4, 1fr); }
  .posts-grid { grid-template-columns: repeat(12, 1fr); }
  .posts-grid .post-card--featured { grid-column: 1 / 7; }
  .posts-grid .posts-list { grid-column: 8 / 13; }
  .trust-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .trust-grid .trust-card--photo { grid-column: 1 / 6; }
  .trust-grid .trust-card--method { grid-column: 7 / 13; }
  .glossary-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .glossary-split .glossary__col { grid-column: 1 / 8; }
  .glossary-split .def-card { grid-column: 8 / 13; }
  .news-inner .news-text { grid-column: 1 / 7; }
  .news-inner .news-form { grid-column: 8 / 13; }
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1.2fr; }
  .article-layout { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .article-layout .article-body { grid-column: 1 / 8; }
  .article-layout .article-aside { grid-column: 8 / 13; }
  .see-also .posts-list { grid-template-columns: repeat(3, 1fr); }
  .see-also .post-card--row { flex-direction: column; }
  .see-also .post-card--row .post-card__cover { width: auto; aspect-ratio: 16/9; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .see-also .posts-list { grid-template-columns: 1fr; }
  .see-also .post-card--row { flex-direction: column; }
  .see-also .post-card--row .post-card__cover { width: auto; aspect-ratio: 16/9; }
  .trust-card--photo .trust-photo { min-height: 400px; }
  .trust-card { padding: var(--s-7); }
  .trust-card--method li { min-height: 108px; }
  .def-card { min-height: 700px; }
  .glossary__col { gap: var(--s-7); }
  .foot-body { gap: var(--s-8); }
  .site-footer > .wrap { gap: var(--s-8); padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .site-footer ul a { min-height: 46px; }
  .footer-grid { gap: var(--s-7); }
  .site-footer h3 { margin-bottom: var(--s-5); }
  .hero__sub { margin-bottom: var(--s-7); font-size: 1.15rem; }
  .hero__facts { margin-top: var(--s-6); }
  .hero__alt { margin-top: var(--s-5); min-height: 56px; }
  .news-list li { margin-bottom: var(--s-5); }
}
/* Telas de celular: mesmos reforços de preenchimento em doses menores */
@media (max-width: 599px) {
  .trust-card--photo .trust-photo { min-height: 340px; }
  .trust-card { padding: var(--s-6); }
  .trust-card--method li { min-height: 112px; }
  .trust-grid { gap: var(--s-6); }
  .def-card { min-height: 480px; }
  .foot-body { gap: var(--s-7); }
  .site-footer ul a { min-height: 48px; }
}

/* Telas estreitas: logo e ícones compactos */
@media (max-width: 460px) {
  .logo { font-size: 1rem; gap: 8px; }
  .logo__mark { width: 30px; height: 30px; }
  .icon-btn { width: 44px; height: 44px; }
  .hero__facts { display: none; }
  .hero__sub { margin-bottom: var(--s-5); }
}
@media (max-width: 899px) {
  .post-card--row .post-card__cover { width: 120px; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   EXTENSÕES DO SITE (Tarefa #7) — páginas internas: blog, categoria,
   hub do glossário, busca, sobre, contato e autor.
   ========================================================================== */

/* Seções de páginas internas não ocupam "uma tela" — são fluxo editorial */
main.page > section { min-height: 0; }

/* ---------- Hero interno (breadcrumb + H1 + lead) ---------- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero > .wrap { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.page-hero h1 { margin: 0 0 var(--s-4); }
.page-hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin-bottom: var(--s-5); }
.page-hero .breadcrumb { margin-bottom: var(--s-5); }
.page-hero--curso { background: linear-gradient(180deg, var(--j-curso-bg), var(--surface) 70%); }
.page-hero--entrar { background: linear-gradient(180deg, var(--j-entrar-bg), var(--surface) 70%); }
.page-hero--vida { background: linear-gradient(180deg, var(--j-vida-bg), var(--surface) 70%); }
.page-hero--carreira { background: linear-gradient(180deg, var(--j-carreira-bg), var(--surface) 70%); }

.page-body > .wrap { padding-top: var(--s-7); padding-bottom: var(--s-8); }
.page-body > .wrap > h2 { margin-bottom: var(--s-5); }

/* ---------- Chips empilhados em hero e filtros (coluna contida, borda esquerda alinhada) ---------- */
.page-hero .chips, .gloss-filters { max-width: 560px; }
.gloss-filters { margin-bottom: var(--s-5); }
.gloss-filters .btn { font-family: inherit; cursor: pointer; }
.btn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.is-off, .pagination__prev.is-off { opacity: .45; pointer-events: none; }

/* ---------- Listagens (blog / categoria / autor) ---------- */
.posts-cards { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: var(--s-7); }
@media (min-width: 640px) { .posts-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts-cards { grid-template-columns: repeat(3, 1fr); } }
.posts-grid--blog { margin-bottom: var(--s-7); }

.cat-explore { margin: 0 0 var(--s-3); font-weight: 700; font-size: var(--t-small); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.cat-gloss { margin-bottom: var(--s-7); }
.cat-gloss h2 { font-family: var(--font-text); font-size: .9rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* ---------- Paginação numerada ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s-6) 0 0; }
.pagination__page, .pagination__prev, .pagination__next {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); font-weight: 600;
}
.pagination__prev, .pagination__next { border: 0; background: none; color: var(--brand); }
.pagination__prev { padding-left: 0; }
.pagination__next { padding-right: 0; }
.pagination__page:hover, .pagination__next:hover { border-color: var(--brand-hover); text-decoration: none; color: var(--brand-deep); }
a.pagination__next { border: 1.5px solid var(--line); }
.pagination__page.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Hub do glossário ---------- */
.gloss-search { max-width: 560px; margin-bottom: var(--s-5); }
.gloss-filters { margin-bottom: 0; }
.gloss-az { margin-bottom: var(--s-7); }
.gloss-az .az-bar { gap: 5px; }
@media (min-width: 960px) { .gloss-az .az-bar a { width: 44px; min-width: 44px; } }
.az-group { margin-bottom: var(--s-7); scroll-margin-top: calc(var(--nav-h) + 16px); }
.az-group__letter {
  font-size: 1.6rem; color: var(--brand); border-bottom: 2px solid var(--line);
  padding-bottom: var(--s-2); margin-bottom: var(--s-4);
}
.term-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.term-row a {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--s-4) var(--s-5); min-height: 44px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.term-row a:hover { border-color: var(--brand-tint-2); box-shadow: var(--shadow-card); text-decoration: none; }
.term-row a strong { color: var(--brand-deep); font-family: var(--font-display); font-size: 1.05rem; }
.term-row a:hover strong { color: var(--brand); }
.term-row a span { color: var(--muted); font-size: .95rem; }
@media (min-width: 700px) { .term-rows { grid-template-columns: repeat(2, 1fr); } }
.gloss-empty { margin: var(--s-6) 0; font-size: 1.05rem; color: var(--muted); }
.gloss-note { margin-top: var(--s-6); font-size: var(--t-small); color: var(--faint); }

/* ---------- Busca (resultados) ---------- */
.results-title { font-size: 1.05rem; color: var(--muted); margin-bottom: var(--s-6); }
.results-group { margin-bottom: var(--s-8); }
.results-group > h2 { margin-bottom: var(--s-5); }
.empty-state { text-align: left; }
.empty-state h2 { margin-bottom: var(--s-3); }
.empty-state > p { color: var(--muted); margin-bottom: var(--s-6); }

/* ---------- Página de autor ---------- */
.author-card {
  display: flex; gap: var(--s-5); align-items: flex-start; max-width: 860px;
}
.author-card .avatar { width: 96px; height: 96px; font-size: 1.8rem; }
.author-card h1 { margin: 0 0 var(--s-3); }
.author-card .eyebrow { margin-bottom: var(--s-2); }
.author-card__bio { color: var(--muted); font-size: 1.02rem; margin-bottom: var(--s-3); }
.author-card__note { font-size: var(--t-small); margin: 0; }
@media (max-width: 640px) {
  .author-card { flex-direction: column; gap: var(--s-4); }
  .author-card .avatar { width: 76px; height: 76px; font-size: 1.4rem; }
}

/* ---------- Sobre ---------- */
.sobre-links { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.sobre-links li { margin-bottom: var(--s-2); }
.sobre-links a::after { content: " →"; color: var(--brand); font-weight: 700; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.contact-grid > * { min-width: 0; }
.contact-card > span:last-child { min-width: 0; }
.contact-card strong, .contact-card__hint { overflow-wrap: anywhere; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.contact-cards { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-card {
  display: flex; gap: var(--s-4); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: var(--s-5); color: var(--ink); box-shadow: var(--shadow-card);
  transition: border-color .15s ease, transform .15s ease;
}
.contact-card:hover { border-color: var(--brand-tint-2); transform: translateY(-2px); text-decoration: none; }
.contact-card__icon {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-m);
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.contact-card__value { display: block; font-weight: 700; color: var(--brand); margin: 2px 0; overflow-wrap: anywhere; }
.contact-card__hint { display: block; font-size: var(--t-small); color: var(--faint); }
.contact-note { color: var(--muted); font-size: .95rem; margin: 0; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: var(--s-6); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.contact-form h2 { font-size: 1.25rem; margin-bottom: 0; }
.contact-form .news-form__msg { color: var(--danger); }
.contact-form .news-form__msg.is-ok { color: var(--ok); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: .95rem; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink);
  min-height: 48px; padding: 11px 14px;
  border: 2px solid var(--line); border-radius: var(--r-m); background: var(--surface);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: 3px solid var(--brand-darker); outline-offset: 1px; border-color: var(--brand);
}
.form-field [aria-invalid="true"] { border-color: var(--danger); }
.author-card__note.faint { color: var(--muted); }

/* ==========================================================================
   AJUSTES WORDPRESS (child theme) — integração com Elementor/WP/admin bar
   ========================================================================== */

/* Elementor frames (Theme Builder) não devem adicionar espaço/gap em volta do markup */
.elementor-location-header, .elementor-location-footer { padding: 0; }
.elementor-widget-shortcode { margin: 0; }
.site-header { margin: 0; }

/* Paginação do WP (paginate_links usa .page-numbers) → visual do design system */
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); font-weight: 600;
}
.pagination .page-numbers.prev, .pagination .page-numbers.next { border: 0; background: none; color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--brand-hover); text-decoration: none; color: var(--brand-deep); }
.pagination .page-numbers.dots { border: 0; background: none; }

/* Hero interno: chips inline */
.page-hero .chips { max-width: none; }
.page-hero .chips li { display: inline-block; }

/* Breadcrumb Rank Math (caso esteja ativo em algum lugar) → herda nosso visual */
.rank-math-breadcrumb p { margin: 0; font-size: var(--t-small); color: var(--faint); }
.rank-math-breadcrumb a { color: var(--muted); }
.rank-math-breadcrumb .last { color: var(--ink); font-weight: 600; }

/* Conteúdo de posts/termos: imagens e elementos WP dentro do fluxo editorial */
.article-body img { border-radius: var(--r-m); height: auto; }
.article-body figure { margin: 0 0 var(--s-4); }
.article-body .wp-block-image figcaption, .article-body figcaption { font-size: var(--t-small); color: var(--faint); margin-top: var(--s-2); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-4); font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body blockquote { border-left: 4px solid var(--brand); margin: var(--s-4) 0; padding: var(--s-3) var(--s-5); background: var(--brand-tint); border-radius: 0 var(--r-m) var(--r-m) 0; }
.article-body blockquote p { margin: 0; }

/* Hub do glossário (template do plugin) respeita o header fixo */
.pagina_glossario { padding-top: var(--nav-h); }

/* Alvos de toque dentro de formulários WP */
.term-rows--grid { display: grid; gap: var(--s-3); }
@media (min-width: 700px) { .term-rows--grid { grid-template-columns: repeat(2, 1fr); } }
