/* A single body-level dock stays outside transformed cards and respects device insets. */
html[data-account-state=pending][data-auth-required=true] main{visibility:hidden}
html[data-account-state=pending] [data-member-dashboard],
html:not([data-account-state=member]) [data-member-dashboard]{display:none!important}
html[data-account-state=member] .br2-my-hero{display:none!important}
html:not([data-account-state=member]) :is([data-bookmark],[data-personal-notes],.br2-selection-toolbar){display:none!important}
html:not([data-account-state=member]) :is([data-selected-note],[data-open-notes]){display:none!important}
html:not([data-account-state=member]) .br-command-root{display:none!important}
.br-shared-dock{display:none}
.br-account-connection{display:none}
html[data-account-state=pending][data-auth-required=true] .br-account-connection[data-loading="true"]{display:block;position:fixed;inset:25vh 24px auto;margin:auto;max-width:540px;padding:24px;border:1px solid #95748d;border-radius:20px;background:#29152b;z-index:180}
.br-member-dashboard{padding:32px;border:1px solid #95748d;border-radius:26px;background:linear-gradient(135deg,#3c172b,#29152b);margin:0 0 24px}
.br-member-dashboard h1{font:500 clamp(2rem,5vw,3.5rem)/1.15 Georgia,serif;margin:12px 0}
.br-dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.br-dashboard-actions a{display:flex;align-items:center;min-height:64px;padding:16px 18px;border:1px solid #95748d;border-radius:16px;background:#342039;font-weight:650;text-decoration:none}
.br-dashboard-actions a:first-child{background:#6d263f}
.br-dashboard-actions a:nth-child(3n){background:#243b2e}
.br-dashboard-actions a:focus-visible,.br-shared-dock a:focus-visible{outline:3px solid #f2cc88;outline-offset:3px}
.br-dashboard-summary{margin:10px 0;font-size:1rem}
.br-shared-dock [hidden],.site-nav a[hidden],.footer-links a[hidden]{display:none!important}
@media(max-width:1100px){
 body.royal-site{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
 body.royal-site>.br-shared-dock{position:fixed!important;inset:auto 0 0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;margin:0;box-sizing:border-box;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));z-index:160;border-top:1px solid #95748d;transform:none!important;box-shadow:0 -8px 32px #0005}
 body.royal-site>.br-shared-dock[data-items="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.royal-site>.br-shared-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:60px;min-width:0;border-radius:14px;text-decoration:none;font:600 .875rem/1.35 system-ui,sans-serif}
 .br-shared-dock svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7}
 body.royal-site .site-header{position:sticky!important;top:0!important;margin:0!important;border-radius:0!important;width:100%!important;z-index:170}
 body.royal-site :is(.br-audio-player,.reader-bottom-bar){bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
 body.royal-site :is(main h1,main h2,[id]){scroll-margin-top:100px}
 .br-member-dashboard{padding:24px}
 .br-dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .br2-my-page{padding-top:24px!important}
}
@media(max-width:380px){body.royal-site>.br-shared-dock a{font-size:.75rem}.br-dashboard-actions{grid-template-columns:1fr}}

/* Reading reminders remain next to Search, with a full touch target. */
.site-header .br-reminders-open{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;flex-shrink:0;border:1px solid #947080;border-radius:12px;background:#39273e;color:#f4ce89;text-decoration:none}.br-reminders-open svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;fill:none}.site-header .br-reminders-open:hover{background:#563346}.br-reminders-open:focus-visible{outline:3px solid #f4ce89;outline-offset:3px}html:not([data-account-state=member]) .br-reminders-open{display:none!important}.reading-focus .br-reminders-open{display:none!important}
@media(min-width:1101px){body.royal-site .site-header .menu-toggle{display:flex!important;align-items:center;justify-content:center;min-height:44px}body.royal-site .site-header .site-nav{display:none;position:absolute;top:calc(100% + 6px);left:12px;right:12px;flex-direction:column;align-items:stretch;padding:12px;max-height:calc(100dvh - 110px);overflow:auto;border:1px solid #95748d;border-radius:16px}body.royal-site .site-header .site-nav.open{display:flex}body.royal-site .site-header .site-nav>a{font-size:16px!important;padding:12px 14px!important;min-height:48px}body.royal-site .site-header .site-nav>.br-install-button{justify-content:flex-start;font-size:16px!important;min-height:48px;margin-top:8px}}

.site-header .br-header-tools{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}.site-header .br-header-tools .br-command-open{margin:0!important}.site-header .nav-wrap{gap:16px}@media(max-width:600px){.site-header .br-header-tools .br-command-open{box-sizing:border-box;width:44px;height:44px;min-width:44px;padding:8px!important;justify-content:center}.site-header .br-header-tools .br-command-open kbd,.site-header .br-header-tools .br-command-open span:nth-child(2){display:none!important}.site-header .nav-wrap{gap:10px}}

/* Keep all four controls reachable without covering the reading surface. */
@media(max-width:600px){body.royal-site .site-header .nav-wrap{gap:8px;flex-wrap:nowrap;width:100%!important;max-width:none;box-sizing:border-box;padding-left:16px;padding-right:16px}.site-header .br-header-tools{gap:6px}.site-header .menu-toggle{box-sizing:border-box;width:44px;height:44px;min-width:44px;flex-shrink:0;padding:8px!important}}
@media(max-width:420px){html[data-account-state=member] .site-header .brand>span:not(.brand-mark){display:none}body.royal-site .site-header .nav-wrap{padding-left:12px;padding-right:12px}html[data-account-state=member] .site-header .brand-mark{width:40px;height:40px;min-width:40px;box-sizing:border-box}html[data-account-state=member] .site-header .brand{flex-shrink:0}}

/* Match the profile portrait to the dock icon without changing touch targets. */
.br-shared-dock .br-dock-avatar{width:26px;height:26px;box-sizing:border-box;object-fit:cover;border-radius:50%;border:1.5px solid currentColor;display:block}.br-shared-dock svg[hidden]{display:none!important}

/* Account actions remain visible outside the navigation menu. */
.br-header-account{position:relative;flex-shrink:0;order:0}
.br-header-account summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 14px;box-sizing:border-box;border:1px solid #95748d;border-radius:12px;cursor:pointer;list-style:none;font:600 1rem/1.4 system-ui,sans-serif;color:#fff3e3;background:#39273e}
.br-header-account summary::-webkit-details-marker{display:none}
.br-account-toggle{font-size:1.4rem;line-height:1;width:18px;text-align:center}
.br-header-account-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(350px,calc(100vw - 32px));box-sizing:border-box;padding:20px;background:#24182d;color:#fff3e3;border:1px solid #95748d;border-radius:16px;box-shadow:0 14px 40px #0006;z-index:200}
.br-header-account-panel a,.br-header-account-panel button{display:flex;align-items:center;min-height:44px;box-sizing:border-box;margin:0 0 12px}
.br-header-account-panel a{color:#f4ce89;font:600 1rem/1.5 system-ui,sans-serif;text-underline-offset:.2em}
.br-header-account-panel p{font:400 .875rem/1.6 system-ui,sans-serif;color:#dbcbd6;margin:12px 0 0}
.br-header-account-panel [data-header-signout]{font:600 1rem/1.5 system-ui,sans-serif;padding:10px 16px;border:1px solid #95748d;border-radius:10px;background:#39273e;color:#fff3e3;cursor:pointer}
.br-header-account summary:focus-visible,.br-header-account-panel a:focus-visible,.br-header-account-panel button:focus-visible{outline:3px solid #f4ce89;outline-offset:3px}
.br-header-account [hidden]{display:none!important}
html[data-account-state=pending] .page-guide main{visibility:visible!important}
.page-guide .br-guide-hero [data-welcome-account-guest]{display:inline-block}
.page-guide .br-guide-hero .br-guide-account-help{display:block;font:400 .95rem/1.6 system-ui,sans-serif;margin-top:18px}
.page-guide .br-guide-hero .br-google{vertical-align:middle}
@media(max-width:600px){.br-header-account summary{padding:8px 10px;font-size:.875rem;gap:6px}.site-header .br-header-tools{gap:4px}.site-header .nav-wrap{gap:6px!important}.site-header .brand>span:not(.brand-mark){display:none}.br-header-account-panel{position:fixed;top:80px;right:16px}.page-guide .br-guide-hero .lux-button,.page-guide .br-guide-hero [data-welcome-account-guest]{margin-bottom:10px}}


@media(max-width:1100px){body.royal-site>.br-shared-dock[data-items="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Shared footer links have distinct touch targets on every public section. */
footer .br-footer-link-grid{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;margin-top:20px}
footer .br-footer-link-grid>a{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;box-sizing:border-box;margin:0;text-underline-offset:5px}
footer .br-footer-link-grid>a:focus-visible{outline:3px solid #f4ce89;outline-offset:4px;border-radius:4px}
@media(max-width:600px){footer .br-footer-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;width:100%;max-width:480px}footer .br-footer-link-grid>a{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}}


.br-section-visits{font:400 .95rem/1.5 system-ui,-apple-system,sans-serif;opacity:.85;margin:10px 0 20px;letter-spacing:normal}

/* Narrow screens keep the full logo and all account tools within the viewport. */
@media(max-width:480px){
 body.royal-site .site-header .nav-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px!important;padding:10px 12px!important;min-height:0}
 body.royal-site .site-header .nav-wrap>.brand{grid-column:1/-1;grid-row:1;justify-self:center;justify-content:center;min-width:0;max-width:100%;margin:0!important}
 body.royal-site .site-header .brand img{max-width:210px!important;max-height:40px!important;width:auto!important;height:auto!important}
 body.royal-site .site-header .br-header-tools{grid-column:1;grid-row:2;justify-content:center;min-width:0;margin:0!important;gap:4px!important}
 body.royal-site .site-header .br-header-account{grid-column:2;grid-row:2;min-width:0;width:44px}
 body.royal-site .site-header .br-header-account summary{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:8px;min-width:0}
 body.royal-site .site-header .br-header-account summary::before{content:'';width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM5 21v-2a7 7 0 0 1 14 0v2H5Z'/%3E%3C/svg%3E") center/contain no-repeat}
 body.royal-site .site-header [data-header-account-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.royal-site .site-header .br-account-toggle{position:absolute;right:3px;bottom:2px;width:12px;font-size:13px}
 body.royal-site .site-header .menu-toggle{grid-column:3;grid-row:2;margin:0!important}
 body.royal-site .site-header .site-nav{position:absolute!important;top:100%!important;left:12px!important;right:12px!important;width:auto!important;max-height:calc(100dvh - 180px);overflow-y:auto}
 body.royal-site .site-header .br-header-account-panel{position:absolute;top:calc(100% + 12px);right:0;max-height:calc(100dvh - 160px);overflow-y:auto}
}

/* Keep the mobile header visible without scroll-driven motion. */
@media(max-width:1100px){
 html:has(body.royal-site){scroll-behavior:auto!important;overflow-x:clip}
 body.royal-site{overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body.royal-site .site-header{position:sticky!important;inset:0 auto auto!important;transform:none!important;transition:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body.royal-site .lux-reveal{opacity:1!important;transform:none!important;transition:none!important}
 body.royal-site [data-lux-card]{transform:none!important;transition:none!important}
 body.royal-site>.br-shared-dock{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}

/* Reading pages stay still on desktop as well as touch devices. */
body.royal-site .lux-reveal{opacity:1!important;transform:none!important;transition:none!important}
body.royal-site [data-lux-card]{transform:none!important;transition:none!important}
body.royal-site .site-header{transition:none!important}

/* Anchor phone account panels to the complete header, not the narrow account icon. */
@media(max-width:600px){
 body.royal-site .site-header .nav-wrap{position:relative}
 body.royal-site .site-header .br-header-account{position:static}
 body.royal-site .site-header .br-header-account-panel{
  position:absolute;top:calc(100% + 8px);left:12px;right:12px;
  width:auto;max-width:none;min-width:0;
  max-height:calc(100dvh - 212px - env(safe-area-inset-bottom,0px));
  overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;
 }
 body.royal-site .br-header-account-panel a,
 body.royal-site .br-header-account-panel button{max-width:100%;white-space:normal}
}

/* Direct access to Kids, with a readable label and full touch target. */
.site-header .br-kids-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;box-sizing:border-box;flex-shrink:0;border:1px solid #f0cb83;border-radius:12px;background:#f0cb83;color:#251829!important;font:700 .9rem/1.3 system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.site-header .br-kids-shortcut svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.site-header .br-kids-shortcut:hover{background:#ffe0a3}
.site-header .br-kids-shortcut:focus-visible{outline:3px solid #fff3e3;outline-offset:3px}
@media(max-width:600px){.site-header .br-kids-shortcut{gap:6px;padding:8px 10px;font-size:.8rem}.site-header .br-kids-shortcut span{font-size:0}.site-header .br-kids-shortcut span::after{content:'Kids';font-size:.85rem}}
@media(min-width:481px) and (max-width:600px){body.royal-site .site-header .nav-wrap{flex-wrap:wrap}.site-header .nav-wrap>.brand{width:100%;justify-content:center}.site-header .br-header-tools{margin-left:0}}

@media(max-width:1100px){
 body.royal-site .site-header .nav-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px;gap:8px!important;padding:10px 12px!important;min-height:0}
 body.royal-site .site-header .nav-wrap>.brand{grid-column:1;grid-row:1;justify-self:start;justify-content:flex-start;width:232px;max-width:100%;min-width:0;margin:0!important}
 body.royal-site .site-header .brand img{max-width:100%!important;max-height:40px!important;width:auto!important;height:auto!important}
 body.royal-site .site-header .br-header-tools{grid-column:1/-1;grid-row:2;justify-content:center;min-width:0;margin:0!important;gap:8px!important}
 body.royal-site .site-header .br-header-account{grid-column:2;grid-row:1}
 body.royal-site .site-header .menu-toggle{grid-column:3;grid-row:1;margin:0!important}
}

body.royal-site .site-header a.br-kids-shortcut,body.royal-site .site-header a.br-kids-shortcut *{color:#251829!important}
