:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #f0fdfa;
  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --warn-ink: #78350f;
  --radius: 12px;
  --max-w: 1040px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 6px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-logo,
.brand svg {
  height: 34px;
  width: auto;
  display: block;
}

.badge-pinned {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent, #0f766e);
  color: #ffffff;
  vertical-align: middle;
  margin-right: 4px;
}

.card--pinned {
  border-color: var(--accent, #0f766e);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .brand-logo,
  .brand svg {
    height: 28px;
  }
}

.brand:hover { text-decoration: none; color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }

.nav-more {
  position: relative;
}

.nav-more > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  padding: 2px 4px;
}

.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { color: var(--accent); }

.nav-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 185px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}

.nav-more-menu a {
  padding: 7px 10px;
  border-radius: 6px;
  display: block;
}

.nav-more-menu a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    max-height: 70vh;
    overflow-y: auto;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 9px 10px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--accent-soft);
    text-decoration: none;
  }

  .nav-more > summary {
    padding: 9px 10px;
  }

  .nav-more-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 4px 12px;
    background: transparent;
  }
}

.site-main {
  padding: 32px 0 64px;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, var(--accent-dark) 100%);
  color: #f8fafc;
  padding: 40px 32px;
  border-radius: 16px;
  margin-bottom: 36px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  max-width: 68ch;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.section-heading {
  font-size: 1.35rem;
  margin: 32px 0 16px;
  letter-spacing: -0.01em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
}

.card h2, .card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 44px);
  max-width: 820px;
  margin: 0 auto;
}

.article-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.ftc-disclosure {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  color: var(--warn-ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.article-body h2 {
  margin: 32px 0 12px;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
}

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.article-body p {
  margin: 0 0 16px;
  font-size: 1.02rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-body li { margin-bottom: 6px; }

.article-body blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

.article-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.article-body code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-body pre code {
  background: transparent;
  padding: 0;
}

.article-body table, .compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.94rem;
  overflow-x: auto;
  display: block;
}

.article-body th, .article-body td, .compare-table th, .compare-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.article-body th, .compare-table th {
  background: #f1f5f9;
  font-weight: 700;
}

.product-card, .affiliate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
  background: #f8fafc;
}

.product-card h4, .affiliate-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.product-card a.cta-btn, .affiliate-card a.cta-btn, .affiliate-cta-btn, .calc-btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.product-card a.cta-btn:hover, .affiliate-card a.cta-btn:hover, .affiliate-cta-btn:hover, .calc-btn:hover {
  background: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.affiliate-compare-wrapper {
  overflow-x: auto;
  margin: 22px 0;
}

.affiliate-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.affiliate-missing-product {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 0.9rem;
}

.calc-widget {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.calc-header h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.calc-header p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.calc-field input, .calc-field select {
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.96rem;
  background: #ffffff;
  color: var(--ink);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid #99f6e4;
  border-radius: 10px;
}

.calc-stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.calc-stat-value {
  display: block;
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-top: 4px;
}

.calc-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.author-box {
  margin-top: 32px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.author-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.author-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.related-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.related-list span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.key-takeaway {
  background: var(--accent-soft);
  border: 1px solid #99f6e4;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 24px;
}

.key-takeaway-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.key-takeaway p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
}

.ai-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  vertical-align: middle;
}

.ai-byline-note {
  margin-left: 4px;
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
}

.author-transparency-note {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.84rem !important;
  color: var(--muted);
}

.faq-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 800;
}

.faq-item[open] summary::before {
  content: "- ";
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sources-box {
  margin-top: 32px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sources-box h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.sources-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.93rem;
}

.sources-list li {
  margin-bottom: 8px;
}

.source-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 6px;
}

.section-hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5eead4;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desk-meta {
  margin-top: 16px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pillar-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.editorial-standards-box {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.editorial-standards-box h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

/* Hero Illustrations & Card Thumbnails */
.article-hero {
  margin: 0 0 26px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fdfbf7;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-thumb-link {
  display: block;
  margin: -20px -20px 6px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid var(--border);
  background: #fdfbf7;
}

.card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.card:hover .card-thumb {
  transform: scale(1.02);
}

.internal-link {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.author-profile-cta {
  margin-top: 10px !important;
  font-weight: 600;
}

/* Editorial Crew Hub & Author Profile Pages */
.founder-spotlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.founder-spotlight h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.founder-spotlight p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.founder-spotlight p:last-child {
  margin-bottom: 0;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.author-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.author-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: #fdfbf7;
}

.author-monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.author-avatar-lg,
.author-monogram-lg {
  width: 88px;
  height: 88px;
  font-size: 1.7rem;
}

.author-role {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.author-bio-lead {
  margin: 10px 0 0;
  font-size: 1rem;
  color: var(--ink);
}

.author-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.specialty-chip,
.trait-chip,
.quirk-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.specialty-chip {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--border);
}

.trait-chip {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.quirk-chip {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fde68a;
}

.author-quirks-preview {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

.author-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}

.human-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  vertical-align: middle;
}

.author-profile-shell {
  max-width: 920px;
}

.author-profile-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.author-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.author-title-row h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.author-traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.author-detail-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.author-detail-card h2,
.author-detail-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--ink);
}

.author-detail-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.author-detail-list li {
  margin-bottom: 6px;
}

.relationships-note {
  margin: 20px 0;
  padding: 16px 18px;
  background: #fdfbf7;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  font-size: 0.95rem;
}

.author-transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.do-box,
.dont-box {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
}

.do-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dont-box {
  background: #fef2f2;
  border-color: #fecaca;
}

.do-box h3,
.dont-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.do-box p,
.dont-box p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink);
}

.author-archive {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.authors-home-section {
  margin-top: 36px;
}

.authors-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

/* 5-Step Editorial Process Timeline */
.process-timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.process-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.editorial-callout {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.editorial-callout h2,
.editorial-callout h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.editorial-callout p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.editorial-callout p:last-child {
  margin-bottom: 0;
}

/* Click-to-Load Privacy-Enhanced YouTube Facade */
.yt-embed {
  margin: 24px 0;
  padding: 0;
}

.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.yt-facade:hover .yt-thumb {
  transform: scale(1.02);
  filter: brightness(0.95);
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.yt-play-btn:hover {
  background: var(--accent);
  transform: scale(1.04);
}

.yt-play-icon {
  font-size: 1rem;
  line-height: 1;
}

.yt-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.yt-caption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* Editorial Press-Kit Image & Attribution */
.hero-credit,
.press-credit {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  font-style: italic;
}

.press-figure {
  margin: 22px 0;
  padding: 0;
}

.press-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* Pagination */
.pagination-nav {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.page-link {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-indicator {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Optional Ad / Sponsor Placement Slot */
.ad-slot {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.ad-slot-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  opacity: 0.8;
}

.badge-pinned {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent, #0f766e);
  color: #ffffff;
  vertical-align: middle;
  margin-right: 4px;
}

.card--pinned {
  border-color: var(--accent, #0f766e);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .hero { padding: 28px 20px; }
  .article-shell { padding: 20px 16px; }
  .founder-spotlight,
  .author-profile-header,
  .process-step {
    flex-direction: column;
    gap: 14px;
  }
}


/* === Theme Preset: dark_tech_homelab (Dark Tech & Homelab) === */
/* Dark Tech & Homelab Theme Preset — Full High-Contrast Dark Surface Coverage */
html[data-theme="dark_tech_homelab"] {
  --bg: #090d16;
  --surface: #111827;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --border: #1f2937;
  --accent-soft: rgba(6, 182, 212, 0.14) !important;
  --warn-bg: #1e1b12;
  --warn-border: #d97706;
  --warn-ink: #fcd34d;
  --radius: 10px;
}

html[data-theme="dark_tech_homelab"] body {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark_tech_homelab"] .site-header {
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2937;
}

html[data-theme="dark_tech_homelab"] .brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

html[data-theme="dark_tech_homelab"] .nav-toggle {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark_tech_homelab"] .nav-more-menu {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark_tech_homelab"] .hero {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 55%),
              linear-gradient(135deg, #0f172a 0%, #090d16 100%);
  border: 1px solid #1e293b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Primary Cards & Containers */
html[data-theme="dark_tech_homelab"] .card,
html[data-theme="dark_tech_homelab"] .article-shell,
html[data-theme="dark_tech_homelab"] .calc-widget,
html[data-theme="dark_tech_homelab"] .author-card,
html[data-theme="dark_tech_homelab"] .founder-spotlight,
html[data-theme="dark_tech_homelab"] .toc-box {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

html[data-theme="dark_tech_homelab"] .card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* Callouts, Quotes, Key Takeaway, Author Box, FAQ, Sources, Related, Product Cards */
html[data-theme="dark_tech_homelab"] .key-takeaway,
html[data-theme="dark_tech_homelab"] .editorial-callout,
html[data-theme="dark_tech_homelab"] .article-body blockquote,
html[data-theme="dark_tech_homelab"] .calc-results {
  background: #0f172a;
  border-color: #334155;
  border-left-color: var(--accent);
  color: #e2e8f0;
}

html[data-theme="dark_tech_homelab"] .key-takeaway p,
html[data-theme="dark_tech_homelab"] .editorial-callout p,
html[data-theme="dark_tech_homelab"] .article-body blockquote p {
  color: #e2e8f0;
}

html[data-theme="dark_tech_homelab"] .key-takeaway-label {
  color: #22d3ee;
}

html[data-theme="dark_tech_homelab"] .author-box,
html[data-theme="dark_tech_homelab"] .author-detail-card,
html[data-theme="dark_tech_homelab"] .author-bio-box,
html[data-theme="dark_tech_homelab"] .relationships-note,
html[data-theme="dark_tech_homelab"] .sources-box,
html[data-theme="dark_tech_homelab"] .sources-section,
html[data-theme="dark_tech_homelab"] .faq-item,
html[data-theme="dark_tech_homelab"] .related-list li,
html[data-theme="dark_tech_homelab"] .product-card,
html[data-theme="dark_tech_homelab"] .affiliate-card,
html[data-theme="dark_tech_homelab"] .process-step,
html[data-theme="dark_tech_homelab"] .ad-slot,
html[data-theme="dark_tech_homelab"] .ai-disclosure-box,
html[data-theme="dark_tech_homelab"] .ftc-disclosure {
  background: #0f172a;
  border-color: #1f2937;
  color: #cbd5e1;
}

html[data-theme="dark_tech_homelab"] .relationships-note strong,
html[data-theme="dark_tech_homelab"] .sources-box h2,
html[data-theme="dark_tech_homelab"] .product-card h4,
html[data-theme="dark_tech_homelab"] .affiliate-card h4 {
  color: #f8fafc;
}

html[data-theme="dark_tech_homelab"] .author-box h3,
html[data-theme="dark_tech_homelab"] .author-detail-card h3,
html[data-theme="dark_tech_homelab"] .sources-section h2,
html[data-theme="dark_tech_homelab"] .faq-item summary,
html[data-theme="dark_tech_homelab"] .process-step h3 {
  color: #f8fafc;
}

html[data-theme="dark_tech_homelab"] .author-transparency-note {
  color: #94a3b8;
  border-top-color: #1f2937;
}

html[data-theme="dark_tech_homelab"] .do-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

html[data-theme="dark_tech_homelab"] .dont-box {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.35);
  color: #ffe4e6;
}

/* Badges, Chips & Image Frames */
html[data-theme="dark_tech_homelab"] .specialty-chip,
html[data-theme="dark_tech_homelab"] .trait-chip,
html[data-theme="dark_tech_homelab"] .quirk-chip,
html[data-theme="dark_tech_homelab"] .ai-badge,
html[data-theme="dark_tech_homelab"] .human-badge {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark_tech_homelab"] .human-badge {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

html[data-theme="dark_tech_homelab"] .quirk-chip {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

html[data-theme="dark_tech_homelab"] .article-hero,
html[data-theme="dark_tech_homelab"] .card-thumb,
html[data-theme="dark_tech_homelab"] .card-thumb-link,
html[data-theme="dark_tech_homelab"] .author-avatar {
  background: #0b1120;
  border-color: #1f2937;
}

html[data-theme="dark_tech_homelab"] .card-kicker,
html[data-theme="dark_tech_homelab"] .badge,
html[data-theme="dark_tech_homelab"] code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark_tech_homelab"] .article-body code,
html[data-theme="dark_tech_homelab"] code,
html[data-theme="dark_tech_homelab"] pre {
  background: #0b1120;
  color: #e2e8f0;
  border: 1px solid #1e293b;
}

html[data-theme="dark_tech_homelab"] table {
  border-color: #1f2937;
}

html[data-theme="dark_tech_homelab"] th,
html[data-theme="dark_tech_homelab"] .article-body th,
html[data-theme="dark_tech_homelab"] .compare-table th {
  background: #0f172a;
  color: #f1f5f9;
  border-color: #1f2937;
}

html[data-theme="dark_tech_homelab"] td {
  background: #111827;
  color: #cbd5e1;
  border-color: #1f2937;
}

html[data-theme="dark_tech_homelab"] input,
html[data-theme="dark_tech_homelab"] select,
html[data-theme="dark_tech_homelab"] .calc-field input,
html[data-theme="dark_tech_homelab"] .calc-field select {
  background: #0b1120;
  color: #f8fafc;
  border-color: #334155;
}

html[data-theme="dark_tech_homelab"] .site-footer {
  background: #0b1120;
  border-top: 1px solid #1f2937;
  color: #94a3b8;
}
