/* Co.Labs Training - the header, navigation and footer every page shares
   (home, the two package pages and the Readiness Assessment). Two-package
   rebuild, December 2026. Colours come from the :root tokens each page
   defines (--paper, --surface, --ink, --slate, --rule, --spruce, --crimson,
   --on-spruce); the layout tier below is the home page grid's, so the bar
   lines up with the page content at every width. */
:root { --page-margin: 1.2rem; --bar-max: 1396px; }
@media (min-width: 700px)  { :root { --page-margin: 2rem; } }
@media (min-width: 1100px) { :root { --page-margin: 2.5rem; } }

/* Anchor targets (#book) land clear of the sticky bar. */
html { scroll-padding-top: 88px; }

/* ---- header: sticky, paper at the top of the page, solid with an ink
   rule once scrolled (site.js toggles .is-scrolled). ---- */
header.bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper); border-bottom: 2px solid transparent;
  transition: background-color .3s ease, border-bottom-color .3s ease;
}
header.bar.is-scrolled { background: var(--surface); border-bottom-color: var(--ink); }
.bar-inner {
  max-width: calc(var(--bar-max) + 2 * var(--page-margin)); margin: 0 auto;
  padding: 16px var(--page-margin);
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px 24px; flex-wrap: wrap; position: relative;
}
.lockup { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.lockup img { height: 30px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:not(.nav-cta) { padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.nav-cta):hover, .site-nav a:not(.nav-cta):focus-visible, .site-nav a[aria-current="page"] { border-bottom-color: var(--crimson); }
.site-nav .nav-cta {
  padding: 9px 16px; font-weight: 700; border: 2px solid var(--spruce); border-radius: 8px;
  background: var(--spruce); color: var(--on-spruce);
}
.site-nav a:focus-visible, .lockup:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }
.nav-toggle {
  display: none; font: 700 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px;
  background: transparent; color: var(--ink); cursor: pointer;
}
/* Below 1160px the links fold behind a Menu button (the four labels need
   that much room on one line since "Book a free 30-min call", December 3
   2026). Only when scripting is on (.js is stamped in each page's head);
   without it the links simply wrap under the logo. */
@media (max-width: 1159px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--page-margin) 18px;
    background: var(--surface); border-bottom: 2px solid var(--ink);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.nav-cta) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .js .site-nav .nav-cta { margin-top: 16px; text-align: center; padding: 13px 16px; font-size: 16px; }
  .js header.bar.nav-open { background: var(--surface); border-bottom-color: var(--ink); }
}

/* ---- footer: the name, page links, the funder credit and the AI line.
   (The About paragraph was removed December 3 2026, JL: too long.) ---- */
.site-foot { border-top: 1px solid var(--rule); color: var(--slate); font-size: 14px; line-height: 1.55; }
.foot-inner {
  max-width: calc(var(--bar-max) + 2 * var(--page-margin)); margin: 0 auto;
  padding: 28px var(--page-margin) 8px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 900px) { .foot-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 64px; align-items: start; } }
.foot-about p { margin: 0; }
.foot-about strong { color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.site-foot .foot-nav a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.site-foot .foot-nav a:hover, .site-foot .foot-nav a:focus-visible { color: var(--ink); }
.foot-funder { display: block; text-decoration: none; color: var(--slate); }
.foot-funder span { display: block; font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.foot-funder img { display: block; height: 40px; width: auto; max-width: 220px; }
.foot-ai { text-align: center; font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 16px var(--page-margin) 28px; margin: 0; }
