/* Shared navigation and requested attribution; independent of Academy screen routing. */
.rfl-footer{box-sizing:border-box;display:block!important;position:relative;z-index:5;max-width:none;width:auto;margin:0 var(--pad,24px);padding:10px 0 12px;background:#0a0a0b;color:#b8bbc2;border-top:1px solid #ffffff26;font-family:'Inter Tight',Arial,sans-serif;line-height:1.5;font-size:11px;letter-spacing:0}
.rfl-shortcuts{display:flex;align-items:center;justify-content:center;gap:8px 28px;flex-wrap:wrap;margin:0 0 4px;padding:0}
.rfl-shortcuts a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 8px;color:#ddd6e6;text-decoration:none;font-size:11px;white-space:nowrap}
.rfl-brand-row{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;min-height:44px}
.rfl-company{justify-self:start}.rfl-copyright{justify-self:center}.rfl-website{justify-self:end;display:inline-flex;align-items:center;min-height:44px;color:#b8bbc2;text-decoration:none;white-space:nowrap}
.rfl-footer a:hover,.rfl-source-access button:hover{color:white;text-decoration:underline;text-underline-offset:4px}
.rfl-footer a:focus-visible,.rfl-source-access button:focus-visible{outline:2px solid #e4d4f1;outline-offset:3px;border-radius:3px}
.rfl-source-access{position:relative;z-index:2;text-align:center;margin:0 var(--pad,24px);font-size:10px}
.rfl-source-access button{min-height:44px;padding:6px 15px;color:#aaa;background:transparent;border:0;font:inherit;cursor:pointer}
/* The original Academy uses a fixed full-viewport home. Reserve a footer strip. */
body.planet-mode[data-view="home"] .rfl-footer{position:fixed;left:0;right:0;bottom:0;margin:0 var(--pad,24px);z-index:12}
body.planet-mode[data-view="home"] .hero .hero-wordmark{bottom:142px}
body.planet-mode[data-view="home"] .home-hint{bottom:116px}
body.planet-mode[data-view="home"] .story-invitation{bottom:120px}
@media(max-width:650px){
 .rfl-footer{margin:0 20px;font-size:10px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .rfl-shortcuts{gap:0;justify-content:space-between}.rfl-shortcuts a{font-size:10px;padding:0 4px}
 .rfl-brand-row{grid-template-columns:1fr 1fr;gap:0 12px;min-height:62px}
 .rfl-copyright{justify-self:end}.rfl-website{grid-column:1/-1;justify-self:end;min-height:44px}
 body.planet-mode[data-view="home"] .rfl-footer{margin:0 18px}
 body.planet-mode[data-view="home"] .hero .hero-wordmark{bottom:160px}
 body.planet-mode[data-view="home"] .home-hint{bottom:136px}
 body.planet-mode[data-view="home"] .story-invitation{bottom:140px}
 body:not(.planet-mode) .rfl-footer{padding-bottom:60px}
}
@media(max-height:560px) and (min-width:651px){
 body.planet-mode[data-view="home"] .rfl-footer{padding:0 0 4px}
 body.planet-mode[data-view="home"] .rfl-shortcuts{position:absolute;right:0;bottom:49px;margin:0;background:#0a0a0b}
 body.planet-mode[data-view="home"] .hero .hero-wordmark{bottom:92px}
 body.planet-mode[data-view="home"] .home-hint{bottom:60px}
 body.planet-mode[data-view="home"] .story-invitation{bottom:65px}
}
@media print{
 .rfl-footer,body.planet-mode[data-view="home"] .rfl-footer{display:block!important;position:static!important;margin:12pt 0 0!important;padding:8pt 0!important;color:#111!important;background:white!important;border-top:1pt solid #999;break-inside:avoid;font-size:9pt}
 .rfl-shortcuts,.rfl-source-access{display:none!important}
 .rfl-brand-row{display:grid;grid-template-columns:1fr auto 1fr;gap:12pt;min-height:0}
 .rfl-copyright{justify-self:center}.rfl-website{grid-column:auto;min-height:0;color:#111!important}
}
/* A modal is its own accessible page surface; its links cannot sit behind it. */
dialog .rfl-footer.rfl-dialog-footer{position:relative!important;left:auto;right:auto;bottom:auto;margin:28px 0 0;padding:12px 0 0;width:100%;font-size:10px;background:transparent;color:inherit}
dialog .rfl-footer.rfl-dialog-footer a{color:inherit}
@media(max-width:650px){dialog .rfl-footer.rfl-dialog-footer{padding-bottom:0}}
@media(max-width:860px) and (min-height:561px){
 body.planet-mode[data-view="home"] .motion-controls{top:auto;bottom:calc(12.71vw + 166px)}
 body.planet-mode.gallery-exploring[data-view="home"] .motion-controls{top:81px;bottom:auto}
}
@media(max-height:560px){
 body.planet-mode[data-view="home"] .motion-controls{top:76px;bottom:auto}
}
@media print{
 body:has(dialog[open]) > .rfl-footer{display:none!important}
 dialog[open] .rfl-footer.rfl-dialog-footer{display:block!important;position:static!important;background:white!important;color:#111!important}
}
/* The supplied screenshot identifies the hub header: keep it visible on every hub route. */
.rfl-hub-root .header{position:sticky;top:0;z-index:40;background:#0a0a0bf5;backdrop-filter:blur(12px)}
.rfl-hub-root > .rfl-footer > .rfl-shortcuts{display:none}
/* Academy and utility-page shortcuts remain visible, not only at page end. */
body:not(.rfl-hub-root){padding-bottom:54px}
body:not(.rfl-hub-root) > .rfl-footer > .rfl-shortcuts{position:fixed;bottom:0;left:0;right:0;z-index:45;margin:0;padding:2px max(18px,env(safe-area-inset-left));background:#0a0a0bf5;border-top:1px solid #ffffff26;backdrop-filter:blur(12px);min-height:48px;box-sizing:border-box}
body.planet-mode[data-view="home"] > .rfl-footer{bottom:48px;padding-top:4px;padding-bottom:4px}
/* Modal dialogs are in the browser top layer: repeat navigation inside that layer. */
dialog > .rfl-dialog-shortcuts{position:sticky;top:0;z-index:5;background:#111116;color:#eee;border-bottom:1px solid #ffffff26;padding:4px 0;margin:0 0 18px}
dialog .rfl-dialog-footer .rfl-shortcuts{display:none}
@media(max-width:650px){
 .rfl-hub-root .header{display:grid;grid-template-columns:1fr auto;gap:2px 10px;height:108px;padding:8px 0;box-sizing:border-box}
 .rfl-hub-root .header .brand{grid-column:1;grid-row:1}
 .rfl-hub-root .header nav{grid-column:1/-1;grid-row:2;width:100%;margin:0;justify-content:space-between}
 .rfl-hub-root .header nav a{min-height:36px;display:flex;align-items:center;padding:0 5px}
 .rfl-hub-root .header #motion{position:static;grid-column:2;grid-row:1;box-shadow:none;min-height:40px;margin:0}
 .rfl-brand-row{grid-template-columns:1fr auto 1fr;gap:6px;min-height:44px;font-size:9px}
 .rfl-copyright{justify-self:center}.rfl-website{grid-column:auto;justify-self:end;min-height:44px}
 body:not(.planet-mode) .rfl-footer{padding-bottom:12px}
 body.planet-mode[data-view="home"] .hero .hero-wordmark{bottom:136px}
 body.planet-mode[data-view="home"] .home-hint{bottom:112px}
 body.planet-mode[data-view="home"] .story-invitation{bottom:116px}
}
@media print{
 body{padding-bottom:0!important}
 .rfl-shortcuts,body > .rfl-footer > .rfl-shortcuts,dialog > .rfl-dialog-shortcuts{display:none!important}
 .rfl-hub-root .header{position:static}
}
dialog > .rfl-dialog-shortcuts{padding-right:36px}
