/* Gurbani.World v37: shared reader palette across Discover views. */
:root{--bg:#080808;--surface:#11110f;--surface2:#191916;--surface3:#211f19;--text:#f8f5ed;--muted:#aaa69d;--gold:#d5b251;--gold2:#ead186;--line:rgba(255,255,255,.085);--gline:rgba(213,178,81,.28)}
body{background:var(--bg)}
body .site-header,body .discover-bottom-nav{background:var(--bg);border-color:var(--line);box-shadow:none}
body .brand-world,body .brand-mark::after{animation:none}
body .hero.discover-hero,body .premium-hero{background:linear-gradient(135deg,#101513,#11110f 55%,#17140e);border-color:var(--gline);box-shadow:none}
body :is(.result-card,.reader-line,.feature,.study-library-card){background:var(--surface);border-color:var(--line);box-shadow:none;border-radius:18px}
body :is(.feature:hover,.reader-line:hover){background:var(--surface2)}
body .discover-hero .search-box{background:var(--bg)}
body .header-button,body .card-save-button{min-width:44px;min-height:44px}
body .settings-panel :is(.setting-label,.toggle-row){font-size:15px}body .setting-title{font-size:12px}body .settings-head p{font-size:13px}
.reader-theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.reader-theme-options button{min-height:44px;padding:10px;border:1px solid var(--line);border-radius:11px;color:var(--text);background:var(--surface2);font:600 13px 'Plus Jakarta Sans',sans-serif;cursor:pointer}.reader-theme-options button[aria-pressed="true"]{background:var(--gold);border-color:var(--gold);color:#17130a}
.theme-note{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 0}
html[data-theme="light"],html[data-theme="sepia"]{color-scheme:light;--bg:#f8f7f3;--surface:#fffefa;--surface2:#f2eee5;--surface3:#eae4d8;--text:#24251f;--muted:#626257;--gold:#9b7525;--gold2:#735414;--gold3:#735414;--cream:#24251f;--panel:#fffefa;--panel-soft:#f2eee5;--line:rgba(43,42,31,.14);--gline:rgba(126,92,28,.3);--shadow:0 8px 25px rgba(40,35,20,.06)}
html[data-theme="sepia"]{--bg:#efe5d0;--surface:#f8efdd;--surface2:#eaddc3;--surface3:#e2d2b2;--text:#352b1e;--muted:#6d5c42;--panel:#f8efdd;--panel-soft:#eaddc3}
html:is([data-theme="light"],[data-theme="sepia"]) body{background:var(--bg)!important;color:var(--text)}
html:is([data-theme="light"],[data-theme="sepia"]) body :is(.site-header,.discover-bottom-nav,.hero,.premium-hero,.result-card,.reader-line,.feature,.settings-panel,.kosh-sheet,.kosh-panel,.theme-detail,.theme-explore,.study-panel,.concept-panel,.constellation-stage,.raag-clock-shell,.pahar-panel,.pahar-wheel-card,.index-card,.theme-card,.raag-card,.study-library-card,.lineage-card,.theme-prompt,.panel-placeholder,.empty-state,.state-error,.word-card,.word-detail,.term-explorer,.term-explorer-panel,.term-explorer-sheet){background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none!important;color:var(--text);backdrop-filter:none;-webkit-backdrop-filter:none}
html:is([data-theme="light"],[data-theme="sepia"]) body :is(input,select,textarea,.search-box,.chip,.setting-group,.header-button,.icon-button,.color-options button,.quiet-button,.result-actions a,.result-actions button,.card-save-button,.study-tab,.clock-mode,.kosh-result,.kosh-item,.quick-row a,.quick-row button,.trail-item,.raag-clock-item){background:var(--surface2)!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:none!important}
/* Older views use fixed dark-theme foregrounds; make text inherit daylight ink. */
html:is([data-theme="light"],[data-theme="sepia"]) body :is(h1,h2,h3,h4,strong,b,p,small,label,span,a,button){color:var(--text)}
html:is([data-theme="light"],[data-theme="sepia"]) body :is(.result-meta span,.reader-line .meta,.feature p,.search-hint,.result-translit,.translation-source,.result-translation>span,.page-title>p,.premium-hero>p,.sort-control,.nav-action,.settings-head p,.theme-note){color:var(--muted)!important}
html:is([data-theme="light"],[data-theme="sepia"]) body .result-translation{background:none!important;border-color:var(--line)!important}
html:is([data-theme="light"],[data-theme="sepia"]) body .result-translation p{color:var(--text)!important}
html:is([data-theme="light"],[data-theme="sepia"]) body .translation-pa p{color:#76551b!important}
html:is([data-theme="light"],[data-theme="sepia"]) body :is(.result-gurbani,.reader-line .gurbani,.lineage-gurbani,.study-library-gurbani,.gword){color:var(--user-gurbani-color)!important;text-shadow:none}
html:is([data-theme="light"],[data-theme="sepia"]) body :is(.chip.active,.study-tab.active,.theme-card.active,.reader-theme-options button[aria-pressed="true"],.color-options button.active,.search-box button,.nav-action.home){background:#e0c78f!important;color:#302511!important;border-color:#b48e40!important}
html:is([data-theme="light"],[data-theme="sepia"]) body :is(.nav-action.home span,.nav-action.home i){color:#302511!important}
html:is([data-theme="light"],[data-theme="sepia"]) body .brand-title,html:is([data-theme="light"],[data-theme="sepia"]) body .brand-title span{background:none!important;text-shadow:none!important;filter:none!important;animation:none!important}
html:is([data-theme="light"],[data-theme="sepia"]) body .brand-gurbani{color:#252922!important;-webkit-text-fill-color:#252922!important}
html:is([data-theme="light"],[data-theme="sepia"]) body :is(.brand-world,.brand-dot){color:#80601f!important;-webkit-text-fill-color:#80601f!important}
html:is([data-theme="light"],[data-theme="sepia"]) body .brand-mark{background:var(--surface2)!important;box-shadow:none!important}html:is([data-theme="light"],[data-theme="sepia"]) body .brand-mark i{color:#80601f!important}html:is([data-theme="light"],[data-theme="sepia"]) body .brand-mark::after{display:none}
html:is([data-theme="light"],[data-theme="sepia"]) body input::placeholder{color:var(--muted);opacity:1}
html:is([data-theme="light"],[data-theme="sepia"]) body.discover-high-contrast :is(.result-translation p,.feature p,.search-hint,.result-meta span){color:#111!important}
/* Graph canvas keeps its original night palette so coloured nodes and labels stay legible. */
html:is([data-theme="light"],[data-theme="sepia"]) body .constellation-stage{background:#10120f!important}html:is([data-theme="light"],[data-theme="sepia"]) body .constellation-stage .stage-note{background:#151811;color:#fff!important}
@media(max-width:680px){body .gw-main-header .header-button{width:44px;height:44px}body .gw-main-header .brand-title{font-size:clamp(15px,4.1vw,22px)!important}body .result-meta span{font-size:11px!important}body .discover-bottom-nav .nav-action span{font-size:11px!important}}
