/* ds.css — Design System do Sou Mãe (Fase 1 da reconstrução).
 *
 * Fonte dos tokens: @soumae/design-system (design-system/ds-bundle/_ds_bundle.css),
 * com duas reconciliações em relação ao bundle publicado:
 *   1. tipografia → Newsreader (serif) + Plus Jakarta Sans (sans), como nos
 *      protótipos aprovados (o bundle ainda declara Lato/Playfair/Roboto);
 *   2. aliases de paleta dos protótipos (--coral, --cocoa, --terra…), para que
 *      o HTML desenhado no Claude Design seja portado quase verbatim.
 *
 * Carregado como arquivo próprio (igual mamity-banners.css): fica FORA do
 * PurgeCSS do build (optimize_dist só processa site.css + layout.css).
 *
 * Escopo desta fase: chrome do site (header, nav, footer, newsletter, sidebar).
 * O corpo do artigo (.entry-content) continua estilizado pelo site.css legado.
 */

:root {
  /* --- tokens do design system (nomes verbatim do upstream) --- */
  --sm-color-cta:         #fe6060;
  --sm-color-cta-hover:   #c94545;
  --sm-mamity-bg-soft:    #fdf7ed;
  --sm-mamity-bg:         #f5ead8;
  --sm-mamity-accent:     #d97257;
  --sm-text-dark:         #2c1a0e;
  --sm-radius-pill:       999px;
  --sm-content-max-width: 1070px;

  /* tipografia nova (substitui Lato/Playfair/Roboto do bundle).
     Fallbacks para fontes de SISTEMA: as antigas não são mais baixadas. */
  --sm-font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sm-font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --sm-font-body:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* --- aliases dos protótipos (mesmas cores, nomes curtos) --- */
  --coral:      #fe6060;
  --coral-deep: #c94545;
  --orange:     #d97257;
  --terra:      #9d4a2f;
  --cream:      #fdf7ed;
  --sand:       #f5ead8;
  --ink:        #241710;
  --ink2:       #3a2618;
  /* --muted escurecido de #857162 para passar em AA (4.5:1) também sobre a
     AREIA, o fundo mais claro em que aparece: era 3.89 lá, agora 4.71. */
  --muted:      #786454;
  /* superfícies preenchidas com TEXTO BRANCO precisam de ≥4.5:1 — o coral
     (#fe6060) dá só 2.98, então o preenchimento usa o coral-deep (4.75) e o
     coral fica para marca, bordas, foco e hover. */
  --cta-fill:      #c94545;
  --cta-fill-hover:#a83a3a;
  --line:       #ece1d2;
  --cocoa:      #231510;
  --white:      #fffaf4;
}

/* ==========================================================================
   BASE DA PÁGINA — a "temperatura" do design.
   O tema legado (GeneratePress) usa fundo cinza-frio (#fbfbfb) e corpo em
   Source Serif Pro. Os protótipos são quentes (creme/areia) com corpo em
   Plus Jakarta Sans e títulos em Newsreader. É o que mais destoava.
   ========================================================================== */
body {
  background: var(--cream);
  font-family: var(--sm-font-body);
  color: var(--ink2);
}
/* contêiner do artigo e da listagem: branco quente, não branco puro.
   `.separate-containers` na frente porque é a especificidade que o
   GeneratePress usa para pintar o fundo (.separate-containers .inside-article). */
.inside-article,
.site-main > .page,
.separate-containers .inside-article,
.no-sidebar .inside-article { background: var(--white); }

.single .inside-article,
.page .inside-article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px 34px;
}
@media (max-width: 768px) {
  .single .inside-article,
  .page .inside-article { border-radius: 14px; padding: 20px 18px 26px; }
}

/* respiro entre o header e o conteúdo — o tema legado encostava um no outro */
.site-content { padding-top: 34px; padding-bottom: 46px; }
@media (max-width: 768px) { .site-content { padding-top: 20px; padding-bottom: 32px; } }

/* corpo do texto: ritmo de leitura do design */
.entry-content,
.entry-content p,
.entry-content li {
  font-family: var(--sm-font-body);
  color: var(--ink2);
  line-height: 1.72;
}
.entry-content p { margin-bottom: 1.35em; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.sm-site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-family: var(--sm-font-sans);
}
.sm-site-header__inner {
  max-width: var(--sm-content-max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.sm-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.sm-brand__mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
}
.sm-brand__word {
  font-family: var(--sm-font-serif);
  font-size: 22px; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em; line-height: 1;
}

/* --- navegação --- */
.sm-site-nav { flex: 1; }
.sm-site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.sm-site-nav__list a {
  font-size: 13.5px; font-weight: 500; color: var(--ink2);
  text-decoration: none; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.sm-site-nav__list a:hover,
.sm-site-nav__list a:focus-visible { color: var(--coral-deep); border-bottom-color: var(--coral); }

/* CTA do app, no fim da nav */
.sm-site-nav__cta a,
.sm-site-nav__list .sm-nav-cta a {
  background: var(--cocoa); color: #fff;
  border-radius: var(--sm-radius-pill);
  padding: 9px 17px; font-weight: 700; border-bottom: none;
}
.sm-site-nav__list .sm-nav-cta a:hover { background: var(--coral-deep); color: #fff; border-bottom-color: transparent; }

/* --- toggle mobile (usa o contrato do site.js: data-nav → .toggled) --- */
.sm-menu-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink2);
  align-items: center; gap: 8px;
}
.sm-menu-toggle svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 880px) {
  .sm-site-header__inner { flex-wrap: wrap; padding: 12px 16px; }
  .sm-menu-toggle { display: inline-flex; }
  .sm-site-nav { flex-basis: 100%; display: none; }
  .sm-site-nav.toggled { display: block; }
  .sm-site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .sm-site-nav__list li { border-top: 1px solid var(--line); }
  .sm-site-nav__list a { display: block; padding: 13px 2px; border-bottom: none; }
  .sm-site-nav__list .sm-nav-cta { border-top: none; padding-top: 12px; }
  .sm-site-nav__list .sm-nav-cta a { display: inline-block; }
}

/* ==========================================================================
   NEWSLETTER (topo do rodapé) — markup/JS preservados do original
   ========================================================================== */
.sm-newsletter {
  background: var(--sand);
  border-top: 1px solid var(--line);
  padding: 46px 20px;
  text-align: center;
  font-family: var(--sm-font-sans);
}
.sm-newsletter__inner { max-width: 560px; margin: 0 auto; }
.sm-newsletter__title {
  font-family: var(--sm-font-serif); font-weight: 500;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  color: var(--ink); margin: 0 0 10px; line-height: 1.15;
}
.sm-newsletter__lead { margin: 0 0 22px; color: var(--ink2); font-size: .96rem; line-height: 1.6; }
.sm-newsletter__form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sm-newsletter__input {
  flex: 1; min-width: 210px; padding: 13px 18px;
  border: 1px solid color-mix(in srgb, var(--terra) 22%, transparent);
  border-radius: var(--sm-radius-pill); font-size: 1rem; font-family: inherit;
  background: #fff; color: var(--ink);
}
.sm-newsletter__input:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.sm-newsletter__btn {
  background: var(--cta-fill); color: #fff; border: 0;
  padding: 13px 30px; border-radius: var(--sm-radius-pill);
  font-weight: 700; font-size: 1rem; font-family: inherit; cursor: pointer;
  transition: background .15s;
}
.sm-newsletter__btn:hover:not(:disabled) { background: var(--cta-fill-hover); }
.sm-newsletter__btn:disabled { opacity: .7; cursor: default; }
.sm-newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sm-newsletter__ts { width: 100%; display: flex; justify-content: center; margin: 4px 0; }
.sm-newsletter__msg { margin: 14px 0 0; font-size: .9rem; display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sm-site-footer {
  background: var(--cocoa); color: #e2d6c9;
  font-family: var(--sm-font-sans); font-size: 14px; line-height: 1.6;
}
.sm-site-footer__cols {
  max-width: var(--sm-content-max-width); margin: 0 auto;
  padding: 46px 20px 34px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.sm-site-footer h3 {
  font-family: var(--sm-font-serif); font-weight: 500;
  font-size: 1.2rem; color: #fff; margin: 0 0 14px;
}
.sm-site-footer p { margin: 0 0 12px; color: #c9b8aa; }
.sm-site-footer a { color: #e2d6c9; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.sm-site-footer a:hover { color: #fff; border-bottom-color: var(--coral); }
.sm-site-footer ul { list-style: none; margin: 0; padding: 0; }
.sm-site-footer li { margin-bottom: 9px; }
.sm-footer__social { display: flex; gap: 16px; flex-wrap: wrap; }
.sm-footer__cta {
  display: inline-block; background: var(--cta-fill); color: #fff !important;
  font-weight: 700; padding: 11px 22px; border-radius: var(--sm-radius-pill);
  text-decoration: none; font-size: 14px; border-bottom: none !important; margin-top: 4px;
}
.sm-footer__cta:hover { background: var(--cta-fill-hover); }
.sm-site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 20px; text-align: center; font-size: 12.5px; color: #9a8979;
}
@media (max-width: 880px) {
  .sm-site-footer__cols { grid-template-columns: 1fr; gap: 30px; padding: 34px 18px 26px; }
}

/* ==========================================================================
   ARTIGO (1.4) — tipografia e cabeçalho.
   Sobrescreve o site.css legado (ds.css carrega depois). O CORPO do post segue
   com o HTML do acervo intacto; aqui só mudam fonte, cor e ritmo.
   ========================================================================== */
.entry-header .entry-title,
.entry-title {
  font-family: var(--sm-font-serif);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.single .entry-title, .post .entry-title {
  font-size: clamp(1.9rem, 1.5rem + 1.9vw, 2.9rem);
  margin-bottom: 12px;
}
/* Meta (data/autor/categorias). O bloco de acessibilidade do base fixa #555
   (cinza frio) com !important e mesma especificidade — como ele carrega depois,
   a correção precisa de um nível a mais (.inside-article …). */
.entry-meta { font-family: var(--sm-font-sans); font-size: 13px; }
.inside-article .entry-meta,
.inside-article .entry-meta time,
.inside-article .entry-meta a { color: var(--muted) !important; }
.inside-article .entry-meta a:hover { color: var(--coral-deep) !important; }
.breadcrumb {
  font-family: var(--sm-font-sans);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral-deep); text-decoration: underline; }
.breadcrumb .sep { margin: 0 5px; color: var(--muted); }

/* títulos internos do artigo */
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--sm-font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.25;
}
.entry-content h2 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); margin-top: 1.9em; }
.entry-content h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }

/* links do corpo — coral no lugar do azul herdado do WP
   (o sublinhado vem das regras de acessibilidade inline do base) */
.entry-content a:not(.wp-block-button__link):not(.sm-mb-cta):not(.ig-card__cta) {
  color: var(--coral-deep);
}
.entry-content a:hover:not(.wp-block-button__link) { color: var(--terra); }

/* ==========================================================================
   LISTAGENS (1.3) — home, categorias e páginas de autor
   ========================================================================== */
.archive-header { margin-bottom: 30px; }
.archive-header h1 {
  font-family: var(--sm-font-serif); font-weight: 500;
  font-size: clamp(1.9rem, 1.5rem + 1.7vw, 2.7rem);
  line-height: 1.1; letter-spacing: -.02em; color: var(--ink);
  margin: 0 0 10px; text-wrap: balance;
}
.archive-header p {
  font-family: var(--sm-font-sans); font-size: 15px;
  color: var(--ink2); line-height: 1.6; margin: 0; max-width: 48em;
}
.archive-header .author-bio { margin-top: 18px; display: flex; gap: 16px; align-items: center; }
.archive-header .author-bio img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--orange) 40%, transparent);
  box-shadow: 0 16px 32px -20px rgba(40, 24, 12, .45);
}
.post-card .post-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.post-card .card-body h2 {
  font-family: var(--sm-font-serif); font-weight: 500;
  font-size: 1.16rem; line-height: 1.25; margin: 0; letter-spacing: -.01em;
}
.post-card .card-body h2 a { color: var(--ink); text-decoration: none; }
.post-card:hover .card-body h2 a { color: var(--coral-deep); }
.post-card .excerpt {
  font-family: var(--sm-font-sans); font-size: 13px;
  color: var(--muted); line-height: 1.55; margin: 0;
}

.pagination {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  margin: 44px 0 8px; font-family: var(--sm-font-sans); font-size: 14px;
}
.pagination a {
  color: var(--ink2); text-decoration: none; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--sm-radius-pill);
  padding: 9px 18px; background: var(--white);
}
.pagination a:hover { border-color: var(--coral); color: var(--coral-deep); }
.pagination .current { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sm-sidebar { font-family: var(--sm-font-sans); }
.sm-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; margin-bottom: 18px;
}
.sm-card__title {
  font-family: var(--sm-font-serif); font-weight: 500;
  font-size: 1.15rem; color: var(--ink); margin: 0 0 12px;
}
.sm-card ul { list-style: none; margin: 0; padding: 0; }
.sm-card li { margin-bottom: 10px; font-size: 13.5px; line-height: 1.5; }
.sm-card a { color: var(--ink2); }
.sm-card a:hover { color: var(--coral-deep); }

/* card da autora */
.sm-author-card { text-align: center; }
.sm-author-card__avatar {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block;
}
.sm-author-card__name {
  font-family: var(--sm-font-serif); font-weight: 500; font-size: 1.2rem;
  color: var(--ink); margin: 0 0 6px;
}
.sm-author-card__bio { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.sm-author-card__link {
  display: inline-block; padding: 8px 18px;
  border: 1.5px solid var(--coral); color: var(--coral-deep) !important;
  border-radius: var(--sm-radius-pill); text-decoration: none;
  font-weight: 600; font-size: 13px; border-bottom-width: 1.5px !important;
}
.sm-author-card__link:hover { background: var(--coral); color: #fff !important; }

/* card do app */
.sm-app-card {
  background: linear-gradient(160deg, var(--sand), var(--cream));
  border: 1px solid color-mix(in srgb, var(--orange) 26%, transparent);
  border-radius: 16px; padding: 22px 18px; margin-bottom: 18px; text-align: center;
}
.sm-app-card__eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 6px;
}
.sm-app-card__headline {
  font-family: var(--sm-font-serif); font-size: 1.15rem; color: var(--ink);
  line-height: 1.3; margin: 0 0 14px;
}
.sm-app-card__cta {
  display: inline-block; background: var(--terra); color: #fff !important;
  font-weight: 700; font-size: 13px; padding: 10px 20px;
  border-radius: var(--sm-radius-pill); text-decoration: none; border-bottom: none !important;
}
.sm-app-card__cta:hover { background: #7d3a24; }
.sm-sidebar__disclosure {
  font-size: 11px; color: var(--muted); font-style: italic;
  line-height: 1.45; margin: 8px 0 0; text-align: center;
}

/* ==========================================================================
   FORMULÁRIOS — newsletter + os do acervo (contato, lead magnets, calculadoras)
   Dois motivos para a força extra aqui:
   1. o tema estiliza por TIPO (`input[type="email"]` = 0,1,1), que vence uma
      classe do DS (0,1,0) — por isso os seletores abaixo qualificam por tipo;
   2. os formulários do acervo trazem a PALETA ANTIGA em estilo inline
      (ex.: botão rosa #d6809c na página de contato), e estilo inline só cede
      a !important.
   ========================================================================== */
.sm-newsletter input.sm-newsletter__input,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="date"],
.entry-content input[type="number"],
.entry-content input[type="tel"],
.entry-content textarea,
.entry-content select {
  background: #fff !important;
  border: 1px solid color-mix(in srgb, var(--terra) 20%, transparent) !important;
  border-radius: 12px !important;
  color: var(--ink2) !important;
  font-family: var(--sm-font-body) !important;
  font-size: 1rem;
  padding: 12px 15px !important;
}
.sm-newsletter input.sm-newsletter__input {
  border-radius: var(--sm-radius-pill) !important;
  padding: 13px 18px !important;
}
.sm-newsletter input.sm-newsletter__input:focus-visible,
.entry-content input:focus-visible,
.entry-content textarea:focus-visible,
.entry-content select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral) !important;
}
.entry-content label { font-family: var(--sm-font-sans); font-size: 13px; color: var(--muted); }

/* botões: o tema força CAIXA ALTA em todo <button> — o design usa caixa normal */
.sm-newsletter__btn,
.sm-app-card__cta,
.sm-author-card__link,
.sm-footer__cta,
.entry-content button,
.entry-content input[type="submit"],
.fase__card,
.fase__trocar,
.enx__acoes button,
.enx__limpar {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: var(--sm-font-body) !important;
}
/* CTA dos formulários do acervo → coral do DS (sobrepõe o inline antigo) */
.entry-content form button,
.entry-content form input[type="submit"] {
  background: var(--cta-fill) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--sm-radius-pill) !important;
  padding: 13px 30px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  cursor: pointer;
  transition: background .15s;
}
.entry-content form button:hover,
.entry-content form input[type="submit"]:hover { background: var(--cta-fill-hover) !important; }

/* ==========================================================================
   RESET DE VAZAMENTO DO CSS LEGADO
   O site.css (export do WordPress/GeneratePress) e o bloco inline de
   acessibilidade do base forçam `text-decoration: underline !important` em
   seletores amplos — `aside a`, `.widget a`, `.footer-widgets a`. A regra foi
   escrita para os LINKS DO ACERVO (onde o sublinhado é correto), mas alcança
   os componentes novos, deixando pílulas e CTAs sublinhados.
   Como o bloco inline carrega DEPOIS deste arquivo, a neutralização precisa de
   especificidade maior (não basta ordem). Some quando o site.css legado for
   aposentado, na limpeza da fase 1.6.
   ========================================================================== */
.sm-sidebar .sm-card a,
.sm-sidebar .sm-app-card a,
.sm-sidebar .sm-author-card a,
.sm-site-header .sm-site-nav a,
.sm-site-footer .sm-footer__cta,
.sm-newsletter .sm-newsletter__btn {
  text-decoration: none !important;
}
/* nos links de lista o sublinhado volta no hover — afordância sem poluição */
.sm-sidebar .sm-card li a:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* ==========================================================================
   IMPRESSÃO
   O conteúdo mais acessado do Sou Mãe é feito para SAIR NA IMPRESSORA
   ("50 desenhos para colorir e imprimir" é o post nº 1 de tráfego). Antes
   desta regra o site só tinha um @media print (o dos banners do Mamity), então
   header, navegação, sidebar, newsletter e rodapé escuro saíam junto com o
   desenho — desperdiçando tinta e papel na jornada mais importante do site.
   ========================================================================== */
@media print {
  /* fora da folha: tudo que é navegação, captação ou comercial */
  .sm-site-header, .sm-site-nav, .sm-menu-toggle,
  .sm-sidebar, #right-sidebar, .widget-area,
  .sm-newsletter, .sm-site-footer,
  .breadcrumb, .pagination, .entry-meta,
  .ig-card, .sm-ig-card, .skip-link,
  .sm-app-card, .sm-author-card { display: none !important; }

  /* a folha é branca — nada de fundo creme nem cartão */
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .site-content { padding: 0 !important; }
  .inside-article,
  .separate-containers .inside-article {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
  #primary, .content-area, .site-main { width: 100% !important; float: none !important; }

  .entry-title { font-size: 20pt; color: #000 !important; }
  .entry-content h2 { font-size: 14pt; }
  .entry-content, .entry-content p, .entry-content li { color: #000 !important; line-height: 1.5; }
  /* link impresso não precisa de cor nem sublinhado */
  .entry-content a { color: #000 !important; text-decoration: none !important; }

  /* imagem (o desenho) não pode ser cortada entre páginas */
  .entry-content img, .entry-content figure {
    max-width: 100% !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
}

/* ==========================================================================
   FERRAMENTA: ENXOVAL INTELIGENTE (Fase 2)
   Primeira ilha React do site. Estilo aqui (e não no componente) para seguir
   os mesmos tokens do resto e entrar no @media print junto com o artigo.
   ========================================================================== */
.enx { font-family: var(--sm-font-body); margin: 26px 0; }

.enx__config {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; background: var(--sand); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
}
.enx__config label { display: flex; flex-direction: column; gap: 6px; }
.enx__config span { font-size: 12px; font-weight: 700; color: var(--terra);
  text-transform: uppercase; letter-spacing: .05em; }
.enx__config select {
  padding: 11px 13px; border-radius: 10px; font-size: 15px;
  border: 1px solid color-mix(in srgb, var(--terra) 20%, transparent);
  background: #fff; color: var(--ink2); font-family: inherit;
}
.enx__resumo { margin: 18px 0 10px; font-size: 15px; color: var(--ink2); }

.enx__progresso { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.enx__barra { flex: 1; height: 9px; background: var(--line); border-radius: 999px; overflow: hidden; }
.enx__barra-fill { height: 100%; background: var(--cta-fill); border-radius: 999px; transition: width .25s ease; }
.enx__limpar { background: none; border: 0; color: var(--muted); text-decoration: underline;
  cursor: pointer; font-family: inherit; font-size: 13px; padding: 4px; }

.enx__cat { margin-bottom: 24px; }
.enx__cat h3 {
  font-family: var(--sm-font-serif); font-weight: 500; font-size: 1.3rem;
  color: var(--ink); margin: 0 0 10px; display: flex; align-items: center; gap: 9px;
}
.enx__cat h3 em { margin-left: auto; font-style: normal; font-family: var(--sm-font-sans);
  font-size: 12.5px; color: var(--muted); font-weight: 600; }
.enx__cat ul { list-style: none; margin: 0; padding: 0; }
.enx__cat li { border-bottom: 1px solid var(--line); }
.enx__cat li:last-child { border-bottom: 0; }
.enx__cat label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; cursor: pointer; }
.enx__cat input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--cta-fill); flex-shrink: 0; }
.enx__qtd { font-weight: 800; color: var(--terra); min-width: 30px; font-size: 14px; padding-top: 1px; }
.enx__nome { font-size: 15px; color: var(--ink2); line-height: 1.45; }
.enx__nome small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.enx__cat li.is-ok .enx__nome { color: var(--muted); text-decoration: line-through; }
.enx__cat li.is-ok .enx__qtd { color: var(--muted); }

.enx__tag { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.enx__tag--high { background: var(--cta-fill); color: #fff; }
.enx__tag--medium { background: var(--sand); color: var(--terra); }
.enx__tag--low { background: var(--line); color: var(--muted); }
.enx__nota { display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--terra); font-style: italic; }

.enx__acoes { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.enx__acoes button {
  background: var(--cta-fill); color: #fff; border: 0; border-radius: var(--sm-radius-pill);
  padding: 13px 28px; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer;
}
.enx__acoes button:hover { background: var(--cta-fill-hover); }
.enx__acoes p { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

@media (max-width: 600px) {
  .enx__config { padding: 16px; }
  .enx__cat h3 { font-size: 1.15rem; }
}

/* na impressão a lista vira papel de compras: sem controles, sem progresso */
@media print {
  .enx__config, .enx__progresso, .enx__acoes, .enx__limpar { display: none !important; }
  .enx__cat { break-inside: avoid; }
  .enx__cat input { -webkit-appearance: none; appearance: none;
    border: 1.5px solid #000; width: 14px; height: 14px; border-radius: 3px; }
  .enx__tag, .enx__nota { display: none !important; }
}

/* ==========================================================================
   "EM QUE FASE VOCÊ ESTÁ?" (Fase 2.3)
   A home deixa de ser vitrine de posts e vira ponto de partida da jornada.
   Dois estados: a pergunta (primeira visita) e o painel da fase (quem volta).
   ========================================================================== */
.fase { margin: 0 0 40px; font-family: var(--sm-font-sans); }

/* --- estado 1: a pergunta --- */
.fase--pergunta {
  background: linear-gradient(165deg, var(--cocoa), #3a221a 70%, var(--terra));
  border-radius: 22px; padding: 44px 36px; color: #f6ece2;
  position: relative; overflow: hidden;
}
.fase--pergunta::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(254, 96, 96, .12); pointer-events: none;
}
.fase__eyebrow {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--coral); margin: 0 0 12px;
}
.fase__titulo {
  font-family: var(--sm-font-serif); font-weight: 500;
  font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  line-height: 1.05; letter-spacing: -.02em; color: #fff; margin: 0 0 12px;
}
.fase__lead {
  margin: 0 0 26px; font-size: 15.5px; color: #d8c6b8;
  line-height: 1.55; max-width: 36em;
}
.fase__grade {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; position: relative;
}
.fase__card {
  text-align: left; cursor: pointer; font-family: inherit;
  background: rgba(255, 250, 244, .07);
  border: 1px solid rgba(255, 250, 244, .16);
  border-radius: 16px; padding: 16px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  transition: background .15s, border-color .15s, transform .15s;
}
.fase__card:hover, .fase__card:focus-visible {
  background: rgba(255, 250, 244, .14);
  border-color: rgba(255, 250, 244, .4); transform: translateY(-2px);
}
.fase__icone { font-size: 26px; line-height: 1; margin-bottom: 5px; }
.fase__card strong { font-size: 14.5px; color: #fff; line-height: 1.2; }
.fase__desc { font-size: 11.5px; color: #c3b1a3; line-height: 1.4; }

/* --- estado 2: o painel de quem volta --- */
.fase--painel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 28px;
}
.fase__cabeca { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.fase__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sand); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent);
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 700; color: var(--terra);
}
.fase__trocar {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; padding: 4px;
}
.fase__chamada {
  font-family: var(--sm-font-serif); font-weight: 500;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  color: var(--ink); margin: 0 0 18px; line-height: 1.2;
}
.fase__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fase__links a {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 18px;
  text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.fase__links a:hover { border-color: var(--coral); transform: translateX(3px); }
.fase__links .is-destaque a { background: var(--sand); border-color: color-mix(in srgb, var(--orange) 28%, transparent); }
.fase__link-txt { flex: 1; }
.fase__pill {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--cta-fill); color: #fff; border-radius: 999px; padding: 3px 9px;
}
.fase__seta { color: var(--coral-deep); font-size: 17px; }

@media (max-width: 600px) {
  .fase--pergunta { padding: 30px 20px; border-radius: 18px; }
  .fase--painel { padding: 20px 18px; }
  .fase__grade { grid-template-columns: 1fr 1fr; gap: 9px; }
  .fase__card { padding: 13px; }
  .fase__icone { font-size: 22px; }
  .fase__card strong { font-size: 13px; }
  .fase__desc { display: none; }
}

/* a jornada é navegação: não vai para o papel */
@media print { .fase { display: none !important; } }

/* --- hub de ferramentas (/ferramentas/) --- */
.fer__grade { list-style: none; margin: 26px 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.fer__grade li { margin: 0; }
.fer__grade a {
  display: flex; gap: 15px; align-items: flex-start; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; text-decoration: none !important; color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.fer__grade a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--orange) 42%, transparent);
  box-shadow: 0 16px 30px -22px rgba(40,24,12,.5); }
.fer__icone { width: 46px; height: 46px; border-radius: 13px; background: var(--sand);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.fer__txt strong { display: block; font-family: var(--sm-font-serif); font-weight: 500;
  font-size: 1.18rem; color: var(--ink); line-height: 1.25; margin-bottom: 5px; }
.fer__txt span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.fer__novo { display: inline-block; margin-left: 8px; font-style: normal; font-size: 10px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: var(--cta-fill); color: #fff; border-radius: 999px; padding: 3px 9px; vertical-align: 3px; }
@media print { .fer__grade a { break-inside: avoid; } }
