/* ===== Editorial Premium v2 — REWORK (escopo body.editorial) =====
   Carrega depois de produto.css + clausulas-carta.css. Inerte sem a classe .editorial.
   Resolve: coluna centrada (sem vazio à direita), escala tipográfica fechada,
   hero menor e sidebar confortável com submenu de cláusulas recolhível. */

/* ---------- 1. COLUNA CENTRAL UNIFICADA (mata o vazio à direita) ---------- */
body.editorial .product-section {
  padding-inline: clamp(26px, calc((100% - 760px) / 2), 240px);
}
body.editorial .product-section { padding-top: clamp(44px, 5vw, 70px); padding-bottom: clamp(28px, 3.5vw, 48px); }
body.editorial .section-heading { max-width: none; margin-bottom: 22px; }
/* a carta de cláusulas preenche a coluna (antes 720px travada à esquerda) */
body.editorial #clz,
body.editorial #clz .clz { max-width: none; }

/* ---------- 2. ESCALA TIPOGRÁFICA FECHADA (mata os 8 tamanhos) ---------- */
/* base de leitura da seção: tudo que não tem regra explícita herda 17px serifado */
body.editorial .product-section { font-size: 1.06rem; }
/* SEM color aqui: cada card define a sua (claro no navy, escuro no paper). Forçar cor quebrava os cards navy. */
body.editorial .product-section p,
body.editorial .product-section li { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.72; }
body.editorial .product-section strong { font-size: inherit; font-weight: 700; }
body.editorial .product-section em { font-size: inherit; }
/* parágrafo-lead: o hero herda a cor clara; só a intro da seção (paper) recebe navy */
body.editorial .product-hero p { font-family: Georgia, serif; font-size: 1.16rem; line-height: 1.72; }
body.editorial .section-heading p { font-family: Georgia, serif; font-size: 1.16rem; line-height: 1.72; color: #25333b; max-width: 640px; }
/* títulos — serifados, escala curta */
body.editorial .product-hero h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.015em; margin: 6px 0 14px; }
body.editorial .section-heading h2 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(1.75rem, 2.6vw, 2.2rem); line-height: 1.16; letter-spacing: -.01em; color: #09212C; margin-bottom: 12px; }
/* SEM color: h3 herda o contexto (escuro no paper, claro nos cards navy). Forçar navy quebrava painéis escuros. */
body.editorial .product-section h3 { font-family: Georgia, serif; font-weight: 600; font-size: 1.16rem; line-height: 1.3; }
/* rótulos e controles pequenos, uniformes */
body.editorial .eyebrow { font-family: "Segoe UI", sans-serif; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: #97927D; font-weight: 600; }
body.editorial .product-section [class*="-label"],
body.editorial .product-section summary { font-size: .82rem; letter-spacing: .04em; }
body.editorial .product-section button[class*="chip"] { font-size: .92rem; }

/* ---------- 3. HERO MENOR (estava ~900px) — 2 colunas: texto + card lado a lado ---------- */
body.editorial .product-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center;
  padding: clamp(28px, 3.2vw, 46px) clamp(26px, 4vw, 72px) clamp(26px, 2.8vw, 42px);
  min-height: 0;
}
body.editorial .product-hero > div { max-width: 540px; }
body.editorial .product-hero p { max-width: none; }
body.editorial .product-hero .button-row { margin-top: 22px; }
@media (max-width: 900px) { body.editorial .product-hero { grid-template-columns: 1fr; } }
/* nos modos de capítulo o ativo é forçado a display:block; o hero precisa manter o grid */
body.editorial.ed-chaptered .product-main > section.product-hero.ed-chap { display: grid; }
/* seções fundidas em outro capítulo: espaçamento + fio de separação, e sem o numeral próprio (flui como continuação) */
body.editorial .ed-merged.ed-chap { padding-top: clamp(34px, 4vw, 56px); border-top: 1px solid rgba(9,33,44,.1); }
body.editorial .ed-merged .ed-masthead { display: none; }

/* ---------- 7. ERROS QUE ANULAM — polimento premium ---------- */
body.editorial .situacao-card { font-family: Georgia, serif; font-size: 1.05rem; border-radius: 13px; }
body.editorial .situacao-panel { border-radius: 16px; padding: 26px 30px; }
body.editorial .situacao-eyebrow { color: #C9B47A; letter-spacing: .12em; }
body.editorial .situacao-panel h3 { font-family: Georgia, serif; font-weight: 500; color: #fff; font-size: 1.5rem; }
body.editorial .situacao-panel > p { color: #EAE7DE; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.7; }

/* ---------- 8. CONTRASTE — varredura: texto legível em TODOS os cards navy ---------- */
/* corpo claro por padrão dentro dos painéis navy (a metade dourada do split é irmã, não é tocada) */
body.editorial .split-legitima :is(strong, span, p),
body.editorial .instrument-reco :is(p, strong, span, h3, div),
body.editorial .protecao-panel :is(p, strong, span, li, h3),
body.editorial .decision-panel :is(p, strong, span, h2) { color: #EAE7DE; }
/* rótulos pequenos dentro do navy → dourado claro (legível no escuro) */
body.editorial .split-legitima .split-tag,
body.editorial .instrument-reco .reco-label,
body.editorial .instrument-reco .reco-meta span,
body.editorial .protecao-panel .situacao-eyebrow,
body.editorial .decision-panel .eyebrow { color: #C9B47A; }
/* sub-rótulos / notas dentro do navy → cinza-claro */
body.editorial .split-legitima .split-sub { color: #CFC9B8; }
body.editorial .calculator-result .regime-note,
body.editorial .calculator-result .legitima-reading,
body.editorial .calculator-result :is(p, span):not(.split-tag):not(.split-sub) { color: #D2CCBC; }
body.editorial .calculator-result strong { color: #fff; }
/* número do erro: escuro no chip claro, claro no chip navy ativo */
body.editorial .situacao-card:not(.is-active) .sit-num { color: #2c2c2a; }
body.editorial .situacao-card.is-active .sit-num { color: #D9D4C3; }
/* rótulos dourados no PAPER: um tom mais escuro p/ leitura confortável (não afeta os do navy) */
body.editorial .section-heading .eyebrow,
body.editorial .extra-flag,
body.editorial .clz-kicker,
body.editorial .clz-fldl,
body.editorial .clz-lab,
body.editorial .clz-div em,
body.editorial .clz-pager .d,
body.editorial .liq-tag { color: #847a52; }
/* numeral do capítulo: dourado médio (legível mesmo grande) */
body.editorial .ed-num { color: #9a8a4e; }

/* ---------- 8b. RESPIRO no cabeçalho das seções (estava apertado) ---------- */
body.editorial .ed-masthead { margin-bottom: 18px; }
body.editorial .section-heading .eyebrow { margin-bottom: 13px; line-height: 1.5; }
body.editorial .section-heading h2 { margin-bottom: 16px; }
body.editorial .section-heading p.ed-lead { line-height: 1.66; margin-top: 16px; }
body.editorial .section-heading { margin-bottom: 36px; }

/* ---------- 9. RITMO UNIFORME DA CLÁUSULA (topo estava mais compacto que a base) ---------- */
body.editorial .clz-pull { margin-bottom: 22px; }
body.editorial .clz-palp { margin-bottom: 8px; }
body.editorial .clz-div { margin: 30px 0 22px; }
body.editorial .clz-fld { margin-bottom: 18px; }
body.editorial .clz-fldl { margin-bottom: 6px; }
body.editorial .clz-lei, body.editorial .clz-trap, body.editorial .clz-traptz { margin-bottom: 18px; }
@media (max-width: 900px) { body.editorial.ed-chaptered .product-main > section.product-hero.ed-chap { display: block; } }

/* ---------- 4. SIDEBAR confortável + submenu de cláusulas recolhível ---------- */
body.editorial .product-sidebar nav a { font-family: "Segoe UI", sans-serif; font-size: .95rem; letter-spacing: .005em; padding: 9px 12px; border-radius: 8px; }
body.editorial .product-sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
body.editorial .product-sidebar nav a[href="#clausulas"] { display: flex; align-items: center; justify-content: space-between; }
body.editorial .product-sidebar nav a[href="#clausulas"]::after { content: "\25BE"; font-size: .7rem; opacity: .55; transition: transform .3s; }
body.editorial.clz-open .product-sidebar nav a[href="#clausulas"]::after { transform: rotate(180deg); }
/* o submenu (div.clz-sub com as 19) vive recolhido; abre só quando relevante */
body.editorial .clz-sub { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .42s ease, opacity .3s ease; }
body.editorial.clz-open .clz-sub { max-height: 1600px; opacity: 1; }
body.editorial .clz-sl { font-size: .88rem; padding: 7px 12px; }
body.editorial .clz-sgh { font-size: .62rem; }

/* ---------- 5. PREMIUM (DNA da carta 5c): masthead + lead + respiro ---------- */
/* abertura de seção como capítulo de livro: numeral dourado + filete */
body.editorial .ed-masthead { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
body.editorial .ed-num { font-family: Georgia, serif; font-weight: 500; font-size: 1.5rem; line-height: 1; color: #C9B47A; }
body.editorial .ed-rule { height: 1px; flex: 0 0 110px; background: linear-gradient(90deg, #C9B47A, rgba(201,180,122,0)); }
/* eyebrow logo abaixo do numeral */
body.editorial .section-heading .eyebrow { margin-bottom: 10px; }
/* o lead da seção: serifado, encorpado, cor navy (presença editorial) */
body.editorial .section-heading p.ed-lead {
  font-family: Georgia, serif; font-size: 1.28rem; line-height: 1.8; color: #09212C; font-weight: 400;
  margin-top: 20px; max-width: 760px;
}
/* mais ar entre o título e o corpo, e entre blocos */
body.editorial .section-heading { margin-bottom: 30px; }
body.editorial .product-section { padding-top: clamp(56px, 6vw, 88px); }
body.editorial .product-section h3 { margin-top: 26px; }
/* hero: eyebrow com filete dourado curto (assinatura), título com mais presença */
body.editorial .product-hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
body.editorial .product-hero .eyebrow::after { content: ""; width: 46px; height: 1px; background: linear-gradient(90deg, #C9B47A, rgba(201,180,122,0)); }
body.editorial .product-hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.1rem); margin: 14px 0 18px; }

/* ---------- 6. CLÁUSULA: fim da colisão aspa/etiqueta (o selo é ligado via JS) ---------- */
/* a aspa dourada gigante batia na etiqueta acima — dou folga e reposiciono como floreio */
body.editorial .clz-lab { margin: 10px 0 38px; }
body.editorial .clz-pull { margin-top: 0; }
body.editorial .clz-pull::before { top: -2rem; left: -4px; font-size: 3.2rem; }
