/* Tema claro (padrão) */
[data-theme="light"] {
  --bs-warning: #FFAF1F;
  --bs-warning-hover: #FF9E00;
  --bs-warning-rgb: 255, 175, 31;
  --bs-secondary: #FFCB4B;
  --bs-secondary-hover: #FBC02D;
  --bs-light: #FEFEFE;
  --bs-light-rgb: 254, 254, 254;
  --bs-dark: #1E1E1E;
  --bs-dark-rgb: 30, 30, 30;
  --navbar-bg: var(--bs-light);
  --navbar-text: #000;
  --bs-opacity-b-65: rgba(0, 0, 0, 0.65);
  /*#5CC7FF*/
}

/* Tema escuro (cores invertidas) */
[data-theme="dark"] {
  --bs-warning: #799cff;
  --bs-warning-rgb: 121, 156, 255;
  --bs-secondary1: #ffcb4b;
  --bs-secondary-hover1: #FBC02D;
  --bs-light: #1E1E1E;
  --bs-light-rgb: 30, 30, 30;
  --bs-dark: #FEFEFE;
  --bs-dark-rgb: 254, 254, 254;
  --navbar-bg: var(--bs-dark);
  --navbar-text: #FFF;
  --bs-opacity-b-65: rgba(255, 255, 255, 0.65);
}

/* ======================================================================
   SlabWare Blog — blog.css
   Extends Promotion.css (landing page). Do not redefine :root tokens.
   All colors/fonts come from the shared design system.
   ====================================================================== */

/* ─── PAGE BASE ─────────────────────────────────────────────────────── */
body {
  background: var(--ink);
  color: var(--snow);
  font-family: "Open Sans", "Inter", sans-serif;
}

/* White background variant for single posts */
body.blog-post-page {
  background: #ffffff;
  color: #1a1a1e;
}

body.blog-post-page .blog-hero-title,
body.blog-post-page .blog-hero-sub,
body.blog-post-page .post-full-content,
body.blog-post-page h1,
body.blog-post-page h2,
body.blog-post-page h3,
body.blog-post-page h4 {
  color: #111;
}

body.blog-post-page .opacity-75,
body.blog-post-page .opacity-25 {
  color: #666;
  opacity: 1 !important;
}

body.blog-post-page hr {
  border-color: rgba(0, 0, 0, 0.1);
}

body.blog-post-page .post-ad-card {
  background: #f8f9fa;
  border-color: #eee;
  color: #111 !important;
}

body.blog-post-page .post-ad-title {
  color: #111;
}

body.blog-post-page .post-ad-card:hover {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.blog-post-page .blog-hero,
body.blog-post-page .sec,
body.blog-post-page section.block {
  background: #ffffff !important;
  color: #111 !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.blog-post-page .blog-hero .bg-atmosphere {
  opacity: 0.05;
  /* Suaviza as manchas de cor no fundo branco */
}

/* ======================================================================
   SW NAVBAR — MasterPage identical (SlabWare production classes)
   ====================================================================== */

/* Override generic nav reset */
#mainNavbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: auto;
  min-height: 68px;
  padding: 0 !important;
  background: rgba(9, 9, 11, 0.96) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
  transition: box-shadow 0.3s;
}

.max-w-1920 {
  max-width: 1920px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: 68px;
}

@media (min-width: 1200px) {
  .max-w-1920 {
    padding: 8px 32px;
  }
}

/* Logo */
.imgs-versoes-app {
  height: 34px;
  width: auto;
}

/* Toggler */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Nav links */
#mainNavbar .nav-link {
  font-weight: 600 !important;
  font-size: 16px !important;
  color: rgba(238, 235, 230, 0.9) !important;
  padding: 8px 10px !important;
  transition: color 0.2s !important;
  white-space: nowrap;
}

#mainNavbar .nav-link:hover {
  color: #ffaf1f !important;
}

#mainNavbar .nav-link.active {
  color: #ffaf1f !important;
}

/* ─── MasterPage mega menu classes ────────────────────── */

/* Background */
.bg-gray-navbar {
  background-color: #1a1a1e !important;
  color: #eeebe6 !important;
}

/* Full-width mega menu anchoring */
.navbar .position-static>.bg-gray-navbar {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Navbar title (product name) */
.navbar-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 2px !important;
}

/* Navbar subtitle text */
.navbar-subtitle {
  font-size: 0.75rem;
  color: rgba(184, 184, 184, 0.85);
  line-height: 1.45;
}

/* Navbar subtitle color (links inside mega menu) */
.navbar-subtitle-color {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffaf1f;
}

/* Section subtitle small (feature list items) */
.bg-section-navbar {
  font-size: 0.7rem;
  color: rgba(168, 168, 168, 0.75);
  line-height: 1.5;
}

/* Dark icon box */
.bg-dark-custom {
  background-color: #09090b !important;
}

/* Icon box sizing */
.box-45 {
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
}

/* Clickable card hover */
.clickable-card {
  transition: background 0.2s;
}

.clickable-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* YouTube card */
.card-youtube {
  background: #1a1a1e !important;
  border: 1px solid rgba(255, 0, 0, 0.15) !important;
  border-radius: 10px !important;
  overflow: hidden;
}

/* Feature list inside mega menu */
.list-system {
  padding: 0;
}

.list-system li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.list-system li a:hover .navbar-subtitle-color {
  color: #ffc94d;
}

/* Dropdown items */
.bg-gray-navbar .dropdown-item {
  color: rgba(238, 235, 230, 0.85) !important;
  background: transparent !important;
  transition: background 0.15s, color 0.15s;
}

.bg-gray-navbar .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffaf1f !important;
}

.dropdown-toggle {
  color: var(--bs-light) !important;
}

.nav-link:hover,
.dropdown-toggle:hover {
  color: var(--bs-warning) !important;
}

/* ─── CTA buttons ─────────────────────────────────────── */
.btn-primary-custom {
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 1px !important;
  background: #ffaf1f !important;
  color: #09090b !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.btn-primary-custom:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px) !important;
  color: #09090b !important;
}

.btn-secondary-custom {
  border-radius: 6px;
  background: #FFCB4B !important;
  color: #000;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-secondary-custom:hover {
  background: #FBC02D !important;
  color: #000;

}

.btn-white {
  border: 1px solid #D8D8D8;
  background: #FFF;
  font-weight: 600;
}

.btn-white:hover {
  border: 1px solid #D8D8D8;
  background: #F0F0F0;
}

/* Base (mobile first) */
.btn-primary-custom,
.btn-secondary-custom {
  font-size: 14px;
  /* menor em telas pequenas */
  padding: 6px 12px;
  /* padding reduzido */
  white-space: nowrap;
  /* impede quebra de linha */
  display: inline-flex;
  /* garante alinhamento correto */
  align-items: center;
  justify-content: center;
}

/* Tablet (>=768px) */
@media (min-width: 768px) {

  .btn-primary-custom,
  .btn-secondary-custom {
    font-size: 15px;
    padding: 6px 14px;
  }
}

/* Desktop (>=1200px) */
@media (min-width: 1200px) {

  .btn-primary-custom,
  .btn-secondary-custom {
    font-size: 16px;
    padding: 8px 16px;
  }
}


/* Language dropdown */
.custom-lang-menu {
  background: #1a1a1e !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  min-width: 180px;
}

.custom-lang-item {
  color: rgba(238, 235, 230, 0.9) !important;
  font-size: 0.82rem;
  padding: 8px 16px !important;
  transition: background 0.15s !important;
}

.custom-lang-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffaf1f !important;
}

.custom-lang-item.active-lang {
  background: rgba(255, 175, 31, 0.12) !important;
  color: #ffaf1f !important;
  font-weight: 700;
}

.custom-lang-item.active-lang::after {
  content: '✓';
  margin-left: auto;
  color: #ffaf1f;
  font-weight: 800;
}

/* ─── Rich content media (inserted by editor toolbar) ─────────────────── */
.post-full-content img,
.post-full-content figure {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 10px;
}
.post-full-content figure img.rich-img,
.post-full-content figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.post-full-content figcaption {
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
  font-style: italic;
}

/* YouTube / Vimeo / Loom embed wrapper (responsive 16:9) */
.post-full-content .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  background: #000;
}
.post-full-content .video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Quote styling — inherit color from parent so it works on both light and
   dark themes (admin preview = light, public post page = dark). */
.post-full-content blockquote {
  border-left: 3px solid #ffaf1f;
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(255,175,31,.08);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: inherit;
  opacity: .92;
}

/* Horizontal rule */
.post-full-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,175,31,.4), transparent);
  margin: 36px 0;
}

/* ─── Mobile nav collapse ─────────────────────────── */
@media (max-width: 991px) {
  #mainNavbar .navbar-collapse {
    background: rgba(9, 9, 11, 0.98);
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bg-gray-navbar.dropdown-menu {
    background: #111114 !important;
    border: none !important;
    padding-left: 12px;
  }
}


/* ─── WHITE / LIGHT BLOG CONTENT SECTIONS ───────────────────────────── */
.blog-content-section {
  background: #ffffff !important;
}

.blog-content-section .block-title {
  color: #111111;
}

.blog-content-section .block-title .a {
  color: var(--amber);
}

/* Cards on white background */
.blog-content-section .post-card {
  background: #f7f8fa;
  border-color: rgba(0, 0, 0, 0.07);
}

.blog-content-section .post-card:hover {
  border-color: rgba(0, 0, 0, 0.13);
}

.blog-content-section .post-title {
  color: #111111;
}

.blog-content-section .post-excerpt {
  color: #555;
}

.blog-content-section .post-meta {
  color: #888;
}

/* Filter pills on white */
.blog-content-section .filter-pill {
  color: #333;
  border-color: rgba(0, 0, 0, 0.15);
}

.blog-content-section .filter-pill:hover {
  border-color: var(--amber);
  color: #111;
}

.blog-content-section .filter-pill.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* Load more on white */
.blog-content-section .load-more {
  color: var(--ink);
  border-color: var(--ink);
}

.blog-content-section .load-more:hover {
  background: rgba(9, 9, 11, 0.05);
  box-shadow: none;
}

/* Empty state on white */
.blog-content-section .empty-state {
  border-color: rgba(0, 0, 0, 0.08);
  color: #555;
}

.blog-content-section .empty-state strong {
  color: #111;
}

/* Thumb cards on white */
.blog-content-section .thumb-card {
  background: #f7f8fa;
  border-color: rgba(0, 0, 0, 0.07);
}

.blog-content-section .thumb-card:hover {
  background: #edeef0;
  border-color: rgba(0, 0, 0, 0.12);
  color: inherit;
}

.blog-content-section .thumb-title {
  color: #111;
}

.blog-content-section .thumb-meta {
  color: #888;
}

/* Skeleton on white */
.blog-content-section .skeleton-box {
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.08) 50%,
      rgba(0, 0, 0, 0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.blog-content-section .skeleton-card {
  background: #f7f8fa;
  border-color: rgba(0, 0, 0, 0.06);
}



/* Remove the landing page's fixed-nav top offset behavior for blog flow */
main {
  position: relative;
}

/* ─── HERO (blog-specific, reuses atmosphere from landing) ──────────── */
.blog-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  /* Folga p/ a navbar fixa (#mainNavbar ~68px) — sem isso o eyebrow/título
     colam embaixo do menu quando o conteúdo é alto. */
  padding-top: clamp(110px, 14vh, 168px);
  padding-bottom: clamp(48px, 8vh, 80px);
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

.blog-hero .eyebrow {
  justify-content: center;
  margin-bottom: 32px;
}

.blog-hero-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 32px;
}

.blog-hero-title .a {
  color: var(--amber);
}

.blog-hero-sub {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--fog);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* ── Hero search ──────────────────────────────────────────────── */
.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 36px;
  padding: 8px 8px 8px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,175,31,0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within {
  border-color: rgba(255,175,31,0.55);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 0 0 4px rgba(255,175,31,0.10);
}
.hero-search-icon {
  width: 18px; height: 18px;
  color: var(--amber);
  flex-shrink: 0;
}
.hero-search-icon line, .hero-search-icon circle { stroke: currentColor; }
.hero-search input[type="search"] {
  flex: 1; min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 4px;
  letter-spacing: 0.01em;
}
.hero-search input[type="search"]::placeholder {
  color: rgba(255,255,255,0.50);
}
.hero-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-search-btn {
  background: var(--amber);
  color: #1a1000;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter .15s, transform .15s;
  flex-shrink: 0;
}
.hero-search-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hero-search-btn:active { transform: translateY(0); }

/* ── Hero search results dropdown ──────────────────────────────── */
.hero-search-results {
  max-width: 640px;
  margin: -24px auto 36px;
  padding: 8px;
  background: rgba(20,20,26,0.96);
  border: 1px solid rgba(255,175,31,0.22);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.40);
  text-align: left;
  max-height: 50vh;
  overflow-y: auto;
}
.hsr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background .12s;
}
.hsr-item:hover { background: rgba(255,175,31,0.10); }
.hsr-thumb {
  width: 56px; height: 40px; object-fit: cover; object-position: center 30%;
  border-radius: 6px;
  flex-shrink: 0;
  background: #2a2a30;
}
.hsr-body { flex: 1; min-width: 0; }
.hsr-title {
  font-weight: 600; font-size: 0.95rem;
  line-height: 1.3;
  margin: 0 0 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hsr-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  display: flex; gap: 8px;
}
.hsr-meta mark { background: rgba(255,175,31,0.32); color: #ffd793; padding: 0 3px; border-radius: 3px; }
.hsr-title mark { background: rgba(255,175,31,0.32); color: #ffd793; padding: 0 2px; border-radius: 3px; }
.hsr-empty, .hsr-loading {
  padding: 22px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.scroll-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 175, 31, 0.3);
  background: var(--amber-dim);
  color: var(--amber);
  transition: transform 0.25s, background 0.25s;
  animation: scrollBob 2.4s ease-in-out infinite;
}

.scroll-chip:hover {
  transform: translateY(2px);
  background: rgba(255, 175, 31, 0.18);
  color: var(--amber);
}

/* ─── Post back link (top of every post) ──────────────────────────────── */
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 175, 31, 0.35);
  background: var(--amber-dim);
  color: var(--amber);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.post-back-link:hover {
  background: rgba(255, 175, 31, 0.22);
  color: var(--amber);
  border-color: var(--amber);
  transform: translateX(-3px);
}
.post-back-link svg { flex-shrink: 0; }

@keyframes scrollBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ─── HERO AVATARS (decorative) ─────────────────────────────────────── */
.hero-avatars {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.avatar {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Avatar positions (responsive) */
.avatar-1 {
  top: 8%;
  left: 5%;
  width: 60px;
  height: 60px;
}

.avatar-2 {
  top: 12%;
  right: 6%;
  width: 72px;
  height: 72px;
}

.avatar-3 {
  top: 35%;
  left: 3%;
  width: 56px;
  height: 56px;
}

.avatar-4 {
  top: 50%;
  right: 4%;
  width: 68px;
  height: 68px;
}

.avatar-5 {
  bottom: 15%;
  left: 8%;
  width: 64px;
  height: 64px;
}

.avatar-6 {
  bottom: 18%;
  right: 7%;
  width: 60px;
  height: 60px;
}

.avatar-7 {
  top: 45%;
  left: 12%;
  width: 58px;
  height: 58px;
}

.avatar-8 {
  top: 30%;
  right: 10%;
  width: 62px;
  height: 62px;
}

@media (max-width: 768px) {
  .avatar {
    width: 48px;
    height: 48px;
  }

  .avatar-1 {
    width: 48px;
    height: 48px;
    top: 10%;
    left: 4%;
  }

  .avatar-2 {
    width: 52px;
    height: 52px;
    top: 15%;
    right: 5%;
  }

  .avatar-3 {
    width: 44px;
    height: 44px;
    top: 40%;
    left: 3%;
  }

  .avatar-4 {
    width: 50px;
    height: 50px;
    top: 55%;
    right: 4%;
  }

  .avatar-5,
  .avatar-6,
  .avatar-7,
  .avatar-8 {
    display: none;
  }
}

/* ─── HERO SEARCH BAR ───────────────────────────────────────────────── */
.hero-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  padding: 4px 8px;
  transition: all 0.3s ease;
}

.hero-search-form:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 175, 31, 0.4);
  box-shadow: 0 0 20px rgba(255, 175, 31, 0.1);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  caret-color: var(--amber);
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

.hero-search-btn:hover {
  transform: scale(1.05);
  background: #FFB91F;
}

.hero-search-btn:active {
  transform: scale(0.95);
}

/* ─── CATEGORY FILTER ROW ───────────────────────────────────────────── */
.filter-row {
  padding: 32px 0 48px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.latest-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 280px;
  max-width: 100%;
}
.latest-search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ash);
  pointer-events: none;
}
.latest-search input {
  width: 100%;
  background: var(--ink2);
  border: 1px solid var(--ink4);
  border-radius: 999px;
  color: var(--snow);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 9px 14px 9px 36px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.latest-search input::placeholder { color: var(--ash); }
.latest-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}
body.blog-post-page .latest-search input {
  background: #f8f9fa;
  border-color: #e5e7eb;
  color: #111;
}

.filter-pill {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--snow);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-pill .pill-count {
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.filter-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.7);
}

.filter-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.filter-pill.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* ─── SECTION TITLES (bare, left-aligned, Outfit heavy) ─────────────── */
.block-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 40px;
}

.block-title .a {
  color: var(--amber);
}

.block {
  padding: 60px 0;
}

/* ─── POST CARDS — shared anatomy ───────────────────────────────────── */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--ink2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 100%;
  transition: transform 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
}

.post-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 3;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.post-card:hover::after {
  transform: scaleX(1);
}

.post-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink3);
}

/* No-image card styling — typographic focus */
.post-card.no-image {
  border-left: 4px solid var(--amber);
}

.blog-content-section .post-card.no-image {
  background: #ffffff; /* pure white to stand out slightly from the f7f8fa background */
}

.post-card.no-image::after {
  display: none; /* Already using border-left */
}

.post-card.no-image .post-card-body {
  padding: 40px 32px 48px;
  justify-content: center;
}

.blog-content-section .post-card.no-image .post-title {
  color: #111;
}

.blog-content-section .post-card.no-image .post-excerpt {
  color: #444;
}



.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

/* Category tag — reuses the eyebrow motif without the bar-before pseudo */
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 5px 10px;
  border-radius: 4px;
}

.post-title {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--white);
  font-weight: 700;
  margin: 0;
  transition: color 0.2s;
}

.post-card:hover .post-title {
  color: var(--amber);
}

.post-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fog);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: auto;
  padding-top: 8px;
}

.post-meta-sep {
  width: 3px;
  height: 3px;
  background: var(--stone);
  border-radius: 50%;
}

/* ─── FEATURED ROW — 3 columns ────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .featured-main {
    grid-row: auto;
  }

  .featured-main .post-card-media {
    aspect-ratio: 3 / 2;
  }

  .featured-main .post-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .featured-main .post-excerpt {
    font-size: 0.92rem;
  }

  .featured-main .post-card-body {
    padding: 24px 24px 28px;
  }
}

/* ─── MOST READ — 1 hero + vertical thumb list ──────────────────────── */
.mostread-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 992px) {
  .mostread-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
  }
}

.mostread-hero .post-card-media {
  aspect-ratio: 4 / 3;
}

.mostread-hero .post-title {
  font-size: 1.65rem;
}

.thumb-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thumb-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--ink2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.thumb-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.thumb-card:hover {
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--ink3);
  color: inherit;
}

.thumb-card:hover::after {
  transform: scaleY(1);
}

.thumb-media {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink3);
  flex-shrink: 0;
}

.thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.thumb-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.thumb-title {
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.thumb-card:hover .thumb-title {
  color: var(--amber);
}

.thumb-meta {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ash);
}

@media (max-width: 560px) {
  .thumb-card {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 12px;
  }

  .thumb-media {
    width: 92px;
    height: 72px;
  }

  .thumb-title {
    font-size: 0.92rem;
  }
}

/* ─── LATEST GRID — uniform 3-col ───────────────────────────────────── */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .latest-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.empty-state {
  grid-column: 1 / -1;
  padding: 80px 24px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--fog);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.empty-state strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Thumb cards without images */
.thumb-card.no-image {
  grid-template-columns: 1fr;
  padding: 24px;
}

.blog-content-section .thumb-card.no-image {
  background: #ffffff;
}


.thumb-card.no-image .thumb-title {
  font-size: 1.2rem;
}


/* ─── LOAD MORE ─────────────────────────────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.load-more {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--amber);
  padding: 16px 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s;
}

.load-more:hover {
  background: rgba(255, 175, 31, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--amber-glow);
}

.load-more:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── SKELETON LOADING ──────────────────────────────────────────────── */
.skeleton-card {
  background: var(--ink2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 340px;
}

.skeleton-box {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-card .skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.skeleton-card .skeleton-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card .sk-tag {
  height: 18px;
  width: 80px;
  border-radius: 4px;
}

.skeleton-card .sk-title {
  height: 22px;
  width: 100%;
  border-radius: 4px;
}

.skeleton-card .sk-title.short {
  width: 70%;
}

.skeleton-card .sk-meta {
  height: 12px;
  width: 40%;
  border-radius: 4px;
  margin-top: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ─── APP SECTION ───────────────────────────────────────────────────── */
.app-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(7, 7, 7, 0.8) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.app-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 175, 31, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.app-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .app-content {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.app-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(255, 175, 31, 0.1);
  padding: 8px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
}

.app-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
}

.app-title .a {
  color: var(--amber);
}

.app-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fog);
  margin: 0;
}

.roi-pain-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roi-pain-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.roi-pain-item:last-child {
  border-bottom: none;
}

.roi-pain-num {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.02em;
}

.roi-pain-h {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.roi-pain-p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fog);
  margin: 0;
}

@media (max-width: 768px) {
  .roi-pain-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .roi-pain-num {
    font-size: 1.5rem;
  }

  .roi-pain-h {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .roi-pain-p {
    font-size: 0.95rem;
  }
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.app-store-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.25s, filter 0.25s;
}

.app-store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.app-store-link:active {
  transform: translateY(0);
}

.app-mockups {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -40px;
  position: relative;
  height: 600px;
  perspective: 1200px;
}

@media (max-width: 991px) {
  .app-mockups {
    height: 400px;
    gap: -20px;
  }
}

.phone-mockup {
  position: absolute;
  width: 200px;
  height: 400px;
  transition: all 0.4s ease;
}

@media (max-width: 991px) {
  .phone-mockup {
    width: 140px;
    height: 280px;
  }
}

.phone-left {
  left: 0;
  transform: rotateY(25deg) rotateX(-10deg) translateZ(50px);
  z-index: 1;
}

.phone-center {
  left: 50%;
  transform: translateX(-50%) translateZ(100px);
  z-index: 3;
  width: 240px;
  height: 480px;
}

@media (max-width: 991px) {
  .phone-center {
    width: 170px;
    height: 340px;
  }
}

.phone-right {
  right: 0;
  transform: rotateY(-25deg) rotateX(-10deg) translateZ(50px);
  z-index: 1;
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-frame-large {
  padding: 14px;
}

.phone-frame-large::before {
  height: 32px;
}

.phone-screen {
  flex: 1;
  border-radius: 32px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── BLOG FOOTER ───────────────────────────────────────────────────── */
.blog-footer {
  background: #070707;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  margin-top: 120px;
}

.blog-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 28px 40px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
  }
}

.footer-statement {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--white);
}

.footer-statement .a {
  color: var(--amber);
  display: block;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--fog);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ash);
}

.footer-wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  text-align: center;
  margin: 0;
  padding: 40px 0 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transform: translateY(20%);
}

.footer-wordmark .a {
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
}

/* ─── RESPONSIVE FINE-TUNES ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .block {
    padding: 48px 0;
  }

  .block-title {
    margin-bottom: 28px;
  }

  .blog-hero {
    padding: 110px 0 60px;
  }

  .filter-row {
    padding: 32px 0 8px;
  }

  .filter-pills {
    gap: 8px;
  }

  .filter-pill {
    padding: 8px 14px;
    font-size: 0.65rem;
  }

  .post-card-body {
    padding: 20px 20px 24px;
  }

  .post-title {
    font-size: 1.18rem;
  }

  .featured-main .post-title {
    font-size: 1.5rem !important;
  }

  .blog-footer-inner {
    padding: 60px 20px 32px;
  }

  .footer-top {
    margin-bottom: 48px;
  }
}

/* ─── SlabWare icon path overrides (local blog paths) ───────────────── */
/* Override SlabAwesome.css which uses /assets_2025/ absolute paths      */
.sw-fabricator-stroke {
  -webkit-mask-image: url('../imagens/icon/Icon_FAB.svg');
  mask-image: url('../imagens/icon/Icon_FAB.svg');
}

.sw-fabricator {
  -webkit-mask-image: url('../imagens/icon/Fabricator.svg');
  mask-image: url('../imagens/icon/Fabricator.svg');
}

.sw-distributor {
  -webkit-mask-image: url('../imagens/icon/Distributor.svg');
  mask-image: url('../imagens/icon/Distributor.svg');
}

.sw-exporter {
  -webkit-mask-image: url('../imagens/icon/Exporter.svg');
  mask-image: url('../imagens/icon/Exporter.svg');
}

.sw-person {
  -webkit-mask-image: url('../imagens/icon/person_24dp_E8EAED_FILL1_wght400_GRAD0_opsz24.svg');
  mask-image: url('../imagens/icon/person_24dp_E8EAED_FILL1_wght400_GRAD0_opsz24.svg');
}

/* ── In-post ad block ──────────────────────────────────────────────────── */
.post-ad-block {
  margin: 2rem 0;
  text-align: center;
}

.post-ad-block .post-ad-link {
  display: inline-block;
}

.post-ad-block img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  transition: opacity .2s;
}

.post-ad-block img:hover {
  opacity: .9;
}

/* ======================================================================
   NEW: Sidebar & Ad Cards logic
   ====================================================================== */
.post-sidebar-sticky {
  position: sticky;
  top: 100px;
}

.post-ad-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  margin-bottom: 2rem;
}

.post-ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.post-ad-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-ad-body {
  padding: 24px;
}

.post-ad-title {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

.post-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFAF1F;
  color: #000 !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  transition: background 0.2s;
}

.post-ad-card:hover .post-ad-cta {
  background: #FFCB4B;
}

/* In-post specific tweaks */
.post-ad-inline {
  max-width: 650px;
  margin: 3.5rem auto;
}

.post-ad-inline .post-ad-img {
  aspect-ratio: 16 / 9;
  /* Estilo Reddit/Banner para dentro do post */
}

@media (max-width: 768px) {
  .post-ad-inline {
    margin: 2.5rem 0;
  }
}

/* ─── SLABWARE DEMO CTA (post pages) ──────────────────────────────────── */
.sw-demo-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  margin: 56px 0 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #fff7e6 0%, #fffdf6 100%);
  border: 1px solid rgba(255, 175, 31, 0.35);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(255, 175, 31, 0.08);
  position: relative;
  overflow: hidden;
}
.sw-demo-cta::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.6;
}
.sw-demo-cta__body { position: relative; z-index: 1; min-width: 0; }
.sw-demo-cta__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 800;
  font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); background: var(--amber-dim);
  padding: 5px 10px; border-radius: 4px; margin-bottom: 14px;
}
.sw-demo-cta__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2; letter-spacing: -0.01em;
  color: #111; margin: 0 0 8px;
}
.sw-demo-cta__sub {
  font-family: var(--sans); font-size: 0.95rem; line-height: 1.55;
  color: #444; margin: 0; max-width: 56ch;
}
.sw-demo-cta__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: #1a1000 !important;
  font-family: var(--sans); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border-radius: 8px; border: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.sw-demo-cta__btn:hover {
  background: #FFCB4B; color: #1a1000 !important;
  transform: translateY(-2px); box-shadow: 0 12px 28px var(--amber-glow);
}
.sw-demo-cta__btn:active { transform: translateY(0); }
.sw-demo-cta__arrow { transition: transform .18s ease; }
.sw-demo-cta__btn:hover .sw-demo-cta__arrow { transform: translateX(4px); }

body:not(.blog-post-page) .sw-demo-cta {
  background: linear-gradient(135deg, rgba(255,175,31,0.08) 0%, var(--ink2) 80%);
  border-color: rgba(255, 175, 31, 0.3);
}
body:not(.blog-post-page) .sw-demo-cta__title { color: var(--white); }
body:not(.blog-post-page) .sw-demo-cta__sub { color: var(--fog); }

@media (max-width: 720px) {
  .sw-demo-cta {
    grid-template-columns: 1fr; gap: 20px;
    padding: 24px 22px; margin: 40px 0 16px;
  }
  .sw-demo-cta__btn { width: 100%; justify-content: center; }
}

/* ─── Skip-to-content (a11y) ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff !important;
  padding: 12px 18px;
  z-index: 99999;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ════════════════════════════════════════════════════════════════════════
   SLABWARE BLOG — STABILIZATION PASS (mobile-first)
   Append-only. Higher specificity wins over older conflicts.
   ════════════════════════════════════════════════════════════════════════ */

/* ─── 2.1  Spacing & sizing tokens (8-pt grid) ──────────────────────── */
:root {
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --nav-h-mobile: 56px; --nav-h-desktop: 72px;
  --read-col: 680px; --content-max: 1140px;
  --shadow-card: 0 6px 24px rgba(0,0,0,.08);
  --shadow-card-hover: 0 10px 32px rgba(0,0,0,.12);
}

/* ─── 2.2  Hero search button — kill the conflict, keep text ───────── */
.hero-search .hero-search-btn,
form.hero-search .hero-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; min-width: 96px;
  border-radius: var(--radius-pill);
  background: var(--amber); color: #1a1000; border: 0;
  padding: 10px 22px;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  white-space: nowrap; line-height: 1;
  cursor: pointer; flex-shrink: 0;
  transition: filter .15s ease, transform .15s ease;
}
.hero-search .hero-search-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) {
  .hero-search .hero-search-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
}
@media (max-width: 480px) {
  .hero-search .hero-search-btn { min-width: 84px; padding: 10px 16px; font-size: .9rem; }
}
@media (max-width: 560px) {
  .hero-search { flex-wrap: wrap; gap: 8px; }
  .hero-search > input { flex: 1 1 100%; }
  .hero-search .hero-search-btn { flex: 0 0 auto; margin-left: auto; }
}

/* ─── 2.3  Post cover image — center + cap ─────────────────────────── */
.post-hero-outer { width: 100%; }
.post-cover-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 12px;
}
#post-cover {
  display: block; width: 100%; height: auto;
  max-height: 600px;
  /* contain keeps the WHOLE image visible — letterboxes on aspect mismatch
     instead of cropping (no more half-church or cut-off heads). */
  object-fit: contain; object-position: center;
  margin: 0 auto; background: #f5f5f5;
  border-radius: var(--radius-md);
}
@media (max-width: 640px) {
  .post-cover-wrap { padding: 0; }
  #post-cover { max-height: 360px; border-radius: 0; }
}

/* When the post has NO cover, blog.js adds body.no-cover. Compensate for
   the fixed navbar so the article title doesn't sit under it. */
body.blog-post-page.no-cover .post-hero-outer { display: none; }
body.blog-post-page.no-cover section.block.pb-0 {
  padding-top: calc(var(--nav-h-desktop) + var(--space-10)) !important;
}
@media (max-width: 991px) {
  body.blog-post-page.no-cover section.block.pb-0 {
    padding-top: calc(var(--nav-h-mobile) + var(--space-8)) !important;
  }
}

/* Editor highlight markers <yellow>…</yellow> and <blue>…</blue> → .post-highlight */
body.blog-post-page .post-highlight {
  background: linear-gradient(180deg, transparent 55%, rgba(255, 175, 31, 0.28) 55%);
  padding: 0 2px;
  font-weight: 500;
  color: inherit;
}
body.blog-post-page .post-highlight--blue {
  background: linear-gradient(180deg, transparent 55%, rgba(80, 150, 255, 0.28) 55%);
}

/* ════════════════════════════════════════════════════════════════════════
   PREMIUM POLISH — MOBILE TIGHTENING (phones ≤ 640px / ≤ 480px)
   ════════════════════════════════════════════════════════════════════════ */

/* Cover on phone: cover (not contain) so portrait shots fill viewport;
   object-position: center top preserves subject (sky/face/dome). */
@media (max-width: 640px) {
  body.blog-post-page #post-cover {
    object-fit: cover;
    object-position: center top;
    max-height: 280px;
  }
}

/* Byline strip — tighter on phones */
@media (max-width: 480px) {
  .post-byline {
    gap: 10px;
    margin: var(--space-2) 0 var(--space-6);
  }
  .post-byline__avatar { width: 36px; height: 36px; }
  .post-byline__avatar img { width: 22px; height: 22px; }
  .post-byline__author { font-size: 0.92rem; }
  .post-byline__line {
    font-size: 0.78rem;
    gap: 6px;
    line-height: 1.35;
  }
  .post-byline__updated { display: none; }  /* free up horizontal space */
}

/* TL;DR — phone-friendly padding + readability */
@media (max-width: 480px) {
  body.blog-post-page .post-tldr {
    padding: 14px 16px;
    margin-bottom: var(--space-6);
  }
  body.blog-post-page .post-tldr__body { font-size: 0.98rem; line-height: 1.5; }
  body.blog-post-page .post-tldr__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
  }
}

/* Share row — compact circle buttons that don't overflow on 320px screens */
@media (max-width: 480px) {
  .post-share {
    gap: 8px;
    font-size: 0.82rem;
    margin: var(--space-10) auto var(--space-6);
    padding-top: var(--space-5);
    flex-wrap: wrap;
  }
  .post-share__btn { width: 36px; height: 36px; }  /* 36 = comfortable touch */
  .post-share__btn svg { width: 14px; height: 14px; }
  .post-share__label { flex: 1 0 100%; }  /* label on its own row */
}

/* Title — extra-tight on smallest phones */
@media (max-width: 380px) {
  body.blog-post-page #post-title.blog-hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem) !important;
    letter-spacing: -0.02em !important;
  }
}

/* Lead paragraph — slightly smaller on phones for comfortable read */
@media (max-width: 480px) {
  body.blog-post-page #post-content > p:first-of-type {
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.3em !important;
  }
}

/* Eyebrow category — smaller on phone */
@media (max-width: 480px) {
  body.blog-post-page #post-category.post-tag {
    font-size: 0.7rem !important;
    letter-spacing: 1.5px !important;
    padding-left: 12px !important;
  }
  body.blog-post-page #post-category.post-tag::before {
    width: 5px; height: 5px;
  }
}

/* Back link — make it a comfortable touch target without bloating it visually */
@media (max-width: 480px) {
  body.blog-post-page .post-back-link {
    display: inline-block;
    min-height: 32px;
    line-height: 32px;
  }
}

/* Demo CTA — already has its own @media but make sure the share row above it
   has breathing space on phones */
@media (max-width: 480px) {
  body.blog-post-page .sw-demo-cta { margin-top: var(--space-8); }
}

/* Reading progress bar — even thinner on phone (looks more refined) */
@media (max-width: 480px) {
  .reading-progress { height: 2px; }
}

/* Container padding on phone — Bootstrap default is fine but make sure
   the article header section has consistent edges */
@media (max-width: 480px) {
  body.blog-post-page section.block.pb-0 .container,
  body.blog-post-page section.block.pt-4 .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ─── 2.4  Navbar — mobile compact + touch targets ─────────────────── */
@media (max-width: 991px) {
  #mainNavbar, #mainNavbar .max-w-1920 {
    min-height: var(--nav-h-mobile);
    padding: 6px 16px;
  }
  .navbar-toggler {
    min-width: 44px; min-height: 44px; padding: 10px;
    display: inline-flex; align-items: center; justify-content: center;
  }
}
@media (min-width: 992px) {
  #mainNavbar, #mainNavbar .max-w-1920 { min-height: var(--nav-h-desktop); }
}
@media (max-width: 479px) {
  #mainNavbar .navbar-cta-desktop,
  #mainNavbar a.btn-amber-outline,
  #mainNavbar .btn-primary-custom.btn-sm { display: none !important; }
}

/* ─── 2.5  Hero (homepage) — kill 100vh on mobile ──────────────────── */
@media (max-width: 768px) {
  .blog-hero { min-height: auto; padding: 88px 0 40px; }
  .blog-hero h1, .blog-hero .blog-hero-title {
    font-size: clamp(2rem, 9vw, 3rem); line-height: 1.15;
  }
  .blog-hero .blog-hero-sub, .blog-hero p {
    font-size: 1.05rem; line-height: 1.5;
  }
}

/* ─── 2.6  Post header rhythm — breathing room + byline left-align ────── */
/* Push cover down from navbar */
body.blog-post-page .post-cover-wrap.mt-5 {
  margin-top: var(--space-10) !important;   /* 40px from navbar */
  margin-bottom: 0 !important;
}
/* Cover-to-title gap */
body.blog-post-page .post-hero-outer.mb-5 {
  margin-top: 0 !important;
  margin-bottom: var(--space-10) !important; /* 40px below cover */
}
/* Title — tighter to byline below */
body.blog-post-page .blog-hero-title.mb-4 {
  text-align: left !important;
  margin-bottom: var(--space-2) !important;  /* 8px */
}
/* Byline — kill auto-center + max-width inherited from .blog-hero-sub,
   make it subtle gray small text aligned with the title */
body.blog-post-page .blog-hero-sub {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: #666 !important;
  max-width: none !important;
  margin: 0 0 var(--space-6) !important;     /* left-align + 24px below */
  text-align: left !important;
  font-weight: 500 !important;
}
/* Meta row (date · read time) — keep tight under title */
body.blog-post-page .post-meta.mb-3 {
  margin-bottom: var(--space-3) !important;  /* 12px */
}
/* HR was inline white border — invisible on white. Override with subtle gray. */
body.blog-post-page section.block.pb-0 hr {
  border: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  margin: 0 0 var(--space-6) !important;
}

/* ─── 2.7  Sidebar ads — no fake-sticky on mobile ──────────────────── */
@media (max-width: 991px) {
  .post-sidebar-sticky,
  .post-ad-card.post-ad-card--sticky {
    position: static !important; top: auto !important;
  }
}

/* ─── 2.8  Hover transforms only on real hover devices ─────────────── */
@media (hover: none) {
  .post-card:hover, .thumb-card:hover,
  .filter-pill:hover, .btn-amber:hover,
  .hero-search-btn:hover,
  .btn-primary-custom:hover, .load-more:hover,
  .app-store-link:hover, .sw-demo-cta__btn:hover,
  .post-back-link:hover, .scroll-chip:hover { transform: none !important; }
}

/* ─── 2.9  Latest section — search above pills on phones ───────────── */
@media (max-width: 560px) {
  .filter-row { flex-wrap: wrap; }
  .latest-search { flex: 1 1 100%; order: -1; margin-bottom: 8px; }
}

/* ─── 2.10  Language dropdown — active state (visible "you are here") */
.custom-lang-item {
  padding: 12px 16px !important;
  min-height: 44px;
  display: flex !important;
  align-items: center;
}
.custom-lang-item.active-lang,
.custom-lang-item.active {
  background: rgba(255, 175, 31, 0.14) !important;
  color: #ffaf1f !important;
  font-weight: 700;
  position: relative;
}
.custom-lang-item.active-lang::after,
.custom-lang-item.active::after {
  content: '✓'; margin-left: auto;
  color: #ffaf1f; font-weight: 800; font-size: 1rem;
}
.custom-lang-item.active-lang img,
.custom-lang-item.active img {
  box-shadow: 0 0 0 1.5px #ffaf1f;
  border-radius: 3px;
}

/* ─── 2.11  Brand lockup (icon + wordmark together) ────────────────── */
.brand-lockup {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.brand-lockup .brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-lockup .brand-wordmark { height: 20px; width: auto; display: none; }
@media (min-width: 480px) { .brand-lockup .brand-wordmark { display: inline; } }
@media (min-width: 1200px) {
  .brand-lockup .brand-mark { width: 28px; height: 28px; }
  .brand-lockup .brand-wordmark { height: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════
   2.12  POST CONTENT — typography & vertical rhythm
   Higher specificity beats the dark-theme rules at L401-414.
   ═══════════════════════════════════════════════════════════════════ */
body.blog-post-page #post-content {
  max-width: var(--read-col);
  margin: 0 auto;
  padding-inline: 4px;
  font-family: var(--sans), "Open Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  line-height: 1.7;
  color: #1a1a1e;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
body.blog-post-page #post-content > *:first-child { margin-top: 0; }

body.blog-post-page #post-content h2,
body.blog-post-page #post-content h3,
body.blog-post-page #post-content h4 {
  font-family: var(--display), "Outfit", sans-serif;
  color: #0f0f12;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.6em;
}
body.blog-post-page #post-content h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem);
  margin-top: 2em;
  padding-top: 0.2em;
  position: relative;
}
body.blog-post-page #post-content h2::before {
  content: "";
  display: block;
  width: 36px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 0 0 0.6em;
}
body.blog-post-page #post-content h3 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.5rem);
  margin-top: 1.75em;
  font-weight: 700;
}
body.blog-post-page #post-content h4 {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  margin-top: 1.5em;
  font-weight: 700;
}

body.blog-post-page #post-content p {
  margin: 0 0 1.2em;
  color: #1a1a1e;
}
body.blog-post-page #post-content > p:first-of-type {
  font-size: 1.0625em;
  color: #2a2a2e;
}

body.blog-post-page #post-content a {
  color: #b56e00;
  text-decoration: underline;
  text-decoration-color: rgba(255, 175, 31, 0.5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
body.blog-post-page #post-content a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

body.blog-post-page #post-content ul,
body.blog-post-page #post-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}
body.blog-post-page #post-content li {
  margin-bottom: 0.5em;
  line-height: 1.65;
}
body.blog-post-page #post-content li::marker {
  color: var(--amber);
  font-weight: 700;
}
body.blog-post-page #post-content li > ul,
body.blog-post-page #post-content li > ol { margin: 0.4em 0; }

body.blog-post-page #post-content figure,
body.blog-post-page #post-content img {
  margin: 2em auto;
  border-radius: var(--radius-md);
}
body.blog-post-page #post-content figure img,
body.blog-post-page #post-content > img {
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 100%;
  height: auto;
}
body.blog-post-page #post-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

body.blog-post-page #post-content blockquote {
  border-left: 4px solid var(--amber);
  background: rgba(255, 175, 31, 0.06);
  padding: 14px 20px 14px 22px;
  margin: 2em 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.0625em;
  font-style: italic;
  color: #2a2a2e;
}
body.blog-post-page #post-content blockquote p:last-child { margin-bottom: 0; }

body.blog-post-page #post-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,175,31,.6), transparent);
  margin: 2.75em auto;
  width: 60%;
}

body.blog-post-page #post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.blog-post-page #post-content thead { background: #fafafa; }
body.blog-post-page #post-content th {
  text-align: left;
  font-family: var(--display), "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(0,0,0,0.12);
}
body.blog-post-page #post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}
body.blog-post-page #post-content tbody tr:hover { background: rgba(255,175,31,0.04); }

body.blog-post-page #post-content code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f4f4f5;
  color: #b56e00;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.05);
}
body.blog-post-page #post-content pre {
  background: #18181b;
  color: #eeebe6;
  padding: 18px 20px;
  border-radius: 8px;
  margin: 2em 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
}
body.blog-post-page #post-content pre code {
  background: transparent; color: inherit; border: 0; padding: 0; font-size: inherit;
}

body.blog-post-page #post-content strong,
body.blog-post-page #post-content b { font-weight: 700; color: #0f0f12; }

@media (min-width: 992px) {
  body.blog-post-page #post-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    padding-inline: 0;
  }
  body.blog-post-page #post-content h2 { margin-top: 2.75em; }
  body.blog-post-page #post-content h3 { margin-top: 2.25em; }
  body.blog-post-page #post-content h4 { margin-top: 1.85em; }
  body.blog-post-page #post-content p  { margin-bottom: 1.35em; }
  body.blog-post-page #post-content figure,
  body.blog-post-page #post-content img { margin: 2.5em auto; }
  body.blog-post-page #post-content hr  { margin: 3.25em auto; }
}

@media (max-width: 575.98px) {
  body.blog-post-page #post-content {
    font-size: 1rem;
    line-height: 1.65;
    padding-inline: 2px;
  }
  body.blog-post-page #post-content h2 { margin-top: 1.6em; }
  body.blog-post-page #post-content h2::before { width: 28px; height: 2.5px; }
  body.blog-post-page #post-content h3 { margin-top: 1.4em; }
  body.blog-post-page #post-content h4 { margin-top: 1.2em; }
  body.blog-post-page #post-content p  { margin-bottom: 1em; }
  body.blog-post-page #post-content ul,
  body.blog-post-page #post-content ol { padding-left: 1.25em; }
  body.blog-post-page #post-content figure,
  body.blog-post-page #post-content img { margin: 1.4em auto; border-radius: 8px; }
  body.blog-post-page #post-content blockquote {
    padding: 12px 14px 12px 16px; margin: 1.4em 0; font-size: 1rem;
  }
  body.blog-post-page #post-content hr { margin: 2em auto; width: 70%; }
  body.blog-post-page #post-content pre { padding: 14px; font-size: 0.8125rem; }
  body.blog-post-page #post-content table { font-size: 0.875rem; }
  body.blog-post-page #post-content th,
  body.blog-post-page #post-content td { padding: 8px 10px; }
}

/* ─── 2.13  Dead-code neutralize ──────────────────────────────────── */
.app-mockups { gap: 0 !important; }

/* ════════════════════════════════════════════════════════════════════════
   PREMIUM EDITORIAL POLISH — post page only (body.blog-post-page)
   ════════════════════════════════════════════════════════════════════════ */

/* Reading progress bar (top of viewport) */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 9998;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%; width: 0%;
  background: var(--amber);
  transition: width 0.08s linear;
  will-change: width;
}
@media (max-width: 768px) { .reading-progress { height: 2px; } }

/* Selection — premium brand-amber highlight */
body.blog-post-page ::selection {
  background: rgba(255, 175, 31, 0.28);
  color: #0a0a0c;
}

/* Cover — premium frame: stronger shadow, soft hairline, slightly larger radius */
body.blog-post-page #post-cover {
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 24px 60px -20px rgba(15,15,18,.18);
  border: 1px solid rgba(0,0,0,.04);
}
@media (max-width: 640px) {
  body.blog-post-page #post-cover { border-radius: 0; }
}

/* Demoted back-link — text, not pill */
body.blog-post-page .post-back-link {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #666 !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}
body.blog-post-page .post-back-link:hover {
  color: var(--amber) !important;
  background: transparent !important;
  transform: none !important;
}

/* Eyebrow category — leading bar + amber letterspaced label */
body.blog-post-page #post-category.post-tag {
  background: transparent !important;
  padding: 0 0 0 14px !important;
  color: var(--amber) !important;
  font-size: 0.78rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  border-radius: 0 !important;
  position: relative;
  font-weight: 800;
  display: inline-block;
}
body.blog-post-page #post-category.post-tag::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Premium title — tighter leading, balance, optical color */
body.blog-post-page #post-title.blog-hero-title {
  font-family: var(--display) !important;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
  font-weight: 800 !important;
  text-wrap: balance;
  color: #0a0a0c !important;
  text-transform: none !important;
}

/* Byline strip — avatar + author + date · read time · category */
.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: var(--space-3) 0 var(--space-8);
}
.post-byline__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0A0A0C;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.post-byline__avatar img {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);  /* force pure white regardless of source */
}
.post-byline__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-byline__author {
  font-weight: 700;
  color: #0f0f12;
  font-size: 0.98rem;
}
.post-byline__line {
  color: #666;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-byline__dot { color: #bbb; }
.post-byline__updated {
  color: #888;
  font-style: italic;
}

/* Lead paragraph — single biggest editorial vs SaaS shift */
body.blog-post-page #post-content > p:first-of-type {
  font-family: var(--display) !important;
  font-size: clamp(1.18rem, 1rem + 0.6vw, 1.375rem) !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: #2a2a2e !important;
  margin-bottom: 1.6em !important;
}

/* TL;DR aside — sits ABOVE content, structured for GEO speakable */
.post-tldr {
  background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
  border: 1px solid rgba(255, 175, 31, 0.25);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 auto var(--space-8);
  max-width: var(--read-col);
}
.post-tldr__eyebrow {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.post-tldr__body {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: #2a2a2e;
  margin: 0;
}

/* H2 / H3 with anchor link on hover (citation deep-link) */
body.blog-post-page #post-content h2,
body.blog-post-page #post-content h3,
body.blog-post-page #post-content h4 {
  scroll-margin-top: 80px;  /* don't hide under navbar when jumping via anchor */
  position: relative;
}
body.blog-post-page #post-content .heading-anchor {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  text-decoration: none;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.85em;
  transition: opacity 0.15s;
}
body.blog-post-page #post-content h2:hover .heading-anchor,
body.blog-post-page #post-content h3:hover .heading-anchor,
body.blog-post-page #post-content h4:hover .heading-anchor {
  opacity: 1;
}
@media (max-width: 768px) {
  body.blog-post-page #post-content .heading-anchor { display: none; }
}

/* End-of-post share row (small, restrained — full footer rail next round) */
.post-share {
  margin: var(--space-12) auto var(--space-8);
  max-width: var(--read-col);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: #666;
}
.post-share__label { font-weight: 700; color: #0f0f12; }
.post-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #444;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.post-share__btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 175, 31, 0.06);
}
.post-share__btn[data-copied="true"] {
  background: rgba(255, 175, 31, 0.12);
  color: var(--amber);
  border-color: var(--amber);
}
/* ─── "Keep reading" — server-rendered related posts (internal linking) ── */
.post-related {
  max-width: var(--read-col);
  margin: var(--space-12) auto var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(0, 0, 0, .08);
  display: grid;
  gap: var(--space-4);
}
.post-related__heading {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 var(--space-2);
  color: #0f0f12;
}
.post-related__card {
  display: flex;
  gap: var(--space-4);
  align-items: stretch;
  padding: var(--space-3);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius-md);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
@media (hover: hover) {
  .post-related__card:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
  }
}
.post-related__card:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.post-related__thumb {
  width: 108px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .04);
}
.post-related__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post-related__cat {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}
.post-related__title {
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f0f12;
}
.post-related__desc {
  font-size: .86rem;
  line-height: 1.4;
  color: #666;
}
.post-related__cta {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  color: var(--amber);
  margin-top: auto;
}
@media (max-width: 560px) {
  .post-related__thumb { width: 76px; height: 76px; }
  .post-related__desc { display: none; }
}

/* ─── Lead capture — e-mail box at the end (moved mid-article by blog.js) ── */
.sw-lead {
  max-width: var(--read-col);
  margin: var(--space-12) auto var(--space-8);
  padding: var(--space-6) var(--space-6) var(--space-5);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 175, 31, .07), rgba(255, 175, 31, .02));
  display: grid;
  gap: var(--space-4);
}
.sw-lead__title {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 6px;
  color: #0f0f12;
}
.sw-lead__sub { margin: 0; font-size: .9rem; line-height: 1.45; color: #555; }
.sw-lead__form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.sw-lead__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sw-lead__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.sw-lead__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: var(--sans);
  font-size: .92rem;
  color: #0f0f12;
}
.sw-lead__input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.sw-lead__btn {
  flex: 0 0 auto;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: #1a1000;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
@media (hover: hover) { .sw-lead__btn:hover { filter: brightness(1.06); transform: translateY(-1px); } }
.sw-lead__btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.sw-lead__msg { flex: 1 0 100%; margin: 0; font-size: .85rem; font-weight: 600; min-height: 1.2em; }
.sw-lead__msg[data-state="ok"]  { color: #1c7a4a; }
.sw-lead__msg[data-state="err"] { color: #b3261e; }
.sw-lead[data-done="true"] .sw-lead__input,
.sw-lead[data-done="true"] .sw-lead__btn { display: none; }
@media (max-width: 480px) {
  .sw-lead { padding: var(--space-5) var(--space-4); }
  .sw-lead__btn { flex: 1 1 100%; }
}

/* A home é escura; o bloco de captura precisa de contraste próprio ali. */
.sw-lead-home { padding: 0 0 72px; }
.sw-lead-home .sw-lead {
  background: linear-gradient(180deg, rgba(255, 175, 31, .12), rgba(255, 175, 31, .04));
  border-color: rgba(255, 175, 31, .35);
}
.sw-lead-home .sw-lead__title { color: var(--white, #fff); }
.sw-lead-home .sw-lead__sub { color: rgba(255, 255, 255, .72); }
