/* KoohRun 40.0.5 — unified deep-charcoal / antique-gold palette.
 * Loaded after the legacy bridge and feature styles. Color-only overrides:
 * no content, layout, SEO, image, or article-template changes.
 */
:root {
  color-scheme: dark !important;
  --bg: #080807 !important;
  --bg-deep: #040403 !important;
  --surface: #050504 !important;
  --surface-2: #070706 !important;
  --surface-3: #0b0a08 !important;
  --border: rgba(210, 190, 153, .085) !important;
  --border-2: rgba(210, 190, 153, .14) !important;
  --text: #efede7 !important;
  --text-2: #c6c0b5 !important;
  --text-3: #8d8578 !important;
  --text-4: #5d564a !important;
  --gold: #c4a05f !important;
  --gold-hi: #ddc17f !important;
  --gold-deep: #96723b !important;
  --gold-soft: rgba(196, 160, 95, .085) !important;
  --gold-line: rgba(196, 160, 95, .19) !important;
  --gold-glow: rgba(196, 160, 95, .22) !important;
}

html,
body {
  background-color: #080807 !important;
  color: var(--text) !important;
}

body::after {
  background:
    radial-gradient(ellipse 58% 34% at 50% -12%, rgba(196,160,95,.022), transparent 72%),
    radial-gradient(ellipse 90% 75% at 50% 110%, rgba(0,0,0,.68), transparent 72%) !important;
}

.site-header,
.site-header.site-header--compact,
#kr-strip {
  background: rgba(4,4,3,.98) !important;
  border-color: rgba(196,160,95,.14) !important;
  box-shadow: none !important;
}

.site-footer,
.footer {
  background: #040403 !important;
  border-color: rgba(196,160,95,.14) !important;
}

.main-content,
.front-page,
.single-page,
.archive-page,
.search-page,
.page-content {
  background-color: transparent !important;
}

.section-head {
  border-color: rgba(210,190,153,.10) !important;
}
.section-head__title,
.front-page .section-head h2 {
  color: #ddc17f !important;
}
.section-head__title::before,
.section-head::after {
  background: #b99150 !important;
}

/* Homepage: surfaces stay visibly darker than the page background. */
body.home .front-page .breaking-item,
body.home .front-page .article,
body.home .front-page .booklet,
body.home .front-page .theme,
body.home .front-page .latest-strip__item,
body.home .front-page .kr-feature-row,
body.home .front-page .today-board {
  background-color: #050504 !important;
  border-color: rgba(196,160,95,.13) !important;
  box-shadow: none !important;
}
body.home .front-page .breaking-item:hover,
body.home .front-page .article:hover,
body.home .front-page .booklet:hover,
body.home .front-page .theme:hover,
body.home .front-page .latest-strip__item:hover {
  background-color: #070605 !important;
  border-color: rgba(196,160,95,.25) !important;
}
body.home .front-page #sec-newspapers .newspaper-list {
  background: #030302 !important;
  border-color: rgba(196,160,95,.12) !important;
}
body.home .front-page #sec-newspapers a.newspaper-item,
body.home .front-page #sec-newspapers a.newspaper-item:visited,
body.home .front-page #sec-newspapers a.newspaper-item:active {
  background: #050504 !important;
  border-color: rgba(196,160,95,.13) !important;
}
body.home .front-page #sec-newspapers a.newspaper-item:hover {
  background: #070605 !important;
}
body.home .front-page #sec-newspapers .newspaper-item__body,
body.home .front-page #sec-articles .article__body,
body.home .front-page #sec-booklets .booklet__body,
body.home .front-page .hero__body {
  background: #050504 !important;
}
body.home .front-page #sec-newspapers .newspaper-item__thumb,
body.home .front-page .hero__media {
  background: #030302 !important;
}
body.home .front-page .hero__title,
body.home .front-page .article__title,
body.home .front-page .booklet__title,
body.home .front-page .newspaper-item__title,
body.home .front-page .latest-strip__title {
  color: #ddc17f !important;
}
body.home .front-page .hero__excerpt,
body.home .front-page .article__excerpt,
body.home .front-page .booklet__excerpt,
body.home .front-page .newspaper-item__excerpt {
  color: #d0c9bd !important;
  opacity: 1 !important;
}

/* Archive, search and regular pages. */
.archive-page .post-card,
.search-page .post-card,
.single-page .latest-card,
.single-page .latest-item,
.related-card,
.sidebar-card {
  background: #050504 !important;
  border-color: rgba(196,160,95,.13) !important;
  box-shadow: none !important;
}
.archive-page .post-card:hover,
.search-page .post-card:hover,
.single-page .latest-item:hover,
.related-card:hover {
  background: #070605 !important;
  border-color: rgba(196,160,95,.25) !important;
}
.single-page .single-main,
.single-page .single-post-header,
.single-page .post-content.entry-content,
.page-content .entry-content,
.page-content .entry-header {
  background-color: #080706 !important;
}
.author-box,
.kr-article-sources,
.kr-neiman-endmatter,
.kr-war-endmatter,
.kr-sar-related,
.krir-sources {
  background: #050504 !important;
  border-color: rgba(196,160,95,.16) !important;
}

/* V7 editorial family: darken panels without flattening its magazine structure. */
html body.single-post.kr-editorial-v7 {
  --kr7-ink: #080807 !important;
  --kr7-black: #030302 !important;
  --kr7-panel: #070605 !important;
  --kr7-panel-2: #0b0907 !important;
  --kr7-white: #efede7 !important;
  --kr7-text: #d8d2c7 !important;
  --kr7-muted: #918878 !important;
  --kr7-gold: #b99553 !important;
  --kr7-gold-hi: #d2b477 !important;
  --kr7-gold-soft: #d2b477 !important;
  --kr7-rule: rgba(210,190,153,.13) !important;
  --kr7-rule-gold: rgba(185,149,83,.42) !important;
  background-color: #080807 !important;
}
html body.single-post.kr-editorial-v7 .single-page .sidebar--latest {
  background: linear-gradient(180deg,rgba(185,149,83,.045),transparent 115px), #050504 !important;
  border-color: rgba(210,190,153,.12) !important;
  box-shadow: 4px 4px 0 rgba(185,149,83,.12) !important;
}
html body.single-post.kr-editorial-v7 .single-page .latest-item {
  background: #050504 !important;
}
html body.single-post.kr-editorial-v7 .single-main .author-box,
html body.single-post.kr-editorial-v7 .kr-article-sources,
html body.single-post.kr-editorial-v7 .kr-neiman-endmatter,
html body.single-post.kr-editorial-v7 .kr-war-endmatter,
html body.single-post.kr-editorial-v7 .kr-sar-related,
html body.single-post.kr-editorial-v7 .krir-sources {
  background: #050504 !important;
}
html body.single-post.kr-editorial-v7:not(.kr-reader):not(.kr-neiman-magazine):not(.kr-war-magazine):not(.kr-sar-oil-editorial):not(.kr-ir-newspapers-audio) .single-post-header {
  background:
    linear-gradient(128deg,rgba(185,149,83,.045) 0 22%,transparent 22.1% 100%),
    linear-gradient(145deg,#100e09 0%,#0b0907 54%,#080807 100%) !important;
  border-color: rgba(210,190,153,.13) !important;
}
html body.single-post.kr-editorial-v7.kr-reader .kr-hero,
html body.single-post.kr-editorial-v7.kr-neiman-magazine .kr-neiman-hero,
html body.single-post.kr-editorial-v7.kr-war-magazine .kr-war-hero,
html body.single-post.kr-editorial-v7.kr-sar-oil-editorial .kr-sar-hero,
html body.single-post.kr-editorial-v7.kr-ir-newspapers-audio .krir-hero {
  background:
    radial-gradient(circle,rgba(210,190,153,.07) 0 .7px,transparent 1.1px) 0 0/8px 8px,
    linear-gradient(140deg,#100e09,#080807 76%) !important;
  border-color: rgba(210,190,153,.13) !important;
}
html body.single-post.kr-editorial-v7 .single-main .post-content h2,
html body.single-post.kr-editorial-v7 .kr-neiman-prose h2,
html body.single-post.kr-editorial-v7 .kr-war-prose h2,
html body.single-post.kr-editorial-v7 .kr-sar-prose h2,
html body.single-post.kr-editorial-v7 .krir-body h2 {
  color: #e2c78d !important;
}
html body.single-post.kr-editorial-v7 a {
  color: #d2b477 !important;
}
html body.single-post.kr-editorial-v7 a:hover {
  color: #ead7ad !important;
}

/* Keep controls readable and accessible on the darker palette. */
input,
textarea,
select,
.search-field,
.search-form input,
.searchform input,
.search-box {
  background: #090807 !important;
  color: #efede7 !important;
  border-color: rgba(196,160,95,.22) !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: #d2b477 !important;
}
::selection {
  background: #6a5127 !important;
  color: #fffaf0 !important;
}

@media (prefers-reduced-motion: reduce) {
  html body *,
  html body *::before,
  html body *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
