/* ═══════════════════════════════════════════════════════════════
   CortexHub Theme — screen.css
   Design: Minimalismo Sofisticado · Deep Night · Sage Green
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --night:         #0a0a0f;
  --night-2:       #111117;
  --night-3:       #18181f;
  --night-4:       #22222c;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.14);
  --ivory:         #f0ece2;
  --ivory-dim:     rgba(240,236,226,0.55);
  --ivory-muted:   rgba(240,236,226,0.32);
  --sage:          #7aab82;
  --sage-dim:      rgba(122,171,130,0.12);
  --sage-glow:     rgba(122,171,130,0.07);
  --steel:         #6b93b8;
  --steel-dim:     rgba(107,147,184,0.12);
  --gold:          #c4a97a;
  --radius:        8px;
  --radius-lg:     14px;
  --transition:    0.22s ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--night);
  color: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise texture sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
p  { color: var(--ivory-dim); }

/* ─── Tipografia ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: var(--ivory);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem);   font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw,   1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: 760px; }

section { position: relative; z-index: 1; }

/* ─── Botões ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--sage);
  color: var(--night);
  border-color: var(--sage);
}
.btn-primary:hover {
  background: #8fbe97;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(122,171,130,0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory-dim);
  border-color: var(--border-hover);
}
.btn-ghost:hover {
  color: var(--ivory);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

/* ─── Tags / Chips ──────────────────────────────────────────── */
.tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid;
  transition: background var(--transition);
}
.tag-chip--cognition { color: var(--steel);  border-color: rgba(107,147,184,0.3); background: var(--steel-dim); }
.tag-chip--vitalidade { color: var(--sage);  border-color: rgba(122,171,130,0.3); background: var(--sage-dim); }
.tag-chip--longevidade { color: var(--gold); border-color: rgba(196,169,122,0.3); background: rgba(196,169,122,0.08); }
.tag-chip--default { color: var(--ivory-muted); border-color: var(--border); background: transparent; }

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.gh-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.gh-head.scrolled {
  background: rgba(10,10,15,0.84);
  border-color: var(--border);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.gh-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.gh-head-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--ivory);
  flex-shrink: 0;
}
.gh-head-logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--sage), var(--steel));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--night);
}
.gh-head-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.gh-head-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ivory-dim);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.gh-head-nav a:hover { color: var(--ivory); background: rgba(255,255,255,0.06); }
.gh-head-nav a.active { color: var(--ivory); }
.gh-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gh-head-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-hover);
  color: var(--ivory);
  transition: background var(--transition), border-color var(--transition);
}
.gh-head-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}
.gh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius);
  border: none;
  background: none;
}
.gh-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ivory-dim);
  border-radius: 2px;
  transition: background var(--transition);
}

/* Mobile nav */
.gh-head-nav--mobile {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
}
.gh-head-nav--mobile.open { display: flex; }
.gh-head-nav--mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ivory-dim);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.gh-head-nav--mobile a:hover { color: var(--ivory); }

/* ═══════════════════════════════════════════════════════════════
   HERO (Homepage)
   ═══════════════════════════════════════════════════════════════ */
.gh-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow-x: hidden;
}
.gh-hero::after {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 120%; height: 70%;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(122,171,130,0.1) 0%,
    rgba(107,147,184,0.07) 35%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.gh-hero-content { position: relative; z-index: 1; max-width: 780px; }
.gh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-dim);
  border: 1px solid rgba(122,171,130,0.2);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.gh-hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sage);
  border-radius: 50%;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.gh-hero-title { margin-bottom: 1.4rem; }
.gh-hero-title .accent { color: var(--sage); }
.gh-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ivory-dim);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}
.gh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.gh-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.gh-metric-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ivory);
}
.gh-metric-label {
  font-size: 0.75rem;
  color: var(--ivory-muted);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════
   THE STACK — Pilares
   ═══════════════════════════════════════════════════════════════ */
.gh-stack { background: var(--night-2); }
.gh-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(107,147,184,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.section { padding: 5.5rem 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.9rem;
}
.section-title { margin-bottom: 0.7rem; }
.section-sub {
  font-size: 1rem;
  color: var(--ivory-dim);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.pillar-card {
  position: relative;
  background: var(--night-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  transition: border-color var(--transition), transform 0.3s, box-shadow 0.3s;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.pillar-card--featured {
  background: rgba(122,171,130,0.05);
  border-color: rgba(122,171,130,0.18);
  backdrop-filter: blur(8px);
}
.pillar-card--featured:hover {
  border-color: rgba(122,171,130,0.32);
  box-shadow: 0 20px 40px rgba(122,171,130,0.08), 0 0 0 1px rgba(122,171,130,0.1);
}
.pillar-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-dim);
  border: 1px solid rgba(122,171,130,0.2);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.pillar-icon--cog { background: rgba(107,147,184,0.12); }
.pillar-icon--vit { background: rgba(122,171,130,0.12); }
.pillar-icon--lon { background: rgba(196,169,122,0.1);  }
.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ivory);
}
.pillar-desc {
  font-size: 0.875rem;
  color: var(--ivory-dim);
  line-height: 1.65;
}
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.pillar-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ivory-muted);
}
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  transition: gap var(--transition);
  margin-top: 0.3rem;
}
.pillar-link:hover { gap: 0.55rem; }

/* ═══════════════════════════════════════════════════════════════
   POST CARDS
   ═══════════════════════════════════════════════════════════════ */
.gh-feed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.post-card {
  background: var(--night-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.28);
}
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb--placeholder {
  background: var(--night-4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-thumb--placeholder .placeholder-gfx {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.placeholder-gfx::before,
.placeholder-gfx::after {
  content: '';
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.18;
}
.placeholder-gfx::before {
  background: radial-gradient(circle, var(--steel), transparent);
  top: 10%; left: 15%;
}
.placeholder-gfx::after {
  background: radial-gradient(circle, var(--sage), transparent);
  bottom: 10%; right: 15%;
}
.post-card-body {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ivory);
  line-height: 1.38;
}
.post-card-excerpt {
  font-size: 0.86rem;
  color: var(--ivory-dim);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--ivory-muted);
}
.post-card-read {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════ */
.gh-cta {
  background: var(--night-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gh-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 5rem 0;
  position: relative;
}
.gh-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(122,171,130,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.gh-cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--ivory);
  max-width: 560px;
  position: relative;
}
.gh-cta-sub {
  font-size: 1rem;
  color: var(--ivory-dim);
  max-width: 420px;
  line-height: 1.7;
  position: relative;
}
.gh-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
}
.gh-cta-disclaimer {
  font-size: 0.73rem;
  color: var(--ivory-muted);
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════════════ */
.gh-article {
  padding-top: 7rem;
  padding-bottom: 5rem;
}
.gh-article-header { margin-bottom: 2.5rem; }
.gh-article-tag {
  margin-bottom: 1rem;
}
.gh-article-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: var(--ivory);
}
.gh-article-excerpt {
  font-size: 1.1rem;
  color: var(--ivory-dim);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.gh-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--ivory-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.gh-article-meta-sep { opacity: 0.3; }

.gh-feature-image {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

/* Post content typography */
.gh-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ivory-dim);
}
.gh-content > * + * { margin-top: 1.4em; }
.gh-content h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  color: var(--ivory);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  letter-spacing: -0.03em;
}
.gh-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ivory);
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
.gh-content p { color: var(--ivory-dim); }
.gh-content strong { color: var(--ivory); font-weight: 600; }
.gh-content em { font-style: italic; }
.gh-content a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: rgba(122,171,130,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
.gh-content a:hover { text-decoration-color: var(--sage); }
.gh-content blockquote {
  border-left: 3px solid var(--sage);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 1.5em 0;
  background: var(--sage-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.gh-content blockquote p { color: var(--ivory); font-style: italic; font-size: 1.05em; }
.gh-content ul, .gh-content ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}
.gh-content ul li::marker { color: var(--sage); }
.gh-content ol li::marker { color: var(--sage); font-weight: 600; }
.gh-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2.5em 0;
}
.gh-content code {
  font-family: 'SF Mono', 'Fira Mono', monospace;
  font-size: 0.88em;
  background: var(--night-3);
  border: 1px solid var(--border);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--sage);
}
.gh-content pre {
  background: var(--night-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
}
.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
}
.gh-content figure { margin: 0; }
.gh-content figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}
.gh-content figcaption {
  font-size: 0.8rem;
  color: var(--ivory-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Post footer */
.gh-article-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gh-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gh-article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.gh-article-back:hover { color: var(--ivory); }

/* Related posts */
.gh-related {
  background: var(--night-2);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}
.gh-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   TAG PAGE
   ═══════════════════════════════════════════════════════════════ */
.gh-tag-header {
  padding-top: 7rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.gh-tag-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.gh-tag-desc {
  font-size: 1rem;
  color: var(--ivory-dim);
  max-width: 500px;
}
.gh-tag-count {
  font-size: 0.8rem;
  color: var(--ivory-muted);
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.gh-foot {
  background: var(--night);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  position: relative;
  z-index: 1;
}
.gh-foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.gh-foot-brand p {
  font-size: 0.86rem;
  color: var(--ivory-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 240px;
}
.gh-foot-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-bottom: 1rem;
}
.gh-foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.gh-foot-col ul li a {
  font-size: 0.86rem;
  color: var(--ivory-dim);
  transition: color var(--transition);
}
.gh-foot-col ul li a:hover { color: var(--ivory); }
.gh-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
}
.gh-foot-copy {
  font-size: 0.78rem;
  color: var(--ivory-muted);
}
.gh-foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.gh-foot-legal a {
  font-size: 0.75rem;
  color: var(--ivory-muted);
  transition: color var(--transition);
}
.gh-foot-legal a:hover { color: var(--ivory-dim); }
.gh-foot-disclaimer {
  font-size: 0.72rem;
  color: var(--ivory-muted);
  margin-top: 1.5rem;
  line-height: 1.65;
  max-width: 660px;
}

/* ═══════════════════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════════════════ */
.gh-error {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem;
}
.gh-error-code {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--night-4);
  line-height: 1;
  margin-bottom: 1rem;
}
.gh-error-title { margin-bottom: 0.75rem; }
.gh-error-sub { margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.gh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.gh-pagination a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ivory-dim);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.gh-pagination a:hover {
  color: var(--ivory);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}
.gh-pagination-info {
  font-size: 0.8rem;
  color: var(--ivory-muted);
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar             { width: 5px; }
::-webkit-scrollbar-track       { background: var(--night); }
::-webkit-scrollbar-thumb       { background: var(--night-4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ─── Focus ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVIDADE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gh-foot-grid { grid-template-columns: 1fr 1fr; }
  .gh-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .gh-head-nav { display: none; }
  .gh-burger   { display: flex; }
  .gh-hero-metrics { gap: 1.5rem; }
  .gh-foot-grid { grid-template-columns: 1fr; }
  .gh-foot-brand { grid-column: auto; }
  .gh-foot-bottom { flex-direction: column; align-items: flex-start; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .gh-hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .gh-cta-actions { flex-direction: column; align-items: center; }
}

/* ─── Tag chips por slug ─────────────────────────────────────── */
.tag-chip--cogni-o,
.tag-chip--cognicao    { color: var(--steel); border-color: rgba(107,147,184,0.3); background: var(--steel-dim); }
.tag-chip--vitalidade  { color: var(--sage);  border-color: rgba(122,171,130,0.3); background: var(--sage-dim); }
.tag-chip--longevidade { color: var(--gold);  border-color: rgba(196,169,122,0.3); background: rgba(196,169,122,0.08); }
.tag-chip--foco,
.tag-chip--neurociencia,
.tag-chip--treino,
.tag-chip--recuperacao,
.tag-chip--biomarcadores,
.tag-chip--saude-preventiva { color: var(--ivory-muted); border-color: var(--border); background: transparent; }

/* ─── Koenig editor (obrigatório para Ghost 6) ──────────────── */
.gh-content .kg-width-wide  { margin-inline: -4vw; }
.gh-content .kg-width-full  { margin-inline: calc(50% - 50vw); width: 100vw; }
.gh-content .kg-image-card  { margin: 1.5em 0; }
.gh-content .kg-image-card img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; max-width: 100%; }
.gh-content .kg-gallery-row      { display: flex; flex-direction: row; justify-content: center; gap: 4px; margin: 0 0 4px; }
.gh-content .kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-bookmark-card {
  width: 100%;
  background: var(--night-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gh-content .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}
.gh-content .kg-bookmark-content  { flex: 1; padding: 1rem 1.25rem; }
.gh-content .kg-bookmark-title    { font-weight: 600; color: var(--ivory); font-size: 0.95rem; }
.gh-content .kg-bookmark-description { font-size: 0.83rem; color: var(--ivory-dim); margin-top: 0.3rem; }
.gh-content .kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-callout-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--sage-glow);
  border: 1px solid rgba(122,171,130,0.15);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.gh-content .kg-callout-emoji { font-size: 1.2rem; flex-shrink: 0; }
.gh-content .kg-callout-text  { font-size: 0.95rem; }
.gh-content .kg-toggle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.gh-content .kg-toggle-heading { font-weight: 600; cursor: pointer; color: var(--ivory); }
.gh-content .kg-toggle-content { margin-top: 0.5rem; }
.gh-content .kg-video-card video { width: 100%; border-radius: var(--radius); }
.gh-content .kg-audio-card { padding: 1rem; background: var(--night-3); border: 1px solid var(--border); border-radius: var(--radius); }
.gh-content .kg-embed-card { margin: 1.5em 0; }
.gh-content .kg-embed-card iframe { max-width: 100%; border-radius: var(--radius); }
.gh-content .kg-hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.gh-content .kg-header-card { padding: 3rem 2rem; text-align: center; background: var(--night-3); border-radius: var(--radius-lg); margin: 1.5em 0; }
