/* ==========================================================================
   Genius Junkie — Professional Theme
   ========================================================================== */

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

:root {
  --accent:        #e91e8c;
  --accent-hover:  #c8177a;
  --accent-light:  #fdf2f8;
  --dark:          #0f172a;
  --body:          #1e293b;
  --mid:           #475569;
  --light:         #94a3b8;
  --border:        #e2e8f0;
  --surface:       #f8fafc;
  --bg:            #ffffff;
  --radius:        12px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --max-w:         1200px;
  --pad:           40px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--dark); letter-spacing: -0.01em; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(233,30,140,.3); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--body);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 60px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }

.nav-logo-initials {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.nav-logo-name { font-size: 16px; font-weight: 700; color: var(--dark); letter-spacing: -0.02em; }

.nav-links { flex: 1; }
.nav-links .nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover { color: var(--dark); background: var(--surface); }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-signin {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  transition: color .15s;
  text-decoration: none;
}
.btn-signin:hover { color: var(--dark); }

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-subscribe:hover { background: var(--accent-hover); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .2s; }

.mobile-nav { background: var(--bg); border-top: 1px solid var(--border); padding: 12px var(--pad) 16px; }
.mobile-nav ul, .mobile-nav .nav { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--body); border-bottom: 1px solid var(--border); text-decoration: none; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-subscribe { display: inline-block; margin-top: 12px; background: var(--accent); color: #fff !important; border-radius: 7px; padding: 10px 20px; font-weight: 600 !important; }

/* ── HERO ── */
.hero {
  background: var(--dark);
  padding: 72px var(--pad) 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233,30,140,.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233,30,140,.12);
  border: 1px solid rgba(233,30,140,.25);
  color: #f9a8d4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-cta .btn-primary { padding: 13px 26px; font-size: 15px; }
.hero-cta .btn-secondary { padding: 13px 26px; font-size: 15px; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.hero-cta .btn-secondary:hover { border-color: rgba(255,255,255,.5); color: #fff; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 22px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: #475569; margin-top: 2px; }

/* Hero panel */
.hero-visual {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-visual-title {
  background: #0f172a;
  border-bottom: 1px solid #334155;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .07em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual-title::before {
  content: '';
  display: flex;
  gap: 4px;
}

.hero-dots { display: flex; gap: 5px; margin-right: 4px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; background: #334155; }

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  transition: background .15s;
  text-decoration: none;
}
.mini-card:last-child { border-bottom: none; }
.mini-card:hover { background: rgba(255,255,255,.04); }

.mini-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: #334155;
  background-size: cover;
  background-position: center;
}

.mini-card-text { font-size: 13px; font-weight: 600; color: #e2e8f0; line-height: 1.35; }
.mini-card-sub { font-size: 11px; color: #475569; margin-top: 2px; }

/* ── CATEGORY PILLS ── */
.categories { border-bottom: 1px solid var(--border); background: var(--bg); }

.categories-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 52px;
}
.categories-inner::-webkit-scrollbar { display: none; }

.section-label { font-size: 12px; font-weight: 700; color: var(--mid); white-space: nowrap; margin-right: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill:hover { background: var(--surface); color: var(--dark); }
.pill.active { background: var(--dark); color: #fff; }

/* ── MAIN LAYOUT ── */
.main-layout, .archive-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 56px;
}

/* ── FEATURED CARD ── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 48px;
  background: var(--bg);
  transition: box-shadow .2s;
}
.featured-card:hover { box-shadow: var(--shadow-lg); }

.featured-img-link { display: block; }

.featured-img {
  height: 100%;
  min-height: 280px;
  background: var(--dark);
  background-size: cover;
  background-position: center;
  position: relative;
}

.featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.5) 0%, rgba(15,23,42,.15) 100%);
}

.featured-img-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2;
}
.big-emoji { font-size: 52px; margin-bottom: 12px; }
.featured-img-text h3 { color: #fff; font-size: 18px; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 10px;
  z-index: 3;
}

.featured-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }

.featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 100px;
  align-self: flex-start;
}

.featured-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.featured-body h2 a { color: inherit; transition: color .15s; }
.featured-body h2 a:hover { color: var(--accent); }

.featured-body p { font-size: 14px; color: var(--mid); line-height: 1.65; margin-bottom: 24px; }

.featured-meta { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.meta-text { font-size: 12px; color: var(--light); }
.meta-text strong { color: var(--mid); font-weight: 600; }

/* ── POST GRID ── */
.grid-label { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }

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

/* ── POST CARD ── */
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }

.post-card-link { display: block; }

.card-thumb {
  aspect-ratio: 16/9;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  overflow: hidden;
}

.thumb-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 8px;
}

.card-thumb-emoji { font-size: 32px; }

.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.card-title-link { display: block; }
.card-title { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 8px; transition: color .15s; }
.card-title-link:hover .card-title { color: var(--accent); }

.card-excerpt { font-size: 13px; color: var(--mid); line-height: 1.55; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-meta { font-size: 11px; color: var(--light); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.card-meta-dot { color: var(--border); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 0 0; }
.pagination a { display: inline-flex; align-items: center; padding: 8px 20px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--body); transition: all .15s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-number { font-size: 13px; color: var(--light); }

/* ── SIDEBAR ── */
.sidebar-newsletter {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}
.sidebar-newsletter h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-newsletter p { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 18px; }
.sidebar-subscribe-btn { display: block; width: 100%; background: var(--accent); color: #fff; border-radius: 7px; padding: 11px; font-size: 14px; font-weight: 600; text-align: center; transition: background .15s; text-decoration: none; }
.sidebar-subscribe-btn:hover { background: var(--accent-hover); }

.author-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; margin-bottom: 32px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; margin: 0 auto 14px; overflow: hidden; background-size: cover; background-position: center; }
.author-name { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.author-handle { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.author-bio { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 18px; }
.author-card .btn-subscribe { width: 100%; text-align: center; padding: 9px; display: block; }

.sidebar-section { margin-bottom: 32px; }
.sidebar-section-title { font-size: 12px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

.popular-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.popular-item:last-child { border-bottom: none; }
.popular-num { font-size: 18px; font-weight: 800; color: var(--border); min-width: 24px; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.popular-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.45; display: block; transition: color .15s; }
.popular-title:hover { color: var(--accent); }
.popular-sub { font-size: 11px; color: var(--light); margin-top: 3px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--mid); transition: all .15s; display: inline-block; }
.tag-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Freebie card for sidebar compat */
.sidebar-section .freebie-card { background: var(--dark); border-radius: var(--radius); padding: 24px; color: #fff; text-align: center; }
.freebie-emoji { font-size: 36px; display: block; margin-bottom: 12px; }
.freebie-card h4 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.freebie-card p { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 16px; }
.btn-freebie { display: block; width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 7px; padding: 11px; font-size: 14px; font-weight: 600; text-align: center; transition: background .15s; text-decoration: none; }
.btn-freebie:hover { background: var(--accent-hover); }

/* ── FOOTER BANNER ── */
.footer-banner { background: var(--dark); padding: 32px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid #1e293b; }
.footer-banner p { color: #fff; font-size: 15px; font-weight: 600; }
.footer-banner span { color: #64748b; font-weight: 400; margin-left: 8px; font-size: 14px; }
.btn-banner { display: inline-flex; align-items: center; background: var(--accent); color: #fff; border-radius: 8px; padding: 11px 22px; font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: background .15s; text-decoration: none; }
.btn-banner:hover { background: var(--accent-hover); }

/* ── FOOTER ── */
.site-footer { background: #080d17; color: #64748b; padding: 56px var(--pad) 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #111827; margin-bottom: 32px; }
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #374151; max-width: 240px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08); color: #9ca3af; transition: background .2s, color .2s; }
.social-link:hover { background: var(--accent); color: #fff; }
.social-link--bmc:hover { background: #ffdd00; color: #000; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: #6b7280; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .07em; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #374151; font-size: 13px; transition: color .15s; }
.footer-col a:hover { color: #9ca3af; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #1f2937; flex-wrap: wrap; gap: 8px; }

/* ── POST LAYOUT (article + sidebar) ── */
.post-layout { display: flex; gap: 48px; max-width: 1120px; margin: 0 auto; padding: 56px var(--pad) 80px; align-items: flex-start; }
.post-main { flex: 1; min-width: 0; }
.post-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }

/* ── POST FULL ── */
.post-full, .page-full { max-width: 720px; margin: 0 auto; padding: 56px var(--pad) 80px; }
.post-layout .post-full { max-width: none; padding: 0; margin: 0; }

.post-header { margin-bottom: 36px; }

.post-tag-label { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; border-radius: 100px; padding: 4px 12px; margin-bottom: 20px; transition: background .15s; text-decoration: none; }
.post-tag-label:hover { background: var(--accent); color: #fff; }

.post-title { font-size: 36px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.post-excerpt { font-size: 18px; color: var(--mid); line-height: 1.65; margin-bottom: 24px; }

.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--light); padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.post-author-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.post-author-name { font-weight: 600; color: var(--body); }
.post-meta-sep { color: var(--border); }

.post-feature-image { max-width: 720px; margin: 0 auto 40px; padding: 0 var(--pad); }
.post-feature-image img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.post-feature-image figcaption { font-size: 13px; color: var(--light); text-align: center; margin-top: 8px; }

/* ── GHOST CONTENT ── */
.gh-content { font-size: 17px; line-height: 1.8; color: var(--body); }
.gh-content h2 { font-size: 26px; font-weight: 700; margin: 44px 0 16px; letter-spacing: -0.01em; }
.gh-content h3 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.gh-content p { margin-bottom: 22px; }
.gh-content ul, .gh-content ol { margin: 0 0 22px 24px; }
.gh-content li { margin-bottom: 10px; }
.gh-content blockquote { border-left: 3px solid var(--accent); padding: 16px 24px; background: var(--accent-light); border-radius: 0 8px 8px 0; margin: 28px 0; font-style: italic; color: var(--mid); }
.gh-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--accent-hover); }
.gh-content img { border-radius: var(--radius); margin: 28px 0; }
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.gh-content pre { background: var(--dark); color: #e2e8f0; border-radius: var(--radius); padding: 20px 24px; overflow-x: auto; font-size: 14px; margin-bottom: 22px; }
.gh-content code { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; font-size: 14px; }
.gh-content pre code { background: none; border: none; padding: 0; }

/* Ghost card width classes — required by theme validator */
.kg-width-wide { margin-left: -80px; margin-right: -80px; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
@media (max-width: 900px) {
  .kg-width-wide { margin-left: -24px; margin-right: -24px; }
}
.gh-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 15px; }
.gh-content th { background: var(--surface); font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border); font-size: 13px; color: var(--dark); }
.gh-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.gh-content tr:last-child td { border-bottom: none; }

/* ── POST FOOTER ── */
.post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-tags-label { font-size: 13px; font-weight: 600; color: var(--light); }

.post-author-bio { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-bio-text { flex: 1; }
.author-bio-text .author-name { font-size: 16px; margin-bottom: 6px; }
.author-bio-text .author-bio { font-size: 14px; color: var(--mid); line-height: 1.6; margin-bottom: 10px; }
.author-more-link { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ── POST SIDEBAR WIDGETS ── */
.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sidebar-widget-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.sidebar-widget-desc { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 14px; }
.sidebar-widget--books { background: #fff; }
.amazon-carousel-wrap { min-height: 60px; }
.amazon-placeholder { font-size: 13px; color: var(--mid); font-style: italic; text-align: center; padding: 16px 0; }
.book-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.book-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); text-decoration: none; transition: border-color .15s, background .15s; }
.book-link:hover { border-color: var(--accent); background: var(--accent-light); }
.book-link-icon { font-size: 22px; flex-shrink: 0; }
.book-link strong { display: block; font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.book-link span { display: block; font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 2px; }
.amazon-disclosure { font-size: 10px; color: var(--mid); line-height: 1.4; margin-top: 8px; opacity: .7; }
.sidebar-widget--freebie { background: var(--dark); text-align: center; }
.sidebar-widget--freebie .sidebar-freebie-emoji { font-size: 28px; display: block; margin-bottom: 10px; }
.sidebar-widget--freebie h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-widget--freebie p { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 16px; }
.sidebar-widget--bmc h4 { margin-bottom: 8px; }
.btn-bmc { display: block; text-align: center; background: #ffdd00; color: #000; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: opacity .15s; }
.btn-bmc:hover { opacity: .85; }

/* Collapse sidebar below 1024px */
@media (max-width: 1024px) {
  .post-layout { flex-direction: column; }
  .post-sidebar { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1 1 260px; }
}
@media (max-width: 640px) {
  .post-sidebar { flex-direction: column; }
  .sidebar-widget { flex: none; width: 100%; }
}

.post-subscribe-cta { text-align: center; padding: 44px; margin-top: 48px; background: var(--dark); border-radius: var(--radius-lg); }
.post-subscribe-emoji { font-size: 36px; display: block; margin-bottom: 16px; }
.post-subscribe-cta h3 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.post-subscribe-cta p { font-size: 15px; color: #64748b; margin-bottom: 24px; }

/* ── RELATED POSTS ── */
.related-posts { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0; margin-top: 64px; }
.related-posts-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.related-posts-title { font-size: 22px; font-weight: 700; margin-bottom: 28px; }

/* ── ARCHIVE ── */
.archive-header { background: var(--dark); padding: 56px var(--pad); }
.archive-header-inner { max-width: var(--max-w); margin: 0 auto; }
.archive-cover { width: 80px; height: 80px; border-radius: var(--radius); background-size: cover; background-position: center; margin-bottom: 20px; }
.archive-title { font-size: 36px; color: #fff; margin-bottom: 10px; }
.archive-desc { font-size: 16px; color: #64748b; margin-bottom: 8px; }
.archive-count { font-size: 13px; color: #475569; }

.author-header { background: var(--dark); padding: 56px var(--pad); }
.author-header-inner { max-width: var(--max-w); margin: 0 auto; display: flex; gap: 28px; align-items: center; }
.author-header-text .author-name { font-size: 28px; color: #fff; margin-bottom: 6px; }
.author-header .author-handle { font-size: 14px; color: var(--accent); margin-bottom: 10px; }
.author-header .author-bio { font-size: 15px; color: #64748b; line-height: 1.65; }

/* ── POPUP ── */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .25s ease; }
.popup-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup-card { background: #fff; border-radius: var(--radius-lg); padding: 40px 36px; max-width: 440px; width: 100%; position: relative; animation: slideUp .3s ease; text-align: center; }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.popup-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px; color: var(--light); cursor: pointer; line-height: 1; padding: 4px; border-radius: 4px; transition: color .15s; }
.popup-close:hover { color: var(--dark); }
.popup-emoji { font-size: 40px; display: block; margin-bottom: 14px; }
.popup-title { font-size: 22px; margin-bottom: 8px; }
.popup-sub { font-size: 14px; color: var(--mid); margin-bottom: 16px; line-height: 1.6; }
.popup-list { list-style: none; text-align: left; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.popup-list li { font-size: 14px; font-weight: 500; color: var(--body); }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font); outline: none; transition: border-color .15s; color: var(--dark); }
.popup-input:focus { border-color: var(--accent); }
.popup-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 13px; font-size: 15px; font-weight: 600; font-family: var(--font); transition: background .15s; }
.popup-btn:hover { background: var(--accent-hover); }
.popup-disclaimer { font-size: 12px; color: var(--light); margin-top: 4px; }
.popup-success { text-align: center; padding: 16px 0; }
.popup-success span { font-size: 40px; display: block; margin-bottom: 12px; }
.popup-success p { font-size: 15px; font-weight: 600; color: var(--body); }

/* ── ERROR ── */
.error-page { text-align: center; padding: 80px var(--pad); max-width: 480px; margin: 0 auto; }
.error-emoji { font-size: 56px; display: block; margin-bottom: 16px; }
.error-code { font-size: 72px; font-weight: 800; color: var(--accent); margin-bottom: 12px; line-height: 1; }
.error-message { font-size: 18px; color: var(--mid); margin-bottom: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --pad: 28px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { display: none; }
  .main-layout, .archive-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .sidebar-newsletter { margin-bottom: 0; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .featured-body { padding: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }
  .nav-links, .nav-right .btn-subscribe, .nav-right .btn-signin { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 48px var(--pad) 56px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { flex-direction: column; }
  .hero-cta a { text-align: center; justify-content: center; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid--related { grid-template-columns: 1fr; }
  .sidebar { display: block; }
  .sidebar-newsletter { margin-bottom: 24px; }
  .post-title { font-size: 26px; }
  .post-full, .page-full { padding: 32px var(--pad) 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-banner { flex-direction: column; text-align: center; }
  .author-header-inner { flex-direction: column; text-align: center; }
}
