/* ═══════════════════════════════════════════════════════════
   FABIM · Página editorial "21 Erros Clássicos da Gestão de Projetos"
   Escopo .ed-* / .ch-* — herda tokens de assets/css/styles.css.
   Acento ciano/turquesa (progresso, números, ícones); verde = CTAs
   comerciais; laranja = alerta/risco. Deck é progressive enhancement:
   sem JS os 21 artigos ficam empilhados; com html.js-deck vira carrossel.
   ═══════════════════════════════════════════════════════════ */

[data-page="conteudo-21-erros"] {
  --acc: #22d3ee;          /* ciano */
  --acc-2: #2dd4bf;        /* turquesa */
  --acc-3: #38bdf8;        /* azul neon */
  --acc-soft: rgba(34, 211, 238, .13);
  --acc-line: rgba(34, 211, 238, .34);
  --risk: #ff8354;         /* laranja — alerta/erro/risco */
  --risk-soft: rgba(255, 131, 84, .13);
  --ok: #35d6a4;           /* verde-água — prevenção */
  --ok-soft: rgba(53, 214, 164, .13);
  --info: #6ab6f5;         /* causa raiz */
  --info-soft: rgba(106, 182, 245, .12);
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .075);
  --hair: rgba(255, 255, 255, .09);
  --hair-2: rgba(255, 255, 255, .17);
  --glow-acc: 0 0 44px rgba(34, 211, 238, .22);
  --ed-shadow: 0 26px 70px rgba(0, 0, 0, .5);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(34, 211, 238, .09), transparent 60%),
    radial-gradient(900px 600px at 0% 12%, rgba(47, 130, 220, .08), transparent 55%),
    var(--bg-0);
}
[data-page="conteudo-21-erros"] .scroll-progress { display: none; } /* usamos .ed-progress */

/* Utilitário: só-leitor-de-tela */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Controles que dependem de JS: escondidos até o carrossel inicializar */
html:not(.js-deck) [data-page="conteudo-21-erros"] .ed-js-only { display: none !important; }
body.ed-noscroll { overflow: hidden; }

.ed-section { padding: clamp(52px, 7vw, 104px) 0; position: relative; }
.ed-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--acc);
  margin-bottom: 14px;
}
.ed-kicker .ic { width: 15px; height: 15px; }
.ed-h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em; color: var(--txt-1); margin-bottom: 10px;
}
.ic { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: none; }

/* ── Botões ─────────────────────────────────────────────── */
.ed-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  min-height: 46px; border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  line-height: 1;
}
.ed-btn .ic { width: 17px; height: 17px; }
/* Primário = navegação/leitura (ciano) */
.ed-btn--primary { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #042028; box-shadow: var(--glow-acc); }
.ed-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 54px rgba(34, 211, 238, .4); }
/* CTA comercial = verde FABIM */
.ed-btn--cta { background: var(--grad-cta); color: var(--cta-ink); box-shadow: var(--glow-green); }
.ed-btn--cta:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(34, 197, 94, .45); }
.ed-btn--ghost { background: var(--panel); border-color: var(--hair-2); color: var(--txt-1); }
.ed-btn--ghost:hover { background: var(--panel-2); border-color: var(--acc-line); transform: translateY(-2px); }

/* ── Aviso de rascunho (discreto, controlado por html.is-draft) ── */
.ed-draft { display: none; }
html.is-draft .ed-draft {
  display: block; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 250; max-width: calc(100vw - 24px);
}
html.is-draft .ed-draft span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(20, 16, 6, .82); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 180, 80, .4); color: #ffcf94;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; box-shadow: var(--shadow-2);
}
html.is-draft .ed-draft .ic { width: 15px; height: 15px; color: #ffb454; }

/* ── Barra de progresso de leitura (topo) ───────────────── */
.ed-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent; pointer-events: none;
}
.ed-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc-3), var(--acc), var(--acc-2)); box-shadow: 0 0 12px rgba(34, 211, 238, .6); }

/* ── Figura com véu (imagens decorativas) ───────────────── */
.ed-fig { position: relative; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--hair); background: #0a1320; }
.ed-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-fig-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 22, .05), rgba(5, 12, 22, .5)); pointer-events: none; }

/* ── TOPO (hero + introdução) com fundo compartilhado ───── */
.ed-top { position: relative; }
.ed-top-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ed-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; opacity: .58; }
/* Fade escuro: imagem discreta, escurecendo em degradê e sumindo na linha do deck. */
.ed-hero-veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5, 10, 21, .94) 0%, rgba(5, 10, 21, .84) 36%, rgba(5, 10, 21, .52) 62%, rgba(5, 10, 21, .3) 90%),
  linear-gradient(180deg, rgba(5, 10, 21, .5) 0%, rgba(5, 10, 21, .34) 20%, rgba(5, 10, 21, .54) 48%, rgba(5, 10, 21, .84) 72%, rgba(5, 10, 21, .98) 100%); }

/* ── HERO (compacto — sem min-height) ───────────────────── */
.ed-hero { position: relative; z-index: 1; padding: clamp(116px, 14vh, 148px) 0 clamp(44px, 6vw, 64px); }
.ed-hero-crumb { margin-bottom: 18px; }
.ed-hero-text { max-width: 640px; }
.ed-hero-glow { position: absolute; top: -18%; right: -6%; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .26), transparent 62%); filter: blur(14px); pointer-events: none; }
.ed-hero-inner { position: relative; z-index: 1; }
.ed-hero .breadcrumb { margin-bottom: 20px; }
.ed-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ed-eyebrow .ic { width: 15px; height: 15px; }
.ed-hero-title { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; color: var(--txt-1); margin: 16px 0 0; max-width: 17ch; }
.ed-hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.45rem); font-weight: 600; color: var(--acc); margin-top: 12px; }
.ed-hero-desc { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--txt-2); max-width: 62ch; margin-top: 14px; line-height: 1.55; }
.ed-hero-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; margin-top: 22px; }
.ed-author { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--acc); }
.ed-author-name { font-weight: 700; color: var(--txt-1); }
.ed-author-role { font-size: .88rem; color: var(--txt-3); }
.ed-book { font-size: .9rem; color: var(--txt-3); }
.ed-book strong { color: var(--txt-2); }
.ed-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ed-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ed-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hair-2); color: var(--txt-2); font-size: .82rem; font-weight: 600; }
.ed-chip .ic { width: 15px; height: 15px; color: var(--acc); }

/* ── INTRODUÇÃO ─────────────────────────────────────────── */
.ed-intro { position: relative; z-index: 1; }
.ed-intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ed-stat { background: rgba(9, 16, 28, .62); backdrop-filter: blur(6px); }
.ed-checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-top: 6px; }
.ed-checklist li { display: flex; gap: 13px; color: var(--txt-2); line-height: 1.5; font-size: clamp(.98rem, 1.4vw, 1.08rem); }
.ed-check-ic { width: 20px; height: 20px; color: var(--acc); flex: none; margin-top: 2px; }
.ed-intro-stats { display: flex; flex-direction: column; gap: 14px; }
.ed-stat { position: relative; padding: 20px 22px; border-radius: var(--radius-l); background: var(--panel);
  border: 1px solid var(--hair); overflow: hidden; }
.ed-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--acc), var(--acc-2)); }
.ed-stat-v { display: block; font-family: var(--font-mono); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--acc); line-height: 1; }
.ed-stat-l { display: block; margin-top: 6px; color: var(--txt-3); font-size: .92rem; }

/* ═══════════════════════════════════════════════════════════
   DECK / CARROSSEL DOS 21 ERROS
   ═══════════════════════════════════════════════════════════ */
.ed-deck { border-top: 1px solid var(--hair); }
.ed-deck-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ed-deck-head-t { min-width: 0; }
.ed-deck-head-t .ed-h2 { margin-bottom: 0; }
.ed-deck-head-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Botão copiar link (compartilhado do deck) */
.ed-deck-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border-radius: 999px; border: 1px solid var(--hair-2); background: var(--panel); color: var(--txt-2);
  font-weight: 600; font-size: .85rem; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.ed-deck-copy .ic { width: 16px; height: 16px; }
.ed-deck-copy:hover { color: var(--acc); border-color: var(--acc-line); }
.ed-deck-copy.is-done { color: var(--ok); border-color: var(--ok); }

/* Viewport + trilho */
.ed-deck-viewport { border-radius: var(--radius-xl); }
.js-deck .ed-deck-viewport { overflow: hidden; position: relative; }
.js-deck .ed-deck-track { display: flex; width: 100%; transition: transform .22s var(--ease); }

/* Slide (um erro) — layout interno vale com e sem JS */
.ch { display: grid; grid-template-columns: 38fr 62fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.2vw, 42px); }
.ch > * { min-width: 0; }
/* Fallback (sem JS): artigos empilhados com divisória */
html:not(.js-deck) .ch + .ch { border-top: 1px solid var(--hair); }
/* Modo carrossel */
.js-deck .ch { flex: 0 0 100%; }

.ch-visual-inner { position: relative; }
.ch-fig { aspect-ratio: 4 / 3; box-shadow: var(--ed-shadow); }
.ch-fig::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--acc-line); pointer-events: none; opacity: .5; }
.ch-num { position: absolute; top: 8px; left: 10px; z-index: 2; font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1.4px rgba(34, 211, 238, .5); text-shadow: 0 2px 18px rgba(0, 0, 0, .5); pointer-events: none; }
.ch-icon { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(9, 16, 28, .82); backdrop-filter: blur(8px); border: 1px solid var(--acc-line); color: var(--acc); box-shadow: var(--glow-acc); }
.ch-icon .ic { width: 25px; height: 25px; }

.ch-body { display: flex; flex-direction: column; }
.ch-badge { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--font-mono); font-weight: 800;
  font-size: .8rem; letter-spacing: .06em; color: var(--acc); padding: 6px 13px; border-radius: 999px;
  background: var(--acc-soft); border: 1px solid var(--acc-line); margin-bottom: 12px; }
.ch-badge i { font-style: normal; color: var(--txt-3); font-weight: 600; }
.ch-title { font-size: clamp(1.4rem, 2.8vw, 2.05rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--txt-1); }
.ch-lead { margin-top: 10px; font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--txt-2); line-height: 1.5; }

.ch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.ch-card { padding: 14px 16px; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--hair); border-top: 2px solid var(--hair-2); }
.ch-card-h { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .7rem;
  font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.ch-card-h .ic { width: 15px; height: 15px; }
.ch-card p { color: var(--txt-2); font-size: .92rem; line-height: 1.48; }
.ch-card--risk { border-top-color: var(--risk); background: linear-gradient(180deg, var(--risk-soft), transparent 70%); }
.ch-card--risk .ch-card-h { color: var(--risk); }
.ch-card--cause { border-top-color: var(--info); background: linear-gradient(180deg, var(--info-soft), transparent 70%); }
.ch-card--cause .ch-card-h { color: var(--info); }
.ch-card--fix { border-top-color: var(--ok); grid-column: 1 / -1; background: linear-gradient(180deg, var(--ok-soft), transparent 70%); }
.ch-card--fix .ch-card-h { color: var(--ok); }

.ch-example { margin-top: 16px; border: 1px solid var(--hair); border-radius: var(--radius-m); background: rgba(255, 255, 255, .025); overflow: hidden; }
.ch-example summary { display: flex; align-items: center; gap: 9px; padding: 13px 16px; cursor: pointer; font-weight: 700; color: var(--txt-1); list-style: none; font-size: .92rem; min-height: 46px; }
.ch-example summary::-webkit-details-marker { display: none; }
.ch-example summary .ic { width: 16px; height: 16px; color: var(--acc); }
.ch-ex-caret { margin-left: auto; transition: transform var(--t-fast); }
.ch-example[open] .ch-ex-caret { transform: rotate(180deg); }
.ch-example-body { padding: 0 16px 15px; }
.ch-example-body p { color: var(--txt-2); line-height: 1.58; font-size: .93rem; }

/* Barra de controles do deck */
.ed-deck-bar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 22px; }
.ed-deck-nav { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 20px;
  border-radius: 999px; border: 1px solid var(--hair-2); background: var(--panel); color: var(--txt-1);
  font-weight: 700; font-size: .9rem; transition: border-color var(--t-fast), background var(--t-fast), opacity var(--t-fast); }
.ed-deck-nav .ic { width: 18px; height: 18px; }
.ed-deck-nav:hover:not([disabled]) { border-color: var(--acc-line); background: var(--panel-2); }
.ed-deck-nav[disabled] { opacity: .38; cursor: not-allowed; }
.ed-deck-next { margin-left: auto; }
.ed-deck-next.is-synth { border-color: var(--acc-line); color: var(--acc); background: var(--acc-soft); }
.ed-deck-meter { flex: 1 1 200px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 140px; }
.ed-deck-count { font-family: var(--font-mono); font-size: .82rem; color: var(--txt-3); letter-spacing: .02em; }
.ed-deck-count span { color: var(--acc); font-weight: 800; font-size: 1.05rem; }
.ed-deck-count i { font-style: normal; }
.ed-deck-progress { width: 100%; max-width: 340px; height: 4px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.ed-deck-progress-fill { display: block; height: 100%; width: 4.76%; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc-3), var(--acc)); box-shadow: 0 0 10px rgba(34, 211, 238, .5); transition: width .25s var(--ease); }

/* ── Drawer seletor (índice) ────────────────────────────── */
.ed-drawer { position: fixed; inset: 0; z-index: 600; }
.ed-drawer[hidden] { display: none; }
.ed-drawer-backdrop { position: absolute; inset: 0; background: rgba(3, 7, 14, .66); opacity: 0; transition: opacity .24s var(--ease); }
.ed-drawer.is-open .ed-drawer-backdrop { opacity: 1; }
.ed-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 92vw);
  background: var(--bg-2); border-left: 1px solid var(--hair-2); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease);
}
.ed-drawer.is-open .ed-drawer-panel { transform: translateX(0); }
.ed-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--hair); }
.ed-drawer-head strong { font-size: 1.05rem; color: var(--txt-1); }
.ed-drawer-close { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--hair-2); color: var(--txt-1); }
.ed-drawer-close:hover { background: var(--panel-2); }
.ed-drawer-list { overflow-y: auto; padding: 10px; flex: 1; }
.ed-drawer-item { display: flex; align-items: baseline; gap: 12px; padding: 12px 13px; border-radius: 10px; color: var(--txt-2); border: 1px solid transparent; }
.ed-drawer-item:hover { background: var(--panel); }
.ed-drawer-item.is-active { background: var(--acc-soft); border-color: var(--acc-line); color: var(--txt-1); }
.ed-drawer-item .n { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--acc); width: 24px; flex: none; }
.ed-drawer-item .t { font-size: .92rem; font-weight: 600; line-height: 1.35; }

/* ── SÍNTESE ────────────────────────────────────────────── */
.ed-synth { overflow: hidden; }
.ed-synth-bg { position: absolute; inset: 0; z-index: 0; }
.ed-synth-bg .ed-img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.ed-synth-inner { position: relative; z-index: 1; }
.ed-synth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.ed-synth-col { padding: 24px 26px; border-radius: var(--radius-l); background: rgba(9, 16, 28, .6); backdrop-filter: blur(8px); border: 1px solid var(--hair-2); }
.ed-synth-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; color: var(--txt-1); margin-bottom: 15px; }
.ed-synth-col--roots h3 .ic { color: var(--risk); }
.ed-synth-col--success h3 .ic { color: var(--ok); }
.ed-taglist { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.ed-taglist li { padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--txt-2);
  background: var(--risk-soft); border: 1px solid rgba(255, 131, 84, .3); }
.ed-taglist--ok li { background: var(--ok-soft); border-color: rgba(53, 214, 164, .3); }

/* ── CONCLUSÃO ──────────────────────────────────────────── */
.ed-conclusion { overflow: hidden; text-align: center; }
.ed-concl-bg { position: absolute; inset: 0; z-index: 0; }
.ed-concl-bg .ed-img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.ed-concl-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.ed-conclusion .ed-kicker { justify-content: center; }
.ed-quote { position: relative; margin: 26px auto 0; max-width: 780px; }
.ed-quote-mark { width: 40px; height: 40px; color: var(--acc); opacity: .8; margin-bottom: 6px; }
.ed-quote p { font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--txt-1); }
.ed-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: .95rem; color: var(--acc); font-weight: 600; }
.ed-concl-closing { margin-top: 24px; font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--txt-2); line-height: 1.6; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ── CTA ────────────────────────────────────────────────── */
.ed-cta { text-align: center; border-top: 1px solid var(--hair); }
.ed-cta-inner { max-width: 780px; margin: 0 auto; }
.ed-cta p { color: var(--txt-2); font-size: 1.05rem; margin-top: 8px; }
.ed-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.ed-cta-note { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 32px; padding-top: 22px;
  border-top: 1px solid var(--hair); font-size: .82rem !important; color: var(--txt-3) !important; }
.ed-cta-note .ic { width: 16px; height: 16px; color: var(--acc); flex: none; margin-top: 2px; }

/* ── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .ed-hero-title { max-width: 20ch; }
  /* Mobile: texto sobre a imagem em coluna única — véu mais forte, some na linha do deck */
  .ed-hero-veil { background: linear-gradient(180deg, rgba(5, 10, 21, .62) 0%, rgba(5, 10, 21, .8) 48%, rgba(5, 10, 21, .98) 100%); }
  .ed-intro-grid { grid-template-columns: 1fr; }
  .ed-intro-stats { flex-direction: row; flex-wrap: wrap; }
  .ed-intro-stats .ed-stat { flex: 1 1 150px; }
  /* Slide vira coluna única; imagem compacta 16:9 no topo */
  .ch { grid-template-columns: 1fr; gap: 22px; }
  .ch-fig { aspect-ratio: 16 / 9; }
  .ch-num { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .ed-synth-grid { grid-template-columns: 1fr; }
  .ed-deck-head { align-items: flex-start; }
  .ed-deck-head-actions { width: 100%; }
  .ed-deck-head-actions .ed-deck-choose { margin-left: auto; }
}
@media (max-width: 560px) {
  .ch-cards { grid-template-columns: 1fr; }
  .ch-card--fix { grid-column: auto; }
  .ed-hero-title { max-width: 100%; }
  /* Controles quebram linha; prev/next dividem a largura */
  .ed-deck-prev, .ed-deck-next { flex: 1 1 44%; justify-content: center; }
  .ed-deck-next { margin-left: 0; }
  .ed-deck-meter { order: -1; flex-basis: 100%; }
  .ed-deck-copy span { display: none; }
  .ed-deck-copy { padding: 10px 13px; }
}

/* ── Movimento reduzido ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js-deck .ed-deck-track { transition: none; }
  .ed-deck-progress-fill { transition: none; }
  .ed-drawer-panel, .ed-drawer-backdrop, .ed-btn, .ed-deck-copy, .ed-deck-nav, .ch-ex-caret { transition: none; }
  html { scroll-behavior: auto; }
}
