/*
 * SfIntel Theme Stylesheet
 * Ported from StartupFortune_Wireframes.html
 * Design system: editorial news layout with light/dark mode
 */

/* ═══════════════════════════════════════════
   1. BASE RESET
   ═══════════════════════════════════════════ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Roboto', 'Roboto fallback', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-hi);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums proportional-nums;
}

a { color: var(--text-hi); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

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

ul, ol { list-style: none; }

/* ═══════════════════════════════════════════
   2. CSS CUSTOM PROPERTIES — THEME VARIABLES
   ═══════════════════════════════════════════ */

/* Light Theme (default) */
.theme-sf {
  --bg: #FFFFFF; --bg2: #FAFAFA; --bg3: #F4F4F4;
  --border: #E8E8E8; --border-dash: #CCCCCC;
  --text-hi: #333333; --text-mid: #666666; --text-lo: #BBBBBB;
  --accent: #C8102E;
  --accent-cta: #A50D25;
  --accent-section: #333333;
  --img-bg: #DCDCDC; --img-line: #C0C0C0;
  --badge-bg: transparent; --badge-text: #C8102E;
  --section-bg: #F5F5F5;
  --hl-font: 'Merriweather', 'Merriweather fallback', Georgia, serif;
  --body-font: 'Roboto', 'Roboto fallback', sans-serif;
  --nav-font: 'Roboto', 'Roboto fallback', sans-serif;
  --label-color: #C8102E;
}

/* Dark Theme */
.theme-sf-dark {
  --bg: #0D0D0D; --bg2: #161616; --bg3: #1E1E1E;
  --border: #2A2A2A; --border-dash: #333333;
  --text-hi: #E8E8E8; --text-mid: #909090; --text-lo: #444444;
  --accent: #E8294A;
  --accent-cta: #C8102E;
  --accent-section: #E8E8E8;
  --img-bg: #222222; --img-line: #333333;
  --badge-bg: transparent; --badge-text: #E8294A;
  --section-bg: #111111;
  --hl-font: 'Merriweather', 'Merriweather fallback', Georgia, serif;
  --body-font: 'Roboto', 'Roboto fallback', sans-serif;
  --nav-font: 'Roboto', 'Roboto fallback', sans-serif;
  --label-color: #E8294A;
}

/* ═══════════════════════════════════════════
   3. SITE CONTAINER
   ═══════════════════════════════════════════ */

.sf-site {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   4. TYPOGRAPHY
   ═══════════════════════════════════════════ */

.sf-hl {
  font-family: var(--hl-font), Georgia, serif;
  color: var(--text-hi);
  line-height: 1.5;
}
.sf-hl.xl { font-size: 30px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; }
.sf-hl.lg { font-size: 22px; font-weight: 700; line-height: 1.5; }
.sf-hl.md { font-size: 18px; font-weight: 700; line-height: 1.5; }
.sf-hl.sm { font-size: 14px; font-weight: 700; line-height: 1.5; font-family: var(--hl-font), Georgia, serif; }

.sf-deck {
  font-family: 'Merriweather', 'Merriweather fallback', serif;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.6;
}

.sf-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  color: #999;
}

.sf-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-lo);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   5a. UTILITY BAR (sticky top)
   ═══════════════════════════════════════════ */

.sf-utility-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: 36px;
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
}

.sf-utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  height: 100%;
}

.sf-utility-date {
  color: var(--text-mid);
  white-space: nowrap;
}

.sf-utility-editions {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-mid);
}

.sf-utility-editions a {
  color: var(--text-mid);
  text-decoration: none;
}
.sf-utility-editions a:hover { color: var(--text-hi); }
.sf-utility-editions a.active { font-weight: 700; color: var(--text-hi); }
.sf-utility-editions a.featured { color: var(--accent); font-weight: 700; }

.sf-utility-sep { color: var(--border); }

.sf-utility-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-subscribe-btn {
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
}
.sf-subscribe-btn span {
  font-size: 10px;
}


/* ═══════════════════════════════════════════
   5b. HEADER / NAVIGATION
   ═══════════════════════════════════════════ */

.sf-header {
  background: var(--bg);
  border-bottom: none;
  margin: 0;
}

/* Marquee sticky below utility bar on all pages */
.sf-trending {
  position: sticky;
  top: 36px;
  z-index: 999;
  background: var(--bg);
  border-top: none;
  border-bottom: 1px solid var(--border);
}

/* Reading bar sticky just below marquee (~36px utility + ~36px marquee) */
.sf-reading-bar {
  position: sticky;
  top: 72px;
  z-index: 998;
}

.sf-trending-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* SF logo mark shown in utility bar on single posts only */
.sf-utility-logo {
  display: none;
  align-items: center;
  gap: 2px;
  margin-right: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.single.sf-header-hidden .sf-utility-logo { display: flex; }
.sf-utility-logo .sf-logo-s,
.sf-utility-logo .sf-logo-f {
  width: 18px;
  height: 22px;
  font-size: 11px;
}

.sf-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Row 2a: SF blocks LEFT | wordmark CENTERED (absolute) | search RIGHT */
.sf-nav-top {
  display: flex;
  align-items: center;
  padding: 18px 24px 5px;
  position: relative;
}

/* SF letter blocks — left anchor */
.sf-logo-mark {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

/* kept for legacy / custom-logo path */
.sf-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.sf-logo-s, .sf-logo-f {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  font-family: 'Roboto', 'Roboto fallback', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
}
.sf-logo-s { background: #9B1B30; color: #FFFFFF; }
.sf-logo-f { background: #C8102E; color: #FFFFFF; }

/* Wordmark absolutely centered in the logo row */
.sf-wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--hl-font), Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  white-space: nowrap;
  text-decoration: none;
}

.sf-nav-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.sf-search-label {
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  color: var(--text-mid);
}

.sf-search-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-mid);
  transition: color 0.15s;
}
.sf-search-btn:hover { background: transparent; color: var(--text-hi); }

/* Row 2b: Category Navigation (centered) */
.sf-nav-cats-row {
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.sf-nav-categories {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sf-nav-categories::-webkit-scrollbar { display: none; }

.sf-cat {
  font-family: var(--nav-font), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sf-cat:hover { color: var(--text-hi); }
.sf-cat.active {
  color: var(--text-hi);
  font-weight: 700;
  border-bottom-color: var(--text-hi);
}

/* wp_nav_menu outputs <li> elements — style them to match .sf-cat */
.sf-nav-categories li {
  list-style: none;
}
.sf-nav-categories li a {
  display: block;
  font-family: var(--nav-font), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.sf-nav-categories li a:hover { color: var(--text-hi); }
.sf-nav-categories li.current-menu-item > a,
.sf-nav-categories li.current-menu-ancestor > a,
.sf-nav-categories li.current-category-ancestor > a {
  color: var(--text-hi);
  font-weight: 700;
  border-bottom-color: var(--text-hi);
}

.sf-pill {
  height: 28px;
  border-radius: 14px;
  background: var(--border);
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.sf-subscribe-icon { display: none; }
.sf-pill span {
  font-family: var(--body-font), sans-serif;
  font-size: 13px;
  color: var(--text-mid);
}

.sf-pill.accent {
  background: #C8102E;
  border-radius: 2px;
}
.sf-pill.accent span {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
}

/* Header share icons (replaces subscribe on single posts when scrolling up) */
.sf-header-share {
  display: none;
  align-items: center;
  gap: 5px;
  animation: sf-share-in 0.2s ease;
}
@keyframes sf-share-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sf-header-share-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sf-header-share-btn:hover {
  border-color: var(--text-mid);
  color: var(--text-hi);
}
.sf-header-share-btn.sf-hs-cp .sf-icon-check { display: none; }
.sf-header-share-btn.sf-hs-cp.sf-copied .sf-icon-copy { display: none; }
.sf-header-share-btn.sf-hs-cp.sf-copied .sf-icon-check { display: block !important; }
/* Desktop: hide mobile-only button; Mobile: hide desktop-only buttons */
.sf-hs-mobile { display: none; }
@media (max-width: 768px) {
  .sf-hs-desktop { display: none !important; }
  .sf-hs-mobile  { display: inline-flex; }
}

.sf-theme-toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-mid);
  transition: color 0.15s;
}
.sf-theme-toggle:hover { color: var(--text-hi); }

/* Search overlay */
/* ── Subscribe Modal ── */
.sf-subscribe-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sf-subscribe-modal.active { display: flex; }

.sf-subscribe-modal-box {
  position: relative;
  background: var(--bg);
  border-radius: 6px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}

.sf-subscribe-modal-box .sib-form {
  background: transparent !important;
  padding: 0 !important;
}

.sf-subscribe-modal-box #sib-container {
  max-width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 32px 32px 24px !important;
}

.sf-subscribe-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-mid);
  z-index: 1;
  line-height: 1;
  padding: 4px 6px;
}
.sf-subscribe-modal-close:hover { color: var(--text-hi); }

/* ── Search Overlay ── */
.sf-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.sf-search-overlay.active { display: flex; }
.sf-search-form {
  background: var(--bg);
  padding: 20px;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  display: flex;
  gap: 8px;
}
.sf-search-form input[type="search"],
.sf-search-form button {
  height: 44px;
}
.sf-search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0 12px;
  font-family: var(--body-font), sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text-hi);
  outline: none;
}
.sf-search-form input[type="search"]:focus { border-color: var(--accent); }
.sf-search-form button { border-radius: 2px; }

/* ═══════════════════════════════════════════
   6. TRENDING MARQUEE
   ═══════════════════════════════════════════ */

.sf-trending-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.sf-most-read-label {
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-right: 12px;
  margin-right: 0;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Marquee viewport: clips the scrolling track to the area right of the label */
.sf-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-left: 10px;
}

@keyframes sf-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: sf-marquee 12.5s linear infinite;
  gap: 0;
}
.sf-trending:hover .marquee-track { animation-play-state: paused; }

.marquee-track a {
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  color: var(--text-hi);
  padding: 0 10px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.15s;
}
.marquee-track a:hover { color: var(--accent); }
.marquee-track a:last-child { border-right: none; }

/* ═══════════════════════════════════════════
   7. READING PROGRESS BAR
   ═══════════════════════════════════════════ */

.sf-reading-bar {
  height: 3px;
  background: transparent;
  overflow: hidden;
}
.sf-reading-bar-fill {
  width: 0;
  height: 100%;
  background: #C8102E;
  transition: width 0.1s;
}

/* ═══════════════════════════════════════════
   8. GRIDS
   ═══════════════════════════════════════════ */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

.sf-hero-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 4fr 1.4fr;
  margin-bottom: 24px;
}
.sf-hero-main > div:last-child { padding-top: 10px; }

.sf-hero-2col {
  display: grid;
  gap: 16px;
  grid-template-columns: 3fr 1.2fr;
  margin-bottom: 24px;
}

.sf-series-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.2fr;
  gap: 24px;
}

/* ═══════════════════════════════════════════
   9. CARDS
   ═══════════════════════════════════════════ */

.sf-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
}

.sf-card + .sf-card {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.grid-4 .sf-card,
.grid-3 .sf-card {
  border-top: none;
  padding-top: 0;
}

/* Fixed-height thumbnails in grid cards to match wireframe */
.grid-3 .sf-card .sf-thumb,
.grid-4 .sf-card .sf-thumb {
  height: 140px;
  overflow: hidden;
  display: block;
}
.grid-3 .sf-card .sf-thumb img,
.grid-4 .sf-card .sf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-card-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px;
  align-items: flex-start;
}

.sf-card-row .sf-thumb {
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  width: 160px;
  height: 110px;
}
.sf-card-row .sf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.sf-card img,
.sf-card-row img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

/* ═══════════════════════════════════════════
   10. BADGES
   ═══════════════════════════════════════════ */

.sf-badge {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--accent);
  font-family: var(--body-font), sans-serif;
  text-decoration: none;
}
.sf-badge:hover { color: var(--accent); }

.sf-paywall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  background: #FFF8E0;
  border: 1px solid #D4A800;
  color: #8A6600;
  font-family: var(--body-font), sans-serif;
  font-size: 10px;
}

/* ═══════════════════════════════════════════
   11. SECTION HEADERS
   ═══════════════════════════════════════════ */

.sf-section-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 12px;
}

.sf-section-hdr .sf-hl {
  font-family: var(--body-font), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.sf-section-hdr .see-all {
  margin-left: auto;
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.sf-section-hdr .see-all:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   12. DIVIDERS
   ═══════════════════════════════════════════ */

.sf-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.sf-divider.dashed {
  background: none;
  border-top: 1.5px dashed var(--border-dash);
}

/* ═══════════════════════════════════════════
   13. MOST READ SIDEBAR
   ═══════════════════════════════════════════ */

.sf-most-read { display: flex; flex-direction: column; gap: 12px; }

.sf-rank-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sf-rank-item a { color: var(--text-hi); text-decoration: none; }
.sf-rank-item a:hover { color: var(--accent); }

.sf-rank-num {
  font-family: var(--hl-font), Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #E0E0E0;
  line-height: 1.6;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* ═══════════════════════════════════════════
   14. FULLBLEED SECTION
   ═══════════════════════════════════════════ */

.sf-fullbleed {
  background: var(--section-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  margin: 24px 0;
}

.sf-fullbleed .sf-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

/* ═══════════════════════════════════════════
   15. NEWSLETTER
   ═══════════════════════════════════════════ */

.sf-newsletter {
  background: var(--bg3);
  border: 1.5px dashed var(--border-dash);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
}
.sf-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.sf-newsletter-form input[type="email"] {
  flex: 1;
  height: 36px;
  border: 1.5px dashed var(--border-dash);
  border-radius: 4px;
  padding: 0 10px;
  font-family: var(--body-font), sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--text-hi);
  outline: none;
}

/* ═══════════════════════════════════════════
   16. ARTICLE BODY
   ═══════════════════════════════════════════ */

.sf-article-body {
  font-family: 'Merriweather', 'Merriweather fallback', serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-hi);
  font-variant-numeric: lining-nums proportional-nums;
}

.sf-article-body p { margin-bottom: 16px; line-height: 1.6; }

/* Drop cap: first letter of the opening lede (first <p> > <em>) */
.sf-article-body > p:first-child > em:first-child::first-letter,
.sf-article-body > p:first-of-type::first-letter {
  font-family: var(--hl-font), Georgia, serif;
  font-size: 4.2em;
  font-weight: 700;
  font-style: normal;
  line-height: 0.8;
  float: left;
  margin: 4px 8px -4px 0;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}

.sf-article-body h2,
.sf-article-body h3,
.sf-article-body h4 {
  font-family: 'Merriweather', 'Merriweather fallback', serif;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text-hi);
}

.sf-article-body h2 { font-size: 19px; }
.sf-article-body h3 { font-size: 16px; }
.sf-article-body h4 { font-size: 14px; }

/* When a heading follows a paragraph, the para's margin-bottom already provides spacing — cancel the heading's top margin to avoid double gap */
.sf-article-body p + h2,
.sf-article-body p + h3,
.sf-article-body p + h4 { margin-top: 6px; }

.sf-article-body img {
  border-radius: 4px;
  margin: 16px 0;
}

.sf-article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.sf-article-body a:hover { color: var(--accent-cta); }

.sf-article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg2);
  font-style: italic;
  color: var(--text-mid);
}

.sf-article-body ul,
.sf-article-body ol {
  margin: 12px 0;
  padding-left: 24px;
}
.sf-article-body ul { list-style: disc; }
.sf-article-body ol { list-style: decimal; }
.sf-article-body li { margin-bottom: 6px; }

.sf-article-body pre,
.sf-article-body code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 14px;
}
.sf-article-body pre {
  background: var(--bg2);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
}

/* ═══════════════════════════════════════════
   17. ARTICLE SUMMARY BLOCK
   ═══════════════════════════════════════════ */

.sf-summary {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin-bottom: 16px;
  background: var(--bg2);
}
.sf-summary p {
  font-family: var(--body-font), sans-serif;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* ═══════════════════════════════════════════
   18. SHARE BUTTONS
   ═══════════════════════════════════════════ */

/* Share block — desktop: toggle hidden, buttons always inline */
.sf-post-meta-wrap { display: block; }
.sf-share { display: flex; align-items: center; gap: 8px; }
.sf-share-toggle { display: none; }

.sf-share-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sf-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sf-share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Copy button toggle */
.sf-copy-btn .sf-icon-check { display: none; }
.sf-copy-btn.sf-copied .sf-icon-copy { display: none; }
.sf-copy-btn.sf-copied .sf-icon-check { display: block; }

/* ═══════════════════════════════════════════
   19. TAGS
   ═══════════════════════════════════════════ */

.sf-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.sf-tag {
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: 0;
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  transition: all 0.15s;
}
.sf-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════
   20. CATEGORY / TAG HEADER
   ═══════════════════════════════════════════ */

.sf-archive-header {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.sf-archive-header .sf-label {
  font-family: var(--body-font), sans-serif;
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.sf-archive-header .sf-deck {
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   21. SUBTABS
   ═══════════════════════════════════════════ */

.sf-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sf-subtab {
  padding: 8px 16px;
  font-family: var(--body-font), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}
.sf-subtab:hover { color: var(--text-hi); }
.sf-subtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════
   22. AVATAR
   ═══════════════════════════════════════════ */

.sf-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--img-bg);
  display: inline-block !important;
}
.sf-avatar.lg { width: 56px !important; height: 56px !important; }
.sf-avatar.xl { width: 80px !important; height: 80px !important; }

/* ═══════════════════════════════════════════
   23. LATEST STREAM
   ═══════════════════════════════════════════ */

.sf-latest-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sf-latest-item:last-child { border-bottom: none; }

.sf-latest-item .sf-meta { margin-bottom: 4px; }

.sf-latest-cat {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   24. SORT BAR
   ═══════════════════════════════════════════ */

.sf-sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--body-font), sans-serif;
  font-size: 13px;
  color: var(--text-mid);
}

/* ═══════════════════════════════════════════
   25. PAGINATION / LOAD MORE
   ═══════════════════════════════════════════ */

.sf-pagination {
  text-align: center;
  padding: 20px 0;
}

.sf-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--body-font), sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
}
.sf-load-more:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════
   26. AUTHOR BIO
   ═══════════════════════════════════════════ */

/* Desktop: single post meta row (same as before, flex row) */
.sf-post-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sf-post-author-name {
  font-family: var(--body-font), sans-serif;
  font-size: 15px;
  color: var(--text-hi);
  text-decoration: none;
  font-weight: 600;
  display: block;
}
.sf-post-author-bio {
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  color: var(--text-mid);
}
.sf-post-author-info { display: block; }
.sf-post-datetime { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sf-post-datetime-inline { display: none; }
/* WA and Reddit shown on all screens */
/* Author more link — hidden on desktop, shown on mobile */
.sf-author-more-link { display: none; }
/* Author row1 — on desktop just flows as part of .sf-author-card flex */
.sf-author-row1 { display: contents; }
.sf-author-identity { display: contents; }
/* AI byline — hidden on desktop, shown on mobile */
.sf-ai-byline { display: none; }
/* AI center meta — on desktop show read time only */
.sf-ai-center-meta .sf-ai-author { display: none; }
.sf-ai-center-meta .sf-ai-date   { display: none; }
/* Guide date — visible on desktop too (pushes to right via margin-left:auto) */
.sf-guide-date { display: block; }

.sf-author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.sf-author-info { flex: 1; }
.sf-author-name {
  font-family: var(--body-font), sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-hi);
}
.sf-author-title {
  font-family: var(--body-font), sans-serif;
  font-size: 13px;
  color: var(--text-mid);
}
.sf-author-desc {
  font-family: var(--body-font), sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  margin-top: 8px;
  line-height: 1.6;
}

/* Author archive header */
.sf-author-header {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 32px;
  background: #8D0D20;
  color: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.sf-author-header .sf-avatar { margin: 0 auto 16px; border-radius: 50%; }
.sf-author-header .sf-hl { margin-bottom: 8px; color: #fff; }
.sf-author-header .sf-deck { color: rgba(255,255,255,0.85); }
.sf-author-header .sf-badge { border-color: rgba(255,255,255,0.4); color: #fff; }
.sf-author-header .sf-badge:hover { border-color: #fff; color: #fff; }
.theme-sf-dark .sf-author-header { background: #6E0A18; }

/* ═══════════════════════════════════════════
   27. FOOTER
   ═══════════════════════════════════════════ */

.sf-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 40px;
  text-align: center;
}
.sf-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.sf-footer-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}
.sf-footer-menu a {
  font-family: var(--body-font), sans-serif;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.sf-footer-menu a:hover { color: var(--text-hi); }

.sf-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sf-footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
}
.sf-footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.sf-footer-copy {
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  color: var(--text-lo);
}

/* ═══════════════════════════════════════════
   28. 404 PAGE
   ═══════════════════════════════════════════ */

.sf-404 {
  text-align: center;
  padding: 80px 20px;
}
.sf-404 .sf-hl { margin-bottom: 16px; }
.sf-404 .sf-deck { margin-bottom: 32px; }
.sf-404-search {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}
.sf-404-search input[type="search"] {
  flex: 1;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0 12px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text-hi);
  outline: none;
}

/* ═══════════════════════════════════════════
   29. BREADCRUMBS
   ═══════════════════════════════════════════ */

.sf-post-kicker {
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}

.sf-post-kicker a {
  color: var(--accent);
  text-decoration: none;
}
.sf-post-kicker a:hover { color: var(--accent-cta); }

.sf-kicker-sep {
  color: var(--text-lo);
  margin: 0 4px;
}

.sf-post-title {
  font-size: 21px;
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 12px;
}

.sf-summary-cats a {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.sf-summary-cats a:hover { color: var(--accent-cta); }

.sf-kicker-sep { color: var(--text-lo); }

.sf-summary-divider {
  color: var(--text-lo);
  font-style: normal;
}

/* ═══════════════════════════════════════════
   29b. SINGLE POST HERO
   ═══════════════════════════════════════════ */

/* Break out of sf-site's max-width/padding */
.sf-post-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #8D0D20;
  min-height: 50vh;
  display: flex;
  align-items: stretch;
  margin-bottom: 32px;
}

.sf-post-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 44%;
  gap: 40px;
  align-items: center;
  box-sizing: border-box;
}

/* LEFT column */
.sf-post-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.sf-post-hero-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}
.sf-post-hero-crumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.sf-post-hero-crumb a:hover { color: #fff; }
.sf-crumb-sep { color: rgba(255,255,255,0.4); font-size: 14px; }

.sf-post-hero-title {
  font-family: var(--hl-font), Georgia, serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.sf-post-hero-excerpt {
  font-family: var(--body-font), sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

/* Author + meta row */
.sf-post-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.sf-hero-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
  flex-shrink: 0;
}
.sf-post-hero-meta-text { display: flex; flex-direction: column; gap: 2px; }
.sf-post-hero-author {
  font-family: var(--body-font), sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.sf-post-hero-author:hover { color: rgba(255,255,255,0.8); }
.sf-post-hero-stats {
  font-family: var(--body-font), sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 5px;
}
.sf-hero-dot { color: rgba(255,255,255,0.35); }

/* Share icons in hero */
.sf-hero-share {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
/* Mobile share toggle — hidden on desktop */
.sf-hero-share-toggle { display: none; margin-left: auto; }
.sf-hero-share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sf-hero-share-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
/* Copy button icon toggle */
.sf-hero-share-btn.sf-copy-btn .sf-icon-check { display: none; }
.sf-hero-share-btn.sf-copy-btn.sf-copied .sf-icon-copy { display: none; }
.sf-hero-share-btn.sf-copy-btn.sf-copied .sf-icon-check { display: block; }

/* RIGHT column: featured image */
.sf-post-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.sf-post-hero-img {
  width: 100%;
  height: auto;
  object-fit: unset;
  border-radius: 8px;
  box-shadow: none;
  display: block;
}
.sf-post-hero-caption {
  font-family: var(--body-font), sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-align: center;
}

/* Dark mode hero: slightly deeper teal */
.theme-sf-dark .sf-post-hero { background: #6E0A18; }

/* ═══════════════════════════════════════════
   30. WIDGET STYLES
   ═══════════════════════════════════════════ */

.sf-widget {
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   31. MOBILE MENU
   ═══════════════════════════════════════════ */

.sf-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.sf-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   32. LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */

.theme-sf .sf-header { background: #FFFFFF; }
.theme-sf .sf-utility-bar { background: #FAFAFA; }

.theme-sf .sf-trending { background: #FFFFFF; border-top: none; }
.theme-sf .sf-most-read-label { background: #FFFFFF; }

/* ═══════════════════════════════════════════
   33. DARK THEME OVERRIDES
   ═══════════════════════════════════════════ */

.theme-sf-dark .sf-deck { color: #909090; }

.theme-sf-dark .sf-meta { color: #666; }

.theme-sf-dark .sf-cat { color: var(--accent); }
.theme-sf-dark .sf-cat.active { color: #fff; border-bottom-color: #fff; }
.theme-sf-dark .sf-nav-categories li a { color: var(--accent); }
.theme-sf-dark .sf-nav-categories li.current-menu-item > a,
.theme-sf-dark .sf-nav-categories li.current-menu-ancestor > a { color: #E8E8E8; border-bottom-color: #E8E8E8; }

.theme-sf-dark .sf-pill.accent { background: #E8294A; }

.theme-sf-dark .sf-header { background: #0D0D0D; }
.theme-sf-dark .sf-utility-bar { background: #0D0D0D; }

.theme-sf-dark .sf-trending { background: #0D0D0D; border-top: none; }
.theme-sf-dark .sf-most-read-label { background: #0D0D0D; }

.theme-sf-dark .sf-rank-num { color: #2A2A2A; }

.theme-sf-dark .sf-fullbleed { background: #161616; border-top-color: var(--border); }
.theme-sf-dark .sf-newsletter { background: #161616; border-color: var(--border); }

.theme-sf-dark .sf-paywall { background: #2A2200; border-color: #554400; color: #FFB020; }

.theme-sf-dark .sf-tag { color: #909090; border-color: var(--border); }

.theme-sf-dark .sf-share-btn { border-color: var(--border); }

.theme-sf-dark .sf-reading-bar { background: transparent; }

.theme-sf-dark .sf-subtab { color: #777; }
.theme-sf-dark .sf-subtab.active { color: #E8294A; border-bottom-color: #E8294A; }

.theme-sf-dark .sf-section-hdr .sf-hl { color: #777; }
.theme-sf-dark .sf-section-hdr .see-all { color: #E8294A; }

.theme-sf-dark .sf-badge { color: #E8294A; }

.theme-sf-dark .sf-article-body blockquote { background: #161616; }

/* ═══════════════════════════════════════════
   34. RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar { grid-template-columns: 1fr; }
  .sf-hero-grid { grid-template-columns: 1fr; }
  .sf-hero-2col { grid-template-columns: 1fr; }
  .sf-series-grid { grid-template-columns: 1fr; }
  .sf-fullbleed .sf-hero { grid-template-columns: 1fr; }
  /* Hero: image column shrinks on tablet */
  .sf-post-hero-inner { grid-template-columns: 1fr 40%; gap: 24px; padding: 28px 20px; }

  /* Show mobile toggle, hide desktop nav items */
  .sf-mobile-toggle { display: flex; }
  .sf-nav-categories { display: none; }
  .sf-nav-categories.open { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding: 8px 20px; }
}

/* ═══════════════════════════════════════════
   35. RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .sf-hero-grid { grid-template-columns: 1fr !important; }
  .sf-hero-2col { grid-template-columns: 1fr; }
  .sf-series-grid { grid-template-columns: 1fr; }

  /* Images float inline with text on mobile to reduce blank space */
  .sf-article-body img {
    float: left;
    width: 44%;
    margin: 2px 14px 8px 0;
  }
  .sf-article-body figure { overflow: hidden; }

  .sf-site { padding: 0 16px 60px; }

  .sf-hl.xl { font-size: 24px !important; }
  .sf-hl.lg { font-size: 20px !important; }

  .sf-nav-top { padding: 10px 16px; }
  .sf-subtabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .sf-footer-menu { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }

  .sf-card-row { flex-direction: column !important; }
  .sf-card-row .sf-thumb { width: 100% !important; height: auto !important; }

  .sf-newsletter-form { flex-direction: column; }
}

/* ═══════════════════════════════════════════
   36. RESPONSIVE — SMALL MOBILE (≤480px)
   ═══════════════════════════════════════════ */

@media (max-width: 480px) {
  .sf-site { padding: 0 12px 40px; }
  .sf-utility-bar { font-size: 10px; }
  .sf-utility-inner { padding: 0 12px; }
  .sf-utility-editions { gap: 8px; font-size: 10px; }
  .sf-hl.xl { font-size: 20px !important; }
  .sf-hl.lg { font-size: 18px !important; }
  .sf-pill { height: 24px; }
  .sf-pill span { font-size: 11px; }
}

/* ═══════════════════════════════════════════
   37. MOBILE RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Single post hero: stack vertically on mobile ── */
  .sf-post-hero { min-height: unset; margin-bottom: 20px; }
  .sf-post-hero-inner {
    grid-template-columns: 1fr;
    padding: 16px 16px;
    gap: 14px;
  }
  /* Image comes first on mobile */
  .sf-post-hero-right { order: -1; }
  .sf-post-hero-img { height: auto; border-radius: 8px; }
  .sf-post-hero-title { font-size: clamp(20px, 5.5vw, 28px); }
  .sf-post-hero-excerpt { font-size: 13px; }
  .sf-post-hero-meta { gap: 8px; flex-wrap: nowrap; }

  /* Mobile share: hide always-visible icons, use toggle button instead */
  .sf-hero-share { display: none; }
  .sf-hero-share-toggle { display: flex; }

  /* When open: show icons, hide stats */
  .sf-hero-meta-open .sf-hero-share { display: flex; margin-left: auto; gap: 6px; flex-wrap: nowrap; }
  .sf-hero-meta-open .sf-post-hero-stats { display: none; }
  .sf-hero-meta-open .sf-hero-share-toggle { display: none; }

  /* ── Header UI ── */
  .sf-wordmark { font-size: 18px !important; }
  .sf-search-label { display: none; }
  .sf-search-btn { width: 22px; height: 22px; font-size: 18px; }
  .sf-mobile-toggle span { width: 16px; }
  .sf-mobile-toggle { gap: 3px; }
  .sf-subscribe-icon { display: inline; }
  .sf-subscribe-text { display: none; }
  .sf-utility-editions a.active { font-size: 0; }
  .sf-utility-editions a.active::after { content: 'GLOBAL'; font-size: 11px; font-weight: 700; color: var(--text-hi); }
  .sf-utility-editions a.featured { font-size: 0; }
  .sf-utility-editions a.featured::after { content: 'Featured'; font-size: 11px; font-weight: 700; color: var(--accent); }
  .sf-subscribe-btn { padding: 0 8px; height: 22px; }

  /* ── Hero section (section 1):
        equal gap above badge row (spacing from MOST READ above)
        order: badge+featured → title → image → deck+meta ── */
  .sf-hero-grid { margin-top: 10px; }
  .sf-hero-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .sf-hero-main > div:first-child { order: 1; padding: 6px 0 0 !important; }
  .sf-hero-main > div:last-child  { order: 2; }
  .sf-hero-main > div:last-child a,
  .sf-hero-main > div:last-child img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }
  /* Hero sub-row (4 small posts): single column */
  .sf-hero-grid > div:first-child > div:nth-child(3) {
    grid-template-columns: 1fr !important;
  }
  /* Hero right sidebar (Most Read + newsletter): hide on mobile */
  .sf-hero-grid > div:last-child { display: none; }

  /* ── News section (grid-4) and other grid-3 cards:
        order: badge → title → full-width image → meta ── */
  .grid-4 .sf-card,
  .grid-3 .sf-card {
    display: flex !important;
    flex-direction: column !important;
    border-top: 1px solid var(--border) !important;
    padding-top: 12px !important;
    gap: 6px !important;
    overflow: visible !important;
    float: none !important;
  }
  .grid-4 .sf-card .sf-badge,
  .grid-3 .sf-card .sf-badge { order: 1; }
  .grid-4 .sf-card .sf-hl,
  .grid-3 .sf-card .sf-hl   { order: 2; }
  .grid-4 .sf-card .sf-thumb,
  .grid-3 .sf-card .sf-thumb {
    order: 3;
    width: 100% !important;
    height: 180px !important;
    float: none !important;
    margin: 0 !important;
    border-radius: 4px;
    overflow: hidden;
  }
  .grid-4 .sf-card .sf-thumb img,
  .grid-3 .sf-card .sf-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .grid-4 .sf-card .sf-meta,
  .grid-3 .sf-card .sf-meta { order: 4; }

  /* ── Guides fullbleed: badge+title → full-width image → desc → author+date single line ── */
  .sf-fullbleed .sf-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: unset !important;
  }
  .sf-fullbleed .sf-hero > div:first-child { order: 1; }
  .sf-fullbleed .sf-hero > a { order: 2; }
  .sf-fullbleed .sf-hero > a img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }
  /* Author row: avatar + name+readtime on left, date pushed right */
  .sf-guide-meta {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .sf-guide-date { display: block; }

  /* ── AI section: hide category badge, show author+date byline ── */
  .sf-series-grid .sf-badge { display: none !important; }
  .sf-ai-byline {
    display: flex !important;
    justify-content: space-between !important;
    font-family: var(--body-font), sans-serif;
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 2px;
  }
  /* Center column: hide read time, show author+date */
  .sf-ai-center-meta .sf-ai-readtime { display: none !important; }
  .sf-ai-center-meta .sf-ai-author { display: inline !important; }
  .sf-ai-center-meta .sf-ai-date   { display: inline !important; }
  /* Descriptions: clamp to ~2 lines (half of desktop) */
  .sf-series-grid .sf-ai-deck {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* ── Crypto & Blockchain (content-card-row):
        image LEFT (40%) floated, title+meta wrap right,
        deck clears float to span full width below.
        Key: > div must NOT be a BFC (no overflow:hidden) so .sf-deck
        in the same BFC as the float can clear it. ── */
  .sf-card-row {
    display: block !important;
    overflow: hidden !important;
    flex-direction: unset !important;
  }
  .sf-card-row .sf-thumb {
    float: left !important;
    width: 40% !important;
    height: 90px !important;
    margin: 0 12px 4px 0 !important;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: unset !important;
  }
  .sf-card-row .sf-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }
  /* overflow:visible keeps this div out of its own BFC so .sf-deck
     (inside here) can clear the sibling float .sf-thumb */
  .sf-card-row > div {
    display: block !important;
    overflow: visible !important;
    flex: none !important;
  }
  /* Deck clears the float → drops to full-width row below image+title */
  .sf-card-row .sf-deck {
    clear: both !important;
    display: block !important;
    margin-top: 6px !important;
    width: 100% !important;
    /* Clamp to 2 lines (~half of desktop) */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* ── Series grid (AI section) ── */
  .sf-series-grid img { height: auto !important; max-height: 160px; }

  /* ── Single post: author meta row ── */
  .sf-post-meta-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 12px 0 !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 12px !important;
  }
  /* Hide desktop avatar and bio, show compact author info */
  .sf-post-author-avatar { display: none !important; }
  .sf-post-author-bio    { display: none !important; }
  .sf-post-datetime      { display: none !important; }
  .sf-post-datetime-inline {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: var(--body-font), sans-serif;
    font-size: 12px;
    color: var(--text-mid);
    margin-top: 2px;
  }
  .sf-post-author-info {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .sf-post-author-name {
    font-family: var(--body-font), sans-serif !important;
    font-size: 14px !important;
    color: var(--text-hi) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
  }
  /* Share: mobile — toggle button visible, icons hidden until tapped, then full-width row below meta */
  .sf-share { margin-left: auto; flex-shrink: 0; gap: 8px; }
  .sf-share-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border: none;
    border-radius: 2px;
    background: #C8102E;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: var(--body-font), sans-serif;
    transition: opacity 0.15s;
  }
  .theme-sf-dark .sf-share-toggle { background: #E8294A; }
  .sf-share-toggle:active { opacity: 0.8; }
  .sf-share-toggle svg { flex-shrink: 0; }
  /* Icons hidden by default on mobile */
  .sf-share-buttons { display: none !important; }
  /* When open: icons appear inline next to the Share button; date/views hidden */
  .sf-post-meta-row--share.sf-share-open .sf-share-buttons {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }
  .sf-post-meta-row--share.sf-share-open .sf-share-buttons::-webkit-scrollbar { display: none; }
  /* Hide date/views when icons are expanded */
  .sf-post-meta-row--share.sf-share-open .sf-post-datetime,
  .sf-post-meta-row--share.sf-share-open .sf-post-datetime-inline { display: none !important; }
  .sf-share-btn {
    width: 32px; height: 32px; font-size: 13px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-mid);
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .sf-share-btn:hover,
  .sf-share-btn:active { border-color: var(--accent); color: var(--accent); }

  /* ── Single post: bottom author card → 2 rows on mobile ── */
  .sf-author-card {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .sf-author-row1 {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .sf-author-identity { flex: 1; }
  .sf-author-more-link {
    display: block !important;
    font-family: var(--body-font), sans-serif;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    margin-top: 4px;
  }
  .sf-author-desc {
    width: 100% !important;
    margin-top: 0 !important;
  }

  /* ── Category page: cap hero image height ── */
  .sf-hero-2col .sf-card > a img { height: 200px !important; object-fit: cover !important; }

  /* ── Archive / tag / search header: tighter top margin ── */
  .sf-archive-header { margin-top: 8px; }

  /* ── Author header: tighter spacing ── */
  .sf-author-header { padding: 16px 0 !important; }
  .sf-author-header .sf-avatar { width: 60px !important; height: 60px !important; margin-bottom: 10px; }

  /* ── Sort bar: wrap "showing" count below pills ── */
  .sf-sort-bar { flex-wrap: wrap; gap: 8px; }
  .sf-sort-bar > div:last-child { width: 100%; color: var(--text-mid); font-size: 12px; margin-left: 0; }

  /* ── Author page: content-card-row — apply same float layout ── */
  /* (already covered by .sf-card-row rules above; no extra needed) */

  /* ── Single post: hide sidebar on mobile ── */
  .grid-sidebar > div:last-child { display: none !important; }

}

/* ═══════════════════════════════════════════
   38. HIDE RECAPTCHA BADGE
   ═══════════════════════════════════════════ */

.grecaptcha-badge { visibility: hidden !important; }
