/* Reading controls stay together on the same row as the language selector. */
.prayer-hub header>.reading-tools{display:flex;align-items:center;gap:8px;grid-column:2;grid-row:1;justify-self:end}
.prayer-hub header>.reading-tools #size,.prayer-hub header>.reading-tools #night-mode{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;margin:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.prayer-hub #night-mode{font-size:24px;line-height:1}
.prayer-hub #night-mode[aria-pressed="true"]{border-color:#e2bd70;color:#f4d18a}
@media(max-width:900px){.prayer-hub header>.reading-tools{grid-column:2;grid-row:1}}
@media(max-width:380px){.prayer-hub header>.reading-tools{gap:4px}}
/* Muted navy backgrounds and warm text preserve legibility for night reading. */
.prayer-hub.night-mode{color-scheme:dark;--paper:#101d2a;--white:#1d3040;--ink:#edf2ed;--muted:#becbd1;--line:#536879;--gold:#f0cb80;background:var(--paper);color:var(--ink)}
.prayer-hub.night-mode :is(.hero,.daily-gospel-preview){background:#142f46;color:#fff7e5}
.prayer-hub.night-mode .hero .button{background:#e5d6b5;color:#142f46;border-color:#e5d6b5}
.prayer-hub.night-mode :is(.band,.callout,.wall-compose,.saint-facts,.international-scope,.chaplet-section summary){background:#213747;color:#edf2ed}
.prayer-hub.night-mode :is(.translation-notice,.translation-status,.devotion-day,.devotion-reader .prayer-part){background:#1d3040;color:#edf2ed;border-color:#536879}
.prayer-hub.night-mode :is(.language-options,.wall-compose input:not([type=checkbox]),.wall-compose select,.wall-compose textarea){background:#1d3040;color:#edf2ed;border-color:#71818b}
.prayer-hub.night-mode .language-options a[aria-current]{background:#e7cc92;color:#172633}
.prayer-hub.night-mode :is(.gospel-reference h3,.gospel-verse,.saint-facts dt){color:#f0cb80}
.prayer-hub.night-mode :is(.button.outline,.text-link){color:inherit}
.prayer-hub.night-mode :is(a,button,input,select,summary):focus-visible{outline:3px solid #f0cb80;outline-offset:3px}
