/* ═══════════════════════════════════════════════════════════════
   EXECUTIVE BRIEFS — Ghost Theme Stylesheet
   "The SCIF Readout" Aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:              #0B0F1A;
  --bg-doc:          #0E1221;
  --bg-panel:        #111728;
  --bg-accent:       #151C2E;
  --gold:            #C4A35A;
  --gold-dim:        #8B7340;
  --gold-glow:       rgba(196,163,90,0.15);
  --gold-glow-strong:rgba(196,163,90,0.25);
  --navy:            #1B2A4A;
  --slate:           #64748B;
  --slate-light:     #94A3B8;
  --text:            #E2E8F0;
  --text-dim:        #94A3B8;
  --text-muted:      #64748B;
  --white:           #F8FAFC;
  --red:             #DC2626;
  --red-dim:         #991B1B;
  --green:           #22C55E;
  --green-dim:       #166534;
  --green-glow:      rgba(34,197,94,0.15);
  --border:          rgba(196,163,90,0.2);
  --border-dim:      rgba(100,116,139,0.2);
  --font-mono:       'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
  --font-serif:      'Playfair Display', 'Georgia', serif;
  --font-sans:       'Inter', -apple-system, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--gh-font-body, var(--font-sans));
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--gold-glow-strong); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; }

/* Ghost Custom Font Support */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--gh-font-heading, var(--font-serif));
}

/* ── Keyframes ── */
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }
@keyframes stampIn { 0% { transform: scale(3) rotate(-15deg); opacity: 0; } 60% { transform: scale(1.05) rotate(-2deg); opacity: 0.9; } 100% { transform: scale(1) rotate(-3deg); opacity: 0.85; } }
@keyframes bootFadeOut { from { opacity: 1; } to { opacity: 0; pointer-events: none; } }
@keyframes scanPulse { 0%, 100% { opacity: 0.03; } 50% { opacity: 0.06; } }
@keyframes typeIn { from { width: 0; } to { width: 100%; } }


/* ═══════════════════════════════════════════
   OVERLAYS — Scanlines & Vignette
   ═══════════════════════════════════════════ */
.eb-scanlines {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 1000;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
}
.eb-vignette {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 999;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
}


/* ═══════════════════════════════════════════
   BOOT SEQUENCE
   ═══════════════════════════════════════════ */
.eb-boot {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  z-index: 2000; background: var(--bg);
  padding: 20px;
  transition: opacity 0.6s ease;
}
.eb-boot.fade-out {
  opacity: 0; pointer-events: none;
}
.eb-boot__line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
}
.eb-boot__line.visible { opacity: 1; }
.eb-boot__line .ok { color: var(--gold); margin-left: 8px; }
.eb-boot__cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--gold); margin-left: 4px;
  animation: cursorBlink 0.8s infinite;
}
.eb-boot__logo {
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 600;
  letter-spacing: 6px; color: var(--gold);
  margin-top: 32px; opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.eb-boot__logo.visible { opacity: 0.8; }


/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.eb-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.eb-container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.eb-section {
  padding: 80px 0;
}
.eb-section--hero {
  padding: 120px 0 80px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* ═══════════════════════════════════════════
   SITE HEADER / NAV
   ═══════════════════════════════════════════ */
.eb-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  transition: background 0.3s;
}
.eb-header.scrolled {
  background: rgba(11,15,26,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dim);
}
.eb-header__brand {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase;
}
.eb-header__nav {
  display: flex; gap: 24px; align-items: center;
}
.eb-header__nav a {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 400;
  letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.eb-header__nav a:hover { color: var(--gold); }
.eb-header__nav .btn-access {
  padding: 6px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  color: var(--gold);
  transition: all 0.2s;
}
.eb-header__nav .btn-access:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}


/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.eb-class-stamp {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 4px;
  padding: 4px 16px;
  border: 1px solid;
  display: inline-block;
  margin-bottom: 32px;
}
.eb-class-stamp--confidential {
  color: var(--gold);
  border-color: var(--gold-dim);
}
.eb-class-stamp--declassified {
  color: var(--green);
  border-color: var(--green-dim);
}
.eb-class-stamp--classified {
  color: var(--red);
  border-color: var(--red-dim);
}

.eb-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 720px;
}
.eb-hero__subtitle {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}
.eb-hero__author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}


/* ═══════════════════════════════════════════
   GOLD DIVIDER
   ═══════════════════════════════════════════ */
.eb-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}
.eb-divider--section { margin: 60px auto; width: 200px; }
.eb-divider--full { width: 100%; }


/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.eb-section-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}
.eb-section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
}
.eb-section-subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dim);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}


/* ═══════════════════════════════════════════
   FORECASTING RECORD (Declassified)
   ═══════════════════════════════════════════ */
.eb-record {
  position: relative;
  padding-left: 40px;
}
.eb-record::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-dim), transparent);
}
.eb-record__item {
  position: relative;
  margin-bottom: 40px;
  cursor: pointer;
}
.eb-record__year {
  position: absolute;
  left: -40px; top: 2px;
  width: 24px; height: 24px;
  background: var(--bg-panel);
  border: 2px solid var(--gold-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.eb-record__year::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold-dim);
  border-radius: 50%;
  transition: all 0.3s;
}
.eb-record__item:hover .eb-record__year {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}
.eb-record__item:hover .eb-record__year::after {
  background: var(--gold);
}
.eb-record__date {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.eb-record__title {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.eb-record__text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Scorecard — revealed on hover */
.eb-scorecard {
  margin-top: 16px;
  background: var(--bg-doc);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.eb-record__item:hover .eb-scorecard,
.eb-record__item.active .eb-scorecard {
  max-height: 400px;
  opacity: 1;
  margin-top: 16px;
}
.eb-scorecard__header {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px; color: var(--gold);
  padding: 10px 16px;
  background: var(--bg-accent);
  border-bottom: 1px solid var(--border-dim);
}
.eb-scorecard__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.eb-scorecard__stat {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dim);
}
.eb-scorecard__stat:nth-child(odd) {
  border-right: 1px solid var(--border-dim);
}
.eb-scorecard__stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.eb-scorecard__stat-value {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  color: var(--white);
}
.eb-scorecard__stat-value--gold { color: var(--gold); }
.eb-scorecard__stat-value--red { color: var(--red); }
.eb-scorecard__stat-value--green { color: var(--green); }

/* Cost of Waiting testimonial */
.eb-scorecard__testimonial {
  grid-column: 1 / -1;
  padding: 16px;
  background: var(--bg-accent);
  border-top: 1px solid var(--border-dim);
}
.eb-scorecard__testimonial-label {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 8px;
}
.eb-scorecard__testimonial-quote {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
}
.eb-scorecard__testimonial-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}


/* ═══════════════════════════════════════════
   BRIEF STRUCTURE SPECIMEN
   ═══════════════════════════════════════════ */
.eb-specimen {
  background: var(--bg-doc);
  border: 1px solid var(--border);
  border-radius: 3px;
  max-width: 600px;
  margin: 0 auto;
}
.eb-specimen__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-dim);
  display: flex; justify-content: space-between; align-items: center;
}
.eb-specimen__docid {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.eb-specimen__stamp {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 2px 10px;
}
.eb-specimen__body { padding: 24px; }
.eb-specimen__section {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--border-dim);
  transition: border-color 0.2s;
}
.eb-specimen__section:hover {
  border-left-color: var(--gold);
}
.eb-specimen__section-num {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  color: var(--gold-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.eb-specimen__section-title {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.eb-specimen__section-desc {
  font-size: 12px;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════
   SHARE INTELLIGENCE SECTION
   ═══════════════════════════════════════════ */
.eb-share {
  background: var(--bg-doc);
  border: 1px solid var(--border);
  border-radius: 3px;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}
.eb-share__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-dim);
}
.eb-share__tab {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
}
.eb-share__tab:hover { color: var(--text); }
.eb-share__tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: var(--bg-accent);
}
.eb-share__panel {
  padding: 24px;
  display: none;
}
.eb-share__panel.active { display: block; }
.eb-share__prompt {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
}
.eb-share__input-group {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.eb-share__input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-accent);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s;
}
.eb-share__input:focus {
  outline: none;
  border-color: var(--gold-dim);
}
.eb-share__textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-accent);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  min-height: 100px;
  resize: vertical;
  transition: border-color 0.2s;
}
.eb-share__textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
}

/* Contributor Benefits */
.eb-benefits {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-accent);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
}
.eb-benefits__title {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}
.eb-benefits__item {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.eb-benefits__label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  min-width: 100px;
}
.eb-benefits__desc {
  font-size: 12px;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════
   TIER CARDS (Clearance Levels)
   ═══════════════════════════════════════════ */
.eb-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.eb-tier {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}
.eb-tier:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.eb-tier--featured {
  border-color: var(--gold-dim);
  box-shadow: 0 0 24px var(--gold-glow), inset 0 0 24px var(--gold-glow);
}
.eb-tier--featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--gold);
  padding: 2px 12px;
  border-radius: 2px;
}
.eb-tier__clearance {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.eb-tier__clearance--unclassified { color: var(--slate-light); }
.eb-tier__clearance--restricted { color: var(--gold-dim); }
.eb-tier__clearance--confidential { color: var(--gold); }
.eb-tier__clearance--classified { color: var(--red); }

.eb-tier__name {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.eb-tier__price {
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.eb-tier__price span {
  font-size: 13px; font-weight: 400;
  color: var(--text-muted);
}
.eb-tier__desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}
.eb-tier__features {
  list-style: none;
  margin-bottom: 24px;
}
.eb-tier__features li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid var(--border-dim);
}
.eb-tier__features li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--gold-dim);
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.eb-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
  padding: 12px 32px;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
.eb-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}
.eb-btn--primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.eb-btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg);
}
.eb-btn--full { display: block; width: 100%; }
.eb-btn--sm { padding: 8px 20px; font-size: 10px; }

/* Ghost Members Forms */
[data-members-form] .eb-btn { margin-top: 8px; }


/* ═══════════════════════════════════════════
   SIGNUP / SIGNAL CTA
   ═══════════════════════════════════════════ */
.eb-signal-cta {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.eb-signal-cta__form {
  display: flex; gap: 8px;
  margin-bottom: 12px;
}
.eb-signal-cta__success {
  display: none;
  text-align: center;
}
.eb-signal-cta__success.visible { display: block; }
.eb-signal-cta__success-badge {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--green);
  margin-bottom: 8px;
}
.eb-signal-cta__success-text {
  font-size: 13px;
  color: var(--text-dim);
}


/* ═══════════════════════════════════════════
   ACCOUNTABILITY PROTOCOL OVERLAY
   ═══════════════════════════════════════════ */
.eb-protocol-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: rgba(11,15,26,0.95);
  backdrop-filter: blur(8px);
  display: none;
  overflow-y: auto;
}
.eb-protocol-overlay.visible { display: block; }
.eb-protocol-overlay__close {
  position: fixed; top: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: none; border: 1px solid var(--border-dim);
  padding: 6px 12px; cursor: pointer;
  border-radius: 2px;
  z-index: 3001;
  transition: all 0.2s;
}
.eb-protocol-overlay__close:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}
.eb-protocol-overlay__content {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 24px;
}


/* ═══════════════════════════════════════════
   POST / READING ROOM
   ═══════════════════════════════════════════ */
.eb-post {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.eb-post__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-dim);
}
.eb-post__docid {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.eb-post__classification {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 20px;
}
.eb-post__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}
.eb-post__meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.eb-post__meta-sep { color: var(--gold-dim); }

/* Post Content Styling */
.eb-post__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.eb-post__content h2 {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 600;
  color: var(--white);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dim);
}
.eb-post__content h3 {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600;
  color: var(--white);
  margin: 36px 0 12px;
}
.eb-post__content h4 {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 32px 0 12px;
}
.eb-post__content p { margin-bottom: 20px; }
.eb-post__content blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-accent);
  border-radius: 0 3px 3px 0;
  font-style: italic;
  color: var(--text-dim);
}
.eb-post__content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-accent);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--gold);
}
.eb-post__content pre {
  background: var(--bg-doc);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.eb-post__content pre code {
  background: none; padding: 0;
}
.eb-post__content ul, .eb-post__content ol {
  margin: 16px 0;
  padding-left: 28px;
}
.eb-post__content li { margin-bottom: 8px; }
.eb-post__content a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }
.eb-post__content a:hover { color: var(--white); border-bottom-color: var(--white); }
.eb-post__content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 48px 0;
}
.eb-post__content img {
  border-radius: 3px;
  border: 1px solid var(--border-dim);
}
.eb-post__content figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.eb-post__content .kg-card { margin: 32px 0; }

/* Members-only content gate */
.eb-post__gate {
  text-align: center;
  padding: 48px 24px;
  margin: 48px 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-doc);
}
.eb-post__gate-stamp {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 16px;
}
.eb-post__gate-title {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.eb-post__gate-text {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto; margin-right: auto;
}


/* ═══════════════════════════════════════════
   POST CARDS (Index / Archive)
   ═══════════════════════════════════════════ */
.eb-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.eb-post-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-dim);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  transition: background 0.2s;
}
.eb-post-card:hover {
  background: var(--bg-doc);
  margin: 0 -24px;
  padding: 32px 24px;
  border-radius: 3px;
}
.eb-post-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  min-width: 80px;
  padding-top: 4px;
}
.eb-post-card__body { flex: 1; }
.eb-post-card__title {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.eb-post-card:hover .eb-post-card__title { color: var(--gold); }
.eb-post-card__excerpt {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.eb-post-card__access {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 2px;
  white-space: nowrap;
}
.eb-post-card__access--public {
  color: var(--slate-light);
  border-color: var(--slate);
}
.eb-post-card__access--members {
  color: var(--gold-dim);
  border-color: var(--gold-dim);
}
.eb-post-card__access--paid {
  color: var(--gold);
  border-color: var(--gold);
}


/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.eb-pagination {
  display: flex; justify-content: center; gap: 16px;
  padding: 48px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
}
.eb-pagination a {
  color: var(--text-muted);
  padding: 8px 16px;
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  transition: all 0.2s;
}
.eb-pagination a:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.eb-pagination__current {
  color: var(--text-muted);
  padding: 8px 0;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.eb-footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border-dim);
}
.eb-footer__brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold-dim);
  margin-bottom: 16px;
}
.eb-footer__text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  line-height: 2;
}
.eb-footer__text .gold { color: var(--gold-dim); }


/* ═══════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════ */
.eb-error {
  min-height: 80vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 24px;
}
.eb-error__code {
  font-family: var(--font-mono);
  font-size: 72px; font-weight: 700;
  color: var(--red);
  letter-spacing: 8px;
  margin-bottom: 16px;
}
.eb-error__title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}
.eb-error__text {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 32px;
}


/* ═══════════════════════════════════════════
   MEMBERS PAGES (Sign in / Sign up)
   ═══════════════════════════════════════════ */
.eb-members {
  min-height: 80vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 24px;
}
.eb-members__form {
  max-width: 400px; width: 100%;
  margin-top: 32px;
}
.eb-members__input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-accent);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.eb-members__input:focus {
  outline: none;
  border-color: var(--gold-dim);
}


/* ═══════════════════════════════════════════
   TAG & AUTHOR ARCHIVE PAGES
   ═══════════════════════════════════════════ */
.eb-archive {
  padding: 120px 0 60px;
}
.eb-archive__header {
  text-align: center;
  margin-bottom: 48px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ── Ghost Card Width Classes ── */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.kg-width-full img { max-width: 100vw; }

/* ── Ghost Gallery Card ── */
.kg-gallery-container { display: flex; flex-direction: column; max-width: 100%; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image { flex: 1 1 0; margin: 0 4px; }
.kg-gallery-image:first-child { margin-left: 0; }
.kg-gallery-image:last-child { margin-right: 0; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Ghost Bookmark Card ── */
.kg-bookmark-card { width: 100%; margin: 24px 0; }
.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  overflow: hidden;
  color: var(--text);
}
.kg-bookmark-content { flex: 1; padding: 20px; }
.kg-bookmark-title { font-size: 16px; font-weight: 600; color: var(--white); }
.kg-bookmark-description { font-size: 14px; color: var(--text-dim); margin-top: 8px; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { flex: 0 0 200px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ── Custom Font Support ── */
body.custom-font-serif .eb-post__content { font-family: var(--font-serif); }
body.custom-font-sans .eb-post__content { font-family: var(--font-sans); }

@media (max-width: 768px) {
  .eb-section--hero { padding: 100px 0 60px; min-height: 70vh; }
  .eb-tiers { grid-template-columns: 1fr; max-width: 400px; }
  .eb-post-card { grid-template-columns: 1fr; gap: 8px; }
  .eb-post-card__date { min-width: auto; }
  .eb-post-card__access { justify-self: start; }
  .eb-scorecard__body { grid-template-columns: 1fr; }
  .eb-scorecard__stat:nth-child(odd) { border-right: none; }
  .eb-header__nav { gap: 12px; }
  .eb-signal-cta__form { flex-direction: column; }
  .eb-share__input-group { flex-direction: column; }
}
@media (max-width: 480px) {
  .eb-header__brand { font-size: 9px; letter-spacing: 2px; }
  .eb-header__nav a { font-size: 9px; }
  .eb-hero__author { font-size: 10px; }
}
