/* Fleet site Light/Dark/Auto — remaps shared tokens; leave ads/iframes alone. */

:root {
  --background: #FAF9F6;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --popover: #FFFFFF;
  --popover-foreground: #111827;
  --primary: #111827;
  --primary-foreground: #FFFFFF;
  --secondary: #F3F2EE;
  --secondary-foreground: #111827;
  --muted: #F3F2EE;
  --muted-foreground: #4B5563;
  --accent: #F3F2EE;
  --accent-foreground: #111827;
  --destructive: #EF4444;
  --destructive-foreground: #FFFFFF;
  --border: #E2E0D8;
  --input: #E2E0D8;
  --ring: #111827;
  --radius: 0.25rem;
  --surface: #FAF9F6;
  --text: #111827;
  --bg: #FAF9F6;
  --line: #E2E0D8;
  --font-serif: "Playfair Display", Georgia, serif;
}

html[data-site-theme="dark"],
html[data-site-theme="dark"] body,
.dark,
body.dark {
  --background: #0E1318;
  --foreground: #F1F5F9;
  --card: #151C24;
  --card-foreground: #F1F5F9;
  --popover: #151C24;
  --popover-foreground: #F1F5F9;
  --primary: #F1F5F9;
  --primary-foreground: #0E1318;
  --secondary: #161E27;
  --secondary-foreground: #F1F5F9;
  --muted: #161E27;
  --muted-foreground: #94A3B8;
  --accent: #161E27;
  --accent-foreground: #F1F5F9;
  --destructive: #7F1D1D;
  --destructive-foreground: #F1F5F9;
  --border: rgba(148, 163, 184, 0.18);
  --input: rgba(148, 163, 184, 0.24);
  --ring: #94A3B8;
  --surface: #0E1318;
  --text: #F1F5F9;
  --bg: #0E1318;
  --line: rgba(148, 163, 184, 0.18);
  background-color: #0E1318;
  color: #F1F5F9;
}

/* Affiliate / Marketplace Archetype Tokens */
html[data-fleet-archetype="affiliate"],
body[data-fleet-archetype="affiliate"] {
  --background: #F8FAFC;
  --foreground: #0F172A;
  --card: #FFFFFF;
  --card-foreground: #0F172A;
  --muted: #F1F5F9;
  --muted-foreground: #475569;
  --border: #E2E8F0;
  --primary: #EA580C;
  --primary-foreground: #FFFFFF;
  --success: #059669;
  --badge-bg: #FFF7ED;
  --badge-text: #C2410C;
  --radius: 0.5rem;
  --surface: #F8FAFC;
  --text: #0F172A;
  --bg: #F8FAFC;
  --line: #E2E8F0;
}

html[data-fleet-archetype="affiliate"][data-site-theme="dark"],
html[data-fleet-archetype="affiliate"].dark,
body[data-fleet-archetype="affiliate"].dark {
  --background: #0B0E14;
  --foreground: #F8FAFC;
  --card: #131822;
  --card-foreground: #F8FAFC;
  --muted: #1C2331;
  --muted-foreground: #94A3B8;
  --border: #293245;
  --primary: #F97316;
  --primary-foreground: #090D16;
  --success: #10B981;
  --badge-bg: rgba(249, 115, 22, 0.16);
  --badge-text: #FB923C;
  --surface: #0B0E14;
  --text: #F8FAFC;
  --bg: #0B0E14;
  --line: #293245;
  background-color: #0B0E14 !important;
  color: #F8FAFC !important;
}

/* Business Archetype Tokens — company/brand sites (slate + blue accent) */
html[data-fleet-archetype="business"],
body[data-fleet-archetype="business"] {
  --background: #FFFFFF;
  --foreground: #0F172A;
  --card: #FFFFFF;
  --card-foreground: #0F172A;
  --popover: #FFFFFF;
  --popover-foreground: #0F172A;
  --muted: #F1F5F9;
  --muted-foreground: #475569;
  --accent: #EFF6FF;
  --accent-foreground: #1E3A8A;
  --border: #E2E8F0;
  --input: #E2E8F0;
  --primary: #1D4ED8;
  --primary-foreground: #FFFFFF;
  --ring: #2563EB;
  --radius: 0.5rem;
  --surface: #FFFFFF;
  --text: #0F172A;
  --bg: #FFFFFF;
  --line: #E2E8F0;
}

html[data-fleet-archetype="business"][data-site-theme="dark"],
html[data-fleet-archetype="business"].dark,
body[data-fleet-archetype="business"].dark {
  --background: #0B1220;
  --foreground: #F1F5F9;
  --card: #111A2B;
  --card-foreground: #F1F5F9;
  --popover: #111A2B;
  --popover-foreground: #F1F5F9;
  --muted: #1E293B;
  --muted-foreground: #94A3B8;
  --accent: #1E293B;
  --accent-foreground: #BFDBFE;
  --border: #22304A;
  --input: #22304A;
  --primary: #60A5FA;
  --primary-foreground: #0B1220;
  --ring: #60A5FA;
  --surface: #0B1220;
  --text: #F1F5F9;
  --bg: #0B1220;
  --line: #22304A;
  background-color: #0B1220 !important;
  color: #F1F5F9 !important;
}

/* Broadsheet Masthead Header (Shared across articles, inner pages, and homepages) */
.site-header {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  background: var(--background) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 1.5rem 0 0 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.site-header .header-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
  padding-bottom: 0 !important;
  width: min(1140px, 92vw) !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
}

/* Centered Masthead Logo */
.site-header .logo,
.site-header .logo span {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif) !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: -0.02em !important;
  color: var(--foreground) !important;
  text-decoration: none !important;
  text-align: center !important;
}
.site-header .logo {
  margin: 0 auto 0.75rem auto !important;
  display: block !important;
}
.site-header .logo:hover {
  opacity: 0.85 !important;
}

/* Navigation Sub-Bar framed by Newspaper Borders */
@media (min-width: 768px) {
  .site-header .site-nav {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 0.6rem 0 !important;
    margin-top: 0.5rem !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 3px double var(--foreground) !important;
    box-sizing: border-box !important;
    position: static !important;
  }
}

.site-header .site-nav a.nav-dropdown-trigger,
.site-header .site-nav > a,
.site-header .site-nav a.nav-quizzes-trigger,
.site-header .site-nav a.nav-games-trigger {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--foreground) !important;
  text-decoration: none !important;
  padding: 0.25rem 0.5rem !important;
  transition: color 0.15s ease !important;
}
.site-header .site-nav a.nav-dropdown-trigger:hover,
.site-header .site-nav > a:hover,
.site-header .site-nav a.nav-quizzes-trigger:hover,
.site-header .site-nav a.nav-games-trigger:hover {
  color: var(--muted-foreground) !important;
}

/* Desktop Header Controls & Subscribe CTA */
@media (min-width: 768px) {
  .site-header .header-nav-group {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    position: static !important;
  }

  .site-header .header-cta-group {
    position: absolute !important;
    right: 0 !important;
    top: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .nav-toggle {
    display: none !important;
  }
}

/* SUBSCRIBE Button Styling */
html:not([data-site-theme="dark"]) .site-header [class*="cta-subscribe"],
html:not([data-site-theme="dark"]) .site-header .site-nav [class*="cta-subscribe"] {
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: 1px solid var(--primary) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius, 2px) !important;
  text-decoration: none !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

[data-site-theme="dark"] .site-header [class*="cta-subscribe"],
[data-site-theme="dark"] .site-header .site-nav [class*="cta-subscribe"] {
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: 1px solid var(--primary) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius, 2px) !important;
  text-decoration: none !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.site-header [class*="cta-subscribe"]:hover {
  opacity: 0.9 !important;
}

/* Nav Dropdown Menus styled to Broadsheet Theme */
.site-header .nav-articles-subnav,
.site-header .nav-quizzes-subnav,
.site-header .nav-games-subnav,
.site-header .nav-resources-subnav,
.site-header .nav-about-subnav {
  background: var(--background) !important;
  background-color: var(--background) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius, 2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  padding: 0.4rem 0 !important;
  min-width: 220px !important;
}

.site-header .nav-articles-subitem {
  color: var(--foreground) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 0.45rem 1rem !important;
  transition: background 0.15s ease !important;
  text-decoration: none !important;
  display: block !important;
}

.site-header .nav-articles-subitem:hover {
  background: var(--muted) !important;
  color: var(--foreground) !important;
}

/* Mobile Nav Drawer & Toggle */
@media (max-width: 767px) {
  .site-header .header-inner {
    position: relative !important;
    padding-top: 0.75rem !important;
  }
  .site-header .nav-toggle {
    display: flex !important;
    position: absolute !important;
    right: 1rem !important;
    top: 1rem !important;
    color: var(--foreground) !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    z-index: 20 !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }
  .site-header .nav-toggle-bar {
    background-color: var(--foreground) !important;
  }
  .site-header .site-nav {
    display: none !important;
    position: fixed !important;
    top: var(--fleet-nav-drawer-top, 60px) !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    max-height: calc(100dvh - var(--fleet-nav-drawer-top, 60px) - 1rem) !important;
    overflow-y: auto !important;
    background: var(--background) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
    z-index: 2147483001 !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    white-space: normal !important;
  }
  .site-header.is-nav-open .site-nav,
  html.fleet-nav-open .site-header .site-nav {
    display: flex !important;
  }

  /* On mobile, collapse subnav dropdowns until toggled */
  .site-header .nav-articles-dropdown:not(.is-open) .nav-articles-subnav,
  .site-header .nav-quizzes-dropdown:not(.is-open) .nav-quizzes-subnav,
  .site-header .nav-games-dropdown:not(.is-open) .nav-games-subnav,
  .site-header .nav-resources-dropdown:not(.is-open) .nav-resources-subnav,
  .site-header .nav-about-dropdown:not(.is-open) .nav-about-subnav {
    display: none !important;
  }
  .site-header .nav-articles-dropdown.is-open .nav-articles-subnav,
  .site-header .nav-quizzes-dropdown.is-open .nav-quizzes-subnav,
  .site-header .nav-games-dropdown.is-open .nav-games-subnav,
  .site-header .nav-resources-dropdown.is-open .nav-resources-subnav,
  .site-header .nav-about-dropdown.is-open .nav-about-subnav {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    box-shadow: none !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    padding: 0.5rem !important;
    margin-top: 0.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-height: 240px !important;
    overflow-y: auto !important;
  }

  .site-header .header-cta-group {
    position: static !important;
    margin-top: 1rem !important;
    justify-content: center !important;
    display: flex !important;
  }
}

/* Hide legacy theme switchers / redundant header buttons */
.site-header .nav-quotes-cta,
.site-header .header-cta-login,
.site-header .theme-toggle,
.site-header .btn.btn-outline:not(.header-cta-subscribe) {
  display: none !important;
}

@media (max-width: 767px) {
  .site-header .site-theme-toggle,
  .site-header [data-site-theme-group] {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .site-header .site-theme-toggle,
  .site-header [data-site-theme-group] {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
  }
}

/* Affiliate archetype overrides */
html[data-fleet-archetype="affiliate"] .site-header .nav-quizzes-dropdown,
html[data-fleet-archetype="affiliate"] .site-header .nav-games-dropdown,
html[data-fleet-archetype="affiliate"] .site-header .nav-quotes-cta,
html[data-fleet-archetype="affiliate"] .site-header .header-cta-login {
  display: none !important;
}

/* Body and article typography inheritance */
body,
body.publisher-article,
body.single-post {
  background-color: var(--background) !important;
  color: var(--foreground) !important;
}
.article-main,
.article-body,
.entry-content {
  color: var(--foreground) !important;
}
.post > h1,
article.post > h1,
.article-main h1 {
  color: var(--foreground) !important;
  font-family: var(--font-serif, "Playfair Display", Georgia, serif) !important;
}

html[data-site-theme="dark"],
html[data-site-theme="auto"] {
  color-scheme: light dark;
}

/* Compact header control */
.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.site-theme-toggle[hidden] {
  visibility: hidden;
  display: inline-flex !important;
  opacity: 0;
  pointer-events: none;
}

.site-theme-toggle-btn {
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 1.85rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-theme-toggle-btn:hover,
.site-theme-toggle-btn:focus-visible {
  color: #fff;
  outline: none;
}

.site-theme-toggle-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Resolved-theme pill: DARK/LIGHT show the brand accent, AUTO is never active */
[data-site-theme="dark"] .site-theme-toggle-btn[data-site-theme-set="dark"],
[data-site-theme="light"] .site-theme-toggle-btn[data-site-theme-set="light"] {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

@media (max-width: 720px) {
  .site-theme-toggle-btn {
    min-height: 2rem;
    padding: 0.32rem 0.5rem;
    font-size: 0.7rem;
  }
}

/* ---- Dark token overrides (explicit dark + Auto when OS is dark) ---- */
html[data-site-theme="dark"],
html[data-site-theme="dark"] body {
  --bg: #12171d;
  --bg-soft: #1a222c;
  --surface: #12171d;
  --card: #1c2430;
  --text: #f0ebe3;
  --muted: #a8b0ba;
  --muted-soft: #8f98a3;
  --fleet-dk-text: #f0ebe3;
  --fleet-dk-muted: #a8b0ba;
  --line: rgba(240, 235, 227, 0.12);
  --fd-bg: #12171d;
  --fd-bg-soft: #1a222c;
  --fd-surface: #1c2430;
  --fd-text: #f0ebe3;
  --fd-muted: #a8b0ba;
  --fd-line: rgba(240, 235, 227, 0.12);
  --fd-accent: #f0ebe3;
  --fd-chip: rgba(240, 235, 227, 0.08);
  --fd-chip-hover: rgba(240, 235, 227, 0.14);
  --fd-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --fleet-dk-soft: #1a222c;
  --fleet-dk-line: #3a4555;
  --fleet-dk-link: var(--primary, #9ec9ff);
  --fleet-dk-hover: #222c38;
  --fleet-dk-active: #1e3a5f;
  --fleet-dk-ok-bg: #14352a;
  --fleet-dk-ok-text: #7fd7ab;
  --fleet-dk-bad-bg: #3a1a1a;
  background-color: #12171d;
  color: #f0ebe3;
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"],
  html[data-site-theme="auto"] body {
    --bg: #12171d;
    --bg-soft: #1a222c;
    --surface: #12171d;
    --card: #1c2430;
    --text: #f0ebe3;
    --muted: #a8b0ba;
    --muted-soft: #8f98a3;
    --fleet-dk-text: #f0ebe3;
    --fleet-dk-muted: #a8b0ba;
    --line: rgba(240, 235, 227, 0.12);
    --fd-bg: #12171d;
    --fd-bg-soft: #1a222c;
    --fd-surface: #1c2430;
    --fd-text: #f0ebe3;
    --fd-muted: #a8b0ba;
    --fd-line: rgba(240, 235, 227, 0.12);
    --fd-accent: #f0ebe3;
    --fd-chip: rgba(240, 235, 227, 0.08);
    --fd-chip-hover: rgba(240, 235, 227, 0.14);
    --fd-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --fleet-dk-soft: #1a222c;
    --fleet-dk-line: #3a4555;
    --fleet-dk-link: var(--primary, #9ec9ff);
    --fleet-dk-hover: #222c38;
    --fleet-dk-active: #1e3a5f;
    --fleet-dk-ok-bg: #14352a;
    --fleet-dk-ok-text: #7fd7ab;
    --fleet-dk-bad-bg: #3a1a1a;
    background-color: #12171d;
    color: #f0ebe3;
  }
}

/* Assemble hubs load fleet-home.css (light --surface); remap on category/archive. */
html[data-site-theme="dark"] body.fleet-assemble-hub,
html[data-site-theme="dark"] body.fleet-hub-category,
html[data-site-theme="dark"] body.publisher-archive {
  --surface: #12171d;
  --text: #f0ebe3;
  --muted: #a8b0ba;
  --line: rgba(240, 235, 227, 0.12);
  background-color: #12171d;
  color: #f0ebe3;
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] body.fleet-assemble-hub,
  html[data-site-theme="auto"] body.fleet-hub-category,
  html[data-site-theme="auto"] body.publisher-archive {
    --surface: #12171d;
    --text: #f0ebe3;
    --muted: #a8b0ba;
    --line: rgba(240, 235, 227, 0.12);
    background-color: #12171d;
    color: #f0ebe3;
  }
}

/* Common light-only surfaces → dark cards */
html[data-site-theme="dark"] .promo-strip,
html[data-site-theme="dark"] .post-card,
html[data-site-theme="dark"] .card,
html[data-site-theme="dark"] .topic-card,
html[data-site-theme="dark"] .blog-card,
html[data-site-theme="dark"] .newsletter-box,
html[data-site-theme="dark"] .newsletter-landing-card,
html[data-site-theme="dark"] .process,
html[data-site-theme="dark"] .process-steps > li,
html[data-site-theme="dark"] .program-card,
html[data-site-theme="dark"] .why-card,
html[data-site-theme="dark"] .service-card,
html[data-site-theme="dark"] .quote-panel,
html[data-site-theme="dark"] .our-brands-item,
html[data-site-theme="dark"] .partners-card,
html[data-site-theme="dark"] .site-search-overlay,
html[data-site-theme="dark"] .site-search-panel,
html[data-site-theme="dark"] .latest-card,
html[data-site-theme="dark"] .featured-aside,
html[data-site-theme="dark"] .category-card,
html[data-site-theme="dark"] .fleet-for-you-card {
  background: var(--card, #1c2430) !important;
  color: var(--text, #f0ebe3);
  border-color: var(--line, rgba(240, 235, 227, 0.12));
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .promo-strip,
  html[data-site-theme="auto"] .post-card,
  html[data-site-theme="auto"] .card,
  html[data-site-theme="auto"] .topic-card,
  html[data-site-theme="auto"] .blog-card,
  html[data-site-theme="auto"] .newsletter-box,
  html[data-site-theme="auto"] .newsletter-landing-card,
  html[data-site-theme="auto"] .process,
  html[data-site-theme="auto"] .process-steps > li,
  html[data-site-theme="auto"] .program-card,
  html[data-site-theme="auto"] .why-card,
  html[data-site-theme="auto"] .service-card,
  html[data-site-theme="auto"] .quote-panel,
  html[data-site-theme="auto"] .our-brands-item,
  html[data-site-theme="auto"] .partners-card,
  html[data-site-theme="auto"] .site-search-overlay,
  html[data-site-theme="auto"] .site-search-panel,
  html[data-site-theme="auto"] .latest-card,
  html[data-site-theme="auto"] .featured-aside,
  html[data-site-theme="auto"] .category-card,
  html[data-site-theme="auto"] .fleet-for-you-card {
    background: var(--card, #1c2430) !important;
    color: var(--text, #f0ebe3);
    border-color: var(--line, rgba(240, 235, 227, 0.12));
  }
}

/* Publisher fleet-home.css often ships bare background:#fff on .site-footer
   (static docroot copies lag the j2 var(--card) remap). Override bg + text. */
html[data-site-theme="dark"] .site-footer {
  background: var(--card, #1c2430);
  color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
  border-top-color: var(--line, rgba(240, 235, 227, 0.12));
}

html[data-site-theme="dark"] .site-footer a,
html[data-site-theme="dark"] .site-footer .footer-copyright,
html[data-site-theme="dark"] .site-footer .footer-inner {
  color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
}

html[data-site-theme="dark"] .site-footer a:hover {
  color: var(--accent, #d4b499);
}

html[data-site-theme="dark"] input,
html[data-site-theme="dark"] textarea,
html[data-site-theme="dark"] select {
  background: #1a222c;
  color: var(--text, #f0ebe3);
  border-color: var(--line, rgba(240, 235, 227, 0.18));
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .site-footer {
    background: var(--card, #1c2430);
    color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
    border-top-color: var(--line, rgba(240, 235, 227, 0.12));
  }
  html[data-site-theme="auto"] .site-footer a,
  html[data-site-theme="auto"] .site-footer .footer-copyright,
  html[data-site-theme="auto"] .site-footer .footer-inner {
    color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
  }
  html[data-site-theme="auto"] .site-footer a:hover {
    color: var(--accent, #d4b499);
  }
  html[data-site-theme="auto"] input,
  html[data-site-theme="auto"] textarea,
  html[data-site-theme="auto"] select {
    background: #1a222c;
    color: var(--text, #f0ebe3);
    border-color: var(--line, rgba(240, 235, 227, 0.18));
  }
}

/* Article / blog list surfaces */
html[data-site-theme="dark"] .article-body,
html[data-site-theme="dark"] .post-body,
html[data-site-theme="dark"] .content-main,
html[data-site-theme="dark"] .blog-list,
html[data-site-theme="dark"] .latest-grid article,
html[data-site-theme="dark"] .topic-rail,
html[data-site-theme="dark"] .nav-dropdown-panel,
html[data-site-theme="dark"] .nav-articles-subnav {
  background-color: transparent;
  color: var(--text, #f0ebe3);
}

html[data-site-theme="dark"] .nav-dropdown-panel,
html[data-site-theme="dark"] .nav-articles-subnav {
  background: #1c2430;
  border-color: var(--line, rgba(240, 235, 227, 0.12));
}

html[data-site-theme="dark"] .article-body a,
html[data-site-theme="dark"] .post-body a,
html[data-site-theme="dark"] .fleet-affiliate-box a,
html[data-site-theme="dark"] .fleet-affiliate-box-link,
html[data-site-theme="dark"] .fleet-affiliate-link {
  color: var(--primary, #60a5fa);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-site-theme="dark"] .article-body a:hover,
html[data-site-theme="dark"] .post-body a:hover,
html[data-site-theme="dark"] .fleet-affiliate-box a:hover,
html[data-site-theme="dark"] .fleet-affiliate-box-link:hover,
html[data-site-theme="dark"] .fleet-affiliate-link:hover {
  opacity: 0.85;
}

html[data-site-theme="dark"] .article-body pre,
html[data-site-theme="dark"] .article-body code,
html[data-site-theme="dark"] .post-body pre,
html[data-site-theme="dark"] .post-body code {
  background: #1a222c;
  color: var(--text, #f0ebe3);
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .nav-dropdown-panel,
  html[data-site-theme="auto"] .nav-articles-subnav {
    background: #1c2430;
    border-color: var(--line, rgba(240, 235, 227, 0.12));
  }
  html[data-site-theme="auto"] .article-body a,
  html[data-site-theme="auto"] .post-body a,
  html[data-site-theme="auto"] .fleet-affiliate-box a,
  html[data-site-theme="auto"] .fleet-affiliate-box-link,
  html[data-site-theme="auto"] .fleet-affiliate-link {
    color: var(--primary, #60a5fa);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  html[data-site-theme="auto"] .article-body a:hover,
  html[data-site-theme="auto"] .post-body a:hover,
  html[data-site-theme="auto"] .fleet-affiliate-box a:hover,
  html[data-site-theme="auto"] .fleet-affiliate-box-link:hover,
  html[data-site-theme="auto"] .fleet-affiliate-link:hover {
    opacity: 0.85;
  }
  html[data-site-theme="auto"] .article-body pre,
  html[data-site-theme="auto"] .article-body code,
  html[data-site-theme="auto"] .post-body pre,
  html[data-site-theme="auto"] .post-body code {
    background: #1a222c;
    color: var(--text, #f0ebe3);
  }
}

/* Mobile drawer stays readable on dark header */
@media (max-width: 720px) {
  html[data-site-theme="dark"] .site-header.is-nav-open .site-nav,
  html[data-site-theme="auto"] .site-header.is-nav-open .site-nav {
    background: rgba(15, 20, 25, 0.98);
  }
}

/* Do not restyle ad / consent iframes */
html[data-site-theme="dark"] iframe[id*="google_ads"],
html[data-site-theme="dark"] .adsbygoogle,
html[data-site-theme="auto"] iframe[id*="google_ads"],
html[data-site-theme="auto"] .adsbygoogle {
  background: transparent !important;
}

/* ---- Article TOC (.wp-block-rank-math-toc-block / .fleet-toc / .ferrum-toc) ---- */
.wp-block-rank-math-toc-block,
.fleet-toc,
.ferrum-toc {
  background: var(--card, #f9f9f9);
  border: 1px solid var(--line, #e0e0e0);
  border-radius: 8px;
  padding: 0;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
}

.wp-block-rank-math-toc-block h2,
.fleet-toc h2,
.ferrum-toc h2 {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text, #333333);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line, #e0e0e0);
}

.wp-block-rank-math-toc-block h2:after,
.fleet-toc h2:after,
.ferrum-toc h2:after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 5px 0 5px;
  border-color: var(--muted, #666666) transparent transparent transparent;
  transition: transform 0.3s ease;
}

.wp-block-rank-math-toc-block h2.collapsed:after,
.fleet-toc h2.collapsed:after,
.ferrum-toc h2.collapsed:after {
  transform: rotate(-90deg);
}

.wp-block-rank-math-toc-block nav,
.fleet-toc nav,
.ferrum-toc nav {
  padding: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 2500px;
}

.wp-block-rank-math-toc-block nav.collapsed,
.fleet-toc nav.collapsed,
.ferrum-toc nav.collapsed {
  max-height: 0;
}

.wp-block-rank-math-toc-block ul,
.fleet-toc ul,
.ferrum-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-rank-math-toc-block > nav > ul > li,
.fleet-toc > nav > ul > li,
.ferrum-toc > nav > ul > li {
  border-bottom: 1px solid var(--line, #eeeeee);
}

.wp-block-rank-math-toc-block > nav > ul > li:last-child,
.fleet-toc > nav > ul > li:last-child,
.ferrum-toc > nav > ul > li:last-child {
  border-bottom: none;
}

.wp-block-rank-math-toc-block li,
.fleet-toc li,
.ferrum-toc li {
  margin: 0;
  padding: 0;
}

.wp-block-rank-math-toc-block li a,
.fleet-toc li a,
.ferrum-toc li a {
  color: var(--primary, #0066cc);
  text-decoration: none;
  display: block;
  padding: 10px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}

.wp-block-rank-math-toc-block li a:hover,
.fleet-toc li a:hover,
.ferrum-toc li a:hover {
  background: var(--muted, rgba(0, 0, 0, 0.04));
  color: var(--primary, #004499);
  text-decoration: none;
  opacity: 0.95;
}

.wp-block-rank-math-toc-block ul ul li a,
.fleet-toc ul ul li a,
.ferrum-toc ul ul li a,
.wp-block-rank-math-toc-block .fleet-toc__sublist li a,
.fleet-toc .fleet-toc__sublist li a,
.ferrum-toc .fleet-toc__sublist li a {
  padding-left: 36px;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.wp-block-rank-math-toc-block ul ul li a:hover,
.fleet-toc ul ul li a:hover,
.ferrum-toc ul ul li a:hover,
.wp-block-rank-math-toc-block .fleet-toc__sublist li a:hover,
.fleet-toc .fleet-toc__sublist li a:hover,
.ferrum-toc .fleet-toc__sublist li a:hover {
  border-left-color: var(--primary, #0066cc);
}

.wp-block-rank-math-toc-block ul ul ul li a,
.fleet-toc ul ul ul li a,
.ferrum-toc ul ul ul li a {
  padding-left: 54px;
  font-size: 13px;
}

/* Dark Mode */
html[data-site-theme="dark"] .wp-block-rank-math-toc-block,
html[data-site-theme="dark"] .fleet-toc,
html[data-site-theme="dark"] .ferrum-toc,
.dark .wp-block-rank-math-toc-block,
.dark .fleet-toc,
.dark .ferrum-toc,
body.dark .wp-block-rank-math-toc-block,
body.dark .fleet-toc,
body.dark .ferrum-toc,
[data-theme="dark"] .wp-block-rank-math-toc-block,
[data-theme="dark"] .fleet-toc,
[data-theme="dark"] .ferrum-toc {
  background: var(--card, #1c2430);
  border-color: var(--line, rgba(240, 235, 227, 0.12));
  color: var(--text, #f0ebe3);
}

html[data-site-theme="dark"] .wp-block-rank-math-toc-block h2,
html[data-site-theme="dark"] .fleet-toc h2,
html[data-site-theme="dark"] .ferrum-toc h2,
.dark .wp-block-rank-math-toc-block h2,
.dark .fleet-toc h2,
.dark .ferrum-toc h2,
body.dark .wp-block-rank-math-toc-block h2,
body.dark .fleet-toc h2,
body.dark .ferrum-toc h2,
[data-theme="dark"] .wp-block-rank-math-toc-block h2,
[data-theme="dark"] .fleet-toc h2,
[data-theme="dark"] .ferrum-toc h2 {
  background: #242e3b;
  color: var(--text, #f0ebe3);
  border-bottom-color: var(--line, rgba(240, 235, 227, 0.12));
}

html[data-site-theme="dark"] .wp-block-rank-math-toc-block h2:after,
html[data-site-theme="dark"] .fleet-toc h2:after,
html[data-site-theme="dark"] .ferrum-toc h2:after,
.dark .wp-block-rank-math-toc-block h2:after,
.dark .fleet-toc h2:after,
.dark .ferrum-toc h2:after,
body.dark .wp-block-rank-math-toc-block h2:after,
body.dark .fleet-toc h2:after,
body.dark .ferrum-toc h2:after,
[data-theme="dark"] .wp-block-rank-math-toc-block h2:after,
[data-theme="dark"] .fleet-toc h2:after,
[data-theme="dark"] .ferrum-toc h2:after {
  border-color: var(--muted, #a8b0ba) transparent transparent transparent;
}

html[data-site-theme="dark"] .wp-block-rank-math-toc-block > nav > ul > li,
html[data-site-theme="dark"] .fleet-toc > nav > ul > li,
html[data-site-theme="dark"] .ferrum-toc > nav > ul > li,
.dark .wp-block-rank-math-toc-block > nav > ul > li,
.dark .fleet-toc > nav > ul > li,
.dark .ferrum-toc > nav > ul > li,
body.dark .wp-block-rank-math-toc-block > nav > ul > li,
body.dark .fleet-toc > nav > ul > li,
body.dark .ferrum-toc > nav > ul > li,
[data-theme="dark"] .wp-block-rank-math-toc-block > nav > ul > li,
[data-theme="dark"] .fleet-toc > nav > ul > li,
[data-theme="dark"] .ferrum-toc > nav > ul > li {
  border-bottom-color: var(--line, rgba(240, 235, 227, 0.1));
}

html[data-site-theme="dark"] .article-body .wp-block-rank-math-toc-block li a,
html[data-site-theme="dark"] .post-body .wp-block-rank-math-toc-block li a,
html[data-site-theme="dark"] .wp-block-rank-math-toc-block li a,
html[data-site-theme="dark"] .wp-block-rank-math-toc-block li a:visited,
html[data-site-theme="dark"] .fleet-toc li a,
html[data-site-theme="dark"] .fleet-toc li a:visited,
html[data-site-theme="dark"] .ferrum-toc li a,
html[data-site-theme="dark"] .ferrum-toc li a:visited,
.dark .wp-block-rank-math-toc-block li a,
.dark .fleet-toc li a,
.dark .ferrum-toc li a,
body.dark .wp-block-rank-math-toc-block li a,
body.dark .fleet-toc li a,
body.dark .ferrum-toc li a,
[data-theme="dark"] .wp-block-rank-math-toc-block li a,
[data-theme="dark"] .fleet-toc li a,
[data-theme="dark"] .ferrum-toc li a {
  color: var(--primary, #9ec9ff) !important;
}

html[data-site-theme="dark"] .wp-block-rank-math-toc-block li a:hover,
html[data-site-theme="dark"] .fleet-toc li a:hover,
html[data-site-theme="dark"] .ferrum-toc li a:hover,
.dark .wp-block-rank-math-toc-block li a:hover,
.dark .fleet-toc li a:hover,
.dark .ferrum-toc li a:hover,
body.dark .wp-block-rank-math-toc-block li a:hover,
body.dark .fleet-toc li a:hover,
body.dark .ferrum-toc li a:hover,
[data-theme="dark"] .wp-block-rank-math-toc-block li a:hover,
[data-theme="dark"] .fleet-toc li a:hover,
[data-theme="dark"] .ferrum-toc li a:hover {
  background: rgba(240, 235, 227, 0.08);
  color: var(--primary, #c5e0ff) !important;
  opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .wp-block-rank-math-toc-block,
  html[data-site-theme="auto"] .fleet-toc,
  html[data-site-theme="auto"] .ferrum-toc {
    background: var(--card, #1c2430);
    border-color: var(--line, rgba(240, 235, 227, 0.12));
    color: var(--text, #f0ebe3);
  }
  html[data-site-theme="auto"] .wp-block-rank-math-toc-block h2,
  html[data-site-theme="auto"] .fleet-toc h2,
  html[data-site-theme="auto"] .ferrum-toc h2 {
    background: #242e3b;
    color: var(--text, #f0ebe3);
    border-bottom-color: var(--line, rgba(240, 235, 227, 0.12));
  }
  html[data-site-theme="auto"] .wp-block-rank-math-toc-block h2:after,
  html[data-site-theme="auto"] .fleet-toc h2:after,
  html[data-site-theme="auto"] .ferrum-toc h2:after {
    border-color: var(--muted, #a8b0ba) transparent transparent transparent;
  }
  html[data-site-theme="auto"] .wp-block-rank-math-toc-block > nav > ul > li,
  html[data-site-theme="auto"] .fleet-toc > nav > ul > li,
  html[data-site-theme="auto"] .ferrum-toc > nav > ul > li {
    border-bottom-color: var(--line, rgba(240, 235, 227, 0.1));
  }
  html[data-site-theme="auto"] .article-body .wp-block-rank-math-toc-block li a,
  html[data-site-theme="auto"] .post-body .wp-block-rank-math-toc-block li a,
  html[data-site-theme="auto"] .wp-block-rank-math-toc-block li a,
  html[data-site-theme="auto"] .wp-block-rank-math-toc-block li a:visited,
  html[data-site-theme="auto"] .fleet-toc li a,
  html[data-site-theme="auto"] .fleet-toc li a:visited,
  html[data-site-theme="auto"] .ferrum-toc li a,
  html[data-site-theme="auto"] .ferrum-toc li a:visited {
    color: var(--primary, #9ec9ff) !important;
  }
  html[data-site-theme="auto"] .wp-block-rank-math-toc-block li a:hover,
  html[data-site-theme="auto"] .fleet-toc li a:hover,
  html[data-site-theme="auto"] .ferrum-toc li a:hover {
    background: rgba(240, 235, 227, 0.08);
    color: var(--primary, #c5e0ff) !important;
    opacity: 0.9;
  }
}

/* Anchor jump offset so headings clicked from Table of Contents are not obscured by sticky/fixed headers */
article [id],
.article-body [id],
.post-body [id],
.single-post [id] {
  scroll-margin-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---- Autokatteb TL;DR + TOC (inline light boxes; follow Light/Dark/Auto) ---- */
html[data-site-theme="light"] .ak-content,
html[data-site-theme="light"] .ak-content > div,
html[data-site-theme="light"] .ak-content p,
html[data-site-theme="light"] .ak-content ul,
html[data-site-theme="light"] .ak-content li,
html[data-site-theme="auto"] .ak-content,
html[data-site-theme="auto"] .ak-content > div,
html[data-site-theme="auto"] .ak-content p,
html[data-site-theme="auto"] .ak-content ul,
html[data-site-theme="auto"] .ak-content li {
  color: var(--text, #1c2430) !important;
}

html[data-site-theme="light"] .ak-toc,
html[data-site-theme="light"] .ak-toc li,
html[data-site-theme="light"] .ak-toc p,
html[data-site-theme="auto"] .ak-toc,
html[data-site-theme="auto"] .ak-toc li,
html[data-site-theme="auto"] .ak-toc p {
  color: var(--text, #1c2430) !important;
}

html[data-site-theme="light"] .ak-content a,
html[data-site-theme="light"] .ak-toc a,
html[data-site-theme="auto"] .ak-content a,
html[data-site-theme="auto"] .ak-toc a {
  color: #2563eb !important;
}

html[data-site-theme="light"] .ak-content strong,
html[data-site-theme="auto"] .ak-content strong {
  color: #2563eb !important;
}

html[data-site-theme="dark"] .ak-content > div,
html[data-site-theme="dark"] .ak-toc {
  background: var(--card, #1c2430) !important;
  background-color: var(--card, #1c2430) !important;
  border-color: var(--line, rgba(240, 235, 227, 0.12)) !important;
  color: var(--text, #f0ebe3) !important;
}

html[data-site-theme="dark"] .ak-content,
html[data-site-theme="dark"] .ak-content > div,
html[data-site-theme="dark"] .ak-content p,
html[data-site-theme="dark"] .ak-content ul,
html[data-site-theme="dark"] .ak-content li,
html[data-site-theme="dark"] .ak-toc,
html[data-site-theme="dark"] .ak-toc li,
html[data-site-theme="dark"] .ak-toc p {
  color: var(--text, #f0ebe3) !important;
}

html[data-site-theme="dark"] .ak-content a,
html[data-site-theme="dark"] .ak-toc a,
html[data-site-theme="dark"] .ak-content a:visited,
html[data-site-theme="dark"] .ak-toc a:visited {
  color: var(--fleet-dk-link, #9ec9ff) !important;
}

html[data-site-theme="dark"] .ak-content strong {
  color: var(--fleet-dk-link, #9ec9ff) !important;
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .ak-content > div,
  html[data-site-theme="auto"] .ak-toc {
    background: var(--card, #1c2430) !important;
    background-color: var(--card, #1c2430) !important;
    border-color: var(--line, rgba(240, 235, 227, 0.12)) !important;
    color: var(--text, #f0ebe3) !important;
  }
  html[data-site-theme="auto"] .ak-content,
  html[data-site-theme="auto"] .ak-content > div,
  html[data-site-theme="auto"] .ak-content p,
  html[data-site-theme="auto"] .ak-content ul,
  html[data-site-theme="auto"] .ak-content li,
  html[data-site-theme="auto"] .ak-toc,
  html[data-site-theme="auto"] .ak-toc li,
  html[data-site-theme="auto"] .ak-toc p {
    color: var(--text, #f0ebe3) !important;
  }
  html[data-site-theme="auto"] .ak-content a,
  html[data-site-theme="auto"] .ak-toc a,
  html[data-site-theme="auto"] .ak-content a:visited,
  html[data-site-theme="auto"] .ak-toc a:visited {
    color: var(--fleet-dk-link, #9ec9ff) !important;
  }
  html[data-site-theme="auto"] .ak-content strong {
    color: var(--fleet-dk-link, #9ec9ff) !important;
  }
}

/* ---- Related Posts (light source uses CSS vars; dark chrome still here) ---- */
html[data-site-theme="dark"] .fleet-breadcrumbs,
html[data-site-theme="auto"] .fleet-breadcrumbs {
  color: var(--muted, #8b949e);
}
html[data-site-theme="dark"] .fleet-breadcrumbs [aria-current="page"],
html[data-site-theme="auto"] .fleet-breadcrumbs [aria-current="page"] {
  color: var(--foreground, #e8eaed) !important;
}

html[data-site-theme="dark"] .hutts-related-posts {
  background: var(--card, #1c2430) !important;
  color: var(--text, #f0ebe3);
  border: 1px solid var(--line, rgba(240, 235, 227, 0.12));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html[data-site-theme="dark"] .hutts-related-posts h3 {
  color: var(--text, #f0ebe3);
}

html[data-site-theme="dark"] .hutts-related-posts li {
  border-bottom-color: var(--line, rgba(240, 235, 227, 0.1));
}

html[data-site-theme="dark"] .article-body .hutts-related-posts a,
html[data-site-theme="dark"] .post-body .hutts-related-posts a,
html[data-site-theme="dark"] .hutts-related-posts a,
html[data-site-theme="dark"] .hutts-related-posts a:visited {
  color: var(--primary, #9ec9ff) !important;
}

html[data-site-theme="dark"] .hutts-related-posts a:hover {
  color: var(--primary, #c5e0ff) !important;
  opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .hutts-related-posts {
    background: var(--card, #1c2430) !important;
    color: var(--text, #f0ebe3);
    border: 1px solid var(--line, rgba(240, 235, 227, 0.12));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }
  html[data-site-theme="auto"] .hutts-related-posts h3 {
    color: var(--text, #f0ebe3);
  }
  html[data-site-theme="auto"] .hutts-related-posts li {
    border-bottom-color: var(--line, rgba(240, 235, 227, 0.1));
  }
  html[data-site-theme="auto"] .article-body .hutts-related-posts a,
  html[data-site-theme="auto"] .post-body .hutts-related-posts a,
  html[data-site-theme="auto"] .hutts-related-posts a,
  html[data-site-theme="auto"] .hutts-related-posts a:visited {
    color: var(--primary, #9ec9ff) !important;
  }
  html[data-site-theme="auto"] .hutts-related-posts a:hover {
    color: var(--primary, #c5e0ff) !important;
    opacity: 0.9;
  }
}

/* ---- In-article newsletter CTA (hutts-signup-cta.css is light-only) ---- */
html[data-site-theme="dark"] .hutts-signup-cta__inner {
  background: linear-gradient(180deg, #1c2430 0%, #171e28 100%) !important;
  border-color: var(--line, rgba(240, 235, 227, 0.14)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  color: var(--text, #f0ebe3);
}

html[data-site-theme="dark"] .hutts-signup-cta__headline {
  color: var(--text, #f0ebe3) !important;
}

html[data-site-theme="dark"] .hutts-signup-cta__subtext {
  color: var(--muted, #a8b0ba) !important;
}

html[data-site-theme="dark"] .hutts-signup-cta__form label {
  color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
}

html[data-site-theme="dark"] .hutts-signup-cta__form input[type="text"],
html[data-site-theme="dark"] .hutts-signup-cta__form input[type="email"] {
  background: #12171d;
  color: var(--text, #f0ebe3);
  border-color: var(--line, rgba(240, 235, 227, 0.18));
}

html[data-site-theme="dark"] .hutts-signup-cta__form input::placeholder {
  color: #c2c8d0;
  opacity: 1;
}

html[data-site-theme="dark"] .hutts-signup-cta__button,
html[data-site-theme="auto"] .hutts-signup-cta__button {
  background: var(--primary, #2563eb) !important;
  color: var(--primary-foreground, #ffffff) !important;
}
html[data-site-theme="dark"] .hutts-signup-cta__button:hover,
html[data-site-theme="auto"] .hutts-signup-cta__button:hover {
  opacity: 0.9 !important;
}

html[data-site-theme="dark"] .hutts-lm-message--success {
  background: #14352a;
  border-color: #2f8f6a;
  color: #d7f5e8;
}

html[data-site-theme="dark"] .hutts-lm-message--error {
  background: #3a1a1a;
  border-color: #a34b4b;
  color: #f5d7d7;
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .hutts-signup-cta__inner {
    background: linear-gradient(180deg, #1c2430 0%, #171e28 100%) !important;
    border-color: var(--line, rgba(240, 235, 227, 0.14)) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    color: var(--text, #f0ebe3);
  }
  html[data-site-theme="auto"] .hutts-signup-cta__headline {
    color: var(--text, #f0ebe3) !important;
  }
  html[data-site-theme="auto"] .hutts-signup-cta__subtext {
    color: var(--muted, #a8b0ba) !important;
  }
  html[data-site-theme="auto"] .hutts-signup-cta__form label {
    color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
  }
  html[data-site-theme="auto"] .hutts-signup-cta__form input[type="text"],
  html[data-site-theme="auto"] .hutts-signup-cta__form input[type="email"] {
    background: #12171d;
    color: var(--text, #f0ebe3);
    border-color: var(--line, rgba(240, 235, 227, 0.18));
  }
  html[data-site-theme="auto"] .hutts-signup-cta__form input::placeholder {
    color: #c2c8d0;
    opacity: 1;
  }
  html[data-site-theme="auto"] .hutts-lm-message--success {
    background: #14352a;
    border-color: #2f8f6a;
    color: #d7f5e8;
  }
  html[data-site-theme="auto"] .hutts-lm-message--error {
    background: #3a1a1a;
    border-color: #a34b4b;
    color: #f5d7d7;
  }
}

/* ---- In-article Amazon affiliate box (aligned with hutts-signup-cta "Stay in the loop") ---- */
.fleet-affiliate-box {
  position: relative !important;
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%) !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 12px !important;
  padding: 1.5rem 1.75rem !important;
  margin: 2rem 0 !important;
  opacity: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  color: var(--foreground, #111827) !important;
  box-sizing: border-box !important;
}

.fleet-affiliate-box .fleet-affiliate-box-heading,
.fleet-affiliate-box .fleet-affiliate-kicker {
  color: var(--foreground, #111827) !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  margin: 0 0 0.5rem 0 !important;
}

.fleet-affiliate-box .fleet-affiliate-box-lead,
.fleet-affiliate-box .fleet-affiliate-note {
  color: #4b5563 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 0 1.25rem 0 !important;
}

.fleet-affiliate-box ul,
.fleet-affiliate-box .fleet-affiliate-box-list {
  margin: 0.5rem 0 1rem 0 !important;
  padding-left: 1.25rem !important;
}

.fleet-affiliate-box li {
  margin-bottom: 0.5rem !important;
  color: #4b5563 !important;
  line-height: 1.5 !important;
}

.fleet-affiliate-box .fleet-affiliate-box-link,
.article-body .fleet-affiliate-box a,
.post-body .fleet-affiliate-box a,
a.fleet-affiliate-box-link {
  color: var(--primary, #2563eb) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.fleet-affiliate-box .fleet-affiliate-box-link:hover,
.article-body .fleet-affiliate-box a:hover,
.post-body .fleet-affiliate-box a:hover,
a.fleet-affiliate-box-link:hover {
  opacity: 0.85 !important;
}

.fleet-affiliate-box .fleet-affiliate-disclosure {
  color: #6b7280 !important;
  font-size: 0.8rem !important;
  margin: 1rem 0 0 0 !important;
  opacity: 0.85 !important;
}

html[data-site-theme="dark"] .fleet-affiliate-box,
[data-site-theme="dark"] .fleet-affiliate-box,
.dark .fleet-affiliate-box,
body.dark .fleet-affiliate-box,
[data-theme="dark"] .fleet-affiliate-box {
  background: linear-gradient(180deg, #1c2430 0%, #171e28 100%) !important;
  border-color: var(--line, rgba(240, 235, 227, 0.14)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
  color: var(--text, #f0ebe3) !important;
  opacity: 1 !important;
}

html[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-heading,
html[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-kicker,
[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-heading,
[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-kicker,
.dark .fleet-affiliate-box .fleet-affiliate-box-heading,
.dark .fleet-affiliate-box .fleet-affiliate-kicker,
body.dark .fleet-affiliate-box .fleet-affiliate-box-heading,
body.dark .fleet-affiliate-box .fleet-affiliate-kicker,
[data-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-heading,
[data-theme="dark"] .fleet-affiliate-box .fleet-affiliate-kicker {
  color: var(--text, #f0ebe3) !important;
}

html[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-lead,
html[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-note,
[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-lead,
[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-note,
.dark .fleet-affiliate-box .fleet-affiliate-box-lead,
.dark .fleet-affiliate-box .fleet-affiliate-note,
body.dark .fleet-affiliate-box .fleet-affiliate-box-lead,
body.dark .fleet-affiliate-box .fleet-affiliate-note,
[data-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-lead,
[data-theme="dark"] .fleet-affiliate-box .fleet-affiliate-note {
  color: var(--muted, #a8b0ba) !important;
}

html[data-site-theme="dark"] .fleet-affiliate-box li,
[data-site-theme="dark"] .fleet-affiliate-box li,
.dark .fleet-affiliate-box li,
body.dark .fleet-affiliate-box li,
[data-theme="dark"] .fleet-affiliate-box li {
  color: var(--muted, #a8b0ba) !important;
}

html[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-link,
html[data-site-theme="dark"] .article-body .fleet-affiliate-box a,
html[data-site-theme="dark"] .post-body .fleet-affiliate-box a,
html[data-site-theme="dark"] a.fleet-affiliate-box-link,
[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-link,
[data-site-theme="dark"] .article-body .fleet-affiliate-box a,
[data-site-theme="dark"] .post-body .fleet-affiliate-box a,
[data-site-theme="dark"] a.fleet-affiliate-box-link,
.dark .fleet-affiliate-box .fleet-affiliate-box-link,
.dark .article-body .fleet-affiliate-box a,
.dark .post-body .fleet-affiliate-box a,
.dark a.fleet-affiliate-box-link,
body.dark .fleet-affiliate-box .fleet-affiliate-box-link,
body.dark .article-body .fleet-affiliate-box a,
body.dark .post-body .fleet-affiliate-box a,
body.dark a.fleet-affiliate-box-link,
[data-theme="dark"] .fleet-affiliate-box .fleet-affiliate-box-link,
[data-theme="dark"] .article-body .fleet-affiliate-box a,
[data-theme="dark"] .post-body .fleet-affiliate-box a,
[data-theme="dark"] a.fleet-affiliate-box-link {
  color: var(--primary, #60a5fa) !important;
}

html[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-disclosure,
[data-site-theme="dark"] .fleet-affiliate-box .fleet-affiliate-disclosure,
.dark .fleet-affiliate-box .fleet-affiliate-disclosure,
body.dark .fleet-affiliate-box .fleet-affiliate-disclosure,
[data-theme="dark"] .fleet-affiliate-box .fleet-affiliate-disclosure {
  color: var(--muted, #a8b0ba) !important;
  opacity: 0.75 !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box,
  html[data-site-theme="auto"] .fleet-affiliate-box,
  .fleet-affiliate-box {
    background: linear-gradient(180deg, #1c2430 0%, #171e28 100%) !important;
    border-color: var(--line, rgba(240, 235, 227, 0.14)) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
    color: var(--text, #f0ebe3) !important;
    opacity: 1 !important;
  }
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box .fleet-affiliate-box-heading,
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box .fleet-affiliate-kicker,
  html[data-site-theme="auto"] .fleet-affiliate-box .fleet-affiliate-box-heading,
  html[data-site-theme="auto"] .fleet-affiliate-box .fleet-affiliate-kicker,
  .fleet-affiliate-box .fleet-affiliate-box-heading,
  .fleet-affiliate-box .fleet-affiliate-kicker {
    color: var(--text, #f0ebe3) !important;
  }
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box .fleet-affiliate-box-lead,
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box .fleet-affiliate-note,
  html[data-site-theme="auto"] .fleet-affiliate-box .fleet-affiliate-box-lead,
  html[data-site-theme="auto"] .fleet-affiliate-box .fleet-affiliate-note,
  .fleet-affiliate-box .fleet-affiliate-box-lead,
  .fleet-affiliate-box .fleet-affiliate-note {
    color: var(--muted, #a8b0ba) !important;
  }
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box li,
  html[data-site-theme="auto"] .fleet-affiliate-box li,
  .fleet-affiliate-box li {
    color: var(--muted, #a8b0ba) !important;
  }
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box .fleet-affiliate-box-link,
  html:not([data-site-theme="light"]):not([data-theme="light"]) .article-body .fleet-affiliate-box a,
  html:not([data-site-theme="light"]):not([data-theme="light"]) .post-body .fleet-affiliate-box a,
  html:not([data-site-theme="light"]):not([data-theme="light"]) a.fleet-affiliate-box-link,
  html[data-site-theme="auto"] .fleet-affiliate-box .fleet-affiliate-box-link,
  html[data-site-theme="auto"] .article-body .fleet-affiliate-box a,
  html[data-site-theme="auto"] .post-body .fleet-affiliate-box a,
  html[data-site-theme="auto"] a.fleet-affiliate-box-link,
  .fleet-affiliate-box .fleet-affiliate-box-link,
  .article-body .fleet-affiliate-box a,
  .post-body .fleet-affiliate-box a,
  a.fleet-affiliate-box-link {
    color: var(--primary, #60a5fa) !important;
  }
  html:not([data-site-theme="light"]):not([data-theme="light"]) .fleet-affiliate-box .fleet-affiliate-disclosure,
  html[data-site-theme="auto"] .fleet-affiliate-box .fleet-affiliate-disclosure,
  .fleet-affiliate-box .fleet-affiliate-disclosure {
    color: var(--muted, #a8b0ba) !important;
    opacity: 0.75 !important;
  }
}

@media (max-width: 640px) {
  .fleet-affiliate-box {
    padding: 1rem 1.15rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 10px !important;
  }
}

/* ---- Editorial team dark mode theme alignment ---- */
html[data-site-theme="dark"] .fleet-editorial-team__avatar--initials,
html[data-site-theme="auto"] .fleet-editorial-team__avatar--initials {
  color: var(--primary, #2d6a9f) !important;
}
html[data-site-theme="dark"] .fleet-editorial-team__publisher a,
html[data-site-theme="auto"] .fleet-editorial-team__publisher a {
  color: var(--primary, #326891) !important;
}
html[data-site-theme="dark"] .fleet-editorial-team__byline,
html[data-site-theme="auto"] .fleet-editorial-team__byline,
html[data-site-theme="dark"] .fleet-editorial-team__reviewed,
html[data-site-theme="auto"] .fleet-editorial-team__reviewed {
  color: var(--foreground, #f0ebe3) !important;
}
html[data-site-theme="dark"] .fleet-editorial-team__prefix,
html[data-site-theme="auto"] .fleet-editorial-team__prefix,
html[data-site-theme="dark"] .fleet-editorial-team__bio,
html[data-site-theme="auto"] .fleet-editorial-team__bio,
html[data-site-theme="dark"] .fleet-editorial-team__publisher,
html[data-site-theme="auto"] .fleet-editorial-team__publisher {
  color: var(--muted-foreground, #a8b0ba) !important;
}

/* ---- Travelpayouts / trips.com widgets (travelpayouts.css is light-only) ---- */
html[data-site-theme="dark"] .tp-search-widget,
html[data-site-theme="dark"] .tp-deal-cta {
  background: linear-gradient(180deg, #1c2430 0%, #171e28 100%);
  border-color: var(--line, rgba(240, 235, 227, 0.14));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-site-theme="dark"] .tp-search-widget-heading,
html[data-site-theme="dark"] .tp-deal-cta-heading {
  color: var(--text, #f0ebe3) !important;
}

html[data-site-theme="dark"] .tp-field > span {
  color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
}

html[data-site-theme="dark"] .tp-field > span small,
html[data-site-theme="dark"] .tp-search-disclosure {
  color: var(--muted, #a8b0ba);
}

html[data-site-theme="dark"] .tp-deal-cta-lead {
  color: var(--muted, #a8b0ba) !important;
}

html[data-site-theme="dark"] .tp-field input {
  background: #12171d;
  color: var(--text, #f0ebe3);
  border-color: var(--line, rgba(240, 235, 227, 0.18));
}

html[data-site-theme="dark"] .tp-field input::placeholder {
  color: #c2c8d0;
  opacity: 1;
}

html[data-site-theme="dark"] .tp-footer-banner-cta {
  background: #1c2430;
  color: #9ec9ff !important;
}

html[data-site-theme="dark"] .tp-footer-banner-cta:hover,
html[data-site-theme="dark"] .tp-footer-banner-cta:focus {
  background: #222c38;
  color: #c5e0ff !important;
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .tp-search-widget,
  html[data-site-theme="auto"] .tp-deal-cta {
    background: linear-gradient(180deg, #1c2430 0%, #171e28 100%);
    border-color: var(--line, rgba(240, 235, 227, 0.14));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  html[data-site-theme="auto"] .tp-search-widget-heading,
  html[data-site-theme="auto"] .tp-deal-cta-heading {
    color: var(--text, #f0ebe3) !important;
  }
  html[data-site-theme="auto"] .tp-field > span {
    color: color-mix(in srgb, var(--text, #f0ebe3) 88%, transparent);
  }
  html[data-site-theme="auto"] .tp-field > span small,
  html[data-site-theme="auto"] .tp-search-disclosure {
    color: var(--muted, #a8b0ba);
  }
  html[data-site-theme="auto"] .tp-deal-cta-lead {
    color: var(--muted, #a8b0ba) !important;
  }
  html[data-site-theme="auto"] .tp-field input {
    background: #12171d;
    color: var(--text, #f0ebe3);
    border-color: var(--line, rgba(240, 235, 227, 0.18));
  }
  html[data-site-theme="auto"] .tp-field input::placeholder {
    color: #c2c8d0;
    opacity: 1;
  }
  html[data-site-theme="auto"] .tp-footer-banner-cta {
    background: #1c2430;
    color: #9ec9ff !important;
  }
  html[data-site-theme="auto"] .tp-footer-banner-cta:hover,
  html[data-site-theme="auto"] .tp-footer-banner-cta:focus {
    background: #222c38;
    color: #c5e0ff !important;
  }
}

/* ---- Ferrum Ad top leaderboard band (fleet-article-body.css is light-only #f5f5f5) ---- */
html[data-site-theme="dark"] .fleet-leaderboard-band,
html[data-site-theme="dark"] [id^="728x90-leaderboard"].fleet-leaderboard-band,
html[data-site-theme="dark"] .fleet-ad-server-slot,
html[data-site-theme="dark"] #gam-leaderboard.fleet-leaderboard-band,
html[data-site-theme="dark"] .fleet-leaderboard-band.fleet-gam-slot[data-gam-slot="leaderboard"],
html[data-site-theme="dark"] .fleet-leaderboard-band[data-ferrum-ad-slot="728x90-leaderboard"] {
  background: var(--card, #1c2430);
  border-color: var(--line, rgba(240, 235, 227, 0.12));
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .fleet-leaderboard-band,
  html[data-site-theme="auto"] [id^="728x90-leaderboard"].fleet-leaderboard-band,
  html[data-site-theme="auto"] .fleet-ad-server-slot,
  html[data-site-theme="auto"] #gam-leaderboard.fleet-leaderboard-band,
  html[data-site-theme="auto"] .fleet-leaderboard-band.fleet-gam-slot[data-gam-slot="leaderboard"],
  html[data-site-theme="auto"] .fleet-leaderboard-band[data-ferrum-ad-slot="728x90-leaderboard"] {
    background: var(--card, #1c2430);
    border-color: var(--line, rgba(240, 235, 227, 0.12));
  }
}

/* ---- Klaro consent banner / modal (klaro.min.css defaults to light) ----
   Klaro’s “light” theme sets --dark1 as the notice background (#fafafa). Remap
   those tokens + force surfaces so the bar matches site Dark / Auto+OS-dark.
   Keep Accept green (--green1) and button label white. */
html[data-site-theme="dark"] .klaro .cookie-notice,
html[data-site-theme="dark"] .klaro .cookie-modal .cm-modal,
html[data-site-theme="dark"] .klaro .cookie-modal .cm-body,
html[data-site-theme="dark"] .klaro .context-notice {
  --dark1: #1c2430;
  --dark2: #3a4555;
  --dark3: #a8b0ba;
  --light1: #f0ebe3;
  --light2: #6b7585;
  --light3: #c5cdd8;
  --white1: #1c2430;
  --white2: #242e3b;
  --white3: #1a222c;
}

html[data-site-theme="dark"] .klaro .cookie-notice,
html[data-site-theme="dark"] .klaro .cookie-modal .cm-modal,
html[data-site-theme="dark"] .klaro .context-notice {
  background-color: var(--card, #1c2430) !important;
  border-color: var(--line, rgba(240, 235, 227, 0.14));
  color: var(--text, #f0ebe3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

html[data-site-theme="dark"] .klaro .cookie-notice p,
html[data-site-theme="dark"] .klaro .cookie-notice li,
html[data-site-theme="dark"] .klaro .cookie-notice strong,
html[data-site-theme="dark"] .klaro .cookie-notice h1,
html[data-site-theme="dark"] .klaro .cookie-notice h2,
html[data-site-theme="dark"] .klaro .cookie-modal p,
html[data-site-theme="dark"] .klaro .cookie-modal li,
html[data-site-theme="dark"] .klaro .cookie-modal strong,
html[data-site-theme="dark"] .klaro .cookie-modal h1,
html[data-site-theme="dark"] .klaro .cookie-modal h2,
html[data-site-theme="dark"] .klaro .context-notice p {
  color: var(--text, #f0ebe3) !important;
}

html[data-site-theme="dark"] .klaro .cookie-notice .cm-list-description,
html[data-site-theme="dark"] .klaro .cookie-modal .cm-list-description {
  color: var(--muted, #a8b0ba) !important;
}

/* Reject only — do not catch Accept selected (cm-btn-success + cm-btn-info). */
html[data-site-theme="dark"] .klaro .cookie-notice .cm-btn.cm-btn-danger,
html[data-site-theme="dark"] .klaro .cookie-modal .cm-btn.cm-btn-danger {
  background-color: #3a4555;
  color: #fff;
}

/* Klaro modal Close is a bare button.hide with black text in light theme. */
html[data-site-theme="dark"] .klaro .cookie-modal button.hide,
html[data-site-theme="dark"] .klaro .cookie-modal .cm-btn-close {
  color: var(--text, #f0ebe3) !important;
  background: transparent !important;
}

html[data-site-theme="dark"] .klaro .cookie-modal a {
  color: var(--green1, #1a936f);
}

@media (prefers-color-scheme: dark) {
  html[data-site-theme="auto"] .klaro .cookie-notice,
  html[data-site-theme="auto"] .klaro .cookie-modal .cm-modal,
  html[data-site-theme="auto"] .klaro .cookie-modal .cm-body,
  html[data-site-theme="auto"] .klaro .context-notice {
    --dark1: #1c2430;
    --dark2: #3a4555;
    --dark3: #a8b0ba;
    --light1: #f0ebe3;
    --light2: #6b7585;
    --light3: #c5cdd8;
    --white1: #1c2430;
    --white2: #242e3b;
    --white3: #1a222c;
  }

  html[data-site-theme="auto"] .klaro .cookie-notice,
  html[data-site-theme="auto"] .klaro .cookie-modal .cm-modal,
  html[data-site-theme="auto"] .klaro .context-notice {
    background-color: var(--card, #1c2430) !important;
    border-color: var(--line, rgba(240, 235, 227, 0.14));
    color: var(--text, #f0ebe3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  html[data-site-theme="auto"] .klaro .cookie-notice p,
  html[data-site-theme="auto"] .klaro .cookie-notice li,
  html[data-site-theme="auto"] .klaro .cookie-notice strong,
  html[data-site-theme="auto"] .klaro .cookie-notice h1,
  html[data-site-theme="auto"] .klaro .cookie-notice h2,
  html[data-site-theme="auto"] .klaro .cookie-modal p,
  html[data-site-theme="auto"] .klaro .cookie-modal li,
  html[data-site-theme="auto"] .klaro .cookie-modal strong,
  html[data-site-theme="auto"] .klaro .cookie-modal h1,
  html[data-site-theme="auto"] .klaro .cookie-modal h2,
  html[data-site-theme="auto"] .klaro .context-notice p {
    color: var(--text, #f0ebe3) !important;
  }

  html[data-site-theme="auto"] .klaro .cookie-notice .cm-list-description,
  html[data-site-theme="auto"] .klaro .cookie-modal .cm-list-description {
    color: var(--muted, #a8b0ba) !important;
  }

  html[data-site-theme="auto"] .klaro .cookie-notice .cm-btn.cm-btn-danger,
  html[data-site-theme="auto"] .klaro .cookie-modal .cm-btn.cm-btn-danger {
    background-color: #3a4555;
    color: #fff;
  }

  html[data-site-theme="auto"] .klaro .cookie-modal button.hide,
  html[data-site-theme="auto"] .klaro .cookie-modal .cm-btn-close {
    color: var(--text, #f0ebe3) !important;
    background: transparent !important;
  }

  html[data-site-theme="auto"] .klaro .cookie-modal a {
    color: var(--green1, #1a936f);
  }
}

/* ---- Partners / programs (fleet-partners.css is light-only) ----
   Trade-school Classes Near Me homepage + `/programs/` landing. Card shells
   already remap via the common `.partners-card` list above; titles/meta/logo
   stay hard-coded slate, so Dark/Auto became dark-on-dark. Same single-rule
   `var(--token, <light>)` pattern as directory/quiz below. */

/* Trade-school :root keeps --bg as the dark hero navy even in Light — do not
   drive section fill from --bg. --fleet-dk-soft is dark-only; Light keeps the
   source gradient via the fallback. */
html[data-site-theme] .partners-home-block,
html[data-site-theme] .partners-landing-main {
  background: var(--fleet-dk-soft, linear-gradient(180deg, #f8fafc 0%, #fff 100%));
  border-top-color: var(--line, #e2e8f0);
}

html[data-site-theme] .partners-home-block__head h2,
html[data-site-theme] .partners-landing-header h1,
html[data-site-theme] .partners-section-title,
html[data-site-theme] .partners-card__title,
html[data-site-theme] .partners-card__rating-text strong,
html[data-site-theme] .partners-market-summary-card__title {
  color: var(--text, #0f172a);
}

html[data-site-theme] .partners-landing-eyebrow,
html[data-site-theme] .partners-landing-lead,
html[data-site-theme] .partners-section-lead,
html[data-site-theme] .partners-result-count,
html[data-site-theme] .partners-result-count--index,
html[data-site-theme] .partners-card__meta,
html[data-site-theme] .partners-card__address,
html[data-site-theme] .partners-card__services,
html[data-site-theme] .partners-card__rating-text,
html[data-site-theme] .partners-card__rating-sep,
html[data-site-theme] .partners-card__blurb,
html[data-site-theme] .partners-home-block--empty .section-lead,
html[data-site-theme] .partners-landing-empty,
html[data-site-theme] .partners-market-summary-card__count,
html[data-site-theme] .partners-card__logo--placeholder {
  color: var(--muted, #64748b);
}

html[data-site-theme] .partners-card__logo {
  background: var(--fleet-dk-soft, #f8fafc);
  border-color: var(--line, #e2e8f0);
}

html[data-site-theme] .partners-card__cta,
html[data-site-theme] .partners-home-block__all,
html[data-site-theme] .partners-section-more a,
html[data-site-theme] .partners-market-summary-card__cta {
  color: var(--fleet-dk-link, #2d6a9f);
}

html[data-site-theme] .partners-toolbar,
html[data-site-theme] .partners-market-summary-card {
  background: var(--card, #fff);
  border-color: var(--line, #e2e8f0);
  color: var(--text, #0f172a);
  box-shadow: var(--fd-shadow, 0 4px 18px rgba(15, 23, 42, 0.05));
}

html[data-site-theme] .partners-market-chip {
  background: var(--card, #fff);
  border-color: var(--line, #cbd5e1);
  color: var(--text, #334155);
}

html[data-site-theme] .partners-market-chip:hover,
html[data-site-theme] .partners-market-chip:focus-visible {
  background: var(--fleet-dk-hover, #f8fafc);
  border-color: var(--fleet-dk-link, #2d6a9f);
  color: var(--fleet-dk-link, #1d4e79);
}

html[data-site-theme] .partners-market-chip.is-active {
  background: var(--fleet-dk-active, #2d6a9f);
  border-color: var(--fleet-dk-active, #2d6a9f);
  color: var(--fleet-on-accent, #fff);
}

html[data-site-theme] .partners-sort {
  color: var(--text, #334155);
}

html[data-site-theme] .partners-rank-badge {
  background: var(--fleet-dk-soft, #0f172a);
  color: var(--text, #fff);
  border: 1px solid var(--line, transparent);
}

/* Partner profile pages stay white at source; partners-* text overrides above
   would otherwise paint cream meta/blurb on a white card (inverse of the
   homepage bug). Remap the profile shell + heading with the same tokens. */
html[data-site-theme] .partner-profile-main {
  background: var(--fleet-dk-soft, linear-gradient(180deg, #f1f5f9 0%, #fff 220px));
}

html[data-site-theme] .partner-profile-card {
  background: var(--card, #fff);
  border-color: var(--line, #e2e8f0);
  color: var(--text, #0f172a);
  box-shadow: var(--fd-shadow, 0 8px 28px rgba(15, 23, 42, 0.06));
}

html[data-site-theme] .partner-profile-card h1,
html[data-site-theme] .partner-profile-page.article-page .partner-profile-card h1 {
  color: var(--text, #0f172a);
}

html[data-site-theme] .partner-profile-card > p:last-child a {
  color: var(--fleet-dk-link, #2d6a9f);
}

/* ---- Networx quote form (fleet-quote-form.css is light-only) ----
   Titles already use var(--text); the white card shell does not, so Dark made
   cream labels on a white panel. */
html[data-site-theme] .fleet-qf {
  background: var(--card, #fff);
  border-color: var(--line, #e2ddd4);
  box-shadow: var(--fd-shadow, 0 14px 36px rgba(28, 36, 48, 0.09));
}

html[data-site-theme] .fleet-qf input,
html[data-site-theme] .fleet-qf select {
  background: var(--fleet-dk-soft, #fff);
  color: var(--text, #1c2430);
  border-color: var(--line, #e2ddd4);
}

/* ---- Campus Explorer widget (light-only block on trade articles) ---- */
html[data-site-theme] .fleet-campus-explorer {
  background: var(--fleet-dk-soft, #f8fafc);
  border-color: var(--line, #dbe4ee);
  color: var(--text, #172033);
}

html[data-site-theme] .fleet-campus-explorer__eyebrow,
html[data-site-theme] .fleet-campus-explorer__disclosure {
  color: var(--muted, #526174);
}

html[data-site-theme] .fleet-campus-explorer__consent {
  border-color: var(--line, #a9b8c8);
}

/* ---- Deals / shop (fleet-deals-site.css is light-only) ----
   Remap page tokens first so code chips / surfaces follow; then white cards
   + hard-coded slate copy. Leave --deals-accent (brand teal) alone. */
html[data-site-theme] .deals-site-page {
  --deals-surface: var(--fleet-dk-soft, #f8fafc);
  --deals-border: var(--line, #e2e8f0);
  --deals-text-muted: var(--muted, #64748b);
}

html[data-site-theme] .deals-coupon-card,
html[data-site-theme] .deals-store-card,
html[data-site-theme] .deals-home-offer__link,
html[data-site-theme] .deals-carousel-card,
html[data-site-theme] .deals-seasonal-promo,
html[data-site-theme] .deals-guide-card {
  background: var(--card, #fff);
  border-color: var(--deals-border, #e2e8f0);
  color: var(--text, inherit);
}

html[data-site-theme] .deals-guide-card {
  border-left-color: var(--deals-accent, #14b8a6);
}

/* Buttons/logos keep their own label colors; only lift the white fill. */
html[data-site-theme] .deals-carousel__btn,
html[data-site-theme] .deals-copy-btn,
html[data-site-theme] .deals-store-card__logo,
html[data-site-theme] .deals-logo-coin,
html[data-site-theme] .deals-carousel-card__logo {
  background: var(--deals-logo-bg, #fff);
  border-color: var(--deals-logo-border, #e2e8f0);
}

html[data-site-theme] .deals-logo-coin img,
html[data-site-theme] .deals-store-card__logo--img {
  background: transparent;
}

html[data-site-theme] .deals-logo-coin[data-slug="nordvpn"],
html[data-site-theme] .deals-logo-coin[data-slug="nordpass"],
html[data-site-theme] .deals-logo-coin[data-slug="teleflora"],
html[data-site-theme] .deals-logo-coin[data-slug="americas-test-kitchen"] {
  padding: 0;
  border: 0;
  box-shadow: none;
}

html[data-site-theme] .deals-logo-coin[data-slug="teleflora"] {
  background: var(--deals-teleflora-bg, #e60885);
}

html[data-site-theme] .deals-logo-coin[data-slug="americas-test-kitchen"] {
  background: var(--deals-atk-bg, #d73a15);
}

html[data-site-theme] .deals-intro,
html[data-site-theme] .deals-home-offer__desc,
html[data-site-theme] .deals-carousel-card__desc,
html[data-site-theme] .deals-seasonal-promo__offer,
html[data-site-theme] .deals-seasonal-promo__cta,
html[data-site-theme] .deals-guide-card__title {
  color: var(--text, #334155);
}

html[data-site-theme] .deals-home-spotlight {
  background: var(--fleet-dk-soft, linear-gradient(180deg, #f0fdfa 0%, #fff 100%));
  border-color: var(--line, #ccfbf1);
}

/* ---- Secondary page types: directory hubs, quizzes, /learn ----
   `--card` and every `--fleet-dk-*` token above are defined ONLY under Dark /
   Auto+OS-dark, so `var(--token, <light value>)` collapses to the source
   stylesheet's own light value and these rules are a no-op in Light. That lets
   each rule be written once instead of duplicated into the Auto media query.
   The `html[data-site-theme]` prefix (0,2,1) outranks the plain class selectors
   in fleet-directory.css / fleet-quiz-*.css / learn_base.html regardless of
   load order — including page-level inline <style> blocks.
   Use `background-color`, not `background`, wherever the source shorthand also
   carries `center/cover no-repeat` for an inline `background-image`. */

/* Directory hubs — /tools/, /computers/, /maps/, /planting/, /manuals/, /study/ */
html[data-site-theme] .directory-card,
html[data-site-theme] .directory-map-legend,
html[data-site-theme] .directory-map-jumplist {
  background-color: var(--card, #fff);
}

html[data-site-theme] .directory-spec-table th {
  background-color: var(--fleet-dk-soft, #f7f8fa);
}

html[data-site-theme] .directory-hub-promo,
html[data-site-theme] .fleet-map-article-callout {
  background-color: var(--fleet-dk-soft, #f7f9fc);
}

html[data-site-theme] .directory-map-figure {
  background-color: var(--fleet-dk-soft, #f8fbfd);
}

html[data-site-theme] .directory-map-card .directory-map-thumb {
  background-color: var(--fleet-dk-soft, #e8f4fc);
}

html[data-site-theme] .fleet-map-callout-label {
  color: var(--muted, #5c6773);
}

/* Quiz landing (/quiz/) + in-article quiz CTA share one light blue card look. */
html[data-site-theme] .quiz-card__inner,
html[data-site-theme] .fleet-quiz-cta__inner {
  background: var(
    --card,
    linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 50%, #eff6ff 100%)
  );
  border-color: var(--fleet-dk-line, #93c5fd);
}

html[data-site-theme] .quiz-card__title {
  color: var(--text, #0f172a);
}

html[data-site-theme] .quiz-card__desc,
html[data-site-theme] .quiz-landing-lead,
html[data-site-theme] .quiz-landing-empty {
  color: var(--muted, #475569);
}

html[data-site-theme] .quiz-landing-eyebrow {
  color: var(--fleet-dk-link, #2563eb);
}

/* fleet-quiz-cta.css sets these with !important. */
html[data-site-theme] .fleet-quiz-cta__headline {
  color: var(--text, #0f172a) !important;
}

html[data-site-theme] .fleet-quiz-cta__subtext {
  color: var(--muted, #475569) !important;
}

html[data-site-theme] .fleet-quiz-cta__button,
html[data-site-theme="dark"] .fleet-quiz-cta__button,
html[data-site-theme="auto"] .fleet-quiz-cta__button,
.dark .fleet-quiz-cta__button {
  background: var(--primary, #2563eb) !important;
  color: var(--primary-foreground, #ffffff) !important;
}
html[data-site-theme] .fleet-quiz-cta__button:hover,
html[data-site-theme="dark"] .fleet-quiz-cta__button:hover,
html[data-site-theme="auto"] .fleet-quiz-cta__button:hover,
.dark .fleet-quiz-cta__button:hover {
  opacity: 0.9 !important;
}

/* Quiz detail pages (/quiz/<slug>/) — rules ship in a page-level <style>. */
html[data-site-theme] .fleet-quiz-lead {
  color: var(--muted, #334155);
}

html[data-site-theme] .fleet-quiz-step legend,
html[data-site-theme] .fleet-quiz-result-card h2 {
  color: var(--text, #0f172a);
}

html[data-site-theme] .fleet-quiz-step-num,
html[data-site-theme] .fleet-quiz-help {
  color: var(--muted, #64748b);
}

html[data-site-theme] .fleet-quiz-progress {
  background-color: var(--fleet-dk-line, #e2e8f0);
}

html[data-site-theme] .fleet-quiz-option {
  border-color: var(--fleet-dk-line, #e2e8f0);
}

/* Hover / selected borders are re-asserted here because the grouped
   `.fleet-quiz-option` rule above ties with them on specificity. */
html[data-site-theme] .fleet-quiz-option:hover {
  background-color: var(--fleet-dk-hover, #f8fafc);
  border-color: var(--fleet-dk-link, #93c5fd);
}

html[data-site-theme] .fleet-quiz-option:has(input:checked) {
  background-color: var(--fleet-dk-active, #eff6ff);
  border-color: var(--fleet-dk-link, #2563eb);
}

html[data-site-theme] .fleet-quiz-btn-secondary {
  background-color: var(--fleet-dk-line, #f1f5f9);
  color: var(--text, #334155);
}

html[data-site-theme] .fleet-quiz-results {
  border-top-color: var(--fleet-dk-line, #e2e8f0);
}

html[data-site-theme] .fleet-quiz-btu,
html[data-site-theme] .fleet-quiz-links a {
  color: var(--fleet-dk-link, #2563eb);
}

html[data-site-theme] .fleet-quiz-disclaimer {
  background-color: var(--fleet-dk-soft, #f8fafc);
  color: var(--muted, #64748b);
}

/* ---- /learn (course catalog, course landing, lesson) ----
   learn_base.html drives its own surfaces off `--bg` / `--card` / `--bg-soft` /
   `--text` / `--muted` / `--line`, which the token block at the top of this file
   already remaps — so only the things a token can't express live here. */

/* Success / error tints are light pastels in the source. */
html[data-site-theme] .lh-opt.correct,
html[data-site-theme] .lh-lesson-row.lh-done .lh-lesson-num,
html[data-site-theme] .lh-complete-btn.done {
  background-color: var(--fleet-dk-ok-bg, #e7f7ee);
}

html[data-site-theme] .lh-opt.wrong {
  background-color: var(--fleet-dk-bad-bg, #fdeaea);
}

html[data-site-theme] .lh-complete-btn.done {
  color: var(--fleet-dk-ok-text, #1f8a4c);
}

html[data-site-theme] .lh-lesson-row.lh-done .lh-lesson-num {
  color: var(--fleet-dk-ok-text, #37b06f);
}

/* `--accent` is a brand colour and is deliberately not remapped for Dark, so
   accent-on-dark text needs the lighter link tone to stay legible. */
html[data-site-theme] .lh-article a,
html[data-site-theme] .lh-source a,
html[data-site-theme] .lh-eyebrow {
  color: var(--fleet-dk-link, var(--accent));
}

html[data-site-theme] .lh-btn-outline {
  color: var(--fleet-dk-link, var(--accent)) !important;
  border-color: var(--fleet-dk-link, var(--accent));
}

/* Leftover assemble hubs share publisher chrome; keep lists readable if
   docroot fleet-home.css has not been recompiled yet. */
.fleet-assemble-hub .hub-main {
  width: min(1120px, 92vw);
  margin: 1.75rem auto 3rem;
}
.fleet-assemble-hub .hub-lead {
  color: var(--muted, #5c6773);
  margin: 0 0 1.5rem;
}
.fleet-assemble-hub .fleet-hub-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fleet-assemble-hub .fleet-hub-posts li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}
.fleet-assemble-hub .fleet-hub-posts a {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

/* AdSense units: Fil articles load this file, not fleet-article-body.css.
   Flex wrappers collapse <ins> to 0×0 when filled. Empty/blocked units collapse to 0. */
#adsense-leaderboard.fleet-leaderboard-slot,
.fleet-adsense-slot[data-adsense-slot="inarticle"] {
  box-sizing: border-box;
}
#adsense-leaderboard.fleet-leaderboard-slot:empty,
#adsense-leaderboard.fleet-leaderboard-slot:has(> ins.adsbygoogle:empty),
#adsense-leaderboard.fleet-leaderboard-slot:has(> ins.adsbygoogle[data-ad-status="unfilled"]),
.fleet-adsense-slot:empty,
.fleet-adsense-slot:has(> ins.adsbygoogle:empty),
.fleet-adsense-slot:has(> ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#adsense-leaderboard.fleet-leaderboard-slot > ins.adsbygoogle,
.fleet-adsense-slot[data-adsense-slot="inarticle"] > ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  flex: none;
}

/* gc-linelist timeline lists — Fil articles often omit fleet-article-body.css */
.article-body .gc-linelist {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-body .gc-linelist-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0.85rem;
  padding-bottom: 1.1rem;
}

.article-body .gc-linelist-item:last-child {
  padding-bottom: 0;
}

.article-body .gc-linelist-icon {
  grid-row: 1;
  grid-column: 1;
  z-index: 1;
}

.article-body .gc-linelist-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
}

.article-body .gc-linelist-icon svg {
  display: block;
  fill: currentColor;
  width: 0.85rem;
  height: 0.85rem;
}

.article-body .gc-linelist-line {
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  width: 0;
  min-height: 0.75rem;
  border-left: 2px solid var(--line, #e2ddd4);
}

.article-body .gc-linelist-item:last-child .gc-linelist-line {
  display: none;
}

.article-body .gc-linelist-content {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 0;
}

.article-body .gc-linelist-entry {
  margin: 0;
}

.article-body .gc-linelist-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--text, #1c2430);
  line-height: 1.35;
}

.article-body .gc-linelist-title strong {
  font-weight: inherit;
}

.article-body .gc-linelist-desc {
  margin: 0;
  color: var(--muted, #5c6773);
  line-height: 1.55;
}

/* Legacy gc-linelist rows still using a single div (title: description inline) */
.article-body .gc-linelist-content > div:not(.gc-linelist-entry) strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text, #1c2430);
}

/* Kadence accordion blocks — Fil pages omit Kadence CSS/JS */
.article-body .kt-accordion-wrap {
  margin: 2rem 0;
  max-width: none !important;
}

.article-body .kt-accordion-inner-wrap,
.article-body .kt-accordion-pane {
  display: block;
  border: 0;
  background: transparent;
}

.article-body .kt-accordion-pane + .kt-accordion-pane {
  margin-top: 2.25rem;
}

.article-body .kt-accordion-header-wrap {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.article-body .kt-blocks-accordion-header {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  text-align: left;
  cursor: default;
  font: inherit;
  color: inherit;
}

.article-body .kt-blocks-accordion-title-wrap,
.article-body .kt-blocks-accordion-title {
  display: block;
}

.article-body .kt-blocks-accordion-title {
  font-family: var(--display, "Playfair Display", Georgia, "Times New Roman", serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text, #1c2430);
}

.article-body .kt-accordion-icon-trigger,
.article-body .kt-accodion-icon-trigger {
  display: none !important;
}

.article-body .kt-accordion-panel,
.article-body .kt-accordion-panel-inner {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0;
  border: 0;
  background: transparent;
}

.article-body .has-background {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line, #e2ddd4);
  border-radius: var(--radius, 12px);
  background: rgba(45, 106, 159, 0.06);
}

.article-body .has-background > .has-medium-font-size {
  margin-top: 0;
}

/* Empty ad containers collapse to 0px (prevents layout shifts on blocked/unfilled ads) */
.ferrum-ad-slot:empty,
.fleet-leaderboard-band:empty,
.fleet-gam-slot:empty,
.ferrum-ad-inarticle-slot:empty,
.mv-ad-box:empty,
[class*="mv-ad"]:empty,
[id*="mv-ad"]:empty,
[data-ferrum-ad-slot]:empty,
[data-gam-slot]:empty,
#adsense-leaderboard:empty,
#adsense-leaderboard:has(> ins.adsbygoogle:empty),
#adsense-leaderboard:has(> ins.adsbygoogle[data-ad-status="unfilled"]),
.fleet-adsense-slot:empty,
.fleet-adsense-slot:has(> ins.adsbygoogle:empty),
.fleet-adsense-slot:has(> ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

