/* Mobile-only composition; desktop layout and saved appearance are untouched. */
.mobile-navigation{display:none}
.mobile-discover-entry{display:none}
.saints-mobile-views,.saints-timeline-note,.saint-timeline-date{display:none}
@media screen and (max-width:760px){
 html{--mobile-dock-space:calc(88px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:var(--mobile-dock-space)}
 html[data-theme=dark]:not([data-palette]){--bg:#101113;--panel:#1b1c1f;--panel-2:#242529;--border:#414247;--text:#f2f0e9;--muted:#b6b6b9;--gold:#d7bd8b;--gold-bright:#e7cfa3;--accent:#e7cfa3}
 body.has-mobile-interface{padding-bottom:var(--mobile-dock-space)}
 body.has-mobile-interface::before{border-top:0}
 html body.has-mobile-interface{background:var(--bg)}
 body.has-mobile-interface>header.site-sections-header{position:relative;top:auto;padding:12px 16px;gap:8px;background:var(--bg);border-bottom:1px solid color-mix(in srgb,var(--border) 65%,transparent);backdrop-filter:none;align-items:center}
 body.has-mobile-interface>header.site-sections-header>.brand{font-size:24px;flex:1 1 calc(100% - 130px);line-height:1.3;order:0}
 body.has-mobile-interface>header.site-sections-header .site-logo{width:32px;height:32px;flex-basis:32px}
 body.has-mobile-interface>header.site-sections-header>.section-menu{order:0}
 body.has-mobile-interface>header.site-sections-header>.section-menu[open]{flex-basis:100%;order:4}
 body.has-mobile-interface>header.site-sections-header :is(.ghost,.theme-toggle,#siteAppearance,.section-menu>summary){border-radius:2px;background:none}
 body.has-mobile-interface>header.site-sections-header>.ghost{margin:0;padding-inline:10px;font-size:12px;min-height:44px}
 body.has-mobile-interface>header.site-sections-header>.language-control{flex:1 1 80px;min-width:80px;max-width:100%;margin:0;order:1}
 body.has-mobile-interface>header.site-sections-header>.language-control>span:first-child{display:none}
 body.has-mobile-interface>header.site-sections-header .language-control select{width:100%;max-width:100%;min-height:44px;border-radius:2px;padding-inline:10px;font-size:16px}
 body.has-mobile-interface>header.site-sections-header :is(.theme-toggle,#siteAppearance){flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:10px;order:1}
 .section-menu-grid{gap:0 14px}.section-menu-grid :is(a,button){border:0;border-bottom:1px solid var(--border);border-radius:0;min-height:56px;background:none;font:16px/1.5 Georgia,serif}
 body.has-mobile-interface .mobile-navigation{position:fixed;z-index:35;inset-inline:8px;bottom:max(8px,env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;padding:7px 4px 5px;box-sizing:border-box;border:1px solid var(--border);border-top:3px double var(--gold);border-radius:3px;background:var(--bg);box-shadow:0 8px 24px #0003}
 .mobile-navigation>a{position:relative;display:flex;min-width:0;min-height:58px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:5px 2px;border-radius:0;text-decoration:none;color:var(--muted);font:500 12px/1.4 system-ui,sans-serif;text-align:center;overflow-wrap:anywhere;letter-spacing:0}
 .mobile-navigation svg{width:23px;height:23px;flex:none}
 .mobile-navigation>a[aria-current]{color:var(--text);font-weight:700}.mobile-navigation>a[aria-current] svg{color:var(--gold)}.mobile-navigation>a[aria-current]::before{content:'';position:absolute;top:-9px;left:calc(50% - 3px);width:6px;height:6px;transform:rotate(45deg);background:var(--gold);border:2px solid var(--bg)}
 .mobile-navigation>a:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
 body.mobile-keyboard-open .mobile-navigation{display:none}
 .has-mobile-interface .lp-support-bubble{bottom:calc(var(--mobile-dock-space) + 8px)}
 .has-mobile-interface .lp-support-panel{max-height:calc(100dvh - var(--mobile-dock-space) - 100px)}
 .has-mobile-interface .lib-mascot{bottom:calc(var(--mobile-dock-space) + 8px)}
 body.has-mobile-interface :is(.tabhead h2,.today-hero h1){font-size:clamp(30px,8vw,42px);line-height:1.15;letter-spacing:-.9px;color:var(--text)}
 body.has-mobile-interface main>section[id^=tab-]{padding-inline:18px}
 body.has-mobile-interface .tabhead{padding-block:24px;margin-bottom:24px}
 .has-mobile-interface :is(.passage,.prayer-text,.today-panel,.foundation-card,.reading-desk,.saint-audio){border-radius:20px;box-shadow:none}
 body.has-mobile-interface #teachingArticles>.calendar-card{border-radius:18px;margin-bottom:12px;padding:18px;border:1px solid var(--border)}
 body.has-mobile-interface #teachingArticles>.calendar-card>summary{font-size:21px;line-height:1.4;min-height:48px}
 .has-mobile-interface #teachingArticles>.calendar-card[open]{background:var(--bg);border-color:var(--gold)}
 body.has-mobile-interface #teachingArticles :is(.teaching-detail,.teaching-long-study){font-size:17px;line-height:1.85}
 body.has-mobile-interface #teachingArticles details{scroll-margin-top:20px}
 .mobile-discover-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 4px;margin:0 0 24px;border-block:1px solid var(--gold);background:none;color:var(--text);text-decoration:none;font:500 19px/1.5 Georgia,serif}
 .mobile-discover-entry::after{content:'↗';font-size:24px;color:var(--gold)}
 .has-mobile-interface .today-jump{gap:8px 18px}.has-mobile-interface .today-jump>a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:8px 0;font:16px/1.5 Georgia,serif;text-decoration:none}
 .has-mobile-interface .today-panel{border-top-width:1px;padding:22px}
 .has-mobile-interface .saint-page-jump{gap:8px 18px}.has-mobile-interface .saint-page-jump>a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:8px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;text-decoration:none}
 body.has-mobile-interface.saint-reader-page main{padding-inline:18px}
 .has-mobile-interface .saint-quote-cards>li{border-radius:20px;padding:22px}
 .saints-mobile-views{display:flex;gap:16px;max-width:360px;padding:0;border-block:1px solid var(--border);background:none;margin-bottom:18px}
 .saints-page .saints-mobile-views button{flex:1;min-width:0;min-height:44px;padding:10px 4px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);font:500 17px/1.5 Georgia,serif}
 .saints-page .saints-mobile-views button[aria-pressed=true]{background:none;color:var(--text);border-bottom-color:var(--gold)}
 .saints-page .saints-timeline-note{display:block;font:12px/1.7 system-ui,sans-serif;color:var(--muted);margin-bottom:24px}
 .saints-grid[data-mobile-view=timeline]{grid-template-columns:minmax(0,1fr);gap:24px;margin-inline-start:10px;border-inline-start:1px solid var(--border);padding-inline-start:24px}
 .saints-grid[data-mobile-view=timeline]>.saint-card{position:relative;grid-template-columns:70px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:12px 16px;border-radius:20px;padding:18px}
 .saints-grid[data-mobile-view=timeline]>.saint-card::before{content:'';position:absolute;inset-inline-start:-30px;top:28px;width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 5px var(--bg)}
 .saints-grid[data-mobile-view=timeline] .saint-timeline-date{display:block;grid-column:1/-1;margin:0;color:var(--gold);font:12px/1.5 system-ui,sans-serif}
 .saints-grid[data-mobile-view=timeline] .saint-art{width:70px;height:88px;border-radius:50%;object-fit:contain}
 .saints-grid[data-mobile-view=timeline] .saint-art img{object-fit:contain;background:var(--panel-2)}
 .saints-grid[data-mobile-view=timeline] .saint-card-copy{grid-column:2;min-width:0}
 .saints-grid[data-mobile-view=timeline] h3{font-size:20px;line-height:1.3}
 .saints-grid[data-mobile-view=timeline] .saint-summary{display:block;overflow:visible;font-size:15px;line-height:1.7}
 .saints-grid[data-mobile-view=timeline] .saint-card-footer{grid-column:1/-1}
 .has-mobile-interface .lib-reader-toolbar{border-radius:0 0 18px 18px}
 .has-mobile-interface :is(input[type=search],.composer){border-radius:18px}
 .has-mobile-interface :is(input[type=search],textarea,select){font-size:16px}
 html[data-theme=dark] .has-mobile-interface :is(header.site-sections-header,footer){background:var(--bg)}
 @media(prefers-reduced-motion:reduce){.has-mobile-interface *{scroll-behavior:auto!important}.mobile-navigation *{transition:none}}
}
@media print{.mobile-navigation,.mobile-discover-entry{display:none!important}body.has-mobile-interface{padding-bottom:0}}
