/* Regra compartilhada: cabeçalhos de seção sempre ficam no eixo central do container. */
.footer-quick-nav { display: block; }
.footer-quick-nav a { display: block; padding: 0; color: #fff; font-size: .75rem; font-weight: 400; line-height: 1.5; text-decoration: none; }
.footer-quick-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-quick-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.site-footer > .footer-bottom { margin-top: 38px; }
.section-heading {
  margin-inline: auto;
  text-align: center;
}

.section-heading > .eyebrow,
.section-heading > p {
  margin-right: auto;
  margin-left: auto;
}

/* Capa, título e chamada dos destaques levam ao mesmo artigo. */
.blog article a.blog-card__cover { margin: 0; }
.blog-card__cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.blog article a.blog-card__title { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.blog-card__title:hover { text-decoration: underline; }
.blog article a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* Acesso à ajuda separado do contato comercial, em todas as páginas. */
.contact-strip {
  position: relative;
  padding: 0;
  background: linear-gradient(90deg, var(--purple), var(--brand-navy), var(--blue));
}
.contact-strip .contact-strip__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  text-align: left;
}
.contact-strip__brand { font-size: .65rem; }
.contact-strip__actions { display: flex; align-items: center; font-size: .75rem; }
.contact-strip .audience-nav__phone { padding-block: 7px; color: #fff; font-weight: 700; text-decoration: none; }
.navigation { gap: 20px; min-height: 84px; height: auto; padding-block: 16px; }
.navigation .brand { flex-shrink: 0; }
.navigation .primary-menu { margin-left: auto; gap: 22px; font-size: .85rem; }
.primary-menu > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.content-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faff;
  color: var(--blue);
  list-style: none;
}
.content-menu > summary::-webkit-details-marker { display: none; }
.content-menu__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.content-menu > summary:hover,
.content-menu[open] > summary { border-color: var(--blue); background: #edf6fc; }
.content-menu[open] .content-menu__chevron { transform: rotate(180deg); }
.content-menu > summary:focus-visible,
.content-menu > div > a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.content-menu > div {
  z-index: 15;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px #1c5ba126;
}
.content-menu > div > a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 7px; }
.content-menu > div > a:hover { background: #edf6fc; }
@media (prefers-reduced-motion: reduce) {
  .content-menu__chevron { transition: none; }
}
.navigation .header-search { width: 140px; height: 38px; }
.navigation .header-search input { font-size: .8rem; }
.audience-nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: .8rem; }
.audience-nav > a,
.student-help > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.audience-nav__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.audience-nav > .audience-nav__support { background: var(--blue); color: #fff; }
.audience-nav > a:hover { background: #174c87; }
.student-help > summary:hover,
.student-help[open] > summary { background: #edf6fc; }
.audience-nav__icon { width: 25px; height: 25px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.audience-nav__arrow { font-size: 1.15rem; }
.student-help > summary { list-style: none; }
.student-help > summary::-webkit-details-marker { display: none; }
.student-help[open] > summary .student-help__chevron { transform: rotate(180deg); }
.audience-nav__phone:focus-visible,
.audience-nav a:focus-visible,
.student-help > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.student-help { position: relative; }
.student-help__panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 36px #1c5ba126;
  font-size: .875rem;
  text-align: left;
}
.student-help__panel h2 { margin-bottom: 12px; font-size: 1.15rem; line-height: 1.25; }
.student-help__panel p { margin-bottom: 12px; }
.student-help__panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}
.student-help__panel .student-help__primary {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}
.student-help__panel small { display: block; margin-top: 8px; font-size: .75rem; }
@media (min-width: 801px) and (max-width: 1150px) {
  .navigation { flex-wrap: wrap; gap: 16px; }
  .navigation .primary-menu { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .audience-nav { margin-left: auto; }
}
@media (max-width: 800px) {
  .contact-strip__brand { display: none; }
  .contact-strip .contact-strip__container { justify-content: center; }
  .navigation { height: 68px; min-height: 68px; padding-block: 0; }
  .navigation .primary-menu { gap: 20px; font-size: .95rem; }
  .content-menu > div { position: static; width: 100%; max-width: none; margin-top: 8px; box-shadow: none; }
  .navigation .header-search { width: 100%; height: 44px; }
  .navigation .header-search input { font-size: 1rem; }
  .audience-nav {
    position: fixed;
    z-index: 12;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    width: 100%;
    padding: 8px max(15px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
    background: linear-gradient(90deg, var(--purple), var(--brand-navy), var(--blue));
    box-shadow: 0 -4px 20px #1c5ba126;
    text-align: center;
  }
  .audience-nav.is-at-footer { visibility: hidden; pointer-events: none; }
  .audience-nav > .audience-nav__support,
  .student-help > summary { padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: #fff; gap: 6px; font-size: .75rem; }
  .audience-nav > .audience-nav__support { border-left: 1px solid #ffffff40; padding-left: 12px; }
  .student-help > summary:hover,
  .student-help[open] > summary { background: transparent; }
  .audience-nav__icon { width: 22px; height: 22px; }
  .audience-nav__arrow { display: none; }
  .student-help { position: static; }
  .student-help > summary { line-height: 1.3; }
  .student-help > summary .student-help__chevron { transform: rotate(180deg); }
  .student-help[open] > summary .student-help__chevron { transform: none; }
  .student-help__panel {
    top: auto;
    bottom: calc(100% + 8px);
    right: 15px;
    width: min(360px, calc(100% - 30px));
    padding: 20px;
    max-height: calc(100dvh - 160px - env(safe-area-inset-bottom));
  }
  .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom)); right: 15px; }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
