/* ── StockHeroes Ghost Theme ─────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --navy:    #0f172a;
  --navy2:   #1e293b;
  --blue:    #3b82f6;
  --blue2:   #1e40af;
  --text:    #334155;
  --muted:   #64748b;
  --lighter: #94a3b8;
  --border:  #e2e8f0;
  --bg:      #f8fafc;
  --white:   #ffffff;
  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-family: var(--font); background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }

/* ── Nav ─────────────────────────────────────────────────────── */
.sh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--navy);
  border-bottom: 1px solid rgba(148,163,184,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.sh-nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.sh-nav__logo img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}
.sh-nav__logo-text {
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}
.sh-nav__logo-text span { color: var(--blue); }
.sh-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.sh-nav__links a {
  color: var(--lighter);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.15s;
}
.sh-nav__links a:hover { color: var(--white); }
.sh-nav__cta {
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  border-radius: 8px;
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 800 !important;
  padding: 8px 18px;
  text-decoration: none;
}
.sh-nav__yt { display: flex; align-items: center; color: var(--lighter); transition: color 0.15s; }
.sh-nav__yt:hover { color: #ff0000; }
.sh-nav__yt svg { width: 22px; height: 22px; fill: currentColor; }

/* ── Hero banner (blog index) ────────────────────────────────── */
.sh-hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(16,185,129,0.10) 0%, transparent 60%);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
}
.sh-hero__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sh-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
}
.sh-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.60);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Post hero banner (single post) ─────────────────────────── */
.sh-post-hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(16,185,129,0.10) 0%, transparent 60%);
  color: var(--white);
  padding: 72px 24px 64px;
  text-align: center;
}
.sh-post-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sh-post-hero__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(59,130,246,0.15);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.sh-post-hero__date, .sh-post-hero__rt {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.sh-post-hero__sep { font-size: 13px; color: rgba(255,255,255,0.30); }
.sh-post-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 auto 20px;
  line-height: 1.2;
  max-width: 680px;
}
.sh-post-hero__author { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ── Post list ───────────────────────────────────────────────── */
.sh-posts {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}
.sh-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}
.sh-card:hover { box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 8px 24px rgba(0,0,0,0.10); }
.sh-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sh-card__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(59,130,246,0.10);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.sh-card__date { font-size: 13px; color: var(--lighter); }
.sh-card__sep  { font-size: 13px; color: #cbd5e1; }
.sh-card__rt   { font-size: 13px; color: var(--lighter); }
.sh-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.sh-card__excerpt {
  font-size: 15px;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 24px;
}
.sh-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.sh-card__author { font-size: 13px; color: var(--muted); }
.sh-card__read {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.sh-card__read:hover { text-decoration: underline; }

/* ── Post feature image ──────────────────────────────────────── */
.sh-post-feature-image {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
.sh-post-feature-image img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── Single post body ────────────────────────────────────────── */
.sh-post-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  flex: 1;
}
.sh-post-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 52px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.07);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.sh-post-body h2 { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.4px; margin: 40px 0 14px; line-height: 1.3; }
.sh-post-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; line-height: 1.4; }
.sh-post-body p  { margin: 0 0 20px; }
.sh-post-body ul, .sh-post-body ol { padding-left: 24px; margin: 0 0 20px; }
.sh-post-body li { margin-bottom: 10px; }
.sh-post-body a  { color: var(--blue); }
.sh-post-body img { max-width: 100%; border-radius: 12px; margin: 24px 0; }
.sh-post-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.sh-post-body blockquote {
  border-left: 4px solid var(--blue);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(59,130,246,0.05);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-style: italic;
}
.sh-post-body pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  margin: 24px 0;
}
.sh-post-body code { font-size: 14px; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #1e40af; }
.sh-post-body pre code { background: none; color: inherit; padding: 0; }

/* ── Tables ──────────────────────────────────────────────────── */
.sh-post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sh-post-body thead {
  background: var(--navy);
  color: var(--white);
  text-align: left;
}
.sh-post-body thead th {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.sh-post-body tbody tr { border-bottom: 1px solid var(--border); }
.sh-post-body tbody tr:last-child { border-bottom: none; }
.sh-post-body tbody tr:nth-child(even) { background: #f8fafc; }
.sh-post-body tbody td {
  padding: 11px 16px;
  vertical-align: top;
  color: var(--text);
}
.sh-post-body tbody td strong { color: var(--navy); font-weight: 700; }

/* horizontal scroll on narrow screens */
.sh-post-body { overflow-x: auto; }

.sh-post-nav {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.sh-post-nav a { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.sh-post-nav a:hover { text-decoration: underline; }
.sh-post-nav__byline { font-size: 13px; color: var(--lighter); }

/* ── Footer ──────────────────────────────────────────────────── */
.sh-footer {
  background: var(--navy2);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font);
}
.sh-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 60px 40px;
}
.sh-footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.sh-footer__col ul { list-style: none; padding: 0; }
.sh-footer__col li { margin-bottom: 10px; }
.sh-footer__col a {
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.sh-footer__col a:hover { color: var(--white); }
.sh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 60px;
  text-align: center;
  color: rgba(255,255,255,0.40);
  font-size: 13px;
}
.sh-footer__bottom p { margin-bottom: 8px; }
.sh-footer__disclaimer {
  font-size: 11px;
  opacity: 0.7;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Pagination ──────────────────────────────────────────────── */
.sh-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 24px 64px;
}
.sh-pagination a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 8px;
}
.sh-pagination a:hover { background: rgba(59,130,246,0.05); }

/* ── Koenig editor content classes (required by Ghost GSC) ──── */
.kg-width-wide {
  margin-left: calc(50% - min(45vw, 680px));
  margin-right: calc(50% - min(45vw, 680px));
  width: min(90vw, 1360px);
  max-width: 90vw;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
.kg-image { max-width: 100%; border-radius: 8px; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { max-width: 100%; border-radius: 8px; }
.kg-embed-card { display: flex; justify-content: center; margin: 24px 0; }
.kg-bookmark-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sh-nav { padding: 12px 16px; }
  .sh-hero h1 { font-size: 32px; }
  .sh-post-hero h1 { font-size: 28px; }
  .sh-card { padding: 28px 24px; }
  .sh-post-body { padding: 32px 24px; }
  .sh-footer__grid { padding: 40px 24px 32px; }
  .sh-footer__bottom { padding: 20px 24px; }
}
