/* ═══════════════════════════════════════════════════════════════════════
   Central B2B — Theme CSS
   Idêntico ao mockup central-b2b-blog-3.html, com adições WP-friendly
   no final (classes do core: alignment, captions, gallery, screen-reader).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        oklch(100% 0 0);
  --bg-soft:   oklch(98.5% 0.002 250);
  --surface:   oklch(96.5% 0.003 250);
  --fg:        oklch(8% 0.005 250);
  --fg-2:      oklch(28% 0.008 250);
  --muted:     oklch(48% 0.008 250);
  --muted-2:   oklch(68% 0.005 250);
  --border:    oklch(92% 0.004 250);
  --border-2:  oklch(85% 0.005 250);
  --accent:    oklch(8% 0.005 250); /* preto = accent */

  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1320px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
::selection { background: var(--fg); color: var(--bg); }

/* ───────────── Header ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(100% 0 0 / 0.78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, height 0.2s ease;
}
.site-header.is-shrunk { border-bottom-color: var(--border); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height 0.2s ease;
}
.site-header.is-shrunk .header-inner { height: 52px; }
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0;
  color: var(--fg);
}
.logo img { width: auto; height: 22px; }
.logo-mark {
  width: 18px; height: 18px;
  background: var(--fg);
  border-radius: 4px;
  position: relative;
}
.logo-mark::before {
  content: ''; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: var(--bg);
  border-radius: 1px;
}
/* .nav é o <nav>; .nav > ul (ou .nav-list) é o flex container real.
 * Isso suporta tanto wp_nav_menu (que gera nav>ul>li>a) quanto o
 * fallback manual que renderiza apenas links dentro do <nav>. */
.nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
}
.nav::-webkit-scrollbar { display: none; }
.nav > ul,
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li, .nav-list li { margin: 0; }
.nav a {
  display: inline-block;
  font-size: 13px;
  color: var(--fg-2);
  padding: 7px 11px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.15s;
}
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav a.is-active { color: var(--fg); }
.header-actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0;
  border-radius: 6px;
  color: var(--fg-2); cursor: pointer;
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--surface); color: var(--fg); }
.icon-btn svg { width: 16px; height: 16px; }
.header-cta {
  font-size: 13px;
  background: var(--fg);
  color: var(--bg);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.header-cta:hover { opacity: 0.85; color: var(--bg); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(8% 0.005 250 / 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  padding-top: 14vh;
}
.search-overlay.is-open { display: block; }
.search-panel {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 24px 64px oklch(0% 0 0 / 0.18);
}
.search-input {
  width: 100%; border: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
  background: transparent; color: var(--fg);
  outline: none; padding: 6px 0;
}
.search-input::placeholder { color: var(--muted-2); }

/* ───────────── Containers ───────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ───────────── Hero (blog index) ───────────── */
.blog-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
}
.blog-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin: 0 0 28px;
  color: var(--fg);
  text-wrap: balance;
  max-width: 16ch;
}
.blog-hero p {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 56ch;
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
}

/* ───────────── Filter bar ───────────── */
.filter-bar {
  position: sticky; top: 60px; z-index: 30;
  background: oklch(100% 0 0 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.filter-bar.no-sticky { position: static; }
.filter-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-inner button, .filter-inner a {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font: inherit;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
}
.filter-inner button:hover, .filter-inner a:hover {
  border-color: var(--fg-2); color: var(--fg);
}
.filter-inner .is-active {
  background: var(--fg); border-color: var(--fg); color: var(--bg);
}
.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ───────────── Post grid ───────────── */
.post-grid {
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.post-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.post-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-thumb-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
/* Thumb tones — gradients que servem como fallback quando não há imagem destacada */
.thumb-1 {
  background:
    radial-gradient(circle at 30% 70%, oklch(75% 0.18 285) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, oklch(78% 0.15 200) 0%, transparent 55%),
    linear-gradient(135deg, oklch(20% 0.04 280), oklch(15% 0.03 270));
}
.thumb-2 {
  background:
    conic-gradient(from 220deg at 30% 50%, oklch(85% 0.12 80), oklch(70% 0.18 30) 30%, oklch(75% 0.14 320) 60%, oklch(85% 0.12 80));
}
.thumb-3 {
  background: oklch(95% 0.005 250);
  background-image:
    linear-gradient(var(--fg) 1px, transparent 1px),
    linear-gradient(90deg, var(--fg) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  position: relative;
}
.thumb-3::after {
  content: ''; position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 50%, transparent 0%, var(--bg) 70%);
}
.thumb-4 {
  background: linear-gradient(135deg, oklch(92% 0.08 90) 0%, oklch(88% 0.12 60) 50%, oklch(82% 0.14 35) 100%);
}
.thumb-5 {
  background:
    linear-gradient(180deg, oklch(15% 0.02 250) 0%, oklch(25% 0.06 270) 100%);
}
.thumb-5::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 8px,
      oklch(70% 0.15 285 / 0.18) 8px, oklch(70% 0.15 285 / 0.18) 9px);
}
.thumb-6 {
  background: linear-gradient(135deg, oklch(96% 0.012 240), oklch(88% 0.04 250));
  position: relative;
}
.thumb-6::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, oklch(40% 0.12 260 / 0.6), transparent 60%);
}
.thumb-7 {
  background: oklch(8% 0.005 250);
  position: relative;
}
.thumb-7::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 75%, oklch(70% 0.2 25 / 0.5), transparent 40%),
    radial-gradient(circle at 75% 25%, oklch(70% 0.2 200 / 0.45), transparent 40%);
}
.thumb-8 {
  background: linear-gradient(160deg, oklch(78% 0.16 145), oklch(85% 0.1 165) 60%, oklch(92% 0.04 180));
}
.thumb-9 {
  background:
    linear-gradient(135deg, oklch(94% 0.01 250) 0%, oklch(96% 0.005 250) 100%);
  position: relative;
}
.thumb-9::after {
  content: '';
  position: absolute; inset: 20%;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, oklch(8% 0.005 250 / 0.04) 100%);
}
.thumb-10 {
  background:
    conic-gradient(from 0deg at 50% 50%,
      oklch(88% 0.08 30),
      oklch(82% 0.14 280),
      oklch(85% 0.12 200),
      oklch(88% 0.08 30));
  filter: blur(0.3px);
}

.post-card .meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.meta .chip {
  padding: 3px 9px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--fg);
  text-wrap: pretty;
}
.post-card a:hover .post-title { color: var(--muted); }
.post-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured row (first item) — bigger */
.post-grid .featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.post-grid .featured .post-thumb {
  aspect-ratio: 16/11;
  border-radius: var(--radius);
}
.post-grid .featured .post-title {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 18px 0 14px;
  text-wrap: balance;
}
.post-grid .featured .post-excerpt {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

/* Load more */
.load-more-wrap {
  display: flex; justify-content: center;
  padding: 24px 0 80px;
}
.load-more {
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 11px 22px;
  font: inherit;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.15s;
}
.load-more:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.load-more[disabled] { opacity: 0.5; cursor: not-allowed; }
.load-more .count {
  color: var(--muted);
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.load-more:hover:not([disabled]) .count { color: oklch(70% 0.005 250); }
.load-more-end {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ───────────── Archive head (category page) ───────────── */
.archive-head {
  padding: 88px 0 40px;
  border-bottom: 1px solid var(--border);
}
.archive-head .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.archive-head .breadcrumb a:hover { color: var(--fg); }
.archive-head .breadcrumb .sep { color: var(--muted-2); }
.archive-head h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 22px;
  color: var(--fg);
  text-wrap: balance;
}
.archive-head p {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 56ch;
  line-height: 1.5;
  margin: 0;
}

/* ───────────── Single post ───────────── */
.post-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px) 200px;
  gap: 80px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 0;
}
.post-aside {
  position: sticky; top: 88px;
  align-self: start;
  height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.aside-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--border);
  line-height: 1.4;
  letter-spacing: -0.005em;
  transition: all 0.15s;
}
.toc a.h3 { padding-left: 22px; font-size: 12.5px; color: var(--muted-2); }
.toc a:hover { color: var(--fg); }
.toc a.is-active {
  color: var(--fg);
  border-left-color: var(--fg);
  font-weight: 500;
}

.post-aside-right { padding-top: 8px; }
.author-block {
  display: flex; gap: 10px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(60% 0.14 280), oklch(45% 0.18 260));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-block .name {
  font-size: 13px; font-weight: 500;
  margin: 0; color: var(--fg);
  letter-spacing: -0.005em;
}
.author-block .role {
  font-size: 11.5px; color: var(--muted);
  margin: 1px 0 0;
}
.share-row {
  display: flex; gap: 4px;
  flex-wrap: wrap;
}
.share-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.share-btn:hover { color: var(--fg); border-color: var(--border-2); }
.share-btn svg { width: 12px; height: 12px; }

/* Article */
.post-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}
.post-breadcrumb a:hover { color: var(--fg); }
.post-breadcrumb .sep { color: var(--muted-2); }
.post-breadcrumb [aria-current="page"] { color: var(--fg-2); text-transform: none; letter-spacing: -0.005em; }

.post-title-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 22px;
  text-wrap: balance;
  max-width: 22ch;
  color: var(--fg);
}
.post-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 60ch;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}
.post-byline {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.post-byline strong { color: var(--fg); font-weight: 500; }
.post-byline .sep { color: var(--muted-2); }
.post-byline .reading-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.article {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
}
.article p { margin: 0 0 1.4em; text-wrap: pretty; }
.article h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 2.4em 0 0.8em;
  scroll-margin-top: 96px;
}
.article h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 2em 0 0.6em;
  scroll-margin-top: 96px;
}
.article h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 1.8em 0 0.5em;
  scroll-margin-top: 96px;
}
.article ul, .article ol { margin: 0 0 1.4em; padding-inline-start: 1.4em; }
.article li { margin-bottom: 0.5em; }
.article blockquote {
  border-inline-start: 2px solid var(--fg);
  padding-inline-start: 22px;
  margin: 1.8em 0;
  color: var(--fg-2);
  font-style: normal;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article a { color: var(--fg); border-bottom: 1px solid var(--fg); }
.article a:hover { background: var(--fg); color: var(--bg); }
.article code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}
.article pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  margin: 1.6em 0;
}
.article pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.article hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 2.6em 0;
}
.article img,
.article video {
  border-radius: var(--radius);
  margin: 2em 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14.5px;
}
.article table th, .article table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}
.article table th {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.post-hero {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin: 2em 0 0.6em;
  overflow: hidden;
  position: relative;
}
.post-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-hero-cap {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 2em;
  letter-spacing: 0.02em;
}

.post-figure { margin: 2.4em 0; }
.post-figure-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.post-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Author footer */
.post-author-footer {
  display: flex; gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 64px 0 0;
  align-items: flex-start;
}
.post-author-footer .avatar { width: 52px; height: 52px; font-size: 16px; }
.post-author-footer .name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0 0 2px;
}
.post-author-footer .role { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.post-author-footer .bio {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}

.post-newsletter {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 36px;
  margin: 56px 0 0;
}
.post-newsletter .eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: oklch(70% 0.005 250);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.post-newsletter h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.15;
  margin: 0 0 8px;
  text-wrap: balance;
}
.post-newsletter p {
  font-size: 14px;
  color: oklch(72% 0.005 250);
  margin: 0 0 22px;
  max-width: 50ch;
}
.post-newsletter form {
  display: flex; gap: 6px;
  background: oklch(20% 0.008 250);
  border-radius: 999px;
  padding: 4px;
  max-width: 420px;
}
.post-newsletter input {
  flex: 1; border: 0; background: transparent;
  font: inherit; font-size: 13.5px;
  padding: 8px 14px;
  color: white; outline: none;
}
.post-newsletter input::placeholder { color: oklch(60% 0.005 250); }
.post-newsletter button {
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 999px;
  padding: 8px 18px;
  font: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.related { margin: 72px 0 0; }
.related h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.related .post-thumb { aspect-ratio: 16/10; }
.related .post-title { font-size: 16px; }

.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 40;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--fg); color: var(--bg);
  border: 0; cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 28px oklch(0% 0 0 / 0.18);
}
.back-to-top.is-visible { display: inline-flex; }
.back-to-top svg { width: 16px; height: 16px; }

/* ───────────── Author archive ───────────── */
.author-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
}
.author-hero .author-row {
  display: flex; gap: 28px; align-items: flex-start;
  flex-wrap: wrap;
}
.author-hero .avatar { width: 88px; height: 88px; font-size: 26px; }
.author-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 8px;
}
.author-hero .role {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.author-hero .bio {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}

/* ───────────── 404 ───────────── */
.error-404 {
  padding: 120px 0;
  text-align: center;
}
.error-404 .code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.error-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 18px;
}
.error-404 p {
  font-size: 17px;
  color: var(--fg-2);
  margin: 0 auto 28px;
  max-width: 50ch;
}
.error-404 .header-cta { display: inline-block; }

/* ───────────── Page ───────────── */
.single-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.single-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 32px;
  text-wrap: balance;
}

/* ───────────── Footer ───────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 100px;
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  font-size: 13.5px; color: var(--fg-2);
  letter-spacing: -0.005em;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-bottom-links a:hover { color: var(--fg); }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--fg);
  margin: 60px 0 60px;
  user-select: none;
  text-wrap: balance;
}

/* ───────────── WordPress core classes ───────────── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--bg);
  border-radius: 4px;
  box-shadow: 0 0 2px 2px oklch(50% 0.15 280 / 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: var(--fg);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 9999;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
}
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 12px;
  margin: 2em 0;
}
.gallery-columns-2 { --cols: 2; }
.gallery-columns-3 { --cols: 3; }
.gallery-columns-4 { --cols: 4; }
.gallery-columns-5 { --cols: 5; }
.gallery-item img { border-radius: var(--radius-sm); }
.sticky .post-title::before {
  content: '★ ';
  color: var(--muted);
  font-size: 0.7em;
  vertical-align: middle;
}
.bypostauthor { /* hook for theme reviewers */ }

/* WP search form fallback */
.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
}
.search-form button {
  background: var(--fg); color: var(--bg);
  border: 0; border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
}

/* Pagination fallback (caso desative AJAX) */
.pagination {
  display: flex; gap: 4px; justify-content: center;
  padding: 32px 0 80px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.pagination .page-numbers.current {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}
.pagination .page-numbers:hover:not(.current) { border-color: var(--fg-2); color: var(--fg); }

/* ───────────── Responsive ───────────── */
@media (max-width: 1100px) {
  .post-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding: 48px 24px 0; }
  .post-aside-right { display: none; }
  .post-grid .featured { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .header-inner { padding: 0 16px; gap: 16px; }
  .nav { display: none; }
  .container { padding: 0 16px; }
  .blog-hero { padding: 56px 0 36px; }
  .post-grid { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 60px; }
  .post-shell { grid-template-columns: 1fr; gap: 0; padding: 32px 16px 0; }
  .post-aside { display: none; }
  .archive-head { padding: 56px 0 32px; }
  .archive-head h1 { font-size: 44px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .post-newsletter { padding: 28px; }
  .post-newsletter h3 { font-size: 22px; }
  .post-newsletter form { flex-wrap: wrap; }
}
