/* The site header (signed out and signed in) and footer, shared by every page, the app included.
   Markup comes from tools/site-chrome.js; behavior from site-nav.js (public pages) and app-site-nav.js (app).
   Selectors are scoped to header.nav and footer.site-footer so they can't leak into page or app styles. */
header.nav{position:sticky;top:0;z-index:30;background:#173D2C;border-bottom:1px solid #789181;color:#F8F4E8}
header.nav .wrap{max-width:1160px;margin:auto;padding:0 28px;display:flex;justify-content:space-between;align-items:center;min-height:72px;gap:22px;box-sizing:border-box}
header.nav .brand{display:inline-flex;align-items:center;text-decoration:none}
header.nav .brand-logo{display:block;height:123px;width:auto;margin:2px 0}
header.nav .navlinks{display:flex;gap:25px;align-items:center;font:500 14px/1.3 Inter,'DM Sans',system-ui,sans-serif;color:#F8F4E8}
header.nav .navlinks a{color:inherit;text-decoration:none}
header.nav .navlinks>a:not(.btn):hover,header.nav .navlinks a[aria-current=page]{color:#F0ADBD}
header.nav .navlinks .nav-login{color:#F8F4E8;font-weight:700;text-decoration:underline;text-underline-offset:4px}
header.nav .navlinks .btn{display:inline-flex;justify-content:center;align-items:center;border-radius:12px;padding:14px 22px;font-weight:750;font-size:14px;background:#6B1F3A;color:#F8F4E8;border:1px solid transparent;line-height:1.3}
header.nav .nav-drop{position:relative}
header.nav .nav-drop-top span{font-size:9px;margin-left:2px}
header.nav .nav-drop:hover>.nav-drop-top,header.nav .nav-drop:focus-within>.nav-drop-top{color:#F0ADBD}
header.nav .nav-menu{position:absolute;left:-14px;top:100%;padding-top:12px;display:none;z-index:50}
header.nav .nav-drop:hover .nav-menu,header.nav .nav-drop:focus-within .nav-menu,header.nav .nav-drop.hold .nav-menu{display:block}
header.nav .nav-menu a{display:block!important;white-space:nowrap;padding:10px 16px;background:#13241c;border:1px solid #2f4a3a;color:#d6dfd7}
header.nav .nav-menu a:first-child{border-radius:10px 10px 0 0}
header.nav .nav-menu a:last-child{border-radius:0 0 10px 10px;border-top:0}
header.nav .nav-menu a:hover{color:#F0ADBD}
@media(max-width:620px){header.nav .brand-logo{height:61px}header.nav .wrap{padding:0 21px;min-height:65px}}

footer.site-footer{border-top:1px solid #789181;padding:55px 0 29px;background:#173D2C;color:#F8F4E8;font:400 13px/1.6 Inter,'DM Sans',system-ui,sans-serif;text-align:left}
footer.site-footer .footer-inner{max-width:1160px;margin:auto;padding:0 28px;box-sizing:border-box;display:grid;grid-template-columns:minmax(230px,2fr) minmax(130px,1fr) minmax(130px,1fr);gap:28px 55px}
footer.site-footer a{color:#F8F4E8;text-decoration:none}
footer.site-footer a:hover{text-decoration:underline;text-underline-offset:3px}
footer.site-footer .brand{display:inline-flex}
footer.site-footer .brand-logo{display:block;height:91px;width:auto}
footer.site-footer .footer-identity p{font-size:13px;max-width:320px;line-height:1.7;margin:13px 0 0;color:#F8F4E8}
footer.site-footer .footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
footer.site-footer .footer-column strong{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:6px;color:#F8F4E8}
footer.site-footer .footer-bottom{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;border-top:1px solid #789181;padding-top:22px;margin-top:20px;font-size:11px;color:#F8F4E8}
footer.site-footer .footer-note{grid-column:1/-1;font-size:11px;line-height:1.6;color:#F8F4E8;opacity:.9;margin:0;max-width:80ch}
@media(max-width:760px){footer.site-footer .footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 16px}footer.site-footer .footer-identity{grid-column:1/-1}footer.site-footer .footer-bottom{display:grid;gap:8px}}
@media(max-width:620px){footer.site-footer .footer-inner{padding:0 21px}footer.site-footer .brand-logo{height:69px}}
/* Same colors on every page, including /home (whose own stylesheet colors the footer navy). */
html body header.nav[data-site-chrome],html body footer.site-footer{background:#173D2C!important;color:#F8F4E8}
html body footer.site-footer :is(p,span,a,strong,i){color:#F8F4E8!important}
header.nav .navlinks>*{white-space:nowrap}
header.nav .wrap:has(.sn-acct){max-width:1360px}
/* Logo width, as brand/logo.css sets it (for pages that don't load that file). */
header.nav .brand-logo{width:270px;max-width:100%;object-fit:contain;object-position:left center}
footer.site-footer .brand-logo{width:200px;max-width:100%;object-fit:contain;object-position:left center}
@media(max-width:620px){header.nav .brand-logo{width:200px}}
@media(max-width:420px){header.nav .brand-logo{width:154px}}
@media(max-width:1180px){header.nav .wrap:has(.sn-acct){gap:14px}header.nav .wrap:has(.sn-acct) .navlinks{gap:16px}}
