/* ============================================================================
   Lyceum News — Ghost Theme CSS
   Editorial Intelligence Aesthetic — Warm Dark
   Inspired by The Industry: near-black, copper-gold, serif typography
   No rounded corners. No glow. No color coding. Pure editorial.
   ============================================================================ */

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

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:           #0c0a08;
  --bg-card:      #131109;
  --bg-card-2:    #1c1914;
  --text:         #ede0c4;   /* warm white — primary reading text */
  --text-muted:   #b5a080;   /* secondary body text — readable on dark */
  --text-dim:     #7a6a54;   /* metadata, labels — still legible */
  --gold:         #c8a96e;
  --gold-light:   #e0be80;
  --gold-dim:     rgba(200, 169, 110, 0.10);
  --border:       rgba(200, 169, 110, 0.14);
  --border-mid:   rgba(200, 169, 110, 0.26);
  --border-warm:  rgba(200, 169, 110, 0.42);
  --font-serif:   'Playfair Display', 'Georgia', serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --gh-font-heading: var(--font-serif);
  --gh-font-body:    var(--font-body);
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--border-mid);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: auto;
}
.site-logo:hover { color: var(--gold-light); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

.nav-subscribe {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 7px 16px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  white-space: nowrap;
}
.nav-subscribe:hover { background: transparent; color: var(--gold); }

.nav-signin {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 1px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.nav-signin:hover { color: var(--gold); border-color: var(--gold); }

/* ── Premium (In Focus) card treatment ─────────────────────────────────── */
.hp-story-card--premium .hp-story-img { opacity: 0.65; }
.hp-story-card--premium .hp-story-title a,
.hp-story-card--premium .hp-story-excerpt { opacity: 0.7; }
.hp-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(200, 169, 110, 0.07);
  border: 1px solid rgba(200, 169, 110, 0.22);
  padding: 2px 7px;
  border-radius: 2px;
  width: fit-content;
}
.hp-premium-section-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.65;
  border: 1px solid rgba(200, 169, 110, 0.28);
  padding: 2px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.site-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-title .gradient { color: var(--gold); }

.hero-tagline {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-warm);
  padding: 10px 26px;
  border-radius: 1px;
}
.hero-cta:hover { background: var(--gold-dim); color: var(--gold-light); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 7px;
}

/* ── Newsletters Section ─────────────────────────────────────────────────── */
.newsletters-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-mid);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.section-meta {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Category Groups ─────────────────────────────────────────────────────── */
.nl-category { margin-bottom: 52px; }

.nl-category-title {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-mid);
  margin-bottom: 0;
}

/* ── Newsletter Grid — newspaper flush-border layout ─────────────────────── */
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.newsletter-card {
  background: var(--bg-card);
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.12s;
}
.newsletter-card:hover { background: var(--bg-card-2); }

.card-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-mid);
  border-radius: 1px;
  padding: 2px 7px;
  display: inline-block;
  align-self: flex-start;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.card-subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 2px 0 6px;
  line-height: 1.3;
}

.card-freq {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.topic-pill {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 2px 7px;
}

.card-subscribe {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* ── Inline newsletter signup form ───────────────────────────────────────── */
.nl-signup-form { width: 100%; }

.nl-form-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.nl-email-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 1px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 11px;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s;
}
.nl-email-input::placeholder { color: var(--text-dim); }
.nl-email-input:focus { border-color: var(--gold); }

.nl-success,
.nl-error {
  font-size: 11px;
  margin-top: 5px;
  display: none;
}
.nl-success { color: #6fcf97; }
.nl-error   { color: #eb5757; }

/* Ghost reveals these by removing the hidden attribute after submission */
.nl-signup-form.success .nl-success { display: block; }
.nl-signup-form.error   .nl-error   { display: block; }

.btn-subscribe {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  background: transparent;
  border: none;
  padding: 4px 4px 4px 6px;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn-subscribe:hover { color: var(--text); }

.btn-archive {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
}
.btn-archive:hover { color: var(--gold); border-color: var(--border-mid); }


/* ── Tag Page Title Bar ──────────────────────────────────────────────────── */
.tag-page-title-bar {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.tag-page-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

/* ── Recent Issues Section ───────────────────────────────────────────────── */
.recent-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.post-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  color: inherit;
}
.post-card:hover { background: var(--bg-card-2); }

.post-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.post-card-img-placeholder {
  width: 100%;
  height: 120px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}

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

.post-card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.post-card-date {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: auto;
  padding-top: 8px;
}

.recent-empty {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  padding: 24px 0;
}

/* ── Homepage — Editorial Front Page ────────────────────────────────────── */
/* Pattern: Reuters / Semafor / Bloomberg — typography-first, desk nav, single gold accent */

/* ── Desk Navigation ─────────────────────────────────────────────────────── */
.hp-desk-nav {
  border-bottom: 1px solid var(--border-mid);
  background: var(--bg-card);
  overflow: hidden;
}

.hp-desk-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.hp-desk-nav-inner::-webkit-scrollbar { display: none; }

.hp-desk-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 13px 20px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.12s, background 0.12s;
}

.hp-desk-link:first-child { padding-left: 0; }
.hp-desk-link:hover { color: var(--text); background: rgba(200,169,110,0.05); }

.hp-desk-all {
  margin-left: auto;
  border-right: none;
  color: var(--gold);
  padding-right: 0;
}

.hp-desk-all:hover { color: var(--gold-light); background: transparent; }

.hp-dateline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* ── Hero — text-first, no image ────────────────────────────────────────── */
.hp-hero-section {
  border-bottom: 2px solid var(--border-mid);
  background: var(--bg-card);
  padding: 52px 0 48px;
}

.hp-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-decoration: none;
}
.hp-hero-label:hover { color: var(--gold-light); }

.hp-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
  display: block;
}
.hp-hero-title a { color: inherit; text-decoration: none; }
.hp-hero-title a:hover { color: var(--gold); }

.hp-hero-excerpt {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 720px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.hp-hero-meta {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hp-hero-read {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  margin-left: 14px;
}
.hp-hero-read:hover { color: var(--gold-light); }

/* ── Stories Grid ────────────────────────────────────────────────────────── */
.hp-stories-section {
  border-bottom: 2px solid var(--border-mid);
}

.hp-stories-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.hp-section-rule {
  flex: 1;
  height: 1px;
  background: var(--border-mid);
}

.hp-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Lead card (first post, above grid) ─────────────────────────────────── */
.hp-lead-card {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.hp-lead-img-link { display: block; flex: 0 0 55%; line-height: 0; }
.hp-lead-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hp-lead-body {
  flex: 1;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.hp-lead-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.hp-lead-title a { color: var(--text); text-decoration: none; }
.hp-lead-title a:hover { color: var(--gold); }

.hp-lead-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-stories-grid {
  max-width: 1200px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 24px;
  border-top: 2px solid var(--border-mid);
}

/* Desk section headers inserted by JS — must span all columns */
.hp-desk-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.hp-desk-divider:first-child { border-top: none; margin-top: 0; padding-top: 8px; }

.hp-story-card {
  background: var(--bg);
  border-right: 1px solid var(--border-mid);
  display: flex;
  flex-direction: column;
  transition: background 0.1s;
}

.hp-story-card:hover { background: var(--bg-card); }

.hp-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.hp-archive-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--copper);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.hp-archive-link:hover { opacity: 1; text-decoration: underline; }

.hp-story-img-link { display: block; line-height: 0; }

.hp-story-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.hp-story-card:hover .hp-story-img { opacity: 0.88; }

.hp-story-body {
  padding: 14px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-story-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hp-story-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.hp-story-title a { color: var(--text); text-decoration: none; }
.hp-story-title a:hover { color: var(--gold); }

.hp-story-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-story-date {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Spotlight grid (Daily Briefings — fills full width regardless of card count) */
.hp-spotlight-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hp-spotlight-grid .hp-story-card {
  border-right: 1px solid var(--border-mid);
}

/* ── Also from Lyceum News strip ─────────────────────────────────────────── */
.hp-also-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
}
.hp-also-label {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-right: 4px;
}
.hp-also-sep { color: var(--text-dim); }
.hp-also-strip a { color: var(--gold); text-decoration: none; }
.hp-also-strip a:hover { color: var(--gold-light); text-decoration: underline; }
.hp-also-all { color: var(--gold-light) !important; font-weight: 600; }

/* ── Directory CTA ───────────────────────────────────────────────────────── */
.hp-dir-cta-section {
  border-bottom: 1px solid var(--border);
}

.hp-dir-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hp-dir-cta-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hp-dir-cta-btn {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--gold);
  padding: 9px 18px;
  transition: background 0.15s, color 0.15s;
}

.hp-dir-cta-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Subscribe directory page header (/newsletters) */
.hp-subscribe-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 20px;
  border-bottom: 2px solid var(--border-mid);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.hp-subscribe-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hp-lead-card { flex-direction: column; }
  .hp-lead-img-link { flex: none; width: 100%; max-height: 260px; overflow: hidden; }
  .hp-stories-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-dir-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 640px) {
  .hp-spotlight-grid { grid-template-columns: 1fr; }
  .hp-dateline-right { display: none; }
}
@media (max-width: 580px) {
  .hp-stories-grid { grid-template-columns: 1fr; }
}

/* ── About Page ──────────────────────────────────────────────────────────── */
.about-content { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.about-lead { font-size: 20px; line-height: 1.6; color: var(--text); font-weight: 400; margin-bottom: 28px; }
.about-desks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin: 32px 0 40px; }
.about-desk h3 { font-family: var(--font-serif); font-size: 18px; color: var(--gold); margin-bottom: 8px; }
.about-desk p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }
@media (max-width: 640px) { .about-desks { grid-template-columns: 1fr; } }

/* ── Tag / Archive Header ────────────────────────────────────────────────── */
.tag-header-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-mid);
  padding: 48px 0;
}

.tag-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.tag-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.tag-description {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}


/* ── Post Feature Image ──────────────────────────────────────────────────── */
.post-feature-image {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.post-feature-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

/* ── Post Byline ─────────────────────────────────────────────────────────── */
.post-byline {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-byline-sep { color: var(--text-dim); }
.post-byline-date { color: var(--text-dim); text-transform: none; letter-spacing: 0; font-size: 11px; }
.post-byline-desk { color: var(--gold); text-decoration: none; }
.post-byline-desk:hover { text-decoration: underline; }

/* ── Full Post ───────────────────────────────────────────────────────────── */
.post-full {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 24px;
}

.post-header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-tag-list {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.post-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.post-feature-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 1px;
  margin-bottom: 32px;
  display: block;
}

/* ── Post / Newsletter Content ───────────────────────────────────────────── */
.gh-content {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
  font-family: var(--font-serif);
  color: var(--text);
  margin: 2em 0 0.75em;
  line-height: 1.2;
}

.gh-content h1 { font-size: 32px; }
.gh-content h2 {
  font-size: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.gh-content h3 { font-size: 20px; color: var(--gold); }
.gh-content h4 {
  font-size: 13px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.gh-content p { margin-bottom: 1.4em; }

.gh-content a {
  color: var(--gold);
  border-bottom: 1px solid var(--border-mid);
}
.gh-content a:hover { color: var(--gold-light); border-color: var(--gold); }

.gh-content ul,
.gh-content ol { margin: 0 0 1.4em 1.6em; }

.gh-content li { margin-bottom: 0.45em; }

.gh-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 2em 0;
  padding: 14px 24px;
  background: var(--gold-dim);
}
.gh-content blockquote p { color: var(--text-muted); font-style: italic; margin: 0; }

.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-card-2);
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 2px;
}

.gh-content pre {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 18px;
  overflow-x: auto;
  margin-bottom: 1.4em;
}
.gh-content pre code { background: none; padding: 0; font-size: 0.875em; }

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
  font-size: 14px;
}
.gh-content th {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
}
.gh-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: var(--text);
}
.gh-content tr:hover td { background: var(--gold-dim); }

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

.gh-content figure { margin: 2em 0; }
.gh-content figcaption {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ── Subscribe CTA ───────────────────────────────────────────────────────── */
.post-subscribe-cta {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.subscribe-cta-inner {
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  padding: 36px 48px;
  text-align: center;
}

.cta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.subscribe-cta-inner p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

/* Subscribe form inside post CTA */
.post-subscribe-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.post-subscribe-email {
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--bg-page, #0a0a0a);
  border: 1px solid var(--border-mid);
  color: var(--text);
  padding: 8px 14px;
  outline: none;
  width: 260px;
  max-width: 100%;
}

.post-subscribe-email::placeholder { color: var(--text-dim); }
.post-subscribe-email:focus { border-color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-mid);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .brand-name,
.footer-brand-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-brand p,
.footer-tagline {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.65;
}

.footer-col h4,
.footer-col-title {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-col ul,
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul a,
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-col ul a:hover,
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.05em;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold); }
.footer-premium-note {
  font-size: 11px;
  color: var(--copper);
  font-style: italic;
  list-style: none;
  padding: 4px 0 0;
  opacity: 0.8;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 32px 0;
}
.pagination .page-number { display: none; }
.pagination a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 1px;
}
.pagination a:hover { color: var(--gold); border-color: var(--border-mid); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
  .newsletter-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .newsletter-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-title { font-size: 36px; }
  .post-full, .post-subscribe-cta { padding: 0 16px; }
  .subscribe-cta-inner { padding: 24px 20px; }
}

/* ── Ghost Portal ────────────────────────────────────────────────────────── */
.gh-portal-triggerbtn {
  background: var(--gold) !important;
  border-radius: 2px !important;
}

/* ── Error / 404 page ───────────────────────────────────────────────────── */
.error-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 70vh; padding: 4rem 2rem; text-align: center;
}
.error-container { max-width: 520px; }
.error-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1rem;
}
.error-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text); margin-bottom: 1rem;
}
.error-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }
.btn-home {
  display: inline-block; padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.85rem; letter-spacing: 0.06em; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-home:hover { background: var(--gold); color: var(--bg); }

/* ── Member welcome / status bar ────────────────────────────────────────── */
.member-bar {
  display: none; background: var(--gold); color: var(--bg);
  text-align: center; padding: 0.6rem 1.5rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
}
.member-bar.visible { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.member-bar a { color: var(--bg); text-decoration: underline; font-weight: 400; }

/* ── Subscribed card state ───────────────────────────────────────────────── */
.newsletter-card.is-subscribed {
  border-color: #e8c97a;
  box-shadow: 0 0 0 1px #e8c97a22;
}
.newsletter-card.is-subscribed .card-badge {
  background: #e8c97a;
  color: #0c0a08;
}

/* ── Member toggle button (replaces email form for logged-in users) ─────── */
.member-toggle-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #e8c97a;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  border-radius: 0;
}
.member-toggle-btn.is-on {
  background: #e8c97a;
  color: #0c0a08;
}
.member-toggle-btn.is-off {
  background: transparent;
  color: #e8c97a;
}
.member-toggle-btn:hover { opacity: 0.8; }
.member-toggle-btn:disabled { opacity: 0.5; cursor: wait; }

/* ── Ghost Card Width Classes (required by GScan) ───────────────────────── */
.kg-width-wide {
  grid-column: wide-start / wide-end;
  width: 85vw;
  min-width: 100%;
}
.kg-width-full {
  grid-column: full-start / full-end;
  width: 100vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ── Ghost Portal — enabled for sign-in/paywall modal; floating button off via Ghost settings ── */

/* ── Sign-in page ────────────────────────────────────────────────────────── */
.signin-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.signin-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signin-logo {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.signin-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.signin-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.signin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signin-input {
  background: var(--bg);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.signin-input:focus { border-color: var(--copper); }
.signin-btn {
  background: var(--gold);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.signin-btn:hover:not(:disabled) { opacity: 0.88; }
.signin-btn:disabled { opacity: 0.5; cursor: wait; }
.signin-msg { font-size: 14px; margin: 0; padding: 12px 14px; }
.signin-msg--ok  { background: rgba(76,175,80,0.1); color: #81c784; border: 1px solid rgba(76,175,80,0.2); }
.signin-msg--err { background: rgba(239,83,80,0.1); color: #ef9a9a; border: 1px solid rgba(239,83,80,0.2); }
.signin-footer { font-size: 13px; color: var(--text-muted); margin: 0; }
.signin-footer a { color: var(--copper); text-decoration: none; }
.signin-footer a:hover { text-decoration: underline; }

/* ============================================================
   NEWSLETTER EMBEDDED SECTIONS — injected via HTML card
   ============================================================ */

/* The Lens — partisan coverage gap section */
.lens-card {
  background: rgba(155, 142, 196, 0.05);
  border-radius: 12px;
  padding: 28px 28px 22px;
  border-left: 4px solid #9b8ec4;
  border-top: 1px solid rgba(155, 142, 196, 0.20);
  border-right: 1px solid rgba(155, 142, 196, 0.08);
  border-bottom: 1px solid rgba(155, 142, 196, 0.08);
  margin: 32px 0;
}
.lens-card h2.story-heading {
  color: #9b8ec4;
  font-size: 1.0em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.lens-card h3.story-heading {
  color: var(--copper);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 24px;
}

/* ── Nav Search Button ───────────────────────────────────────────────────── */
.nav-search-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
  margin-left: -8px;
}
.nav-search-btn:hover { color: var(--gold); }

/* ── Site Search Overlay ─────────────────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.active { display: flex; }

.search-overlay-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  padding: 24px;
  position: relative;
}

.search-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.search-close-btn:hover { color: var(--text); }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.search-box-icon { color: var(--text-dim); flex-shrink: 0; }
.search-box-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
}
.search-box-input::placeholder { color: var(--text-dim); }

.search-results { display: flex; flex-direction: column; gap: 2px; max-height: 400px; overflow-y: auto; }
.sr-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.1s;
}
.sr-item:hover { background: var(--bg); }
.sr-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.sr-title mark { background: transparent; color: var(--gold); font-style: normal; }
.sr-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sr-excerpt { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.search-no-results { font-size: 14px; color: var(--text-muted); padding: 8px 12px; }
.search-hint { font-size: 12px; color: var(--text-dim); margin: 8px 0 0; text-align: center; }

/* ── Recipes Tag Page ────────────────────────────────────────────────────── */
.recipes-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 6px 0 0;
  font-family: var(--font-body);
}

.recipes-search-bar {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.recipes-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  padding: 8px 14px;
  flex: 1;
  max-width: 360px;
  color: var(--text-dim);
}
.recipes-search-inner:focus-within { border-color: var(--gold); color: var(--gold); }
.recipes-search-inner input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  width: 100%;
}
.recipes-search-inner input::placeholder { color: var(--text-dim); }

.recipes-count {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.post-card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
