/* ── TOKENS ── */
:root {
  --cream:        #F7F4EF;
  --cream-dark:   #EDE8DF;
  --ink:          #1A1916;
  --ink-mid:      #4A4845;
  --ink-light:    #9A9690;
  --teal:         #3D8FA6;
  --teal-dark:    #2B6678;
  --teal-light:   #EAF4F8;
  --coral:        #C9724A;
  --coral-light:  #FDF1EC;
  --green:        #5E8F6E;
  --green-light:  #EEF5F0;
  --purple:       #7060B8;
  --purple-light: #F0EEFB;
  --amber:        #A07830;
  --amber-light:  #FBF5E8;
  --rule:         #D8D3CA;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --max-w:        1160px;
  --prose-w:      680px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.prose-container { max-width: var(--prose-w); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400&display=swap');

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp 0.6s ease both; }
.anim-2 { animation: fadeUp 0.6s 0.1s ease both; }
.anim-3 { animation: fadeUp 0.6s 0.2s ease both; }
.anim-4 { animation: fadeUp 0.6s 0.3s ease both; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; }
.nav-wordmark { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--ink); }
.nav-wordmark em { font-style: italic; color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; flex-wrap: nowrap; white-space: nowrap; }
.nav-links a { font-size: 0.82rem; color: var(--ink-mid); letter-spacing: 0.02em; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { font-size: 0.8rem; font-weight: 500; padding: 0.45rem 1.1rem; border: 1.5px solid var(--teal); border-radius: 2rem; color: var(--teal); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--teal); color: #fff; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

/* ── HERO ── */
.hero { padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.25rem; }
.hero-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--teal); }
.hero-headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 5.5vw, 4.8rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1.5rem; }
.hero-headline em { font-style: italic; color: var(--teal); }
.hero-body { font-size: 1rem; line-height: 1.7; color: var(--ink-mid); max-width: 42ch; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; background: var(--teal); color: #fff; border-radius: 2rem; font-size: 0.88rem; font-weight: 500; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary { font-size: 0.88rem; color: var(--ink-mid); border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.btn-secondary:hover { color: var(--teal); border-color: var(--teal); }

/* ── MISSION STRIP ── */
.mission-strip { padding: clamp(2rem, 4vw, 3rem) 0; background: var(--ink); color: #fff; }
.mission-text { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; font-style: italic; line-height: 1.6; text-align: center; max-width: 780px; margin: 0 auto; color: rgba(255,255,255,0.85); }
.mission-text em { color: var(--teal); font-style: normal; }

/* ── SECTION COMMON ── */
.section-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.15; }
.section-title em { font-style: italic; color: var(--teal); }
.view-all { font-size: 0.82rem; color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 1px; white-space: nowrap; transition: opacity 0.2s; }
.view-all:hover { opacity: 0.7; }

/* ── PILLARS ── */
.topics { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.topics-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.topic-card { border-radius: 12px; padding: 1.5rem; border: 1px solid transparent; transition: border-color 0.2s, transform 0.2s; cursor: pointer; }
.topic-card:hover { transform: translateY(-3px); }
.topic-card.sexual   { background: var(--teal-light);   border-color: rgba(61,143,166,0.2); }
.topic-card.repro    { background: var(--coral-light);  border-color: rgba(201,114,74,0.2); }
.topic-card.lgbtq    { background: var(--purple-light); border-color: rgba(112,96,184,0.2); }
.topic-card.literacy { background: var(--amber-light);  border-color: rgba(160,120,48,0.2); }
.topic-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.1rem; }
.topic-card.sexual   .topic-icon { background: rgba(61,143,166,0.15); }
.topic-card.repro    .topic-icon { background: rgba(201,114,74,0.15); }
.topic-card.lgbtq    .topic-icon { background: rgba(112,96,184,0.15); }
.topic-card.literacy .topic-icon { background: rgba(160,120,48,0.15); }
.topic-name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 0.4rem; line-height: 1.2; }
.topic-desc { font-size: 0.8rem; line-height: 1.5; color: var(--ink-mid); margin-bottom: 1rem; }
.topic-count { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--ink-light); }

/* ── POST CARDS ── */
.posts { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.posts-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.posts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.post-card-featured { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.post-card-featured:hover { border-color: var(--teal); box-shadow: 0 6px 32px rgba(61,143,166,0.08); }
.post-featured-img { height: 200px; background: linear-gradient(135deg, var(--teal-light) 0%, rgba(61,143,166,0.08) 100%); border-bottom: 1px solid var(--rule); overflow: hidden; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-body { padding: 1.5rem; }
.post-topic-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: 1rem; margin-bottom: 0.75rem; }
.post-topic-tag .dot { width: 5px; height: 5px; border-radius: 50%; }
.post-card-featured h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.25; margin-bottom: 0.6rem; }
.post-card-featured p { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.6; margin-bottom: 1.25rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--ink-light); }
.post-meta-dot { color: var(--rule); }
.posts-stack { display: flex; flex-direction: column; gap: 1rem; }
.post-card-small { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.25rem; transition: border-color 0.2s; flex: 1; }
.post-card-small:hover { border-color: var(--teal); }
.post-card-small h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.35rem; }
.post-card-small p { font-size: 0.8rem; color: var(--ink-mid); line-height: 1.5; margin-bottom: 0.75rem; }

/* ── ABOUT SNIPPET ── */
.about { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-img { width: 100%; aspect-ratio: 4/5; max-width: 360px; border-radius: 14px; object-fit: cover; }
.eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.75rem; display: block; }
.about-headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: 1.25rem; }
.about-headline em { font-style: italic; color: var(--teal); }
.about-body { font-size: 0.95rem; line-height: 1.75; color: var(--ink-mid); margin-bottom: 1.5rem; }
.about-creds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.cred-pill { font-size: 0.72rem; padding: 0.3rem 0.8rem; border: 1px solid var(--teal); border-radius: 1rem; color: var(--teal); }

/* ── NEWSLETTER ── */
.newsletter { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--cream-dark); border-bottom: 1px solid var(--rule); }
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter-eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 0.75rem; }
.newsletter-headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.2; margin-bottom: 0.75rem; }
.newsletter-headline em { font-style: italic; color: var(--teal); }
.newsletter-body { font-size: 0.92rem; color: var(--ink-mid); line-height: 1.65; margin-bottom: 2rem; }
.gh-subscribe-form { display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto; }
.gh-subscribe-form input[type="email"] { flex: 1; padding: 0.7rem 1.1rem; border: 1px solid var(--rule); border-radius: 2rem; background: #fff; font-family: var(--font-body); font-size: 0.88rem; color: var(--ink); outline: none; transition: border-color 0.2s; }
.gh-subscribe-form input[type="email"]:focus { border-color: var(--teal); }
.gh-subscribe-form input[type="submit"] { padding: 0.7rem 1.5rem; background: var(--teal); color: #fff; border: none; border-radius: 2rem; font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.gh-subscribe-form input[type="submit"]:hover { background: var(--teal-dark); }
.newsletter-note { font-size: 0.72rem; color: var(--ink-light); margin-top: 0.75rem; }

/* ── POST PAGE ── */
.progress-bar { position: fixed; top: 60px; left: 0; z-index: 99; width: 0%; height: 2px; background: var(--teal); transition: width 0.1s linear; }
.post-header { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.post-breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 1.5rem; }
.post-breadcrumb a { color: var(--teal); transition: opacity 0.2s; }
.post-breadcrumb a:hover { opacity: 0.7; }
.post-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 1rem; }
.post-hook { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-mid); line-height: 1.5; margin-bottom: 1.75rem; }
.post-meta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.post-meta-item { font-size: 0.78rem; color: var(--ink-light); }
.post-meta-item strong { color: var(--ink-mid); font-weight: 400; }
.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: clamp(2rem, 4vw, 4rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3rem); max-width: var(--max-w); margin: 0 auto; }
.post-body { min-width: 0; }
.post-section { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.post-section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 1.9rem); line-height: 1.2; color: var(--ink); margin-bottom: 1rem; }
.post-section h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.post-section p { font-size: 1rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1rem; }
.gh-content h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 1.9rem); line-height: 1.2; color: var(--ink); margin: 2rem 0 1rem; }
.gh-content h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.gh-content p { font-size: 1rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1rem; }
.gh-content ul, .gh-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.gh-content li { font-size: 1rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: 0.25rem; }
.gh-content blockquote { border-left: 3px solid var(--teal); padding: 0.25rem 0 0.25rem 1.5rem; margin: 2rem 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.gh-content a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(61,143,166,0.3); }
.gh-content a:hover { text-decoration-color: var(--teal); }
.gh-content img { border-radius: 8px; margin: 1.5rem 0; }
.gh-content hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }
.post-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem; }
.sidebar-card-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.75rem; display: block; }
.toc-list { list-style: none; }
.toc-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--rule); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { font-size: 0.8rem; color: var(--ink-mid); line-height: 1.4; display: block; transition: color 0.2s; }
.toc-list a:hover, .toc-list a.active { color: var(--teal); }
.sidebar-share { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn { font-size: 0.75rem; color: var(--ink-mid); border: 1px solid var(--rule); border-radius: 2rem; padding: 0.35rem 0.85rem; cursor: pointer; background: none; transition: border-color 0.2s, color 0.2s; font-family: var(--font-body); }
.share-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ── RELATED POSTS ── */
.post-footer-section { background: var(--cream-dark); border-top: 1px solid var(--rule); padding: clamp(3rem, 5vw, 4rem) 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.related-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem; transition: border-color 0.2s; }
.related-card:hover { border-color: var(--teal); }
.related-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1.3; color: var(--ink); margin-bottom: 0.4rem; }
.related-card p { font-size: 0.8rem; color: var(--ink-light); }

/* ── PAGE ── */
.page-header { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.page-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.page-body { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ── TAG PAGE ── */
.tag-header { padding: clamp(3rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--rule); }
.tag-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 0.5rem; }
.tag-description { font-size: 1rem; color: var(--ink-mid); }
.post-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.post-feed-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.post-feed-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(61,143,166,0.07); }
.post-feed-card-img { height: 160px; background: var(--teal-light); overflow: hidden; }
.post-feed-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-feed-card-body { padding: 1.25rem; }
.post-feed-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.5rem; }
.post-feed-card p { font-size: 0.85rem; color: var(--ink-mid); line-height: 1.5; margin-bottom: 0.75rem; }

/* ── FOOTER ── */
.footer { padding: clamp(2rem, 4vw, 3rem) 0; background: var(--ink); color: rgba(255,255,255,0.5); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-wordmark { font-family: var(--font-display); font-weight: 300; font-size: 1rem; color: rgba(255,255,255,0.8); font-style: italic; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-note { font-size: 0.72rem; color: rgba(255,255,255,0.25); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .posts-stack { flex-direction: row; }
  .about-inner { grid-template-columns: 1fr; }
  .about-left { display: none; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .topics-grid { grid-template-columns: 1fr; }
  .posts-stack { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .gh-subscribe-form { flex-direction: column; }
}

/* ── GHOST CARD CLASSES (required) ── */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem auto;
  max-width: 1200px;
}
.kg-width-full {
  position: relative;
  width: 100vw;
  margin: 1.5rem calc(50% - 50vw);
}
.kg-image { max-width: 100%; }
.kg-image-card { margin: 1.5rem 0; }
.kg-image-card img { margin: 0 auto; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.5rem 0; }
.kg-gallery-row { display: flex; gap: 0.5rem; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-embed-card { margin: 1.5rem 0; }
.kg-embed-card iframe { width: 100%; }
.kg-video-card { margin: 1.5rem 0; }
.kg-video-card video { width: 100%; }
.kg-audio-card { margin: 1.5rem 0; }
.kg-callout-card { display: flex; gap: 1rem; padding: 1.25rem; border-radius: 8px; background: var(--teal-light); margin: 1.5rem 0; }
.kg-callout-emoji { font-size: 1.5rem; flex-shrink: 0; }
.kg-callout-text { font-size: 0.95rem; line-height: 1.7; color: var(--ink-mid); }
.kg-toggle-card { border: 1px solid var(--rule); border-radius: 8px; margin: 1.5rem 0; overflow: hidden; }
.kg-toggle-heading { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; }
.kg-toggle-content { padding: 0 1.25rem 1rem; font-size: 0.95rem; color: var(--ink-mid); }
.kg-button-card { margin: 1.5rem 0; text-align: center; }
.kg-btn { display: inline-flex; padding: 0.75rem 1.75rem; background: var(--teal); color: #fff; border-radius: 2rem; font-size: 0.88rem; font-weight: 500; transition: background 0.2s; }
.kg-btn:hover { background: var(--teal-dark); }
.kg-divider { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }
.kg-bookmark-card { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin: 1.5rem 0; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content { padding: 1.25rem; flex: 1; }
.kg-bookmark-title { font-weight: 500; margin-bottom: 0.25rem; }
.kg-bookmark-description { font-size: 0.85rem; color: var(--ink-mid); margin-bottom: 0.5rem; }
.kg-bookmark-metadata { font-size: 0.75rem; color: var(--ink-light); }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-header-card { padding: clamp(3rem, 6vw, 5rem) 1.5rem; text-align: center; background: var(--ink); color: #fff; margin: 1.5rem 0; border-radius: 12px; }
.kg-header-card h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 0.5rem; }
.kg-header-card p { color: rgba(255,255,255,0.6); }
.kg-product-card { border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem; margin: 1.5rem 0; }
.kg-nft-card { margin: 1.5rem 0; }
.kg-file-card { border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; }
.kg-file-card-container { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; flex: 1; }
.kg-file-card-contents { flex: 1; }
.kg-file-card-title { font-weight: 500; margin-bottom: 0.2rem; }
.kg-file-card-caption { font-size: 0.8rem; color: var(--ink-light); }

/* ── HEALTH TOPICS (combined section) ── */
.topics { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.topics-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .topics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }
.post-topic-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: 1rem; margin-bottom: 0.75rem; }
.post-topic-tag .dot { width: 5px; height: 5px; border-radius: 50%; }

/* ── POST TYPE & SUBJECT TAGS ── */
.post-type-tags { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.post-type-tag { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.8rem; border-radius: 1rem; }
.post-type-tag.review   { background: var(--teal-light);   color: var(--teal-dark); }
.post-type-tag.qa       { background: var(--coral-light);  color: var(--coral); }
.post-type-tag.literacy { background: var(--amber-light);  color: var(--amber); }
.post-subject-tag { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 400; padding: 0.3rem 0.8rem; border-radius: 1rem; background: var(--cream-dark); color: var(--ink-mid); border: 1px solid var(--rule); }

/* ── Q&A CALLOUT ── */
.qa-callout { background: var(--coral-light); border: 1px solid rgba(201,114,74,0.25); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.qa-callout-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); display: block; margin-bottom: 0.5rem; }
.qa-callout p { font-size: 1rem; line-height: 1.7; color: var(--ink); margin: 0; }

/* ── HEALTH LITERACY LAYOUT ── */
.literacy-layout { max-width: 720px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3rem); }
.literacy-content h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--ink); margin: 2rem 0 1rem; }
.literacy-content p { font-size: 1rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1rem; }
.literacy-content .kg-callout-card { background: var(--amber-light); border: 1px solid rgba(160,120,48,0.2); border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.literacy-content a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(61,143,166,0.3); }
.literacy-content a:hover { text-decoration-color: var(--teal); }

/* ── TAG FILTERS ── */
.tag-filters { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.tag-filter { font-size: 0.8rem; font-weight: 400; padding: 0.4rem 1rem; border-radius: 2rem; border: 1px solid var(--rule); color: var(--ink-mid); background: none; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.tag-filter:hover { border-color: var(--teal); color: var(--teal); }
.tag-filter.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── TOC AUTO-BUILD ── */
.toc-list { list-style: none; }
.toc-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--rule); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { font-size: 0.8rem; color: var(--ink-mid); display: block; transition: color 0.2s; }
.toc-list a:hover, .toc-list a.active { color: var(--teal); }

/* ── SIDEBAR META ROW ── */
.sidebar-meta-row { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.sidebar-meta-item { font-size: 0.78rem; color: var(--ink-light); display: flex; justify-content: space-between; gap: 0.5rem; }
.sidebar-meta-item span:last-child { color: var(--ink-mid); }

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  .nav-links--open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 1rem clamp(1.25rem, 5vw, 3rem);
    gap: 1rem;
    z-index: 99;
  }
}
