html[data-tc-theme=dark]{color-scheme:dark;background:#080e20;--tc-page:#080e20;--tc-surface:#101e34;--tc-ink:#edf7ff;--tc-muted:#b7c9df;--tc-border:#47708d;--tc-link:#89eaff}
html[data-tc-theme=light]{color-scheme:light;background:#f2f7ff;--tc-page:#f2f7ff;--tc-surface:#fff;--tc-ink:#132543;--tc-muted:#334e69;--tc-border:#a8bedc;--tc-link:#14598a}
html[data-tc-theme] body.tc-v2{background:var(--tc-page);color:var(--tc-ink)}
html[data-tc-theme] .tc-v2 .site-footer{margin-top:0;background:var(--tc-surface);color:var(--tc-ink);border-top:1px solid var(--tc-border)}
html[data-tc-theme] .tc-v2 .site-footer :is(h4,p,a){color:var(--tc-ink)}
html[data-tc-theme] .tc-v2 .site-footer .newsletter-form input{background:var(--tc-page);color:var(--tc-ink);border-color:var(--tc-border)}
html[data-tc-theme=dark] .tc-v2 :is(.site-header,.main-nav.open){background:#101e34;border-color:#47708d}
html[data-tc-theme=dark] .tc-v2 :is(.main-nav a,.language-link){color:#edf7ff}
html[data-tc-theme=dark] .tc-v2 .nav-toggle span{background:#edf7ff}
html[data-tc-theme=dark] .tc-v2 .tc-brand img{background:#fff;border-radius:8px}
.tc-v2 .tc-theme-button{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid var(--tc-border);border-radius:10px;background:var(--tc-surface);color:var(--tc-ink);font:inherit;font-size:1.25rem;cursor:pointer}
.tc-v2 .tc-theme-button:focus-visible{outline:2px solid var(--tc-link);outline-offset:2px}
html[data-tc-theme] .tc-v2 :is(.tc-editorial-card,.empty-state){background:var(--tc-surface);border-color:var(--tc-border);color:var(--tc-ink)}
html[data-tc-theme] .tc-v2 .tc-editorial-card-copy :is(h3,a:not(.btn)){color:var(--tc-ink)}
html[data-tc-theme] .tc-v2 .tc-editorial-card-copy p{color:var(--tc-muted)}
html[data-tc-theme=dark] .tc-v2 :is(.tc-story-body,.tc-story-hero,.tc-editorial-hero,.tc-editorial-main){color:var(--tc-ink)}
html[data-tc-theme=dark] .tc-v2 .tc-story-body :is(blockquote,figure,pre,code,th,.partner-box){background:var(--tc-surface);color:var(--tc-ink);border-color:var(--tc-border)}
html[data-tc-theme=dark] .tc-v2 .tc-story-body a:not(.service-button):not(.btn){color:var(--tc-link)}
html[data-tc-theme=dark] .tc-v2 .tc-story-body :is(.partner-box p,.inline-partners small),html[data-tc-theme=dark] .tc-v2 .tc-story-hero figcaption{color:var(--tc-muted)}
@media(max-width:550px){.tc-v2 .nav-tools{gap:6px}.tc-v2 .tc-theme-button{width:36px;height:36px}.tc-v2 .site-header .tc-brand img{max-width:clamp(112px,38vw,165px)}}

/* Interior pages share the same dark palette as the site chrome. */
html[data-tc-theme=dark] body.tc-v2 {
  --bg: var(--tc-page);
  --bg2: var(--tc-page);
  --card: var(--tc-surface);
  --card2: #192c48;
  --line: var(--tc-border);
  --line2: var(--tc-border);
  --txt: var(--tc-ink);
  --muted: var(--tc-muted);
  --pri2: var(--tc-link);
  --acc: var(--tc-link);
  --gold: #f5cf83;
}

html[data-tc-theme=dark] .tc-v2 :is(.page-hero, .tc-story, .tc-story-sidebar, .tc-summary,
  .tc-filter, .tc-start, .tc-free-card, .tc-tool-intro, .tc-detail-section,
  .tc-directory-faq details, .tc-resource-table, .tool-card, .featured-card,
  .tc-contact-card, .tc-social-card, .tc-story-hero),
html[data-tc-theme=dark] .tc-v2 #partner-guides .category-tile,
html[data-tc-theme=dark] .tc-v2 .tc-topic-gallery a {
  background: var(--tc-surface);
  border-color: var(--tc-border);
  color: var(--tc-ink);
}

html[data-tc-theme=dark] .tc-v2 :is(.page-hero h1, .page-hero h2, .page-hero h3,
  .tc-summary h2, .tc-start summary, .tool-card h3, .featured-card h3,
  .tc-story h1, .tc-story h2, .tc-story h3, .tc-story-sidebar h2),
html[data-tc-theme=dark] .tc-v2 #partner-guides :is(h2, .category-tile strong) {
  color: var(--tc-ink);
}

html[data-tc-theme=dark] .tc-v2 :is(.page-hero p, .tc-summary-top > span, .tc-checked,
  .tc-free-card > p, .tc-free-card-top small, .tc-tool-limits p, .tc-discovery-note,
  .tc-method p, .tc-method li, .tool-card p, .featured-card > p, .featured-bottom,
  .tc-contact-card p, .tc-about-intro p, .tc-social-card p, .article .body p),
html[data-tc-theme=dark] .tc-v2 #partner-guides :is(.v2-section-heading p, .category-tile small) {
  color: var(--tc-muted);
}

html[data-tc-theme=dark] .tc-v2 :is(.tc-story-label, .tc-story-back, .tc-story-sidebar a,
  .tc-discover .eyebrow, .tc-backlinks a, .tc-related-guide,
  .tc-resource-table td a, .tc-free-actions a:not(.btn), .tc-discovery-note a,
  .tc-contact-card a, .tc-about-intro a, .tc-reset, .text-link, .featured-bottom a) {
  color: var(--tc-link);
}

html[data-tc-theme=dark] .tc-v2 :is(.tc-price-nav a, .tc-discovery-tabs a, .tc-reading-controls button,
  .tc-tool-limits, .tc-use-tags a, .tc-use-tags span, .tc-price-nav small,
  .tc-discover input, .tc-discover select, .tc-resource-table th, .btn-ghost) {
  background: var(--card2);
  border-color: var(--tc-border);
  color: var(--tc-ink);
}

html[data-tc-theme=dark] .tc-v2 :is(.tc-price-nav a[aria-current=page],
  .tc-discovery-tabs a[aria-current=page], .tc-reading-controls button[aria-pressed=true]) {
  background: #254c72;
  border-color: var(--tc-link);
  color: var(--tc-ink);
}

html[data-tc-theme=dark] .tc-v2 :is(.tc-story-body .table-scroll, .tc-story-body td,
  .tc-story-end, .tc-story-sidebar a, .featured-bottom) {
  border-color: var(--tc-border);
}

html[data-tc-theme=dark] .tc-v2 .tc-discover .tc-weekly {
  background: var(--tc-surface) !important;
  border-color: var(--tc-border) !important;
  color: var(--tc-ink) !important;
}

html[data-tc-theme=dark] .tc-v2 .tc-discover .tc-weekly a:not(.btn) {
  color: var(--tc-link);
}

html[data-tc-theme=dark] .tc-v2 #partner-guides .category-tile:is(:hover, :focus-visible) {
  border-color: var(--tc-link);
}
