/* Fraunces — logo monogram only (Black Italic, max display optical size + WONK) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,9..144,900&display=swap');

/* ============================================================
   charlesblain.com — CSS Injection
   Ghost Edition theme. Trust Ghost's typography and colors.
   Only override structure Ghost can't provide.
   ============================================================ */

/* === TOKENS (minimal) === */
:root {
  --cb-max-width: 1080px;   /* our homepage sections — NOT --content-width (Ghost owns that) */
  --accent-blue: #285ff4;
  --color-border: rgba(0,0,0,0.08);
}

/* === EVERGREEN: hide all dates site-wide === */
.post-date, .feed-date, time[datetime], .single-meta-date,
.cb-featured-date, .post-meta time, .feed-meta time,
.gh-post-meta time, .article-date { display: none !important; }

/* Territory accent color overrides — scoped to tag pages */
body.tag-shadow-strategy      { --accent-blue: #4338ca; }
body.tag-perception-engine    { --accent-blue: #7c3aed; }
body.tag-momentum-engineering { --accent-blue: #2563eb; }
body.tag-information-flow     { --accent-blue: #0891b2; }
body.tag-hybrid-intelligence  { --accent-blue: #0369a1; }
body.tag-dashboard-blindness  { --accent-blue: #0e7490; }
body.tag-inverse-wisdom       { --accent-blue: #6366f1; }

/* ============================================================
   DATES: Hide everywhere (evergreen content)
   ============================================================ */

.feed-date, .single-meta-date, .feed-calendar,
time[datetime], .post-date, .gh-card-date {
  display: none !important;
}
.single-meta .single-meta-item:first-child + .single-meta-item::before {
  display: none;
}

/* ============================================================
   GHOST UI: Remove redundant elements
   ============================================================ */

.footer-cta,
.gh-canvas > [data-portal],
.gh-portal-triggerbtn-wrapper {
  display: none !important;
}

/* ============================================================
   TYPE BADGES
   JS injects .cb-type-badge into feed rows based on post tag.
   ============================================================ */

.cb-type-badge {
  display: inline-block;
  font-size: 1.0rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 0.1rem;
}
.cb-type-badge-pillar  { color: var(--accent-blue); background: rgba(40,95,244,0.08); border: 1px solid rgba(40,95,244,0.18); }
.cb-type-badge-cluster { color: var(--accent-blue); background: rgba(40,95,244,0.07); }
.cb-type-badge-note    { color: #999; background: #fafafa; }
.cb-type-badge-essay   { color: #666; background: #fafafa; }

/* ============================================================
   CONTENT WIDTH BY POST TYPE (T6)
   JS adds body.cb-width-* on post pages.
   ============================================================ */

body.cb-width-pillar  .gh-content {
  max-width: 740px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.cb-width-cluster .gh-content,
body.cb-width-note    .gh-content {
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 768px) {
  body.cb-width-pillar .gh-content,
  body.cb-width-cluster .gh-content,
  body.cb-width-note   .gh-content {
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ============================================================
   GRADIENT LINK UNDERLINES (article content only)
   ============================================================ */

.gh-content a:not(.kg-bookmark-container):not(.subscribe-card-cta):not([class*="feedback"]):not([data-portal]) {
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--accent-blue), var(--accent-blue));
  background-size: 0% 1.5px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
  padding-bottom: 1px;
}
.gh-content a:not(.kg-bookmark-container):not(.subscribe-card-cta):not([class*="feedback"]):not([data-portal]):hover {
  background-size: 100% 1.5px;
}

/* ============================================================
   TABLES (article content)
   ============================================================ */

.gh-content table, article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.6rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.gh-content table thead th, article table thead th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 2px solid var(--accent-blue);
  background: color-mix(in srgb, var(--accent-blue) 6%, white);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gh-content table tbody td, article table tbody td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.gh-content table tbody tr:last-child td,
article table tbody tr:last-child td { border-bottom: none; }
.gh-content table tbody tr:nth-child(even),
article table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.gh-content table tbody tr:hover,
article table tbody tr:hover { background: color-mix(in srgb, var(--accent-blue) 4%, white); }

/* Territory table hover tints */
body.tag-shadow-strategy .gh-content table thead th      { background: rgba(67,56,202,0.06); }
body.tag-shadow-strategy .gh-content table tbody tr:hover { background: rgba(67,56,202,0.04); }
body.tag-perception-engine .gh-content table thead th      { background: rgba(219,39,119,0.06); }
body.tag-perception-engine .gh-content table tbody tr:hover { background: rgba(219,39,119,0.04); }
body.tag-momentum-engineering .gh-content table thead th      { background: rgba(234,88,12,0.06); }
body.tag-momentum-engineering .gh-content table tbody tr:hover { background: rgba(234,88,12,0.04); }
body.tag-dashboard-blindness .gh-content table thead th      { background: rgba(217,119,6,0.06); }
body.tag-dashboard-blindness .gh-content table tbody tr:hover { background: rgba(217,119,6,0.04); }
body.tag-hybrid-intelligence .gh-content table thead th      { background: rgba(13,148,136,0.06); }
body.tag-hybrid-intelligence .gh-content table tbody tr:hover { background: rgba(13,148,136,0.04); }
body.tag-information-flow .gh-content table thead th      { background: rgba(8,145,178,0.06); }
body.tag-information-flow .gh-content table tbody tr:hover { background: rgba(8,145,178,0.04); }
body.tag-inverse-wisdom .gh-content table thead th      { background: rgba(124,58,237,0.06); }
body.tag-inverse-wisdom .gh-content table tbody tr:hover { background: rgba(124,58,237,0.04); }

@media (max-width: 600px) {
  .gh-content table, article table { font-size: 1.4rem; }
  .gh-content table thead th, .gh-content table tbody td,
  article table thead th, article table tbody td { padding: 0.75rem 0.875rem; }
}

/* ============================================================
   BLOCKQUOTES: Territory accent tints
   ============================================================ */

.gh-content blockquote {
  border-left: 3px solid var(--accent-blue);
  background: linear-gradient(90deg, rgba(40,95,244,0.04) 0%, transparent 60%);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}
body.tag-shadow-strategy .gh-content blockquote      { background: linear-gradient(90deg, rgba(67,56,202,0.04) 0%, transparent 60%); }
body.tag-momentum-engineering .gh-content blockquote { background: linear-gradient(90deg, rgba(234,88,12,0.04) 0%, transparent 60%); }
body.tag-perception-engine .gh-content blockquote    { background: linear-gradient(90deg, rgba(219,39,119,0.04) 0%, transparent 60%); }
body.tag-dashboard-blindness .gh-content blockquote  { background: linear-gradient(90deg, rgba(217,119,6,0.04) 0%, transparent 60%); }
body.tag-hybrid-intelligence .gh-content blockquote  { background: linear-gradient(90deg, rgba(13,148,136,0.04) 0%, transparent 60%); }
body.tag-information-flow .gh-content blockquote     { background: linear-gradient(90deg, rgba(8,145,178,0.04) 0%, transparent 60%); }
body.tag-inverse-wisdom .gh-content blockquote       { background: linear-gradient(90deg, rgba(124,58,237,0.04) 0%, transparent 60%); }

/* ============================================================
   FEEDBACK SYSTEM
   ============================================================ */

.feedback-system {
  width: 100%;
  margin: 4rem 0 2rem;
  padding: 2.5rem 0;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.feedback-container { max-width: 36rem; margin: 0 auto; padding: 0 1.5rem; background: transparent !important; }
.feedback-title { text-align: center; margin-bottom: 1.5rem; font-size: 2.4rem; font-weight: 600; }
.feedback-buttons { display: flex; justify-content: center; gap: 3rem; }
.feedback-button { display: flex; flex-direction: column; align-items: center; background: none; border: none; cursor: pointer; transition: all 0.2s; padding: 0.75rem; border-radius: 8px; }
.feedback-button:hover { transform: scale(1.08); background: rgba(0,0,0,0.03); }
.feedback-button.selected { transform: scale(1.1); background: rgba(40,95,244,0.08); }
.feedback-icon { margin-bottom: 0.75rem; width: 36px; height: 36px; color: #555; }
.feedback-button:hover .feedback-icon,
.feedback-button.selected .feedback-icon { color: var(--accent-blue); }
.feedback-label { font-size: 1.4rem; color: #999; font-weight: 500; }
.feedback-message { text-align: center; margin-top: 1.5rem; color: #059669; font-weight: 500; font-size: 1.5rem; }
.feedback-bounce { animation: bounce 0.5s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============================================================
   SUBSCRIBE CARD: blend with page (no box)
   ============================================================ */

.subscribe-card {
  max-width: 720px;
  margin: 2rem auto 3rem;
  padding: 2rem 1.5rem;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  text-align: center;
}
.subscribe-card-cta {
  display: inline-block;
  background: var(--accent-blue) !important;
  color: white !important;
  padding: 1.2rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.6rem !important;
  letter-spacing: 0.01em;
  text-decoration: none;
  background-image: none !important;
  transition: background 0.25s ease, transform 0.18s ease, box-shadow 0.3s ease;
}
.subscribe-card-cta:hover {
  background: #15171a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40, 95, 244, 0.3);
}

/* ============================================================
   RELATED POSTS: clean list rows
   ============================================================ */

.related-wrapper,
.related-wrapper.gh-canvas {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding-top: 2rem;
  margin-top: 0;
}
.related-wrapper .related-feed {
  max-width: 720px !important;
  width: 100% !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex !important;
  flex-direction: column;
  gap: 0;
}
.related-feed.post-feed { display: flex !important; }
.related-feed article.feed {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0.5rem !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-left: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: all 0.2s ease;
}
.related-feed article.feed:hover { background: rgba(40,95,244,0.03) !important; padding-left: 1rem !important; }
.related-feed article.feed:last-child { border-bottom: none; }
.related-feed article.feed .feed-title { font-size: 1.6rem !important; font-weight: 600 !important; color: inherit; margin: 0 !important; flex: 1; transition: color 0.2s ease; }
.related-feed article.feed:hover .feed-title { color: var(--accent-blue) !important; }
.related-feed article.feed .feed-excerpt { display: none !important; }
.related-feed article.feed .feed-right,
.related-feed article.feed .feed-length { font-size: 1.3rem !important; color: #999; white-space: nowrap; margin: 0 !important; flex-shrink: 0; }
.related-tag-pill { font-size: 1.2rem; color: var(--accent-blue); background: rgba(40,95,244,0.08); padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 500; white-space: nowrap; margin-right: 1rem; flex-shrink: 0; }
@media (max-width: 600px) {
  .related-feed article.feed { flex-direction: column !important; align-items: flex-start; gap: 0.25rem; }
  .related-feed article.feed .feed-right { align-self: flex-start; }
}

/* ============================================================
   POST/TAG/PAGE HEADER: white background (no blue)
   ============================================================ */

.post-template .gh-head,
.page-template .gh-head,
.tag-template .gh-head {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* is-head-brand sets white text for accent-colored header — override for white bg */
body.post-template .gh-head .nav a,
body.post-template .gh-head .gh-head-link,
body.post-template .gh-head .gh-head-logo,
body.post-template .gh-head .gh-head-logo a,
body.post-template .gh-head .gh-search,
body.post-template .gh-head .nav-more-toggle,
body.page-template .gh-head .nav a,
body.page-template .gh-head .gh-head-link,
body.page-template .gh-head .gh-head-logo,
body.page-template .gh-head .gh-head-logo a,
body.tag-template .gh-head .nav a,
body.tag-template .gh-head .gh-head-link,
body.tag-template .gh-head .gh-head-logo,
body.tag-template .gh-head .gh-head-logo a,
body.tag-template .gh-head .gh-search,
body.tag-template .gh-head .nav-more-toggle {
  color: #15171a !important;
}

/* CB monogram: hide PNG everywhere, replace with Fraunces Black Italic text */
.gh-head-logo img { display: none !important; }
.gh-head-logo::after {
  content: 'cb';
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.4rem;
  font-weight: 900;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  color: inherit; /* white on dark hero, #15171a on white post header */
}

/* Logo: territory color on tag pages */
body.tag-template .gh-head .gh-head-logo::after {
  color: var(--accent-blue) !important;
}

/* Subscribe button: restore accent color on white header */
body.post-template .gh-head .gh-head-btn,
body.page-template .gh-head .gh-head-btn,
body.tag-template .gh-head .gh-head-btn {
  background: var(--accent-blue) !important;
  color: white !important;
}
body.post-template .gh-head .gh-head-btn:hover,
body.page-template .gh-head .gh-head-btn:hover,
body.tag-template .gh-head .gh-head-btn:hover {
  opacity: 0.85;
}

/* ============================================================
   HERO: warm off-white editorial background
   ============================================================ */

/* Hero: let Ghost render its native dark cover */
body.home-template .cover-content { position: relative; z-index: 20; }
/* Hide Ghost's own subscribe form — we inject our own */
body.home-template .cover-content .cover-form,
body.home-template .cover-content form.form-wrapper { display: none !important; }
body.home-template .cover .cover-arrow { display: none !important; }

/* Hero title — Mark Manson effect: massive, ultra-bold, heading font */
body.home-template .cover-description {
  font-family: var(--gh-font-heading, var(--font-sans)) !important;
  font-size: clamp(4rem, 8vw, 7rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem !important;
}
@media (max-width: 480px) {
  body.home-template .cover-description {
    font-size: clamp(3rem, 10vw, 4.5rem) !important;
    letter-spacing: -0.02em !important;
  }
}

/* Hero injected elements (.cb-hero-tagline, .cb-hero-form, .cb-hero-author) */
.cb-hero-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin: 0.75rem 0 2rem;
}
.cb-hero-cta-wrap {
  margin: 3rem auto 0;
  text-align: center;
}
.cb-hero-cta {
  display: inline-block;
  background: var(--accent-blue);
  color: #ffffff !important;
  padding: 1.2rem 3rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: 0 0 0 rgba(40, 95, 244, 0);
  transition: background 0.25s ease, color 0.25s ease, transform 0.18s ease, box-shadow 0.3s ease;
}
.cb-hero-cta:hover {
  background: #ffffff !important;
  color: #15171a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40, 95, 244, 0.45);
}
.cb-hero-author { display: flex; align-items: center; justify-content: center; gap: 0.85rem; margin-top: 2rem; }
.cb-hero-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,0.1); object-fit: cover; }
.cb-hero-author-name { color: rgba(255,255,255,0.7); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.02em; }

/* ============================================================
   HOMEPAGE SECTIONS: shared container + section headings
   ============================================================ */

.cb-home-section {
  max-width: var(--cb-max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.cb-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.cb-section-subtitle {
  font-size: var(--content-font-size, 1.7rem);
  color: #999;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ============================================================
   ABOUT SECTION (practitioner bio + headshot)
   ============================================================ */

.cb-about-section {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 4rem;
  max-width: var(--cb-max-width);
  margin: 6rem auto 0;
  padding: 0 2.5rem;
  align-items: center;
}
.cb-about-content h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cb-about-content p {
  font-size: var(--content-font-size, 1.7rem);
  line-height: 1.7;
  max-width: 55ch;
  margin: 0 0 2rem;
  color: #555;
}
.cb-about-cta {
  display: inline-block;
  background: var(--accent-blue);
  color: #ffffff !important;
  padding: 1.1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  background-image: none !important;
  transition: background 0.25s ease, transform 0.18s ease, box-shadow 0.3s ease;
}
.cb-about-cta:hover {
  background: #15171a !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40, 95, 244, 0.3);
}
.cb-about-photo { text-align: center; }
.cb-about-photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(0,0,0,0.06); }
@media (max-width: 768px) {
  .cb-about-section { grid-template-columns: 1fr; gap: 2rem; }
  .cb-about-photo { order: -1; }
  .cb-about-photo img { width: 140px; height: 140px; }
}

/* ============================================================
   TERRITORY CARDS
   ============================================================ */

.cb-territory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.cb-territory-card {
  padding: 1.75rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid var(--card-accent, var(--accent-blue));
  background: white;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
  background-image: none !important;
}
.cb-territory-card:hover { border-color: rgba(0,0,0,0.15); border-left-color: var(--card-accent, var(--accent-blue)); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.cb-territory-card .card-domain { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--card-accent, #999); margin-bottom: 0.75rem; }
.cb-territory-card .card-question { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.4; font-family: var(--gh-font-heading, var(--font-sans)); transition: color 0.2s; }
.cb-territory-card:hover .card-question { color: var(--card-accent, var(--accent-blue)); }
.cb-territory-card .card-count { font-size: 1.3rem; color: #999; margin-top: 0.5rem; }
@media (max-width: 600px) { .cb-territory-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FEATURED PIECE (latest published post)
   ============================================================ */

.cb-featured-link {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  text-decoration: none !important;
  background-image: none !important;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cb-featured-link:hover { border-color: rgba(0,0,0,0.15); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.cb-featured-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.cb-featured-body { padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; justify-content: center; }
.cb-featured-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.cb-featured-tag { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue); }
.cb-featured-date { font-size: 1.2rem; color: #999; }
.cb-featured-title { font-size: 2rem; font-weight: 800; line-height: 1.3; margin: 0 0 0.75rem; color: #15171a; transition: color 0.2s; }
.cb-featured-link:hover .cb-featured-title { color: var(--accent-blue); }
.cb-featured-excerpt { font-size: 1.5rem; color: #555; line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
  .cb-featured-link { grid-template-columns: 1fr; }
  .cb-featured-body { padding: 1.5rem; }
  .cb-featured-image { height: 180px; }
}

/* ============================================================
   LATEST POSTS: clean editorial list
   ============================================================ */

body.home-template .post-feed {
  display: block !important;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 0;
  margin-bottom: 2rem;
  max-width: var(--cb-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
body.home-template .post-feed article.feed {
  position: relative;
  display: block !important;
  padding: 1.25rem 10rem 1.25rem 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  border-left: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.2s ease !important;
}
body.home-template .post-feed article.feed:last-child { border-bottom: none !important; }
body.home-template .post-feed article.feed:hover { background: rgba(0,0,0,0.015) !important; }
body.home-template .post-feed .feed-title {
  display: block !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  transition: color 0.2s ease;
}
body.home-template .post-feed article.feed:hover .feed-title { color: var(--accent-blue) !important; }
body.home-template .post-feed .feed-excerpt,
body.home-template .post-feed .feed-media,
body.home-template .post-feed .feed-image,
body.home-template .post-feed .feed-cover { display: none !important; }
body.home-template .post-feed .feed-meta,
body.home-template .post-feed .feed-length {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 0.8rem !important;
  color: #999 !important;
  white-space: nowrap;
  margin: 0 !important;
}
/* Show only 6 posts */
body.home-template .post-feed article.feed:nth-child(n+7) { display: none !important; }

/* Hide pagination + load more on homepage */
body.home-template .post-feed + nav,
body.home-template .pagination,
body.home-template .feed-header,
body.home-template .site-main > nav { display: none !important; }


/* ============================================================
   FOOTER: dark navy
   ============================================================ */

.site-footer,
footer.site-footer,
footer.gh-foot.site-footer {
  margin-top: 7rem !important;
  padding: 3rem 0 !important;
  background-color: #1c1c1c !important;
  background-image: none !important;
  color: #cbd5e1 !important;
  font-size: 1.8rem;
  text-align: center;
  line-height: 2.3;
  border-top: 3px solid var(--accent-blue, #285ff4) !important;
}
.site-footer .footer-content { color: #e2e8f0 !important; }
.site-footer .footer-notes { color: #94a3b8 !important; }
.footer-container { max-width: 720px; margin: 0 auto; padding: 0 2rem; }
.footer-content { font-weight: 500; margin-bottom: 1rem; }
.footer-notes { font-style: italic; opacity: 0.8; font-size: 1.5rem; }
.footer-dot { display: inline-block; margin: 0 0.5rem; opacity: 0.6; }
.heart-icon { color: #ef4444; display: inline-block; margin: 0 0.15rem; cursor: pointer; transition: transform 0.3s ease; }
.heart-icon:hover { animation: heartbeat 0.8s infinite; }
@keyframes heartbeat { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */

#cb-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-blue);
  z-index: 10000;
  transition: width 50ms linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.cb-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23,1,0.32,1),
              transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.cb-reveal.cb-visible { opacity: 1; transform: translateY(0); }
.cb-reveal:nth-child(2) { transition-delay: 0.06s; }
.cb-reveal:nth-child(3) { transition-delay: 0.12s; }
.cb-reveal:nth-child(4) { transition-delay: 0.18s; }
.cb-reveal:nth-child(5) { transition-delay: 0.24s; }
.cb-reveal:nth-child(6) { transition-delay: 0.30s; }

/* ============================================================
   SMOOTH PAGE LOAD
   ============================================================ */

body { animation: cb-page-in 0.5s ease-out; }
@keyframes cb-page-in { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   HAMBURGER MENU ON ALL SCREEN SIZES
   Ghost Edition shows inline nav on desktop (>=768px) and
   burger menu on mobile (<768px). Force the mobile/burger
   layout at all widths by replicating the key mobile rules.
   ============================================================ */

/* Show burger button (Ghost sets display:none on desktop) */
.gh-burger {
  display: block !important;
}

/* ---------- CLOSED STATE (burger visible, menu hidden) ----------
   Scoped to body:not(.is-head-open) so Ghost's native overlay
   CSS takes over when the burger is clicked. */

body:not(.is-head-open) #gh-head .gh-head-inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  height: 64px !important;
  padding: 0 2rem !important;
  position: relative !important;
}

body:not(.is-head-open) #gh-head .gh-head-brand {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  grid-column: 1 !important;
}

body:not(.is-head-open) #gh-head .gh-head-brand-wrapper {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
}

/* Hide the search icon from the brand bar */
.gh-head-brand .gh-search {
  display: none !important;
}

body:not(.is-head-open) #gh-head .gh-head-menu {
  opacity: 0 !important;
  position: fixed !important;
  visibility: hidden !important;
}

body:not(.is-head-open) #gh-head .gh-head-actions {
  display: flex !important;
  align-items: center !important;
  opacity: 1 !important;
  position: static !important;
  visibility: visible !important;
  grid-column: 3 !important;
  justify-self: end !important;
}

/* Hide "Sign in" link, keep subscribe button */
#gh-head .gh-head-actions .gh-head-link {
  display: none !important;
}

/* Burger contrast: white lines on dark/brand headers, dark on white */
.gh-burger::before,
.gh-burger::after {
  background-color: #15171a !important;
}
body.home-template .gh-burger::before,
body.home-template .gh-burger::after,
.is-head-brand .gh-burger::before,
.is-head-brand .gh-burger::after {
  background-color: #ffffff !important;
}
/* Post/tag/page headers are white bg — keep dark burger */
body.post-template .gh-burger::before,
body.post-template .gh-burger::after,
body.page-template .gh-burger::before,
body.page-template .gh-burger::after,
body.tag-template .gh-burger::before,
body.tag-template .gh-burger::after {
  background-color: #15171a !important;
}

/* ---------- OPEN STATE ----------
   Ghost's overlay rules live inside @media (max-width:767px),
   so they never fire on desktop. Replicate them here. */

.is-head-open #gh-head {
  height: 100% !important;
  inset: 0 !important;
  overflow-y: scroll !important;
  position: fixed !important;
  z-index: 3999999 !important;
  -webkit-overflow-scrolling: touch !important;
  background-color: var(--color-white, #fff) !important;
}

.is-head-open #gh-head .gh-head-inner {
  gap: 48px !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr auto !important;
}

.is-head-open #gh-head .gh-head-brand {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  height: 64px !important;
  align-items: center !important;
}

.is-head-open #gh-head .gh-head-brand-wrapper {
  position: static !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.is-head-open #gh-head .gh-head-menu,
.is-head-open #gh-head .gh-head-actions {
  opacity: 1 !important;
  position: static !important;
  visibility: visible !important;
  justify-content: center !important;
}

.is-head-open #gh-head .nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
}

.is-head-open #gh-head .nav a {
  font-size: 2.6rem !important;
  font-weight: 600 !important;
}

.is-head-open #gh-head .nav li {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.is-head-open #gh-head .gh-head-actions {
  align-items: center !important;
  background-color: var(--color-white, #fff) !important;
  bottom: 0 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: var(--gap, 40px) 0 calc(var(--gap, 40px) + 8px) !important;
  position: sticky !important;
}

.is-head-open #gh-head .gh-head-actions .gh-head-link {
  display: block !important;
  opacity: 1 !important;
}

.is-head-open #gh-head .gh-head-btn {
  font-size: 1.8rem !important;
  width: 100% !important;
}

.is-head-open #gh-main {
  opacity: 0 !important;
}

/* Flatten the "more" dropdown so all nav items show directly.
   Ghost puts ALL nav items inside .nav-more-toggle > .gh-dropdown
   on desktop. We can't display:none the toggle or the dropdown
   disappears with it. Instead, strip the toggle's own visuals. */
.is-head-open .nav-more-toggle {
  display: contents !important;
}
.is-head-open .nav-more-toggle > svg {
  display: none !important;
}
.is-head-open .gh-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
}
.is-head-open .gh-dropdown li a {
  font-size: 2.6rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .feedback-buttons { gap: 1.5rem; }
  .site-footer { font-size: 0.9rem; padding: 2rem 0; }
}
@media (max-width: 480px) {
  .feedback-buttons { gap: 1rem; }
  .feedback-icon { width: 24px; height: 24px; }
}
/* v1775855695 */
