/* KFU V10: public site + dashboard, light/dark themes */
:root{color-scheme:dark}
:root[data-theme="light"]{color-scheme:light;--gold:#a87818;--gold-2:#bb871a;--gold-soft:#cf9a29;--gold-deep:#946315;--bg:#faf8f3;--bg2:#fff;--text:#24242a;--muted:#626773;--ink:#17181d;--line:#ded8ca;}
.kfu-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:46px;min-height:43px;padding:8px 11px;background:rgba(225,176,61,.07);border:1px solid rgba(210,163,58,.46);border-radius:10px;color:#eac66e;font-size:19px;line-height:1;cursor:pointer;transition:background .2s,border-color .2s,transform .2s;flex-shrink:0}
.kfu-theme-toggle:hover{transform:translateY(-1px);background:rgba(225,176,61,.16);border-color:#d1a04e}
.kfu-theme-toggle:focus-visible{outline:3px solid #e3b34f;outline-offset:3px}
.kfu-theme-toggle .theme-sun{display:none}.kfu-theme-toggle .theme-moon{display:inline}.kfu-theme-toggle .theme-label{font:700 11px Manrope,Arial,sans-serif;letter-spacing:.02em}
:root[data-theme="light"] .kfu-theme-toggle{background:#f8edcf;color:#8d621b;border-color:#d9b768}
:root[data-theme="light"] .kfu-theme-toggle .theme-sun{display:inline}
:root[data-theme="light"] .kfu-theme-toggle .theme-moon{display:none}
.site-header .nav>.kfu-theme-toggle{order:4}.site-header .nav>.menu-toggle{order:5}
.auth-theme-control,.article-theme-control{position:fixed;right:22px;top:22px;z-index:80}
.admin-layout .top-actions .kfu-theme-toggle{margin-right:7px;letter-spacing:normal}
@media(max-width:1100px){.site-header .nav>.kfu-theme-toggle{margin-left:auto}.kfu-theme-toggle .theme-label{display:none}}
@media(max-width:980px){.site-header .nav>.kfu-theme-toggle{order:2}.site-header .nav>.menu-toggle{order:3}}
@media(max-width:780px){.admin-layout .top-actions .kfu-theme-toggle{font-size:18px;min-width:40px;min-height:39px;padding:7px}.admin-layout .top-actions .theme-label{display:none}}

/* V10.1 — Background switch, not a full component theme. */
:root[data-theme="light"]{--bg:#f8f5ed;--bg2:#eee9de;--text:#22262c;--muted:#5c626b;--gold:#edbc51}
:root[data-theme="light"] body{background:#f8f5ed;color:#22262c}
/* Navbar and floating UI stay in the established black-and-gold design. */
:root[data-theme="light"] .site-header{background:rgba(12,14,17,.94)!important;border-color:rgba(230,180,66,.18)}
:root[data-theme="light"] .site-header .brand-name,:root[data-theme="light"] .site-header .navlinks>a{color:#f5f5f5}
:root[data-theme="light"] .site-header .brand-name small{color:#a8acb5}
:root[data-theme="light"] .site-header .navlinks .nav-cta{color:#f2c45e}
:root[data-theme="light"] .kfu-theme-toggle{background:#25221a;color:#f0c85e}
:root[data-theme="light"] .hero{background:radial-gradient(ellipse at 80% 45%,rgba(222,177,79,.15),transparent 48%),linear-gradient(120deg,#fffdf8,#efe9dd);border-bottom-color:#e2d4ba}
:root[data-theme="light"] .hero-content h1,:root[data-theme="light"] .hero-content h1::first-line{color:#1d2229}
:root[data-theme="light"] .hero-content>p{color:#515861!important}
:root[data-theme="light"] .hero-metrics span{color:#646b75}
:root[data-theme="light"] .hero-metrics{border-top-color:#d4c49f}
:root[data-theme="light"] .eyebrow{color:#906719;border-color:#bca36d;background:#fff8e9!important}
:root[data-theme="light"] .btn-outline{background:#fff;color:#262b33;border-color:#b7af9e}
:root[data-theme="light"] .hero.has-banner-video .hero-grid{background:#f8f5ed}
/* Change section canvases; dark content cards and media stay dark. */
:root[data-theme="light"] .about,:root[data-theme="light"] .portfolio,:root[data-theme="light"] .news-section{background:#fffdf8;color:#22262c}
:root[data-theme="light"] .service-section,:root[data-theme="light"] .facilities,:root[data-theme="light"] .contact-section{background:#f0ebe1;color:#22262c}
:root[data-theme="light"] .careers{background:linear-gradient(125deg,#fcf8ee,#e9dfcd);color:#22262c}
:root[data-theme="light"] .section h2{color:#22262c}
:root[data-theme="light"] .section .lead,:root[data-theme="light"] .section-top>p,:root[data-theme="light"] .line-feature p,:root[data-theme="light"] .career-shell p{color:#59616a}
:root[data-theme="light"] .line-feature{border-top-color:#d9cebb}
:root[data-theme="light"] .line-feature strong{color:#292b30}
:root[data-theme="light"] .service-card,:root[data-theme="light"] .facility-grid article,:root[data-theme="light"] .project-card,:root[data-theme="light"] .news-card,:root[data-theme="light"] .contact-panel{background:#1b1e23;color:#f5f5f5;border-color:#66532f}
:root[data-theme="light"] .service-card h3,:root[data-theme="light"] .facility-grid h3,:root[data-theme="light"] .project-card h3,:root[data-theme="light"] .news-card h3,:root[data-theme="light"] .contact-panel label{color:#f5f5f5}
:root[data-theme="light"] .service-card p,:root[data-theme="light"] .facility-grid p,:root[data-theme="light"] .project-copy p,:root[data-theme="light"] .news-copy p{color:#b7bac2}
:root[data-theme="light"] .contact-panel input,:root[data-theme="light"] .contact-panel textarea{background:#14171b;color:#fff;border-color:#515057}
:root[data-theme="light"] .contact-info,:root[data-theme="light"] .contact-info a{color:#30343c}
:root[data-theme="light"] .portfolio-empty{background:#fff7e6;border-color:#ceb577}
:root[data-theme="light"] .portfolio-empty h3{color:#30343c}
:root[data-theme="light"] .portfolio-empty p{color:#606774}
:root[data-theme="light"] .trust-strip{background:#eae0ce}
:root[data-theme="light"] .trust-content{color:#76561f}
:root[data-theme="light"] .statement{color:#1d1d1d}
:root[data-theme="light"] footer{background:#0c0e12;color:#f5f5f5}
:root[data-theme="light"] .footer-main p,:root[data-theme="light"] .footer-nav,:root[data-theme="light"] .footer-bottom{color:#adb0b8}
/* Keep brand intro and media content visually consistent in both modes. */
:root[data-theme="light"] .kfu-intro{color:#fff;--gold:#f4bf35}
:root[data-theme="light"] .about-visual,:root[data-theme="light"] .about-media-active{background:#111318;color:#fff}
:root[data-theme="light"] .about-visual .service-mosaic strong{color:#fff}
:root[data-theme="light"] .chat-window{background:#171a20;color:#fff}
:root[data-theme="light"] .chat-messages{color:#bec1ca}
:root[data-theme="light"] .chat-start,:root[data-theme="light"] .chat-compose{background:#21252b}
:root[data-theme="light"] .chat-start input,:root[data-theme="light"] .chat-compose input{background:#11151b;color:white;border-color:#444}
:root[data-theme="light"] .bubble{background:#2c323a;color:#fff}
:root[data-theme="light"] .bubble.admin{background:#51421e}
:root[data-theme="light"] .bubble p{color:#fff}
/* Dashboard remains dark — this choice is for website page backgrounds. */
@media(max-width:980px){:root[data-theme="light"] .navlinks{background:#121417;border-color:#80612d}}


/* V10.2: page BACKGROUND switch: loaded after style.css, confirmed effective. */
html[data-theme="light"] body{background-color:#fbf8f0!important;color:#22262c!important;transition:background-color .3s ease,color .3s ease}
html[data-theme="dark"] body{background-color:#0c0e12!important;color:#f4f4f4!important}
html[data-theme="light"] .hero:not(.has-banner-video){background:linear-gradient(115deg,#fffefb 0%,#f5eddd 100%)!important}
html[data-theme="light"] .hero.has-banner-video .hero-grid{background:#fbf8f0!important}
html[data-theme="light"] .about,html[data-theme="light"] .portfolio,html[data-theme="light"] .news-section{background-color:#fffdf8!important;color:#292c30!important}
html[data-theme="light"] .service-section,html[data-theme="light"] .facilities,html[data-theme="light"] .contact-section{background:#efe9dd!important;color:#292c30!important}
html[data-theme="light"] .careers{background:linear-gradient(110deg,#fffaf0,#e9dfcc)!important;color:#292c30!important}
html[data-theme="light"] .section h2,html[data-theme="light"] .hero-content h1,html[data-theme="light"] .about h2{color:#272930!important}
html[data-theme="light"] .section p.lead,html[data-theme="light"] .section-top>p,html[data-theme="light"] .line-feature p{color:#59616a!important}
html[data-theme="light"] .service-card,html[data-theme="light"] .news-card,html[data-theme="light"] .project-card{color:#fff}
html[data-theme="light"] .service-card h3,html[data-theme="light"] .news-card h3,html[data-theme="light"] .project-card h3{color:#fff}
html[data-theme="light"] .contact-panel{color:#fff}
html[data-theme="light"] .site-header{background:#101216f5!important}
html[data-theme="light"] .trust-strip{background:#e9e0cf!important}
html[data-theme="light"] .trust-content{color:#745522!important}
html[data-theme="light"] .kfu-theme-toggle{background:#edca6c!important;color:#161616!important;border-color:#c99b3b!important}
