/* ══════════════════════════════════════════════════════════════
   WEUX Professional — Blog
   Design system herdado das LPs WEUX (petróleo + champagne + areia)
   ══════════════════════════════════════════════════════════════ */

:root {
  --wx-dark:      0, 48, 60;        /* #00303C — Petróleo Absoluto */
  --wx-overlay:   6, 39, 46;        /* #06272E — Abismo Estrutural */
  --wx-sand:      215, 209, 202;    /* #D7D1CA — Areia Sílica */
  --wx-sand-soft: 241, 238, 233;    /* fundo de página */
  --wx-ivory:     234, 227, 217;    /* off-white quente */
  --wx-champagne: 225, 192, 158;    /* #E1C09E — destaque / CTA */
  --wx-ocean:     34, 76, 90;       /* #224C5A */
  --wx-muted:     150, 138, 126;    /* #968A7E */

  /* container único do site inteiro */
  --wx-max:   1240px;
  --wx-pad-x: clamp(20px, 4.5vw, 56px);
  --wx-pad-y: clamp(44px, 5.5vw, 96px);
  --wx-read:  760px;   /* largura da coluna de leitura */

  --font-heading: 'nexa', system-ui, sans-serif;
  --font-body:    'nexa-text', system-ui, sans-serif;

  --wx-radius:    18px;
  --wx-radius-sm: 10px;
  --wx-ease:      cubic-bezier(.16, .8, .3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(var(--wx-dark));
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { max-width: 100%; display: block; }
a { color: rgb(var(--wx-dark)); text-decoration: none; }
::selection { background: rgb(var(--wx-dark)); color: rgb(var(--wx-sand)); }
input, select, textarea, button { font-family: inherit; }

:focus-visible { outline: 2px solid rgb(var(--wx-champagne)); outline-offset: 3px; border-radius: 4px; }

/* ══════════════ CONTAINER ÚNICO ══════════════
   Todo bloco de largura total do site usa exatamente estas medidas,
   então tudo alinha na mesma coluna — nav, hero, cards, artigo e rodapé. */
.wx-shell,
.wx-nav__inner,
.wx-catpanel__inner,
.wx-hero__inner,
.wx-post__head-inner,
.wx-post__media,
.wx-post__body,
.wx-post__foot,
.wx-footer__top,
.wx-footer__bottom {
  width: 100%;
  max-width: var(--wx-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wx-pad-x);
  padding-right: var(--wx-pad-x);
}

/* ---------- utilitários ---------- */
.wx-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ícones lucide inline — herdam cor e escalam com o texto do bloco */
.wx-ico { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

.wx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: rgb(var(--wx-champagne));
  color: rgb(var(--wx-overlay));
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wx-skip:focus { left: 12px; top: 12px; }

.wx-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgb(var(--wx-sand));
  border: 1px solid rgba(var(--wx-sand), .38);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 24px;
  transition: border-color .25s, color .25s;
}
a.wx-badge:hover { border-color: rgb(var(--wx-champagne)); color: rgb(var(--wx-champagne)); }

.wx-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 17px 32px;
  border: none;
  border-radius: var(--wx-radius-sm);
  cursor: pointer;
  transition: transform .3s var(--wx-ease), opacity .3s;
}
.wx-btn:hover { transform: translateY(-2px); }
.wx-btn--accent { background: rgb(var(--wx-champagne)); color: rgb(var(--wx-overlay)); }
.wx-btn--dark   { background: rgb(var(--wx-dark)); color: rgb(var(--wx-sand)); }

.wx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--wx-ease), transform .7s var(--wx-ease);
}
.wx-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wx-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ══════════════ NAV ══════════════ */
.wx-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 13px 0;
  background: rgba(var(--wx-overlay), .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--wx-sand), .14);
}
.wx-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wx-nav__logo-link { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.wx-nav__logo { height: 22px; width: auto; object-fit: contain; }
.wx-nav__logo-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(var(--wx-champagne), .9);
  padding-left: 11px;
  border-left: 1px solid rgba(var(--wx-sand), .28);
}
.wx-nav__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- botão Categorias ---------- */
.wx-catbtn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(var(--wx-sand));
  background: transparent;
  border: 1px solid rgba(var(--wx-sand), .26);
  border-radius: 999px;
  padding: 11px 20px 11px 17px;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.wx-catbtn:hover { border-color: rgba(var(--wx-champagne), .6); background: rgba(var(--wx-sand), .06); }
.wx-catbtn[aria-expanded="true"] {
  background: rgb(var(--wx-champagne));
  border-color: rgb(var(--wx-champagne));
  color: rgb(var(--wx-overlay));
}
.wx-catbtn__icon { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 15px; }
.wx-catbtn__icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--wx-ease), opacity .2s;
}
.wx-catbtn[aria-expanded="true"] .wx-catbtn__icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.wx-catbtn[aria-expanded="true"] .wx-catbtn__icon span:nth-child(2) { opacity: 0; }
.wx-catbtn[aria-expanded="true"] .wx-catbtn__icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- busca (ícone à direita = botão de enviar) ---------- */
.wx-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--wx-sand), .08);
  border: 1px solid rgba(var(--wx-sand), .18);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  transition: background .25s, border-color .25s;
}
.wx-search:focus-within { background: rgba(var(--wx-sand), .14); border-color: rgba(var(--wx-champagne), .5); }
.wx-search__input {
  width: 160px;
  font-size: 14px;
  color: rgb(var(--wx-sand));
  background: transparent;
  border: none;
  outline: none;
  padding: 7px 0;
  transition: width .3s var(--wx-ease);
}
.wx-search__input::placeholder { color: rgba(var(--wx-ivory), .45); }
.wx-search__input:focus { width: 220px; }
.wx-search__input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.wx-search__btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: rgb(var(--wx-sand));
  background: rgba(var(--wx-sand), .12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--wx-ease);
}
.wx-search__btn:hover { background: rgb(var(--wx-champagne)); color: rgb(var(--wx-overlay)); transform: scale(1.05); }
.wx-search__btn svg { width: 16px; height: 16px; }

/* ══════════════ PAINEL DE CATEGORIAS ══════════════ */
.wx-catpanel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 59;
  background: rgb(var(--wx-overlay));
  border-bottom: 1px solid rgba(var(--wx-sand), .14);
  box-shadow: 0 26px 54px rgba(0, 0, 0, .38);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .28s var(--wx-ease), transform .28s var(--wx-ease);
}
.wx-catpanel[hidden] { display: none; }
.wx-catpanel.is-open { opacity: 1; transform: none; }
.wx-catpanel__inner { padding-top: 28px; padding-bottom: 32px; }

.wx-catpanel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(var(--wx-sand), .14);
}
.wx-catpanel__label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(var(--wx-ivory), .5);
}
.wx-catpanel__todos {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(var(--wx-champagne));
  transition: gap .25s var(--wx-ease);
}
.wx-catpanel__todos svg { width: 16px; height: 16px; }
.wx-catpanel__todos:hover { gap: 14px; }

.wx-catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 4px;
}
.wx-catcard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .25s var(--wx-ease);
}
.wx-catcard:hover {
  background: rgba(var(--wx-sand), .07);
  border-color: rgba(var(--wx-sand), .14);
  transform: translateY(-2px);
}
.wx-catcard.is-active { background: rgba(var(--wx-champagne), .12); border-color: rgba(var(--wx-champagne), .3); }
.wx-catcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wx-catcard__nome {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: rgb(var(--wx-sand));
}
.wx-catcard:hover .wx-catcard__nome,
.wx-catcard.is-active .wx-catcard__nome { color: rgb(var(--wx-champagne)); }
.wx-catcard__total {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(var(--wx-ivory), .42);
  font-variant-numeric: tabular-nums;
}
.wx-catcard__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(var(--wx-ivory), .5);
}

/* ══════════════ HERO ══════════════ */
.wx-hero {
  position: relative;
  background: rgb(var(--wx-dark));
  color: rgb(var(--wx-sand));
  padding: clamp(52px, 6vw, 92px) 0;
  overflow: hidden;
}
.wx-hero__bg { position: absolute; inset: 0; z-index: 0; }
.wx-hero__bg picture { display: block; width: 100%; height: 100%; }
.wx-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.wx-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(var(--wx-overlay), .96) 0%, rgba(var(--wx-overlay), .84) 42%, rgba(var(--wx-overlay), .42) 100%);
}
.wx-hero__inner { position: relative; z-index: 2; }
.wx-hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -.022em;
  max-width: 17ch;
  text-wrap: balance;
}
.wx-hero__text {
  margin-top: 20px;
  max-width: 50ch;
  font-size: clamp(15px, 1.2vw, 16.5px);
  line-height: 1.6;
  color: rgba(var(--wx-ivory), .72);
}
.wx-hero--compact { padding: clamp(36px, 4vw, 58px) 0; }
.wx-hero--compact .wx-hero__title { font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; }
.wx-hero--compact .wx-badge { margin-bottom: 18px; }

/* ══════════════ BREADCRUMB ══════════════ */
.wx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(var(--wx-dark), .6);
}
.wx-breadcrumb a { color: inherit; transition: color .2s; }
.wx-breadcrumb a:hover { color: rgb(var(--wx-dark)); }
.wx-breadcrumb__sep { display: inline-flex; opacity: .45; }
.wx-breadcrumb__sep .wx-ico { width: 13px; height: 13px; }
.wx-breadcrumb--light,
.wx-breadcrumb--light a { color: rgba(var(--wx-ivory), .62); }
.wx-breadcrumb--light a:hover { color: rgb(var(--wx-champagne)); }
.wx-breadcrumb--light .wx-breadcrumb__atual { color: rgba(var(--wx-ivory), .9); }

/* ══════════════ SEÇÕES ══════════════ */
.wx-section { padding: var(--wx-pad-y) 0; }
.wx-section--white { background: #fff; }
.wx-section--soft  { background: rgb(var(--wx-sand-soft)); }
.wx-section--sand  { background: rgb(var(--wx-sand)); }

.wx-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.wx-section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(23px, 2.8vw, 33px);
  line-height: 1.14;
  letter-spacing: -.014em;
  text-wrap: pretty;
}
.wx-section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--wx-dark), .6);
  border-bottom: 1px solid rgba(var(--wx-dark), .26);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.wx-section__link .wx-ico { width: 15px; height: 15px; transition: transform .3s var(--wx-ease); }
.wx-section__link:hover { color: rgb(var(--wx-dark)); border-color: rgb(var(--wx-dark)); }
.wx-section__link:hover .wx-ico { transform: translateX(3px); }

/* ══════════════ CARDS ══════════════ */
.wx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 34px);
}
.wx-card { display: flex; flex-direction: column; background: transparent; }
.wx-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: rgb(var(--wx-sand));
  border-radius: 14px;
  overflow: hidden;
}
.wx-card__media picture, .wx-card__media img { width: 100%; height: 100%; }
.wx-card__media img { object-fit: cover; transition: transform .8s var(--wx-ease); }
.wx-card:hover .wx-card__media img { transform: scale(1.045); }
.wx-card__flag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(var(--wx-overlay));
  background: rgb(var(--wx-champagne));
  padding: 6px 11px;
  border-radius: 999px;
}
.wx-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 2px 0; }
.wx-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(var(--wx-muted));
}
.wx-card__cat { color: rgb(var(--wx-ocean)); }
.wx-card__sep { width: 14px; height: 1px; background: currentColor; opacity: .5; }
.wx-card__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -.008em;
  margin-top: 12px;
  text-wrap: pretty;
}
.wx-card__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s var(--wx-ease);
}
.wx-card:hover .wx-card__title a { background-size: 100% 1px; }
.wx-card__excerpt { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(var(--wx-dark), .6); }
.wx-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(var(--wx-dark), .5);
  transition: color .3s;
}
.wx-card__more svg { width: 15px; height: 15px; transition: transform .3s var(--wx-ease); }
.wx-card:hover .wx-card__more { color: rgb(var(--wx-dark)); }
.wx-card:hover .wx-card__more svg { transform: translateX(4px); }

/* meta genérica (artigo) */
.wx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgb(var(--wx-muted));
}
.wx-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.wx-meta--light { color: rgba(var(--wx-ivory), .62); }

/* ══════════════ PAGINAÇÃO ══════════════ */
.wx-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: clamp(34px, 4vw, 56px);
}
.wx-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: rgba(var(--wx-dark), .68);
  background: #fff;
  border: 1px solid rgba(var(--wx-dark), .12);
  border-radius: var(--wx-radius-sm);
  transition: all .25s;
}
.wx-page:hover { border-color: rgba(var(--wx-dark), .4); color: rgb(var(--wx-dark)); }
.wx-page.is-active { background: rgb(var(--wx-dark)); border-color: rgb(var(--wx-dark)); color: rgb(var(--wx-sand)); }
.wx-page--gap { border: none; background: transparent; min-width: 20px; color: rgba(var(--wx-dark), .4); }
.wx-page svg { width: 16px; height: 16px; }

/* ══════════════ ESTADO VAZIO ══════════════ */
.wx-empty { text-align: center; padding: clamp(40px, 6vw, 86px) 20px; color: rgba(var(--wx-dark), .62); }
.wx-empty__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 27px);
  color: rgb(var(--wx-dark));
  margin-bottom: 12px;
}

/* ══════════════ ARTIGO ══════════════ */
.wx-post { background: #fff; }
.wx-post__head {
  padding: clamp(30px, 3.6vw, 50px) 0 clamp(32px, 3.8vw, 52px);
  background: rgb(var(--wx-overlay));
  color: rgb(var(--wx-sand));
}
/* o artigo ocupa 100% do container; só o lead mantém medida de leitura */
.wx-post__lead { max-width: 68ch; }

.wx-post__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.wx-post__lead {
  margin-top: 18px;
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  line-height: 1.6;
  color: rgba(var(--wx-ivory), .7);
}
.wx-post__meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--wx-sand), .16);
}
.wx-meta__item { display: inline-flex; align-items: center; gap: 8px; }
.wx-meta__item .wx-ico { width: 14px; height: 14px; color: rgb(var(--wx-champagne)); opacity: .85; }

.wx-post__media { padding-top: clamp(28px, 3.4vw, 48px); }
.wx-post__media-frame {
  border-radius: var(--wx-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgb(var(--wx-sand));
}
.wx-post__media-frame img { width: 100%; height: 100%; object-fit: cover; }

.wx-post__body { padding-top: clamp(34px, 4vw, 54px); padding-bottom: clamp(20px, 3vw, 32px); }

/* com sumário, o corpo vira duas colunas e preenche o container inteiro */
.wx-post__body--toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(30px, 3.4vw, 62px);
  align-items: start;
}
.wx-post__body--toc .wx-article { grid-column: 1; grid-row: 1; }
.wx-post__body--toc .wx-toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 92px;
  margin-bottom: 0;
}
.wx-post__foot {
  padding-bottom: clamp(34px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.wx-post__divider { height: 1px; background: rgba(var(--wx-dark), .12); }

/* sumário */
.wx-toc {
  background: rgb(var(--wx-sand-soft));
  border: 1px solid rgba(var(--wx-dark), .1);
  border-radius: var(--wx-radius);
  padding: 22px 26px;
  margin-bottom: 34px;
}
.wx-toc__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgb(var(--wx-muted));
  margin-bottom: 12px;
}
.wx-toc__title .wx-ico { width: 14px; height: 14px; color: rgb(var(--wx-ocean)); }
.wx-toc ol { list-style: none; counter-reset: toc; }
.wx-toc li { counter-increment: toc; padding: 5px 0; }
.wx-toc li.li--sub { padding-left: 20px; counter-increment: none; }
.wx-toc a { font-size: 15px; line-height: 1.5; color: rgba(var(--wx-dark), .78); transition: color .2s; }
.wx-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgb(var(--wx-muted));
  margin-right: 10px;
}
.wx-toc li.li--sub a::before { content: '—'; }
.wx-toc a:hover { color: rgb(var(--wx-ocean)); }

/* tipografia do conteúdo */
.wx-article { font-size: 17.5px; line-height: 1.78; color: rgba(var(--wx-dark), .88); }
.wx-article > * + * { margin-top: 1.35em; }
.wx-article p { text-wrap: pretty; }
.wx-article h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.2;
  letter-spacing: -.014em;
  color: rgb(var(--wx-dark));
  margin-top: 2em;
  padding-top: .55em;
  border-top: 1px solid rgba(var(--wx-dark), .12);
  scroll-margin-top: 96px;
}
.wx-article h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.3;
  color: rgb(var(--wx-dark));
  margin-top: 1.7em;
  scroll-margin-top: 96px;
}
.wx-article h4 { font-family: var(--font-heading); font-weight: 500; font-size: 18px; color: rgb(var(--wx-dark)); margin-top: 1.5em; }
.wx-article a {
  color: rgb(var(--wx-ocean));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.wx-article a:hover { color: rgb(var(--wx-dark)); }
.wx-article strong { font-weight: 600; color: rgb(var(--wx-dark)); }
.wx-article em { font-style: italic; }
/* listas com marcadores em ícone (lucide check) */
.wx-article ul { list-style: none; padding-left: 0; }
.wx-article ul li { position: relative; padding-left: 36px; }
.wx-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .22em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(var(--wx-champagne), .3)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300303C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}
/* listas numeradas com selo */
.wx-article ol { list-style: none; padding-left: 0; counter-reset: wx-ol; }
.wx-article ol li { position: relative; padding-left: 42px; counter-increment: wx-ol; }
.wx-article ol li::before {
  content: counter(wx-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .12em;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(var(--wx-dark));
  color: rgb(var(--wx-champagne));
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .04em;
}
.wx-article li { margin-top: .55em; }
.wx-article ul ul, .wx-article ol ol, .wx-article ul ol, .wx-article ol ul { margin-top: .55em; }

.wx-article blockquote {
  position: relative;
  border-left: 2px solid rgb(var(--wx-champagne));
  border-radius: 0 var(--wx-radius-sm) var(--wx-radius-sm) 0;
  background: rgb(var(--wx-sand-soft));
  padding: 24px 28px 24px 64px;
  font-size: 1.04em;
  line-height: 1.6;
  color: rgba(var(--wx-dark), .8);
  font-style: italic;
}
.wx-article blockquote::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 26px;
  width: 22px; height: 22px;
  opacity: .75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E1C09E'%3E%3Cpath d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2h-1a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2H4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wx-article img { border-radius: var(--wx-radius-sm); margin-left: auto; margin-right: auto; }
.wx-article figure figcaption { margin-top: 8px; font-size: 13.5px; color: rgba(var(--wx-dark), .55); text-align: center; }
.wx-article hr { border: none; border-top: 1px solid rgba(var(--wx-dark), .14); margin: 2.2em 0; }
.wx-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  display: block;
  overflow-x: auto;
}
.wx-article th, .wx-article td { border: 1px solid rgba(var(--wx-dark), .14); padding: 12px 14px; text-align: left; }
.wx-article th {
  background: rgb(var(--wx-sand-soft));
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wx-article code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .88em;
  background: rgba(var(--wx-dark), .07);
  padding: 2px 6px;
  border-radius: 5px;
}
.wx-article pre {
  background: rgb(var(--wx-overlay));
  color: rgb(var(--wx-sand));
  padding: 20px 22px;
  border-radius: var(--wx-radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.wx-article pre code { background: none; padding: 0; }
.wx-article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: none; border-radius: var(--wx-radius-sm); }

/* tags */
.wx-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wx-tags__icon { display: inline-flex; color: rgb(var(--wx-muted)); margin-right: 2px; }
.wx-tags__icon .wx-ico { width: 17px; height: 17px; }
.wx-tag {
  font-family: var(--font-heading);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(var(--wx-dark), .72);
  border: 1px solid rgba(var(--wx-dark), .2);
  border-radius: 999px;
  padding: 8px 15px;
  transition: all .25s;
}
.wx-tag:hover { background: rgb(var(--wx-dark)); color: rgb(var(--wx-sand)); border-color: rgb(var(--wx-dark)); }

/* compartilhar */
.wx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wx-share__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgb(var(--wx-muted));
}
.wx-share__label .wx-ico { width: 15px; height: 15px; }
.wx-share__icons { display: flex; gap: 8px; }
.wx-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: rgba(var(--wx-dark), .75);
  background: transparent;
  border: 1px solid rgba(var(--wx-dark), .18);
  border-radius: 50%;
  cursor: pointer;
  transition: all .25s;
}
.wx-iconbtn:hover { background: rgb(var(--wx-dark)); color: rgb(var(--wx-sand)); border-color: rgb(var(--wx-dark)); }
.wx-iconbtn svg { width: 17px; height: 17px; }
.wx-copy-wrap { position: relative; }
.wx-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgb(var(--wx-dark));
  color: rgb(var(--wx-sand));
  font-size: 11.5px;
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.wx-hidden { display: none !important; }

/* autor */
.wx-author {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgb(var(--wx-sand-soft));
  border-radius: var(--wx-radius);
  padding: 22px 26px;
}
.wx-author__avatar {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgb(var(--wx-dark));
  color: rgb(var(--wx-champagne));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
}
.wx-author__name { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 500; font-size: 16px; }
.wx-author__name .wx-ico { width: 14px; height: 14px; color: rgb(var(--wx-ocean)); }
.wx-author__bio { font-size: 14.5px; line-height: 1.6; color: rgba(var(--wx-dark), .66); margin-top: 3px; }

/* navegação entre posts */
.wx-postnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.wx-postnav__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(var(--wx-dark), .12);
  border-radius: var(--wx-radius-sm);
  padding: 18px 20px;
  transition: border-color .25s, background .25s;
}
.wx-postnav__item:hover { border-color: rgba(var(--wx-dark), .32); background: rgb(var(--wx-sand-soft)); }
.wx-postnav__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgb(var(--wx-muted));
}
.wx-postnav__label .wx-ico { width: 15px; height: 15px; transition: transform .3s var(--wx-ease); }
.wx-postnav__item:hover .wx-ico { transform: translateX(-4px); }
.wx-postnav__title { font-family: var(--font-heading); font-weight: 500; font-size: 16px; line-height: 1.35; }
.wx-postnav__item--next { text-align: right; }
.wx-postnav__item--next .wx-postnav__label { justify-content: flex-end; }
.wx-postnav__item--next:hover .wx-ico { transform: translateX(4px); }

/* CTA final */
.wx-cta {
  background: rgb(var(--wx-dark));
  color: rgb(var(--wx-sand));
  border-radius: var(--wx-radius);
  padding: clamp(28px, 3.5vw, 42px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wx-cta__title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; max-width: 22ch; }
.wx-cta__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(var(--wx-ivory), .74); max-width: 44ch; }

/* ══════════════ FOOTER ══════════════ */
.wx-footer { background: rgb(var(--wx-dark)); color: rgba(var(--wx-ivory), .66); }
.wx-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 4vw, 72px);
  padding-top: clamp(46px, 5vw, 72px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.wx-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.wx-footer__logo { height: 26px; width: auto; object-fit: contain; }
.wx-footer__pitch {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(var(--wx-ivory), .58);
  max-width: 34ch;
}
.wx-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: clamp(26px, 3vw, 44px);
}
.wx-footer__col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.wx-footer__label {
  font-family: var(--font-heading);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(var(--wx-ivory), .42);
  margin-bottom: 3px;
}
.wx-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(var(--wx-ivory), .72);
  transition: color .22s, transform .22s var(--wx-ease);
}
.wx-footer__link .wx-ico { width: 16px; height: 16px; color: rgba(var(--wx-champagne), .7); transition: color .22s; }
.wx-footer__link:hover { color: rgb(var(--wx-champagne)); transform: translateX(3px); }
.wx-footer__link:hover .wx-ico { color: rgb(var(--wx-champagne)); }

/* a linha divisória atravessa o rodapé inteiro */
.wx-footer__rule { border-top: 1px solid rgba(var(--wx-sand), .12); }

.wx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  padding-bottom: 26px;
}
.wx-footer__copy {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--wx-ivory), .5);
}
.wx-footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--wx-ivory), .6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .22s;
}
.wx-footer__totop:hover { color: rgb(var(--wx-champagne)); }
.wx-footer__totop .wx-ico { width: 15px; height: 15px; }

/* voltar ao topo flutuante */
.wx-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--wx-dark));
  color: rgb(var(--wx-champagne));
  border: 1px solid rgba(var(--wx-sand), .18);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.wx-totop.is-visible { opacity: 1; transform: none; }
.wx-totop .wx-ico { width: 18px; height: 18px; }

/* ══════════════ RESPONSIVO ══════════════ */
@media (max-width: 1080px) {
  .wx-footer__top { grid-template-columns: 1fr; }
}

/* sumário volta a ficar acima do texto */
@media (max-width: 1000px) {
  .wx-post__body--toc { display: block; }
  .wx-post__body--toc .wx-toc { position: static; margin-bottom: 34px; }
}

/* busca vira só o botão; o campo abre em uma barra abaixo do header */
@media (max-width: 860px) {
  .wx-search {
    background: transparent;
    border-color: transparent;
    padding: 0;
    gap: 0;
  }
  .wx-search:focus-within { background: transparent; border-color: transparent; }
  .wx-search__input,
  .wx-search__input:focus { width: 0; padding: 0; opacity: 0; pointer-events: none; }
  .wx-search__btn { background: rgba(var(--wx-sand), .1); border: 1px solid rgba(var(--wx-sand), .22); width: 42px; height: 42px; }

  .wx-search.is-open {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: 58;
    gap: 10px;
    padding: 14px var(--wx-pad-x);
    background: rgb(var(--wx-overlay));
    border-radius: 0;
    border-bottom: 1px solid rgba(var(--wx-sand), .14);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .32);
  }
  .wx-search.is-open .wx-search__input,
  .wx-search.is-open .wx-search__input:focus {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    padding: 12px 18px;
    background: rgba(var(--wx-sand), .09);
    border: 1px solid rgba(var(--wx-sand), .18);
    border-radius: 999px;
  }
}

@media (max-width: 640px) {
  .wx-catbtn__label { display: none; }
  .wx-catbtn { padding: 12px 14px; }
  .wx-catbtn__icon { width: 17px; }
  .wx-nav__logo-tag { display: none; }
  .wx-catpanel__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wx-post__media-frame { aspect-ratio: 4 / 3; }
  .wx-article { font-size: 16.5px; }
  .wx-cta { flex-direction: column; align-items: flex-start; }
  .wx-postnav__item--next { text-align: left; }
  .wx-author { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wx-footer__bottom { flex-direction: column; align-items: flex-start; }
  .wx-totop { right: 14px; bottom: 14px; }
}

@media print {
  .wx-nav, .wx-catpanel, .wx-footer, .wx-totop, .wx-share, .wx-cta, .wx-skip { display: none !important; }
  body { background: #fff; }
  .wx-post__head { background: #fff; color: #000; }
}
