/* ============================================================
   WDS Ghost Theme — screen.css
   Design tokens corrected from wdshawaii.com screenshot
   ============================================================ */

/* Google Fonts — Geist (all text, matches wdshawaii.com exactly) + DM Mono (labels/tags) */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   DESIGN TOKENS — sourced from wdshawaii.com screenshot
   ============================================================ */
:root {
  /* Backgrounds — WHITE site, not dark */
  --bg-base:       #FFFFFF;
  --bg-surface:    #F7F7F7;
  --bg-elevated:   #EFEFEF;
  --bg-dark:       #0D0D0D;

  /* Text */
  --text-primary:   #0D0D0D;
  --text-secondary: #6B7280;
  --text-muted:     #9CA3AF;
  --text-inverse:   #FFFFFF;

  /* Accent — dark pill buttons matching nav CTA */
  --accent:         #0D0D0D;
  --accent-hover:   #2A2A2A;

  /* Rainbow top bar — exact WDS gradient */
  --top-bar-gradient: linear-gradient(90deg, #21CCEE, #1470EF, #6927DA, #3DA7F2);

  /* CTA glow — the purple bloom under "Book a Discovery Call" */
  --cta-glow: 0 8px 40px rgba(139, 92, 246, 0.35), 0 2px 16px rgba(99, 102, 241, 0.25);

  /* Borders */
  --border:       rgba(0, 0, 0, 0.08);
  --border-dark:  rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.20);

  /* Nav pill */
  --nav-bg:     rgba(255, 255, 255, 0.92);
  --nav-border: rgba(0, 0, 0, 0.10);
  --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);

  /* Typography — Geist across the board, matches wdshawaii.com */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.5rem;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --max-width:      1200px;
  --content-width:  720px;
  --top-bar-height: 8px;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --duration:      180ms;
  --duration-slow: 320ms;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  min-height: 100vh;
  padding-top: var(--top-bar-height);
}

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

/* ============================================================
   TOP GRADIENT BAR — rainbow stripe at very top of site
   ============================================================ */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  background: var(--top-bar-gradient);
  z-index: 1000;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

/* ============================================================
   NAVIGATION — Pill nav, exact specs from Sean
   bg: #FAFAFA | radius: 24px | border: rgba(108,111,118,0.06) 1.5px
   min-height: 78px
   ============================================================ */
.gh-head {
  position: sticky;
  top: var(--top-bar-height);
  z-index: 100;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  box-sizing: border-box;
}

/* The pill — must fill available width */
.gh-head-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 78px;
  background: #FAFAFA;
  border: 1.5px solid rgba(108, 111, 118, 0.06);
  border-radius: 24px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 12px 12px 12px 24px;
  box-sizing: border-box;
}

/* Logo — icon + WDS text */
.gh-head-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

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

.gh-head-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

/* Ghost's foreach navigation renders as our own <ul class="gh-nav-list"> */
.gh-head-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: var(--space-8);
  min-width: 0;
}

.gh-nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.gh-nav-item {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gh-nav-item a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.gh-nav-item a:hover {
  color: var(--text-primary);
}

/* Mobile toggle */
.gh-head-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.gh-head-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

@media (max-width: 768px) {
  .gh-head-nav { display: none; }
  .gh-head-toggle { display: flex; }
  .gh-head-inner { padding: 8px 12px 8px 20px; }
}

/* ============================================================
   HERO — Blog listing header
   ============================================================ */
.gh-hero {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--border);
}

/* Outlined label pill — "Business Infrastructure Firm" style */
.gh-hero-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.gh-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  max-width: 600px;
}

.gh-hero p {
  margin-top: var(--space-5);
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .gh-hero h1 { font-size: var(--text-3xl); }
}

/* ============================================================
   POST GRID
   ============================================================ */
.gh-feed { padding: var(--space-16) 0; }

/* Featured post */
.gh-feed-featured {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.gh-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  color: inherit;
}

.gh-card-featured .gh-card-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-surface);
}

.gh-card-featured .gh-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.gh-card-featured:hover .gh-card-image img { transform: scale(1.03); }

/* 3-col grid */
.gh-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 1024px) {
  .gh-feed-grid          { grid-template-columns: repeat(2, 1fr); }
  .gh-card-featured      { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .gh-feed-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   POST CARD
   ============================================================ */
.gh-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: inherit;
}

.gh-card-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--bg-surface);
}

.gh-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

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

/* Tag chip — outlined pill */
.gh-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  width: fit-content;
}

.gh-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.gh-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-primary);
  transition: color var(--duration) var(--ease);
}

.gh-card:hover .gh-card-title { color: var(--text-secondary); }

.gh-card-featured .gh-card-title {
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
}

.gh-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.gh-card-location,
.gh-card-date {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.gh-card-location::after {
  content: '·';
  margin-left: var(--space-3);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.gh-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
}

.gh-pagination a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}

.gh-pagination a:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

/* ============================================================
   POST PAGE
   ============================================================ */
.gh-article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-24);
}

.gh-article-header { margin-bottom: var(--space-12); }

.gh-article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.gh-article-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
}

.gh-article-date {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.gh-article-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.gh-article-excerpt {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.65;
  border-left: 2px solid var(--border-dark);
  padding-left: var(--space-5);
}

@media (max-width: 768px) {
  .gh-article-title { font-size: var(--text-3xl); }
}

/* Author row */
.gh-article-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-10);
}

.gh-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.gh-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gh-author-name { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.gh-author-meta { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--text-muted); }
.gh-article-reading-time { margin-left: auto; font-size: var(--text-xs); font-family: var(--font-mono); color: var(--text-muted); }

/* Featured image */
.gh-article-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
  aspect-ratio: 16/9;
  background: var(--bg-surface);
}

.gh-article-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   POST CONTENT
   ============================================================ */
.gh-content {
  font-size: var(--text-md);
  line-height: 1.75;
  color: #374151;
}

.gh-content > * + * { margin-top: 1.5em; }

.gh-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.gh-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.gh-content h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.gh-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.25);
  font-weight: 500;
  transition: text-decoration-color var(--duration) var(--ease);
}

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

.gh-content strong { font-weight: 600; color: var(--text-primary); }

.gh-content blockquote {
  border-left: 2px solid var(--text-primary);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-style: italic;
}

.gh-content blockquote p { margin: 0; }

.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--text-primary);
}

.gh-content pre {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-8) 0;
}

.gh-content pre code {
  background: none; border: none; padding: 0;
  font-size: var(--text-sm); line-height: 1.7; color: #e5e7eb;
}

.gh-content ul, .gh-content ol { padding-left: 1.5em; }
.gh-content li { margin-top: 0.4em; }
.gh-content li::marker { color: var(--text-muted); }

.gh-content hr { border: none; border-top: 1px solid var(--border); margin: var(--space-12) 0; }

.gh-content figure { margin: var(--space-10) 0; }
.gh-content figure img { border-radius: var(--radius-lg); width: 100%; }
.gh-content figcaption {
  text-align: center;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

.gh-content table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin: var(--space-8) 0; }
.gh-content th {
  text-align: left; font-weight: 600; font-size: var(--text-xs);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
}
.gh-content td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.gh-content tr:hover td { background: var(--bg-surface); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.gh-article-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  border-top: 1px solid var(--border);
}

.gh-article-footer h3 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

/* ============================================================
   CTA BLOCK — dark card with purple glow CTA
   ============================================================ */
.gh-cta-block {
  background: var(--bg-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-10);
  text-align: center;
  margin: var(--space-20) auto;
  max-width: 680px;
}

.gh-cta-block h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.gh-cta-block p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-8);
}

/* White pill with purple glow — "Book a Discovery Call" style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 26px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--text-inverse);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--cta-glow);
  transition: all var(--duration) var(--ease);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.45), 0 4px 20px rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

/* ============================================================
   SUBSCRIBE FORM
   ============================================================ */
.gh-subscribe {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-12) 0;
}

.gh-subscribe h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.gh-subscribe p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-5); }

.gh-subscribe-form { display: flex; gap: var(--space-3); }

.gh-subscribe-input {
  flex: 1;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.gh-subscribe-input:focus { border-color: var(--text-primary); }
.gh-subscribe-input::placeholder { color: var(--text-muted); }

.btn-subscribe-sm {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-inverse);
  background: var(--bg-dark);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-subscribe-sm:hover { background: var(--accent-hover); }

@media (max-width: 480px) { .gh-subscribe-form { flex-direction: column; } }

/* ============================================================
   TAG PAGE
   ============================================================ */
.gh-tag-header {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-12);
}

.gh-tag-name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.gh-tag-description {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-top: var(--space-4);
  max-width: 480px;
}

/* ============================================================
   FOOTER — basic
   ============================================================ */
.gh-foot {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  margin-top: var(--space-16);
  background: var(--bg-base);
}

.gh-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

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

.gh-foot-copy {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .gh-foot-inner  { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ERROR / 404
   ============================================================ */
.gh-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.gh-error-code {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.gh-error h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}

.gh-error p { font-size: var(--text-md); color: var(--text-secondary); margin-bottom: var(--space-8); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

.divider {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-muted); flex-shrink: 0;
}

/* ============================================================
   KOENIG CARD STYLES — required by Ghost for editor content
   .kg-width-wide and .kg-width-full are GScan required
   ============================================================ */

.gh-content .kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: var(--space-10) calc(50% - 42.5vw);
}

.gh-content .kg-width-full {
  position: relative;
  width: 100vw;
  margin: var(--space-10) calc(50% - 50vw);
}

/* Image cards */
.kg-image-card { margin: var(--space-8) 0; }
.kg-image-card img { border-radius: var(--radius-lg); width: 100%; }

/* Gallery card */
.kg-gallery-container { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-8) 0; }
.kg-gallery-row       { display: flex; gap: var(--space-3); }
.kg-gallery-image     { flex: 1; overflow: hidden; border-radius: var(--radius-md); }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

/* Audio card */
.kg-audio-card {
  margin: var(--space-8) 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* Embed / bookmark cards */
.kg-embed-card { margin: var(--space-8) 0; }
.kg-embed-card iframe { width: 100%; border-radius: var(--radius-md); }

.kg-bookmark-card {
  margin: var(--space-8) 0;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  background: var(--bg-surface);
}

.kg-bookmark-content {
  flex: 1;
  padding: var(--space-5);
}

.kg-bookmark-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.kg-bookmark-description {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.kg-bookmark-icon { width: 16px; height: 16px; }

.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: var(--space-4);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.kg-callout-emoji { font-size: 1.25rem; flex-shrink: 0; }

.kg-callout-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Toggle card */
.kg-toggle-card {
  margin: var(--space-6) 0;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kg-toggle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-surface);
}

.kg-toggle-content {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* Button card */
.kg-button-card {
  display: flex;
  margin: var(--space-8) 0;
}

.kg-button-card a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--bg-dark);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--duration) var(--ease);
}

.kg-button-card a:hover { background: var(--accent-hover); }

/* Product card */
.kg-product-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.kg-product-card-image { width: 80px; height: 80px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.kg-product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-product-card-title { font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-1); }
.kg-product-card-description { font-size: var(--text-sm); color: var(--text-secondary); }

/* File attachment card */
.kg-file-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration) var(--ease);
}

.kg-file-card:hover { background: var(--bg-elevated); }
.kg-file-card-title { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.kg-file-card-caption { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--text-muted); }

/* Header card */
.kg-header-card {
  padding: var(--space-16) var(--space-8);
  margin: var(--space-8) 0;
  background: var(--bg-dark);
  border-radius: var(--radius-2xl);
  text-align: center;
}

.kg-header-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}

.kg-header-card p {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-md);
  margin: 0 0 var(--space-6);
}

/* ============================================================
   BREADCRUMB / BACK BUTTON
   ============================================================ */
.gh-breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6) 0;
}

.gh-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.gh-back-link:hover {
  color: var(--text-primary);
}

.gh-back-link svg {
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}

.gh-back-link:hover svg {
  transform: translateX(-3px);
}

.container-sm {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
