/* About Our Faith mobile layout v47 */
.aof-mobile-bar { display:none; }
@media(max-width:900px) {
 html { scroll-padding-top:90px; -webkit-text-size-adjust:100%; }
 body:has(.aof-mobile-bar) { padding-bottom:calc(70px + env(safe-area-inset-bottom,0px)); }
 html header.site-header { gap:8px; padding:8px 12px; justify-content:space-between; }
 html header.site-header .brand { flex:1 1 100px; width:auto; max-width:210px; min-width:0; }
 html header.site-header .brand img { height:52px; width:100%; object-fit:contain; }
 html header.site-header .menu-toggle { min-height:44px; padding:8px; font-size:15px; }
 html header.site-header #theme-toggle { width:44px; height:44px; }
 html header.site-header #site-nav { order:5; width:100%; min-width:0; }
 html header.site-header #site-nav.open { display:block; max-height:calc(100dvh - 155px - env(safe-area-inset-bottom,0px)); overflow-y:auto; overscroll-behavior:contain; padding:8px 0; }
 html header.site-header #site-nav details { padding:0; width:100%; }
 html header.site-header #site-nav :is(a,summary) { white-space:normal; width:100%; min-height:48px; font-size:16px; line-height:1.4; padding:12px; }
 html header.site-header #site-nav summary { justify-content:space-between; }
 html header.site-header #site-nav .nav-list { position:static; min-width:0; width:auto; margin:0 0 8px 12px; padding:4px; }
 html .site-main,html main#content { width:100%; min-width:0; padding:20px 16px 36px; }
 html .site-main :is(.prose,.faith-content,.auth-card,.page-heading) { width:100%; min-width:0; max-width:100%; margin:0 0 24px; }
 html .site-main :is(h1,.prose h1) { font-size:clamp(1.9rem,7vw,2.65rem); line-height:1.2; overflow-wrap:anywhere; }
 html .site-main h2 { font-size:clamp(1.5rem,6vw,2rem); }
 html .site-main :is(p,li,label) { line-height:1.65; overflow-wrap:break-word; }
 html .site-main :is(.intro,.feature-grid,.split,.ask-layout,.admin-grid,.family-columns,.lay-map-layout,.films,.branches) { grid-template-columns:minmax(0,1fr)!important; gap:20px; }
 html .site-main .intro { padding:12px 0 28px; }
 html .site-main .intro .lead { font-size:1.08rem; }
 html .site-main .intro-art { min-height:0; padding:24px; }
 html .site-main :is(.card,.family-box,.download-card,.reflection) { min-width:0; padding:18px; }
 html .site-main .section { padding:28px 0; }
 html .site-main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) { min-width:0; max-width:100%; font-size:16px; }
 html .site-main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select) { min-height:48px; }
 html .site-main :is(button,.button,.main-btn) { min-height:44px; white-space:normal; }
 html .site-main :is(img,video,iframe) { max-width:100%; }
 html .site-main :is(.prayer-belief-row,.toolbar,.searchrow,.header-btn) { flex-wrap:wrap; gap:10px; }
 html .site-main :is(.player-layout,.mass-embed .layout) { display:block; height:auto; }
 html .site-main .mass-embed .sidebar { max-height:45vh; }
 html .site-main .mass-embed .artgrid { grid-template-columns:minmax(0,1fr); }
 html .site-main .lay-key { columns:1; }
 html .site-main .hierarchy-chart .bishop-row { grid-template-columns:minmax(0,1fr); gap:12px; }
 html .site-main .hierarchy-chart .stem article { width:100%; }
 html .site-main .hierarchy-chart .mobile-role-help::after { content:none; }
 html .site-main .branches::before { display:none; }
 html .site-footer { grid-template-columns:minmax(0,1fr); padding:28px 16px; gap:20px; }
 .aof-table-scroll { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
 .aof-table-scroll:focus-visible { outline:2px solid var(--rose); }
 html .aof-mobile-bar { position:fixed; inset:auto 0 0; z-index:60; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--line,#d5c3ac); background:var(--paper,#fcfaf7); box-shadow:0 -3px 16px #0001; }
 html .aof-mobile-bar :is(a,button) { display:flex; align-items:center; justify-content:center; gap:4px; flex-direction:column; min-width:0; min-height:48px; padding:4px; margin:0; font:600 13px/1.25 system-ui; border:0; border-radius:8px; background:transparent; color:var(--ink,#302c2b); text-decoration:none; }
 html .aof-mobile-bar svg { width:21px; height:21px; }
 html .aof-mobile-bar [aria-current],html .aof-mobile-bar [aria-expanded=true] { background:var(--rose-light,#f5e9ed); color:var(--rose,#74324c); }
 html .aof-mobile-bar :focus-visible { outline:3px solid var(--gold,#b49654); outline-offset:-2px; }
 html [popover],html dialog { box-sizing:border-box; max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
