/* Persistent help and compact navigation for the thesis companion. */
.site-help-launcher{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:80;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 17px;border:1px solid #faf7f2;border-radius:24px;background:#432a46;color:#fffdfa!important;font:650 14px/1.4 system-ui,sans-serif!important;text-decoration:none!important;box-shadow:0 3px 14px #2e203333}
.site-help-launcher:before{content:'?';display:grid;place-items:center;width:21px;height:21px;border:1px solid currentColor;border-radius:50%;font-size:13px}.site-help-launcher:hover{background:#5a3e5d}.site-help-launcher:focus-visible,.site-explore>summary:focus-visible,.site-explore-panel a:focus-visible,.site-dialog-help:focus-visible{outline:3px solid #b14535;outline-offset:4px}
.has-site-help{padding-bottom:78px!important}body:has(>.research-frame).has-site-help{padding-bottom:68px!important}
.site-explore{position:relative;font:15px/1.5 system-ui,sans-serif;color:#432a46;z-index:90}
.site-explore>summary{list-style:none;cursor:pointer;min-height:42px;display:flex;align-items:center;gap:12px;padding:8px 14px;border:1px solid #aa96ad;border-radius:3px;background:#faf7f2;white-space:nowrap;font:inherit}
.site-explore>summary::-webkit-details-marker{display:none}.site-explore>summary:after{content:'⌄'}.site-explore[open]>summary:after{content:'⌃'}
.site-explore-panel{position:absolute;top:calc(100% + 8px);right:0;min-width:235px;max-width:calc(100vw - 30px);display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:7px!important;background:#fffdfa;border:1px solid #aa96ad;border-radius:4px;box-shadow:0 10px 30px #432a4626}
.site-explore-panel>a{display:flex!important;align-items:center!important;min-height:46px!important;width:100%!important;max-width:none!important;margin:0!important;padding:11px 13px!important;color:#432a46!important;font:15px/1.5 system-ui,sans-serif!important;letter-spacing:0!important;text-decoration:none!important;text-transform:none!important;border:0!important;white-space:normal!important;background:transparent!important}
.site-explore-panel>a:hover{background:#eee5eb!important}.hub-quick-links.site-compact-links,.world-bar-links.site-compact-links{display:flex!important;gap:0!important;flex:0 0 auto!important;justify-content:flex-start!important;width:auto!important}
.world-bar:has(.site-explore){position:relative;z-index:90}.world-bar:has(.site-explore){flex-wrap:nowrap!important}.world-bar:has(.site-explore) .world-bar-links{margin-left:auto}.world-bar:has(.site-explore) .world-restart{margin-left:auto}
.site-dialog-help{display:block!important;width:max-content!important;margin:22px 0 0 auto!important;padding:8px 12px!important;min-height:40px;border:1px solid #aa96ad;border-radius:22px;color:#432a46;background:#faf7f2;font:600 13px/1.5 system-ui,sans-serif!important;text-decoration:none!important}
@media(max-width:650px){.site-help-launcher{right:12px;bottom:max(12px,env(safe-area-inset-bottom));min-height:44px;padding:9px 14px;font-size:13px!important}.site-explore>summary{padding:7px 11px;min-height:40px;font-size:14px}.site-explore-panel{min-width:220px}.world-bar:has(.site-explore){gap:8px!important}.world-bar:has(.site-explore)>a{font-size:13px}.hub-quick-links.site-compact-links{display:flex!important}}

@media(max-width:650px){.world-bar:has(.site-explore){display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;gap:7px!important;padding-inline:10px!important;min-height:54px}.world-bar:has(.site-explore)>a{font-size:12px!important;white-space:nowrap}.world-bar:has(.site-explore) .world-restart{font-size:12px!important;padding:7px!important;margin:0!important}.world-bar:has(.site-explore) .reader-settings-open{font-size:12px!important;padding:8px!important;min-height:40px}.world-bar:has(.site-explore) .site-explore>summary{padding:7px 9px;font-size:12px;gap:6px}.world-bar:has(.site-explore) .world-bar-links{margin:0!important}}

/* Only the author and Explore remain beside the page identity. */
.site-author-link{display:inline-flex!important;align-items:center;min-height:44px;padding:8px 4px!important;color:#432a46!important;font:500 14px/1.4 system-ui,sans-serif!important;text-decoration:underline;text-underline-offset:5px;white-space:nowrap}
.site-compact-links{display:flex!important;align-items:center!important;gap:18px!important;flex-wrap:nowrap!important}
.world-bar.site-compact-header .world-bar-links{gap:22px!important}
.site-explore-panel{max-height:min(75svh,640px);overflow-y:auto;overscroll-behavior:contain}
.site-explore-panel>button{display:block!important;width:100%!important;min-height:44px;margin:0!important;padding:11px 13px!important;border:0!important;border-top:1px solid #c9bacb!important;background:#fffdfa!important;color:#432a46!important;text-align:left;font:15px/1.5 system-ui,sans-serif!important;cursor:pointer}
.site-explore-panel>button:hover{background:#eee5eb!important}
.site-simple-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 5%;border-bottom:1px solid #c9bacb;background:#faf7f2;color:#432a46;font:15px/1.5 system-ui,sans-serif}
.site-simple-header>a{color:inherit}.site-simple-header .site-header-links{margin-left:auto}
@media(max-width:650px){.world-bar.site-compact-header{display:flex!important;justify-content:space-between;gap:10px!important;flex-wrap:nowrap!important}.world-bar.site-compact-header .world-bar-links{gap:12px!important;margin-left:auto!important}.site-author-link{font-size:12px!important}.site-compact-links{gap:12px!important}.hub-header .site-compact-links{margin-left:auto}.hub-header-tools .school-note{display:none}.site-explore-panel{max-height:70svh}}
