/* DA6IT global dark mode · Core 1.25.58
 *
 * Goal: one coherent dark canvas across the complete public site.
 * Feature CSS intentionally stays light-first; this stylesheet is loaded late
 * and provides the dark counterpart for WordPress wrappers and DA6IT modules.
 */
:root{
  --da6it-dark-bg:#0b1211;
  --da6it-dark-bg-soft:#0f1917;
  --da6it-dark-surface:#14201e;
  --da6it-dark-surface-2:#192825;
  --da6it-dark-surface-3:#20312d;
  --da6it-dark-border:#2b4640;
  --da6it-dark-border-strong:#3b6259;
  --da6it-dark-text:#edf7f4;
  --da6it-dark-muted:#a4b8b2;
  --da6it-dark-subtle:#809891;
  --da6it-dark-accent:#62d5ca;
  --da6it-dark-green:#7bd755;
  --da6it-dark-shadow:rgba(0,0,0,.30);
}

/* ---------- Global canvas ---------- */
html[data-da6it-theme="dark"]{
  color-scheme:dark;
  background:var(--da6it-dark-bg)!important;
}
html[data-da6it-theme="dark"] body{
  background:var(--da6it-dark-bg)!important;
  color:var(--da6it-dark-text)!important;
  --wp--preset--color--base:var(--da6it-dark-bg);
  --wp--preset--color--contrast:var(--da6it-dark-text);
}
html[data-da6it-theme="dark"] body :where(
  .wp-site-blocks,main,.site,.site-content,.content-area,.entry-content,
  .wp-block-post-content,.wp-block-query,.wp-block-post-template
){background-color:var(--da6it-dark-bg)!important;color:var(--da6it-dark-text)!important}

/* Block themes often add a white rounded group around post/project content.
   In dark mode those structural wrappers must be transparent/dark too. */
html[data-da6it-theme="dark"] body main :where(.wp-block-group,.wp-block-columns,.wp-block-column){
  border-color:var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body main .wp-block-group:not(.has-accent-background-color):not(.has-primary-background-color):not(.has-vivid-green-cyan-background-color){
  background-color:transparent!important;
}
html[data-da6it-theme="dark"] body.single-project :where(
  main,.wp-block-post-content,.da6it-project-content,
  main>.wp-block-group,.wp-block-post-content>.wp-block-group
){background:var(--da6it-dark-bg)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important}

/* ---------- Header / footer / navigation ---------- */
html[data-da6it-theme="dark"] body :where(
  header.wp-block-template-part,footer.wp-block-template-part,.site-header,.site-footer
){background:var(--da6it-dark-bg-soft)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body :where(
  .wp-block-navigation,.wp-block-navigation__responsive-container,
  .wp-block-navigation__responsive-container-content,.wp-block-navigation__submenu-container
){background-color:var(--da6it-dark-bg-soft)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body .wp-block-navigation a{color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body .wp-block-navigation a:hover{color:var(--da6it-dark-accent)!important}

/* ---------- Typography ---------- */
html[data-da6it-theme="dark"] body :where(h1,h2,h3,h4,h5,h6,.entry-title,.wp-block-post-title,.page-title){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body :where(p,li,dd,dt,figcaption,small,.wp-block-post-excerpt){border-color:var(--da6it-dark-border)}
html[data-da6it-theme="dark"] body a:not(.wp-element-button):not([class*="button"]){color:var(--da6it-dark-accent)}
html[data-da6it-theme="dark"] body hr,
html[data-da6it-theme="dark"] body .wp-block-separator{border-color:var(--da6it-dark-border)!important;background:var(--da6it-dark-border)!important;color:var(--da6it-dark-border)!important}

/* Ordinary WP background classes. */
html[data-da6it-theme="dark"] body main :where(.has-base-background-color,.wp-block-group.has-background):not(.has-accent-background-color):not(.has-primary-background-color){
  background:var(--da6it-dark-surface)!important;color:var(--da6it-dark-text)!important;
}
html[data-da6it-theme="dark"] body .has-contrast-color{color:var(--da6it-dark-text)!important}

/* ---------- DA6IT page roots ---------- */
html[data-da6it-theme="dark"] body :where(
  .da6it-home-160,.da6it-home-editorial-160,.da6it-home-section-160,
  .da6it-projects-v1,.da6it-articles-v1,.da6it-snippets-v1,.da6it-category-archive,
  .da6it-about-v2,.da6it-tools-v1,.da6it-privacy-v1,.da6it-impressum-v1,
  .da6it-wavelog-landing,.da6it-hosting-project,
  .da6it-cable-v1,.da6it-abroad-v1,.da6it-dx-tool-v1,.da6it-sdr-v1,
  .da6it-tools-services-hub,.da6it-qso-trainer,.da6it-dxc,
  .da6it-shack-app-section,.da6it-cable-app-section,.da6it-abroad-app-section,
  .da6it-dx-tool-app-section,.da6it-sdr-search-section,.da6it-doctor-app-section
){background:var(--da6it-dark-bg)!important;color:var(--da6it-dark-text)!important}

/* Override module-local light variables where available. */
html[data-da6it-theme="dark"] .da6it-wavelog-landing{
  --wl-ink:var(--da6it-dark-text);--wl-muted:var(--da6it-dark-muted);
  --wl-border:var(--da6it-dark-border);--wl-soft:var(--da6it-dark-surface);
  --wl-soft-cyan:var(--da6it-dark-surface-2);--wl-teal:var(--da6it-dark-accent);
}
html[data-da6it-theme="dark"] .da6it-hosting-project{
  --hosting-ink:var(--da6it-dark-text);--hosting-muted:var(--da6it-dark-muted);
  --hosting-border:var(--da6it-dark-border);--hosting-cyan:var(--da6it-dark-accent);
}
html[data-da6it-theme="dark"] .da6it-projects-v1{
  --pr-ink:var(--da6it-dark-text);--pr-body:var(--da6it-dark-muted);--pr-muted:var(--da6it-dark-subtle);
  --pr-line:var(--da6it-dark-border);--pr-soft:var(--da6it-dark-bg-soft);--pr-white:var(--da6it-dark-surface);
}
html[data-da6it-theme="dark"] .da6it-articles-v1{
  --ar-ink:var(--da6it-dark-text);--ar-body:var(--da6it-dark-muted);--ar-muted:var(--da6it-dark-subtle);
  --ar-line:var(--da6it-dark-border);--ar-soft:var(--da6it-dark-bg-soft);--ar-white:var(--da6it-dark-surface);
}
html[data-da6it-theme="dark"] .da6it-snippets-v1{
  --sn-ink:var(--da6it-dark-text);--sn-body:var(--da6it-dark-muted);--sn-muted:var(--da6it-dark-subtle);
  --sn-line:var(--da6it-dark-border);--sn-soft:var(--da6it-dark-bg-soft);--sn-white:var(--da6it-dark-surface);
}
html[data-da6it-theme="dark"] .da6it-about-v2{
  --a-ink:var(--da6it-dark-text);--a-body:var(--da6it-dark-muted);--a-muted:var(--da6it-dark-subtle);
  --a-line:var(--da6it-dark-border);--a-soft:var(--da6it-dark-bg-soft);--a-soft2:var(--da6it-dark-surface-2);--a-white:var(--da6it-dark-surface);
}
html[data-da6it-theme="dark"] .da6it-tools-v1{
  --tl-ink:var(--da6it-dark-text);--tl-body:var(--da6it-dark-muted);--tl-muted:var(--da6it-dark-subtle);
  --tl-line:var(--da6it-dark-border);--tl-soft:var(--da6it-dark-bg-soft);--tl-white:var(--da6it-dark-surface);
}

/* ---------- Heroes / section canvases ---------- */
html[data-da6it-theme="dark"] body :where(
  .da6it-home-hero-160,.da6it-projects-hero,.da6it-articles-hero,.da6it-snippets-hero,
  .da6it-about-hero,.da6it-tools-hero,.da6it-privacy-hero,.da6it-impressum-hero,
  .da6it-category-hero,.da6it-cable-hero,.da6it-abroad-hero,.da6it-dx-tool-hero,
  .da6it-sdr-hero,.da6it-shack-hero,.da6it-qso-hero
){
  background:
    radial-gradient(circle at 82% 8%,rgba(17,185,197,.13),transparent 30%),
    radial-gradient(circle at 8% 88%,rgba(97,201,45,.08),transparent 28%),
    linear-gradient(135deg,#0f1917 0%,#12231f 100%)!important;
  border-color:var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body :where(
  .da6it-home-editorial-160,.da6it-home-section-160,.da6it-home-section--latest,
  .da6it-projects-section,.da6it-articles-section,.da6it-snippets-section,.da6it-about-section,
  .da6it-tools-section,.da6it-tools-services-section,.da6it-privacy-section,.da6it-impressum-section,
  .da6it-hosting-section
){background:var(--da6it-dark-bg)!important;border-color:var(--da6it-dark-border)!important}

/* Soft editorial sections are still distinct, but never light. */
html[data-da6it-theme="dark"] body :where(
  .da6it-home-section--latest,.da6it-tools-section--soft,.da6it-privacy-section--soft,
  .da6it-privacy-section--analytics,.da6it-hosting-section--soft,.da6it-hosting-offline,
  .da6it-wavelog-kicker,.da6it-tech-strip,.da6it-project-finish,.da6it-afu-tools-more,
  .da6it-doctor-faq,.da6it-cable-compare-section
){
  background:linear-gradient(135deg,#101c1a,#162622)!important;
  color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important;
}

/* ---------- Generic DA6IT surfaces ---------- */
html[data-da6it-theme="dark"] body :where(
  [class*="da6it-"][class*="-card"],
  [class*="da6it-"][class*="-panel"],
  [class*="da6it-"][class*="-box"],
  [class*="da6it-"][class*="-tile"],
  [class*="da6it-"][class*="-fact"],
  [class*="da6it-"][class*="-stat"],
  [class*="da6it-"][class*="-result"],
  [class*="da6it-"][class*="-summary"],
  [class*="da6it-"][class*="-workbench"],
  [class*="da6it-"][class*="-preflight"],
  [class*="da6it-"][class*="-dropzone"],
  [class*="da6it-"][class*="-filebar"]
){
  background:var(--da6it-dark-surface)!important;
  color:var(--da6it-dark-text)!important;
  border-color:var(--da6it-dark-border)!important;
  box-shadow:0 12px 34px var(--da6it-dark-shadow)!important;
}

/* Surfaces that do not follow the card/panel naming convention. */
html[data-da6it-theme="dark"] body :where(
  .da6it-hosting-fact,.da6it-hosting-steps article,.da6it-hosting-two-col>div,
  .da6it-hosting-resource-grid a,.da6it-benefit-card,.da6it-tech-card,.da6it-tech-bubble,
  .da6it-afu-tools-more-card,.da6it-shack-paths article,.da6it-shack-bandgrid article,
  .da6it-shack-spot,.da6it-shack-activation-list article,.da6it-shack-mini-list article,
  .da6it-activation-group article,.da6it-cable-kpis article,.da6it-cable-info-grid article,
  .da6it-cable-source-links a,.da6it-abroad-summary-grid article,.da6it-abroad-rule-grid article,
  .da6it-abroad-general-grid article,.da6it-abroad-source-links a,
  .da6it-dx-tool-summary div,.da6it-dx-tool-detail-grid>div,.da6it-dx-tool-explain-grid article,
  .da6it-doctor-repair-grid article,.da6it-doctor-explain-grid article,.da6it-doctor-faq details,
  .da6it-qso-info-grid article,.da6it-qso-guide,.da6it-qso-scenarios,.da6it-qso-scenario,
  .da6it-dxc-connection>div,.da6it-dxc-dup-summary>div,.da6it-dxc-peer-contrib-summary>div,
  .da6it-dxc-tech-grid>div
){
  background:var(--da6it-dark-surface)!important;
  color:var(--da6it-dark-text)!important;
  border-color:var(--da6it-dark-border)!important;
  box-shadow:none!important;
}

/* Main copy inside DA6IT components. This prevents old module-specific grey/green
   text from becoming unreadable against the new dark surfaces. */
html[data-da6it-theme="dark"] body main [class*="da6it-"] :where(p,li,dd,figcaption,small){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body main [class*="da6it-"] :where(h1,h2,h3,h4,h5,h6,strong){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body main [class*="da6it-"] a:not(.wp-element-button):not([class*="button"]){color:var(--da6it-dark-accent)!important}

/* Wavelog Hosting / single-project is intentionally explicit: these classes had
   their own hard-coded white cards and pale gradients. */
html[data-da6it-theme="dark"] body.single-project :where(
  .da6it-wavelog-kicker,.da6it-hosting-section--soft,.da6it-hosting-offline,
  .da6it-tech-strip,.da6it-project-finish,.da6it-afu-tools-more
){background:linear-gradient(135deg,#111e1b,#172925)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body.single-project :where(
  .da6it-hosting-fact,.da6it-hosting-steps article,.da6it-hosting-two-col>div,
  .da6it-hosting-resource-grid a,.da6it-benefit-card,.da6it-tech-card,
  .da6it-tech-bubble,.da6it-afu-tools-more-card
){background:#162421!important;border-color:#31504a!important;color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.single-project :where(
  .da6it-hosting-section>p,.da6it-hosting-two-col p,.da6it-hosting-fact p,
  .da6it-hosting-steps p,.da6it-hosting-resource-grid span,.da6it-wavelog-copy p,
  .da6it-wavelog-copy li,.da6it-project-finish-copy p,.da6it-tech-strip>p
){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.single-project :where(
  .da6it-hosting-fact span,.da6it-hosting-steps h3,.da6it-hosting-two-col h2,
  .da6it-hosting-resource-grid strong,.da6it-tech-card strong,.da6it-wavelog-copy h3
){color:var(--da6it-dark-text)!important}

/* ---------- Media frames ---------- */
html[data-da6it-theme="dark"] body :where(
  .da6it-projects-hero-visual,.da6it-articles-hero-visual,.da6it-snippets-hero-visual,
  .da6it-impressum-hero-visual,.da6it-tools-hero-panel,.da6it-tools-services-hero-panel,
  .da6it-tools-services-hero-collage,.da6it-privacy-visual,.da6it-wavelog-media,
  .da6it-shack-hero-map,.da6it-shack-world
){background:var(--da6it-dark-surface)!important;border-color:var(--da6it-dark-border)!important;box-shadow:0 18px 45px rgba(0,0,0,.30)!important}

/* Images/screenshots themselves stay untouched. A neutral light matte is only
   kept on archive thumbnails where the artwork was designed for it. */
html[data-da6it-theme="dark"] body img{filter:none}
html[data-da6it-theme="dark"] body :where(.da6it-project-media,.da6it-article-media,.da6it-snippet-media,.da6it-tools-software-image,.da6it-tools-service-thumb){background:#dfe9e6!important}

/* ---------- Chips / badges / small controls ---------- */
html[data-da6it-theme="dark"] body :where(
  .da6it-projects-topics a,.da6it-articles-topics a,.da6it-snippets-topics a,
  .da6it-tools-hero-tags span,.da6it-tools-services-hero-chips span,
  .da6it-home-textnav-160 a,.da6it-summary-chip,.da6it-project-chip,
  .da6it-feature-point,.da6it-benefit-card .da6it-card-tag,.da6it-feature-tag,
  .da6it-snippet-single-chips span,.da6it-shack-hero-bands span
){background:#19302b!important;color:#70ddd2!important;border-color:#355a52!important;box-shadow:none!important}

/* ---------- Buttons / secondary actions ---------- */
html[data-da6it-theme="dark"] body :where(
  .da6it-hosting-button:not(.da6it-hosting-button--primary),.da6it-project-action,
  .da6it-project-finish-actions a,.da6it-afu-tool-link,
  .da6it-projects-pagination .page-numbers,.da6it-articles-pagination .page-numbers,
  .da6it-snippets-pagination .page-numbers,.da6it-category-pagination .page-numbers,
  .da6it-tools-service-actions a,.da6it-tools-inline-action,.da6it-catalog-toggle,
  .da6it-doctor-button--ghost,.da6it-sdr-card-actions a,.da6it-sdr-card-actions button,
  .da6it-shack-actions button,.da6it-dx-tool-head-actions button,.da6it-abroad-head-actions button
){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-accent)!important;border-color:var(--da6it-dark-border-strong)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body :where(
  .da6it-projects-pagination .page-numbers.current,.da6it-articles-pagination .page-numbers.current,
  .da6it-snippets-pagination .page-numbers.current,.da6it-category-pagination .page-numbers.current
){background:linear-gradient(135deg,#278e83,#31b8ae)!important;color:#fff!important;border-color:transparent!important}

/* Primary accent CTAs remain colourful and readable. */
html[data-da6it-theme="dark"] body :where(.da6it-cta,.da6it-hosting-button--primary){color:#fff!important}
html[data-da6it-theme="dark"] body .da6it-cta :where(h1,h2,h3,p,a,strong){color:#fff!important}
html[data-da6it-theme="dark"] body .da6it-cta .wp-block-button__link{background:#f5fbf9!important;color:#173d38!important}

/* ---------- Forms / tables / code ---------- */
html[data-da6it-theme="dark"] body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body :where(input,textarea)::placeholder{color:#7f958f!important}
html[data-da6it-theme="dark"] body :where(code,pre,kbd,samp){background:#08100e!important;color:#d9ebe7!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body :where(table,th,td){border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body th{background:#172522!important;color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body td{background:var(--da6it-dark-surface)!important;color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body :where(.da6it-cable-table-wrap,.da6it-dx-tool-table-wrap,.da6it-abroad-table-wrap){background:var(--da6it-dark-surface)!important;border-color:var(--da6it-dark-border)!important}

/* ---------- Status / warning surfaces ---------- */
html[data-da6it-theme="dark"] body :where(.da6it-cable-warning,.da6it-abroad-entry-warning,.da6it-abroad-special-warning,.da6it-qso-human-note,.da6it-qso-dsp-note){background:#2b2819!important;color:#e5d79a!important;border-color:#5a5130!important}
html[data-da6it-theme="dark"] body :where(.da6it-doctor-error,.da6it-dx-tool-error,.da6it-sdr-empty.is-error,.da6it-qso-status-badge.is-error){background:#301b1b!important;color:#f2b3b3!important;border-color:#684040!important}

/* ---------- Consent/privacy modal ---------- */
html[data-da6it-theme="dark"] body :where(.da6it-consent__panel,.da6it-consent__category){background:var(--da6it-dark-surface)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important}

/* ---------- Floating switch ---------- */
.da6it-theme-toggle{
  position:fixed;right:16px;bottom:16px;z-index:99997;width:38px;height:38px;padding:0;
  border:1px solid rgba(18,77,68,.16);border-radius:999px;display:grid;place-items:center;
  background:rgba(248,252,251,.90);color:#1b5d55;box-shadow:0 7px 20px rgba(20,65,57,.12);
  cursor:pointer;backdrop-filter:blur(12px);transition:transform .16s ease,background .16s ease,color .16s ease,border-color .16s ease;
}
.da6it-theme-toggle:hover{transform:translateY(-2px)}
.da6it-theme-toggle:focus-visible{outline:3px solid rgba(17,185,197,.34);outline-offset:3px}
.da6it-theme-toggle__sun,.da6it-theme-toggle__moon{grid-area:1/1;width:18px;height:18px;display:grid;place-items:center;line-height:1;transition:opacity .16s ease,transform .16s ease}
.da6it-theme-toggle__sun svg,.da6it-theme-toggle__moon svg{display:block;width:18px;height:18px}
.da6it-theme-toggle__sun{opacity:0;transform:scale(.72) rotate(-25deg)}
.da6it-theme-toggle__moon{opacity:1;transform:scale(1)}
html[data-da6it-theme="dark"] .da6it-theme-toggle{background:rgba(19,31,29,.90);color:#d9cf83;border-color:#304c46;box-shadow:0 7px 20px rgba(0,0,0,.25)}
html[data-da6it-theme="dark"] .da6it-theme-toggle__sun{opacity:1;transform:scale(1) rotate(0)}
html[data-da6it-theme="dark"] .da6it-theme-toggle__moon{opacity:0;transform:scale(.72) rotate(25deg)}

@media(max-width:720px){.da6it-theme-toggle{right:10px;bottom:10px;width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.da6it-theme-toggle,.da6it-theme-toggle__sun,.da6it-theme-toggle__moon{transition:none}}

/* ---------- 1.25.58 coverage pass for legacy light-only modules ---------- */
/* These are structural UI surfaces whose feature styles predate the global
   appearance switch and therefore use fixed white / pale backgrounds. */
html[data-da6it-theme="dark"] body :where(
  .da6it-about-small-note,.da6it-live-frame,.da6it-live-map,.da6it-about-linkcard,
  .da6it-articles-empty,.da6it-projects-empty,.da6it-snippets-empty,
  .da6it-impressum-legal,.da6it-impressum-legal-box,.da6it-privacy-rights,
  .da6it-snippet-single-hero,.da6it-snippet-single-image,.da6it-snippet-note,
  .da6it-codebox,.da6it-codebox__important,
  .da6it-dxc-node-meta,.da6it-dxc-metric,.da6it-dxc-dup-coverage,.da6it-dxc-refresh-info,.da6it-dxc-direct-bars,
  .da6it-abroad-disclaimer,.da6it-abroad-step,.da6it-abroad-loading,.da6it-abroad-placeholder,
  .da6it-abroad-country-head,.da6it-abroad-band-section,.da6it-abroad-notes-section,.da6it-abroad-source-section,.da6it-abroad-band-empty,
  .da6it-cable-custom,.da6it-cable-gain-conversion,.da6it-cable-path-node,.da6it-cable-source,
  .da6it-cable-compare-builder,.da6it-cable-band-check,.da6it-cable-rec-empty,.da6it-cable-rec-topline,
  .da6it-dx-tool-controls,.da6it-dx-tool-topbar,.da6it-dx-tool-specials label,.da6it-dx-tool-empty,
  .da6it-doctor-working,.da6it-doctor-tabs,.da6it-doctor-issue,.da6it-doctor-action-report,.da6it-doctor-exportbox,.da6it-doctor-repair-example,
  .da6it-qso-radio,.da6it-qso-radio-head,.da6it-qso-live-transcript,.da6it-qso-text-test,.da6it-qso-voice-field,.da6it-qso-log,.da6it-qso-evaluation,
  .da6it-qso-guide-steps li,.da6it-qso-knob,.da6it-qso-role-partner,.da6it-qso-role-note,.da6it-qso-sticky-stop,
  .da6it-sdr-filter,.da6it-sdr-frequency,.da6it-sdr-empty,
  .da6it-shack-hero-note,.da6it-shack-topbar,.da6it-shack-settings,.da6it-shack-path-band,
  .da6it-activation-empty,.da6it-shack-transition-icon,.da6it-shack-trend-list article,
  .da6it-tools-services-section,.da6it-doctor-faq,.da6it-doctor-repair-example
){
  background:var(--da6it-dark-surface)!important;
  color:var(--da6it-dark-text)!important;
  border-color:var(--da6it-dark-border)!important;
}

/* Light-only generic buttons/chips in tools. Primary coloured actions are
   excluded so important Start/Run/Export actions keep their visual hierarchy. */
html[data-da6it-theme="dark"] body :where(
  .da6it-about-btn--ghost,.da6it-catalog-toggle,
  .da6it-dxc-range button:not(.active),
  .da6it-abroad-classes button,.da6it-cable-bandchips button,
  .da6it-dx-tool-filter-grid select,.da6it-dx-tool-search input,
  .da6it-sdr-quick button,.da6it-qso-modebar button
){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border-strong)!important}

/* Home uses several generations of compact cards/action links with numbered
   class names. Treat them consistently without touching the image artwork. */
html[data-da6it-theme="dark"] body :where(
  .da6it-home-free-12520,.da6it-home-free-card-12528,.da6it-home-free-card-12529,.da6it-home-free-card-12532,
  .da6it-home-latest-card,.da6it-home-latest-empty
){background:var(--da6it-dark-surface)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body :where(
  .da6it-home-latest-nav-160 a,.da6it-home-free-mainlink-12520,.da6it-home-free-mainlink-12525,
  .da6it-home-free-mainlink-12526,.da6it-home-free-mainlink-12528,.da6it-home-free-mainlink-12529,.da6it-home-free-mainlink-12532
){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-accent)!important;border-color:var(--da6it-dark-border-strong)!important}

/* Tables/detail rows that use their own background selectors. */
html[data-da6it-theme="dark"] body :where(
  .da6it-dx-tool-detail td,.da6it-dx-tool-table tbody tr.da6it-dx-tool-spot:hover,
  .da6it-dx-tool-table tbody tr.da6it-dx-tool-spot.is-open,
  .da6it-cable-compare-table tbody tr.is-best>*,.da6it-abroad-table tbody td
){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-muted)!important}

/* Preserve semantic state colours but darken their fill. */
html[data-da6it-theme="dark"] body :where(.da6it-abroad-verdict.is-ok,.da6it-shack-paths article.is-good,.da6it-shack-trend-list article.is-up){background:#153022!important;border-color:#2d6041!important}
html[data-da6it-theme="dark"] body :where(.da6it-abroad-verdict.is-warn,.da6it-cable-quality.is-warn,.da6it-shack-paths article.is-low,.da6it-shack-bandgrid article.is-mid,.da6it-opening-row.is-mid,.da6it-opening-row.is-low){background:#302b18!important;border-color:#625731!important}
html[data-da6it-theme="dark"] body :where(.da6it-abroad-verdict.is-no,.da6it-cable-quality.is-bad,.da6it-shack-trend-list article.is-down){background:#321d1d!important;border-color:#674141!important}

/* ========================================================================== 
   Core 1.25.59 · consistency pass
   The first dark-mode releases intentionally avoided broad overrides. Real
   pages showed that several legacy modules own their own light surfaces. The
   selectors below are explicit to the affected components and keep light mode
   untouched.
   ========================================================================== */

/* Theme chrome: some block themes put the actual colour on nested groups. */
html[data-da6it-theme="dark"] body :where(header,footer,header.wp-block-template-part,footer.wp-block-template-part),
html[data-da6it-theme="dark"] body :where(header,footer) :where(.wp-block-group,.wp-block-navigation,.wp-block-navigation__responsive-container){
  background-color:var(--da6it-dark-bg-soft)!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body :where(header,footer) :where(p,a,span,strong){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body :where(header,footer) a:hover{color:var(--da6it-dark-accent)!important}

/* Home: the compact Tools/Services strip is a separate generation of markup. */
html[data-da6it-theme="dark"] body.da6it-home-page-160 .da6it-home-160{
  --h-ink:var(--da6it-dark-text);--h-body:var(--da6it-dark-muted);--h-muted:var(--da6it-dark-subtle);--h-line:var(--da6it-dark-border);
  background:var(--da6it-dark-bg)!important;color:var(--da6it-dark-muted)!important;
}
html[data-da6it-theme="dark"] body.da6it-home-page-160 :where(.da6it-home-editorial-160,.da6it-home-free-12532){
  background:var(--da6it-dark-bg)!important;border-color:var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body.da6it-home-page-160 #da6it-home-tools.da6it-home-free-12532{
  background:linear-gradient(180deg,#0e1917 0%,#12211e 100%)!important;border-color:var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body.da6it-home-page-160 :where(.da6it-home-free-copy-12532 h2,.da6it-home-free-cardcopy-12532 h3){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-home-page-160 :where(.da6it-home-free-copy-12532 p,.da6it-home-free-cardcopy-12532 p){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.da6it-home-page-160 .da6it-home-free-card-12532,
html[data-da6it-theme="dark"] body.da6it-home-page-160 .da6it-home-free-card-12532:nth-child(2),
html[data-da6it-theme="dark"] body.da6it-home-page-160 .da6it-home-free-card-12532:nth-child(3),
html[data-da6it-theme="dark"] body.da6it-home-page-160 .da6it-home-free-card-12532:nth-child(5),
html[data-da6it-theme="dark"] body.da6it-home-page-160 .da6it-home-free-card-12532:nth-child(6){
  background:linear-gradient(115deg,#14201e 0%,#14201e 68%,#192825 100%)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important;
}
html[data-da6it-theme="dark"] body.da6it-home-page-160 :where(.da6it-home-free-mainlink-12532){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-accent)!important;border-color:var(--da6it-dark-border-strong)!important}

/* Snippet singles: remove the theme's extra white card and keep the custom hero. */
html[data-da6it-theme="dark"] body.single-snippet,
html[data-da6it-theme="dark"] body.single-snippet :where(main,main>.wp-block-group,main>.is-layout-constrained,.wp-block-post-content,.entry-content){background:var(--da6it-dark-bg)!important;color:var(--da6it-dark-text)!important;box-shadow:none!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-single{--ss-ink:var(--da6it-dark-text);--ss-body:var(--da6it-dark-muted);--ss-line:var(--da6it-dark-border)}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-single-hero{background:linear-gradient(135deg,#111e1b,#172925)!important}
html[data-da6it-theme="dark"] body.single-snippet :where(.da6it-snippet-single-lead,.wp-block-post-content p,.wp-block-post-content li){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-single-image{background:#dfe9e6!important}

/* QSO Trainer: every operational surface belongs to the radio, no white islands. */
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page :where(.da6it-qso-app-section,.da6it-qso-radio,.da6it-qso-panel,.da6it-qso-role-card,.da6it-qso-info-grid article,.da6it-qso-guide,.da6it-qso-scenarios){background:var(--da6it-dark-surface)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page :where(.da6it-qso-radio-head,.da6it-qso-panel-title,.da6it-qso-statusline,.da6it-qso-live-transcript,.da6it-qso-text-test,.da6it-qso-voice-field,.da6it-qso-evaluation,.da6it-qso-dsp-note,.da6it-qso-role-partner,.da6it-qso-role-note,.da6it-qso-preflight-toggle){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-log{background:linear-gradient(180deg,#101b19,#14201e)!important;color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-empty{color:var(--da6it-dark-subtle)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-message>p{background:#1a2a26!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-message.is-user>p{background:#17302a!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-message.is-partner>p{background:#15302e!important;border-color:#28534e!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-message.is-trainer>p{background:#2b2819!important;color:#ddcf97!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page :where(.da6it-qso-modebar button,.da6it-qso-guide-steps li,.da6it-qso-scenario,.da6it-qso-knob,.da6it-qso-sticky-stop){background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page :where(.da6it-qso-modebar button strong,.da6it-qso-guide-steps strong,.da6it-qso-scenario strong,.da6it-qso-knob strong){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-sticky-operate{background:rgba(16,28,25,.96)!important;border-color:var(--da6it-dark-border-strong)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-consent-card{background:linear-gradient(155deg,#14201e,#192825)!important;border-color:var(--da6it-dark-border-strong)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-consent-card :where(h2,p){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-consent-note{background:#17302a!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important}

/* DX Cluster operating view. */
html[data-da6it-theme="dark"] body .da6it-dx-tool-app-section{background:var(--da6it-dark-bg)!important}
html[data-da6it-theme="dark"] body :where(.da6it-dx-tool-controls,.da6it-dx-tool-topbar,.da6it-dx-tool-summary,.da6it-dx-tool-table-wrap){background:var(--da6it-dark-surface)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-topbar{background:var(--da6it-dark-surface-2)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-filter-grid :where(label>span){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-filter-grid :where(select,input),
html[data-da6it-theme="dark"] body .da6it-dx-tool-search input{background:#172723!important;color:var(--da6it-dark-text)!important;border-color:var(--da6it-dark-border-strong)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-unit b{background:#1c302b!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border-strong)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-specials{border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-specials label{background:#1a2b27!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-summary{gap:1px;background:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-summary div{background:#14201e!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-summary strong{color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-summary span{color:var(--da6it-dark-subtle)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-table thead th{background:#192825!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-table tbody td{background:#12201d!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-table tbody tr.da6it-dx-tool-spot:hover td,
html[data-da6it-theme="dark"] body .da6it-dx-tool-table tbody tr.da6it-dx-tool-spot.is-open td{background:#19302b!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-table tbody tr.da6it-dx-tool-spot.is-new td{background:#173424!important}
html[data-da6it-theme="dark"] body :where(.da6it-dx-call strong,.da6it-dx-time strong,.da6it-dx-spotter strong,.da6it-dx-band){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body :where(.da6it-dx-call span,.da6it-dx-spotter span,.da6it-dx-time span,.da6it-dx-info p){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-detail td{background:#14201e!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-detail-grid{background:var(--da6it-dark-border)!important}
html[data-da6it-theme="dark"] body .da6it-dx-tool-detail-grid>div{background:#192825!important}

/* Generic shortcode/app page wrappers should not introduce a light slab. */
html[data-da6it-theme="dark"] body :where(.da6it-qso-trainer-page,.da6it-tools-page) main,
html[data-da6it-theme="dark"] body :where(.da6it-qso-trainer-page,.da6it-tools-page) :where(.wp-block-post-content,.entry-content){background:var(--da6it-dark-bg)!important}

/* ========================================================================== 
   Core 1.25.60 · final dark-mode polish
   Targeted fixes from live visual review. Keep already-correct modules intact.
   ========================================================================== */

/* Tools overview: the featured software artwork stays natural, while the copy
   half becomes a real dark card instead of a white island. */
html[data-da6it-theme="dark"] body.da6it-tools-page .da6it-tools-software-feature{
  background:var(--da6it-dark-surface)!important;
  border-color:var(--da6it-dark-border)!important;
  box-shadow:none!important;
}
html[data-da6it-theme="dark"] body.da6it-tools-page .da6it-tools-software-copy{
  background:linear-gradient(135deg,#14201e,#182724)!important;
  color:var(--da6it-dark-muted)!important;
}
html[data-da6it-theme="dark"] body.da6it-tools-page .da6it-tools-software-copy h3{color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-tools-page .da6it-tools-software-copy p{color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.da6it-tools-page .da6it-tools-service-pill{
  background:#19302b!important;color:#70ddd2!important;border:1px solid #355a52!important;
}

/* QSO Trainer: the privacy strip lives outside the radio surface and therefore
   needs its own dark treatment. */
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-privacy{
  background:#14201e!important;color:var(--da6it-dark-muted)!important;
  border-color:var(--da6it-dark-border)!important;box-shadow:none!important;
}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-privacy strong{color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-qso-trainer-page .da6it-qso-privacy a{color:var(--da6it-dark-accent)!important}

/* Cable calculator: use the same dark palette for input and result sides. */
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-v1{
  --cb-ink:var(--da6it-dark-text);--cb-line:var(--da6it-dark-border);
  color:var(--da6it-dark-muted)!important;
}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page :where(
  .da6it-cable-app-section,.da6it-cable-form,.da6it-cable-results,.da6it-cable-form-section,
  .da6it-cable-result-head,.da6it-cable-signal-path,.da6it-cable-source
){background:var(--da6it-dark-surface)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-signal-path{
  background:linear-gradient(135deg,#101c1a,#172724)!important;
}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page :where(
  .da6it-cable-input-unit,.da6it-cable-gain-conversion,.da6it-cable-custom,.da6it-cable-path-node
){background:var(--da6it-dark-surface-2)!important;border-color:var(--da6it-dark-border-strong)!important;color:var(--da6it-dark-muted)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page :where(
  .da6it-cable-form-heading strong,.da6it-cable-field>span,.da6it-cable-path-node strong,
  .da6it-cable-kpis strong,.da6it-cable-result-head h3
){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page :where(
  .da6it-cable-form-heading small,.da6it-cable-field>small,.da6it-cable-input-unit>b,
  .da6it-cable-path-node small,.da6it-cable-kpis small,.da6it-cable-kpis span,.da6it-cable-source
){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-kpis{
  background:var(--da6it-dark-border)!important;border-color:var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-kpis article{background:#14201e!important}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-bandchips button{
  background:#172723!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border-strong)!important;
}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-bandchips button:is(:hover,.is-active){
  background:#193b34!important;color:#70ddd2!important;border-color:#397265!important;
}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-quality.is-good{background:#173522!important;color:#9be48a!important}
html[data-da6it-theme="dark"] body.da6it-cable-calculator-page .da6it-cable-quality.is-mid{background:#173330!important;color:#7addd5!important}

/* Shack Dashboard: the dashboard shell and live band-opening rows must follow
   the dark cards instead of keeping their legacy mint/white fill. */
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-shack-v1{
  --sh-ink:var(--da6it-dark-text);--sh-muted:var(--da6it-dark-muted);--sh-line:var(--da6it-dark-border);--sh-bg:var(--da6it-dark-bg);
}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page :where(.da6it-shack-app-section,.da6it-shack-dashboard){
  background:var(--da6it-dark-bg)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important;
}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-shack-grid{
  background:linear-gradient(135deg,#0d1715,#111f1c)!important;
}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-opening-row,
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-opening-row.is-low{
  background:#172522!important;border-color:var(--da6it-dark-border)!important;color:var(--da6it-dark-muted)!important;
}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-opening-row.is-good{
  background:#173522!important;border-color:#356444!important;color:#b8e8ae!important;
}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-opening-row.is-mid{
  background:#173330!important;border-color:#315d58!important;color:#9bd8d2!important;
}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-opening-row :where(strong,b){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-opening-row p{color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-activation-group-head em{
  background:#172723!important;color:var(--da6it-dark-muted)!important;border:1px solid var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-activation-group-head em.is-ok{background:#173522!important;color:#9be48a!important}
html[data-da6it-theme="dark"] body.da6it-shack-dashboard-page .da6it-activation-group-head em.is-cluster{background:#173330!important;color:#7addd5!important}
html[data-da6it-theme="dark"] body.da6it-shack-is-fullscreen{background:var(--da6it-dark-bg)!important}

/* DX Dash: most unreadable values inherited the old light-theme --dx-ink.
   Override the component variables first so all analytics views inherit the
   right contrast, then catch a handful of hard-coded value labels. */
html[data-da6it-theme="dark"] body.da6it-dxc-page .da6it-dxc{
  --dx-ink:var(--da6it-dark-text);--dx-muted:var(--da6it-dark-muted);--dx-line:var(--da6it-dark-border);
  --dx-card:var(--da6it-dark-surface);--dx-bg:var(--da6it-dark-bg);--dx-green-soft:#173522;--dx-green-dark:#70ddd2;
  background:var(--da6it-dark-bg)!important;color:var(--da6it-dark-muted)!important;
}
html[data-da6it-theme="dark"] body.da6it-dxc-page :where(
  .da6it-dxc-ui-value,.da6it-dxc-value,.da6it-dxc-panel-title,.da6it-dxc-peer-value-number .da6it-dxc-ui-value,
  .da6it-dxc-peer-value-row>div:nth-child(2)>.da6it-dxc-ui-value,.da6it-dxc-peer-bar-head .da6it-dxc-ui-value,
  .da6it-dxc-contrib-value
){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.da6it-dxc-page :where(
  .da6it-dxc-label,.da6it-dxc-note,.da6it-dxc-peer-bar-head span,.da6it-dxc-peer-bar-row small,
  .da6it-dxc-peer-value-row>div:nth-child(2)>small,.da6it-dxc-peer-value-number span,
  .da6it-dxc-peer-contrib-table td,.da6it-dxc-peer-contrib-table th
){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.da6it-dxc-page :where(.da6it-dxc-peer-bar-track){background:#20312d!important}
html[data-da6it-theme="dark"] body.da6it-dxc-page :where(.da6it-dxc-peer-value-rank,.da6it-dxc-state-pill){background:#173522!important;color:#9be48a!important;border-color:#356444!important}

/* Single Config-Snippets: remove the final theme-owned white slab and make
   manually inserted background groups / notice blocks obey the site theme. */
html[data-da6it-theme="dark"] body.single-snippet :where(
  .wp-site-blocks>main,main,main>article,article,.wp-block-post-content,.entry-content,
  .wp-block-post-content>.wp-block-group,.entry-content>.wp-block-group
){background:var(--da6it-dark-bg)!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body.single-snippet .wp-block-post-content :where(.has-background,.wp-block-group.has-background){
  background:var(--da6it-dark-surface-2)!important;color:var(--da6it-dark-muted)!important;border-color:var(--da6it-dark-border)!important;
}
html[data-da6it-theme="dark"] body.single-snippet .wp-block-post-content :where(.has-background p,.has-background li){color:var(--da6it-dark-muted)!important}
html[data-da6it-theme="dark"] body.single-snippet .wp-block-post-content :where(.has-background strong){color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-note{
  background:#2b2819!important;color:#e2d69e!important;border-color:#6a5d30!important;
}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-note strong{color:#f0dda0!important}

/* Core 1.25.61 · final single-snippet shell fix.
   The active block theme wraps the Config-Snippet in an additional white
   container outside .wp-block-post-content. dark-mode.js tags the actual
   ancestor chain so this theme-owned shell cannot stay light. */
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-theme-shell{
  background:var(--da6it-dark-bg)!important;
  background-color:var(--da6it-dark-bg)!important;
  color:var(--da6it-dark-muted)!important;
  border-color:var(--da6it-dark-border)!important;
  box-shadow:none!important;
}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-template-notice,
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-template-notice-shell{
  background:#132421!important;
  background-color:#132421!important;
  color:#b8cbc6!important;
  border:1px solid #2d4f48!important;
  box-shadow:none!important;
}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-template-notice{
  padding:1rem 1.15rem!important;
  border-radius:14px!important;
}
html[data-da6it-theme="dark"] body.single-snippet .da6it-snippet-template-notice strong{
  color:#8ee875!important;
}


/* Core 1.25.62 · language switcher dark-mode polish.
   The block theme styles this control as a very bright mint/white capsule;
   keep the same compact segmented shape but make it belong to the dark header. */
html[data-da6it-theme="dark"] .da6it-language-switcher{
  background:#13201e!important;
  background-color:#13201e!important;
  border:1px solid #2b4741!important;
  box-shadow:0 4px 12px rgba(0,0,0,.18)!important;
  color:#8eaaa4!important;
}
html[data-da6it-theme="dark"] .da6it-language-switcher .da6it-language-link{
  background:transparent!important;
  background-color:transparent!important;
  color:#8eaaa4!important;
  border-color:transparent!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
html[data-da6it-theme="dark"] .da6it-language-switcher a.da6it-language-link:hover,
html[data-da6it-theme="dark"] .da6it-language-switcher a.da6it-language-link:focus-visible{
  background:#1a2e2a!important;
  background-color:#1a2e2a!important;
  color:#dff3ee!important;
}
html[data-da6it-theme="dark"] .da6it-language-switcher .da6it-language-link.is-current{
  background:#24423b!important;
  background-color:#24423b!important;
  color:#f2fbf8!important;
  box-shadow:inset 0 0 0 1px #355e55!important;
}


/* Core 1.25.69 – footer support links and approved DA6IT dark logo. */
html[data-da6it-theme="dark"] body .da6it-support-heading{color:var(--da6it-dark-text)!important}
html[data-da6it-theme="dark"] body .da6it-support-links{display:flex;flex-wrap:wrap;gap:.65rem}
html[data-da6it-theme="dark"] body .da6it-support-link{background:#162421!important;color:#e8f3f0!important;border:1px solid #31504a!important;box-shadow:none!important;text-decoration:none!important}
html[data-da6it-theme="dark"] body .da6it-support-link:hover{background:#1b302b!important;border-color:#47736a!important;color:#fff!important}
html[data-da6it-theme="dark"] body .da6it-support-link span:not(.da6it-support-icon){color:#e8f3f0!important}
html[data-da6it-theme="dark"] body .da6it-support-link-coffee .da6it-support-icon{color:#1b1b16!important}
html[data-da6it-theme="dark"] body .da6it-support-link-paypal .da6it-support-icon{color:#fff!important}
html[data-da6it-theme="dark"] body .da6it-about-callout{background:linear-gradient(135deg,#14201e,#192825)!important;border-color:var(--da6it-dark-border)!important;box-shadow:none!important}
html[data-da6it-theme="dark"] body img[data-da6it-dark-logo="1"]{filter:none!important}
/* Immediate CSS fallback so the dark logo is present before footer JS runs. */
html[data-da6it-theme="dark"] body :where(.wp-block-site-logo img,.da6it-home-logo-visual-160 img){content:url("../home/da6it-logo-dark.webp")}
