/* Compact, scoped two-level navigation. */
.project-navigation { --nav-text:#f5f7fb; --nav-secondary:#a8b4c3; --nav-surface:#141921; --nav-border:#303a48; --nav-active:#20304b; --nav-accent:#a8c7ff; container:lc-navigation / inline-size; margin:24px 0 28px; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:14px; line-height:1.5; color:var(--nav-text); }
html[data-site-theme="light"] .project-navigation { --nav-text:#192638; --nav-secondary:#506278; --nav-surface:#fff; --nav-border:#d9e1ea; --nav-active:#e4edfb; --nav-accent:#315fa5; }
.project-navigation * { box-sizing:border-box; }
.project-navigation nav { margin:0; padding:0; }
.project-navigation a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:9px 14px; border:0; border-radius:10px; font-size:14px; font-weight:500; line-height:1.5; color:var(--nav-secondary); text-decoration:none; }
.project-navigation a:hover { color:var(--nav-text); background:var(--nav-surface); text-decoration:none; }
.project-navigation a[aria-current] { color:var(--nav-accent); background:var(--nav-active); font-weight:650; }
.project-navigation-desktop { display:flex; flex-wrap:wrap; gap:4px; }
.project-navigation-menu { display:none; position:relative; border:0; padding:0; margin:0; }
.project-navigation-menu > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; padding:10px 12px; border:1px solid var(--nav-border); border-radius:10px; background:var(--nav-surface); font-size:14px; font-weight:600; color:var(--nav-text); cursor:pointer; list-style:none; }
.project-navigation-menu > summary::-webkit-details-marker { display:none; }
.project-navigation-menu[open] > summary svg { transform:rotate(180deg); }
.project-navigation-menu > nav { margin-top:6px; padding:6px; border:1px solid var(--nav-border); border-radius:12px; background:var(--nav-surface); }
.project-navigation-menu > nav a { justify-content:flex-start; }
.project-navigation-sections { display:flex; gap:4px; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:thin; padding-top:8px!important; }
.project-navigation-sections a { flex:none; white-space:nowrap; font-size:13px; padding:8px 12px; }
.project-navigation a:focus-visible, .project-navigation summary:focus-visible { outline:2px solid var(--nav-accent); outline-offset:3px; }
.landing > .project-navigation { max-width:1104px; margin:24px auto; padding-inline:18px; }
footer a[aria-current="page"] { color:var(--accent,#8eb5ff); text-decoration:underline; text-underline-offset:4px; }
@container lc-navigation (max-width:640px) { .project-navigation-desktop { display:none; } .project-navigation-menu { display:block; } }
@media(max-width:640px) { .project-navigation-desktop { display:none; } .project-navigation-menu { display:block; } }

.home-footer { flex-wrap:wrap; gap:16px 24px; }

.home-footer .home-footer-links { display:flex; flex-wrap:wrap; align-items:center; gap:4px 18px; }
.home-footer .home-footer-links a { display:inline-flex; align-items:center; min-height:44px; padding:0; font-size:12px; font-weight:400; }
.home-footer .home-footer-copy { margin-left:auto; font-size:12px; white-space:nowrap; }
@media(max-width:640px) { .home-footer .home-footer-copy { margin-left:0; width:100%; text-align:left; } }

/* Match copyright typography to the legal links in the editor footer. */
.editor-links { font-size:12px; font-weight:400; line-height:1.5; }
.editor-links > a, .editor-links > span { font-size:inherit; font-weight:inherit; line-height:inherit; }
.home-footer .home-footer-copy { font-weight:400; line-height:1.5; }
