/* Correções de layout e rolagem — 06/09/2026. */
.heroes .ha__phrase .line + .line::before,
.heroes .hb__phrase .line + .line::before { content: none; }
.cite {
  width: auto;
  min-width: max-content;
  height: auto;
  min-height: 24px;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}
.cite::after {
  position: static;
  width: auto;
  height: auto;
  transform: none;
  white-space: nowrap;
}

/* Leitura contínua apenas quando a pessoa pede movimento reduzido. */
.story__stage.story--flow {
  height: auto;
  padding: 64px 0;
  background: #152233;
}

.story--flow .story__beat,
.story__stage.story--flow.has-tv .story__beat {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 760px;
  padding: 30px var(--gut);
  margin: 0 auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
}
.story--flow .story__beat[data-ph="1"] { padding-bottom: 8px; }
.story--flow .story__beat[data-ph="9"] { padding-top: 50px; }
.story--flow .story__beat[data-ph="10"] { gap: 24px; }
.story--flow .story__phrase { font-size: clamp(1.4rem, 5.8vw, 2rem); line-height: 1.4; }
.story--flow .story__phrase, .story--flow .story__kicker, .story--flow .story__sub { filter: none; }
.story--flow .story__kicker { flex-wrap: wrap; line-height: 1.5; }
.story--flow .story__media,
.story--flow .tv-fixa,
.story--flow .breu,
.story--flow .raio-ceu,
.story--flow .som,
.story--flow .lanterna-gate,
.story--flow .story__flash { display: none; }
.story--flow::before { display: none; }
.story--flow .clip { width: 100%; max-width: 560px; margin: 0 auto; opacity: 1; transform: none; }
.story--flow .clip__headline { font-size: clamp(1.9rem, 8vw, 3.5rem); }
.story--flow .clip__papel { padding: 24px; }
.story--flow .razao { width: 100%; margin-top: 30px; }
.story--flow .razao__par { gap: 12px; justify-content: space-between; }
.story--flow .razao__lado { min-width: 0; }
.story--flow .razao__lado b { font-size: clamp(2rem, 9vw, 3.6rem); }
.story--flow .razao__saldo { white-space: normal; }
.story--flow .noite-zero { width: 100%; min-height: 170px; }
.story--flow .noite-zero__l { font-size: clamp(2rem, 8vw, 3.8rem); }
.story--flow .noite-res__word { letter-spacing: 0.08em; white-space: normal; }
.story--flow .noite-res__row { gap: 16px; align-items: start; text-align: left; }
.story--flow .noite-res__n { flex: 0 0 4.5ch; font-size: clamp(1.5rem, 6vw, 2rem); }
.story--flow .noite-res__l { min-width: 0; }
.story--flow .btn--story { white-space: normal; line-height: 1.4; text-align: center; }

@media (max-width: 900px), (pointer: coarse) {
  html { scroll-padding-top: 80px; }
  #smooth-wrapper, #smooth-content { overflow: visible; }

  /* Sticky nativo: a capa se encerra na própria seção, sem pin nem scroll artificial. */
  .heroes { height: 220svh; }
  .heroes__view { position: sticky; top: 0; height: 100svh; --capa-x: 50%; }
  .capa__palco {
    height: min(76svh, 720px);
    width: auto;
    max-width: none;
    aspect-ratio: 2561 / 3090;
    scale: 1;
  }
  .heroes .ha__phrase, .heroes .hb__phrase {
    top: max(86px, calc(env(safe-area-inset-top) + 64px));
    bottom: auto;
    left: var(--gut);
    right: var(--gut);
    width: auto;
    max-width: none;
    translate: none;
    font-size: clamp(1.875rem, 8.8vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
    overflow-wrap: normal;
  }
  .heroes .ha__phrase .line, .heroes .hb__phrase .line,
  .heroes .ha__phrase .w, .heroes .hb__phrase .w { display: inline; overflow: visible; }
  .heroes .ha__phrase .line + .line::before,
  .heroes .hb__phrase .line + .line::before { content: " "; white-space: normal; }
  .ha__id { display: none; }
  .heroes .scrollcue { display: flex; bottom: 24px; right: 20px; }
  .heroes.is-scrolling .scrollcue { opacity: 0; pointer-events: none; }

  /* Especificidade igual para todos os programas; container queries exigem largura explícita. */
  .prog[data-progbg] { min-height: 0; align-items: stretch; }
  .prog[data-progbg] .prog__panel {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 64px var(--gut);
  }
  .prog .prog__title {
    font-size: clamp(1.8rem, 9vw, 3.4rem);
    line-height: 1.04;
    word-break: normal;
    overflow-wrap: normal;
  }
  .prog .prog__claim { font-size: 1.25rem; line-height: 1.4; max-width: none; }
  .prog .prog__lede { font-size: 1rem; line-height: 1.65; max-width: none; }
  .prog .prog__meta { display: block; line-height: 1.5; letter-spacing: 0.04em; }
  .prog .prog__meta span { display: block; margin-top: 6px; }
  .prog .prog__meta span::before { content: none; }
  .prog .prog__act { align-items: stretch; flex-direction: column; }
  .prog .prog__act .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.4; padding: 18px 20px; }
  .prog .prog__zap { padding: 8px 0; line-height: 1.5; }
  .prog .prog__more > summary { min-height: 44px; line-height: 1.5; }
  .prog .prog__more > summary::after { flex-shrink: 0; margin-left: auto; }
  .prog .prog__bg-scrim { background: color-mix(in srgb, var(--pbg) 90%, transparent); }
  .prog__veu, .prog__curtain { display: none; }

  /* Quebras de linha acompanham rotação, fonte carregada e zoom. */
  [data-splitlines] .l, [data-splitlines] .l > span,
  html.anim [data-splitlines]:not(.is-in) .l > span {
    display: inline; overflow: visible; transform: none !important;
  }
  .reveal, [data-splitlines], [data-intro-seq], .intro .hero__title,
  .prog__panel, .prog__kicker, .prog__meta, .prog__claim, .prog__frase, .prog__lede, .prog__act, .prog__more {
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: none !important;
    transform: none !important;
  }
  .sec-title, .progs-intro__title, .contact__title { line-height: 1.12; }
  .hero__title { font-size: clamp(2.25rem, 10vw, 4rem); line-height: 1.06; }
  .numbers--retrato .numbers__duo { padding-top: 0; }
  .numbers--retrato .stat__desc { font-size: 0.875rem; line-height: 1.55; }
  .numbers--retrato .numbers__grid--8 .stat__unit { font-size: 0.75rem; line-height: 1.5; }
  .numbers--retrato .stat__desc .src { font-size: 0.6875rem; line-height: 1.5; }
  .progs-intro > .progs-intro__ponte { padding-inline: 0; }
  .about.tear-top .about__inner-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about__body { min-width: 0; }
  .about__media { width: min(100%, 440px); margin-inline: auto; }
  .about__legenda { font-size: 0.625rem; line-height: 1.5; letter-spacing: 0.1em; }
  [data-drift] { transform: none !important; }
  .kit__card, .contact__info, .contact__form, .about__content, .book { min-width: 0; }
  .kit__card h3, .book h3, .cred h3 { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .contact__mail, .menu__mail { overflow-wrap: anywhere; }
  .btn { max-width: 100%; white-space: normal; line-height: 1.4; }
  .contact__form { grid-template-columns: minmax(0, 1fr); }
  .contact__form .field { grid-column: 1 / -1; min-width: 0; }
  .contact__form input, .contact__form textarea, .contact__form select { font-size: 16px; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; flex-shrink: 0; }
  body.menu-open .nav { transform: none; background: var(--ink); }
  .menu { display: block; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 96px var(--gut) max(40px, env(safe-area-inset-bottom)); }
  .menu__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .menu__link { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; min-height: 52px; }
  .menu__link em { flex-shrink: 0; }
  .wa { display: none; }
  .acoes__i { min-width: 0; font-size: 0.625rem; letter-spacing: 0.035em; }
  .cite { padding: 6px 8px; margin-block: 3px; }
  .cite::after { font-size: 9px; }
  .grain { opacity: 0.035; }
}

@media (max-width: 900px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  .heroes .ha__phrase, .heroes .hb__phrase {
    width: 46%; right: auto; font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  }
  .heroes__view { --capa-x: 76%; }
  .capa__palco { height: 94svh; }
}
@media (prefers-reduced-motion: reduce) {
  .heroes { height: 100svh; }
  .heroes__view { position: relative; }
  .heroes .ha__phrase .w { opacity: 1; transform: none; }
  .heroes .ha__phrase { opacity: 1 !important; }
  .heroes .hb__phrase, .heroes__bg--dark, .capa__foto--b, .varre-glow { display: none; }
  .capa--foto .capa__foto--a { -webkit-mask-image: none; mask-image: none; opacity: 1; }
}

/* Minigame: quadro completo, legenda acima e respostas no fluxo da página. */
.prog__mobile-image { display: none; }
#quizBox.quiz__box--palco,
#quizBox.quiz__box--palco[data-fase] {
  width: 100%;
  margin-inline: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
  scroll-margin-top: 80px;
}
#quizBox.quiz__box--palco .quiz__stage {
  min-height: 0;
  padding: 28px var(--gut) 44px;
  display: block;
}
#quizBox.quiz__box--palco .bs-abre--convite {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: min(680px, 80svh);
  padding: 48px 24px;
  border-radius: 12px;
}
#quizBox.quiz__box--palco .bs-hud,
#quizBox.quiz__box--palco .bs-case__tag { opacity: 1; pointer-events: auto; }
#quizBox.quiz__box--palco .bs-hud { margin-bottom: 12px; }
.bs-cena__heading {
  margin: 0;
  padding: 18px 20px;
  background: #0d1626;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  color: #eef2f8;
  font: 600 clamp(1.15rem, 3vw, 1.8rem)/1.2 var(--f-display);
  text-align: center;
}
#quizBox.quiz__box--palco .bs-case { position: relative; }
#quizBox.quiz__box--palco .bs-case .bs-cena {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0 0 12px 12px;
  background: #020409;
  display: block;
}
#quizBox.quiz__box--palco .bs-case .bs-cena__video,
#quizBox.quiz__box--palco .bs-case .bs-cena__freeze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
}
#quizBox.quiz__box--palco .bs-case .bs-cena__amb { display: none; }
#quizBox.quiz__box--palco .bs-case .bs-cena__scrim { background: none; }
#quizBox.quiz__box--palco .bs-case .bs-case__reveal {
  display: block;
  position: relative;
  inset: auto;
  margin: 0;
  padding: 24px 0 0;
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: none;
  transition: filter .4s ease;
}
#quizBox.quiz__box--palco .bs-case__reveal[inert] {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}
#quizBox.quiz__box--palco .bs-case__cena { display: none; }
#quizBox.quiz__box--palco .bs-case__q {
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  line-height: 1.45;
  margin: 0 0 16px;
}
#quizBox.quiz__box--palco .bs-case .bs-case__opts {
  position: relative;
  inset: auto;
  height: auto;
  max-height: none;
  width: 100%;
  max-width: none;
  overflow: visible;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  margin: 0 0 20px;
}
#quizBox.quiz__box--palco .bs-case .bs-opt {
  width: 100%;
  min-height: 56px;
  height: auto;
  padding: 14px 16px;
  font-size: .9375rem;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
  opacity: 1;
  transform: none;
  animation: none;
}
#quizBox.quiz__box--palco .bs-case .bs-opt kbd { flex-shrink: 0; }
#quizBox.quiz__box--palco .bs-case .bs-opt span { min-width: 0; }
#quizBox.quiz__box--palco .bs-case .bs-opt:disabled:not(.is-chosen) { opacity: .45; }
#quizBox.quiz__box--palco .bs-conseq { margin-top: 20px; scroll-margin-top: 100px; }
#quizBox.quiz__box--palco .bs-cena__pular {
  background: rgba(4, 7, 15, .8);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 10px;
  min-height: 36px;
  right: 8px;
  bottom: 8px;
  border-radius: 6px;
  font-size: .6875rem;
}

@media (max-width: 900px), (pointer: coarse) {
  /* Oito marcos com a mesma largura/altura; a página rola verticalmente. */
  .numbers--retrato .numbers__grid--8 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding: 0;
    width: 100%;
  }
  .numbers--retrato .numbers__grid--8 > .stat {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 220px;
    padding: 28px 24px;
    margin: 0;
    scroll-snap-align: none;
    transform: none !important;
  }
  .numbers--retrato::after { content: none; }
  .numbers--retrato .numbers__grid--8 .stat__n { font-size: clamp(2.4rem, 10vw, 3.4rem); }

  /* Imagens integrais, proporções intrínsecas e texto sem altura de tela forçada. */
  .prog[data-progbg] { display: flex; flex-direction: column; min-height: 0; }
  .prog[data-progbg] .prog__bg {
    position: relative;
    inset: auto;
    width: 100%;
    z-index: 0;
    flex: none;
    overflow: visible;
  }
  .prog[data-progbg] .prog__bg-img,
  .prog[data-progbg] .prog__bg-scrim { display: none; }
  .prog[data-progbg] .prog__mobile-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
  }
  .prog[data-progbg] .prog__panel { padding: 26px var(--gut) 34px; flex-basis: auto; }
  .prog[data-progbg] .prog__title { font-size: clamp(1.625rem, 6.6vw, 2.5rem); line-height: 1.08; margin-bottom: 16px; }
  .prog[data-progbg] .prog__kicker { font-size: .6875rem; margin-bottom: 8px; gap: 10px; }
  .prog[data-progbg] .prog__kicker em { font-size: 1.2rem; }
  .prog[data-progbg] .prog__meta,
  .prog[data-progbg] .prog__meta span { font-size: .6875rem; margin-bottom: 12px; }
  .prog[data-progbg] .prog__claim { font-size: 1rem; line-height: 1.45; margin-bottom: 14px; }
  .prog[data-progbg] .prog__lede,
  .prog[data-progbg] .prog__frase { font-size: .9375rem; line-height: 1.55; margin-block: 14px; }
  .prog[data-progbg] .prog__rule { margin-block: 16px; }
  .prog[data-progbg] .prog__act { margin-top: 20px; gap: 8px; }
  .prog[data-progbg] .prog__act .btn { padding: 14px 16px; font-size: .8125rem; }
  .prog[data-progbg] .prog__more { margin-top: 18px; }
  .prog[data-progbg] .prog__more > summary { font-size: .8125rem; }

  #quizBox.quiz__box--palco .quiz__stage { padding: 18px var(--gut) 32px; }
  #quizBox.quiz__box--palco .bs-abre--convite { min-height: min(580px, 76svh); padding: 36px 18px; gap: 22px; }
  #quizBox.quiz__box--palco .bs-abre__titulo--cheia { font-size: clamp(1.75rem, 7.5vw, 3rem); }
  #quizBox.quiz__box--palco .bs-abre__agir { font-size: 1.25rem; }
  #quizBox.quiz__box--palco .bs-abre__seguir { font-size: .625rem; line-height: 1.5; }
  #quizBox.quiz__box--palco .bs-case__tag { font-size: .625rem; line-height: 1.5; }
  #quizBox.quiz__box--palco .bs-hud { margin-bottom: 8px; }
  #quizBox.quiz__box--palco .bs-case .bs-opt { font-size: .875rem; padding: 12px; }
  #quizBox.quiz__box--palco .bs-timer { flex-wrap: wrap; }
  #quizBox.quiz__box--palco .bs-timer__fill { min-width: 80px; }
  #quizBox.quiz__box--palco .bs-timer__txt { font-size: .625rem; }

  /* Rio do Sul mantém TV, apagão, lanterna e os mesmos capítulos. */
  .nav.is-stuck { background: #f5f2ea; backdrop-filter: none; }
  body.on-dark .nav.is-stuck { background: #080e18; }
  body.em-bussola #acoesMobile,
  body.em-noite #acoesMobile { opacity: 0; visibility: hidden; pointer-events: none; }
  .story.story--touch { height: 950svh; overflow: visible; }
  .story--touch .story__stage { position: sticky; top: 0; height: 100svh; }
  .story--touch .story__beat,
  .story--touch .story__stage.has-tv .story__beat {
    position: absolute;
    inset: 0;
    padding: 80px var(--gut) 72px;
    max-width: 700px;
  }
  .story--touch .story__phrase { font-size: clamp(1.4rem, 5.8vw, 2.25rem); line-height: 1.32; filter: none; }
  .story--touch .story__kicker { font-size: .625rem; line-height: 1.5; flex-wrap: wrap; letter-spacing: .12em; filter: none; }
  .story--touch .story__sub { font-size: .875rem; line-height: 1.45; filter: none; }
  .story--touch .clip { width: 100%; max-width: 460px; margin-inline: auto; }
  .story--touch .clip__papel { padding: 20px; }
  .story--touch .clip__headline { font-size: clamp(1.5rem, 6.5vw, 2.5rem); }
  .story--touch .razao { width: 100%; margin-top: 24px; }
  .story--touch .razao__par { gap: 12px; justify-content: space-between; }
  .story--touch .razao__lado { min-width: 0; }
  .story--touch .razao__lado b { font-size: clamp(1.75rem, 8vw, 3rem); }
  .story--touch .razao__saldo { white-space: normal; }
  .story--touch .noite-zero__l { font-size: clamp(1.75rem, 8vw, 3rem); }
  .story--touch .story__beat[data-ph="9"] > .noite-out__lead,
  .story--touch .story__beat[data-ph="9"] > .noite-zero,
  .story--touch .story__beat[data-ph="9"] > .noite-res {
    position: absolute;
    top: 50%;
    bottom: auto;
    left: var(--gut);
    right: var(--gut);
    width: auto;
    margin: 0;
    translate: 0 -50%;
  }
  .story--touch .story__beat[data-ph="9"] > .noite-zero { min-height: 180px; }
  .story--touch .story__beat[data-ph="9"] > .noite-res { text-align: left; }
  .story--touch .noite-res__word { letter-spacing: .08em !important; white-space: normal; }
  .story--touch .noite-res__row { gap: 12px; padding-block: 12px; }
  .story--touch .noite-res__n { flex: 0 0 4.5ch; font-size: clamp(1.25rem, 6vw, 2rem); }
  .story--touch .noite-res__l { min-width: 0; font-size: .8125rem; }
  .story--touch .btn--story { font-size: .75rem; padding: 14px 18px; line-height: 1.4; }
  .story--touch .lanterna-gate__t { font-size: 1.125rem; }
  .story--touch .lanterna-gate__bt { font-size: .875rem; }
}

@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  #quizBox.quiz__box--palco .bs-case .bs-cena { max-height: max(140px, calc(100svh - 220px)); }
  #quizBox.quiz__box--palco .bs-hud { display: none; }
  #quizBox.quiz__box--palco .bs-cena__heading { padding-block: 10px; font-size: 1.125rem; }
  .story--touch .story__beat[data-ph="10"] { gap: 8px; }
  .story--touch .story__quote { margin-bottom: 8px; }
  .story--touch .story__quote p { font-size: 1rem; }
  .story--touch .story__quote footer { font-size: .625rem; line-height: 1.5; margin-top: 8px; }
  .story--touch .story__lesson { font-size: .8125rem; margin-bottom: 8px; }
  .story--touch .story__beat { padding: 62px 8vw 46px; }
  .story--touch .story__phrase { font-size: 1.2rem; }
  .story--touch .story__kicker { margin-bottom: 10px; }
  .story--touch .clip { max-width: 360px; transform: scale(.75); }
  .story--touch .story__beat[data-ph="6"] { flex-direction: row; align-items: center; gap: 20px; }
  .story--touch .razao { margin: 0; }
  .story--touch .noite-res__row { padding-block: 6px; }
}
