/* mrdnej.com day/night theme. Night = original design. Day = html[data-theme="light"]. */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after{
  transition:background-color .5s cubic-bezier(.23,1,.32,1), color .5s cubic-bezier(.23,1,.32,1), border-color .5s cubic-bezier(.23,1,.32,1), fill .5s, stroke .5s !important}

/* ---------- the switch ---------- */
.tswitch{position:relative;flex:none;width:58px;height:30px;border-radius:999px;border:1px solid rgba(140,190,255,.35);padding:0;cursor:pointer;overflow:hidden;
  background:linear-gradient(180deg,#0b1a44,#1b2f6b);box-shadow:inset 0 1px 3px rgba(0,0,0,.45);transition:background .5s cubic-bezier(.23,1,.32,1),border-color .5s}
.tswitch:focus-visible{outline:2px solid #f0b35a;outline-offset:2px}
.tswitch .stars{position:absolute;inset:0;transition:opacity .4s,transform .6s cubic-bezier(.23,1,.32,1)}
.tswitch .stars i{position:absolute;width:2px;height:2px;border-radius:50%;background:#fff;opacity:.85}
.tswitch .stars i:nth-child(1){left:34px;top:7px}.tswitch .stars i:nth-child(2){left:44px;top:15px;width:1.5px;height:1.5px}.tswitch .stars i:nth-child(3){left:39px;top:22px;width:1px;height:1px}.tswitch .stars i:nth-child(4){left:49px;top:8px;width:1px;height:1px}
.tswitch .cloud{position:absolute;left:8px;top:15px;width:18px;height:7px;border-radius:7px;background:#fff;opacity:0;transform:translateX(-10px);transition:opacity .4s,transform .6s cubic-bezier(.23,1,.32,1)}
.tswitch .cloud::before{content:"";position:absolute;left:4px;top:-4px;width:9px;height:9px;border-radius:50%;background:#fff}
.tswitch .knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#f4f1de;
  box-shadow:inset -5px -3px 0 0 #d9d2b0,0 0 10px rgba(244,241,222,.45);transition:transform .6s cubic-bezier(.34,1.56,.64,1),background .5s,box-shadow .5s}
.tswitch .knob::before,.tswitch .knob::after{content:"";position:absolute;border-radius:50%;background:rgba(160,150,110,.45);transition:opacity .3s}
.tswitch .knob::before{width:5px;height:5px;left:5px;top:6px}.tswitch .knob::after{width:3px;height:3px;left:11px;top:13px}
html[data-theme="light"] .tswitch{background:linear-gradient(180deg,#7cc4ff,#bfe3ff);border-color:rgba(31,111,255,.35);box-shadow:inset 0 1px 3px rgba(0,60,140,.25)}
html[data-theme="light"] .tswitch .stars{opacity:0;transform:translateY(-8px)}
html[data-theme="light"] .tswitch .cloud{opacity:.95;transform:none}
html[data-theme="light"] .tswitch .knob{transform:translateX(28px) rotate(180deg);background:#ffc93c;box-shadow:0 0 0 3px rgba(255,201,60,.35),0 0 14px rgba(255,170,0,.7)}
html[data-theme="light"] .tswitch .knob::before,html[data-theme="light"] .tswitch .knob::after{opacity:0}
@media (prefers-reduced-motion:reduce){.tswitch,.tswitch *{transition:none!important}}

/* ---------- day palette (shared variable names across pages) ---------- */
html[data-theme="light"]{color-scheme:light;
  --ink:#f4f7fc;--navy:#e8eff9;--panel:#ffffff;--line:rgba(16,45,110,.14);
  --fg:#0d1f45;--soft:#2a3d63;--tx:#0d1f45;--muted:#56688a;
  --sky:#1d63d8;--blue:#1f6fff;--blue-2:#1a5be0;--gold:#b7791f}
html[data-theme="light"] body{background:var(--ink);color:var(--tx,var(--fg))}

/* ---------- day mode: shared header, text and surfaces ---------- */
html[data-theme="light"] .top{background:rgba(255,255,255,.86)!important;border-bottom-color:rgba(16,45,110,.1)!important;box-shadow:0 6px 24px -18px rgba(16,45,110,.35)}
html[data-theme="light"] .top img[src*="/img/logo.png"],html[data-theme="light"] .brand img,html[data-theme="light"] footer img[src*="/img/logo"],html[data-theme="light"] .init img,html[data-theme="light"] .foot img{content:url(/img/logo-dark.png)}
html[data-theme="light"] .back,html[data-theme="light"] .top .r{color:#2a3d63}
html[data-theme="light"] .lang a{color:#7083a6}html[data-theme="light"] .lang a[aria-current]{color:#0d1f45}html[data-theme="light"] .lang i{background:#c4d0e6}
html[data-theme="light"] main :is(p,li,blockquote,figcaption,dd){color:var(--soft)!important}
html[data-theme="light"] main :is(h1,h2,h3,h4,strong,b){color:var(--tx)!important}
html[data-theme="light"] main :is(small,time,.meta,.vt,.upd,.muted,.trn,.orig,.empty,.note){color:var(--muted)!important}
html[data-theme="light"] footer{background:#e8eff9!important;color:#56688a!important;border-top-color:rgba(16,45,110,.1)!important}
/* accents keep their colour */
html[data-theme="light"] main :is(.kick,.tag,.org,.k,.cg,.certs-h){color:#b7791f!important}
html[data-theme="light"] main :is(a.go,.go,.srcb,.trn a,.orig a,.body a,.story a,.roles em,.roles em a,.role,.cd a,.certs-all){color:#1d63d8}
html[data-theme="light"] .deb .p b{color:#178a4f}html[data-theme="light"] .deb .c b{color:#c4501f}
/* surfaces: dark glass becomes white cards */
html[data-theme="light"] :is(.card,.deb article,.acad,.gloss li,.vals li,.lna,.cgrid li,.av,.feats li,.feature .card,.grace,blockquote,div.cta,.init){background:#fff!important;border-color:rgba(16,45,110,.12)!important;box-shadow:0 14px 34px -24px rgba(16,45,110,.35)}
html[data-theme="light"] div.cta{background:linear-gradient(135deg,#e7f0ff,#fff)!important}
html[data-theme="light"] :is(a,button).cta,html[data-theme="light"] :is(a,button).cta *{color:#fff!important}
html[data-theme="light"] .init{background:linear-gradient(135deg,#eef4ff,#fff)!important}
html[data-theme="light"] .init :is(h3,p){color:var(--tx)!important}html[data-theme="light"] .init p:not(.k){color:var(--soft)!important}
html[data-theme="light"] :is(.vote,.cm){background:#f3f7fd!important;border-color:rgba(16,45,110,.1)!important}
html[data-theme="light"] .soc{border-top-color:rgba(16,45,110,.1)}
html[data-theme="light"] :is(.rx,.vb,.filters button,.btn.sec,.acts button){color:#1d2f55;border-color:rgba(16,45,110,.18);background:#fff}
html[data-theme="light"] .rx[aria-pressed=true]{background:#e3edff;border-color:#1f6fff;color:#0d1f45}
html[data-theme="light"] .filters button[aria-pressed=true]{background:#1f6fff;color:#fff;border-color:#1f6fff}
html[data-theme="light"] .acts button:hover{background:#eef3fb;color:#0d1f45}
html[data-theme="light"] .vb.pro[aria-pressed=true]{background:#dff6ea;border-color:#2fa86a;color:#0d3b22}html[data-theme="light"] .vb.con[aria-pressed=true]{background:#ffe9df;border-color:#e0703f;color:#4a1a06}
html[data-theme="light"] .vbar{background:#e2e9f5}
html[data-theme="light"] .cform :is(input,textarea){background:#fff;color:#0d1f45;border-color:rgba(16,45,110,.2)}
html[data-theme="light"] .share-pop{background:#fff;border-color:rgba(16,45,110,.15)}html[data-theme="light"] .share-pop :is(a,button){background:#eef3fb;color:#0d1f45}
/* heroes: morning light over the same photos */
html[data-theme="light"] .hero::after{background:linear-gradient(180deg,rgba(244,247,252,.55),var(--ink) 92%),radial-gradient(900px 500px at 85% 0%,rgba(31,111,255,.12),transparent 60%)!important}
html[data-theme="light"] .hero .bg{opacity:.22;filter:saturate(1.1) brightness(1.15)}
html[data-theme="light"] .hero:not(.intro){background:radial-gradient(900px 480px at 85% 0%,rgba(31,111,255,.12),transparent 60%),radial-gradient(700px 500px at 0% 100%,rgba(240,179,90,.10),transparent 60%)}
html[data-theme="light"] .hero :is(.lead,.intro){color:#2a3d63}
html[data-theme="light"] .field{background:linear-gradient(180deg,var(--ink),#e6eef9 50%,var(--ink))!important}
html[data-theme="light"] .poem .body{color:#14284f}
html[data-theme="light"] .body figure img{box-shadow:0 18px 40px -26px rgba(16,45,110,.45)}
html[data-theme="light"] .cv{background:linear-gradient(135deg,#dbe8ff,#f3f7ff)!important}html[data-theme="light"] .cv span{color:#1d3a75}
html[data-theme="light"] .m-spot::before{background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(31,111,255,.10),transparent 45%)}
html[data-theme="light"] .m-tilt.m-hov{box-shadow:0 26px 50px -30px rgba(16,45,110,.45)}
html[data-theme="light"] .ph{box-shadow:0 30px 60px -36px rgba(16,45,110,.55),0 0 0 1px rgba(16,45,110,.1)}
html[data-theme="light"] .btn:not(.sec){color:#fff}
html[data-theme="light"] main p[style]{color:var(--soft)!important}
/* Best Support page keeps its own palette */
html[data-theme="light"] .gal :is(h2){color:#fff!important}html[data-theme="light"] .gal figcaption{color:#cfe3da!important}
html[data-theme="light"] .levels div:nth-child(-n+2) :is(b,small){color:#fff!important}html[data-theme="light"] .levels div:nth-child(-n+2) p{color:#dcefd7!important}
html[data-theme="light"] .init .cl{color:#b7791f!important}
/* ---------- homepage ---------- */
html[data-theme="light"] .nav a{color:#2a3d63}html[data-theme="light"] .nav a.on,html[data-theme="light"] .nav a:hover{color:#1d63d8}
html[data-theme="light"] .burger span,html[data-theme="light"] .burger span::before,html[data-theme="light"] .burger span::after{background:#0d1f45}
html[data-theme="light"] .burger{border-color:rgba(16,45,110,.2)}
html[data-theme="light"] .pager button{color:#7083a6}html[data-theme="light"] .pager button[aria-current],html[data-theme="light"] .pager button.on{color:#1d63d8}
html[data-theme="light"] .certs,html[data-theme="light"] .dl,html[data-theme="light"] .tile,html[data-theme="light"] .svc,html[data-theme="light"] .lna-do li,html[data-theme="light"] .stat,html[data-theme="light"] #form,html[data-theme="light"] .proj{background:#fff!important;border-color:rgba(16,45,110,.12)!important;box-shadow:0 14px 34px -24px rgba(16,45,110,.35)}
html[data-theme="light"] .dl{color:#0d1f45}
html[data-theme="light"] .proj::after{border-color:rgba(16,45,110,.12)}
html[data-theme="light"] .proj .ph::after{background:linear-gradient(180deg,rgba(255,255,255,0) 60%,rgba(255,255,255,.35))}
html[data-theme="light"] .proj .go{border-color:rgba(16,45,110,.25);color:#1d63d8}
html[data-theme="light"] :is(.tile q,.svc p,.proj p,.lna-do span,.stat span,.lna-stats span,.tl span,.certs span,.chips span){color:var(--soft)}
html[data-theme="light"] .chips span{border-color:rgba(16,45,110,.18);background:#fff}
html[data-theme="light"] #form :is(input,select,textarea){background:#f4f7fc;color:#0d1f45;border-color:rgba(16,45,110,.18)}
html[data-theme="light"] #form label{color:#2a3d63}
html[data-theme="light"] .tl::before{background:linear-gradient(180deg,#1d63d8,rgba(29,99,216,.1))}
html[data-theme="light"] .tl li::before{background:#fff}
html[data-theme="light"] .band{background:transparent}

/* homepage hero: morning light, dark text on the left */
html[data-theme="light"] .hero.intro::before{background:linear-gradient(90deg,rgba(244,247,252,.94) 0%,rgba(244,247,252,.8) 30%,rgba(244,247,252,.25) 58%,rgba(244,247,252,0) 75%),linear-gradient(0deg,var(--ink) 3%,rgba(244,247,252,.65) 20%,rgba(244,247,252,0) 46%)!important}
html[data-theme="light"] .hero.intro .media img{filter:brightness(1.3) saturate(.95)}
html[data-theme="light"] .hero.intro .media canvas{opacity:.35}
html[data-theme="light"] .hero.intro h1,html[data-theme="light"] .hero.intro h1 span:not(.grad){color:#0d1f45}
html[data-theme="light"] .hero.intro .lede{color:#2a3d63}
/* accents inside forced text colours */
html[data-theme="light"] main :is(.big em,h2 em){color:#1d63d8!important}
html[data-theme="light"] main .grad{color:transparent!important}
html[data-theme="light"] .pill{color:#1d63d8;border-color:rgba(29,99,216,.45)}html[data-theme="light"] .pill:hover{background:rgba(31,111,255,.08)}
html[data-theme="light"] main :is(.eyebrow,.eyebrow span){color:#1d63d8!important}
html[data-theme="light"] main :is(.stat strong,.lna-stats strong){color:#1d63d8!important}
html[data-theme="light"] main .tl time{color:#1d63d8!important}html[data-theme="light"] main .tl li.next time{color:#b7791f!important}
/* LNA card stays a deep navy badge in day mode */
html[data-theme="light"] .lna-card :is(p,b,span,li){color:#e6eefb!important}html[data-theme="light"] .lna-card .lna-note{color:#a9bcdb!important}
html[data-theme="light"] .lna-card :is(.lna-roles a){color:#e6eefb!important}
/* faith band and contact keep readable on photos */
html[data-theme="light"] #faith :is(h2,p,blockquote,q,.ref){color:#fff!important}
/* the curved carousel keeps its night glass in both modes */
html[data-theme="light"] #arc{--ink:#0a1a3a;--navy:#10275a;--panel:#15306a;--fg:#f2f6fc;--soft:#dbe5f4;--muted:#a9bcdb;--sky:#69b1ff;--line:rgba(140,190,255,.24)}
html[data-theme="light"] #arc .lbl,html[data-theme="light"] #arc .lbl b,html[data-theme="light"] #arc .lbl svg{color:#f2f6fc!important;text-shadow:0 2px 10px rgba(0,0,0,.55)}
html[data-theme="light"] .burger span{background:#0d1f45;box-shadow:0 6px 0 #0d1f45,0 -6px 0 #0d1f45}
@media (max-width:760px){
  html[data-theme="light"] .hero.intro::before{background:linear-gradient(180deg,rgba(244,247,252,.92) 0%,rgba(244,247,252,.82) 38%,rgba(244,247,252,.15) 62%,rgba(244,247,252,0) 72%),linear-gradient(0deg,var(--ink) 3%,rgba(244,247,252,0) 30%)!important}
}
html[data-theme="light"] .nav.open{background:rgba(255,255,255,.98);box-shadow:0 24px 40px -24px rgba(16,45,110,.35)}html[data-theme="light"] .nav.open a{border-color:rgba(16,45,110,.1)}

html[data-theme="light"] .gal .sub{color:#b9c6d6!important}
html[data-theme="light"] .intent{background:linear-gradient(180deg,#fff,#f3f7ff)!important;border-color:rgba(16,45,110,.14)!important;box-shadow:0 14px 30px -24px rgba(16,45,110,.4)}
html[data-theme="light"] .intent b{color:var(--tx)!important}html[data-theme="light"] .intent small{color:var(--soft)!important}
html[data-theme="light"] .intent .ii{color:#1d63d8}html[data-theme="light"] .intent.on{border-color:#e0a000!important}
html[data-theme="light"] .pick{color:#a86b00}
html[data-theme="light"] .svc-go{color:#1d63d8}
html[data-theme="light"] :is(.vcard,.prop){background:#fff!important;border-color:rgba(16,45,110,.12)!important;box-shadow:0 14px 34px -24px rgba(16,45,110,.35)}
html[data-theme="light"] .vcard{background:linear-gradient(160deg,#fff6e8,#fff 45%)!important}
html[data-theme="light"] .vcard blockquote{background:transparent!important;border:0!important;border-left:3px solid #c98a12!important;box-shadow:none!important;color:#3a2a10!important;padding:0 0 0 16px!important}
html[data-theme="light"] .vcard .vref{color:#a86b00}
html[data-theme="light"] .cover :is(b,span){color:#fff!important}
