/* ═══════════════════════════════════════════════════════════════════
   SAVVY SILVER TECH — Ghost Theme Stylesheet
   Fonts: Playfair Display (headings) + Nunito (body)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --sage:      #5A8A6A;
  --sage-dk:   #3d6b51;
  --sage-lt:   #e8f0eb;
  --sage-mid:  #c8dbd0;
  --ivory:     #faf7f2;
  --white:     #ffffff;
  --charcoal:  #1e2a1e;
  --text:      #2c3a2e;
  --muted:     #596860;
  --border:    #dce5de;
  --amber:     #8a6a3d;
  --amber-lt:  #fdf3e3;
  --amber-mid: #e8d5b0;
  --red:       #c0392b;
  --red-lt:    #fff0f0;
  --blue:      #4a6fa5;
  --blue-lt:   #eef3ff;
  --radius:    12px;
  --shadow-sm: 0 2px 8px rgba(30,42,30,.07);
  --shadow-md: 0 8px 28px rgba(30,42,30,.10);
  --shadow-lg: 0 16px 48px rgba(30,42,30,.13);
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal);
  line-height: 1.25;
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.bg-white  { background: var(--white); }
.bg-ivory  { background: var(--ivory); }
.bg-dark   { background: var(--charcoal); }
.section-pad { padding: 72px 0; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-dk);
  background: var(--sage-lt);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sage-dk);
  color: #fff;
  border-color: var(--sage-dk);
}
.btn-primary:hover { background: #2e5340; border-color: #2e5340; text-decoration: none; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--sage-dk);
  border-color: var(--sage-dk);
}
.btn-outline:hover { background: var(--sage-lt); text-decoration: none; }

.btn-white {
  background: #fff;
  color: var(--charcoal);
  border-color: #fff;
}
.btn-white:hover { background: var(--sage-lt); border-color: var(--sage-lt); text-decoration: none; }

.btn-amber {
  background: #fff;
  color: var(--charcoal);
  border-color: #fff;
}
.btn-amber:hover { background: var(--sage-lt); border-color: var(--sage-lt); text-decoration: none; color: var(--charcoal); }

/* ── Navigation ────────────────────────────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(30,42,30,.06);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo top"
    "logo bottom";
  align-items: end;
  column-gap: 28px;
  row-gap: 10px;
  min-height: 180px;
  padding: 12px 24px 10px;
}

.nav-logo-wrap {
  grid-area: logo;
  display: flex;
  align-items: flex-end;
  align-self: end;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--sage-dk); }
.nav-logo:hover { text-decoration: none; }
.nav-logo img {
  height: 200px;
  width: auto;
  display: block;
}

.nav-top {
  display: flex;
}

.nav-top-right {
  grid-area: top;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.nav-account-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.nav-bottom {
  grid-area: bottom;
  display: flex;
  justify-content: center;
  align-self: end;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--charcoal); background: var(--sage-lt); }

.nav-sign-in {
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .2s;
  white-space: nowrap;
}
.nav-sign-in:hover { color: var(--charcoal); }
.nav-member-name {
  cursor: default;
}

.nav-subscribe {
  font-size: .88rem;
  font-weight: 700;
  background: var(--sage-dk);
  color: #fff;
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-subscribe:hover { background: #2e5340; color: #fff; text-decoration: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--charcoal);
}
.nav-toggle svg { display: block; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2e4a32 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235A8A6A' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(90,138,106,.25);
  color: var(--sage-mid);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.hero-trust-icon { font-size: 1rem; }

/* ── Feature Boxes ─────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-box:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Post / Article Cards ──────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card-thumb {
  height: 90px;
  background: var(--sage-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.post-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(59,106,78,.16);
  font-size: 1.65rem;
  line-height: 1;
}

.post-card.paid .post-card-thumb {
  background: #fafcfa;
  filter: grayscale(15%);
  opacity: .8;
}

.post-card-body {
  padding: 22px 22px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-dk);
  background: var(--sage-lt);
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-free {
  font-size: .72rem;
  font-weight: 700;
  color: var(--sage-dk);
  background: #e4f4ea;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-premium {
  font-size: .72rem;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-lt);
  padding: 3px 10px;
  border-radius: 20px;
}

.post-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: 8px;
}

.post-card.paid h2 { color: var(--muted); }

.post-card p {
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.65;
}

.post-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 16px;
}

.read-link {
  font-weight: 700;
  color: var(--sage-dk);
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}
.read-link:hover { color: var(--charcoal); }

.subscribe-link {
  font-weight: 700;
  color: var(--amber);
  font-size: .88rem;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
}
.subscribe-link:hover { color: var(--charcoal); }

/* ── Video Section ─────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.video-thumb {
  position: relative;
  height: 160px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-thumb-emoji {
  font-size: 2.6rem;
  opacity: .3;
  position: absolute;
}
.play-btn {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.play-btn::after {
  content: '';
  display: block;
  border-style: solid;
  border-width: 9px 0 9px 18px;
  border-color: transparent transparent transparent var(--charcoal);
  margin-left: 3px;
}
.video-duration {
  position: absolute;
  bottom: 10px; right: 12px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.video-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.4;
}
.video-card p { font-size: .9rem; color: var(--muted); flex: 1; line-height: 1.6; }
.video-card-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
}

.video-coming-soon {
  background: var(--charcoal);
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.video-coming-soon p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}
.video-coming-soon strong { color: #fff; }

/* ── For Families Banner ───────────────────────────────────────────── */
.families-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.families-copy { max-width: 480px; }
.families-copy .section-title { margin-bottom: 16px; }
.families-list {
  list-style: none;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.families-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--muted);
}
.families-list li::before {
  content: '✓';
  color: var(--sage-dk);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.families-visual {
  background: var(--sage-lt);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.family-feature {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.family-feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.family-feature-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.family-feature-text span { font-size: .85rem; color: var(--muted); }

/* ── Newsletter / Subscribe CTA ────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2e4a32 100%);
  padding: 72px 0;
}
.newsletter-inner {
  max-width: 580px;
  text-align: center;
  margin: 0 auto;
}
.newsletter-inner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 12px;
}
.newsletter-inner p {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.newsletter-price {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-top: 14px;
}

/* ── Site Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
}

.footer-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.footer-logo-img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.footer-brand p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  max-width: 420px;
}

/* ── Article / Post View ───────────────────────────────────────────── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--sage-dk); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

.article-header { margin-bottom: 36px; }

.article-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.22;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-meta-dot { color: var(--border); }

.article-lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.75;
  border-left: 4px solid var(--sage-mid);
  padding-left: 20px;
  margin: 28px 0;
}

/* ── Article body content ──────────────────────────────────────────── */
.gh-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
}
.gh-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}
.gh-content p { margin-bottom: 18px; font-size: 1rem; line-height: 1.8; }
.gh-content ul, .gh-content ol {
  margin: 0 0 18px 24px;
  font-size: 1rem;
  line-height: 1.8;
}
.gh-content li { margin-bottom: 6px; }
.gh-content strong { color: var(--charcoal); font-weight: 700; }
.gh-content a { color: var(--sage-dk); text-decoration: underline; }
.gh-content a:hover { color: var(--charcoal); }
.gh-content img { border-radius: 8px; margin: 24px 0; }
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.gh-content blockquote {
  border-left: 4px solid var(--sage-mid);
  padding: 12px 20px;
  color: var(--muted);
  font-style: italic;
  margin: 24px 0;
}

/* Callout boxes ported from static site */
.gh-content .callout-tip,
.gh-content .callout-warning,
.gh-content .callout-info,
.gh-content .callout-success {
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.gh-content .callout-tip     { background: var(--sage-lt);  border-left: 4px solid var(--sage-dk); }
.gh-content .callout-warning  { background: var(--amber-lt); border-left: 4px solid var(--amber); }
.gh-content .callout-info     { background: var(--blue-lt);  border-left: 4px solid var(--blue); }
.gh-content .callout-success  { background: #e8f5e9;         border-left: 4px solid #388e3c; }

/* Step lists */
.gh-content .step-list { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: steps; }
.gh-content .step-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.gh-content .step-list li:last-child { border-bottom: none; }
.gh-content .step-list li::before {
  content: counter(steps);
  background: var(--sage-dk);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Paywall / Access Gate ─────────────────────────────────────────── */
.paywall {
  background: linear-gradient(180deg, rgba(250,247,242,0) 0%, var(--ivory) 40%);
  padding: 60px 0 0;
  margin-top: -60px;
  text-align: center;
  position: relative;
}
.paywall-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.paywall-icon { font-size: 2.2rem; margin-bottom: 14px; }
.paywall-card h2 {
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.paywall-card p { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.paywall-price {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 14px;
}
.paywall-already {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
}
.paywall-already a { color: var(--sage-dk); cursor: pointer; }

/* Ghost's default member paywall CTA */
.gh-post-upgrade-cta-content {
  background: var(--sage-dk) !important;
}
.gh-post-upgrade-cta-content h2 {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.gh-post-upgrade-kicker {
  margin: 0 0 10px;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gh-post-upgrade-copy {
  max-width: 560px;
  margin: 0 auto 22px;
  color: rgba(255,255,255,.86);
  font-size: .98rem;
  line-height: 1.65;
}
.gh-post-upgrade-cta-content .gh-btn {
  color: var(--sage-dk) !important;
  white-space: normal;
  text-align: center;
}

/* ── Security Alerts ───────────────────────────────────────────────── */
.guide-search,
.alert-search {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.guide-search-label,
.alert-search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--charcoal);
  font-size: 1.05rem;
  font-weight: 800;
}
.guide-search-control,
.alert-search-control {
  position: relative;
}
.guide-search-icon,
.alert-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--sage-dk);
  font-size: 1.25rem;
  font-weight: 800;
  pointer-events: none;
}
.guide-search input,
.alert-search input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--sage-mid);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--charcoal);
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px 13px 48px;
  outline: none;
}
.guide-search input:focus,
.alert-search input:focus {
  border-color: var(--sage-dk);
  box-shadow: 0 0 0 3px rgba(64, 113, 80, .18);
}
.guide-search-help,
.guide-search-count,
.alert-search-help,
.alert-search-count {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.guide-search-count,
.alert-search-count {
  color: var(--sage-dk);
  font-weight: 700;
}
.guide-search-empty,
.alert-search-empty {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
}
.guide-search-empty h2,
.alert-search-empty h2 {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 1.25rem;
}
.guide-search-empty p,
.alert-search-empty p {
  margin: 0;
  color: var(--muted);
}
.post-card[hidden],
.alert-card[hidden] {
  display: none !important;
}
.alerts-list { display: flex; flex-direction: column; gap: 24px; }

.alert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-left-width: 5px;
}
.alert-card.sev-critical { border-left-color: var(--red); }
.alert-card.sev-high     { border-left-color: #b85c1a; }
.alert-card.sev-medium   { border-left-color: var(--amber); }

.alert-card-inner { padding: 28px 32px; }

.alert-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sev-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.sev-badge.critical { background: var(--red-lt); color: var(--red); }
.sev-badge.high     { background: #fff4ec; color: #b85c1a; }
.sev-badge.medium   { background: var(--amber-lt); color: var(--amber); }

.alert-type-tag {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--sage-lt);
  padding: 3px 10px;
  border-radius: 20px;
}
.alert-date { font-size: .8rem; color: var(--muted); }

.alert-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.35;
}
.alert-summary { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.alert-what-to-do {
  background: var(--sage-lt);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
}
.alert-what-to-do strong { display: block; margin-bottom: 6px; color: var(--sage-dk); }

/* ── Glossary ──────────────────────────────────────────────────────── */
.glossary-page {
  scroll-margin-top: 220px;
}
.glossary-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.glossary-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: var(--sage-dk);
  background: var(--sage-lt);
  border: 1px solid var(--sage-mid);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.glossary-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.glossary-letter-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--sage-dk);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.glossary-letter-nav a:hover {
  color: #fff;
  background: var(--sage-dk);
  border-color: var(--sage-dk);
  text-decoration: none;
}
.glossary-layout {
  display: grid;
  gap: 28px;
}
.glossary-section {
  scroll-margin-top: 220px;
}
.glossary-section > h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.55rem;
  margin-bottom: 14px;
}
.glossary-section > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.glossary-term {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.glossary-term h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.glossary-term p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}
.glossary-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 30px 32px;
  background: var(--charcoal);
  border-radius: 14px;
}
.glossary-note h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.glossary-note p {
  max-width: 620px;
  color: rgba(255,255,255,.68);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Tag / Category Archive ────────────────────────────────────────── */
.tag-header {
  background: var(--charcoal);
  padding: 56px 0;
}
.tag-header h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}
.tag-header p { color: rgba(255,255,255,.65); font-size: 1rem; }

/* ── Pagination ────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
}
.pagination a, .pagination span {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--sage-dk); color: var(--sage-dk); }
.pagination .current { background: var(--sage-dk); color: #fff; border-color: var(--sage-dk); }

/* ── 404 ───────────────────────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-page h1 { font-size: 5rem; color: var(--sage-mid); margin-bottom: 12px; }
.error-page h2 { font-size: 1.6rem; margin-bottom: 12px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid  { grid-template-columns: 1fr 1fr; }
  .posts-grid     { grid-template-columns: 1fr 1fr; }
  .video-grid     { grid-template-columns: 1fr 1fr; }
  .glossary-list  { grid-template-columns: 1fr; }
  .families-inner { grid-template-columns: 1fr; gap: 40px; }
  .families-visual { display: none; }
  .glossary-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .posts-grid    { grid-template-columns: 1fr; }
  .video-grid    { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section-pad { padding: 48px 0; }
  .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 10px;
  }
  .nav-logo-wrap {
    align-self: flex-start;
  }
  .nav-top-right {
    justify-content: flex-end;
  }
  .nav-logo img {
    height: 72px;
  }
  .nav-account-row { display: none; }
  .nav-bottom { display: none; }
  .nav-toggle { display: block; }
  .paywall-card { padding: 28px 20px; }
  .article-wrap { padding: 32px 16px 60px; }
  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .video-coming-soon { flex-direction: column; }
  .glossary-intro {
    flex-direction: column;
    gap: 12px;
  }
  .glossary-letter-nav a {
    width: 34px;
    height: 34px;
  }
  .glossary-term {
    padding: 20px;
  }
  .glossary-note {
    padding: 26px 22px;
  }
}

@media (max-width: 960px) {
  .nav-inner {
    min-height: 148px;
  }
  .nav-logo img {
    height: 82px;
  }
}

/* ── Ghost Editor Card Width Classes (required) ─────────────────────────── */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 2rem);
  margin-right: calc(50% - 50vw + 2rem);
  max-width: none;
  width: calc(100vw - 4rem);
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
@media (max-width: 600px) {
  .kg-width-wide,
  .kg-width-full {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    max-width: none;
  }
}
