nav.topnav {
    display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap;
    width:min(1120px,calc(100% - 32px)); margin:auto; padding:0; min-height:64px;
    gap:16px; font-weight:600;
}
.topnav a { color:inherit; text-decoration:none }
.topnav a:hover,.topnav a[aria-current=page] { text-decoration:underline; text-underline-offset:.25em }
.topnav .nav-brand { display:flex; align-items:center; gap:8px; font-weight:750; font-size:1.2rem }
.nav-brand img { border-radius:7px }
.wide-links { display:flex; align-items:center; gap:clamp(16px,2vw,30px) }
.mobile-dock { display:none }
@media(max-width:800px) {
    :root { --dock-height:calc(60px + env(safe-area-inset-bottom,0px)); scroll-padding-bottom:var(--dock-height) }
    body { padding-bottom:var(--dock-height) }
    .wide-links { display:none }
    nav.mobile-dock {
        display:flex; align-items:stretch; flex-wrap:nowrap; gap:0; position:fixed; z-index:10;
        inset:auto 0 0; width:100%; min-height:var(--dock-height); margin:0;
        padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
        background:white; border-top:1px solid #d5e0d6; box-shadow:0 -3px 16px #193c3010;
    }
    .mobile-dock > a,.mobile-dock > button {
        display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; justify-content:center;
        gap:4px; padding:5px 0; color:#486256; text-decoration:none; background:transparent;
        font:600 .76rem/1.1 system-ui,sans-serif; border:0; border-radius:0; cursor:pointer;
    }
    .mobile-dock svg { width:38px; height:25px; padding:2px 8px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; border-radius:14px }
    .mobile-dock [aria-current=page],.mobile-dock .selected { color:#174f39; text-decoration:none }
    .mobile-dock [aria-current=page] svg,.mobile-dock .selected svg { background:#e0efd9 }
    #more-pages { position:fixed; inset:auto max(12px,env(safe-area-inset-right)) calc(var(--dock-height) + 6px) auto; margin:0; min-width:180px; padding:5px; border:1px solid #cdd9cc; border-radius:13px; background:white; color:#234b38; box-shadow:0 6px 24px #183c3026 }
    #more-pages a { display:block; padding:12px; font:600 .95rem/1.4 system-ui,sans-serif; text-decoration:none }
    #more-pages a:hover,#more-pages a[aria-current=page] { background:#ecf4e8; border-radius:8px }
    .mobile-dock :focus-visible { outline:2px solid #357657; outline-offset:-3px }
}
