/* ==========================================================================
   Williams Stanley & Co, williamsstanley.co
   Design tokens extracted from the live site (Nunito / Lemon Milk / Young,
   navy #003359, coral #EE8176, slate #8CAEC0).
   ========================================================================== */

/* ---------- Webfonts ---------- */
@font-face {
  font-family: "Lemon Milk";
  src: url("/assets/fonts/lemonmilklight-webfont.woff2") format("woff2"),
       url("/assets/fonts/lemonmilklight-webfont.woff") format("woff");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Young";
  src: url("/assets/fonts/young-webfont.woff2") format("woff2"),
       url("/assets/fonts/young-webfont.woff") format("woff");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #003359;
  --navy-deep: #242121;
  --navy-mid: #00263f;
  --coral: #ee8176;
  --coral-dark: #e06a5e;
  /* Same hue as --coral, dark enough for AA text (4.61 on white). Not yet in
     use: switching coral text to it is a brand decision. See /accessibility/. */
  --coral-accessible: #b75950;
  --slate: #8caec0;
  --teal: #00a99d;
  --pink: #cc3366;
  --ink: #333333;
  /* #707070 not #7a7a7a: the original failed WCAG AA on white (4.29) and on
     --bg-tint (4.00). This is the smallest darkening that passes both. */
  --grey: #707070;
  --grey-light: #ededed;
  --bg-tint: #f5f7f9;
  --border: #e2e6ea;
  --white: #ffffff;

  --font-head: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Lemon Milk", "Nunito", sans-serif;
  --font-quote: "Young", "Nunito", sans-serif;

  --container: 1140px;
  --container-wide: 1280px;
  --nav-h: 46px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--coral); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0;
  font-weight: 400;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.375rem);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6875rem);
  line-height: 1.05;
  text-transform: uppercase;
}
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 600; }
h4 {
  font-family: var(--font-accent);
  font-size: 0.9375rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 820px; }

.section { padding: 70px 0; }
.section--sm { padding: 45px 0; }
.section--lg { padding: 90px 0; }
.section--tint { background: linear-gradient(rgba(0, 51, 89, 0.05) 0%, rgba(255, 255, 255, 0) 100%); }
.section--grey { background: var(--bg-tint); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, 0.85); }
.section--navy .prose,
.section--navy .prose p,
.section--navy .prose li,
.section--navy .tick-list li { color: rgba(255, 255, 255, 0.85); }
.section--navy .prose h2,
.section--navy .prose h3,
.section--navy .prose strong { color: var(--white); }

.center { text-align: center; }
.stack > * + * { margin-top: 18px; }

/* Section heading block */
.eyebrow {
  font-family: var(--font-accent);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin: 0 0 12px;
}
.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head .sub {
  font-size: 1.125rem;
  color: var(--grey);
  font-weight: 300;
  margin: 0;
}
.section-head--left { margin-left: 0; text-align: left; }

/* Coral rule (used under hero + headings) */
.rule {
  width: 120px;
  height: 3px;
  background: var(--coral);
  border: 0;
  margin: 0 0 26px;
}
.rule--center { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.125rem; line-height: 1.55; color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 2px solid var(--coral);
  border-radius: 0;
  background: transparent;
  color: var(--coral);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--coral); color: var(--white); }
.btn--solid { background: var(--coral); color: var(--white); }
.btn--solid:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: var(--white); }
.btn--navy { border-color: var(--navy); color: var(--navy); }
.btn--navy:hover { background: var(--navy); color: var(--white); }
.btn--white { border-color: var(--white); color: var(--white); }
.btn--white:hover { background: var(--white); color: var(--navy); }
/* coral outline, white label, the hero/on-image treatment */
.btn--onimage { border-color: var(--coral); color: var(--white); }
.btn--onimage:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--white);
  font-family: var(--font-quote);
  font-size: 0.9375rem;
}
.topbar .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img { width: 250px; max-width: 60vw; }
.topbar-links { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.topbar-links a { color: var(--navy); }
.topbar-links a:hover { color: var(--coral); }
.topbar-links .sep { color: var(--border); }

/* ---------- Nav ---------- */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 60; }
.nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  list-style: none;
}
.nav > li { position: relative; display: flex; }
.nav > li > a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-accent);
  font-size: 0.875rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  padding: 15px 10px;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.nav > li > a:hover,
.nav > li.is-current > a { color: var(--coral); }
.nav .caret { width: 8px; height: 8px; flex: none; }
.nav .caret path { fill: currentColor; }

/* Dropdown */
.subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--navy);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.nav > li:hover > .subnav,
.nav > li:focus-within > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--white);
  padding: 11px 18px;
}
.subnav a:hover { color: var(--coral); background: rgba(255, 255, 255, 0.05); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  padding: 14px 20px;
}
.nav-toggle .bars { display: grid; gap: 4px; }
.nav-toggle .bars span { display: block; width: 22px; height: 2px; background: currentColor; }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 33, 33, 0.82) 0%, rgba(36, 33, 33, 0.55) 45%, rgba(36, 33, 33, 0.15) 100%);
  z-index: 1;
}
/* keeps the .container gutter, .hero__inner is declared later at equal
   specificity, so it must restate the horizontal padding or text hits the edge */
.hero__inner { position: relative; z-index: 2; padding: 80px 20px; }
.hero__content { max-width: 640px; }
.hero h1 { color: var(--slate); margin-bottom: 26px; }
.hero__sub {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  font-weight: 300;
  color: var(--white);
  margin: 0 0 30px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy-deep) center/cover no-repeat;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 33, 33, 0.6);
}
.page-hero__inner { position: relative; z-index: 2; padding: 70px 20px; }
.page-hero h1 { color: var(--white); }
.page-hero .rule { margin-top: 22px; margin-bottom: 0; }
.page-hero__sub {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 24px 0 0;
}
.page-hero--plain { background: var(--navy); min-height: 260px; }
.page-hero--plain::after { display: none; }

/* Breadcrumb */
.crumbs {
  font-family: var(--font-quote);
  font-size: 0.875rem;
  color: var(--grey);
  padding: 18px 0 0;
}
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--coral); }
.crumbs span { color: var(--border); margin: 0 6px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 34px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* Two-column media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr 1fr; }
.split img { width: 100%; }

/* ---------- Service cards ---------- */
.service-card { text-align: center; display: flex; flex-direction: column; }
.service-card__icon { width: 74px; height: 74px; margin: 0 auto 20px; object-fit: contain; }
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p { font-size: 1rem; line-height: 1.6; }
.service-card__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}
.service-card__link:hover { color: var(--navy); }

/* ---------- Sector cards ---------- */
.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--coral);
  padding: 30px 26px;
}
.sector-card h3 {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.sector-card p { font-size: 0.9375rem; line-height: 1.62; margin: 0; }

/* Generic bordered card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px 26px;
}
.card h3 { margin-bottom: 12px; font-size: 1.1875rem; }
.card p { font-size: 0.9375rem; line-height: 1.62; }
.card > img,
.card > a > img { margin-bottom: 18px; }
.card__logo {
  max-height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* ---------- Calculators ---------- */
/* Screen-reader-only text. Clip rather than display:none, which would remove it
   from the accessibility tree along with everything else. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.calc {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 30px 28px;
  margin-bottom: 44px;
}
.calc__intro { margin: 0 0 24px; color: var(--grey); font-size: 0.9375rem; }

.calc__fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 24px; }
.calc__field label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--navy); margin-bottom: 7px;
}
.calc__input { position: relative; display: flex; align-items: stretch; }
.calc__input input {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem;
  border: 1px solid #cfd6dd; background: var(--white); color: var(--ink);
  /* Spinners make a 4-digit money field twitchy to type in. */
  -moz-appearance: textfield;
}
.calc__input input::-webkit-outer-spin-button,
.calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input input:focus { outline: 2px solid var(--coral); outline-offset: -1px; border-color: var(--coral); }
.calc__affix {
  display: flex; align-items: center; padding: 0 11px;
  background: var(--white); border: 1px solid #cfd6dd; border-right: 0;
  color: var(--grey); font-size: 0.9375rem;
}
.calc__affix--suffix { border-right: 1px solid #cfd6dd; border-left: 0; }
.calc__input.has-prefix input { border-left: 0; }
.calc__input.has-suffix input { border-right: 0; }
.calc__input select {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem;
  border: 1px solid #cfd6dd; background: var(--white); color: var(--ink);
  appearance: none; -webkit-appearance: none;
  /* Chevron drawn inline so no extra request and no icon font. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23707070' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 11px;
  padding-right: 34px;
}
.calc__input select:focus { outline: 2px solid var(--coral); outline-offset: -1px; border-color: var(--coral); }

.calc__help { margin: 7px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--grey); }

.calc__results {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px;
}
.calc__result { display: flex; flex-direction: column; gap: 4px; }
.calc__result-label { font-size: 0.8125rem; font-weight: 600; color: var(--grey); }
.calc__result-value {
  font-family: var(--font-accent); font-size: 1.5rem; line-height: 1.1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.calc__result--primary { grid-column: 1 / -1; }
.calc__result--primary .calc__result-value { font-size: 2.125rem; }
.calc__result-help { font-size: 0.8125rem; color: var(--grey); line-height: 1.5; }
.calc__note {
  grid-column: 1 / -1; margin: 4px 0 0; padding: 11px 13px;
  background: var(--white); border-left: 3px solid var(--coral);
  font-size: 0.875rem; line-height: 1.55;
}

.calc__actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.calc__reset {
  font: inherit; font-size: 0.8125rem; padding: 7px 14px; cursor: pointer;
  background: transparent; border: 1px solid #cfd6dd; color: var(--grey);
}
.calc__reset:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- "Where should you start?" diagnostic ---------- */
.quiz { background: var(--bg-tint); border: 1px solid var(--border); padding: 30px 28px; }
.quiz__progress { height: 3px; background: var(--border); margin-bottom: 20px; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--coral); transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .quiz__progress span { transition: none; } }
.quiz__count { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); margin-bottom: 16px; }
.quiz__step { border: 0; padding: 0; margin: 0; }
.quiz__step legend { font-family: var(--font-head); font-size: 1.1875rem; font-weight: 600; color: var(--navy); margin-bottom: 18px; padding: 0; }
.quiz__step label {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; margin-bottom: 9px;
  background: var(--white); border: 1px solid var(--border); cursor: pointer; font-size: 0.9375rem;
}
.quiz__step label:hover { border-color: var(--slate); }
.quiz__step input { margin-top: 3px; accent-color: var(--coral); }
.quiz__step input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.quiz__step label:has(input:checked) { border-color: var(--navy); background: #fff; box-shadow: inset 3px 0 0 var(--coral); }
.quiz__nav { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.quiz__nav .btn { padding: 11px 26px; }
.quiz__nav .btn:disabled { opacity: 0.4; cursor: not-allowed; }

.quiz__result h2 { font-size: 1.25rem; margin-bottom: 18px; }
.quiz__recs { list-style: none; counter-reset: rec; }
.quiz__recs li {
  counter-increment: rec; position: relative; padding: 0 0 20px 40px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.quiz__recs li:last-child { border-bottom: 0; }
.quiz__recs li::before {
  content: counter(rec); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-size: 0.8125rem; font-weight: 700;
}
.quiz__recs h3 { font-size: 1.0625rem; margin-bottom: 7px; }
.quiz__recs p { font-size: 0.9375rem; line-height: 1.62; margin-bottom: 8px; }
.quiz__links { font-size: 0.875rem; }
.quiz__cta { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.quiz__cta p { font-size: 0.9375rem; margin-bottom: 16px; }
@media (max-width: 640px) { .quiz { padding: 22px 18px; } }

/* Article footer: topics, the matching calculator, related reading */
.article-topics { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-topics a {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 11px; background: var(--bg-tint); border: 1px solid var(--border);
  color: var(--navy); text-decoration: none;
}
.article-topics a:hover { border-color: var(--coral); color: var(--coral-accessible); }

.article-tool {
  margin: 32px 0 0; padding: 22px 24px;
  background: var(--bg-tint); border-left: 3px solid var(--coral);
}
.article-tool__label {
  display: block; font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700; color: var(--coral-accessible); margin-bottom: 8px;
}
.article-tool h3 { font-size: 1.0625rem; margin: 0 0 8px; }
.article-tool p { margin: 0; font-size: 0.9375rem; color: var(--grey); }

.article-related { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.article-related h2 { font-size: 1.125rem; margin-bottom: 14px; }
.article-related ul { list-style: none; }
.article-related li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.article-related li:last-child { border-bottom: 0; }

.field__optional { font-weight: 400; color: var(--grey); text-transform: none; letter-spacing: 0; }

.contact-alt {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  text-align: center; font-size: 0.9375rem; color: var(--grey);
}
.contact-alt p { margin: 0; }

/* Partner cards: services collapse so the grid stays level */
.partner-services { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.partner-services summary {
  cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.partner-services summary::-webkit-details-marker { display: none; }
.partner-services summary::after {
  content: "+"; margin-left: auto; font-size: 1rem; line-height: 1; color: var(--grey);
}
.partner-services[open] summary::after { content: "\2212"; }
.partner-services summary:hover { color: var(--coral-accessible); }
.partner-services summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.partner-services__count {
  font-size: 0.6875rem; font-weight: 700; color: var(--grey);
  background: var(--bg-tint); border: 1px solid var(--border); padding: 1px 7px;
}
.partner-services .tick-list { margin-top: 14px; }
.partner-services .tick-list li { font-size: 0.875rem; margin-bottom: 10px; }

/* Repeating line items, e.g. recipe costing */
.calc__notice {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-left: 4px solid var(--coral-accessible);
  background: #fdf1ef;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.calc__notice[hidden] { display: none; }
.calc__notice--overdue { border-left-color: #b3261e; background: #fbe9e7; }
.calc__table-wrap { margin-top: 26px; overflow-x: auto; }
.calc__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 620px; }
.calc__table caption { text-align: left; }
.calc__table th {
  text-align: left; font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--grey); padding: 0 8px 8px; font-weight: 600;
}
.calc__table th.num, .calc__table td.num { text-align: right; }
.calc__table td { padding: 3px 4px; }
.calc__table input {
  width: 100%; padding: 8px 9px; font: inherit; font-size: 0.875rem;
  border: 1px solid #cfd6dd; background: var(--white); color: var(--ink);
  -moz-appearance: textfield;
}
.calc__table input::-webkit-outer-spin-button,
.calc__table input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__table input:focus { outline: 2px solid var(--coral); outline-offset: -1px; border-color: var(--coral); }
.calc__table td.num input { text-align: right; }
.calc__table [data-rowout] { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.calc__row-remove {
  border: 0; background: transparent; color: var(--grey); cursor: pointer;
  font-size: 1.25rem; line-height: 1; padding: 4px 8px;
}
.calc__row-remove:hover { color: var(--coral-accessible); }
.calc__row-add {
  margin-top: 12px; font: inherit; font-size: 0.8125rem; padding: 8px 14px;
  background: transparent; border: 1px dashed #cfd6dd; color: var(--navy); cursor: pointer;
}
.calc__row-add:hover { border-color: var(--coral); color: var(--coral-accessible); border-style: solid; }

.calc__sharebox {
  flex: 1 1 100%; margin-top: 10px; padding: 8px 10px; font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid #cfd6dd; background: var(--white); color: var(--ink);
}

.calc__download {
  font: inherit; font-size: 0.8125rem; padding: 7px 14px; cursor: pointer;
  background: var(--navy); border: 1px solid var(--navy); color: var(--white);
}
.calc__download:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

/* "Guide" flag on the insights index */
.post-card__tag {
  display: inline-block; font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700; color: var(--coral-accessible);
  margin-bottom: 8px;
}

.calc__faq { margin-top: 44px; }
.calc__faq h2 { margin-bottom: 18px; }
.calc__faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.calc__faq summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 0.9375rem; }
.calc__faq summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.calc__faq-body { padding-top: 10px; font-size: 0.9375rem; line-height: 1.65; }
.calc__faq-body p:last-child { margin-bottom: 0; }

.calc__warning {
  margin: 0 0 28px; padding: 14px 16px;
  background: #fdf3e7; border-left: 3px solid #d98324;
  font-size: 0.9375rem; line-height: 1.6;
}

.calc__asat {
  margin: 32px 0 0; padding: 11px 14px;
  background: var(--bg-tint); border-left: 3px solid var(--slate);
  font-size: 0.8125rem; line-height: 1.6; color: var(--ink);
}

.calc__disclaimer {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 0.8125rem; line-height: 1.6; color: var(--grey);
}

@media (max-width: 640px) {
  .calc { padding: 22px 18px; }
  .calc__fields, .calc__results { grid-template-columns: 1fr; }
  .calc__result--primary .calc__result-value { font-size: 1.75rem; }
}

/* Headline figure, e.g. the About page metrics band */
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 22px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-accent);
  font-size: 2.125rem;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 12px;
}
.stat__label {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--grey);
  margin: 0;
}
@media (max-width: 700px) {
  .stat { padding: 22px 16px; }
  .stat__num { font-size: 1.75rem; }
}

/* Numbered / icon list */
/* Inside .prose the generic `.prose ul { list-style: disc }` outranks a bare
   `.tick-list`, so a tick-list rendered a disc AND its own square. Match the
   specificity to win it back. */
.tick-list,
.prose .tick-list,
.prose ul.tick-list { list-style: none; padding-left: 0; }
.tick-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.6;
}
.tick-list li:last-child { margin-bottom: 0; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background: var(--coral);
}

/* ---------- Client logo strip ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 40px;
  align-items: center;
}
.logo-strip img {
  width: 100%;
  max-height: 68px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.logo-strip img:hover { opacity: 1; }

/* ---------- Client logo carousel ---------- */
/* Base state is a centred wrapped row, so with no JS (or reduced motion) the
   logos are all still visible and readable, the animation is the enhancement. */
.logo-carousel {
  position: relative;
  overflow: hidden;
  /* fade the logos out at both edges instead of clipping them hard */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px 52px;
}
.logo-track img {
  height: 60px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.logo-track img:hover { opacity: 1; }
.logo-wordmark {
  display: inline-flex; align-items: center; height: 60px; max-width: 220px;
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; line-height: 1.15;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy);
  text-align: center; opacity: 0.85;
}

/* Animated state, only switched on by script.js once the track is cloned,
   so a half-set never scrolls past and leaves a visible gap. */
.logo-carousel.is-live .logo-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  gap: 0;
  animation: logo-scroll var(--logo-duration, 46s) linear infinite;
  will-change: transform;
}
.logo-carousel.is-live .logo-track img,
.logo-carousel.is-live .logo-track .logo-wordmark {
  flex: none;
  margin: 0 26px;
}
/* Translating exactly -50% works because the track holds the set twice. */
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Pause on hover, and on keyboard focus so it can be read */
.logo-carousel.is-live:hover .logo-track,
.logo-carousel.is-live:focus-within .logo-track { animation-play-state: paused; }

@media (max-width: 700px) {
  .logo-track img { height: 46px; max-width: 130px; }
  .logo-carousel.is-live .logo-track img { margin: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Drop back to the static wrapped row entirely */
  .logo-carousel.is-live .logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 30px 52px;
  }
  .logo-carousel.is-live .logo-track img { margin: 0; }
  .logo-carousel [data-logo-clone] { display: none; }
}

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
  background: var(--coral) center/cover no-repeat;
  padding: 80px 0;
}
.testimonials::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 129, 118, 0.86);
}
.testimonials__inner { position: relative; z-index: 2; }
.testimonials h2 { color: var(--white); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote p {
  font-family: var(--font-quote);
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 300;
  color: var(--white);
  margin: 0 0 18px;
}
.quote cite {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); padding: 60px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 0 auto 28px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; }
.team-card { text-align: center; }
/* members with no photo get a neutral block so text still lines up across the row */
.team-card:not(:has(img))::before {
  content: "";
  display: block;
  aspect-ratio: 1;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 16px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.team-card:hover img { filter: none; }
.team-card h3 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.team-card .role {
  font-family: var(--font-quote);
  font-size: 0.875rem;
  color: var(--grey);
  margin: 0;
}
.team-card p:not(.role) { font-size: 0.9375rem; line-height: 1.6; margin: 10px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--coral);
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item__body { padding: 0 0 24px; font-size: 1rem; line-height: 1.65; }
.faq-item__body p { margin-bottom: 1em; }
.faq-item__body ul { padding-left: 20px; list-style: disc; margin-bottom: 1em; }
.faq-item__body li { margin-bottom: 8px; }

/* ---------- Prose (articles, privacy, guides) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.72; color: var(--ink); }
.prose h2 {
  font-size: 1.75rem;
  text-transform: none;
  margin: 44px 0 16px;
  line-height: 1.2;
}
.prose h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  margin: 34px 0 12px;
}
.prose h4 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: none;
  margin: 26px 0 10px;
}
.prose h5 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: none;
  color: var(--navy);
  margin: 22px 0 8px;
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.3em; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 9px; }
/* distinguish nested bullets from the level above */
.prose ul ul { list-style: circle; margin: 9px 0 0; }
.prose ul ul ul { list-style: square; }
.prose ol ol { list-style: lower-alpha; margin: 9px 0 0; }

/* "back to …" link under an article */
.back-link {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}
.back-link:hover { color: var(--navy); }
.prose a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--navy); }
.prose strong { color: var(--navy); font-weight: 700; }
.prose img { margin: 30px 0; }
.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--coral);
  font-family: var(--font-quote);
  font-size: 1.1875rem;
  color: var(--navy);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
/* the coral rule keeps its own look inside prose blocks */
.prose hr.rule { border: 0; margin: 0 0 26px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.table-wrap table { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-tint); color: var(--navy); font-weight: 700; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 30px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--white); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card time {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  display: block;
  margin-bottom: 10px;
}
.post-card h3 {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.32;
  margin-bottom: 12px;
}
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--coral); }
.post-card p { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 18px; }
.post-card__more {
  margin-top: auto;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}

/* Article header/meta */
.article-meta {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 16px;
}
.article-hero-img { margin: 0 0 40px; }
.article-hero-img img { width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--coral);
  outline-offset: -1px;
  border-color: var(--coral);
}
.field textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; line-height: 1.5; }
.checkbox input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--coral); }
.form-note { font-size: 0.8125rem; color: var(--grey); }
.form-status { font-size: 0.9375rem; margin: 0; min-height: 1.4em; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-err { color: var(--pink); }

/* Contact detail blocks */
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 22px; }
.contact-list .label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 5px;
}
.contact-list a, .contact-list span.val { font-size: 1.0625rem; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding: 60px 0 30px; font-family: var(--font-quote); font-size: 0.875rem; }
.footer a { color: rgba(255, 255, 255, 0.82); }
.footer a:hover { color: var(--coral); }
.footer__top { display: grid; grid-template-columns: 1.1fr 0.9fr 1.4fr; gap: 46px; }
.footer__logo { width: 220px; margin-bottom: 22px; }
.footer__logo img { filter: brightness(0) invert(1); }
.footer h4 { color: var(--white); margin-bottom: 16px; letter-spacing: 0.08em; }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 10px; }
.footer-contact .email { color: var(--coral); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; list-style: none; }
.footer-links a { text-transform: lowercase; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.6); }
.social { display: flex; gap: 14px; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.social a:hover { border-color: var(--coral); background: var(--coral); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Newsletter block in footer */
.newsletter .form-grid { gap: 14px; }
.newsletter .field label { color: rgba(255, 255, 255, 0.8); }
.newsletter .field input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}
.newsletter .field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter .checkbox { color: rgba(255, 255, 255, 0.75); font-size: 0.8125rem; }
.newsletter .btn { border-color: var(--coral); color: var(--coral); }
.newsletter .btn:hover { background: var(--coral); color: var(--white); }

/* Accreditation logos */
.accreditations { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; justify-content: center; }
.accreditations img { max-height: 76px; width: auto; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--navy); padding: 10px 16px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav > li > a { padding: 15px 7px; font-size: 0.8125rem; }
  .logo-strip { grid-template-columns: repeat(5, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; gap: 34px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-text { grid-template-columns: 1fr; gap: 34px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer .newsletter { grid-column: 1 / -1; }
  .logo-strip { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile nav */
@media (max-width: 860px) {
  .topbar .container--wide { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .navbar .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .navbar.is-open .nav { display: flex; }
  .nav > li { display: block; }
  .nav > li > a { padding: 13px 20px; justify-content: space-between; }
  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: rgba(0, 0, 0, 0.18);
    padding: 4px 0;
  }
  .nav > li.is-open > .subnav { display: block; }
  .nav > li:hover > .subnav { opacity: 1; visibility: visible; }
  .nav > li:not(.is-open):hover > .subnav { display: none; }
  .subnav a { padding-left: 34px; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .section { padding: 50px 0; }
  .section--lg { padding: 60px 0; }
  .hero { min-height: 460px; }
  .hero__inner { padding: 60px 20px; }
  .page-hero { min-height: 260px; }
  .page-hero__inner { padding: 50px 20px; }
  .grid--2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .section-head { margin-bottom: 34px; }
}

@media (max-width: 420px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Nora, AI assistant widget (injected by script.js, so no markup in the HTML)
   ========================================================================== */
.nora {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-body);
}

/* --- launcher --- */
.nora-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: 0;
  padding: 13px 20px;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 26px rgba(0, 51, 89, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nora-launcher:hover { background: var(--coral); border-color: var(--coral); }
.nora-launcher:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.nora-launcher svg { width: 18px; height: 18px; flex: none; }

/* --- panel --- */
.nora-panel {
  width: min(384px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 38, 63, 0.28);
}
.nora-panel[hidden] { display: none; }

.nora-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
  flex: none;
}
.nora-who { display: flex; align-items: center; gap: 10px; }
.nora-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.25);
}
.nora-name {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nora-sub { font-family: var(--font-quote); font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.nora-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  padding: 4px;
  line-height: 0;
}
.nora-close:hover { color: var(--white); }
.nora-close svg { width: 18px; height: 18px; }

/* --- messages --- */
.nora-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-tint);
}
.nora-msg {
  max-width: 86%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.nora-msg.is-bot { background: var(--white); border: 1px solid var(--border); color: var(--ink); align-self: flex-start; }
.nora-msg.is-user { background: var(--navy); color: var(--white); align-self: flex-end; }
.nora-msg.is-error {
  background: rgba(204, 51, 102, 0.08);
  border: 1px solid rgba(204, 51, 102, 0.35);
  color: var(--pink);
  align-self: flex-start;
}

/* typing dots */
.nora-typing { display: inline-flex; gap: 5px; align-items: center; }
.nora-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  animation: nora-bounce 1.15s infinite ease-in-out both;
}
.nora-typing span:nth-child(2) { animation-delay: 0.14s; }
.nora-typing span:nth-child(3) { animation-delay: 0.28s; }
@keyframes nora-bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.45; }
  35% { transform: translateY(-4px); opacity: 1; }
}

/* --- suggestions --- */
.nora-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 16px 0;
  flex: none;
}
.nora-suggest[hidden] { display: none; }
.nora-suggest button {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.8125rem;
  padding: 7px 11px;
  text-align: left;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nora-suggest button:hover { border-color: var(--coral); color: var(--coral); }

/* --- input --- */
.nora-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
  flex: none;
}
.nora-input input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}
.nora-input input:focus { outline: 2px solid var(--coral); outline-offset: -1px; border-color: var(--coral); }
.nora-send {
  flex: none;
  width: 44px;
  background: var(--coral);
  border: 0;
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.nora-send:hover:not(:disabled) { background: var(--coral-dark); }
.nora-send:disabled { opacity: 0.45; cursor: not-allowed; }
.nora-send svg { width: 16px; height: 16px; }

.nora-note {
  padding: 0 16px 12px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--grey);
  flex: none;
}
.nora-note a { color: var(--coral); text-decoration: underline; }

@media (max-width: 520px) {
  .nora { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .nora-panel { width: 100%; height: min(70vh, calc(100vh - 120px)); }
  .nora-launcher { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nora-typing span { animation: none; opacity: 0.6; }
}

/* Statutory disclosure + legal links in the footer */
.footer__legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.footer__legal p { margin: 0 0 8px; }
.footer__legal p:last-child { margin-bottom: 0; }
/* the bottom row already has a top border when the legal block isn't shown */
.footer__legal + .footer__bottom { margin-top: 22px; padding-top: 0; border-top: 0; }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
}
.footer-legal-links a { text-transform: lowercase; }

/* Long legal documents: tighter rhythm, and numbered clauses that scan.
   Used by /terms-of-business/, which is ~7,000 words of numbered clauses. */
.prose--legal { font-size: 1rem; }
.prose--legal h2 {
  font-size: 1.3125rem;
  text-transform: none;
  margin: 40px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.prose--legal h3 { font-size: 1.0625rem; margin: 26px 0 10px; }
.prose--legal p { margin-bottom: 0.9em; }
.prose--legal > .lead { font-size: 1.0625rem; color: var(--ink); }
.prose--legal ul { margin-bottom: 1em; }
.prose--legal li { margin-bottom: 5px; }
/* the definitions block reads better with the term hanging */
.prose--legal p > strong:first-child { color: var(--navy); }
/* the intro is already separated by an <hr>; don't double the rule */
.prose--legal hr + h2 { border-top: 0; padding-top: 0; margin-top: 26px; }

/* Data-request form on the privacy policy page. Sits inside .prose, which styles
   for reading rather than for input, so reset what would otherwise inherit. */
.data-request-form {
  margin: 32px 0 8px;
  padding: 28px 26px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}
.data-request-form select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}
.data-request-form select:focus {
  outline: 2px solid var(--coral);
  outline-offset: -1px;
  border-color: var(--coral);
}
.prose .data-request-form p { margin-bottom: 0; }
.prose .data-request-form label { margin-bottom: 0; }

/* ---------- Consent banner (assets/js/analytics.js) ----------
   Only rendered when a consent-gated tool has an ID in site.json. Sits above
   Nora's launcher so neither hides the other. */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 440px;
  background: var(--white);
  color: var(--ink);
  border-top: 4px solid var(--coral);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.consent__inner { padding: 18px 20px; }
/* display:grid and .btn's inline-flex would otherwise beat the hidden attribute. */
.consent [hidden] { display: none !important; }
.consent__text { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.5; }
.consent__text a { color: var(--navy); text-decoration: underline; }
.consent__choices { display: grid; gap: 10px; margin: 0 0 14px; }
.consent__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; }
.consent__opt input { margin-top: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn--small { font-size: 0.8125rem; padding: 10px 16px; border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn--small:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn--small.btn--ghost { background: transparent; color: var(--navy); }
.btn--small.btn--ghost:hover { background: var(--navy); color: var(--white); }
.consent__link { background: none; border: 0; padding: 6px 4px; color: var(--navy); text-decoration: underline; font: inherit; font-size: 0.875rem; cursor: pointer; }
@media (max-width: 560px) {
  /* Clears Nora's full-width launcher, which sits at the bottom on phones. */
  .consent { left: 16px; right: 16px; bottom: 84px; max-width: none; }
  .consent .btn { width: auto; }
}

/* ---------- Nav call to action ("Need help?") ---------- */
.nav > li.nav-cta > a {
  background: var(--coral);
  color: var(--navy);
  margin: 8px 0 8px 6px;
  padding: 8px 14px;
}
.nav > li.nav-cta > a:hover,
.nav > li.nav-cta.is-current > a { background: var(--white); color: var(--navy); }
/* The last dropdown opens leftwards so it never runs off the screen. */
.nav > li:last-child > .subnav { left: auto; right: 0; }
@media (max-width: 860px) {
  .nav > li.nav-cta > a { margin: 8px 20px; justify-content: space-between; }
}

/* ---------- End-of-article newsletter signup ---------- */
.article-signup {
  margin: 40px 0 28px;
  padding: 26px 28px;
  background: var(--bg-tint, #f4f6f8);
  border-top: 4px solid var(--coral);
}
.article-signup h2 { margin: 0 0 8px; font-size: 1.375rem; }
.article-signup > p { margin: 0 0 16px; }
.article-signup__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-bottom: 12px; }
.article-signup .field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.article-signup input[type="text"], .article-signup input[type="email"] {
  width: 100%; padding: 11px 12px; border: 1px solid #cfd6dd; font: inherit; background: #fff;
}
.article-signup .checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 0.9375rem; }
.article-signup .form-status { margin: 12px 0 0; }
@media (max-width: 560px) {
  .article-signup { padding: 22px 18px; }
  .article-signup__row { grid-template-columns: 1fr; }
}

/* ---------- Partners page (src/partners/index.njk) ---------- */
.partner-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.partner-jump a {
  font-size: 0.875rem; font-weight: 600; color: var(--navy);
  border: 1px solid var(--border); padding: 7px 14px; background: var(--white);
}
.partner-jump a:hover { border-color: var(--navy); }
.partner-group__title { font-size: 1.5rem; margin-bottom: 26px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.partner-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); padding: 26px 24px;
  scroll-margin-top: 80px;
}
.partner-card:target { outline: 3px solid var(--coral); outline-offset: 2px; }
/* One box for every logo, whatever its proportions, so names line up. */
.partner-card__logo { height: 56px; display: flex; align-items: center; margin-bottom: 18px; }
.partner-card__logo img { max-height: 56px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.partner-card__wordmark { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.partner-card__role {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--coral-accessible); margin: 0 0 4px;
}
.partner-card h3 { font-size: 1.1875rem; margin: 0 0 10px; }
.partner-card__summary { font-size: 0.9375rem; line-height: 1.6; margin: 0 0 14px; }
.partner-card__label { font-size: 0.8125rem; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.partner-card__solves li { font-size: 0.875rem; margin-bottom: 8px; }
.partner-card .partner-services { margin-top: 6px; }
/* Pushed to the bottom so the buttons line up across a row. */
.partner-card__actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.partner-card__contact { font-size: 0.875rem; margin: 0 0 14px; }
.partner-card__contact a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.partner-card__contact a:hover { color: var(--coral-accessible); }
.partner-card__site { font-size: 0.875rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.partner-card__site:hover { color: var(--coral-accessible); }
.partner-card__actions .btn { width: auto; }
.partner-specialists { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); max-width: 900px; }
.partner-specialists__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin: 0 0 10px; }
.partner-specialists ul { list-style: none; margin: 0; padding: 0; }
.partner-specialists li { font-size: 0.875rem; line-height: 1.6; margin: 0 0 6px; color: var(--grey); }
.partner-specialists a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.partner-software { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; }
.partner-software img { max-height: 56px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1000px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .partner-grid { grid-template-columns: 1fr; } }
