/* Akademik Retina 5.6.6 — Midnight palette, light-surface balance */
:root{
  --midnight-charcoal:#1F2933;
  --midnight-slate:#364350;
  --midnight-sky:#72A8BF;
  --midnight-coral:#D4473A;
  --midnight-mist:#F5F7FA;
  --midnight-soft:#EDF2F5;
  --midnight-line:#D7E0E5;
  --midnight-ink:#24313C;
  --midnight-muted:#667985;

  --ink:#24313C;
  --paper:#F5F7FA;
  --paper2:#EDF2F5;
  --line:#D7E0E5;
  --muted:#667985;
  --white:#FFFFFF;

  --ar-paper:#F5F7FA;
  --ar-paper-2:#EDF2F5;
  --ar-line:#D7E0E5;
  --ar-muted:#667985;
  --ar-white:#FFFFFF;
}

/* Overall balance: light content, dark framing surfaces only */
body,
.kn-main,
main{background:#FFFFFF!important;color:#24313C!important}

/* Header stays dark and premium */
.kn-header,.ar5-header{background:rgba(31,41,51,.94)!important}
.kn-header.is-scrolled,.ar5-header.is-scrolled{background:rgba(31,41,51,.98)!important}

/* Hero remains the main dark visual statement */
.kn-hero,.ar5-home-hero{background:#1F2933!important;color:#F5F7FA!important}

/* Restore all ordinary content zones to light surfaces */
.kn-dashboard,
.kn-indexbar,
.ar5-entry-rail,
.ar5-cluster-section,
.ar5-gallery-preview,
.ar5-related-section,
.ar5-faq-section,
.ar5-publication-archive,
.ar5-video-layout,
.ar5-content-layout,
.ar5-academic-layout,
.ar5-single-column,
.ar5-expertise-layout,
.ar5-article-layout,
.ar5-publication-single-grid,
.ar5-home-dictionary,
.ar56-academic-preview,
.ar5-authority,
.ar5-page-hero,
.ar5-blog-hero,
.ar5-search-page-hero,
.ar5-contact-hero,
.ar5-article-hero{
  background:#FFFFFF!important;
  color:#24313C!important;
  border-color:#D7E0E5!important;
}

/* Alternate sections for rhythm, not darkness */
.ar5-cluster-section,
.ar5-gallery-preview,
.ar56-academic-preview,
.ar5-related-section,
.ar5-faq-section,
.ar5-publication-archive{
  background:#F5F7FA!important;
}

/* Internal page hero typography becomes dark on light */
.ar5-page-hero h1,.ar5-blog-hero h1,.ar5-search-page-hero h1,.ar5-contact-hero h1,.ar5-article-hero h1,
.ar5-page-hero p,.ar5-blog-hero p,.ar5-search-page-hero p,.ar5-contact-hero p,.ar5-article-hero p{
  color:#24313C!important;
}
.ar5-page-hero .ar5-eyebrow,.ar5-blog-hero .ar5-eyebrow,.ar5-search-page-hero .ar5-eyebrow,.ar5-contact-hero .ar5-eyebrow,.ar5-article-hero .ar5-eyebrow{color:#D4473A!important}

/* Light cards */
.kn-indexgrid>div,.kn-indexgrid>a,
.ar5-entry-grid>a,
.ar5-cluster-card,
.ar5-gallery-preview-grid>a,
.ar5-publication-list article,
.ar5-publication-card,
.ar5-related-card,
.ar5-blog-card,
.ar5-social-card,
.ar5-sidecard,
.ar5-pub-abstract,
.ar5-home-dictionary-grid a,
.ar56-academic-preview-grid a,
.kn-image-card,
.kn-topic-row,
.kn-metrics,
.ar5-authority{
  background:#FFFFFF!important;
  color:#24313C!important;
  border-color:#D7E0E5!important;
  box-shadow:0 14px 38px rgba(31,41,51,.055)!important;
}

/* Main content typography */
.kn-section-title h2,.ar5-section-head h2,.ar5-authority-copy h2,
.ar-feed-header h1,.ar-feed-header h2,
.ar5-publication-head h1,
.ar-article-head h1,
.ar-author-hero h1,
.kn-indexgrid strong,.kn-indexgrid>a,
.ar5-entry-grid strong,
.kn-topic-row h3,.kn-image-copy h3,
.ar5-cluster-card h3,.ar5-publication-list h2,
.ar5-blog-card h2,.ar5-related-card h3,.ar5-social-card h3,
.ar5-sidecard h3,.ar5-home-dictionary-grid a strong,
.ar56-academic-preview-grid a strong,.ar-topic strong,
.ar5-prose h1,.ar5-prose h2,.ar5-prose h3,.ar5-prose h4,
.ar-article-body h2,.ar-article-body h3{
  color:#24313C!important;
}

.kn-section-title p,.ar5-section-head p,.ar5-authority-copy p,
.ar5-prose,.ar5-prose p,.ar-article,.ar-article-body,.ar-article-head p,
.ar5-publication-list p,.ar5-pub-rail dd,.ar5-topic-meta,
.ar5-related-card p,.ar5-sidecard p,.ar5-blog-meta,.ar5-blog-card p,
.ar5-social-card p,.ar5-home-dictionary-copy p,.ar56-academic-preview-grid a span{
  color:#667985!important;
}

.kn-indexgrid small,.ar5-entry-grid small,.kn-topic-row small,
.ar5-pub-rail dt,.ar-topic span,.kn-metrics div span{color:#7B8C96!important}
.kn-image-copy small,.kn-paper-meta span:nth-child(1),.ar563-pub-authors{color:#547F92!important}

/* Hover states on light cards */
.kn-topic-row:hover:before{background:#EDF2F5!important}
.kn-topic-row:hover h3,.ar5-blog-card:hover h2,.ar5-related-card:hover h3{color:#D4473A!important}
.ar5-cluster-card:hover{background:#364350!important;color:#FFFFFF!important}
.ar5-cluster-card:hover h3{color:#FFFFFF!important}
.ar5-cluster-card:hover p,.ar5-cluster-card:hover span{color:#DCE7EC!important}

/* Publication strip: light instead of another dark block */
.kn-stream-wrap,
.ar5-publication-section{
  background:#EDF2F5!important;
  color:#24313C!important;
  border-top:1px solid #D7E0E5!important;
  border-bottom:1px solid #D7E0E5!important;
}
.kn-stream-title h2,.kn-paper h3{color:#24313C!important}
.kn-stream-title p,.kn-paper p,.kn-paper-meta span{color:#667985!important}
.kn-paper,.kn-stream-empty{background:transparent!important;border-color:#C8D5DC!important;color:#24313C!important;box-shadow:none!important}
.kn-paper .kn-read,.kn-stream-title .ar5-text-link{color:#D4473A!important}
.kn-paper:hover h3{color:#547F92!important}

/* Quick contact band: pale blue-gray to separate from footer */
.ar562-lead-band{
  background:#EDF2F5!important;
  color:#24313C!important;
  border-top:1px solid #D7E0E5!important;
  border-bottom:1px solid #D7E0E5!important;
}
.ar562-lead-band:before{background:radial-gradient(circle,rgba(114,168,191,.18) 0%,rgba(114,168,191,0) 70%)!important}
.ar562-lead-copy h2{color:#24313C!important}
.ar562-lead-copy p{color:#667985!important}
.ar562-lead-copy>span{color:#D4473A!important}
.ar562-lead-form{background:#FFFFFF!important;border-color:#C9D5DB!important;box-shadow:0 18px 48px rgba(31,41,51,.07)!important}
.ar562-lead-fields label{color:#24313C!important}
.ar562-lead-fields input{background:#FFFFFF!important;color:#24313C!important;border-color:#B9C9D1!important}
.ar562-lead-fields input::placeholder{color:#83949D!important}
.ar562-lead-form>small{color:#70818B!important}

/* Forms on light pages */
.ar5-search-page-form,.ar5-contact-form,.ar5-publication-toolbar form{
  background:#FFFFFF!important;
  border-color:#C9D5DB!important;
  color:#24313C!important;
}
.ar5-search-page-form input,.ar5-contact-form input,.ar5-contact-form textarea,.ar5-publication-toolbar input{
  background:#FFFFFF!important;
  color:#24313C!important;
  border-color:#B9C9D1!important;
}
.ar5-search-page-form input::placeholder,.ar5-contact-form input::placeholder,.ar5-contact-form textarea::placeholder,.ar5-publication-toolbar input::placeholder{color:#83949D!important}

/* Abstracts / quotes */
blockquote,.ar-abstract,.ar5-pub-abstract{background:#F5F7FA!important;border-left-color:#72A8BF!important;color:#364350!important}

/* Footer is the only fully dark closing surface */
.kn-footer,.ar5-footer,.ar5-topbar{
  background:#1F2933!important;
  color:#F5F7FA!important;
}
.kn-footer-brand p,.kn-footer-bottom,.ar5-footer-col a{color:#B8C6CE!important}
.ar5-footer-col>span,.kn-footer-column>span{color:#E46A5E!important}
.kn-footer a:hover,.ar5-footer a:hover{color:#FFFFFF!important}

/* Pagination / chips */
.ar-chip,.nav-links a,.nav-links span{background:#FFFFFF!important;border-color:#D7E0E5!important;color:#24313C!important}
.ar-chip.active,.nav-links .current{background:#D4473A!important;color:#FFFFFF!important;border-color:#D4473A!important}

/* Hero-specific readability remains high */
.ar5-home-hero .kn-label{color:#E46A5E!important}
.ar5-home-hero h1,.ar5-home-hero .kn-feature-note h2{color:#F5F7FA!important}
.ar5-home-hero h1 em{color:#72A8BF!important}
.ar5-home-hero .kn-hero-main>p,.ar5-home-hero .kn-feature-note p,.ar5-home-hero .kn-note-no{color:#C8D4DB!important}
.ar5-home-hero .kn-search{background:rgba(255,255,255,.96)!important;border-color:rgba(255,255,255,.35)!important}
.ar5-home-hero .kn-search input{background:transparent!important;color:#24313C!important}
.ar5-home-hero .kn-search input::placeholder{color:#71838D!important}
.ar5-home-hero .kn-search>span{color:#667985!important}
.ar5-home-hero .kn-query-links span{color:#AEBEC7!important}
.ar5-home-hero .kn-query-links a{color:#F5F7FA!important;border-color:rgba(255,255,255,.35)!important}
.ar5-home-hero .kn-query-links a:hover{color:#72A8BF!important;border-color:#72A8BF!important}

/* Mobile */
@media(max-width:760px){
  .ar5-home-hero .kn-hero-photo:after{background:linear-gradient(90deg,rgba(31,41,51,.98) 0%,rgba(31,41,51,.94) 62%,rgba(31,41,51,.78) 100%)!important}
}
