/* One shared header/footer layer, loaded after page-specific styles.
   Scope never touches article, directory or tool content. */
[data-site-shell]{--shell-paper:#fcfcfa;--shell-tint:#f0f3f4;--shell-line:#ccd5dc;--shell-muted:#52616e;--shell-accent:#b84c00}
[data-site-shell] .container{width:min(1180px,calc(100% - 64px))}
.site-header[data-site-shell]{position:relative;background:var(--shell-paper);border-bottom:1px solid var(--shell-line);backdrop-filter:none;box-shadow:none;color:var(--ink)}
.site-header[data-site-shell] .site-utility{background:var(--shell-tint);border-color:var(--shell-line)}
.site-header[data-site-shell] .site-utility-inner{min-height:28px;font-size:10px;letter-spacing:0;text-transform:none}
.site-header[data-site-shell] .site-utility-inner>span,.site-header[data-site-shell] .site-utility a{color:var(--shell-muted)}
.site-header[data-site-shell] .header-inner{min-height:72px;display:grid;grid-template-columns:180px 1fr 225px;gap:24px;align-items:center}
.site-header[data-site-shell] .brand small{font-size:8px}
.site-header[data-site-shell] .main-nav{gap:22px}
.site-header[data-site-shell] .main-nav a,.site-header[data-site-shell] .nav-guides>summary{font-size:13px;color:var(--ink)}
.site-header[data-site-shell] .main-nav a:hover,.site-header[data-site-shell] .nav-guides>summary:hover{color:var(--shell-accent)}
.site-header[data-site-shell] .header-search{width:225px;height:40px;background:var(--shell-paper);border-color:#8899a7}
.site-header[data-site-shell] .header-search input{font-size:14px;background:var(--shell-paper);color:var(--ink)}
.site-header[data-site-shell] .header-search button{font-size:13px;color:var(--ink);background:var(--shell-tint)}
.site-header[data-site-shell] .header-search:focus-within{outline:3px solid var(--shell-accent);outline-offset:3px;box-shadow:none}
.site-header[data-site-shell] .nav-guides-panel{background:var(--shell-paper);color:var(--ink)}
.site-header[data-site-shell] a:focus-visible,.site-header[data-site-shell] button:focus-visible,.site-header[data-site-shell] summary:focus-visible,.site-footer[data-site-shell] a:focus-visible{outline:3px solid var(--shell-accent);outline-offset:4px}
.site-footer[data-site-shell],.site-footer[data-site-shell] .footer-topline{background:var(--shell-paper);color:var(--ink);border-color:var(--shell-line)}
.site-footer[data-site-shell] .footer-topline .container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-block:24px}
.site-footer[data-site-shell] .footer-topline strong,.site-footer[data-site-shell] .footer-topline a,.site-footer[data-site-shell] .footer-main nav strong{color:var(--ink)}
.site-footer[data-site-shell] .footer-topline span{display:none}
.site-footer[data-site-shell] .footer-topline a,.site-footer[data-site-shell] .footer-main nav a{font-size:14px}
.site-footer[data-site-shell] .footer-main{display:grid;grid-template-columns:1.5fr repeat(3,.58fr);gap:52px;padding-block:40px}
.site-footer[data-site-shell] .footer-about p,.site-footer[data-site-shell] .footer-main nav a,.site-footer[data-site-shell] .footer-bottom,.site-footer[data-site-shell] .footer-bottom a{color:var(--shell-muted)}
.site-footer[data-site-shell] .footer-about p{font-size:14px;line-height:1.65}
.site-footer[data-site-shell] .footer-note,.site-footer[data-site-shell] .footer-bottom{border-color:var(--shell-line)}
.site-footer[data-site-shell] .footer-bottom{font-size:12px}
.site-footer[data-site-shell] .footer-main nav strong{font-size:12px}
.site-footer[data-site-shell] a:hover{color:var(--shell-accent);text-decoration:underline;text-underline-offset:4px}
@media(prefers-reduced-motion:no-preference){[data-site-shell] a,[data-site-shell] button,[data-site-shell] summary{transition:color 160ms ease,background-color 160ms ease}}
@media(max-width:1100px){
 .site-header[data-site-shell] .header-inner{grid-template-columns:160px 1fr auto;gap:20px}
 .site-header[data-site-shell] .header-search{display:none}
}
@media(max-width:820px){
 [data-site-shell] .container{width:calc(100% - 40px)}
 .site-header[data-site-shell] .header-inner{display:flex;justify-content:space-between;min-height:64px}
 .site-header[data-site-shell] .main-nav{background:var(--shell-paper);gap:0}
 .site-footer[data-site-shell] .footer-topline .container{align-items:start;flex-direction:column}
 .site-footer[data-site-shell] .footer-main{grid-template-columns:1fr 1fr;gap:35px}
 .site-footer[data-site-shell] .footer-about{grid-column:1/-1}
}
@media(max-width:560px){
 [data-site-shell] .container{width:calc(100% - 32px)}
 .site-footer[data-site-shell] .footer-main{grid-template-columns:1fr;gap:28px}
 .site-footer[data-site-shell] .footer-about{grid-column:auto}
}
