/* =============================================================
   Joe's Notes — Ghost Theme
   Business history & investment case studies
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --green-dark:    #1c2a1c;
  --green-mid:     #2e4a2e;
  --green-text:    #8ab88a;
  --green-muted:   #6a946a;
  --green-faint:   #4a6a4a;
  --gold:          #c9973a;
  --gold-light:    #faeeda;
  --gold-text:     #854f0b;
  --gold-border:   rgba(201,151,58,0.4);
  --cream:         #f5f0e4;
  --cream-card:    #fdfbf4;
  --cream-doc:     #ede8d4;
  --border:        #cec39e;
  --border-light:  rgba(206,195,158,0.5);
  --text:          #1a1a14;
  --text-muted:    #7a6a54;
  --text-faint:    #a09080;
  --font-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'EB Garamond', Georgia, 'Times New Roman', serif;
  --max-width:     1100px;
  --content-width: 720px;
}

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

html { font-size: 18px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── SITE WRAPPER ───────────────────────────────────────────── */
.gh-viewport { display: flex; flex-direction: column; min-height: 100vh; }
.gh-main { flex: 1; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.gh-head {
  background: var(--green-dark);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gh-head-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo / site name */
.gh-head-brand { flex-shrink: 0; }

.gh-head-logo {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: #e8dfc8;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gh-head-logo img {
  height: 32px;
  width: auto;
}

/* Nav links */
.gh-head-menu { display: flex; align-items: center; }

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

.nav a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover { color: var(--green-text); }

/* Right side — tagline + subscribe */
.gh-head-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.gh-head-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  color: var(--green-faint);
  white-space: nowrap;
}

.gh-head-btn {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-muted);
  text-decoration: none;
  border: 0.5px solid var(--green-mid);
  padding: 5px 12px;
  transition: color 0.15s, border-color 0.15s;
}

.gh-head-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

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

.gh-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--green-text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── HERO (homepage) ─────────────────────────────────────────── */
.gh-hero {
  background: var(--green-dark);
  padding: 48px 32px 44px;
  border-bottom: 3px solid var(--gold);
}

.gh-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gh-hero-rule {
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
  margin-bottom: 28px;
}

.gh-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  color: #e8dfc8;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.gh-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.gh-hero-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-top: 12px;
}

/* Hero subscribe form */
.gh-hero-form {
  display: flex;
  margin-top: 22px;
  max-width: 380px;
}

.gh-hero-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(200,180,140,0.35);
  border-right: none;
  color: #e8dfc8;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  border-radius: 2px 0 0 2px;
}

.gh-hero-form input[type="email"]::placeholder {
  color: rgba(232,223,200,0.3);
}

.gh-hero-form button {
  background: var(--gold);
  border: none;
  color: var(--green-dark);
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background 0.15s;
  white-space: nowrap;
}

.gh-hero-form button:hover { background: #b5842e; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.gh-page-hero {
  background: var(--green-dark);
  padding: 36px 32px 32px;
  border-bottom: 3px solid var(--gold);
}

.gh-page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gh-page-hero-rule {
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
  margin-bottom: 22px;
}

.gh-page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: #e8dfc8;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.gh-page-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.gh-page-hero-desc {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-top: 8px;
}

/* ── SECTION RULE ────────────────────────────────────────────── */
.gh-section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gh-section-rule-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.gh-section-rule-text {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── POST FEED / GRID ────────────────────────────────────────── */
.gh-feed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 40px;
}

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

/* Post card */
.gh-card {
  background: var(--cream-card);
  border: 0.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.gh-card:hover { border-color: var(--gold); }

.gh-card-image-link {
  display: block;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.gh-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gh-card:hover .gh-card-image { transform: scale(1.02); }

.gh-card-no-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--gold);
}

.gh-card-no-image-text {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--green-muted);
  text-align: center;
  padding: 8px;
  line-height: 1.4;
}

.gh-card-body { padding: 16px 18px 20px; flex: 1; }

.gh-card-meta {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.gh-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.gh-card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── SUBSCRIBE BAND ──────────────────────────────────────────── */
.gh-subscribe-band {
  background: var(--green-dark);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 28px 32px;
}

.gh-subscribe-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.gh-subscribe-band-text {}

.gh-subscribe-band-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: #e8dfc8;
}

.gh-subscribe-band-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-top: 4px;
}

.gh-subscribe-band-form { display: flex; flex-shrink: 0; }

.gh-subscribe-band-form input[type="email"] {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(200,180,140,0.35);
  border-right: none;
  color: #e8dfc8;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  width: 220px;
  border-radius: 2px 0 0 2px;
}

.gh-subscribe-band-form input[type="email"]::placeholder {
  color: rgba(232,223,200,0.3);
}

.gh-subscribe-band-form button {
  background: var(--gold);
  border: none;
  color: var(--green-dark);
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background 0.15s;
  white-space: nowrap;
}

.gh-subscribe-band-form button:hover { background: #b5842e; }

/* ── ARTICLE ─────────────────────────────────────────────────── */
.gh-article-hero {
  background: var(--green-dark);
  padding: 32px 32px 28px;
  border-bottom: 3px solid var(--gold);
}

.gh-article-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.gh-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-muted);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.15s;
}

.gh-article-back:hover { color: var(--green-text); }

.gh-article-back svg { width: 12px; height: 12px; }

.gh-article-meta {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 12px;
}

.gh-article-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  color: #e8dfc8;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Cover image */
.gh-article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--gold);
}

/* Article body */
.gh-article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 36px 32px 48px;
}

/* Disclosure box */
.gh-disclosure {
  background: var(--cream-doc);
  border-left: 3px solid var(--border);
  padding: 14px 18px;
  margin-bottom: 32px;
}

.gh-disclosure p {
  font-size: 12px;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
}

/* Body typography */
.gh-content p,
.gh-content ul,
.gh-content ol {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.4em;
}

.gh-content strong { font-weight: 500; }

.gh-content a {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: rgba(201,151,58,0.35);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.gh-content a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.gh-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.gh-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: 2rem 0 0.8rem;
}

.gh-content blockquote {
  border-left: 3px solid var(--green-dark);
  background: var(--cream-doc);
  padding: 16px 20px;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.gh-content blockquote p { margin: 0; font-size: 1rem; }

.gh-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

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

.gh-content figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  color: var(--text-faint);
  text-align: center;
  margin-top: 8px;
}

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

.gh-content th {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.gh-content td {
  padding: 8px 12px;
  border-bottom: 0.5px solid var(--border-light);
  color: var(--text);
  font-family: var(--font-body);
}

/* KG Card images */
.kg-image-card img,
.kg-image { max-width: 100%; border: 0.5px solid var(--border); }

/* ── READ MORE ───────────────────────────────────────────────── */
.gh-read-more {
  background: var(--cream);
  border-top: 0.5px solid var(--border);
  padding: 32px;
}

.gh-read-more-inner { max-width: var(--max-width); margin: 0 auto; }

.gh-read-more-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.gh-read-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gh-read-more-card {
  background: var(--cream-card);
  border: 0.5px solid var(--border);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.gh-read-more-card:hover { border-color: var(--gold); }

.gh-read-more-card-date {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.gh-read-more-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

/* ── LIBRARY PAGE ────────────────────────────────────────────── */
.gh-library {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 32px 48px;
}

.gh-library-intro {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 28px;
}

/* The library uses the standard post list for now —
   authors can populate it as a static page with HTML cards */

/* ── ABOUT / STATIC PAGE ─────────────────────────────────────── */
.gh-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 32px 56px;
}

.gh-page-content p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.4em;
}

.gh-page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: 2.5rem 0 1rem;
}

.gh-page-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.gh-page-content a {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: rgba(201,151,58,0.35);
}

/* Author card on about page */
.gh-author-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--border);
}

.gh-author-avatar {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  object-fit: cover;
}

.gh-author-avatar-placeholder {
  width: 80px;
  height: 80px;
  background: var(--green-dark);
  border: 2px solid var(--gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--green-muted);
}

.gh-author-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.gh-author-role {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── PAGINATION ──────────────────────────────────────────────── */
.gh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px;
  border-top: 0.5px solid var(--border);
}

.gh-pagination a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border: 0.5px solid var(--border);
  padding: 8px 18px;
  transition: border-color 0.2s, color 0.2s;
}

.gh-pagination a:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.gh-pagination-count {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.gh-foot {
  background: var(--green-dark);
  border-top: 1px solid rgba(201,151,58,0.25);
  padding: 20px 32px;
}

.gh-foot-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.gh-foot-left {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-faint);
}

.gh-foot-right {
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  color: var(--green-faint);
}

.gh-foot-right a {
  color: var(--green-faint);
  text-decoration: none;
  transition: color 0.15s;
}

.gh-foot-right a:hover { color: var(--green-muted); }

/* ── PORTAL / MEMBERSHIP ─────────────────────────────────────── */
.gh-portal-btn {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  font-family: var(--font-body) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  font-weight: 500 !important;
}

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gh-feed-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-head-tagline { display: none; }
}

@media (max-width: 680px) {
  .gh-head-inner { padding: 0 20px; }
  .gh-head-menu { display: none; }
  .gh-head-menu.is-open { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--green-dark); border-bottom: 2px solid var(--gold); padding: 16px 20px; }
  .gh-head-menu.is-open .nav { flex-direction: column; gap: 14px; }
  .gh-head-actions { gap: 12px; }
  .gh-head-btn { display: none; }
  .gh-burger { display: flex; }

  .gh-hero { padding: 32px 20px 28px; }
  .gh-hero-form { max-width: 100%; }

  .gh-page-hero { padding: 24px 20px 22px; }
  .gh-article-hero { padding: 22px 20px 20px; }

  .gh-section-rule { padding: 18px 20px 12px; }

  .gh-feed { padding: 0 20px 32px; }
  .gh-feed-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Mobile: horizontal card layout */
  .gh-card { flex-direction: row; }
  .gh-card-image-link { width: 100px; flex-shrink: 0; }
  .gh-card-image { width: 100px; height: 100%; aspect-ratio: unset; }
  .gh-card-no-image { width: 100px; aspect-ratio: unset; min-height: 100px; }
  .gh-card-image-link { border-bottom: none; border-right: 2px solid var(--gold); }
  .gh-card-no-image { border-bottom: none; border-right: 2px solid var(--gold); }
  .gh-card-body { padding: 12px 14px; }
  .gh-card-title { font-size: 15px; }

  .gh-subscribe-band-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gh-subscribe-band { padding: 22px 20px; }
  .gh-subscribe-band-form input[type="email"] { width: 160px; }

  .gh-article-body { padding: 24px 20px 36px; }
  .gh-read-more { padding: 24px 20px; }
  .gh-read-more-grid { grid-template-columns: 1fr; }

  .gh-page { padding: 28px 20px 40px; }

  .gh-foot-inner { flex-direction: column; gap: 8px; text-align: center; }
  .gh-foot { padding: 16px 20px; }
}

/* ── KG CARD WIDTH CLASSES (required by Ghost) ───────────────── */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem auto;
  transform: translateX(calc(50% - 50vw * 0.85));
}

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

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

/* ── SUPPRESS DUPLICATE FEATURE IMAGE IN POST BODY ──────────── */
/* Proven fix — matches the working Source theme Code Injection.  */
.post-template .gh-article-image,
.post-template .gh-post-image,
.post-template .gh-feature-image,
.post-template .post-feature-image,
.post-template .article-image,
.post-template article .feature-image,
.post-template .gh-content > figure.kg-card.kg-image-card:first-child,
.post-template .gh-content > figure.kg-image-card:first-child,
.post-template .gh-content > figure.kg-width-wide:first-child,
.post-template .gh-content > figure.kg-width-full:first-child {
  display: none !important;
}

/* ── CARD BODY PADDING FIX ───────────────────────────────────── */
.gh-card-body {
  padding: 16px 18px 20px !important;
}

/* ── HIDE GHOST BUILT-IN SUBSCRIBE BLOCK IN ARTICLES ─────────── */
/* Ghost injects a .gh-post-upgrade-cta or similar subscribe card */
.gh-post-upgrade-cta,
.subscription-form,
.subscribe-form,
.kg-signup-card,
.kg-nft-card {
  display: none !important;
}

/* ── ARTICLE H2 SUBHEADINGS ──────────────────────────────────── */
/* Ensure all heading levels in post content get styled           */
.gh-content h2,
.gh-content h2 strong {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  color: #1a1a14 !important;
  border-left: 3px solid #c9973a !important;
  padding-left: 16px !important;
  margin: 2.5rem 0 1rem !important;
  line-height: 1.25 !important;
}

.gh-content h3,
.gh-content h3 strong {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #1a1a14 !important;
  margin: 2rem 0 0.8rem !important;
  border-left: none !important;
  padding-left: 0 !important;
}

/* ── LIBRARY PAGE — HIDE AUTHOR CARD ────────────────────────── */
.page-template .gh-author-card {
  display: none !important;
}

/* ── SUPPRESS GHOST'S NATIVE SUBSCRIBE INJECT IN CONTENT ─────── */
.gh-content .gh-subscribe,
.gh-content [data-lexical-decorator],
.post-template .gh-subscribe {
  display: none !important;
}

/* ── CENTER IMAGES IN ARTICLE BODY ──────────────────────────── */
.gh-content figure,
.gh-content .kg-image-card,
.gh-content .kg-gallery-card,
.gh-content img {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.gh-content figure figcaption {
  text-align: center;
}

.gh-content .kg-image-card img,
.gh-content img {
  max-width: 100%;
  height: auto;
}
