/* ============================================================
   PLUMLAW GHOST THEME — plumlaw.css
   Brand: sage #8FAF9E · coral #FA707F · ink #1F2328
   Type: Inter Display (primary) · Merriweather (secondary)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

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

a, button, [role="button"], label[for],
.toc-item, .tag-pill, .post-related-item,
.share-btn, .advice-btn, .btn-coral,
.nav-cta, .hero-read-btn, .section-link { cursor: pointer; }

:root {
  --sage:         #8FAF9E;
  --sage-light:   #E2EBE6;
  --sage-mid:     #c5d9ce;
  --coral:        #FA707F;
  --coral-light:  #FC9BA5;
  --ink:          #1F2328;
  --ink-muted:    #5a6270;
  --ink-faint:    #8e97a2;
  --surface:      #f7f9f8;
  --card:         #ffffff;
  --border:       rgba(143, 175, 158, 0.25);
  --border-strong:rgba(143, 175, 158, 0.45);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-pill:  999px;
  --max-width:    1100px;
  --content-width:720px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Progress bar ─────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--sage);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ── Site header / nav ────────────────────────────────────── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo .logo-dot { color: var(--coral); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  flex: none;
  margin: 0 auto;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border: none;
}

.site-nav a:hover,
.site-nav a.nav-current,
.site-nav a.nav-active {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Homepage hero strip ──────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, #8FAF9E 0%, #7a9f8c 60%, #6b8f7c 100%);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 2rem;
  padding: 2.5rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}

.hero-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  transition: opacity 0.15s;
}
.hero-read-btn:hover { opacity: 0.9; }

/* ── Section headers ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.5rem 0 1.25rem;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 12px;
  color: var(--sage);
  font-weight: 500;
}
.section-link:hover { color: var(--ink); }

/* ── Post cards ───────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-grid-2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.post-card-thumb {
  height: 130px;
  background: var(--sage-light);
  background-image: radial-gradient(circle, rgba(143,175,158,0.45) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
  position: relative;
}

.post-card-thumb.has-image {
  background-image: none;
  align-items: flex-end;
  justify-content: flex-start;
}

.post-card-thumb-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #4a7060;
  opacity: 0.7;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

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

.post-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a7060;
  background: var(--sage-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 10px;
  width: fit-content;
}

.post-card-title {
  font-family: 'Merriweather', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 8px;
  flex: 1;
}

.post-card-excerpt {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: auto;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* ── Tag pills on listing ─────────────────────────────────── */
.tag-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
  display: inline-block;
}

.tag-pill:hover { border-color: var(--sage); color: var(--ink); }

/* ── Callout / CTA strip ──────────────────────────────────── */
.cta-strip {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.cta-strip-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}

.cta-strip-title {
  font-family: 'Merriweather', serif;
  font-size: 19px;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.cta-strip-body {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.btn-coral {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-coral:hover { opacity: 0.88; }

/* ── Email subscribe bar ──────────────────────────────────── */
.subscribe-bar {
  background: var(--sage-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.subscribe-bar-text { flex: 1; min-width: 200px; }

.subscribe-bar-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.subscribe-bar-sub { font-size: 12px; color: var(--ink-muted); }

.subscribe-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subscribe-form button { cursor: pointer; }

.subscribe-input {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  outline: none;
  min-width: 220px;
  font-family: 'Inter', sans-serif;
}

.subscribe-input:focus { border-color: var(--sage); }

/* ================================================================
   SINGLE POST
   ================================================================ */

.post-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  align-items: start;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

.post-breadcrumb a { color: var(--ink-muted); }
.post-breadcrumb a:hover { color: var(--ink); }
.post-breadcrumb-sep { color: var(--border-strong); }

/* ── Post header ──────────────────────────────────────────── */
.post-tag-label {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a7060;
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.post-title {
  font-family: 'Merriweather', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 12px;
  color: var(--ink-faint);
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.post-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta-author-name { font-weight: 500; color: var(--ink-muted); }
.post-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

/* ── Key takeaways ────────────────────────────────────────── */
.post-takeaways {
  background: var(--sage-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.post-takeaways-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a7060;
  margin-bottom: 0.75rem;
}

.post-takeaways ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.post-takeaways li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── Post body ────────────────────────────────────────────── */
.post-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.post-content h2 {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.post-content h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.post-content p { margin-bottom: 1.1rem; }
.post-content p:last-child { margin-bottom: 0; }

.post-content a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: var(--sage-mid);
  text-underline-offset: 2px;
}
.post-content a:hover { color: var(--ink); }

.post-content ul,
.post-content ol {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-content li { line-height: 1.65; }

.post-content blockquote {
  border-left: 2px solid var(--sage);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.post-content strong { color: var(--ink); font-weight: 600; }
.post-content em { font-style: italic; }

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

.post-content figure img {
  border-radius: var(--radius-md);
  width: 100%;
}

.post-content figcaption {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 8px;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Inline CTA ───────────────────────────────────────────── */
.post-inline-cta {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-inline-cta-text { font-size: 13px; font-weight: 500; color: var(--ink); }
.post-inline-cta-sub  { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* ── Post footer ──────────────────────────────────────────── */
.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-footer-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.post-footer-share { display: flex; align-items: center; gap: 8px; }

.share-label { font-size: 11px; color: var(--ink-faint); }

.share-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  cursor: pointer;
  background: var(--card);
  transition: border-color 0.15s;
}
.share-btn:hover { border-color: var(--sage); }

/* ── Author card ──────────────────────────────────────────── */
.post-author-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 2rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.post-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.post-author-role { font-size: 11px; color: var(--ink-faint); margin-bottom: 6px; }
.post-author-bio  { font-size: 12px; color: var(--ink-muted); line-height: 1.65; }

/* ── Related posts ────────────────────────────────────────── */
.post-related { margin-top: 2.5rem; }

.post-related-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.post-related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}

.post-related-item:last-child { border-bottom: none; }
.post-related-item:hover { opacity: 0.75; }

.post-related-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  min-width: 64px;
  padding-top: 2px;
  flex-shrink: 0;
}

.post-related-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.post-sidebar { position: sticky; top: 76px; }

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

/* TOC */
.toc-list { list-style: none; padding: 0; }

.toc-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.toc-item:last-child { border-bottom: none; }

.toc-item.is-active .toc-text { color: var(--ink); font-weight: 500; }
.toc-item.is-active .toc-num  { color: var(--sage); }

.toc-num  { font-size: 10px; color: var(--ink-faint); min-width: 20px; flex-shrink: 0; }
.toc-text { font-size: 12.5px; color: var(--ink-muted); line-height: 1.4; }
.toc-text:hover { color: var(--ink); }

/* Advice card */
.advice-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.advice-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.advice-title {
  font-family: 'Merriweather', serif;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.advice-body {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.advice-btn {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  padding: 9px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff;
  text-align: center;
  transition: opacity 0.15s;
}
.advice-btn:hover { opacity: 0.88; }

/* Disclaimer */
.disclaimer-card {
  background: var(--sage-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.disclaimer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a7060;
  margin-bottom: 4px;
}

.disclaimer-text { font-size: 11px; color: #5a7060; line-height: 1.6; }

/* ── Site footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand-logo {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: inline-block;
  text-decoration: none;
}

.footer-brand-logo:hover { opacity: 0.8; }
.footer-brand-logo span { color: var(--coral); }

.footer-tagline {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  max-width: 240px;
}

.footer-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .post-title { font-size: 24px; }
  .home-hero { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .post-title { font-size: 22px; }
}

/* ── Ghost Koenig editor required classes ─────────────────── */
/* Required by Ghost theme validator for editor card support  */

.kg-width-wide {
  margin-left: calc(50% - 50vw + 1.5rem);
  margin-right: calc(50% - 50vw + 1.5rem);
  max-width: calc(100vw - 3rem);
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.kg-image { width: 100%; height: auto; border-radius: var(--radius-md); }

.kg-image-card { margin: 2rem 0; }
.kg-image-card figcaption { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 8px; }

.kg-gallery-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 2rem 0; }
.kg-gallery-image img  { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }

.kg-bookmark-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin: 2rem 0; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content   { padding: 1rem; flex: 1; }
.kg-bookmark-title     { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.kg-bookmark-description { font-size: 12px; color: var(--ink-muted); }
.kg-bookmark-thumbnail { width: 120px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card { display: flex; gap: 12px; padding: 1rem 1.25rem; border-radius: var(--radius-md); background: var(--sage-light); margin: 2rem 0; }
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text  { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

.kg-toggle-card { border: 1px solid var(--border); border-radius: var(--radius-md); margin: 2rem 0; overflow: hidden; }
.kg-toggle-heading-text { font-size: 15px; font-weight: 600; color: var(--ink); padding: 1rem 1.25rem; cursor: pointer; }
.kg-toggle-content { padding: 0 1.25rem 1rem; font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

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

.kg-audio-card { margin: 2rem 0; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; }

.kg-product-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin: 2rem 0; display: flex; gap: 1rem; }
.kg-product-card-image { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.kg-product-card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.kg-product-card-description { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

.kg-header-card { background: var(--sage-light); border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; margin: 2rem 0; }
.kg-header-card-heading { font-family: 'Merriweather', serif; font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.kg-header-card-subheading { font-size: 15px; color: var(--ink-muted); }
.kg-header-card-button { display: inline-block; margin-top: 1.25rem; padding: 10px 24px; border-radius: var(--radius-pill); background: var(--coral); color: #fff; font-size: 14px; font-weight: 500; }

.kg-button-card { text-align: center; margin: 2rem 0; }
.kg-button-card-button { display: inline-block; padding: 10px 24px; border-radius: var(--radius-pill); background: var(--coral); color: #fff; font-size: 14px; font-weight: 500; }

.kg-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.kg-code-card { margin: 2rem 0; }
.kg-code-card pre { background: var(--ink); color: #e2ebe6; padding: 1.25rem; border-radius: var(--radius-md); overflow-x: auto; font-size: 13px; line-height: 1.6; }

/* ================================================================
   GHOST KOENIG EDITOR — REQUIRED CARD CLASSES
   Ghost GScan requires these for theme validation
   ================================================================ */

/* Width modifiers */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  margin: 1.5rem calc(50% - 50vw);
}

/* Card base */
.kg-card { margin: 2rem 0; }
.kg-card figcaption {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

/* Image card */
.kg-image-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* Gallery card */
.kg-gallery-card { margin: 2rem 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }

/* Bookmark card */
.kg-bookmark-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
}
.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}
.kg-bookmark-content { flex: 1; padding: 1rem 1.25rem; min-width: 0; }
.kg-bookmark-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.kg-bookmark-description { font-size: 12px; color: var(--ink-muted); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-faint); }
.kg-bookmark-icon { width: 14px; height: 14px; }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--sage-light);
  margin: 2rem 0;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

/* Toggle card */
.kg-toggle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}
.kg-toggle-heading { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.kg-toggle-heading-text { font-size: 15px; font-weight: 600; color: var(--ink); }
.kg-toggle-content { font-size: 14px; color: var(--ink-muted); line-height: 1.65; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* Video card */
.kg-video-card { margin: 2rem 0; border-radius: var(--radius-md); overflow: hidden; }
.kg-video-card video { width: 100%; display: block; }

/* Audio card */
.kg-audio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.kg-audio-thumbnail { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.kg-audio-player { flex: 1; }
.kg-audio-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }

/* File card */
.kg-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 2rem 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.kg-file-card:hover { border-color: var(--sage); }
.kg-file-card-contents { flex: 1; }
.kg-file-card-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.kg-file-card-caption { font-size: 12px; color: var(--ink-faint); }
.kg-file-card-metadata { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

/* Button card */
.kg-button-card { text-align: center; margin: 2rem 0; }
.kg-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff;
  transition: opacity 0.15s;
}
.kg-btn:hover { opacity: 0.88; }
.kg-btn-accent { background: var(--coral); }

/* NFT / Product cards (stub — required by GScan) */
.kg-nft-card { margin: 2rem 0; }
.kg-product-card { margin: 2rem 0; }
.kg-product-card-image { border-radius: var(--radius-md); width: 100%; }
.kg-product-card-title { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0.75rem 0 4px; }
.kg-product-card-description { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.kg-product-card-rating { display: flex; gap: 2px; margin: 6px 0; }
.kg-product-card-rating-active { color: var(--coral); }
.kg-product-card-btn { display: inline-block; margin-top: 0.75rem; padding: 8px 20px; border-radius: var(--radius-pill); background: var(--coral); color: #fff; font-size: 13px; font-weight: 500; }

/* Header card */
.kg-header-card {
  background: var(--sage-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.kg-header-card-header { font-family: 'Merriweather', serif; font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.kg-header-card-subheader { font-size: 15px; color: var(--ink-muted); margin-bottom: 1.25rem; }
.kg-header-card-button { display: inline-block; padding: 9px 22px; border-radius: var(--radius-pill); background: var(--coral); color: #fff; font-size: 13px; font-weight: 500; }

/* Signup card */
.kg-signup-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.kg-signup-card-header { font-family: 'Merriweather', serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.kg-signup-card-subheader { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }
.kg-signup-card-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.kg-signup-card-input { flex: 1; padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; font-size: 13px; }
.kg-signup-card-button { padding: 9px 20px; border-radius: var(--radius-pill); background: var(--coral); color: #fff; font-size: 13px; font-weight: 500; border: none; cursor: pointer; }

/* Code card */
.kg-code-card { margin: 2rem 0; }
.kg-code-card pre {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

/* Embed / HTML cards */
.kg-embed-card { margin: 2rem 0; }
.kg-html-card { margin: 2rem 0; }

/* Paywall */
.kg-paywall { margin: 2rem 0; }


/* ── Ghost navigation helper output fix ── */
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav ul li { list-style: none; }

.site-nav ul li a {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--ink-muted);
  white-space: nowrap;
  display: block;
  transition: background 0.15s, color 0.15s;
}

.site-nav ul li a:hover,
.site-nav ul li.nav-current a {
  background: var(--ink);
  color: #fff;
}

/* ── Fix "undefined" — post-content empty state ── */
.post-content:empty::after {
  content: '';
  display: none;
}

/* ── Author avatar initials fallback ── */
.post-meta-avatar span,
.post-author-avatar span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}
