/* One quiet footer language, including the homepage's on-demand information panel. */
body .site-footer.unified-footer{background:var(--deep);color:var(--on-dark);padding:32px 0 20px;border:0;border-radius:0;margin:0}
.unified-footer .footer-brand-row{display:flex;justify-content:space-between;gap:32px;align-items:center;padding-bottom:24px;border-bottom:1px solid var(--line-on-dark)}
.unified-footer .footer-brand-row .logo{color:var(--white);flex-shrink:0}
.unified-footer .footer-brand-row p{max-width:48ch;margin:0;font-size:15px;line-height:1.7;color:var(--on-dark)}
.unified-footer .footer-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding-block:24px}
.unified-footer h3{margin:0 0 8px;font-size:15px;font-weight:700;color:var(--white)}
.unified-footer .footer-navigation a,.unified-footer .footer-references a{display:flex;align-items:center;min-height:44px;padding:8px 0;color:var(--on-dark);font-size:14px;line-height:1.5;text-decoration:none}
.unified-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.unified-footer a:focus-visible,.unified-footer summary:focus-visible{outline:3px solid var(--warm);outline-offset:3px;border-radius:4px}
.unified-footer .footer-base{display:flex;justify-content:space-between;align-items:start;gap:24px;border-top:1px solid var(--line-on-dark);padding-top:16px;font-size:13px}
.unified-footer .footer-base>p{margin:10px 0;font-size:13px;color:var(--on-dark)}
.unified-footer .footer-references{max-width:480px}
.unified-footer .footer-references summary{min-height:44px;cursor:pointer;padding:10px 0;font-size:14px}
.home-footer-strip{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px;padding:4px 24px calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.home-footer-strip .footer-label{font-size:12px;color:var(--muted)}
.home-footer-strip nav{display:flex;align-items:center;gap:20px}
.home-footer-strip a,.home-footer-strip button{display:inline-flex;align-items:center;min-height:44px;background:none;border:0;padding:8px 0;color:var(--ink);font:600 13px var(--font);text-underline-offset:4px;cursor:pointer}
.home-footer-strip button{color:var(--accent)}
.home-footer-strip :focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}
body.asas-home.screen-mode{grid-template-rows:auto minmax(0,1fr) auto}
.footer-dialog{padding:0;border:0;border-radius:20px;width:min(1040px,calc(100vw - 32px));max-height:calc(100dvh - 32px);background:var(--deep);color:var(--white);overflow:auto}
.footer-dialog::backdrop{background:#142e4cb3}
.footer-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;top:0;padding:14px 24px;background:var(--deep);z-index:1;border-bottom:1px solid var(--line-on-dark)}
.footer-dialog-heading h2{font-size:20px;margin:0;color:var(--white)}
.footer-dialog-heading button{flex-shrink:0;white-space:nowrap;min-height:44px;min-width:44px;padding:8px 12px;font:600 14px var(--font);color:var(--white);background:none;border:1px solid var(--muted-on-dark);border-radius:10px;cursor:pointer}
.footer-dialog-heading button:focus-visible{outline:3px solid var(--warm);outline-offset:3px}
.footer-dialog .unified-footer .container{width:calc(100% - 48px)}
@media(prefers-reduced-motion:no-preference){@keyframes footer-arrive{from{opacity:.8;transform:translateY(24px)}to{opacity:1;transform:none}}.footer-dialog[open]{animation:footer-arrive .3s cubic-bezier(.22,1,.36,1)}}
@media(max-width:750px){
 body .site-footer.unified-footer{padding-top:24px}
 .unified-footer .footer-brand-row{align-items:start;gap:16px;padding-bottom:20px;flex-direction:column}
 .unified-footer .footer-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-block:20px}
 .unified-footer .footer-navigation>div:last-child{grid-column:1/-1}
 .unified-footer .footer-base{flex-direction:column;gap:4px}
 .home-footer-strip{padding-inline:16px;justify-content:center}
 .home-footer-strip .footer-label{display:none}
 .home-footer-strip nav{width:100%;justify-content:space-between;gap:12px}
 .footer-dialog-heading{padding:12px 16px}
 .footer-dialog-heading h2{font-size:18px}
 .footer-dialog .unified-footer .container{width:calc(100% - 32px)}
}

/* Keep the scrolling footer body inside the modal's rounded surface on iOS. */
.footer-dialog{position:fixed;isolation:isolate}
.footer-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.footer-dialog-heading{position:relative;flex:0 0 auto}
.footer-dialog>.unified-footer{flex:1 1 auto;min-height:0;width:100%;overflow:auto;overscroll-behavior:none}
