/**
 * Landing /redacao-enem/temas — tokens de agency-chrome.
 * Nav/hero/footer: paridade da landing de correção.
 * Breakpoints: 1060 / 900 / 640 / 360.
 */
/* Superfície única (wireframe): sem canvas navy atrás do artigo. */
body.az-agency-body:has(.az-temas) {
  background: #fff;
}
body.az-agency-body:has(.az-temas) .az-main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.az-temas {
  color: var(--navy);
  background: #fff;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
.az-temas a { color: inherit; text-decoration: none; }
.az-temas a:focus-visible,
.az-temas summary:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
}

.az-temas .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; border-radius: var(--radius-xl); white-space: nowrap;
}
.az-temas .btn--nav { font-size: 14px; padding: 10px 18px; height: 40px; }
.az-temas .btn--text { background: transparent; color: rgba(255,255,255,.85); padding: 10px 14px; }
.az-temas .btn--light { background: #fff; color: var(--navy); }
.az-temas .btn--light:hover { color: var(--navy); opacity: .92; }
.az-temas .text-gradient {
  background: linear-gradient(100deg, #a270ae 0%, #17a2c8 100%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.az-temas .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff;
  border-radius: var(--radius-xl); padding: 13px 26px;
  font-size: 14px; font-weight: 600;
  min-height: 44px;
}
.az-temas .btn-cta:hover { color: #fff; opacity: .92; }
.az-temas .btn-cta svg { flex-shrink: 0; }

.az-temas .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.az-temas .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 12px;
}
.az-temas .eyebrow--light { color: var(--brand); }
.az-temas .sec-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw + 0.5rem, 1.85rem);
  font-weight: 600;
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--navy); margin: 0 0 16px;
}
.az-temas .sec-lead {
  font-size: 14px; color: var(--ink-2); line-height: 1.7; max-width: 560px; margin: 0;
}
.az-temas .sec-head { margin-bottom: 32px; }
.az-temas .inline-link { color: var(--brand); font-weight: 600; }
.az-temas .inline-link:hover { text-decoration: underline; }

/* ── Nav (wireframe: azul claro fixo, sem invert no scroll) ─────────── */
.az-temas .ah-nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px 48px;
  color: var(--navy);
  background: var(--surface-2);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.az-temas .ah-nav__logo {
  display: flex; align-items: center; justify-self: start;
  color: var(--navy);
  transition: opacity .16s ease;
}
.az-temas .ah-nav__logo:hover { opacity: .75; }
.az-temas .ah-nav__logo svg {
  height: 37px; width: 163px; display: block; fill: currentColor;
}
.az-temas .ah-nav__actions {
  display: flex; gap: 8px; align-items: center; justify-self: end;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.az-temas .hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
.az-temas .hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 15% 85%, rgba(2,12,34,.72) 0%, transparent 60%),
    linear-gradient(135deg, rgba(4,17,39,.55) 0%, rgba(7,22,44,.30) 45%, rgba(79,39,92,.22) 100%);
}
.az-temas .hero__grid {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: end;
  min-height: 100svh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 108px 28px 64px clamp(48px, 6vw, 88px);
}
.az-temas .hero__crumb {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.az-temas .hero__crumb a { color: rgba(255,255,255,0.5); }
.az-temas .hero__crumb a:hover { color: #17a2c8; }
.az-temas .hero__crumb-sep { color: rgba(255,255,255,0.3); }
.az-temas .hero__h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw + .5rem, 2.5rem);
  font-weight: 500;
  line-height: 1.04; letter-spacing: -0.04em;
  color: #fff; margin: 0 0 22px;
}
.az-temas .hero__body {
  font-size: 15px; color: rgba(255,255,255,0.65);
  line-height: 1.6; max-width: 440px; margin: 0 0 30px;
}
.az-temas .hero__ctas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px;
}
.az-temas .hero__learn {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.78); font-size: 14px; font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.24);
  min-height: 44px;
}
.az-temas .hero__learn:hover { color: #fff; }
.az-temas .hero__stage {
  position: relative; z-index: 10;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  margin-left: auto;
}
.az-temas .hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,1,11,0.7), 0 12px 32px -8px rgba(12,0,20,0.35);
}
.az-temas .hero__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(1,10,32,0.45) 100%);
}
.az-temas .hero__photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}

/* ── Catálogo ──────────────────────────────────────────────────────── */
.az-temas .sec-catalog {
  background: #fff;
  padding: 56px 48px;
  border-bottom: 1px solid var(--line-lite);
  scroll-margin-top: 5rem;
}
.az-temas .sec-catalog__inner { max-width: 1100px; margin: 0 auto; }
.az-temas .sec-search__h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 600;
  color: var(--navy); margin: 0 0 16px;
}
.az-temas .filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.az-temas .filter-pill {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 16px;
  max-width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-lite); background: #fff;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.az-temas .filter-pill:hover {
  border-color: var(--navy); color: var(--navy);
}
.az-temas .filter-pill.is-active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.az-temas .tema-card[hidden],
.az-temas .sec-count[hidden],
.az-temas .catalog-empty[hidden] { display: none; }
.az-temas .sec-count { font-size: 13px; color: var(--ink-3); margin: 0 0 24px; }
.az-temas .catalog-empty {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.7;
  max-width: 560px; margin: 0;
}
.az-temas .tema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.az-temas .tema-card {
  border: 0; padding: 0; background: transparent;
  display: flex; flex-direction: column; gap: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.az-temas .tema-card:hover .tema-card__titulo { color: var(--brand); }
.az-temas .tema-card__media {
  display: block; width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px; overflow: hidden;
  background: var(--surface-2);
}
.az-temas .tema-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.az-temas .tema-card__titulo {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 650;
  color: var(--navy); line-height: 1.35; margin: 0;
}
.az-temas .tema-card__data { font-size: 13px; color: var(--ink-3); }

/* ── Seções ────────────────────────────────────────────────────────── */
.az-temas .section { padding: 72px 0; }
.az-temas .section--surface { background: var(--surface-2); }
.az-temas #eixos { scroll-margin-top: 5rem; }
.az-temas #duvidas { scroll-margin-top: 5rem; }

.az-temas .sobre-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.az-temas .sobre-text { display: flex; flex-direction: column; gap: 16px; }
.az-temas .sobre-text p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.az-temas .links-cluster { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.az-temas .link-chip {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 12px; color: var(--brand); font-weight: 600;
  border: 1px solid var(--brand); border-radius: 4px;
  padding: 8px 12px;
}
.az-temas .link-chip:hover { background: rgba(46,122,155,.08); }

.az-temas .distrib-card {
  border: 1px solid var(--line-lite); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.az-temas .distrib-card__header {
  padding: 12px 16px; border-bottom: 1px solid var(--line-lite);
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .06em; background: #fff;
}
.az-temas .distrib-card__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.az-temas .distrib-row { display: flex; flex-direction: column; gap: 4px; }
.az-temas .distrib-row__meta { display: flex; justify-content: space-between; gap: 12px; }
.az-temas .distrib-row__label { font-size: 13px; color: var(--ink-2); }
.az-temas .distrib-row__val { font-size: 13px; font-weight: 600; color: var(--navy); }
.az-temas .distrib-bar { height: 4px; background: var(--line-lite); border-radius: 3px; }
.az-temas .distrib-bar__fill {
  height: 4px; background: var(--brand); border-radius: 3px;
  width: var(--bar-pct, 0%); max-width: 100%;
}

.az-temas .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.az-temas .step-card {
  border: 1px solid var(--line-lite); border-radius: 10px;
  padding: 20px 18px; background: #fff;
}
.az-temas .step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.az-temas .step-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }

.az-temas .sec-cta-banner { border-radius: 12px; padding: 40px 48px; background: var(--navy); }
.az-temas .sec-cta-banner__grid {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.az-temas .sec-cta-banner__h2 {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  font-family: var(--font-serif); margin: 0 0 8px;
}
.az-temas .sec-cta-banner__body { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.55; margin: 0; }

.az-temas .comp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.az-temas .comp-item {
  border: 1px solid var(--line-lite); border-radius: 8px;
  padding: 16px 14px; background: #fff; text-align: center;
}
.az-temas .comp-badge {
  display: block; font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 8px;
}
.az-temas .comp-desc { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.az-temas .comp-desc:hover { color: var(--brand); }

.az-temas .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.az-temas .faq-lead { margin-top: 12px; }
.az-temas .faq-list { display: flex; flex-direction: column; gap: 16px; }
.az-temas details.faq-item {
  border-bottom: 1px solid var(--line-lite); padding-bottom: 12px;
}
.az-temas details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  list-style: none; cursor: pointer; padding: 8px 0;
  min-height: 44px;
}
.az-temas details.faq-item summary::-webkit-details-marker { display: none; }
.az-temas details.faq-item[open] summary { color: var(--brand); }
.az-temas .faq-toggle { font-size: 20px; color: var(--brand); line-height: 1; }
.az-temas details.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.az-temas details.faq-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; margin: 8px 0 0; }

/* ── Footer ────────────────────────────────────────────────────────── */
.az-temas .ah-footer {
  background: #fff; color: var(--navy); padding: 64px 56px 32px;
  border-top: 1px solid var(--line-lite);
}
.az-temas .ah-footer__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 260px) repeat(auto-fit, minmax(120px, max-content));
  justify-content: start;
  column-gap: 40px; row-gap: 28px; align-items: start;
}
.az-temas .ah-footer__brand a { display: inline-block; }
.az-temas .ah-footer__brand svg {
  height: 32px; width: auto; fill: var(--navy); margin-bottom: 16px; display: block;
}
.az-temas .ah-footer__tagline {
  font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 28ch;
}
.az-temas .ah-footer__col-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}
.az-temas .ah-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.az-temas .ah-footer a:hover { color: var(--brand); }
.az-temas .ah-footer__copy {
  max-width: 1100px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line-lite); font-size: 13px; color: var(--ink-3);
}

/* ── Breakpoints ───────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .az-temas .hero__grid { padding: 100px 24px 56px 40px; gap: 36px; }
  .az-temas .sec-catalog { padding-left: 40px; padding-right: 40px; }
  .az-temas .sobre-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .az-temas .ah-nav { padding: 14px 24px; gap: 16px; }
  .az-temas .ah-nav__logo svg { height: 30px; width: 132px; }

  .az-temas .hero { min-height: 0; }
  .az-temas .hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding: 96px 24px 48px;
    gap: 36px;
  }
  .az-temas .hero__stage { max-width: 360px; margin: 0 auto; }
  .az-temas .hero__h1 { font-size: clamp(1.85rem, 6vw, 2.25rem); }

  .az-temas .sec-catalog { padding: 48px 24px; }
  .az-temas .section { padding: 56px 0; }
  .az-temas .tema-grid { grid-template-columns: 1fr 1fr; }
  .az-temas .comp-grid { grid-template-columns: repeat(3, 1fr); }
  .az-temas .steps-grid { grid-template-columns: 1fr 1fr; }
  .az-temas .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .az-temas .sec-cta-banner { padding: 32px 24px; }
  .az-temas .sec-cta-banner__grid { grid-template-columns: 1fr; }
  .az-temas .ah-footer { padding: 48px 24px 24px; }
  .az-temas .ah-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .az-temas .ah-footer__tagline { max-width: none; }
}

@media (max-width: 640px) {
  .az-temas .ah-nav { padding: 12px 16px; gap: 8px; }
  .az-temas .ah-nav__logo svg { height: 26px; width: 114px; }
  .az-temas .ah-nav__actions { gap: 4px; }
  .az-temas .btn--nav { font-size: 13px; padding: 8px 12px; height: 36px; }
  .az-temas .hero__grid { padding: 88px 20px 40px; }
  .az-temas .hero__stage { max-width: 100%; margin: 0; }
  .az-temas .hero__photo { max-width: 420px; margin: 0 auto; }
  .az-temas .sec-catalog { padding: 40px 20px; }
  .az-temas .tema-grid { grid-template-columns: 1fr; }
  .az-temas .comp-grid { grid-template-columns: 1fr 1fr; }
  .az-temas .steps-grid { grid-template-columns: 1fr; }
  .az-temas .btn-cta { width: 100%; }
}

@media (max-width: 360px) {
  .az-temas .ah-nav { padding: 10px 12px; gap: 8px; }
  .az-temas .btn--nav { font-size: 13px; padding: 8px 12px; height: 36px; }
  .az-temas .hero__grid { padding: 80px 16px 32px; }
  .az-temas .hero__h1 { font-size: 1.7rem; }
  .az-temas .sec-catalog { padding: 32px 16px; }
  .az-temas .comp-grid { grid-template-columns: 1fr; }
  .az-temas .ah-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .az-temas .ah-nav,
  .az-temas .ah-nav__logo svg,
  .az-temas .faq-toggle,
  .az-temas .tema-card,
  .az-temas .filter-pill {
    transition: none;
  }
}
