/* Divya Granth · MIDNIGHT / ANTIQUE GOLD design system.
 * User reference: Dev Darshan's indigo-navy panels, warm gold details and
 * uninterrupted ivory scripture paper. Palette only; no layout or content mutations.
 * Tulsi original stays available by removing .dg-midnight on <html>. */
html.dg-midnight{
 --dg-navy-deep:#080d1d;--dg-navy:#11182c;--dg-navy-card:#19233b;
 --dg-navy-lift:#26334e;--dg-gold:#ebc67e;--dg-gold-soft:#d5aa67;
 --dg-ivory:#fff1d3;--dg-muted:#c9cedd;--dg-outline:#c49c6170;
 --forest:#151d30;--deep:#0b1021;--gold:#d5aa67;--ink:#f2e5cc;
 --pg-bg:#0b1121;--pg-card:#19233a;--pg-card2:#222d48;
 --pg-line:#d2aa7045;--pg-gold:#edc883;--pg-gold2:#bb8e51;
 --pg-ink:#f2e9d6;--pg-mute:#bec5d8;
 --lib-bg:#0d1426;--lib-ink:#2b3041;--lib-gold:#e9c681;
 --lib-line:#d2aa704d;
 --bx-green:#18233b;--bx-ink:#30364b;--bx-muted:#676b77;
 color-scheme:dark;
 background:#080d1c;
}
html.dg-midnight body{--dg-brand-dark:#11182b}
html.dg-midnight body:not(.dgDevPage):not(.dgSeoBody):not(.bxBody):not(.vivahApp):not(.csPage){
 background:radial-gradient(ellipse 96% 42% at 50% -9%,#2c3655 0%,#11182b 49%,#090f20 100%);
}
html.dg-midnight body.pgBody{
 background:radial-gradient(ellipse 110% 52% at 50% -12%,#303b60 0%,#141e36 45%,#090f20 100%)!important;
 color:var(--pg-ink);
}
html.dg-midnight body.pgBody[data-dg-product]{
 --pd-accent:var(--dg-gold);--pd-aura:#5b63833c;
 --pd-outline:#e2bb794a;--pd-surface:#1b2740;--pd-field-focus:var(--dg-gold);
 background:radial-gradient(ellipse 96% 48% at 50% -10%,#323d61 0%,#161f39 48%,#0a1020 100%)!important;
}
html.dg-midnight body.pgBody[data-dg-product] .pgHeader,
html.dg-midnight body>header.dgPageHeader,
html.dg-midnight body>.lib-header,
html.dg-midnight .pgHeader,
html.dg-midnight .lib-header,
html.dg-midnight .bxHeader{
 background:linear-gradient(180deg,#171e35f7,#0d1428f4)!important;
 border-bottom:1px solid var(--dg-outline)!important;
 color:var(--dg-ivory);
}
html.dg-midnight body>header.dgPageHeader .dgLang,
html.dg-midnight body>header.dgPageHeader .dgBack,
html.dg-midnight .pgBack{background:#25304966;border-color:var(--dg-outline);color:var(--dg-gold)}
html.dg-midnight body>header.dgPageHeader .dgPageTitle small,
html.dg-midnight .pgBrand small,
html.dg-midnight .lib-brand small{color:#d4d1ca}
html.dg-midnight .top,
html.dg-midnight .oldHeader,
html.dg-midnight .dgHeader,
html.dg-midnight .dgNav,
html.dg-midnight .dgSiteHeader{
 background:linear-gradient(180deg,#19233af7,#0d1529f5)!important;
 border-bottom-color:var(--dg-outline)!important;
 color:var(--dg-ivory)!important;
}
html.dg-midnight .top nav,html.dg-midnight .top .logo,
html.dg-midnight .top .logo em{color:var(--dg-ivory)}
html.dg-midnight .top .logo em,html.dg-midnight .dgPageTitle strong{color:var(--dg-gold)}
html.dg-midnight .hero,
html.dg-midnight .dgHero,
html.dg-midnight .oldHero{
 background:radial-gradient(ellipse 75% 70% at 75% 28%,#374665 0%,#1b2843 42%,#0b1123 100%)!important;
 color:#fff2d8;
}
html.dg-midnight .hero p{color:#d8d4d2}
html.dg-midnight .heroFooter{color:#e2bf82}
html.dg-midnight .libraryCard:not(.amber):not(.maroon){
 background:linear-gradient(137deg,#243354,#121a32)!important;
 border:1px solid var(--dg-outline);
}
html.dg-midnight .bookCover,
html.dg-midnight .dg-opening-cover{
 background:linear-gradient(135deg,#10182d,#303e5c 56%,#10152d)!important;
}
html.dg-midnight .sectionHeading h2,
html.dg-midnight .categories h2,
html.dg-midnight .readerTop h2,
html.dg-midnight .lib-hero h1,
html.dg-midnight .dgSeoMain h1{color:#f7e2b3}
html.dg-midnight .sectionHeading p,
html.dg-midnight .readerTop p,
html.dg-midnight .lib-hero>p:not(.lib-eyebrow){color:#cdd1db}
html.dg-midnight .categories,
html.dg-midnight #dgQuick,
html.dg-midnight .sectionHeading{color:var(--dg-ivory)}
html.dg-midnight .categoryGrid>a,
html.dg-midnight .categoryGrid>div{
 background:linear-gradient(145deg,#fbf4e6,#eee0c3);
 border-color:#d0b785;color:#293249;
}
html.dg-midnight .categoryGrid strong{color:#27344f}
html.dg-midnight .categoryGrid small{color:#626576}
html.dg-midnight .dgPanchangStrip{
 background:linear-gradient(130deg,#253655,#121c34)!important;
 border-color:var(--dg-outline)!important;
}
html.dg-midnight .dgTodayPanchang,
html.dg-midnight .pgHero,
html.dg-midnight :is(.pgSky,.dgVisits,.dgToolError,.dgToolNotice){
 background:radial-gradient(circle at 90% 10%,#35446a,#1d2a45 48%,#11172b 100%)!important;
 border-color:var(--dg-outline)!important;
}
html.dg-midnight .dgPsBody span,
html.dg-midnight .dgTpDate{color:#ced1dd}
html.dg-midnight .dgTodayPanchang .dgTpGrid div{
 background:#faf0dc0b;border-color:#edc98a29
}
html.dg-midnight .dgTodayPanchang .dgTpGrid b{color:#fff0d4}
html.dg-midnight .dgTpCta{color:#171d31}
html.dg-midnight .pgHero h1,
html.dg-midnight .pgMain h1,
html.dg-midnight .pgH2{color:#f3d9a8}
html.dg-midnight .pgSky,
html.dg-midnight .pgAnga,
html.dg-midnight .pgFact,
html.dg-midnight .pgCard,
html.dg-midnight .pgMuhurat,
html.dg-midnight :is(.muCard,.kCard,.nmCard,.vaCheckBox,.grPanel,.dhCard,.mdCard,.smGroup){
 background-color:var(--dg-navy-card);
 border-color:var(--dg-outline);
}
html.dg-midnight body.pgBody :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea):focus-visible{
 outline:3px solid var(--dg-gold);outline-offset:2px
}
html.dg-midnight .lib-header{background:#111a30f0!important}
html.dg-midnight .lib-primary{background:#253551;color:#ffefd1}
html.dg-midnight .lib-bottom{
 background:linear-gradient(180deg,#131e35,#0b1327)!important;
 border-top-color:var(--dg-outline)!important
}
html.dg-midnight .lib-bottom a,
html.dg-midnight .lib-section-nav a{color:#ebd4ad;border-color:var(--dg-outline)}
html.dg-midnight .lib-bottom a[aria-current]{color:#f8d89c}
html.dg-midnight .lib-card{
 --lib-ink:#2c3345;
 box-shadow:0 6px 0 -3px #b68c4c,0 18px 30px #0003;
}
html.dg-midnight .lib-card h3{color:#293149}
html.dg-midnight .lib-card.dgWithCover{
 background:linear-gradient(145deg,#202c47,#111b34);
 border-color:var(--dg-outline);color:var(--dg-ivory)
}
html.dg-midnight .lib-card.dgWithCover h3,
html.dg-midnight .lib-card.dgWithCover .lib-muted{color:#f4e6d1}
html.dg-midnight .dgShelf .dgShelfTop,
html.dg-midnight .dg-player,
html.dg-midnight .dg-book-reader .audio,
html.dg-midnight .audioDock,
html.dg-midnight .dr-tools button{
 background:linear-gradient(155deg,#26334d,#141e35)!important;
 border-color:var(--dg-outline)!important;
 color:#f5e6c9
}
html.dg-midnight body.dr-ready .readerZone{
 background:radial-gradient(ellipse at top,#2d3957,#10172c 75%)!important
}
html.dg-midnight :is(body.dr-ready,.readerZone)[data-dr-theme=night]{
 --dr-paper:#1d273e;--dr-paper-edge:#101a2e;--dr-ink:#f3e9d3;
 --dr-muted:#c0c5d5;--dr-line:#53607a;--dr-accent:#efcb89;
 --dr-meaning:#283653
}
/* Never recolor original shlokas, printable paper, devotional portraits or images. */
html.dg-midnight :is(.paper,.rightPaper,.dr-book>.page,.dgDarshan,.dgDevArt img) {
 filter:none;
}
html.dg-midnight .readerZone{background:radial-gradient(ellipse at 50% 0,#2a3a57,#10182d 78%)!important}
html.dg-midnight .readerTop,.dg-midnight .readerZone .dg-reader-typography{color:#f4e7cb}
html.dg-midnight .bxHeader{background:#141f36!important}
html.dg-midnight .bxHero{
 background:radial-gradient(ellipse 78% 80% at 50% 23%,#384669,#1e2b48 69%,#0c152b)!important
}
html.dg-midnight .bxHeroFamily{
 background:radial-gradient(ellipse 78% 82% at 50% 23%,#3b425f,#1e2744 72%,#11182b)!important
}
html.dg-midnight .bxFestivalCard[aria-pressed=true],
html.dg-midnight .bxGuideTop,
html.dg-midnight .bxPrimary{
 background:linear-gradient(135deg,#314366,#18253f)!important;
 border-color:#bd945b!important;
 color:#fff3d8!important
}
html.dg-midnight .bxFestivalCard{border-color:#dcc9a5}
html.dg-midnight .bxWrap{color:#30394c}
html.dg-midnight .bxFooter{
 background:#121b32!important;color:#f4e7d0
}
html.dg-midnight .dgSeoHeader,
html.dg-midnight .dgSeoFooter,
html.dg-midnight .dgGuideMain .dgGuideCard{
 border-color:var(--dg-outline)
}
html.dg-midnight .dgSeoHeader{
 background:#141e36!important;color:#f6dfb5
}
html.dg-midnight .dgSeoFooter{background:#0e172c!important;color:#f3dcaf}
html.dg-midnight .dgGuideMain h1,
html.dg-midnight .dgTextMain h1{color:#f7deae}
html.dg-midnight .dgDevHome{
 box-shadow:0 23px 55px #05091277;
 border-color:#e6ba7680
}
html.dg-midnight .dgDevCard{background:linear-gradient(160deg,#202b46,#10182c)}
html.dg-midnight .dgDevTop,
html.dg-midnight .dgDevBottom{background:#10172bd9}
html.dg-midnight .dgRmCard,
html.dg-midnight .modalBox,
html.dg-midnight .dg-sheet-card{
 background:linear-gradient(170deg,#222d49,#0f182d)!important;
 border:1px solid var(--dg-outline)!important;
 color:#ffefd0
}
html.dg-midnight .dgRmSettings input,
html.dg-midnight .dgRmSettings select{
 background:#1b2741!important;color:#fff0cf!important
}
html.dg-midnight .dgRmOpt{background:#ffefd00c;border-color:#c8a36655}
html.dg-midnight .dgRmTrust{color:#d4d4db}
html.dg-midnight .dgPlayerControls button,
html.dg-midnight .dg-player button{border-color:#e0b9768a}
html.dg-midnight .dg-reader-typography{
 background:#18243e!important;border-color:var(--dg-outline)!important;
 color:#e8d1a2
}
html.dg-midnight footer:not(.dgDevBottom):not(.bxFooter){
 background:#0c1429!important;
 color:#e5d5b5!important;
 border-top:1px solid #c49c614d
}
html.dg-midnight footer a{color:#f4d7a3}
html.dg-midnight :is(a,button,input,select,textarea):focus-visible{
 outline-color:#ffd992;
}
html.dg-midnight .dgThemeSwitch{
 display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;
 margin:18px 6px 8px;padding:9px 12px;border:1px solid #be9c6380;
 border-radius:14px;background:#1e2b45;color:#f5e4c4;
 font:600 13px/1.4 system-ui,sans-serif
}
.dgThemeSwitch{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;margin:18px 6px 8px;
 padding:9px 12px;border:1px solid #bb995f99;border-radius:14px;
 background:#172f27;color:#fff0d3;font:600 13px/1.4 system-ui,sans-serif}
.dgThemeSwitch button{min-width:68px;min-height:44px;padding:8px 12px;border:1px solid #e4c07c77;
 border-radius:10px;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}
.dgThemeSwitch button[aria-pressed=true]{
 background:linear-gradient(130deg,#f4d99e,#c99c5e);color:#22283c;border-color:transparent
}
@media(max-width:600px){
 html.dg-midnight body:not(.dgDevPage){background-attachment:scroll}
 html.dg-midnight .dgThemeSwitch{justify-content:center;width:calc(100% - 28px);margin:12px 14px 18px}
 html.dg-midnight .lib-bottom{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
 html.dg-midnight .dgThemeSwitch *,html.dg-midnight .dgThemeSwitch{transition:none!important}
}


/* Main mobile shell: match the reference's midnight backdrop and gold navigation. */
html.dg-midnight .dgMobileDock{
 background:linear-gradient(180deg,#1d2a44f4,#0e162bf9)!important;
 border-top:1px solid var(--dg-outline)!important;
 box-shadow:0 -12px 28px #0307177a;
}
html.dg-midnight .dgMobileDock button{color:#ebd5a9}
html.dg-midnight .dgMobileDock button[aria-current=page]{
 background:linear-gradient(165deg,#e9cb8e,#ba9055)!important;
 color:#1b2540!important
}
html.dg-midnight body:not(.book-open) .top nav.expanded{
 background:linear-gradient(140deg,#25314d,#101a31)!important;
 border:1px solid var(--dg-outline);
}
html.dg-midnight body:not(.book-open) .top nav.expanded a{
 color:#f5e4c6;border-bottom-color:#f1d18b20
}
html.dg-midnight .top .oldMenu{color:var(--dg-gold);border-color:#bc985d88}
html.dg-midnight .oldLibraryHeading h1,
html.dg-midnight .oldLibraryHeading>span{color:#f3e0bb}
html.dg-midnight .oldBookCard{
 background:linear-gradient(140deg,#faf0d8,#e5d1aa)!important;
 border-color:#c29e61!important;box-shadow:0 15px 35px #03091877;
}
html.dg-midnight .oldBookDescription h2{color:#242b40}
html.dg-midnight .oldBookDescription a{color:#293f61}
html.dg-midnight .oldBookDescription p{color:#615b55}
html.dg-midnight .oldSearch{
 background:#1a2741;border-color:var(--dg-outline);color:#f8e8d0
}
html.dg-midnight .oldSearch input{color:#fff1d1}
html.dg-midnight .dgQuick h2{color:#eed39f}
html.dg-midnight .dgQuickGrid a{
 background:linear-gradient(160deg,#f8e9ca,#e4cea2)!important;
 color:#263148!important;box-shadow:0 2px 0 #fff8 inset,0 -3px 0 #ae8956 inset,0 10px 20px -12px #000c
}
html.dg-midnight .dgQuickGrid a span{color:#29324a}
html.dg-midnight .dgAccountStrip{
 background:linear-gradient(135deg,#263754,#15213c)!important;
 border-color:#dab67888;color:#f5e3c4
}
html.dg-midnight .dgMobileResume{
 background:linear-gradient(120deg,#f8edcf,#e5d3ad);color:#25324a
}
html.dg-midnight .dgResumeSymbol{background:#253d60}
html.dg-midnight .dgTodayPanchang .dgTpGrid div.good{background:#497b6350}
html.dg-midnight .dgTodayPanchang .dgTpGrid div.warn{background:#9f4e4655}
html.dg-midnight :is(.bxHero,.dgDevHome,.pgHero) a:focus-visible{
 outline:3px solid #ffdc96;outline-offset:3px
}
/* The Utsav / family editorial areas are still warm ivory, like a bound book,
 * while their headers, event banner, cards and selected controls use navy. */
html.dg-midnight body:has(.bxWrap){
 background:linear-gradient(180deg,#f7f0e2,#ece4d5)!important;color:#28344b
}
html.dg-midnight body:has(.bxWrap) .bxWrap{color:#28344b}
html.dg-midnight .bxAttention{background:#fdf2dc;color:#27334a}
html.dg-midnight .bxAttention strong{color:#253552}
html.dg-midnight .bxFestivalCard:not([aria-pressed=true]){background:#fffaf0;color:#293b59}
html.dg-midnight .bxHeadInner nav a{color:#efd9b5}
html.dg-midnight .bxHeadInner nav a:focus-visible{outline-color:#ffdc96}
html.dg-midnight .dgGuideSection{border-color:#d1bd99}
html.dg-midnight .dgSeoCard{border-color:#c9ad7a}
html.dg-midnight .dgGuideMain article,.dg-midnight .dgTextMain article{
 background:#faf4e8;color:#2c3041
}
/* Selected user-requested night reader remains dark navy; default reader paper
 * stays ivory and text contrast remains controlled by reading-mode settings. */
html.dg-midnight .dg-page-sound,
html.dg-midnight .dg-reader-typography button,
html.dg-midnight .dr-tools button{
 background:#263653!important;color:#f3dfba;border-color:#bd9c6480
}
html.dg-midnight .dr-tools button[aria-pressed=true]{background:#eacb90!important;color:#24314c}
html.dg-midnight .dgThemeSwitch button{flex:none}


/* Heritage scripture landing pages: only surrounding chrome and controls change.
 * Do not recolour verse text, printed paper, imagery or source annotations. */
html.dg-midnight body.collection-heritage{
 --hc-forest:#121b31;--hc-gold:#e8c17f;
 background:radial-gradient(ellipse at 50% 0%,#323f61,#121b31 68%,#0b1226 100%)!important
}
html.dg-midnight :is(.mbHeader,.valHeader,.sahHeader,.mantraHeader,.pvHeader,
 .kcEdition,body.collection-heritage header){
 background:linear-gradient(180deg,#1b2844,#10172b)!important;
 border-color:var(--dg-outline)!important;color:#f3e4c8
}
html.dg-midnight :is(.mbBack,.valBack,.sahBack,.mantraBack,.pvBack,
 .mbNavigation button,.sahNav button,.mantraNavigation button,.pvNav button){
 background:#253655!important;color:#f2d6a5;border-color:var(--dg-outline)!important
}
html.dg-midnight :is(.mbTitle h1,.valHero h1,.sahHero h1,
 .mantraHero h1,.pvHero h1){color:#f4d59b}
html.dg-midnight :is(.sahAudio,.mantraPlayer,.mantraAmbience,.mantraMala,
 .kcEdition,.mbNarration,.pvEdition){
 background-color:#1c2a45!important;border-color:var(--dg-outline)!important;
 color:#f6e8cf
}
/* Daily practice and scripture compass retain pale paper for body content;
 * their hero and selected interactive surfaces join the navy family. */
html.dg-midnight body:has(.dsHeader),
html.dg-midnight body:has(#gcMain){
 background:linear-gradient(#f7efe2,#ede4d4)!important;color:#29354b
}
html.dg-midnight body:has(.dsHeader),html.dg-midnight body:has(#gcMain),
html.dg-midnight body:has(.bxWrap){color-scheme:light}
html.dg-midnight :is(.dsHeader,.gcHeader){
 background:linear-gradient(180deg,#17243e,#0f172c)!important;
 color:#f7e7c8!important;border-color:var(--dg-outline)!important
}
html.dg-midnight .dsHero,
html.dg-midnight .gcHero{
 background:radial-gradient(ellipse at 48% 25%,#3b4a6a,#222f4a 62%,#111b32)!important;
 color:#fff1d3!important
}
html.dg-midnight .dsHero h1,
html.dg-midnight .gcHero h1{color:#f8dda8}
html.dg-midnight :is(.dsPrimary,.gcPrimary,.gcCard[aria-pressed=true]){
 background:#243657!important;color:#fff0d0!important;border-color:#c7a16f
}
html.dg-midnight .dsCard,
html.dg-midnight .gcCard:not([aria-pressed=true]){border-color:#d5ba89}
/* Personal dedication and private account pages keep clear paragraph contrast. */
html.dg-midnight .aboutCard{
 background:linear-gradient(135deg,#263654,#151d35)!important;
 border-color:var(--dg-outline)!important;color:#f4e8ce
}
html.dg-midnight .aboutCard p{color:#e0d7c9}
html.dg-midnight .dgFreeVoiceInfo{border-color:var(--dg-outline)}
/* Preserve WhatsApp's familiar green share button as an actual functional cue. */
html.dg-midnight .dgTpShare{background:#25d366!important}


/* Immersive Gita reader overlay, tabs and audio controls. */
html.dg-midnight body.book-open{background:#0a1022!important}
html.dg-midnight .readerChrome{
 background:linear-gradient(180deg,#1c2a48f6,#101a32f4)!important;
 border-bottom:1px solid var(--dg-outline)!important;color:#f7e6c9
}
html.dg-midnight .readerChromeBrand,
html.dg-midnight .readerChrome h1{color:#f2d18f}
html.dg-midnight .readerChrome button,
html.dg-midnight .readerChrome a{
 border-color:var(--dg-outline);color:#f4dfb8
}
html.dg-midnight .readerChrome button:focus-visible,
html.dg-midnight .dgMobileDock button:focus-visible{
 outline:3px solid #ffd897;outline-offset:3px
}
html.dg-midnight .dgMobileDock{touch-action:pan-y}
html.dg-midnight .oldSearch input:focus-visible{outline-color:var(--dg-gold)}
/* Never use heavy CSS filters: they would recolour art, increase GPU work and
 * make Android touch scrolling sluggish. This is backgrounds/text only. */


/* Prevent generic footer span styles from stretching the comparison selector. */
.dgThemeSwitch>span{display:inline-block!important;margin:0!important;letter-spacing:0!important;
 font:700 12.5px/1.4 system-ui,sans-serif!important}
.dgThemeSwitch button{font:700 13px/1.3 system-ui,sans-serif}


/* Midnight phase 2: correct the independently styled homepage panels that
 * escaped the initial pass (some live in index.html's inline <style>). Never
 * change the saffron flag itself, deity portraits, or actual book paper. */
html.dg-midnight{
 --dg-home-panel:linear-gradient(135deg,#25334f 0%,#18223c 48%,#10182c 100%);
 --dg-home-panel-deep:linear-gradient(120deg,#202d49,#111a30 80%);
 --dg-home-border:#d7ae706e;
 --dg-home-ink:#fff0d3;
 --dg-home-muted:#d2cfca;
}
/* Language selector: earlier component CSS was hard-coded Tulsi green. */
html.dg-midnight .dgAppLanguage{
 background:var(--dg-home-panel)!important;
 color:var(--dg-home-ink)!important;
 border-color:var(--dg-home-border)!important;
 box-shadow:0 14px 28px -22px #020714a6,inset 0 1px #fff5e31a;
}
html.dg-midnight .dgAppLanguage strong{color:#f4d69d}
html.dg-midnight .dgAppLanguage small{color:var(--dg-home-muted)}
html.dg-midnight .dgAppLanguage .dgLang{
 background:#0f172bcf!important;
 border:1px solid #d7ae706e!important;
 border-radius:16px;
}
html.dg-midnight .dgAppLanguage .dgLang button{
 color:#f3e2c4!important;
 background:transparent;
 border-color:transparent;
 min-height:48px;
}
html.dg-midnight .dgAppLanguage .dgLang button[aria-pressed=true]{
 background:linear-gradient(135deg,#f6d99d,#cfa260)!important;
 color:#1b2439!important;
 border-color:#e7bf7e!important;
 box-shadow:0 2px 9px #050b1e66;
}
/* Preserve the actual bhagwa/saffron cloth, recolour only its backdrop. */
html.dg-midnight .dgDhwaj{
 background:radial-gradient(ellipse at 24% 45%,#dd9b3d22,transparent 65%),
            var(--dg-home-panel-deep)!important;
 border-color:var(--dg-home-border)!important;
 box-shadow:0 16px 26px -25px #020712cc,inset 0 1px #e2ca9324;
}
html.dg-midnight .dgDhwajWords{color:var(--dg-home-ink)}
html.dg-midnight .dgDhwajWords h2,
html.dg-midnight .dgDhwajEyebrow{color:#f1cd86}
html.dg-midnight .dgDhwajWords p{color:var(--dg-home-muted)}
html.dg-midnight .dgDhwajWords button{
 background:#e9c88c13;color:#f4d8a5;border-color:#dab17180;
}
/* Daily Sadhana was a separate green inline hero despite the global theme. */
html.dg-midnight .dgSadhanaHome{
 background:var(--dg-home-panel)!important;
 color:var(--dg-home-ink)!important;
 border-color:var(--dg-home-border)!important;
 box-shadow:0 16px 30px -23px #03091ac9,inset 0 1px #fff6dc1b;
}
html.dg-midnight .dgSadhanaHomeMark{
 background:#e8c58020;border:1px solid #dab67835;
}
html.dg-midnight .dgSadhanaHomeCopy b{color:#f4dfa9}
html.dg-midnight .dgSadhanaHomeCopy small{color:var(--dg-home-muted)}
html.dg-midnight .dgSadhanaHomeCopy em,
html.dg-midnight .dgSadhanaHomeGo{color:#e9c685}
/* Compass and Utsav quick links should not alternate cream, forest and navy. */
html.dg-midnight .dgCompassHome,
html.dg-midnight .dgPhase4Home>a{
 background:var(--dg-home-panel-deep)!important;
 color:var(--dg-home-ink)!important;
 border:1px solid var(--dg-home-border)!important;
 box-shadow:0 13px 25px -21px #020919cf,inset 0 1px #fff0da1a;
}
html.dg-midnight .dgCompassHomeMark{
 background:#dfbf8240!important;
 color:#f4d69d!important;
 border-color:#d6b17587!important;
}
html.dg-midnight .dgCompassHomeCopy strong,
html.dg-midnight .dgPhase4Home strong{color:#f6dda9!important}
html.dg-midnight .dgCompassHomeCopy small,
html.dg-midnight .dgPhase4Home small{color:var(--dg-home-muted)!important}
html.dg-midnight .dgCompassHomeGo,
html.dg-midnight .dgPhase4Home b{color:#e9c886!important}
html.dg-midnight .dgPhase4Home span{color:#efcf9b}
html.dg-midnight .dgCompassHome:is(:active,:focus-visible),
html.dg-midnight .dgSadhanaHome:is(:active,:focus-visible),
html.dg-midnight .dgPhase4Home>a:is(:active,:focus-visible){
 border-color:#f4d293!important;outline-offset:3px;
}
/* Discovery tiles and book covers use a unified navy landing surface; the
 * reading book itself stays parchment for easy Devanagari comprehension. */
html.dg-midnight body:not(.book-open) .dgQuickGrid>a{
 background:linear-gradient(145deg,#283754,#16223b)!important;
 color:#f6e5c8!important;
 border:1px solid #c9a36e6d!important;
 box-shadow:inset 0 1px #ffffff18,0 12px 24px -17px #000c!important;
}
html.dg-midnight .dgQuickGrid>a span{color:#f4e5cc!important}
html.dg-midnight .dgQuickGrid>a b{color:#e6bf7b}
html.dg-midnight .dgQuickGrid>a:focus-visible{outline-color:#ffda9c}
html.dg-midnight .oldBookCard{
 background:linear-gradient(140deg,#263652,#121c34)!important;
 border-color:var(--dg-home-border)!important;
 color:#f8e8cc!important;
 box-shadow:0 15px 35px #03091877;
}
html.dg-midnight .oldBookDescription h2,
html.dg-midnight .oldBookDescription h3{color:#f5d69c!important}
html.dg-midnight .oldBookDescription small{color:#e2c58c!important}
html.dg-midnight .oldBookDescription p{color:#d4d2d1!important}
html.dg-midnight .oldBookDescription a{color:#f0c982!important}
html.dg-midnight .oldPending{color:#ebc68d}
/* Strong selectors beat the original book-category !important cream panels. */
html.dg-midnight body:not(.book-open) .categoryGrid>a.dgPaintedCategory{
 background:linear-gradient(140deg,#273652,#121d34)!important;
 color:#f9e9cf!important;
 border-color:var(--dg-home-border)!important;
}
html.dg-midnight body:not(.book-open) .categoryGrid>a.dgPaintedCategory strong{
 color:#f4d69b!important;
}
html.dg-midnight body:not(.book-open) .categoryGrid>a.dgPaintedCategory small{
 color:#d0d0d3!important;
}
html.dg-midnight .categoryGrid>a:not(.dgPaintedCategory),
html.dg-midnight .categoryGrid>div{
 background:linear-gradient(145deg,#26334e,#17213b)!important;
 color:#f4e8d5!important;
 border-color:var(--dg-home-border)!important;
}
html.dg-midnight .categoryGrid strong{color:#f1d49b!important}
html.dg-midnight .categoryGrid small{color:#c8cbd3!important}
/* Account and reading library surfaces should feel from the same app. */
html.dg-midnight .lib-continue{
 background:linear-gradient(130deg,#283858,#152039)!important;
 color:#f9e8c9!important;
 border-color:var(--dg-home-border)!important;
 box-shadow:0 16px 30px #02091655;
}
html.dg-midnight .lib-continue .lib-eyebrow{color:#e9c484!important}
html.dg-midnight .lib-continue .lib-muted{color:#d0d2db!important}
html.dg-midnight .lib-card:not(.dgWithCover){
 background:linear-gradient(150deg,#263652,#131e37)!important;
 color:#f5e5c9!important;
 border-color:var(--dg-home-border)!important;
}
html.dg-midnight .lib-card:not(.dgWithCover) h3{color:#f4d79f!important}
html.dg-midnight .lib-card:not(.dgWithCover) .lib-muted{color:#cfced1!important}
html.dg-midnight .lib-card .lib-actions .lib-primary,
html.dg-midnight .lib-continue .lib-primary{
 background:linear-gradient(135deg,#f5d79a,#c69c61)!important;
 color:#1b2540!important;
 border-color:#dfb574!important;
}
@media(max-width:600px){
 html.dg-midnight :is(.dgAppLanguage,.dgSadhanaHome,.dgCompassHome,
 .dgPhase4Home>a,.dgDhwaj){box-shadow:0 12px 24px -22px #000c}
}
/* The gold flag, authentic book art, divine portraits and physical pages are
 * intentionally never filtered or overwritten by this colour-only layer. */


/* QA pass: real app interaction surfaces that were missed by theme-token
 * coverage. Theme affects only the chrome, NEVER the artwork, Sanskrit text
 * or original orange bhagwa flag. Tulsi keeps its existing ritual appearance. */
html.dg-midnight .dgTempleBell{
 background:radial-gradient(ellipse at 8% 47%,#dbab6330,transparent 36%),
   linear-gradient(110deg,#283655,#1c2844 54%,#111a31)!important;
 color:#f3e7cc!important;
 border:1px solid #caa56f94!important;
 box-shadow:0 13px 31px #0207146c,inset 0 1px #ffeac51f!important;
}
html.dg-midnight .dgTempleBell::after{
 border-color:#ddbe8752;
}
html.dg-midnight .dgBellArt{
 background:radial-gradient(circle,#e1b36e27 0%,#14203900 78%);
}
html.dg-midnight .dgBellEyebrow,
html.dg-midnight .dgBellEyebrow span{color:#efcf98!important}
html.dg-midnight .dgBellWords h2{color:#f6dca7!important}
html.dg-midnight .dgBellWords h2 span{color:#e2d1b7!important}
html.dg-midnight .dgBellWords p{color:#e0d9cc!important}
html.dg-midnight #dgBellStatus{color:#e0c28c!important}
html.dg-midnight .dgBellRingAction{
 color:#1f2941!important;border-color:#f5d798!important;
}
html.dg-midnight .dgBellAuto:not([aria-pressed="true"]){
 background:#1a2946!important;color:#f5dfba!important;
 border-color:#d2af7d99!important;
}
html.dg-midnight .dgBellAuto:not([aria-pressed="true"]) .dgBellAutoState{
 color:#f3d5a2!important;
 border-color:#d2af7d6e;
 background:#fff6d10d;
}
html.dg-midnight .dgBellAuto[aria-pressed="true"]{
 background:linear-gradient(140deg,#f0d59d,#cc9f62)!important;
 color:#1f2d45!important;
 border-color:#efd198!important;
}
html.dg-midnight .dgBellAuto[aria-pressed="true"] .dgBellAutoState{
 color:#21314b!important;background:#fff4d9;border-color:#bf9654;
}
/* Narrator, reader controls, highlights and voice-setting sheets should
 * inherit the visual theme; never leave forest-green switches on navy chrome. */
html.dg-midnight .oldSettingsPanel .readingControls,
html.dg-midnight .readerZone .musicBar,
html.dg-midnight .readerZone .audioDock,
html.dg-midnight .dg-sheet-card,
html.dg-midnight .readerZone .audioControls{
 background:linear-gradient(160deg,#253651,#121c34)!important;
 color:#f5e3c1!important;
 border-color:#d3ad7273!important;
}
html.dg-midnight .readerZone .audioButtons button,
html.dg-midnight .readerZone .voiceLink,
html.dg-midnight .readerZone .oldReaderTools button,
html.dg-midnight .readerZone .dgVerseFooter .oldPagePlay,
html.dg-midnight .audioButtons button,
html.dg-midnight .dg-icon{
 background:#283a59!important;
 color:#f5e3c3!important;
 border-color:#bd9d6d8a!important;
}
html.dg-midnight .musicBar button[aria-pressed="true"],
html.dg-midnight .dr-options button[aria-pressed=true],
html.dg-midnight .dr-collection button[aria-pressed=true],
html.dg-midnight .dr-tools button[data-dr=reflect],
html.dg-midnight .dr-reflect-actions button.dr-primary,
html.dg-midnight .dr-dialog-body .dr-primary,
html.dg-midnight .dr-ambience-button[aria-pressed=true]{
 background:linear-gradient(140deg,#34496b,#223453)!important;
 color:#fbe9c5!important;
 border-color:#ddbb7e!important;
}
/* Daily Darshan remains real readable ivory paper, but active buttons should
 * no longer become green inside the navy-and-gold app. */
html.dg-midnight .dgDsActs button[aria-pressed=true]{
 background:linear-gradient(135deg,#243958,#344c6e)!important;
 color:#fff1d3!important;
 border-color:#d7b67c!important;
}
html.dg-midnight .dgDsLang button[aria-pressed=true]{
 background:#273b59!important;color:#fff1d6!important;border-color:#e4be81!important;
}
/* A visually recognizable social button in both modes: green by brand,
 * dark glyph + dark text (not the mint-on-green icon from the screenshot). */
html.dg-midnight .dgTpFoot .dgTpShare{
 background:#25d366!important;
 color:#06391f!important;
 border-color:#54e68e!important;
}
html.dg-midnight .dgTpFoot .dgTpShare b,
html.dg-midnight .dgTpFoot .dgTpShare span,
html.dg-midnight .dgTpFoot .dgTpShare svg,
html.dg-midnight .dgTpFoot .dgTpShare svg path{
 color:#06391f!important;
 fill:currentColor!important;
 opacity:1!important;
}
/* The theme CSS may be loaded after the page-local button rules. Do not
 * allow a later hover/pressed state to turn the icon green on green. */
html.dg-midnight .dgTpFoot .dgTpShare:is(:hover,:active,:focus-visible) svg{
 color:#06391f!important;
}
/* Night splash should match the first frame of the app, not flash forest
 * green before the nav loads. Original Tulsi splash is untouched. */
html.dg-midnight #dgSplash{
 background:radial-gradient(ellipse at 50% 44%,#314265 0%,#182740 50%,#0a1123 100%)!important;
}
@media(prefers-reduced-motion:reduce){
 html.dg-midnight .dgBellAuto,
 html.dg-midnight .dgTpFoot .dgTpShare{transition:none!important}
}


/* Full-site theme parity pass — pages with independent hard-coded forest
 * panels. Paper, content art, festive orange/red semantics and confirmed
 * success/warning colours are retained intentionally. */
html.dg-midnight :is(.hcHero,.kHero,.kMatchHero,.muHero,.dhHero){
 background:radial-gradient(ellipse at 50% 0%,#354568 0%,#202d4a 49%,#101a32 100%)!important;
 border-color:#ceaa716e!important;
 color:#fff0d4!important;
 box-shadow:0 18px 32px -22px #050c1ee0;
}
html.dg-midnight .hcDayPanel,
html.dg-midnight .hcFilters,
html.dg-midnight .hcDayPanel header,
html.dg-midnight .hcMonthPanel{
 background:linear-gradient(155deg,#253652,#101b32)!important;
 border-color:#c8a36e81!important;
 color:#f3e2c6!important;
}
html.dg-midnight .hcDayPanel :is(h2,h3),
html.dg-midnight .hcHero :is(h1,h2){color:#f5d79c!important}
html.dg-midnight .hcDayPanel .hcShare{
 color:#07351e!important;
 background:#25d366!important;
}
html.dg-midnight .dsVerse{
 background:linear-gradient(135deg,#273955,#15213b)!important;
 color:#fff2da!important;
 border:1px solid #d5b67c70;
}
html.dg-midnight .dsVerse :is(h2,h3,p){color:#f5e6cc!important}
html.dg-midnight .dsSwitch button[aria-pressed=true],
html.dg-midnight .dsOpen,
html.dg-midnight .dsMark[aria-pressed=true],
html.dg-midnight .gcSearchBtn,
html.dg-midnight .gcTopic[aria-pressed=true]{
 background:linear-gradient(130deg,#273c5c,#192841)!important;
 border-color:#d7b276!important;
 color:#f9e9cd!important;
}
html.dg-midnight .gcSearchBtn:hover,
html.dg-midnight .dsOpen:hover{
 background:#344b70!important;
}
html.dg-midnight body.collection-heritage :is(
 .hc-setting-panel>summary,
 .hc-chooser-panel>summary,
 .hc-setting-panel .toolbar,
 .hc-chooser-panel .chooser,
 .navigation>button,
 .nav>button,
 .audio button,
 .hc-play){
 background:#243652!important;
 color:#f5e3c5!important;
 border-color:#c6a16e90!important;
}
html.dg-midnight :is(
 .mbSelectorActions button,
 .mbReaderTools button,
 .mbAudioButtons button:not(:nth-child(2)),
 .malaControls button,
 .mantraNavigation button,
 .pvAudioActions button,
 .pvMusic button,
 .mantraPlayer button,
 .mantraAmbience button){
 background:#283954!important;
 color:#f5e3c3!important;
 border-color:#c5a47182!important;
}
html.dg-midnight .mantraMala,
html.dg-midnight .mantraEdition,
html.dg-midnight .pvAudio,
html.dg-midnight .mbNarration{
 background:#1a2944!important;
 border-color:#d1ab7371!important;
 color:#f5e5ca!important;
}
/* Never turn celebration art or the user's reading paper into a uniform flat
 * panel. These are purposeful exceptions to the navy app chrome. */


/* On warm-ivory editorial/tool pages, small forest-green form labels and
 * input text also need navy ink. Limit this to pale surfaces so dark controls
 * retain their readable gold/ivory foreground. */
html.dg-midnight .gcInputRow input,
html.dg-midnight .gcBookLabel select,
html.dg-midnight .gcExamples button,
html.dg-midnight .gcTopic:not([aria-pressed=true]),
html.dg-midnight .dsSwitch button:not([aria-pressed=true]),
html.dg-midnight .dsMark:not([aria-pressed=true]),
html.dg-midnight .acForm input:not([type=checkbox]){
 color:#263650!important;
}
html.dg-midnight .dsResume{
 background:#fff8eb!important;
 color:#293955!important;
 border-color:#ccb183!important;
}
html.dg-midnight .dsResume :is(h2,h3,p){color:#293955}
html.dg-midnight .gcTopic:not([aria-pressed=true]){
 background:#fffaf0!important;
 border-color:#d8c4a4!important;
}

/* Theme parity for homepage Darshan and study articles · 2026-11-20.
   Applied after the independent homepage CSS; never alter scripture art. */
html:not(.dg-midnight) .dgDarshan{
 background:radial-gradient(ellipse 120% 90% at 50% -8%,#28543e 0%,#173d30 54%,#0d2921 100%);
 color:#f8ead0;border-color:#cba967;
 box-shadow:0 20px 38px -20px #031e16,inset 0 0 0 6px #e9d8a70c,inset 0 0 0 7px #d1aa6940;
}
html:not(.dg-midnight) .dgDarshan .dgDsTitle b{color:#f8d99a}
html:not(.dg-midnight) .dgDarshan :is(.dgDsTitle small,.dgDsWhy){color:#e4dcc6}
html:not(.dg-midnight) .dgDarshan .dgDsOrn{color:#e4bf7d}
html:not(.dg-midnight) .dgDarshan .dgDsText{color:#fff4df}
html:not(.dg-midnight) .dgDarshan .dgDsRef{background:#fff8e9;color:#65431e;border-color:#d5b77f}
html:not(.dg-midnight) .dgDarshan .dgDsMeaning{background:#fff9ee;color:#362a1e;border-color:#e3c999;box-shadow:inset 4px 0 0 #cba45e}
html:not(.dg-midnight) .dgDarshan .dgDsMeaning p{color:#332a20}
html:not(.dg-midnight) .dgDarshan .dgDsMHead span{color:#835a25}
html:not(.dg-midnight) .dgDarshan .dgDsLang button{color:#174530;border-color:#b99761}
html:not(.dg-midnight) .dgDarshan .dgDsLang button[aria-pressed=true]{background:#174530;color:#fff5df;border-color:#174530}
html:not(.dg-midnight) .dgDarshan .dgDsActs button{background:linear-gradient(180deg,#fff9ea,#f1dfbb);color:#204b36;border-color:#d2b377}
html:not(.dg-midnight) .dgDarshan .dgDsActs button.main{background:linear-gradient(145deg,#e9d09b,#c49a5a);color:#19392b;border-color:#f4ddb0}
html:not(.dg-midnight) .dgDarshan .dgDsActs button[aria-pressed=true]{background:linear-gradient(145deg,#2a6249,#1b4836);color:#fff6e4;border-color:#d9c08a}

html.dg-midnight .dgDarshan{
 background:radial-gradient(ellipse 110% 90% at 50% -8%,#2c3959 0%,#192743 56%,#101b31 100%)!important;
 color:#fff0d5;border-color:#cfab76!important;
 box-shadow:0 22px 44px -20px #020918,inset 0 0 0 6px #efd29a0b,inset 0 0 0 7px #d6b5773f;
}
html.dg-midnight .dgDarshan .dgDsTitle b{color:#f7d79d}
html.dg-midnight .dgDarshan :is(.dgDsTitle small,.dgDsWhy){color:#dbd5c9}
html.dg-midnight .dgDarshan .dgDsOrn{color:#e5c184}
html.dg-midnight .dgDarshan .dgDsText{color:#fff2d7}
html.dg-midnight .dgDarshan .dgDsRef{background:#fff4e0;color:#674826;border-color:#c6a26a}
html.dg-midnight .dgDarshan .dgDsMeaning{background:#fff8eb;color:#30291f;border-color:#d9bf94;box-shadow:inset 4px 0 0 #caa66e,0 12px 25px -20px #0008}
html.dg-midnight .dgDarshan .dgDsMeaning p{color:#30291f}
html.dg-midnight .dgDarshan .dgDsMHead span{color:#7c5426}
html.dg-midnight .dgDarshan .dgDsLang button{color:#263a58;border-color:#b59c76}
html.dg-midnight .dgDarshan .dgDsLang button[aria-pressed=true]{background:#273b59!important;color:#fff2da!important;border-color:#d7b67b!important}
html.dg-midnight .dgDarshan .dgDsActs button{background:linear-gradient(180deg,#fff5df,#e8d3ad);color:#293650;border-color:#c3a678}
html.dg-midnight .dgDarshan .dgDsActs button.main{background:linear-gradient(145deg,#f4d9a0,#cba061);color:#21304a;border-color:#f7e5bc}
html.dg-midnight .dgDarshan .dgDsActs button[aria-pressed=true]{background:linear-gradient(135deg,#243958,#344c6e)!important;color:#fff1d3!important;border-color:#d7b67c!important}

/* Study article gateway: forest in Tulsi; navy and gold in Midnight.
   Preserve unique original book cover images in both appearances. */
html:not(.dg-midnight) body:not(.book-open) .dgBlogIntro{
 background:linear-gradient(135deg,#214c3a,#103225)!important;
 border-color:#c8ac75;color:#f7e8cc;box-shadow:0 19px 38px -20px #041b13;
}
html:not(.dg-midnight) .dgBlogIntroHead p{color:#dfb975}
html:not(.dg-midnight) .dgBlogIntroHead h2{color:#f9dca3}
html:not(.dg-midnight) .dgBlogIntroHead span{color:#e1d9c9}
html:not(.dg-midnight) .dgBlogIntroHead>a{background:#fbf0d8;color:#154632;border-color:#dab878}
html:not(.dg-midnight) .dgBlogIntroGrid>a{background:#fffaf0;border-color:#d7bd89}
html:not(.dg-midnight) .dgBlogIntroGrid small{color:#8c5b21}
html:not(.dg-midnight) .dgBlogIntroGrid strong{color:#153e2c}
html:not(.dg-midnight) .dgBlogIntroGrid em{color:#16583a}

html.dg-midnight body:not(.book-open) .dgBlogIntro{
 background:linear-gradient(135deg,#253653,#111c34)!important;
 border-color:#bd9b6a!important;color:#f8e8cd;box-shadow:0 19px 38px -20px #030916;
}
html.dg-midnight .dgBlogIntroHead p{color:#e5bb78}
html.dg-midnight .dgBlogIntroHead h2{color:#f6dbab}
html.dg-midnight .dgBlogIntroHead span{color:#d3d3d8}
html.dg-midnight .dgBlogIntroHead>a{background:#f2d7a3;color:#26334d;border-color:#f9e9c7}
html.dg-midnight .dgBlogIntroGrid>a{background:linear-gradient(135deg,#1b2a47,#121d34)!important;border-color:#b994627d;box-shadow:0 8px 19px #050c1d88}
html.dg-midnight .dgBlogIntroGrid small{color:#d7b67e}
html.dg-midnight .dgBlogIntroGrid strong{color:#f8e8d0}
html.dg-midnight .dgBlogIntroGrid em{color:#e7c58b}

/* Full article pages also follow a manually selected navy theme. */
html.dg-midnight .blog-header{background:linear-gradient(135deg,#1b2946,#10182d);border-color:#c4a36f}
html.dg-midnight .blog-main{background:#18253e;color:#efe4d0}
html.dg-midnight .blog-main h1,
html.dg-midnight .blog-article-section h2,
html.dg-midnight .blog-related h2{color:#f1d29b}
html.dg-midnight .blog-lead,
html.dg-midnight .blog-breadcrumb,
html.dg-midnight .blog-editorial{color:#d4d3d5}
html.dg-midnight .blog-tile{background:#22324d;border-color:#b99a69}
html.dg-midnight .blog-tile h2{color:#f6e5c9}
html.dg-midnight .blog-tag,html.dg-midnight .blog-post-meta{color:#debf88}
html.dg-midnight .blog-more,html.dg-midnight .blog-back a{color:#efd09a}
html.dg-midnight .blog-toc,html.dg-midnight .blog-related{background:#293956;border-color:#bd9d6e;color:#f0e0c6}
html.dg-midnight .blog-toc strong,html.dg-midnight .blog-related a{color:#efd29b}
html.dg-midnight .blog-footer{background:#0d172c}

/* Thumb-friendly controls and no clipping at narrow mobile widths. */
.dgBlogIntroHead>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
.dgBlogIntroGrid>a{min-width:0}
.dgBlogIntroGrid strong{overflow-wrap:anywhere}
.dgDarshan .dgDsActs button{min-height:64px;touch-action:manipulation}
@media(max-width:480px){
 .dgDarshan .dgDsActs{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .dgDarshan .dgDsActs button{min-height:60px;min-width:0}
 .dgDarshan .dgDsText{overflow-wrap:anywhere}
 .dgBlogIntroHead>a{max-width:100%}
}
@media(prefers-reduced-motion:reduce){.dgDarshan .dgDsActs button{transition:none!important}}


/* Notification action footer is a separate, stable pane in the new modal. */
html.dg-midnight .dgRmActions{background:#17253e;border-color:#b6a47c75}
html.dg-midnight .dgRmScroll>.dgRmWhy{color:#e5dece}
html.dg-midnight .dgRmScroll>.dgRmTrust{color:#d4d4db}

/* Free-account gate: fixed navigation and actions follow Midnight Navy;
   only the middle form is independently scrollable. */
html.dg-midnight .dgGateHeader,
html.dg-midnight .dgGateActions{background:#17253e;border-color:#b4a17a66}
html.dg-midnight .dgGateBack,
html.dg-midnight .dgGateX{background:#263857;border-color:#c6a5707a}
html.dg-midnight .dgGateBrand,
html.dg-midnight .dgGateScroll h2{color:#f0d7aa!important}
html.dg-midnight .dgGateScroll{background:#17253e}
