/* ============================================
   Wapfy Blog — Design editorial premium
   Inspirado em limify.pro/blog
   Logo + paleta + tipografia oficial Wapfy
   ============================================ */

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* TOKENS */
:root {
  /* Paleta oficial Wapfy */
  --wapfy-primary: #438EF8;
  --wapfy-primary-2: #5FA3FF;
  --wapfy-dark: #1A274D;
  --wapfy-deep: #004DB8;
  --wapfy-accent: #73A3F1;

  /* Editorial palette */
  --bg: #F4F4F4;
  --bg-warm: #EFEFEF;
  --bg-paper: #FFFFFF;
  --ink: #1A274D;
  --ink-2: #2B3654;
  --ink-soft: rgba(26, 39, 77, 0.72);
  --ink-mute: rgba(26, 39, 77, 0.55);
  --rule: rgba(26, 39, 77, 0.12);
  --rule-2: rgba(26, 39, 77, 0.20);

  --gradient-blue: linear-gradient(135deg, #438EF8 0%, #004DB8 100%);
  --gradient-blue-deep: linear-gradient(180deg, #2C5FBF 0%, #1A3A8A 100%);

  --shadow-card: 0 1px 2px rgba(26, 39, 77, 0.04), 0 8px 24px rgba(26, 39, 77, 0.06);
  --shadow-hero: 0 30px 60px rgba(26, 39, 77, 0.18);

  --maxw: 1200px;
  --readw: 720px;

  --font-display: "Public Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
}

/* ===== NAVBAR — IDÊNTICA AO SITE PRINCIPAL ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.18s ease;
}
.nav-logo:hover { opacity: 0.78; }
.nav-logo svg { width: auto; height: 30px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  transition: color 0.18s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-link-active { color: var(--wapfy-primary); font-weight: 600; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wapfy-primary);
  background: white;
  border: 1px solid rgba(67, 142, 248, 0.2);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nav-login:hover {
  border-color: rgba(67, 142, 248, 0.5);
  background: rgba(67, 142, 248, 0.04);
}
.nav-login svg { color: var(--wapfy-primary); }

.nav-trial {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--gradient-blue);
  box-shadow: 0 6px 18px rgba(67, 142, 248, 0.32);
  transition: all 0.18s ease;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.nav-trial:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(67, 142, 248, 0.42);
}
.nav-trial-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
}
.nav-trial-icon svg { width: 12px; height: 12px; }

.nav-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: var(--wapfy-primary);
  transition: background 0.18s ease;
}
.nav-menu-btn:hover { background: rgba(67, 142, 248, 0.10); }
.nav-menu-btn svg { width: 20px; height: 20px; }

/* Mobile */
@media (max-width: 920px) {
  .nav-inner { grid-template-columns: auto auto; }
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: inline-flex; }
}

/* Mobile menu drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 100;
  padding: 96px 32px 48px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer-close {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wapfy-primary);
}
.nav-drawer-close:hover { background: rgba(67, 142, 248, 0.10); }
.nav-drawer a {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.18s ease;
}
.nav-drawer a:hover { color: var(--wapfy-primary); }
.nav-drawer-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  color: white !important;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 18px;
  border-bottom: none !important;
  align-self: flex-start;
}

/* ===== CONTAINERS ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.read { max-width: var(--readw); margin: 0 auto; padding: 0 28px; }

/* ===== EYEBROW / META META ===== */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wapfy-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.crumb {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}
.crumb a:hover { color: var(--wapfy-primary); }
.crumb .arrow { opacity: 0.4; }

/* ===== HERO LISTING ===== */
.list-hero {
  padding: 64px 0 36px;
}
.list-hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-weight: 700;
  color: var(--ink);
  max-width: 13ch;
  margin-top: 24px;
}
.list-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--wapfy-primary);
}
.list-hero .lead {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.list-hero-meta {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.list-hero-meta strong { color: var(--ink); font-weight: 600; }

/* ===== PILLAR CARD ===== */
.pillar {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hero);
}
.pillar-cover {
  position: relative;
  background: var(--gradient-blue-deep);
  min-height: 440px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
}
.pillar-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 30% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(255, 255, 255, 0.10), transparent 70%);
  pointer-events: none;
}
/* Corner brackets — inspired in limify */
.pillar-cover .bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.pillar-cover .bracket.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.pillar-cover .bracket.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.pillar-cover .bracket.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.pillar-cover .bracket.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.pillar-cover .glyph {
  font-family: var(--font-display);
  font-size: clamp(96px, 14vw, 200px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: white;
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.pillar-cover .glyph-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-top: 12px;
}
.pillar-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pillar-body .eyebrow { margin-bottom: 18px; }
.pillar-body h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.pillar-body p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.pillar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.pillar-meta .author-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.pillar-meta .author-info {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.pillar-meta .author-name { color: var(--ink); font-weight: 600; }
.pillar-meta .author-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 2px;
}

@media (max-width: 820px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar-cover { min-height: 280px; padding: 28px; }
  .pillar-body { padding: 36px 28px; }
}

/* ===== SECTION HEAD ===== */
.section-head {
  margin: 96px 0 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}
.section-head .count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ===== FILTER ===== */
.filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}
.filter button {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-paper);
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}
.filter button:hover {
  color: var(--ink);
  border-color: var(--rule-2);
}
.filter button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ===== ARTICLE GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-paper);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background 0.2s ease;
  position: relative;
}
.card:hover { background: var(--bg-paper); }
.card:hover h3 a { color: var(--wapfy-primary); }
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--wapfy-primary);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 14px;
}
.card h3 a {
  color: var(--ink);
  transition: color 0.18s ease;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: auto;
}
.card-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ===== CTA STRIP ===== */
.cta-strip {
  margin: 96px 0 0;
  background: var(--gradient-blue);
  border-radius: 4px;
  padding: 80px 56px;
  position: relative;
  overflow: hidden;
  color: white;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.cta-strip .eyebrow { color: rgba(255, 255, 255, 0.75); position: relative; }
.cta-strip h2 {
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-weight: 700;
  color: white;
  margin: 14px 0 0;
  position: relative;
}
.cta-strip-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cta-strip-side p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}
.cta-strip .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--wapfy-deep) !important;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s ease;
}
.cta-strip .btn:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
  .cta-strip { grid-template-columns: 1fr; padding: 56px 32px; gap: 28px; }
}

/* ===== FOOTER — IDÊNTICO AO SITE ===== */
.footer {
  margin-top: 96px;
  background: var(--gradient-blue);
  color: white;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 80% 20%, rgba(255, 255, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.footer-headline {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 28px 48px;
  position: relative;
}
.footer-headline h2 {
  font-size: clamp(56px, 11vw, 132px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-weight: 800;
  color: white;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
}
.footer-brand .logo-svg { height: 30px; margin-bottom: 22px; display: block; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white !important;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.footer-contact:hover { background: rgba(255, 255, 255, 0.22); }
.footer h4 {
  font-size: 14px;
  color: white;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer li a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  transition: color 0.18s ease;
}
.footer li a:hover { color: white; }
.footer-address {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}
.footer-bottom .unkern {
  font-style: italic;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-headline { padding: 64px 28px 36px; }
}

/* =================================================================
   ARTICLE PAGE — editorial layout (limify-inspired)
   ================================================================= */

.art-hero {
  padding: 56px 0 0;
}
.art-hero .crumb { margin-bottom: 24px; }
.art-hero .eyebrow {
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.art-hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 700;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 28px;
}
.art-hero .lead {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}
.art-hero .meta-bar {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 14px;
}
.art-hero .author-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.art-hero .meta-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.art-hero .meta-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Hero cover — bloco azul tipográfico */
.art-cover {
  margin: 56px auto 0;
  max-width: var(--maxw);
  padding: 0 28px;
}
.art-cover-inner {
  background: var(--gradient-blue-deep);
  border-radius: 4px;
  padding: 80px 72px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}
.art-cover-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 30% 0%, rgba(255, 255, 255, 0.15), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.art-cover-inner .bracket {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.art-cover-inner .bracket.tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.art-cover-inner .bracket.tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.art-cover-inner .bracket.bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.art-cover-inner .bracket.br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }
.art-cover-inner .top-tag {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}
.art-cover-inner .glyph {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: white;
  position: relative;
  z-index: 1;
}
.art-cover-inner .glyph-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .art-cover-inner { padding: 40px 28px; min-height: 280px; }
}

/* Article body */
.art-body {
  margin: 64px auto 0;
  max-width: var(--maxw);
  padding: 0 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 920px) {
  .art-body { grid-template-columns: 1fr; gap: 32px; }
}

/* TOC — sidebar */
.toc {
  position: sticky;
  top: 100px;
  font-size: 13px;
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.45;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--wapfy-primary);
  font-weight: 500;
  padding-top: 1px;
}
.toc li a {
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.toc li a:hover { color: var(--ink); }
.toc li.active a { color: var(--ink); font-weight: 600; }
@media (max-width: 920px) {
  .toc {
    position: static;
    background: var(--bg-paper);
    padding: 24px 24px 16px;
    border-radius: 4px;
    border: 1px solid var(--rule);
  }
}

/* TLDR */
.tldr {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.tldr-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wapfy-primary);
  margin-bottom: 14px;
  font-weight: 500;
}
.tldr p { color: var(--ink); }

/* Prose */
.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
}
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  margin-top: 56px;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin-top: 36px;
}
.prose p { color: var(--ink-2); }
.prose p:first-child::first-line {
  /* drop-line emphasis */
}
.prose ul, .prose ol {
  padding-left: 22px;
  color: var(--ink-2);
}
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; color: var(--ink); }
.prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--wapfy-primary);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.prose blockquote p { color: var(--ink); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: rgba(67, 142, 248, 0.12);
  color: var(--wapfy-deep);
  border-radius: 4px;
  font-weight: 500;
}
.prose pre {
  background: var(--ink);
  color: white;
  padding: 22px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  margin: 24px 0;
}
.prose pre code { background: none; color: white; padding: 0; }
.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}
.prose a {
  color: var(--wapfy-primary);
  border-bottom: 1px solid currentColor;
  transition: color 0.18s ease;
}
.prose a:hover { color: var(--wapfy-deep); }

/* Inline callout */
.callout {
  margin: 40px 0;
  padding: 32px;
  background: var(--gradient-blue);
  color: white;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.callout * { position: relative; }
.callout .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.callout h4 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}
.callout p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  line-height: 1.6;
}
.callout .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--wapfy-deep) !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: none !important;
  transition: transform 0.18s ease;
}
.callout .btn:hover { transform: translateY(-2px); }

/* FAQ */
.faq {
  margin: 64px auto 0;
  max-width: var(--maxw);
  padding: 64px 28px 0;
  border-top: 1px solid var(--rule);
}
.faq-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: 100px;
}
.faq-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.faq h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
}
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--wapfy-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq summary + p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 920px) {
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-aside { position: static; }
}

/* Author bio */
.author-bio {
  margin: 64px auto 0;
  max-width: var(--readw);
  padding: 36px;
  background: var(--bg-paper);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
  margin-left: 28px;
  margin-right: 28px;
}
@media (min-width: 720px) { .author-bio { margin-left: auto; margin-right: auto; } }
.author-bio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  grid-row: 1 / span 2;
}
.author-bio h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.author-bio .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wapfy-primary);
  margin-bottom: 12px;
  font-weight: 500;
}
.author-bio p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 540px) {
  .author-bio { grid-template-columns: 1fr; text-align: left; }
  .author-bio img { grid-row: auto; }
}

/* Continue */
.continue {
  margin: 96px auto 0;
  max-width: var(--maxw);
  padding: 64px 28px 0;
  border-top: 1px solid var(--rule);
}
.continue h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
}

/* Reading progress */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--wapfy-primary);
  transition: width 0.05s linear;
}

/* Selection */
::selection {
  background: var(--wapfy-primary);
  color: white;
}
/* =========================================================
   ARTICLE PAGE — backwards-compat for the 30 article files
   Maps the existing wf-* markup to the design language above.
   ========================================================= */

.wf-eyebrow, .wf-categories,
.wf-bento, .wf-section, .wf-hero, .wf-hero-bg, .wf-hero-inner, .wf-hero-meta,
.wf-featured, .wf-featured-tag, .wf-featured-content, .wf-featured-cover,
.wf-featured-meta, .wf-featured-cta, .wf-featured-visual,
.wf-author-hero, .wf-author-chip, .wf-burger,
.wf-card-num, .wf-card-glyph { display: none !important; }
body::before { display: none !important; }

.wf-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--rule); }
.wf-nav-inner { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.wf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.wf-brand img { width: 30px; height: 30px; border-radius: 8px; }
.wf-nav-links { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0; flex: 1; }
.wf-nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.005em; transition: color 0.18s ease; background: transparent !important; padding: 6px 0; border-radius: 0; }
.wf-nav-links a:hover { color: var(--ink); background: transparent !important; }
.wf-nav-links a[aria-current=page] { color: var(--wapfy-primary); font-weight: 600; background: transparent !important; }
.wf-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 999px; background: var(--gradient-blue); color: white; font-weight: 600; font-size: 14px; letter-spacing: -0.005em; border: 0; box-shadow: 0 6px 18px rgba(67,142,248,0.32); transition: all 0.18s ease; }
.wf-cta:hover { background: var(--gradient-blue); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(67,142,248,0.42); }
.wf-cta--whats { background: var(--gradient-blue); }
.wf-cta--whats:hover { background: var(--gradient-blue); }

.wf-breadcrumb { font-size: 13px; color: var(--ink-mute); display: flex; gap: 8px; align-items: center; font-weight: 500; max-width: var(--maxw); margin: 32px auto 0; padding: 0 28px; }
.wf-breadcrumb a:hover { color: var(--wapfy-primary); }
.wf-breadcrumb .sep { opacity: 0.4; margin: 0; }
.wf-shell { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wf-shell--wide { max-width: 1240px; }

.wf-article-hero { max-width: var(--maxw); margin: 0 auto; padding: 56px 28px 0; text-align: left; }
.wf-article-hero .wf-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wapfy-primary); margin: 0 0 32px; display: inline-block; background: transparent; border: 0; padding: 0; border-radius: 0; }
.wf-article-hero .wf-tag::before { display: none; }
.wf-article-hero h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; color: var(--ink); max-width: 16ch; margin: 0 0 28px; text-align: left; }
.wf-article-hero .dek { font-size: 18px; color: var(--ink-soft); line-height: 1.55; max-width: 60ch; margin: 0; text-align: left; }
.wf-article-hero .wf-article-meta { margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: flex-start; gap: 14px; font-size: 14px; color: var(--ink); flex-wrap: wrap; }
.wf-author { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 14px; }
.wf-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 0; box-shadow: none; flex-shrink: 0; }
.wf-article-meta .dot { color: var(--ink-mute); font-family: var(--font-mono); }
.wf-article-meta time, .wf-article-meta > span:not(.wf-author):not(.dot) { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }

.wf-article-cover { margin: 56px auto 0; max-width: var(--maxw); width: calc(100% - 56px); padding: 80px 72px; position: relative; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; color: white; aspect-ratio: auto; background: var(--gradient-blue-deep); border-radius: 4px; box-shadow: none; }
.wf-article-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 30% 0%, rgba(255,255,255,0.15), transparent 70%), radial-gradient(40% 60% at 100% 100%, rgba(255,255,255,0.08), transparent 70%); pointer-events: none; opacity: 1; mix-blend-mode: normal; }
.wf-article-cover::after { display: none !important; }
.wf-article-cover-num { font-family: var(--font-display); font-size: clamp(120px, 22vw, 320px); font-weight: 800; line-height: 0.82; letter-spacing: -0.06em; color: white; opacity: 1; position: relative; right: auto; bottom: auto; z-index: 1; }
@media (max-width: 720px) { .wf-article-cover { padding: 40px 28px; min-height: 280px; width: calc(100% - 32px); } }

.wf-tldr { max-width: var(--readw); margin: 64px auto 48px; padding: 0 28px 36px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
.wf-tldr-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wapfy-primary); margin: 0 0 14px; font-weight: 500; display: block; }
.wf-tldr-title::before { display: none; }
.wf-tldr p { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0; font-weight: 500; }

.wf-article-body { max-width: var(--readw); margin: 0 auto; padding: 0 28px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.wf-article-body > .wf-tldr { padding-left: 0; padding-right: 0; max-width: 64ch; }
.wf-article-body > * + * { margin-top: 22px; }
.wf-article-body p.lede { font-size: 19px; line-height: 1.55; color: var(--ink); font-weight: 500; max-width: 64ch; }
.wf-article-body h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; color: var(--ink); margin-top: 56px; scroll-margin-top: 100px; }
.wf-article-body h2::before { display: none !important; }
.wf-article-body h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 700; color: var(--ink); margin-top: 36px; }
.wf-article-body p { color: var(--ink-2); margin: 0 0 22px; max-width: 64ch; }
.wf-article-body ul, .wf-article-body ol { padding-left: 22px; color: var(--ink-2); margin: 0 0 22px; max-width: 64ch; }
.wf-article-body li { margin-bottom: 8px; line-height: 1.65; }
.wf-article-body strong { color: var(--ink); font-weight: 700; }
.wf-article-body em { font-style: italic; color: var(--ink); }
.wf-article-body blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--wapfy-primary); font-size: 19px; line-height: 1.5; color: var(--ink); font-style: italic; background: transparent; font-weight: normal; border-radius: 0; max-width: 64ch; }
.wf-article-body blockquote p { color: var(--ink); margin: 0; }
.wf-article-body code { font-family: var(--font-mono); font-size: 0.92em; padding: 2px 6px; background: rgba(67,142,248,0.12); color: var(--wapfy-deep); border-radius: 4px; font-weight: 500; }
.wf-article-body a { color: var(--wapfy-primary); border-bottom: 1px solid currentColor; font-weight: 500; transition: color 0.18s ease; }
.wf-article-body a:hover { color: var(--wapfy-deep); }
.wf-article-body table { width: 100%; max-width: 64ch; border-collapse: collapse; margin: 24px 0; font-size: 15px; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.wf-article-body table th, .wf-article-body table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.wf-article-body table th { background: var(--bg-warm); font-weight: 700; color: var(--ink); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.wf-article-body table tr:last-child td { border-bottom: 0; }

.wf-callout { margin: 32px 0; padding: 24px 28px; background: var(--bg-paper); border: 1px solid var(--rule); border-left: 3px solid var(--wapfy-primary); border-radius: 4px; max-width: 64ch; }
.wf-callout::before { display: none !important; }
.wf-callout strong { color: var(--ink); }
.wf-callout p:last-child { margin-bottom: 0; }

.wf-cta-block { max-width: var(--readw); margin: 64px auto; padding: 32px; background: var(--gradient-blue); color: white; border-radius: 4px; position: relative; overflow: hidden; display: block; text-align: left; box-shadow: none; }
.wf-cta-block::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,0.18), transparent 70%); pointer-events: none; opacity: 1; mix-blend-mode: normal; width: auto; height: auto; border-radius: 0; filter: none; }
.wf-cta-block::after { display: none !important; }
.wf-cta-block h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; margin: 0 0 10px; color: white; position: relative; }
.wf-cta-block p { color: rgba(255,255,255,0.92); margin: 0 0 18px; line-height: 1.6; font-size: 15px; position: relative; max-width: none; }
.wf-cta-block .wf-cta { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--wapfy-deep) !important; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 0; box-shadow: none; position: relative; transition: transform 0.18s ease; }
.wf-cta-block .wf-cta:hover { background: white; color: var(--wapfy-deep); transform: translateY(-2px); box-shadow: none; }

.wf-author-card { margin: 64px auto; max-width: var(--readw); padding: 36px; background: var(--bg-paper); border-radius: 4px; display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: start; border: 0; box-shadow: var(--shadow-card); }
.wf-author-card img, .wf-author-card .av { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 0; box-shadow: none; flex-shrink: 0; }
.wf-author-card .av { background: linear-gradient(135deg, var(--wapfy-dark), var(--wapfy-primary)); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.wf-author-card .name { font-size: 18px; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.wf-author-card .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wapfy-primary); margin: 0 0 12px; font-weight: 500; }
.wf-author-card .bio { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.wf-related { max-width: var(--maxw); margin: 96px auto 0; padding: 64px 28px 0; border-top: 1px solid var(--rule); }
.wf-related h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; color: var(--ink); margin: 0 0 32px; text-align: left; padding: 0; }
.wf-related .wf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 920px) { .wf-related .wf-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .wf-related .wf-grid { grid-template-columns: 1fr; } }

.wf-card { background: var(--bg-paper); padding: 32px 28px 28px; display: flex; flex-direction: column; min-height: 280px; position: relative; border: 0; border-radius: 0; box-shadow: none; gap: 0; transition: background 0.2s ease; }
.wf-card:hover { transform: none; box-shadow: none; border-color: transparent; }
.wf-card:hover h3 a { color: var(--wapfy-primary); }
.wf-card .wf-card-cover { display: none !important; }
.wf-card .wf-card-body { padding: 0; gap: 12px; flex: 1; }
.wf-card > .wf-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--wapfy-primary); text-transform: uppercase; background: transparent; border: 0; padding: 0; margin: 0 0 14px; display: inline-block; }
.wf-card > .wf-tag::before { display: none; }
.wf-card h3 { font-size: 21px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 14px; color: var(--ink); }
.wf-card h3 a { color: var(--ink); transition: color 0.18s ease; background: none; }
.wf-card h3 a:hover { background: none; color: var(--wapfy-primary); }
.wf-card p.dek { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 auto; flex: 1; }
.wf-card .wf-meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-mute); text-transform: uppercase; background: transparent; border-bottom: 0; }
.wf-card .wf-meta strong { color: var(--ink-mute); font-weight: 500; }

.wf-footer { margin-top: 96px; padding: 0; background: var(--gradient-blue); color: white; position: relative; overflow: hidden; }
.wf-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 20%, rgba(255,255,255,0.10), transparent 70%); pointer-events: none; }
.wf-footer::after { display: none !important; }
.wf-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 88px 28px 56px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; position: relative; }
.wf-footer-brand .wf-brand { color: white; font-size: 22px; }
.wf-footer-brand .wf-brand img { filter: brightness(0) invert(1); border-radius: 8px; }
.wf-footer-brand p { color: rgba(255,255,255,0.9); font-size: 14px; max-width: 320px; line-height: 1.55; margin: 12px 0 24px; }
.wf-footer h4 { font-size: 14px; color: white; margin: 0 0 18px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wf-footer ul { list-style: none; padding: 0; margin: 0; display: block; }
.wf-footer li { margin-bottom: 12px; }
.wf-footer ul a { color: rgba(255,255,255,0.82); font-size: 14px; }
.wf-footer ul a:hover { color: white; }
.wf-footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); max-width: var(--maxw); margin: 0 auto; padding: 28px; font-size: 13px; color: rgba(255,255,255,0.78); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 920px) { .wf-footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .wf-footer-inner { grid-template-columns: 1fr; } }

/* =========================================================
   Cover illustrations — category-themed SVG decoration
   ========================================================= */

/* Article cover: SVG positioned center-right behind the number */
.wf-article-cover { padding-right: 320px; }
.wf-article-cover::after {
  content: ""; display: block !important;
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 360px; height: 240px;
  background-repeat: no-repeat; background-position: center right; background-size: contain;
  opacity: 0.95; pointer-events: none; z-index: 0;
}
body[data-cat=atend] .wf-article-cover::after { background-image: url('/images/blog/cat-atend.svg'); }
body[data-cat=ia]    .wf-article-cover::after { background-image: url('/images/blog/cat-ia.svg'); }
body[data-cat=nicho] .wf-article-cover::after { background-image: url('/images/blog/cat-nicho.svg'); }
body[data-cat=op]    .wf-article-cover::after { background-image: url('/images/blog/cat-op.svg'); }
body[data-cat=comp]  .wf-article-cover::after { background-image: url('/images/blog/cat-comp.svg'); }
@media (max-width: 720px) {
  .wf-article-cover { padding-right: 28px; }
  .wf-article-cover::after { width: 50%; opacity: 0.4; right: 12px; }
}

/* Pillar cover: SVG positioned top-right of the cover panel */
.pillar-cover { position: relative; }
.pillar-cover[data-illust]::after,
.pillar[data-cat] .pillar-cover::after {
  content: ""; position: absolute; right: 16px; top: 16px;
  width: 56%; max-width: 280px; height: 50%;
  background-repeat: no-repeat; background-position: center right; background-size: contain;
  opacity: 0.9; pointer-events: none; z-index: 0;
}
.pillar[data-cat=atend] .pillar-cover::after { background-image: url('/images/blog/cat-atend.svg'); }
.pillar[data-cat=ia]    .pillar-cover::after { background-image: url('/images/blog/cat-ia.svg'); }
.pillar[data-cat=nicho] .pillar-cover::after { background-image: url('/images/blog/cat-nicho.svg'); }
.pillar[data-cat=op]    .pillar-cover::after { background-image: url('/images/blog/cat-op.svg'); }
.pillar[data-cat=comp]  .pillar-cover::after { background-image: url('/images/blog/cat-comp.svg'); }
.pillar-cover .glyph,
.pillar-cover .glyph-sub,
.pillar-cover .bracket { z-index: 1; }
