/* ============================================================
   HALIZONA, design tokens
   Brand colours sampled from the live brand assets:
   purple #300061  /  green #20ce88
   Type: brother-1816 via Adobe Fonts kit (use.typekit.net/sht0xoh.css)
   ============================================================ */
:root{
  --purple:#300061;
  --purple-deep:#1c0040;
  --purple-soft:#5a2ca0;
  --green:#20ce88;
  --green-deep:#13a86a;
  --yellow:#f0e94b;
  --ink:#300061;
  --slate:#300061;
  --line:#e9e6ef;
  --bg:#ffffff;
  --bg-alt:#f6f4fb;
  --white:#ffffff;
  --radius:18px;
  --radius-lg:28px;
  --shadow-sm:0 6px 20px rgba(48,0,96,.07);
  --shadow-md:0 18px 50px rgba(48,0,96,.13);
  --shadow-lg:0 40px 90px rgba(48,0,96,.22);
  --maxw:1180px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* Metric-matched fallback so the async brand-font swap is seamless (no reflow).
   Overrides measured against brother-1816: verified 0px width + height difference. */
@font-face{
  font-family:"brother-fb";
  src:local("Arial"),local("Roboto"),local("Helvetica Neue");
  size-adjust:101.16%;
  ascent-override:109.13%;
  descent-override:30.25%;
  line-gap-override:0%;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:"brother-1816","brother-fb",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
/* height:auto is part of the reset, not decoration. Every img on the site now
   carries width="" and height="" so the browser can reserve the space and
   nothing shifts as pictures land. But those attributes are PRESENTATIONAL
   HINTS: they set the used width and height at the very bottom of the cascade,
   which is lower than nothing at all. So the moment a rule sets width (or
   aspect-ratio) and leaves height alone, the height attribute keeps winning and
   the image renders at its full natural pixel height in a box sized for
   something else. That is what broke the How it works menu, whose cards came
   out 289x833 instead of 289x181. Element specificity (0,0,1) means any rule
   that genuinely wants a fixed height, .brand img and .foot-brand img, still
   beats this. Measured across all ten pages: adding it changes nothing except
   the two images that were already wrong. */
img{max-width:100%;height:auto;display:block}
/* Do NOT add a:link / a:visited here. Author styles beat the browser's own
   regardless of specificity, so a bare `a` already stops the default blue.
   Naming the states raises this to (0,1,1), which then beats .btn-dark at
   (0,1,0) and turns every link-shaped button's text back to inherit. Tried
   it on 21 Aug 2026: the LinkedIn button on /about/ went purple on purple,
   contrast 1.0, completely invisible. */
a{color:inherit;text-decoration:none}
ul{list-style:none}
button,input,select,textarea{font-family:inherit}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:24px}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.78rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--green-deep);
}
/* ---- the logo triangle on every eyebrow ----
   clip-path rather than an image, so it costs nothing and takes a colour. It is
   deliberately NOT currentColor: matching the text would read as a bullet. On
   light sections it is purple against the green label, on the dark bands it is
   green against a light label, which is how the three brand colours rotate
   across the page without anyone having to choose per section.
   It points DOWN on a section header (David, 25 Sep 2026): it is there to
   lead the eye on down the page. The logo mark itself, and the triangles in
   the home hero's three lines, still point up. */
.eyebrow::before{
  content:"";display:block;flex:0 0 auto;
  width:.66em;height:.56em;background:var(--purple);
  clip-path:polygon(0% 0%, 100% 0%, 50% 100%);
}
.eyebrow.centered::after{display:none}
.problem .eyebrow::before,
.results .eyebrow::before,
.cta-card .eyebrow::before,
.scorecard-cta .eyebrow::before{background:var(--green)}
.eyebrow.no-bar::before,.eyebrow.no-bar::after{display:none}
.eyebrow.on-dark{color:var(--green)}
h1,h2,h3,h4{line-height:1.08;letter-spacing:-.02em;font-weight:800}
h2.section-title{font-size:clamp(2rem,4.2vw,3.1rem);margin:.5rem 0 1rem}
.lead{font-size:1.12rem;color:var(--slate);max-width:62ch}
.hl{color:var(--green)}
.hl-mark{
  background:linear-gradient(var(--green),var(--green)) no-repeat 0 calc(0.395em - 5px)/100% calc(0.97em + 10px);
  color:#fff;
  padding:0 5px;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-weight:700;font-size:1rem;white-space:nowrap;text-transform:uppercase;letter-spacing:.06em;
  padding:.95rem 1.6rem;border-radius:999px;
  border:2px solid transparent;cursor:pointer;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .25s,color .25s,border-color .25s;
  will-change:transform;
}
.btn svg{width:18px;height:18px}
/* No shadows on buttons, coloured or otherwise. The green ones were a glow
   rather than an elevation, and David asked for them gone site-wide. Lift on
   hover carries the interaction on its own. */
/* Purple text, not white. White on the brand green measures 2.05:1, which
   fails AA even for large text, and this is the site's primary button. On
   purple it is 7.89:1. The scorecard's .btn-accent already did it this way. */
.btn-primary{background:var(--green);color:var(--purple)}
.btn-primary:hover{transform:translateY(-3px)}
.btn-ghost{background:transparent;color:var(--white);border-color:rgba(255,255,255,.35)}
.btn-ghost:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.7);transform:translateY(-3px)}
.btn-dark{background:var(--purple);color:#fff}
.btn-dark:hover{background:var(--purple-deep);transform:translateY(-3px)}
.btn-outline{background:transparent;color:var(--purple);border-color:var(--line)}
.btn-outline:hover{border-color:var(--purple);transform:translateY(-3px)}
.btn-lg{padding:1.1rem 2rem;font-size:1.08rem}

/* ---------- shared section rhythm ---------- */
.section{padding:96px 0}
.section.alt{background:var(--bg-alt)}
.section-head{text-align:center;max-width:760px;margin:0 auto 58px}
.section-head .eyebrow{justify-content:center}
.section-head .lead{margin-inline:auto}

.stars{color:#f5b425;letter-spacing:2px;font-size:1rem}
.stars.green{color:var(--green)}
/* ============================================================
   HEADER
   ============================================================ */
/* green HZ-pattern bar, as on halizona.com */
/* transparent over the hero's green pattern panel; pattern bg returns on scroll */
.site-header{
  position:fixed;inset:0 0 auto 0;z-index:100;
  background:transparent;
  padding:16px 0;
  transition:box-shadow .35s var(--ease),background .35s var(--ease);
}
.site-header.scrolled{
  background:url("/assets/images/website-flat.jpg") center/cover var(--green);
  border-bottom:1px solid var(--green-deep);
  box-shadow:0 10px 30px rgba(48,0,96,.10);
}
.site-header .wrap{max-width:100%;padding-left:clamp(24px,5vw,80px);padding-right:20px}
.nav{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:16px}
.nav-git{
  justify-self:end;
  border:2px solid var(--purple);border-radius:4px;color:var(--purple);
  text-transform:uppercase;letter-spacing:.08em;font-weight:600;font-size:14px;
  padding:11px 20px;transition:background .25s,color .25s;
}
.nav-git:hover{background:var(--purple);color:#fff}
/* The logo must never distort. Two things are needed: max-width:none so the
   global img{max-width:100%} cannot squeeze it into a tight grid track, and
   min-width:max-content so the auto track stops shrinking below the logo. */
.brand{justify-self:start;min-width:max-content}
.brand img{height:46px;width:auto;max-width:none}
.brand .logo-light{display:none}
/* live-site menu: 18px uppercase, letterspaced, deep purple; green fill on hover */
.nav-links{display:flex;align-items:center;gap:6px;justify-self:center}
.nav-links a{
  display:flex;align-items:center;
  font-size:14px;font-weight:500;letter-spacing:.02em;text-transform:uppercase;
  color:var(--purple);
  padding:12px 11px;
  transition:background .25s,color .25s;
}
.nav-links a:hover,.nav-links li.open > a{color:#fff;box-shadow:inset 0 -2px 0 #fff}
/* square purple hamburger, right, white "align-right" bars like the live site */
.oc-btn{
  justify-self:end;width:52px;height:52px;border:1px solid var(--purple);cursor:pointer;
  background:var(--purple);padding:0 13px;
  display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:5px;
  transition:background .25s,border-color .25s;
}
.oc-btn:hover{background:var(--purple-deep);border-color:var(--ink)}
.oc-btn span{display:block;height:2.5px;background:var(--yellow);border-radius:1px}
.oc-btn span:nth-child(1){width:100%}
.oc-btn span:nth-child(2){width:62%}
.oc-btn span:nth-child(3){width:100%}
.oc-btn span:nth-child(4){width:62%}

/* ---------- About dropdown: About Halizona, Reviews and recognition ----------
   David, 11 Nov 2026: "should it be on the top nav bar too, a drop down from
   about". Opens on hover and on keyboard focus (focus-within), no script. The
   row at 1440 has about 18px to spare (see the 1560/1439 notes below), so the
   caret is smaller than the mega menu's. */
.has-drop{position:relative}
.has-drop > a .caret{display:inline-block;margin-left:5px;font-size:.62em;transition:transform .2s var(--ease)}
.has-drop:hover > a .caret,.has-drop:focus-within > a .caret{transform:rotate(180deg)}
.nav-drop{
  position:absolute;top:100%;left:0;min-width:240px;margin:0;padding:8px;list-style:none;
  background:#fff;border:1px solid var(--line);border-radius:14px;
  box-shadow:4px 14px 30px 2px rgba(21,16,31,.18);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  /* hidden only after the fade on the way out, visible at once on the way in,
     so a keyboard Tab can land on the first link straight away */
  transition:opacity .2s var(--ease),transform .2s var(--ease),visibility 0s linear .2s;
}
.has-drop:hover > .nav-drop,.has-drop:focus-within > .nav-drop{
  opacity:1;visibility:visible;transform:none;
  transition:opacity .2s var(--ease),transform .2s var(--ease),visibility 0s;
}
.nav-links .nav-drop a{
  display:block;padding:10px 12px;border-radius:10px;white-space:nowrap;
  font-size:15px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--purple);
}
.nav-links .nav-drop a:hover{background:var(--bg-alt);color:var(--green-deep);box-shadow:none}
.nav-links .nav-drop a:focus-visible{outline:3px solid var(--purple);outline-offset:-3px}
@media (prefers-reduced-motion:reduce){.nav-drop,.has-drop > a .caret{transition:none}}

/* ---------- mega menu: full-width white panel, rounded bottom, soft shadow ---------- */
.has-mega{position:static}
.has-mega > a .caret{display:inline-block;margin-left:8px;font-size:.72em;transition:transform .25s var(--ease)}
.has-mega.open > a .caret{transform:rotate(180deg)}
.mega{
  position:absolute;left:0;right:0;top:100%;
  background:#fff;border-radius:0 0 20px 20px;
  box-shadow:4px 14px 30px 2px rgba(21,16,31,.18);
  border-top:1px solid var(--line);
  padding:30px 24px 34px;
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .25s var(--ease),transform .25s var(--ease),visibility .25s;
}
.mega.open{opacity:1;visibility:visible;transform:none}
.mega-grid{max-width:980px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.mega-item{display:block;border-radius:14px;padding:10px;transition:background .2s}
.mega-item:hover{background:var(--bg-alt)}
.mega-item img{
  /* height:auto is what makes aspect-ratio apply. The markup carries
     height="833" / "667" / "1133", and a height attribute is a presentational
     hint, so without this the used height was the natural pixel height and the
     16/10 box never happened: the cards rendered 289x833 instead of 289x181,
     a quarter of the intended ratio, and object-fit:cover then sliced a thin
     vertical strip out of each photo. Same trap as .foot-brand img. */
  width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:10px;
  margin-bottom:14px;border:1px solid var(--line);
}
.mega-item .mno{font-size:.78rem;font-weight:800;letter-spacing:.14em;color:var(--green-deep)}
.mega-item h4{font-size:1.08rem;margin:4px 0 4px;color:var(--ink);transition:color .2s}
.mega-item:hover h4{color:var(--green-deep)}
.mega-item p{font-size:.88rem;color:var(--slate);line-height:1.45}

/* ---------- off-canvas side panel (hamburger) ---------- */
.oc-scrim{
  position:fixed;inset:0;background:rgba(21,16,31,.5);z-index:150;
  opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;
}
.oc{
  position:fixed;top:0;right:0;bottom:0;width:320px;max-width:88vw;z-index:160;
  background:#fff;box-shadow:-20px 0 60px rgba(21,16,31,.2);
  transform:translateX(105%);transition:transform .35s var(--ease);
  display:flex;flex-direction:column;padding:26px 28px;overflow-y:auto;
}
body.oc-open .oc{transform:none}
body.oc-open .oc-scrim{opacity:1;visibility:visible}
.oc-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
/* Same stretch as .foot-brand img: measured 233x24 instead of 171x24, 36% wide. */
.oc-head img{height:24px;width:auto;max-width:none}
.oc-close{background:none;border:0;cursor:pointer;font-size:1.6rem;line-height:1;color:var(--ink);padding:4px 8px}
.oc-close:hover{color:var(--purple)}
.oc-links{display:flex;flex-direction:column}
.oc-links a{
  padding:14px 0;font-weight:500;font-size:15px;letter-spacing:.05em;text-transform:uppercase;
  color:var(--purple);border-bottom:1px solid var(--line);
  transition:color .2s,padding-left .2s;
}
.oc-links a.sub{text-transform:none;letter-spacing:0}
.oc-links a:hover{color:var(--green-deep);padding-left:6px}
.oc-links a.sub{padding-left:18px;font-weight:500;color:var(--slate);font-size:.95rem}
.oc-links a.sub:hover{padding-left:24px;color:var(--green-deep)}
.oc-links a.sub .mno{color:var(--green-deep);font-weight:800;font-size:.78rem;letter-spacing:.1em;margin-right:8px}
.oc-contact{margin-top:auto;padding-top:26px}
.oc-contact a{display:block;font-weight:700;color:var(--purple);margin-bottom:10px}
.oc-contact a:hover{color:var(--green-deep)}

/* ============================================================
   FOOTER
   ============================================================ */
/* green footer, same colourway as the live halizona.com footer */
.site-footer{background:var(--green);color:var(--purple);padding:64px 0 0}
.foot-grid{display:grid;grid-template-columns:340px 1fr;gap:52px;align-items:start}
.foot-main{padding-top:6px}
.foot-lead{font-size:.95rem;font-weight:500;color:var(--purple);margin-bottom:6px}
.foot-tagline{font-size:2.5rem;font-weight:800;color:var(--purple);line-height:1.35;letter-spacing:-.02em;margin-bottom:34px;display:flex;flex-wrap:wrap;gap:.32em .45em}
.foot-tagline span{background:var(--purple);color:#fff;padding:.12em .36em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.foot-cols{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:34px}
/* width:auto is load-bearing, not tidiness. The markup carries width="1200"
   height="168" (correct, it reserves the space and stops layout shift), and a
   width attribute acts as a presentational hint, so with only height set in CSS
   the box was 1200px wide, clamped by the global img{max-width:100%} to whatever
   the column allowed. Measured on a 390px phone: 342x30 instead of 214x30, the
   logo stretched 60% wide. max-width:none so a narrower column can never
   re-introduce it. Same fix as .brand img in the header. */
.foot-brand img{height:30px;width:auto;max-width:none}
.foot-brand .foot-contact{margin:20px 0 8px}
.foot-col h4{color:var(--purple);font-size:1rem;margin-bottom:16px;font-weight:800}
.foot-col a,.foot-col li{display:block;font-size:.95rem;margin-bottom:10px;color:var(--purple);transition:color .2s}
.foot-col a:hover{color:#fff}
.foot-contact a,.foot-contact .fc-loc{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:var(--purple)}
.foot-contact a .ic,.foot-contact .fc-loc .ic{display:inline-flex;align-items:center;justify-content:center;color:#fff;flex:none}
.foot-contact a .ic svg,.foot-contact .fc-loc .ic svg{width:18px;height:18px}
.foot-contact a:hover{color:#fff}
.socials{display:flex;gap:12px;margin-top:18px}
.socials a{width:40px;height:40px;border-radius:10px;background:var(--purple-deep);display:grid;place-items:center;color:#fff;transition:.25s}
.socials a:hover{background:var(--purple);transform:translateY(-3px)}
.socials a svg{width:18px;height:18px}
/* contact form card, mirrors the live footer form */
.foot-form{background:var(--purple-deep);border-radius:var(--radius);padding:30px 28px;margin-top:-118px;position:relative;z-index:3;box-shadow:var(--shadow-lg)}
.foot-form h4{color:#fff;font-size:1.35rem;line-height:1.15;margin-bottom:22px}
.foot-field{margin-bottom:20px}
.foot-field input{width:100%;background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.32);color:#fff;font-family:inherit;font-size:.95rem;padding:9px 0}
.foot-field input::placeholder{color:rgba(255,255,255,.6)}
.foot-field input:focus{outline:none;border-bottom-color:var(--green)}
.foot-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.btn-send{margin-top:6px;width:100%;background:var(--green);color:var(--purple);border:0;border-radius:5px;padding:15px;font-weight:800;text-transform:uppercase;letter-spacing:.16em;font-size:.8rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:transform .2s,box-shadow .2s,background .2s}
.btn-send:hover{background:#7ce8bb;transform:translateY(-2px)}
.btn-send:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}
.form-msg{margin-top:14px;font-size:.86rem;font-weight:600;min-height:1.1em}
.form-msg.ok{color:#d5fbeb}
.form-msg.err{color:#ffd4ca}
.foot-bottom{background:var(--purple-deep);color:#fff;margin-top:60px;padding:20px 0;font-size:.85rem}
.foot-bottom-in{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.foot-bottom .pills{display:flex;gap:18px;flex-wrap:wrap}
/* Mid Yorkshire Chamber finalist badges, under the footer's "What you get" links.
   Each badge is its own link, to its category on the Chamber's finalists page.
   .foot-col a (display:block, margin) would otherwise win, hence the two-class selectors.
   Each link is position:relative so its hidden "(opens in a new tab)" stays inside it. */
.foot-col .foot-awards{display:flex;gap:10px;margin:22px 0 0;max-width:250px}
.foot-col .foot-awards a{display:block;flex:1 1 0;min-width:0;max-width:120px;margin:0;position:relative;border-radius:10px}
.foot-col .foot-awards img{display:block;width:100%;height:auto;aspect-ratio:1/1;border-radius:10px;box-shadow:0 6px 16px rgba(28,0,64,.16);transition:transform .2s}
.foot-col .foot-awards a:hover img{transform:translateY(-2px)}
.foot-col .foot-awards a:focus-visible{outline:3px solid var(--purple);outline-offset:4px}
@media (max-width:640px){.foot-col .foot-awards{max-width:290px}.foot-col .foot-awards a{max-width:140px}}
/* Visually hidden, still read out, e.g. "(opens in a new tab)" on outside links. */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ============================================================
   SCORECARD BAND
   The end-of-page prompt to /scorecard/, used on the about page and on every
   insights page. Deliberately container-agnostic: on the insights pages it is
   dropped straight into the article's existing .wrap, so it must NOT bring a
   .wrap of its own. It lives here rather than in insights.css because five
   pages across three stylesheets use it, and the duplicated-per-page-stylesheet
   habit is exactly what left /scorecard/ with a nav that never collapsed.
   ============================================================ */
.scorecard-cta{
  display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;
  background:var(--purple-deep);color:#fff;border-radius:var(--radius-lg);
  padding:44px;margin-top:clamp(44px,5vh,64px);
}
.scorecard-cta .eyebrow{color:var(--green)}
.scorecard-cta h2{font-size:clamp(1.5rem,2.6vw,2rem);color:#fff;margin:.35rem 0 0;max-width:22ch}
.scorecard-cta p{margin:.7rem 0 0;color:rgba(255,255,255,.85);max-width:54ch}
.scorecard-cta .btn{flex:0 0 auto}
/* "Score your marketing" is only twenty characters, but uppercase at .16em of
   tracking plus the arrow needs about 334px and the phone gives the button 294.
   It was wrapping to 88px tall with the arrow stranded. Shared component, so
   this fixes it on every page that carries the prompt. */
@media (max-width:560px){
  .scorecard-cta .btn{font-size:.82rem;letter-spacing:.06em;padding-inline:1.15rem;white-space:nowrap}
  .scorecard-cta .btn svg{width:15px;height:15px}
}
/* When the band gets its OWN section (the about page, where it is not following
   article content inside an existing .wrap) the 96px section padding and the
   band's own 45px margin stack into a 141px hole. The section above is .alt
   too, so dropping both leaves one continuous field with a normal 96px gap. */
.scorecard-cta-section{padding-top:0}
.scorecard-cta-section .scorecard-cta{margin-top:0}
@media (max-width:720px){
  .scorecard-cta{padding:30px 24px;gap:22px}
  .scorecard-cta .btn{width:100%;justify-content:center;white-space:normal;text-align:center;font-size:.95rem}
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* Scorecard, emphasis via WEIGHT only. A green dot was drafted here on the
   assumption the header goes white when it sticks. It does not: .site-header is
   transparent at the top of a green hero and green once .scrolled, so the dot
   was green-on-green and invisible on every page in both states. Weight reads
   on any ground, and a second coloured marker would compete with the outlined
   "Get in touch" pill, which is meant to be the loudest thing in the row. */
/* The scorecard is the main conversion action on the site, so it stops looking
   like the six links either side of it. White fill rather than the purple
   outline the Get in touch pill uses, so the two read as different offers
   rather than two versions of the same one. The border matters: the header is
   transparent at the top of every page and the pill would vanish on any page
   whose first section is white. */
.nav-links .nav-scorecard{
  display:inline-flex;align-items:center;gap:7px;
  /* No border. It read as a blue ring against the green header, and it is not
     needed: every page either puts a coloured hero behind a transparent header
     or gives the header its own green background, so white always contrasts.
     Checked on all seven page types before taking it off. */
  background:#fff;border:0;border-radius:999px;
  color:var(--purple);font-weight:800;
  padding:8px 13px;margin-inline:4px;
  transition:background .25s,color .25s,border-color .25s;
}
.nav-links .nav-scorecard .nsc-ic{width:15px;height:15px;flex:0 0 auto}
/* box-shadow:none matters. .nav-links a:hover paints a white 2px inset bar
   along the bottom of every nav link, which is the underline the plain links
   get. Inside a rounded white pill that lands as a white stripe sitting across
   the inside of the button, and once the pill fills purple on hover it is very
   visible. The colour was already overridden by specificity; the shadow was
   not, because there was nothing to override it with. */
.nav-links .nav-scorecard:hover{
  background:var(--purple);color:#fff;box-shadow:none;
}
/* the row trim at 1600 pulls padding off every link; this one keeps its shape */
@media (max-width:1600px){
  .nav-links a.nav-scorecard{padding-left:12px;padding-right:12px}
}

/* An EIGHTH item does not fit the 1440 row at full size. Measured, not guessed:
   brand 329 + links 830 + the 159px "Get in touch" pill + the 52px burger +
   48px of gaps wants 1478px of viewport, and 1440 only offers 1348 inside the
   wrap. The first thing that gives is the pill, which wraps to two lines and
   grows the header from 48px to 71px, BEFORE anything visibly overflows, so
   this fails quietly rather than loudly. Room bought back in two places rather
   than by dropping a link: close the gaps and trim the link padding to 8px, and
   step the header logo down from 46px to 38px (329px -> 271px). At 1440 that
   lands at 1330 of 1348 used, pill still on one line. */
.nav-links a{white-space:nowrap}
/* 1600 and 1560, not 1500: untrimmed the row needs 1418px of content, which
   with the 92px of wrap padding wants a 1510px viewport, so a trim that only
   started at 1500 left 1501-1510 overflowing and 1512 clearing by 2px. Each
   threshold now sits clear of the width its own trim is there to rescue. */
@media (max-width:1600px){
  .nav-links{gap:0}
  .nav-links a{padding-left:8px;padding-right:8px}
}
@media (max-width:1560px){
  .brand img{height:38px}
}

/* Phones: step the logo down so it cannot push the hamburger off screen.
   At 46px the logo is 329px wide, which overflows a 390px viewport once
   the 44px hamburger and the wrap padding are accounted for. */
@media (max-width:720px){
  .brand img{height:32px}
}

/* ---- collapse the nav to the hamburger -------------------------------- */
/* This lived ONLY in the six per-page stylesheets (home, about, contact,
   insights, community, 404), copy-pasted identically into each. scorecard.css
   was written later and never got a copy, so /scorecard/ was the one page whose
   nav never collapsed: measured at 390px the links ran 584px past the viewport,
   and because the breakpoint is 1400px it was overflowing on laptops too, not
   just phones. Only body{overflow-x:hidden} stopped it showing as a scrollbar.

   It belongs here, in the stylesheet every page loads. The six copies are now
   redundant but harmless: they are the identical declaration, so leaving them
   changes nothing and avoids editing six live stylesheets during an audit.

   1439 and not 1200: with Insights, Community and Scorecard in the row, the
   logo squashes and the CTA wraps between about 1200 and 1439, so it collapses
   earlier. It was 1400 when the row held seven items; the eighth moved the
   floor to 1440, which is the narrowest width where the pill still fits on one
   line with the trims above applied. Nothing common sits in the 1401-1439 band
   it gives up: 1366 and 1280 already collapsed, 1440 and 1512 do not. */
@media (max-width:1439px){
  .nav-links{display:none}
  /* 3 columns, not 2: with the links hidden the row is brand | CTA | hamburger,
     and at 2 columns the hamburger drops onto a second row. */
  .nav{grid-template-columns:auto 1fr auto}
  .oc-btn{grid-column:3}
}

/* The "Get in touch" pill is hidden on phones for the same reason and with the
   same history: it lived only in the per-page stylesheets. .brand has
   min-width:max-content so the logo will not shrink below 229px, and 229 + the
   159px pill + the 52px hamburger + gaps needs 472px, which does not fit a
   390px phone. Without this the header row was 836px wide on a 390px screen. */
@media (max-width:720px){
  .nav-git{display:none}
}

/* ---- the shared footer, on small screens ------------------------------ */
/* Same story as the nav above: the footer markup is identical on every page
   and lives in site.css, but its RESPONSIVE rules were only ever written into
   the six per-page stylesheets. scorecard.css never got a copy, so on a phone
   the footer kept its 340px + 1fr desktop grid and ran 420px wide off a 390px
   screen, hidden only by body{overflow-x:hidden}. Shared markup needs its
   breakpoints in the shared stylesheet. */
@media (max-width:980px){
  .foot-grid{grid-template-columns:1fr}
  .foot-cols{grid-template-columns:1fr 1fr}
  .foot-form{margin-top:-60px}
}
@media (max-width:720px){
  .foot-cols{grid-template-columns:1fr}
  .foot-form{margin-top:-104px}
  .foot-tagline{font-size:2.5rem}
}

/* ---- where an in-page jump lands ------------------------------------- */
/* The header is position:fixed and 84px tall at every width, and nothing set
   scroll-padding, so anything jumped to landed at y=0 with its top 84px behind
   the green bar. That hit every #anchor and, on /scorecard/, all four
   scrollIntoView({block:'start'}) calls, so each step change buried its own
   heading. 100px is the header plus a little breathing room.
   scroll-padding-top is the right tool rather than scroll-margin on each
   target: it applies to anchors and scrollIntoView alike, and to targets that
   do not exist yet. */
html{scroll-padding-top:100px}
