/* =========================================================================
   GSEC · theme.css — composição de páginas e chrome do portal.
   Mobile-first. Construído sobre tokens + vocabulário do Design System.
   ========================================================================= */

/* ===================== MARCA / LOGO ===================== */
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.brand:hover { color: inherit; opacity: .9; }
.brand__logo { display: block; height: clamp(63px, 7.7vw, 87px); width: auto; max-width: 76vw; object-fit: contain; }
/* wordmark textual (legado / fallback) */
.brand__kicker { font-size: 8px; font-weight: 700; letter-spacing: 3px; color: var(--c-ink-3); text-transform: uppercase; }
.brand__mark { display: inline-block; background: var(--c-dark); color: #fff; font-weight: 900; font-size: 22px; letter-spacing: 1px; padding: 6px 11px; border-radius: 8px; }

/* ===================== HEADER ===================== */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--c-surface); border-top: 3px solid var(--c-accent); box-shadow: var(--shadow-sm); }
.site-header__bar { display: flex; align-items: center; gap: var(--sp-4); min-height: clamp(88px, 10vw, 112px); padding: 12px 0; }
.site-header__right { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
.site-header__actions { display: flex; align-items: center; gap: var(--sp-3); }

/* menu superior — itens institucionais (desktop) */
.topnav { display: none; }
.topnav__list { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.topnav__link { font-size: 12px; font-weight: 500; color: var(--c-ink-2); text-transform: uppercase; letter-spacing: .03em; }
.topnav__link:hover, .topnav__item.is-active .topnav__link { color: var(--c-accent); }
.topnav__item { position: relative; }
.topnav__item.has-dropdown > .topnav__link { display: inline-flex; align-items: center; gap: 4px; }
.topnav__item.has-dropdown > .topnav__link:after {
  content: ""; width: 0; height: 0; margin-top: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55;
}
.topnav__dropdown {
  /* top:100% sem margem: encostado no item, sem vão transparente que quebre
     o hover ao descer o mouse. O respiro visual vem do padding-top. */
  position: absolute; top: 100%; left: 0; margin: 0; min-width: 250px; background: #fff; color: #000;
  box-shadow: var(--shadow-pop); border-radius: var(--radius-sm); list-style: none; padding: 14px 0 6px; display: none; z-index: 20;
}
.topnav__item.has-dropdown:hover .topnav__dropdown, .topnav__item.has-dropdown:focus-within .topnav__dropdown { display: block; }
.topnav__dropdown a { display: block; padding: 10px 16px; color: #000; font-size: 13px; text-transform: none; letter-spacing: normal; }
.topnav__dropdown a:hover { background: rgba(0,0,0,.06); color: #000; }

/* botão hambúrguer (mobile/tablet) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 8px;
  background: #fff; cursor: pointer; color: var(--c-ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.search-toggle { width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.search-toggle svg { width: 18px; height: 18px; }

/* navegação horizontal (desktop) — barra escura com editorias */
.site-nav { display: none; background: var(--c-dark); }
.site-nav__list { display: flex; align-items: stretch; justify-content: center; gap: 0; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: flex; align-items: center; height: 46px; padding: 0 14px;
  color: #fff; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
}
.site-nav__link:hover { color: #fff; }
.site-nav__item:after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--c-accent); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.site-nav__item:hover:after, .site-nav__item.is-active:after { transform: scaleX(1); }
/* dropdown "Mais" */
.site-nav__more { position: relative; }
.site-nav__dropdown {
  position: absolute; top: 100%; right: 0; min-width: 220px; background: #fff; color: #000;
  box-shadow: var(--shadow-pop); list-style: none; margin: 0; padding: 6px 0; display: none; z-index: 10;
}
.site-nav__more:hover .site-nav__dropdown, .site-nav__more:focus-within .site-nav__dropdown { display: block; }
.site-nav__dropdown a { display: block; padding: 10px 18px; color: #000; font-size: 14px; }
.site-nav__dropdown a:hover { background: rgba(0,0,0,.06); color: #000; }

/* ===================== DRAWER (menu mobile) ===================== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,26,30,.55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: var(--z-drawer); }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: #fff; transform: translateX(100%); transition: transform .28s ease;
  z-index: calc(var(--z-drawer) + 1); display: flex; flex-direction: column; overflow-y: auto;
  -webkit-overflow-scrolling: touch; box-shadow: -8px 0 24px rgba(0,0,0,.2);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--c-line-2); border-top: 3px solid var(--c-accent); }
.drawer__title { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); }
.drawer__close { width: 44px; height: 44px; border: none; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--c-ink); }
.drawer__close svg { width: 24px; height: 24px; }
.drawer__search { padding: 16px; border-bottom: 1px solid var(--c-line-2); }
.drawer__search form { display: flex; }
.drawer__search input[type=search] { flex: 1; height: 44px; border: 1px solid var(--c-line); border-right: none; border-radius: 6px 0 0 6px; padding: 0 14px; font-size: 16px; }
.drawer__search button { width: 48px; border: none; background: var(--c-accent) url('../images/icon-search.svg') center/18px no-repeat; border-radius: 0 6px 6px 0; cursor: pointer; }
.drawer__nav { padding: 8px 0; }
.drawer__group { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-ink-3); font-weight: 700; padding: 16px 16px 6px; }
.drawer__link { display: flex; align-items: center; min-height: 48px; padding: 8px 16px; color: var(--c-ink); font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--c-line-2); }
.drawer__link:hover, .drawer__link.is-active { color: var(--c-accent); background: var(--c-accent-soft); }
body.no-scroll { overflow: hidden; }

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs { font-size: 13px; color: var(--c-ink-2); padding: 14px 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li:before { content: "/"; color: var(--c-ink-3); }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs [aria-current] { color: var(--c-ink); font-weight: 500; }

/* ===================== HOME ===================== */
.home-banner {
  display: block; margin-top: var(--sp-6); border-radius: var(--radius); overflow: hidden;
  background: var(--grad-hero); color: #fff; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.home-banner:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: #fff; }
.home-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1200px; min-height: 150px; margin: 0 auto; padding: 22px 28px;
}
.home-banner__text { margin: 0; font-size: 16px; line-height: 1.5; max-width: 780px; }
.home-banner__cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 18px; border: 2px solid #fff; border-radius: 999px; transition: background .2s, color .2s;
}
.home-banner:hover .home-banner__cta { background: #fff; color: var(--c-blue); }
.home-banner--image { line-height: 0; }
.home-banner__img { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; }
@media (max-width: 640px) {
  .home-banner__inner { flex-direction: column; align-items: flex-start; min-height: auto; }
}

.home-hero { padding-top: var(--sp-6); }
.section-band { padding: var(--sp-8) 0; }
.section-band + .section-band { border-top: none; }
.section-band--alt { background: var(--c-canvas-2); }
.home-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .home-grid { grid-template-columns: 1fr 361px; align-items: start; } }
.home-side .sidebar-news-block + .sidebar-news-block { margin-top: 20px; }

/* separador de seção da home — moderno (tique da editoria + hairline + link) */
.home-section-head { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.home-section-head__title { position: relative; margin: 0; padding-left: 16px; white-space: nowrap;
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.3px; color: var(--c-ink); line-height: 1.1; }
.home-section-head__title a { color: inherit; }
.home-section-head__title a:hover { color: var(--ed, var(--c-accent)); }
.home-section-head__title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 1.05em; border-radius: 3px; background: var(--ed, var(--c-accent)); }
.home-section-head__rule { flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, var(--c-line) 0%, var(--c-line-2) 55%, transparent 100%); }
.home-section-head__link { flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-2); }
.home-section-head__link span { transition: transform .2s; }
.home-section-head__link:hover { color: var(--ed, var(--c-accent)); }
.home-section-head__link:hover span { transform: translateX(3px); }
@media (max-width: 560px) {
  .home-section-head { gap: 12px; }
  .home-section-head__title { white-space: normal; }
  .home-section-head__rule { display: none; }
}

/* ===================== EDITORIA (category) ===================== */
.editoria-head { padding: var(--sp-6) 0; border-bottom: 3px solid var(--ed, var(--c-accent)); margin-bottom: var(--sp-6); }
.editoria-head__badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ed, var(--c-accent)); padding: 5px 12px; border-radius: var(--radius-xs); }
.editoria-head__title { font-size: clamp(26px, 4vw, 34px); margin: 12px 0 6px; }
.editoria-head__desc { color: var(--c-ink-2); max-width: 700px; }
.empty-state { padding: var(--sp-12) var(--sp-4); text-align: center; color: var(--c-ink-2); border: 1px dashed var(--c-line); border-radius: var(--radius); }

/* ===================== SEÇÃO-ÍNDICE (section-links.html.twig) ===================== */
.section-links-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .section-links-grid { grid-template-columns: 1fr 1fr; } }
.section-links-card { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px 22px; transition: box-shadow .2s, transform .2s; }
.section-links-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.section-links-card__title { font-size: 18px; margin: 0 0 8px; color: var(--c-ink); }
.section-links-card__desc { font-size: 14px; color: var(--c-ink-2); line-height: 1.55; margin: 0 0 14px; }
.section-links-card__cta { font-size: 13px; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: .03em; }

/* ===================== VÍDEOS (videos.html.twig) ===================== */
.channels-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.channel-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 22px; transition: box-shadow .2s, transform .2s; }
.channel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.channel-card__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #ff0000; display: inline-flex; align-items: center; justify-content: center; }
.channel-card__icon .icon { width: 22px; height: 22px; fill: #fff; }
.channel-card__body { display: flex; flex-direction: column; gap: 4px; }
.channel-card__title { font-size: 17px; font-weight: 700; color: var(--c-ink); }
.channel-card__desc { font-size: 14px; color: var(--c-ink-2); line-height: 1.55; margin-bottom: 6px; }
.channel-card__cta { font-size: 13px; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: .03em; }

/* ===================== CONTATO (contact.html.twig) ===================== */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.contact-side { display: flex; flex-direction: column; gap: 32px; }
.contact-block:target { scroll-margin-top: 140px; }

.contact-form form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; border: 1px solid var(--c-line); border-radius: 8px; padding: 12px 14px; font-size: 15px; font-family: var(--font); color: var(--c-ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.contact-form .buttons { margin-top: 4px; }
.contact-form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px;
  background: var(--c-accent); color: #fff; border: none; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.contact-form button[type=submit]:hover { background: var(--c-accent-2); }
.contact-form .form-messages { margin-bottom: 8px; }

.contact-social { display: flex; flex-direction: column; gap: 10px; }
.contact-social__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: var(--c-ink); font-weight: 600; font-size: 14px; }
.contact-social__link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.contact-social__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface-2); flex: none; }
.contact-social__icon .icon { width: 16px; height: 16px; }

.contact-location__name { font-weight: 700; color: var(--c-ink); margin: 0 0 8px; }
.contact-location__line { margin: 0 0 4px; color: var(--c-ink-2); font-size: 14px; line-height: 1.5; }
.contact-location__phone { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.contact-location__phone a { color: var(--c-accent); }
.contact-location__map { margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--c-line); }
.contact-location__map iframe { display: block; }

/* ===================== PAGINAÇÃO ===================== */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: var(--sp-8) 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 8px; font-size: 14px; font-weight: 500; }
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .active span { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pagination .disabled span { opacity: .4; }

/* ===================== ARTIGO (item) ===================== */
.article { padding: var(--sp-4) 0 var(--sp-12); }
.article__layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
.article__author-box { display: flex; align-items: center; gap: 16px; max-width: var(--reading); margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--c-line-2); }
.article__author-box img, .article__author-box .placeholder { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.article__author-box .placeholder { background: var(--grad-brand); }
.article__author-box__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-3); font-weight: 700; }
.article__author-box .n { font-weight: 700; color: var(--c-ink); }
.article__author-box .n:hover { color: var(--c-accent); }
.article__author-box .r { font-size: 13px; color: var(--c-ink-2); margin-top: 2px; }
@media (min-width: 1024px) {
  /* coluna de leitura centralizada; barra de compartilhar na margem esquerda */
  .article__layout { grid-template-columns: 1fr minmax(0, var(--reading)) 1fr; align-items: start; }
  .article__rail { grid-column: 1; justify-self: end; padding-right: 16px; position: sticky; top: 130px; }
  .article__main { grid-column: 2; min-width: 0; }
}
.article__header { max-width: var(--reading); margin: 0 auto; }
.article__title { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.12; letter-spacing: -.4px; margin: 22px 0 14px; }
.article__dek { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.5; color: var(--c-ink-2); margin: 0 0 18px; font-weight: 400; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--c-line-2); border-bottom: 1px solid var(--c-line-2); font-size: 14px; color: var(--c-ink-2); }
.article__meta a { font-weight: 500; color: var(--c-ink); }
.article__meta a:hover { color: var(--c-accent); }
.article__author-mini { display: flex; align-items: center; gap: 10px; }
.article__author-mini img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.article__hero { margin: 22px 0 8px; }
.article__hero .ratio { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.article__credit { font-size: 12px; color: var(--c-ink-3); margin-top: 6px; }

/* corpo da matéria — medida de leitura confortável */
.article__body { max-width: var(--reading); margin: 24px auto 0; font-size: var(--fs-body); line-height: var(--lh-body); color: #1a2227; }
.article__body > * { margin-bottom: 1.1em; }
.article__body p { margin-bottom: 1.1em; }
.article__body h2 { font-size: 26px; margin: 1.6em 0 .5em; letter-spacing: -.2px; }
.article__body h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.article__body a { color: var(--c-accent-2); text-decoration: underline; text-underline-offset: 2px; }
.article__body img { border-radius: var(--radius-sm); display: block; height: auto; }
.article__body figure { margin: 1.6em 0; }
.article__body figcaption { font-size: 13px; color: var(--c-ink-3); margin-top: 8px; text-align: center; }
.article__body blockquote {
  margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--c-accent);
  font-size: 22px; line-height: 1.4; color: var(--c-ink); font-weight: 500;
}
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li { margin-bottom: .4em; }
.article__body img, .article__body figure { max-width: 100%; }
@media (min-width: 1100px) {
  .article__body figure.full, .article__body img.full { width: calc(100% + 220px); max-width: none; margin-left: -110px; }
}

.article__tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--reading); margin: 28px auto 0; }
.article__footer { max-width: var(--reading); margin: 0 auto; }

/* trilho de compartilhamento (desktop sticky) */
.share-rail { position: sticky; top: 175px; display: flex; flex-direction: column; gap: 10px; }
.share-rail a, .share-bar a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--c-line); border-radius: 50%; color: var(--c-ink-2); }
.share-rail a:hover, .share-bar a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.share-rail svg, .share-bar svg { width: 18px; height: 18px; fill: currentColor; }
.share-bar { display: flex; gap: 10px; align-items: center; margin: 26px auto 0; max-width: var(--reading); }
.share-bar__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-3); margin-right: 4px; }
@media (min-width: 1024px) { .share-bar { display: none; } }
@media (max-width: 1023px) { .article__rail { display: none; } }

/* relacionados */
.related { max-width: var(--container); margin: var(--sp-12) auto 0; }
.related__title { margin-bottom: var(--sp-5); }

/* ===================== AUTORES ===================== */
.authors-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .authors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .authors-grid { grid-template-columns: repeat(3, 1fr); } }
.author-card { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.author-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.author-card img, .author-card .placeholder { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card__name { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.author-card__bio { font-size: 13px; color: var(--c-ink-2); margin-top: 4px; }

/* ---- Equipe / liderança: grid de cards + modal de biografia ---- */
.team-grid { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 8px 0 var(--sp-12); }
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 22px 26px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  transition: box-shadow .25s, transform .25s, border-color .25s; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.team-card__avatar { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: var(--c-surface-2);
  padding: 4px; box-shadow: 0 0 0 2px var(--c-line-2), 0 8px 20px -10px rgba(6,45,86,.4); }
.team-card:hover .team-card__avatar { box-shadow: 0 0 0 3px var(--c-accent), 0 10px 24px -8px rgba(13,122,35,.45); }
.team-card__avatar img, .team-card__avatar .avatar-ph { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-ph { background: var(--grad-brand); }
.team-card__name { font-size: 19px; font-weight: 700; color: var(--c-ink); margin: 18px 0 4px; line-height: 1.25; }
.team-card__role { color: var(--c-accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; min-height: 2.4em; display: flex; align-items: center; }
.team-card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 600 13px/1 var(--font); color: var(--c-dark); background: none; border: 1px solid var(--c-line);
  padding: 9px 18px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.team-card__cta::after { content: "→"; transition: transform .2s; }
.team-card__cta:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.team-card__cta:hover::after { transform: translateX(3px); }

/* modal de biografia (native <dialog>) */
.bio-modal { border: none; padding: 0; margin: auto; width: min(680px, calc(100% - 32px)); border-radius: 18px;
  box-shadow: var(--shadow-md); color: #1a2227; overflow: hidden; }
.bio-modal::backdrop { background: rgba(6,45,86,.55); }
.bio-modal__bar { height: 6px; background: var(--grad-brand); }
.bio-modal__head { display: flex; align-items: center; gap: 18px; padding: 24px 28px 8px; }
.bio-modal__head .team-card__avatar { width: 72px; height: 72px; box-shadow: 0 0 0 2px var(--c-line-2); flex: none; }
.bio-modal__name { font-size: 20px; margin: 0 0 2px; color: var(--c-ink); }
.bio-modal__body { padding: 12px 28px 28px; max-height: 60vh; overflow: auto; line-height: 1.75; }
.bio-modal__body p { margin: 0 0 1em; }
.bio-modal__body p:last-child { margin-bottom: 0; }
.bio-modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); border-radius: 50%; font-size: 22px; line-height: 1; color: var(--c-ink); }
.bio-modal__close:hover { background: #fff; color: var(--c-accent); }

.author-profile { display: flex; flex-direction: column; gap: 18px; padding: var(--sp-6) 0; align-items: center; text-align: center; }
@media (min-width: 768px) { .author-profile { flex-direction: row; align-items: flex-start; text-align: left; gap: 28px; } }
.author-profile img, .author-profile .placeholder { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.author-profile__name { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.author-profile__bio { color: var(--c-ink-2); max-width: 640px; }
.author-profile__social { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
@media (min-width: 768px) { .author-profile__social { justify-content: flex-start; } }

/* ===================== INSTITUCIONAL ===================== */
.prose { max-width: var(--reading); margin: 0 auto; padding: var(--sp-8) 0; font-size: 17px; line-height: 1.7; color: #1a2227; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: .4em; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.prose a { color: var(--c-accent-2); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { border-left: 4px solid var(--c-accent); padding-left: 18px; color: var(--c-ink); font-weight: 500; }

/* ===================== SOBRE (about.html.twig) ===================== */
.about-hero { max-width: 820px; margin: 0 auto; padding: var(--sp-8) 0 var(--sp-6); text-align: center; }
.about-hero__title { font-size: clamp(28px, 5vw, 40px); margin: 14px 0 12px; }
.about-hero__summary { font-size: 19px; font-weight: 500; color: var(--c-ink); line-height: 1.5; margin: 0 0 12px; }
.about-hero__lead { font-size: 16px; color: var(--c-ink-2); line-height: 1.65; margin: 0; }

.about-split { display: grid; grid-template-columns: 1fr; gap: 32px; }
.about-split__main p { font-size: var(--fs-body); line-height: var(--lh-body); color: #1a2227; margin: 0 0 16px; }
.about-split__main p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .about-split { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }

.about-facts-card { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.about-facts-card__item { padding: 16px 20px; border-bottom: 1px solid var(--c-line-2); }
.about-facts-card__item:last-child { border-bottom: none; }
.about-facts-card__label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-ink-3); margin-bottom: 4px; }
.about-facts-card__value { display: block; font-size: 17px; font-weight: 700; color: var(--c-ink); }

.about-mv { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .about-mv { grid-template-columns: 1fr 1fr; gap: 28px; } }
.about-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px 28px; border-top: 4px solid var(--card-accent, var(--c-accent)); }
.about-card__title { font-size: 22px; margin: 0 0 14px; }
.about-card__lead { font-weight: 600; color: var(--c-ink); font-size: 16px; line-height: 1.5; margin: 0 0 16px; }
.about-card p { font-size: 15px; line-height: 1.65; color: var(--c-ink-2); margin: 0 0 14px; }
.about-card p:last-child { margin-bottom: 0; }

.about-autonomy { margin: 0 auto; }
.about-autonomy__lead { font-size: 19px; font-weight: 600; color: var(--c-ink); border-left: 4px solid var(--c-accent); padding-left: 18px; margin: 0 0 20px; line-height: 1.5; }
.about-autonomy p { font-size: 16px; line-height: 1.65; color: #1a2227; margin: 0 0 16px; }
.about-autonomy p:last-child { margin-bottom: 0; }

.principles-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: var(--sp-6); }
@media (min-width: 860px) { .principles-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.principle-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 24px; }
.principle-card__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pc, var(--c-accent)); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.principle-card__title { font-size: 18px; margin: 0 0 8px; }
.principle-card__lead { font-weight: 600; color: var(--c-ink); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.principle-card p { font-size: 14px; line-height: 1.6; color: var(--c-ink-2); margin: 0 0 10px; }
.principle-card p:last-child { margin-bottom: 0; }

/* ===================== BUSCA ===================== */
.search-page { padding: var(--sp-8) 0 var(--sp-12); }
.search-page__form { display: flex; max-width: 560px; margin: 0 0 12px; }
.search-page__form input { flex: 1; height: 48px; border: 1px solid var(--c-line); border-right: none; border-radius: 8px 0 0 8px; padding: 0 16px; font-size: 16px; }
.search-page__form button { padding: 0 22px; border: none; background: var(--c-accent); color: #fff; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 500; }
/* ---- Sugestões automáticas (autosuggest) da busca do cabeçalho ---- */
.autosuggest {
  position: absolute; top: calc(100% + 6px); right: 0; width: 320px; max-width: 90vw;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop);
  list-style: none; margin: 0; padding: 6px 0; z-index: 30; max-height: 360px; overflow-y: auto;
}
.autosuggest[hidden] { display: none; }
.autosuggest__item a { display: block; padding: 9px 14px; color: var(--c-ink); }
.autosuggest__item a:hover, .autosuggest__item a.is-active { background: var(--c-accent-soft); color: var(--c-accent); }
.autosuggest__meta { display: block; font-size: 11px; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.autosuggest__empty { padding: 10px 14px; font-size: 13px; color: var(--c-ink-2); }

.search-page__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.search-filter { border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-2); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.search-filter:hover { border-color: var(--c-accent); color: var(--c-accent); }
.search-filter.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.search-page__count { color: var(--c-ink-2); font-size: 14px; margin-bottom: var(--sp-6); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--c-line-2); }
.search-result__title { font-size: 18px; font-weight: 700; }
.search-result__title:hover { color: var(--c-accent); }
.search-result__excerpt { color: var(--c-ink-2); margin-top: 6px; font-size: 14px; }
.search-result__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }

/* ===================== FOOTER ===================== */
.site-footer { position: relative; background: #fff; color: var(--c-ink-2); margin-top: var(--sp-16); }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--grad-brand); }
.site-footer a { color: var(--c-ink-2); }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__top { display: grid; gap: 28px; padding: var(--sp-10) 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { background: none; padding: 0; }
.site-footer .brand__logo { height: 92px; }
.site-footer .brand__mark { background: var(--c-dark); color: #fff; }
.drawer__head .brand__logo { height: 38px; }
.site-footer__col h4 { color: var(--c-ink); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 9px; font-size: 14px; }
.site-footer__about { font-size: 14px; line-height: 1.6; max-width: 360px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 10px; background: var(--c-surface-2); display: inline-flex; align-items: center; justify-content: center; }
.site-footer__social a:hover { background: var(--c-accent); }
.site-footer__social svg { width: 18px; height: 18px; fill: var(--c-dark); }
.site-footer__social a:hover svg { fill: #fff; }
.site-footer__legal { border-top: 1px solid var(--c-line); padding: 18px 0; font-size: 13px; color: var(--c-ink-3); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.site-footer__credit { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__credit img { width: 33px; height: auto; display: block; }

/* ===================== 404 ===================== */
.error-page { text-align: center; padding: var(--sp-16) var(--sp-4); }
.error-page__code { font-size: clamp(64px, 16vw, 140px); font-weight: 900; color: var(--c-accent); line-height: 1; }
.error-page__msg { font-size: 20px; color: var(--c-ink-2); margin: 8px 0 24px; }
.error-page form { display: flex; max-width: 420px; margin: 18px auto 0; }
.error-page input { flex: 1; height: 48px; border: 1px solid var(--c-line); border-right: none; border-radius: 8px 0 0 8px; padding: 0 16px; }
.error-page button { padding: 0 20px; border: none; background: var(--c-accent); color: #fff; border-radius: 0 8px 8px 0; cursor: pointer; }

/* ===================== UTIL: ícone do sprite ===================== */
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; fill: currentColor; }

/* ===================== DESKTOP NAV TOGGLE ===================== */
@media (min-width: 1024px) {
  .site-nav { display: block; }
  .topnav { display: block; }
  .nav-toggle { display: none; }
}
@media (max-width: 1023px) {
  .site-nav { display: none; }
}
