/* The shared Lab5 bar and foot, alone, for a page that keeps its own stylesheet (Offramp under the shared header).
   27 Nov 2026: the whole of lab5.css was loaded onto Offramp's page and its class names (.grid, .steps, .parts,
   .row, .chips ...) collided with Offramp's own; the sample report on Free analysis collapsed into three narrow
   columns. A page with its own styles gets this file and nothing else from s/. Every rule here is scoped to
   header.site or footer, apart from the typeface and the button's lift.
   Keep in step with the header and footer rules in lab5.css and the hover rules in motion.css. */
@font-face { font-family: "GT Haptik"; src: url("../img/gt-haptik-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GT Haptik"; src: url("../img/gt-haptik-medium.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
:root { --lab5-sans: "GT Haptik", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif; --lab5-navy: #0C1447; --lab5-accent: #3856E5; --lab5-accent-dark: #2642C7;
  --lab5-out-expo: cubic-bezier(.19, 1, .22, 1); --lab5-ease-in: cubic-bezier(.42, 0, 1, 1); }

/* the bar */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: #FFFFFF; font-family: var(--lab5-sans); }
header.site > .wrap { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; position: relative; }
header.site .brand { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--lab5-navy); font-weight: 500; font-size: 20px; flex: none; }
header.site .brand img { height: 50px; width: auto; }
header.site .brand .sub { font-weight: 400; color: var(--lab5-navy); }
header.site #menu { display: flex; flex-wrap: nowrap; gap: 2px; align-items: center; margin-left: 0; }
header.site #menu a { display: inline-block; font-weight: 500; font-size: 16px; line-height: 22px; color: var(--lab5-navy); text-decoration: none; padding: 12px 16px 5px; border-radius: 0; background: none; }
header.site #menu a:hover, header.site #menu a[aria-current="page"] { background: none; color: var(--lab5-navy); }
header.site #menu a::after { content: ""; display: block; height: 2px; margin-top: 5px; width: 0; background: var(--lab5-navy); transition: width .1s var(--lab5-out-expo); }
@media (hover: hover) { header.site #menu a:hover::after { width: 100%; transition: width .5s var(--lab5-out-expo); } }
header.site #menu a:focus-visible::after { width: 100%; transition: width .5s var(--lab5-out-expo); }
header.site .actions { display: flex; align-items: center; gap: 10px; flex: none; width: auto; }
header.site .actions .btn { font: 500 16px/1 var(--lab5-sans); border-radius: 99px; padding: 12px 20px; border: 1px solid var(--lab5-accent); background: var(--lab5-accent); color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; transition: transform .2s var(--lab5-ease-in), background-color .3s, color .25s; }
header.site .actions .btn:hover { background: var(--lab5-accent-dark); border-color: var(--lab5-accent-dark); color: #FFFFFF; filter: none; }
@media (hover: hover) { header.site .actions .btn:hover { transform: translateY(-4px); } }
header.site .subnav .wrap { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: 6px 24px; align-items: baseline; padding-block: 10px; }
header.site .subnav a { font: 500 15px/1.4 var(--lab5-sans); color: var(--lab5-navy); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; transition: border-color .3s; white-space: nowrap; }
header.site .subnav a:hover, header.site .subnav a[aria-current="page"] { border-bottom-color: var(--lab5-navy); background: none; color: var(--lab5-navy); }
header.site .menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; place-items: center; padding: 0; }
header.site .menu-btn:hover { background: none; border: 0; }
header.site .menu-btn i { display: block; width: 24px; height: 2px; background: var(--lab5-navy); border-radius: 2px; transition: transform .2s ease, opacity .1s ease; }
header.site .menu-btn i + i { margin-top: 6px; }
header.site .menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
header.site .menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
header.site .menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 900px) {
  header.site > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  header.site > .wrap > .brand { justify-self: start; }
  header.site > .wrap > .actions { justify-self: end; }
}
@media (max-width: 899px) {
  header.site .menu-btn { display: grid; }
  header.site #menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--lab5-navy); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 22px max(16px, env(safe-area-inset-left, 0px)); opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden; transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s; }
  header.site #menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  header.site #menu a { color: #FFFFFF; font-size: 22px; line-height: 1.2; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  header.site #menu a:hover, header.site #menu a[aria-current="page"] { color: #FFFFFF; }
  header.site #menu a::after { display: none; }
  header.site .actions .btn { display: none; }
  header.site .brand img { height: 44px; }
  header.site .brand { gap: 14px; font-size: 18px; }
  header.site .subnav .wrap { overflow-x: auto; }
}

/* the foot: the page's own small print, then the Lab5 foot */
footer.lab5-foot { padding-block: 40px 44px; color: var(--lab5-navy); font: 400 15px/1.4 var(--lab5-sans); }
footer.lab5-foot .wrap { display: block; border-top: 0; padding-top: 0; }
footer.lab5-foot .fineprint { font-size: 14px; opacity: .8; padding-bottom: 28px; }
footer.lab5-foot .fineprint > * { display: inline; margin-right: 6px; }
footer.lab5-foot .foot { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: clamp(28px, 6vw, 84px); align-items: center; padding-top: 12px; }
footer.lab5-foot .foot .art img { width: min(100%, 260px); max-width: 100%; height: auto; display: block; }
footer.lab5-foot .foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
footer.lab5-foot .foot-cols h3 { font: 500 19px/1.2 var(--lab5-sans); margin: 0 0 12px; }
footer.lab5-foot .foot-cols ul { list-style: none; margin: 0; padding: 0; }
footer.lab5-foot .foot-cols li { margin-bottom: 8px; font-size: 15px; }
footer.lab5-foot a { color: var(--lab5-navy); text-decoration: none; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; transition: background-size .45s cubic-bezier(.16, 1, .3, 1); }
footer.lab5-foot a:hover { background-size: 100% 1.5px; }
footer.lab5-foot .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; font-size: 14px; }
@media (max-width: 899px) {
  footer.lab5-foot .foot { grid-template-columns: 1fr; }
  footer.lab5-foot .foot .art img { width: 170px; }
  footer.lab5-foot .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { header.site .subnav .wrap { gap: 6px 14px; } header.site .subnav a { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { header.site #menu a::after, header.site .actions .btn, footer.lab5-foot a { transition: none; } header.site .actions .btn:hover { transform: none; } }
