/* Kakanj-X 2.1.7 — targeted homepage tabs and article readability dark mode.
   Only activates with selected dark theme; all preceding site design remains untouched. */
body.kx-portal-theme-213.kx-theme-dark {
 --kx217-bg:#11161d;--kx217-surface:#1b232d;--kx217-surface-2:#222e3b;
 --kx217-border:#354453;--kx217-text:#ecf2f7;--kx217-muted:#aebfcd;
 --kx217-accent:#b0e48b;
}
/* HOMEPAGE: the two headline tabs in top right column. */
body.kx-theme-dark .kx-klix-2026 .kx-top-aside {
 background:#1b232d!important;border:1px solid #354453!important;
 border-radius:12px!important;padding:12px!important;color:#edf2f7!important;
 min-width:0;box-shadow:0 5px 18px rgba(0,0,0,.12);
}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-aside-tabs {
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
 background:#101820!important;border:1px solid #3b4a59!important;
 border-radius:9px!important;margin:0 0 6px!important;padding:3px!important;
 overflow:hidden;gap:3px;
}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-aside-tabs button {
 appearance:none;background:transparent!important;color:#b7c5d2!important;
 box-shadow:none!important;border:0!important;border-radius:7px!important;
 padding:11px 7px!important;font-weight:750!important;line-height:1.3;
 cursor:pointer;transition:background-color .16s,color .16s;
}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-aside-tabs button.active,
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-aside-tabs button[aria-selected="true"] {
 background:#304636!important;color:#d4f2bd!important;
 box-shadow:inset 0 0 0 1px #628452!important;
}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-aside-tabs button:hover:not(.active){background:#293440!important;color:#f3f7fa!important}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-aside-panel {
 background:transparent!important;border:0!important;padding:0!important;
 color:#edf2f7!important;box-shadow:none!important;
}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-aside-panel[hidden]{display:none!important}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-side-link {
 display:block!important;padding:12px 8px!important;margin:0!important;
 background:transparent!important;border:0!important;border-bottom:1px solid #354453!important;
 text-decoration:none!important;transition:background-color .15s;
}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-side-link:last-child{border-bottom:0!important}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-side-link:hover{background:#273542!important;border-radius:6px}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-side-link strong {
 display:block;color:#f0f4f8!important;font-size:13px!important;
 font-weight:740!important;line-height:1.44!important;margin:5px 0!important;
}
body.kx-theme-dark .kx-klix-2026 .kx-top-aside .kx-side-link small {color:#b2c2ce!important;font-size:11px!important}
/* ARTICLE: main reading surface. Older styles hard-code white with !important. */
body.kx-theme-dark .article-shell.kx-article-layout-149>.article.kx-article-149 {
 background:#1b232d!important;border:1px solid #354453!important;
 color:#edf2f7!important;border-radius:12px!important;
 box-shadow:0 12px 34px rgba(0,0,0,.12)!important;
}
body.kx-theme-dark .article-shell .kx-article-149>h1 {
 color:#f3f6f9!important;letter-spacing:-.025em!important;
 text-shadow:none!important;
}
body.kx-theme-dark .article-shell .kx-article-149>.kicker {color:#b7e38e!important}
body.kx-theme-dark .article-shell .kx-article-149 .cover,
body.kx-theme-dark .article-shell .kx-article-149 .kx-slider,
body.kx-theme-dark .article-shell .kx-article-149 .kx-cover-caption,
body.kx-theme-dark .article-shell .kx-article-149 .kx-slider-caption {
 background:#1b232d!important;border-color:#354453!important;
}
body.kx-theme-dark .article-shell .kx-article-149 .kx-cover-caption,
body.kx-theme-dark .article-shell .kx-article-149 .kx-slider-caption {color:#b3c1cd!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-grid-153,
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 {background:transparent!important;color:#e9f0f6!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .kx-article-lead-149 {
 color:#ecf3f8!important;background:#243443!important;
 border:0!important;border-left:3px solid #89bc64!important;
 border-radius:5px!important;padding:12px 15px!important;
 font-size:19px!important;line-height:1.58!important;
}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body,
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body p,
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body li {
 background:transparent!important;color:#e6edf4!important;
 line-height:1.72!important;letter-spacing:0!important;
}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body :is(h2,h3,h4,h5,h6),
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body :is(strong,b){color:#f4f7fa!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body a {color:#b6e58b!important;text-decoration-color:#638b53!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body blockquote {
 background:#23313e!important;color:#dce8f1!important;
 border-left:3px solid #85c266!important;padding:12px 18px!important;
 border-radius:5px!important;
}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body :is(th,td){background:#202b37!important;color:#e6eef5!important;border-color:#394957!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body hr{border-color:#445261!important}
/* Left author/share rail and metrics: older CSS has explicit #fff backgrounds. */
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-sticky-153>div,
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-sticky-153>a,
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-share-153,
body.kx-theme-dark .article-shell .kx-article-149 .kx-extras-box-157 {
 background:#222e3b!important;color:#edf3f8!important;
 border:1px solid #3a4a59!important;box-shadow:none!important;
}
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-sticky-153 :is(strong,time,.kx-rail-name-153,.kx-extras-head-157,.kx-extra-title-157) {color:#edf3f7!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-sticky-153 :is(.kx-rail-eyebrow-153,.kx-rail-detail-153>span,.kx-rail-feedback-153,.kx-extra-meta-157){color:#b3c1cd!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-social-153 :is(a,button),
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-actions-157 button {
 background:#2b3947!important;color:#e6f0f7!important;
 border:1px solid #425366!important;
}
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-social-153 :is(a,button):hover,
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-actions-157 button:hover{background:#364c3b!important;color:#d0f0b8!important}
body.kx-theme-dark .article-shell .kx-article-149 .kx-rail-shares-157{background:#284332!important;color:#d7f3c7!important}
/* Right-hand article sidebar: newest articles, jobs, whistleblower and promotion. */
body.kx-theme-dark .article-shell .kx-article-aside-161 .kx-aside-panel-161,
body.kx-theme-dark .article-shell .kx-article-aside-161 .kx-aside-sponsored-161 {
 background:#1e2935!important;color:#e9f0f7!important;
 border:1px solid #354453!important;box-shadow:none!important;
}
body.kx-theme-dark .article-shell .kx-article-aside-161 .kx-aside-panel-header-161{border-bottom:1px solid #394958!important}
body.kx-theme-dark .article-shell .kx-article-aside-161 .kx-aside-panel-header-161 :is(h2,a){color:#eef3f8!important}
body.kx-theme-dark .article-shell .kx-article-aside-161 .kx-aside-eyebrow-161{color:#b0e48b!important}
body.kx-theme-dark .article-shell .kx-article-aside-161 :is(.kx-aside-news-item-161,.kx-aside-line-161){background:transparent!important;border-color:#3b4b59!important;color:#edf2f7!important}
body.kx-theme-dark .article-shell .kx-article-aside-161 :is(.kx-aside-news-item-161,.kx-aside-line-161):hover{background:#2b3946!important}
body.kx-theme-dark .article-shell .kx-article-aside-161 :is(.kx-aside-news-content-161 strong,.kx-aside-line-161 strong){color:#f0f4f8!important}
body.kx-theme-dark .article-shell .kx-article-aside-161 :is(.kx-aside-news-content-161 small,.kx-aside-line-161 small){color:#b2c2cf!important}
/* Comments below the text should never return to white. */
body.kx-theme-dark .article-shell .kx-article-149>.comments,
body.kx-theme-dark .article-shell .kx-article-149>.comments .comment {
 background:#1b232d!important;border-color:#394958!important;color:#e9f0f7!important;
}
body.kx-theme-dark .article-shell .kx-article-149>.comments :is(h2,h3,p,b,strong,small){color:#e5edf4!important}
@media(max-width:760px){
 body.kx-theme-dark .kx-klix-2026 .kx-top-aside {padding:10px!important;margin-top:6px!important;border-radius:9px!important}
 body.kx-theme-dark .article-shell.kx-article-layout-149>.article.kx-article-149{border-radius:9px!important}
 body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .kx-article-lead-149 {padding:10px 12px!important;font-size:18px!important}
}
@media print {
 body.kx-theme-dark .article-shell.kx-article-layout-149>.article.kx-article-149 {background:#fff!important;color:#111!important}
 body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body,
 body.kx-theme-dark .article-shell .kx-article-149 .kx-reading-content-153 .article-body p{color:#111!important}
}
