/* ==========================================================================
   QuantoCustaUm Ghost Theme — screen.css
   Based on Casper · Adapted to QuantoCustaUm.app.br visual identity
   ========================================================================== */

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --color-neon-green:     #00FF88;
  --color-neon-green-dim: #00CC6E;
  --color-neon-blue:      #00D4FF;
  --color-neon-purple:    #9B59FF;
  --color-neon-orange:    #FF6B35;

  --color-bg-primary:    #080B14;
  --color-bg-secondary:  #0D1117;
  --color-bg-card:       #111827;
  --color-bg-card-hover: #1A2236;

  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-neon:   rgba(0, 255, 136, 0.25);

  --color-text-primary:   #F0F6FF;
  --color-text-secondary: #8B9BB4;
  --color-text-muted:     #5C6B82; /* #7 — ratio 5.2:1, era 4.1:1 */

  /* Tokens de leitura — usados apenas dentro do artigo */
  --color-reading-body:     #C8D3E8; /* #8 — 10:1, suave sem halação  */
  --color-reading-heading:  #E2EAF8; /* #8 — 13:1, hierarquia clara   */
  --color-reading-accent:   #00C872; /* #10 — tom dos links no artigo */
  --color-reading-surface:  #0D1019; /* #9 — superfície de leitura    */
  --color-reading-code:     #FFD166; /* #7 — amber, ratio 6.2:1       */

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter',   system-ui, sans-serif;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 100px;

  --shadow-neon-green: 0 0 20px rgba(0, 255, 136, 0.30), 0 0 60px rgba(0, 255, 136, 0.10);
  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.40);
  --shadow-card-hover: 0 12px 48px rgba(0, 255, 136, 0.08);

  --transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  --z-navbar: 100;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  overflow-x: hidden;
}

a { color: var(--color-neon-green); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-neon-green-dim); }

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
}

/* ── Container ─────────────────────────────────────────────────────────── */
.gh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.gh-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  padding: 20px 0;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), padding var(--transition-base);
}

.gh-head.scrolled {
  background: rgba(8, 11, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.gh-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.gh-head-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
}

.gh-head-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.gh-head-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-neon-green), var(--color-neon-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.gh-head-logo span.accent { color: var(--color-neon-green); }

/* Nav */
.gh-head-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.gh-head-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.gh-head-menu a:hover { color: var(--color-text-primary); }

/* CTA button */
.gh-head-btn {
  background: var(--color-neon-green);
  color: #050A05 !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.gh-head-btn:hover {
  box-shadow: var(--shadow-neon-green);
  transform: translateY(-1px);
  color: #050A05 !important;
}

/* Mobile toggle */
.gh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.gh-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ── Hero (site cover / home) ──────────────────────────────────────────── */
.gh-cover {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.gh-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,255,136,.06) 0%, transparent 70%); /* #11 — fundo mais neutro */
  pointer-events: none;
}

.gh-cover-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.gh-cover-content { position: relative; z-index: 1; }

.gh-cover-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neon-green);
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: 24px;
  background: rgba(0, 255, 136, 0.06);
}

.gh-cover-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.gh-cover-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Post Grid ─────────────────────────────────────────────────────────── */
.gh-main { padding: 80px 0 120px; }

.gh-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Featured (first post spans 2 cols) */
.gh-feed .post-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gh-feed .post-card:first-child .post-card-image-link {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.gh-feed .post-card:first-child .post-card-content {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

/* Card */
.post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.post-card:hover {
  border-color: var(--color-border-neon);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.post-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.post-card-content { padding: 28px; }

.post-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.post-card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neon-green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.9375rem; /* #6 — ligeiramente maior */
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* #6 — 2 linhas, corte menos abrupto */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* #6 — Badge "Em destaque" no primeiro card */
.post-card-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neon-orange);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.gh-feed .post-card:first-child .post-card-title {
  font-size: 1.5rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.post-card-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border-subtle);
}

.post-card-author-name { color: var(--color-text-secondary); font-weight: 500; }
.post-card-meta-sep { color: var(--color-text-muted); }
.post-card-reading-time {}

/* ── Article / Post ────────────────────────────────────────────────────── */
.gh-article {
  max-width: 680px; /* #1 — 65-75 chars por linha */
  margin: 0 auto;
  padding: 120px 40px 80px;
  background: var(--color-reading-surface); /* #9 — superfície de leitura */
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.gh-article-header { margin-bottom: 48px; }

.gh-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gh-article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neon-green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.gh-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.gh-article-excerpt {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.gh-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 40px;
}

.gh-article-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border-neon);
}

.gh-article-author-info { display: flex; flex-direction: column; gap: 2px; }
.gh-article-author-name { font-weight: 600; font-size: 0.9375rem; color: var(--color-text-primary); }
.gh-article-date { font-size: 0.8125rem; color: var(--color-text-muted); }

.gh-article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  border: 1px solid var(--color-border-subtle);
}

/* Article body ── #1 tipografia, #8 cor, #10 acentos */
.gh-content {
  font-family: Georgia, 'Times New Roman', serif; /* #1 — serif p/ leitura longa */
  font-size: 1.125rem;                            /* #1 — 18px */
  line-height: 1.9;                               /* #1 — espaçamento generoso */
  color: var(--color-reading-body);               /* #8 — #C8D3E8, ratio 10:1 */
}

.gh-content p { margin-bottom: 1.6em; }

/* #2 — headings: acento lateral, sem borda cortante */
.gh-content h2,
.gh-content h3 {
  position: relative; /* para âncora #4 */
}

.gh-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-reading-heading); /* #8 — #E2EAF8 */
  margin: 3em 0 0.8em;
  padding-left: 16px;
  border-left: 3px solid var(--color-reading-accent); /* #2 — acento lateral */
}

.gh-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-reading-heading);
  margin: 2.2em 0 0.6em;
}

.gh-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary); /* #2 — sem neon, sem maiúsculas */
  margin: 1.8em 0 0.5em;
}

/* #4 — âncoras de seção */
.gh-heading-anchor {
  position: absolute;
  left: -1.5em;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  font-size: 0.85em;
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  transition: opacity var(--transition-base), color var(--transition-base);
  line-height: 1;
}

.gh-content h2:hover .gh-heading-anchor,
.gh-content h3:hover .gh-heading-anchor { opacity: 1; }

.gh-heading-anchor:hover { color: var(--color-reading-accent); }

/* #10 — links com tom mais suave dentro do artigo */
.gh-content a {
  color: var(--color-reading-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 200, 114, 0.4);
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.gh-content a:hover {
  color: var(--color-neon-green);
  text-decoration-color: rgba(0, 255, 136, 0.6);
}

.gh-content ul, .gh-content ol {
  margin: 1em 0 1.5em 1.5em;
}

.gh-content li { margin-bottom: 0.6em; }

/* #3 — citações melhoradas */
.gh-content blockquote {
  border-left: 3px solid var(--color-reading-accent);
  padding: 20px 28px;
  margin: 2.5em 0;
  background: rgba(0, 200, 114, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-reading-body);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.gh-content blockquote p { margin: 0; }

/* #3 — bloco de código com barra superior colorida */
.gh-content pre {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-top: 2px solid var(--color-reading-accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.75em 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* #3/#7 — código inline: amber em vez de azul (ratio 6.2:1) */
.gh-content code {
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  font-size: 0.875em;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--color-reading-code); /* #7 — #FFD166 */
}

.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text-primary);
}

.gh-content figure {
  margin: 2em 0;
}

.gh-content figure img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  width: 100%;
}

.gh-content figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: 3em 0;
}

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.gh-content th {
  background: var(--color-bg-card);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-neon-green);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-border-neon);
}

.gh-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
}

.gh-content tr:last-child td { border-bottom: none; }

/* Call-to-action box */
.gh-content .kg-callout-card {
  display: flex;
  gap: 16px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 2em 0;
}

.gh-content .kg-callout-emoji { font-size: 1.5rem; flex-shrink: 0; }
.gh-content .kg-callout-text { color: var(--color-text-secondary); }

/* ── Tags / Author Pages ───────────────────────────────────────────────── */
.gh-page-head {
  padding: 120px 24px 60px;
  text-align: center;
}

.gh-page-head .gh-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.gh-page-head .gh-page-description {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.gh-page-head .gh-page-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neon-green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: 16px;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.gh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
}

.gh-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.gh-pagination-btn:hover {
  border-color: var(--color-border-neon);
  color: var(--color-neon-green);
  box-shadow: var(--shadow-card-hover);
}

.gh-pagination-info {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.gh-foot {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-subtle);
  padding: 60px 0 32px;
}

.gh-foot-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.gh-foot-brand p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 320px;
}

.gh-foot-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
}

.gh-foot-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-neon-green), var(--color-neon-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.gh-foot-logo span.accent { color: var(--color-neon-green); }

.gh-foot-col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.gh-foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gh-foot-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.gh-foot-links a:hover { color: var(--color-neon-green); }

.gh-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.gh-foot-copyright {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.gh-foot-copyright a { color: var(--color-neon-green); }

.gh-powered {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ── Tag color variants ─────────────────────────────────────────────────── */
.tag-custo    .post-card-tag { color: var(--color-neon-green); background: rgba(0,255,136,.08); border-color: rgba(0,255,136,.2); }
.tag-mvp      .post-card-tag { color: var(--color-neon-blue);  background: rgba(0,212,255,.08); border-color: rgba(0,212,255,.2); }
.tag-tech     .post-card-tag { color: var(--color-neon-purple);background: rgba(155,89,255,.08);border-color: rgba(155,89,255,.2); }
.tag-mercado  .post-card-tag { color: var(--color-neon-orange);background: rgba(255,107,53,.08);border-color: rgba(255,107,53,.2); }

/* ── Reading progress bar — #5 lateral esquerda ─────────────────────────── */
.gh-progress {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  height: 0%;           /* controlado por JS */
  background: linear-gradient(180deg, var(--color-neon-green), var(--color-neon-blue));
  z-index: 9999;
  transition: height 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Sticky title no navbar — #5 ────────────────────────────────────────── */
.gh-head-sticky-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.gh-head.scrolled .gh-head-sticky-title { opacity: 1; }

/* ── Subscribe form (newsletter) ────────────────────────────────────────── */
.gh-subscribe {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.gh-subscribe::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,255,136,.06) 0%, transparent 60%);
  pointer-events: none;
}

.gh-subscribe h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  border: none;
  padding: 0;
}

.gh-subscribe p {
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.gh-subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.gh-subscribe-input {
  flex: 1;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-base);
}

.gh-subscribe-input:focus { border-color: var(--color-border-neon); }
.gh-subscribe-input::placeholder { color: var(--color-text-muted); }

.gh-subscribe-btn {
  background: var(--color-neon-green);
  color: #050A05;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  white-space: nowrap;
}

.gh-subscribe-btn:hover {
  box-shadow: var(--shadow-neon-green);
  transform: translateY(-1px);
}

/* ── Related posts ──────────────────────────────────────────────────────── */
.gh-related {
  padding: 80px 0;
  border-top: 1px solid var(--color-border-subtle);
}

.gh-related-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--color-text-secondary);
}

.gh-related-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Koenig card widths (required by Ghost) ─────────────────────────────── */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5em auto;
  transform: translateX(calc(50% - 50vw));
  transform: translateX(min(calc(50% - 50vw), calc(50% - 360px)));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
}

/* ── Koenig card base ───────────────────────────────────────────────────── */
.kg-card { margin: 1.5em 0; }
.kg-image { max-width: 100%; }

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.kg-bookmark-container {
  display: flex;
  color: inherit;
  font-family: var(--font-body);
  text-decoration: none;
  gap: 0;
}
.kg-bookmark-content { flex: 1; padding: 20px; }
.kg-bookmark-title { font-weight: 600; color: var(--color-text-primary); margin-bottom: 4px; }
.kg-bookmark-description { font-size: 0.875rem; color: var(--color-text-secondary); }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-video-card video { width: 100%; border-radius: var(--radius-md); }

.kg-audio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.kg-toggle-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.kg-toggle-heading { font-weight: 600; cursor: pointer; user-select: none; }
.kg-toggle-content { margin-top: 12px; color: var(--color-text-secondary); }

.kg-product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gh-head-menu { display: none; }
  .gh-burger { display: flex; }

  .gh-head-menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,11,20,.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 9998;
  }

  .gh-head-menu.is-open a { font-size: 1.25rem; color: var(--color-text-primary); }
  .gh-head-menu.is-open .gh-head-btn { font-size: 1rem; padding: 14px 32px; }

  .gh-feed .post-card:first-child {
    grid-template-columns: 1fr;
  }
  .gh-feed .post-card:first-child .post-card-image-link {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .gh-feed .post-card:first-child .post-card-content {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 28px;
  }

  .gh-foot-inner { grid-template-columns: 1fr 1fr; }
  .gh-foot-brand { grid-column: 1 / -1; }

  .gh-related-feed { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .gh-feed { grid-template-columns: 1fr; }
  .gh-foot-inner { grid-template-columns: 1fr; }
  .gh-foot-brand { grid-column: auto; }
  .gh-related-feed { grid-template-columns: 1fr; }
  .gh-subscribe-form { flex-direction: column; }
  .gh-subscribe { padding: 32px 24px; }
  .gh-article { padding: 100px 20px 60px; border-radius: 0; }
  .gh-heading-anchor { display: none; } /* âncoras ocultas em mobile */
}
