/* KWIRS V7 public colour modes. Loaded after the selected visual theme so
   dark-mode values consistently override Classic, Digital and Editorial. */
html[data-color-mode="dark"]{color-scheme:dark}
html[data-color-mode="dark"] body{
  --ink:#eef6f2!important;--muted:#a7b9b0!important;--line:#29483b!important;--soft:#0d1d17!important;
  --green-50:#112b21!important;--green-100:#153b2c!important;--white:#102019!important;
  --shadow-sm:0 8px 24px rgba(0,0,0,.22)!important;--shadow:0 18px 50px rgba(0,0,0,.28)!important;--shadow-lg:0 28px 80px rgba(0,0,0,.36)!important;
  background:#08130f!important;color:var(--ink)!important
}
html[data-color-mode="dark"] body h1,html[data-color-mode="dark"] body h2,html[data-color-mode="dark"] body h3,html[data-color-mode="dark"] body h4,html[data-color-mode="dark"] body h5,html[data-color-mode="dark"] body h6{color:var(--ink)}
html[data-color-mode="dark"] body .site-header,html[data-color-mode="dark"] body .header-main,html[data-color-mode="dark"] body .main-nav,html[data-color-mode="dark"] body .dropdown,html[data-color-mode="dark"] body .mega-menu{background:#0c1b15!important;color:var(--ink);border-color:var(--line)!important}
html[data-color-mode="dark"] body .main-nav a,html[data-color-mode="dark"] body .dropdown a,html[data-color-mode="dark"] body .mega-menu a{color:#e5f1eb}
html[data-color-mode="dark"] body .color-mode-toggle,html[data-color-mode="dark"] body .search-toggle,html[data-color-mode="dark"] body .menu-toggle{background:#13271e!important;border-color:#315344!important;color:#f1d173!important}
html[data-color-mode="dark"] body .section,html[data-color-mode="dark"] body .taxpayer-section,html[data-color-mode="dark"] body .about-theme-section,html[data-color-mode="dark"] body .news-theme-section,html[data-color-mode="dark"] body .partners-section{background:#08130f!important}
html[data-color-mode="dark"] body .section-soft,html[data-color-mode="dark"] body .vision-mission-section,html[data-color-mode="dark"] body .quick-link-section{background:#0b1813!important}
html[data-color-mode="dark"] body .stats-theme-band{background:#0d1d17!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .taxpayer-card,html[data-color-mode="dark"] body .service-theme-card,html[data-color-mode="dark"] body .quick-theme-card,html[data-color-mode="dark"] body .news-theme-card,html[data-color-mode="dark"] body .news-list-card,html[data-color-mode="dark"] body .news-list-content,html[data-color-mode="dark"] body .sidebar-widget,html[data-color-mode="dark"] body .content-surface,html[data-color-mode="dark"] body .inner-side-card,html[data-color-mode="dark"] body .career-application-card,html[data-color-mode="dark"] body .partner-card,html[data-color-mode="dark"] body .newsroom-count,html[data-color-mode="dark"] body .article-surface,html[data-color-mode="dark"] body .service-card,html[data-color-mode="dark"] body .info-card,html[data-color-mode="dark"] body .document-card,html[data-color-mode="dark"] body .faq-item,html[data-color-mode="dark"] body .calc-box,html[data-color-mode="dark"] body .office-card,html[data-color-mode="dark"] body .management-card,html[data-color-mode="dark"] body .vision-panel,html[data-color-mode="dark"] body .igr-chart-card{background:#102019!important;border-color:var(--line)!important;color:var(--ink)!important;box-shadow:0 14px 42px rgba(0,0,0,.18)!important}
html[data-color-mode="dark"] body .newsroom-page-section,html[data-color-mode="dark"] body .inner-page-section,html[data-color-mode="dark"] body .article-page-section{background:linear-gradient(180deg,#0d1d17,#08130f 260px)!important}
html[data-color-mode="dark"] body .sidebar-feature-widget,html[data-color-mode="dark"] body .support-card{background:linear-gradient(145deg,#063e2c,#075d3d)!important}
html[data-color-mode="dark"] body .sidebar-newsletter-widget{background:#211f17!important;border-color:#4f4730!important}
html[data-color-mode="dark"] body .news-list-title,html[data-color-mode="dark"] body .partner-card strong,html[data-color-mode="dark"] body .sidebar-latest-item strong{color:var(--ink)!important}
html[data-color-mode="dark"] body .news-list-excerpt,html[data-color-mode="dark"] body .content-wrap p,html[data-color-mode="dark"] body .content-wrap li,html[data-color-mode="dark"] body .sidebar-category-list a,html[data-color-mode="dark"] body .form-group label,html[data-color-mode="dark"] body .service-card p,html[data-color-mode="dark"] body .info-card p,html[data-color-mode="dark"] body .document-card p,html[data-color-mode="dark"] body .office-card p,html[data-color-mode="dark"] body .management-copy p,html[data-color-mode="dark"] body .faq-a,html[data-color-mode="dark"] body .lead-copy{color:#b2c4bb!important}
html[data-color-mode="dark"] body .form-control,html[data-color-mode="dark"] body .filterbar input,html[data-color-mode="dark"] body .filterbar select,html[data-color-mode="dark"] body .sidebar-search-form input,html[data-color-mode="dark"] body .sidebar-newsletter-form input{background:#0b1812!important;border-color:#315043!important;color:#edf6f1!important}
html[data-color-mode="dark"] body .btn-outline{background:#102019!important;color:#dff1e8!important;border-color:#365a49!important}
html[data-color-mode="dark"] body .content-wrap td{background:#102019!important;color:#d9e7e0!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .content-wrap tr:nth-child(even) td{background:#0d1b15!important}
html[data-color-mode="dark"] body .content-wrap blockquote{background:#1b211b!important;color:#dce9e2!important}
html[data-color-mode="dark"] body .subpage-feature-grid>article{background:linear-gradient(145deg,#102019,#0c1a14)!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .igr-table th{background:#173226!important;color:#eff7f3!important}html[data-color-mode="dark"] body .igr-table td{background:#102019!important;color:#dce9e2!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .calc-result{background:#14291f!important;border-color:#345144!important;color:#eaf5ef!important}
html[data-color-mode="dark"] body.theme-editorial .sidebar-widget,html[data-color-mode="dark"] body.theme-editorial .content-surface,html[data-color-mode="dark"] body.theme-editorial .inner-side-card,html[data-color-mode="dark"] body.theme-editorial .career-application-card,html[data-color-mode="dark"] body.theme-editorial .partner-card{background:#151912!important;border-color:#444837!important}
html[data-color-mode="dark"] body.theme-editorial .partners-section{background:#0d120e!important}

/* V7.1 contrast audit — loaded last on purpose. */
html[data-color-mode="dark"] body .mega-column h3{color:#9eb8ac!important}
html[data-color-mode="dark"] body .mega-column li{border-color:#29483b!important}
html[data-color-mode="dark"] body .mega-column a{color:#edf6f1!important}
html[data-color-mode="dark"] body .mega-column a:hover,html[data-color-mode="dark"] body .mega-column a b{color:#7fe0b2!important}
html[data-color-mode="dark"] body .mega-feature{background:#172a21!important;border-color:#315043!important}
html[data-color-mode="dark"] body .mega-feature-copy strong{color:#f2f8f5!important}
html[data-color-mode="dark"] body .mega-feature-copy p{color:#afc2b8!important}
html[data-color-mode="dark"] body .mega-feature-copy a{color:#8be3b8!important}
html[data-color-mode="dark"] body .content-wrap a{color:#82dcb2!important}
html[data-color-mode="dark"] body .eodb-directory,html[data-color-mode="dark"] body .career-fieldset,html[data-color-mode="dark"] body .career-submit-panel{background:#102019!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-color-mode="dark"] body .eodb-link-card{background:linear-gradient(145deg,#11221a,#0c1a14)!important;border-color:#29483b!important}
html[data-color-mode="dark"] body .eodb-link-body strong{color:#e6f1eb!important}
html[data-color-mode="dark"] body .career-fieldset legend{background:linear-gradient(90deg,#14291f,#102019)!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .career-fieldset legend strong,html[data-color-mode="dark"] body .qualification-block h3{color:#edf6f1!important}
html[data-color-mode="dark"] body .career-submit-panel .career-form-consent span{color:#c6d6ce!important}
html[data-color-mode="dark"] body .faq-q{background:#102019!important;color:#edf6f1!important}
@media(max-width:980px){
  html[data-color-mode="dark"] body .has-mega>.mega-menu,html[data-color-mode="dark"] body .mega-menu-inner{background:#0f2119!important}
}
html[data-color-mode="dark"] body .news-card,html[data-color-mode="dark"] body .news-body,html[data-color-mode="dark"] body .quick-tile,html[data-color-mode="dark"] body .stat-card{background:#102019!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-color-mode="dark"] body .news-body p{color:#aebfb6!important}
html[data-color-mode="dark"] body .search-panel,html[data-color-mode="dark"] body .action-bar-grid{background:#0d1d17!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .search-label{color:#edf6f1!important}
html[data-color-mode="dark"] body .notice-bar{background:#211f17!important;border-color:#50462f!important;color:#e7dcbf!important}
html[data-color-mode="dark"] body .action-bar-item{border-color:var(--line)!important;color:#e6f1eb!important}
html[data-color-mode="dark"] body .action-bar-item:hover{background:#12271e!important}
html[data-color-mode="dark"] body .action-bar-item strong{color:#edf6f1!important}
html[data-color-mode="dark"] body .content-wrap ul:not([class])>li,html[data-color-mode="dark"] body .content-wrap ol:not([class])>li{background:linear-gradient(145deg,#102019,#0c1a14)!important;border-color:var(--line)!important;color:#c2d2ca!important}
html[data-color-mode="dark"] body .inner-side-nav a{color:#b7c9c0!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .inner-side-nav a:hover,html[data-color-mode="dark"] body .inner-side-nav a.active{color:#7fe0b2!important}
html[data-color-mode="dark"] body .section-kicker,html[data-color-mode="dark"] body .eyebrow,html[data-color-mode="dark"] body .sidebar-widget-kicker,html[data-color-mode="dark"] body .meta{color:#79d7aa!important}
html[data-color-mode="dark"] body .badge{background:#173629!important;color:#8be0b5!important}
html[data-color-mode="dark"] body .text-link,html[data-color-mode="dark"] body .section-link{color:#82dcb2!important}
html[data-color-mode="dark"] body .filterbar .btn-outline{background:#102019!important;color:#dff1e8!important;border-color:#365a49!important}

/* V7.2 dark-mode coverage for newly structured public content. */
html[data-color-mode="dark"] body .public-table-shell,
html[data-color-mode="dark"] body .tax-jurisdiction-card,
html[data-color-mode="dark"] body .tax-types-intro,
html[data-color-mode="dark"] body .management-featured-card,
html[data-color-mode="dark"] body .management-profile-card,
html[data-color-mode="dark"] body .faq-result-count,
html[data-color-mode="dark"] body .faq-empty,
html[data-color-mode="dark"] body .vehicle-rates-content .rates-intro{background:#102019!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-color-mode="dark"] body .public-table-toolbar{background:#14291f;border-color:var(--line)}
html[data-color-mode="dark"] body .public-table-toolbar label,
html[data-color-mode="dark"] body .tax-type-search{background:#0b1812;border-color:#315043;color:#8fe0b8}
html[data-color-mode="dark"] body .public-table-toolbar input,
html[data-color-mode="dark"] body .tax-type-search input{color:#edf6f1}
html[data-color-mode="dark"] body .content-wrap .public-table-shell table,
html[data-color-mode="dark"] body .content-wrap .public-table-shell td{background:#102019;color:#dce9e2;border-color:var(--line)}
html[data-color-mode="dark"] body .content-wrap .public-table-shell tbody tr:nth-child(even) td{background:#12251c}
html[data-color-mode="dark"] body .content-wrap .public-table-shell tbody tr:hover td{background:#173127}
html[data-color-mode="dark"] body .tax-type-item span,
html[data-color-mode="dark"] body .management-bio,
html[data-color-mode="dark"] body .management-intro-grid>p,
html[data-color-mode="dark"] body .article-content p{color:#b3c4bb!important}
html[data-color-mode="dark"] body .tax-type-item:hover{background:#173127}
html[data-color-mode="dark"] body .management-count{background:#102019;border-color:var(--line);color:#aebfb6}
html[data-color-mode="dark"] body .faq-q-copy strong{color:#edf6f1}
html[data-color-mode="dark"] body .faq-toggle-icon{background:#173629;color:#8be0b5}
html[data-color-mode="dark"] body .content-note{background:#2c2818;color:#e7dba9!important;border-left-color:#d4af5e}
html[data-color-mode="dark"] body .hero-trust-card{background:rgba(245,250,247,.97)!important;color:#10231e!important}
html[data-color-mode="dark"] body .hero-trust-card .hero-trust-row strong{color:#10231e!important}
html[data-color-mode="dark"] body .hero-trust-card .hero-trust-row small{color:#53665d!important}

/* V7.2 final public table contrast. */
html[data-color-mode="dark"] body .public-table-shell table,
html[data-color-mode="dark"] body .public-table-shell td{background:#102019!important;color:#dce9e2!important;border-color:var(--line)!important}
html[data-color-mode="dark"] body .public-table-shell tbody tr:nth-child(even) td{background:#12251c!important}
html[data-color-mode="dark"] body .public-table-shell tbody tr:hover td{background:#173127!important}
html[data-color-mode="dark"] body .public-table-count{color:#b8c9c0!important}
html[data-color-mode="dark"] body .management-bio-collapsible:not(.is-expanded):after{background:linear-gradient(transparent,#102019)}
html[data-color-mode="dark"] body .management-bio-toggle{color:#82dcb2}

/* V7.3 support tools in dark mode. */
html[data-color-mode="dark"] body .support-chat-panel{background:#0f1d17;border-color:#315043}
html[data-color-mode="dark"] body .support-chat-body{background:linear-gradient(180deg,#0e1b15,#0b1712)}
html[data-color-mode="dark"] body .chat-message.assistant{background:#14271e;border-color:#315043;color:#dce9e2}
html[data-color-mode="dark"] body .chat-message-links a{background:#173629;color:#92e5be}
html[data-color-mode="dark"] body .chat-message-source{color:#91a99d}
html[data-color-mode="dark"] body .chat-quick-actions button{background:#102019;border-color:#315043;color:#8fe0b8}
html[data-color-mode="dark"] body .support-chat-form{background:#102019;border-color:#315043}
html[data-color-mode="dark"] body .support-chat-form input{background:#0b1812;border-color:#315043;color:#edf6f1}
html[data-color-mode="dark"] body .support-chat-foot{background:#0c1712;border-color:#29483b;color:#9eb3a8}
