/* dustcoupler.com's one header and footer (site/chrome/chrome.mjs puts them on every page at build time). Loaded after each page's own styles, so these
   rules win the ties with the old .bar ones. The colours are the brand's: navy bar, fog text, orange for the one main button. */

/* ---- the header */
.sitebar .sb-wrap{display:flex;align-items:center;flex-wrap:nowrap;gap:18px;padding-block:12px}
.sitebar .logo{flex:none;display:flex;align-items:center;gap:10px;text-decoration:none;color:#eef2f5}
.sitebar .logo img{width:38px;height:38px;border-radius:10px;box-shadow:0 0 0 1px rgba(238,242,245,.28)}
.sitebar .logo span{font:800 21px/1 "Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif;letter-spacing:-.03em}
.sitebar .logo b{color:#e2572b;font-weight:800}
.sb-nav{display:flex;align-items:center;gap:20px;margin-left:auto;font-size:15px}
.sb-nav a,.sb-link{color:#c6d1da;text-decoration:none;white-space:nowrap;padding-block:6px}
.sb-nav a:hover,.sb-link:hover{color:#fff}
.sb-nav a[aria-current="page"]{color:#fff;box-shadow:0 2px 0 #e2572b}
.sb-acts{flex:none;display:flex;align-items:center;gap:16px;font-size:15px}
.sb-go{display:inline-flex;align-items:center;min-height:38px;padding:8px 14px;border-radius:9px;background:#e2572b;color:#fff;font-weight:600;font-size:14px;line-height:1.1;text-decoration:none;white-space:nowrap}
.sb-go:hover{background:#c94a21;color:#fff}
.sb-go .short{display:none}
.sitebar a:focus-visible,.sb-menu summary:focus-visible{outline:2px solid #8fb0ff;outline-offset:2px;border-radius:4px}

/* the menu: a <details>, so it needs no script. Shown only when the links don't fit in the bar */
.sb-menu{display:none;position:relative}
.sb-menu summary{display:flex;align-items:center;gap:7px;min-height:40px;padding:0 12px;border:1px solid #4a5168;border-radius:8px;color:#eef2f5;font-size:14px;cursor:pointer;list-style:none;user-select:none}
.sb-menu summary::-webkit-details-marker{display:none}
.sb-menu summary:hover,.sb-menu[open] summary{background:#2c3142;border-color:#6a7390}
.sb-menu-nav{position:absolute;right:0;top:calc(100% + 8px);z-index:900;display:grid;min-width:220px;padding:6px 0;background:#13202b;border:1px solid #33414e;border-top:3px solid #e2572b;border-radius:10px;box-shadow:0 12px 32px rgba(8,14,20,.4)}
.sb-menu-nav a{display:flex;align-items:center;min-height:44px;padding:0 18px;color:#eef2f5;font-size:15px;text-decoration:none;white-space:nowrap}
.sb-menu-nav a:hover{background:#22303c}
.sb-menu-nav a:focus-visible{outline:2px solid #8fb0ff;outline-offset:-2px}
.sb-menu-nav a[aria-current="page"]{box-shadow:inset 3px 0 0 #e2572b}
.sb-menu-nav .sb-phone{display:none}

@media (max-width:1120px){
  .sb-nav{display:none}
  .sb-acts{margin-left:auto}
  .sb-menu{display:block}
}
@media (max-width:600px){
  .sitebar .sb-wrap{gap:10px}
  .sb-acts{gap:8px}
  .sb-link{display:none}
  .sb-menu-nav .sb-phone{display:flex}
  .sb-go{min-height:44px}
  .sb-go .long{display:none}
  .sb-go .short{display:inline}
  .sb-menu summary{min-height:44px}
  .sitebar .logo span{font-size:19px}
}
@media (max-width:400px){
  .sb-menu summary span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .sb-menu summary{min-width:44px;justify-content:center;padding:0}
}
@media (max-width:340px){
  .sitebar .logo img{width:32px;height:32px}
  .sitebar .logo span{font-size:17px}
}

/* ---- the footer (the pages' own footer rules set its type and columns; its headings are h2s, in the small capitals the old h4s had) */
.sitefoot h2{margin:0 0 6px;font:500 12px/1.2 "IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--fg,#13202b)}
.sitefoot .logo{color:var(--fg,#13202b)}
.sitefoot .logo img{width:28px;height:28px;border-radius:7px;box-shadow:none}
.sitefoot .logo span{font-size:18px}
.sitefoot a{color:inherit;text-underline-offset:2px}
.sitefoot h4 + p a{color:var(--fg,#13202b)}

/* ---- the builder's bar (#appbar, compact: 46 px). Its links show from 1000 px (build-dustcoupler.sh), the tagline only where there is room for
   it as well, the same menu from 641 to 999 px, and on a phone (no room in the bar) the Help dialog lists the pages */
html[data-site="dustcoupler"] #appbar .sb-menu{display:none}
@media (min-width:641px) and (max-width:999px){html[data-site="dustcoupler"] #appbar .sb-menu{display:block}}
html[data-site="dustcoupler"] #appbar .sb-menu summary{min-height:28px;padding:3px 9px;border-radius:6px;font-size:12px;color:#c0c4cf}
html[data-site="dustcoupler"] #appbar .sb-menu summary:hover,html[data-site="dustcoupler"] #appbar .sb-menu[open] summary{color:#fff}
html[data-site="dustcoupler"] #appbar .sb-menu-nav{top:calc(100% + 9px)}
@media (max-width:1439px){html[data-site="dustcoupler"] #appbar .sep,html[data-site="dustcoupler"] #appbar .appname{display:none}}
@media (max-width:900px){html[data-site="dustcoupler"] #appbar .sb-menu summary{min-height:44px;min-width:44px;justify-content:center}}

/* ---- the main orange buttons and the focus ring, on every page of the site (not the builder, which has its own). White on the brand's #e2572b is
   3.7:1, short of 4.5 for a button's 15 px words (UX review 2026-11-09), so a button's fill is the deeper #c94a21 (4.7:1, the old hover) and its hover
   deeper still; the brand orange stays for the mark and the accents. The ring reaches 3:1 on that fill and on the page: navy on a light page, yellow
   on a dark one and on the navy bar. */
html:not([data-site]) .sb-go,html:not([data-site]) .btn-primary,html:not([data-site]) .btn.go,html:not([data-site]) .skip{background:#c94a21;border-color:#c94a21;color:#fff}
html:not([data-site]) .sb-go:hover,html:not([data-site]) .btn-primary:hover,html:not([data-site]) .btn.go:hover{background:#b1401b;border-color:#b1401b;color:#fff}
/* the skip link every page starts with (the landing page had none: its main button was 9 Tabs in) */
html:not([data-site]) .skip{position:absolute;left:12px;top:-60px;z-index:1000;padding:10px 16px;border-radius:8px;font-weight:700;text-decoration:none}
html:not([data-site]) .skip:focus{top:12px}
html:not([data-site]) main:focus{outline:none}
html:not([data-site]){--ring:#13202b}
@media (prefers-color-scheme: dark){html:not([data-site]):not([data-theme="light"]){--ring:#ffd23f}}
html[data-theme="dark"]:not([data-site]){--ring:#ffd23f}
html:not([data-site]) :focus-visible{outline-color:var(--ring)}
html:not([data-site]) .sitebar :focus-visible,html:not([data-site]) .sitebar a:focus-visible,html:not([data-site]) .sb-menu summary:focus-visible{outline-color:#ffd23f}
