/* Kakanj-X 2.1.5: cohesive dark editorial palette. No changes to light mode. */
body.kx-portal-theme-213.kx-theme-dark {
  color-scheme: dark;
  --bg: #10151c; --white: #1b222c; --ink: #ebeff4; --muted: #a8b4c0; --line: #34404d;
  --kx-bg: #10151c; --kx-card: #1b222c; --kx-text: #edf1f5; --kx-line: #34404d;
  --kx-shadow: 0 4px 17px rgba(0,0,0,.19); --kx-shadow-sm: 0 2px 9px rgba(0,0,0,.16);
  background: #10151c; color: #ebeff4;
}
/* Overall page, background and containers. Keep images, videos and colored category labels unchanged. */
body.kx-theme-dark main,body.kx-theme-dark main.container,body.kx-theme-dark .kx-home-shell,
body.kx-theme-dark .kx-klix-2026,body.kx-theme-dark .kx-klix-2026 .kx-home,
body.kx-theme-dark .kx-klix-2026 .kx-top-grid,body.kx-theme-dark .kx-trending,
body.kx-theme-dark .kx-trending-inner { background-color: transparent; color: var(--ink); }
/* Nested cards / story modules use a visibly different elevation from canvas. */
body.kx-theme-dark :is(.article,.sidebox,.category-head,.kx-card-block,.kx-ad-box,.kx-home-section,
 .kx-news-card,.kx-story-card,.kx-home-card,.kx-side-card,.kx-sidebox,.kx-card-panel,
 .kx-section-body,.kx-section .kx-headline,.kx-jobs-wrap,.kx-job-card,
 .kx-section-grid,.kx-home-cat,.kx-home-list,.kx-home-main,.kx-home-sidebar,
 .kx-article-149,.kx-article-aside-161,.kx-pro-panel,.kx-events-card,.kx-jobs-card,
 .archive-grid .tile,.jobs-grid .job,.kx-klix-2026 .kx-top-grid) {
 background: #1b222c; color: #e9eef3; border-color: #34404d;
 box-shadow: 0 4px 18px rgba(0,0,0,.14);
}
body.kx-theme-dark :is(.kx-section-side,.kx-side-content,.kx-home-section,.kx-klix-2026 .kx-section,
 .kx-klix-2026 .kx-home-headline) {border-color: #34404d;}
body.kx-theme-dark :is(.kx-card,.kx-side-mini,.kx-list-item,.kx-section,.kx-klix-2026 .kx-story-card,
 .kx-klix-2026 .kx-home-card,.kx-side-link,.kx-home-headline a) { color: #e9eef3; }
body.kx-theme-dark :is(.article h1,.article h2,.article h3,.article-body,.article-body p,
 .article-body li,.article-body h2,.article-body h3,.article-summary,.category-head h1,
 .kx-card h2,.kx-card h3,.kx-side-mini b,.kx-list-item b,.kx-job-card strong,
 .kx-home-headline,.kx-klix-2026 h2,.kx-klix-2026 h3,.kx-klix-2026 h4,
 .kx-klix-2026 .kx-home-headline strong,.kx-sidebox h3,.sidebox h3,.kx-headline h2) {color: #f0f3f6;}
/* Editorial metadata should stay quiet, rather than glowing white. */
body.kx-theme-dark :is(.kx-meta,.kx-card .excerpt,.kx-side-mini small,.kx-list-item small,
 .kx-job-card small,.kx-job-card span,.article-summary + .byline,.byline,.breadcrumbs,
 .breadcrumbs a,.kx-side-link small,.footer-inner,.footer-inner .muted,.archive small,
 .tile small,.jobs-grid .job p,.jobs-grid .job small,.kx-klix-2026 .kx-meta) { color: #aebac6; }
/* Headings, accent links and metadata have distinct roles. */
body.kx-theme-dark :is(.kx-section .kx-headline a,.kx-headline a,.article-body a,
 .kx-home-headline a:hover,.kx-side-mini:hover b,.kx-list-item:hover b,
 .kx-card:hover h2,.kx-card:hover h3) {color: #a6df78;}
body.kx-theme-dark .kicker,body.kx-theme-dark .kx-home-category {color: #a6df78;}
body.kx-theme-dark :is(.kx-section .kx-headline,.kx-section-body,.kx-side-mini,.kx-list-item,
 .article,.comment,.byline,.article-body blockquote,.category-head,.sidebox,
 .kx-job-card,.kx-jobs-wrap,.pager a,.pager span) {border-color: #34404d;}
/* Readable forms, search, buttons and keyboard focus. */
body.kx-theme-dark :is(input,textarea,select,.searchform,.comments input,.comments textarea) {
 background: #242e3a; color: #f2f5f8; border-color: #4b5968;
}
body.kx-theme-dark :is(input,textarea)::placeholder {color:#a9b5c3;}
body.kx-theme-dark :is(input,textarea,select,button,a):focus-visible {
 outline: 2px solid #9ed96b; outline-offset: 3px;
}
body.kx-theme-dark :is(.share button,.pager a,.pager span,.pagination a) {
 background: #27323e; color: #eaf0f5; border-color: #485767;
}
body.kx-theme-dark :is(.share button,.pager a,.pagination a):hover { background:#334150; color:#c3f396; }
/* Preserve the familiar black + green site navigation. */
body.kx-theme-dark :is(.nav,.kx-global-nav,.kx-nav-row,.kx-nav-search,.kx-news-submenu-186,.kx-dropdown-186) {
 background:#11171e; border-color:#35424e; color:#eef2f6;
}
body.kx-theme-dark :is(.nav a,.kx-global-nav a,.kx-global-nav button,.kx-global-nav .kx-primary-link,
 .kx-nav-extra) {color:#eaf0f5;}
body.kx-theme-dark :is(.nav a:hover,.kx-global-nav a:hover,.kx-global-nav button:hover){color:#b6ed89;}
body.kx-theme-dark .kx-side-head {background:#121a22;color:#f3f5f7;}
/* Differentiated article sections / ads / comments / footer. */
body.kx-theme-dark :is(.comment,.comments,.kx-share-box,.kx-social-box,.kx-article-sidebar-stack-161>div) {
 background: #1b222c; border-color:#34404d; color:#e9eef3;
}
body.kx-theme-dark :is(.ad,.ad small) {color:#b0bac5;}
body.kx-theme-dark :is(.foot,footer){background:#131a22;color:#bfccd8;border-color:#35424e;}
body.kx-theme-dark .foot a,body.kx-theme-dark footer a {color:#d7e4ef;}
body.kx-theme-dark .foot a:hover,body.kx-theme-dark footer a:hover {color:#afe37f;}
/* Avoid unintended darkening of image overlays, embedded video and ad creatives. */
body.kx-theme-dark :is(.hero-copy,.hero-copy h2,.hero-copy small) {color:#fff;}
body.kx-theme-dark :is(img,video,iframe) {filter:none;}
body.kx-portal-theme-213.kx-theme-light {color-scheme:light;}
@media(max-width:767px) {
 body.kx-theme-dark :is(.article,.sidebox,.kx-card-block,.kx-home-section) {box-shadow:none;}
 body.kx-theme-dark .article {border-radius:8px;}
}
@media(prefers-reduced-motion:reduce){body.kx-portal-theme-213 *{scroll-behavior:auto!important}}
