/* ==========================================================================
   Risk Measurement Toolkit — styles
   Tokens come from the Figma file (colours, type scale). Desktop frames are
   1440px wide; tablet and mobile layouts are derived from them.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Maax Mono";
  src: url("../assets/fonts/MaaxMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Union";
  src: url("../assets/fonts/Union-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Union";
  src: url("../assets/fonts/Union-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Union";
  src: url("../assets/fonts/Union-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Union";
  src: url("../assets/fonts/Union-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour (Figma variables) */
  --cloud-light: #fafaf7;
  --olive-primary: #4a6e45;
  --green-tint-1: #e0e7de;
  --green-tint-2: #f2f5f0;
  --green-primary: #a1ba9e;
  --off-black: #1d1d1d;
  --black: #000000;
  --white: #ffffff;
  /* Colours used in the design without a named variable */
  --grey-tagline: #666666;   /* 5.5:1 on Cloud Light, passes WCAG AA (Figma #808080 was 3.8:1) */
  /* Hover state for tinted items (not in the design; slightly darker tint) */
  --green-tint-hover: #d3ddd0;
  /* Teal, turquoise and cloud tints (Figma variables, used for the treatment group and stat cards) */
  --teal-tint-1: #bfdadc;
  --teal-tint-2: #e7f1f2;
  --turquoise-deep: #1a4f52;
  --cloud-medium: #f3f3ee;
  --cloud-primary: #ededE7;
  --stone: #716a64;            /* text on Cloud Primary; Figma #908881 was 3.0:1, darkened to 4.5:1 */
  --ochre-tint-4: #faf3dd;
  --ochre-primary: #a55d00;    /* text on Ochre Tint 4; replaces Figma #CD9600 (2.4:1) */
  --coral-primary: #c8321d;    /* text on the coral tint; Figma #E8705F was 2.6:1, darkened to 4.5:1 */
  --green-text: #5a7a57;       /* "Control" label in the data table; Figma #A1BA9E was 2.0:1, darkened to 4.5:1 */
  --grey-dash: #c7c8ca;        /* "not applicable" dash in the data table (decorative) */
  --cloud-tab: #e4e4de;        /* inactive tab, case study */
  --teal-line: #5fa4a9;        /* top rule on the treatment card (decoration only, so the Figma colour is kept) */
  --teal-primary: #447a7e;     /* caption on the treatment card; Figma #5FA4A9 was 2.7:1, darkened to 4.5:1 */

  /* Type families */
  --font-mono: "Maax Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "Union", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (REM16px, from the Figma typography sheet) */
  --fs-h1: 4.375rem;   /* 70px */
  --fs-h2: 2.5rem;     /* 40px */
  --fs-h3: 2.125rem;   /* 34px */
  --fs-h4: 1.75rem;    /* 28px */
  --fs-h5: 1.25rem;    /* 20px */
  --fs-p1: 1.125rem;   /* 18px */
  --fs-p2: 1rem;       /* 16px */
  --fs-p3: 0.875rem;   /* 14px */
  --fs-p4: 0.75rem;    /* 12px */

  /* Layout */
  --nav-h: 72px;       /* fallback; main.js sets the real height */
  --page-max: 90rem;   /* 1440px: content is centred on wider screens, backgrounds stay full width */
  --gutter-nav: clamp(1.5rem, 5.5556vw, 5rem);        /* 80px at 1440 */
  --gutter-hero: var(--gutter-nav);  /* 80px at 1440, same as the nav */
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--nav-h);   /* anchor targets clear the pinned nav */
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cloud-light);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-p2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--olive-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--olive-primary);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Nav bar (stays pinned to the top of the screen; the sub-nav pins just below it)
   Height = content + 16px above and below. main.js copies the real height into --nav-h.
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;               /* keeps its dropdowns above the sub-nav and page content */
  padding-block: 16px;
  background: var(--cloud-light);
}

.site-nav__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter-nav);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.brand__title {
  font-family: var(--font-mono);
  font-size: 1.25rem;                /* 20px */
  line-height: 1.25;
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: var(--fs-p2);
  line-height: 1.5;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.has-dropdown > .nav-link {
  padding-right: 0;
}

.nav-caret {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 6px;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.nav-caret img {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.nav-item.is-open > .nav-caret img {
  transform: rotate(180deg);
}

.nav-item:hover,
.nav-item.is-open {
  background: var(--green-tint-1);
}

/* Desktop: the nav items run the full height of the bar, so the hover / open
   background is full-bleed top to bottom (the 16px bar padding moves onto the brand). */
@media (min-width: 1024px) {
  .site-nav {
    padding-block: 0;
  }
  .brand {
    padding-block: 16px;
  }
  .nav-panel {
    display: flex;
    align-self: stretch;
  }
  .nav-list {
    align-items: stretch;
  }
  .nav-link {
    padding-block: 24px;
  }
  .nav-caret {
    padding-block: 24px;
  }
  .nav-item > .dropdown {
    top: 100%;
  }
  .nav-item > .dropdown::before {
    display: none;
  }
}

/* Dropdowns */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--green-tint-1);
}
/* invisible bridge so the menu doesn't close while the pointer crosses the gap */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.nav-item.is-open > .dropdown {
  display: block;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: var(--fs-p2);
  line-height: 1.5;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.dropdown a:hover {
  background: var(--green-tint-hover);
}
.dropdown a:focus-visible {
  outline-offset: -2px;
}
.dropdown .num {
  flex: none;
  width: 24px;
  color: var(--olive-primary);
}
.dropdown .is-sub a {
  padding-left: 64px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: #18181b;
  color: var(--white);
}
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: var(--page-max);
  min-height: 500px;
  margin-inline: auto;
  padding: 48px var(--gutter-hero);
}

.hero__bg,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg {
  object-fit: cover;
}
.hero__overlay {
  background-image:
    linear-gradient(90deg, rgba(24, 24, 27, 0.6) 44.375%, rgba(24, 24, 27, 0) 77.292%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero__radar {
  position: absolute;
  top: 22.05%;
  right: 4.0625%;   /* of the 1440 content area */
  width: clamp(18rem, 31.9vw, 28.71875rem);
  height: auto;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 698px);
}

.hero__title {
  margin: 0;
  padding-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1.75rem, 0.5rem + 5.5vw, var(--fs-h2));
  line-height: 1.25;
}

.hero__text {
  margin: 0;
  font-size: var(--fs-p1);
  line-height: 1.5;
  opacity: 0.9;
}

.hero__text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__text a:hover {
  text-decoration-thickness: 2px;
}
.hero__text a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Hero call-to-action buttons (Figma 3608:869) */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  padding-top: 24px;
}
.hero__btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--white);
  border-radius: 4px;
  font-size: var(--fs-p3);
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hero__btn--solid {
  background: var(--white);
  color: var(--black);
}
.hero__btn--outline {
  background: transparent;
  color: var(--white);
}
.hero__btn--outline:hover {          /* the white-fill button has no hover effect */
  background: var(--white);
  color: var(--black);
}
.hero__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ==========================================================================
   Intro: text on the left, photo collage on the right (Figma MAIN-CONTENT)
   ========================================================================== */
.intro {
  background: var(--green-tint-2);
  padding: 64px clamp(1.5rem, 11.4583vw, 10.3125rem);   /* 165px at 1440 */
}
.intro__inner {
  max-width: 1110px;   /* 652 text + 24 gap + 434 collage */
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.intro__text {
  flex: 1 1 652px;
  max-width: 652px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--black);
}
.intro__text p {
  margin: 0;
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.intro__text .intro__lead {
  font-size: var(--fs-p1);
}

/* Collage: a 354 x 338 group inside a 434 x 359 frame; tiles placed in % so it scales */
.collage {
  flex: 1 0 300px;
  max-width: 434px;
  margin: 0;
}
.collage__stage {
  position: relative;
  aspect-ratio: 354 / 338;
  margin: 2.5346% 9.2166% 2.3041%;  /* 11 / 40 / 10 of the 434 x 359 frame (% of collage width) */
}
.collage__tile {
  position: absolute;
  display: block;
  width: 65.8192%;                  /* 233 / 354 */
  height: 47.929%;                  /* 162 / 338 */
  object-fit: cover;
}
.collage__tile:nth-child(1) { left: 0;        top: 0; }
.collage__tile:nth-child(2) { left: 14.4068%; top: 52.071%; }   /* 51, 176 */
.collage__tile:nth-child(3) { left: 34.1808%; top: 16.568%; }   /* 121, 56 */

/* Stack the photos under the text on narrower screens */
@media (max-width: 959.98px) {
  .intro__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .intro__text {
    flex: none;
    max-width: none;
  }
  .collage {
    flex: none;
    width: 100%;
    max-width: 380px;
    align-self: center;
  }
  .collage__stage {
    margin: 0;
  }
}
@media (max-width: 1023.98px) {
  .intro {
    padding: 48px var(--gutter-hero);
  }
}
@media (max-width: 599.98px) {
  .collage {
    max-width: none;
  }
}

/* ==========================================================================
   How to use this toolkit / Who is this for? (Figma MAIN-CONTENT 3403:7563)
   ========================================================================== */
.howto {
  background: var(--white);
  padding: 64px var(--gutter-hero);
}
.howto__inner {
  max-width: 894px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--black);
}
.howto__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.howto h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.25;
}
.howto p {
  margin: 0;
  font-size: var(--fs-p1);
  line-height: 1.5;
}
/* CTA button (Figma 3608:871) */
.howto__btn {
  align-self: flex-start;
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--black);
  border-radius: 4px;
  background: var(--black);
  color: var(--white);
  font-size: var(--fs-p3);
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.howto__btn:hover,
.howto__btn:focus-visible {
  background: var(--white);
  color: var(--black);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  position: relative;          /* anchors the stretched "Explore" link */
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 24px;
  background: var(--green-tint-1);
}
.card__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-h5);
  line-height: 1.1;
  color: var(--olive-primary);
}
.howto .card p {
  font-size: var(--fs-p2);
}
.card__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-p2);
  line-height: 1.1;
  color: var(--olive-primary);
  text-decoration: none;
}
.card__link::after {            /* whole card is clickable */
  content: "";
  position: absolute;
  inset: 0;
}
.card:hover .card__link { text-decoration: underline; text-underline-offset: 4px; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--turquoise-deep); outline-offset: 3px; }

@media (max-width: 1023.98px) {
  .howto {
    padding-block: 48px;
  }
}
@media (max-width: 899.98px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
@media (max-width: 599.98px) {
  .howto h2 {
    font-size: clamp(1.375rem, 5.4vw, var(--fs-h4));
  }
}

/* ==========================================================================
   What to measure? (Figma FAQ BLOCK 3500:482)
   ========================================================================== */
.measure {
  background: var(--cloud-light);
  /* 89px bottom = the 64px padding plus the empty accordion placeholder that sits in the Figma frame */
  padding: 64px var(--gutter-hero) 89px;
}
.measure__inner {
  max-width: 894px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--black);
}
.measure__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.measure h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.25;
}
.measure__head p {
  margin: 0;
  font-size: var(--fs-p1);
  line-height: 1.5;
}

.measure-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.measure-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.measure-step__num {
  flex: none;
  display: flex;
  align-items: center;      /* the number is centred in a 22px box, as in Figma */
  width: 20px;
  height: 22px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--green-primary);
}
.measure-step__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.measure-step__q {
  margin: 0;
  font-size: var(--fs-p1);
  font-weight: 700;
  line-height: 1.5;
}
.measure-step__body p {
  margin: 0;
  font-size: var(--fs-p2);
  line-height: 1.5;
}

@media (max-width: 1023.98px) {
  .measure {
    padding-block: 48px;
  }
}
@media (max-width: 599.98px) {
  .measure h2 {
    font-size: clamp(1.375rem, 5.4vw, var(--fs-h4));
  }
  .measure-step {
    gap: 14px;
  }
}

/* ==========================================================================
   Stay in the loop: newsletter sign-up with HubSpot form (Figma MAIN-CONTENT 3427:8236)
   ========================================================================== */
.signup {
  position: relative;
  overflow: hidden;
  background: var(--olive-primary);
}
.signup__frame {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 64px clamp(1.5rem, 11.4583vw, 10.3125rem);   /* 165px at 1440 */
}
.signup__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 789px;
  color: var(--white);
}
.signup__text {
  margin: 0 0 16px;
  font-size: var(--fs-p1);
  line-height: 1.5;
}
.signup__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signup__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.signup__field {
  flex: 1 1 0;
  min-width: 0;
}
.signup__input {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px dashed var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: var(--fs-p2);
  line-height: 1.5;
}
.signup__input::placeholder {
  color: var(--white);
  opacity: 1;
}
.signup__input:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-bottom-style: solid;
}
.signup__input[aria-invalid="true"] {
  border-bottom-style: solid;
}
.signup__error,
.signup__status {
  margin: 0;
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.signup__error {
  padding: 4px 16px 0;
}
.signup__btn {
  flex-shrink: 0;
  margin-top: 1px;                 /* centres the 39px button on the 41px fields, as in Figma */
  padding: 8px 16px;
  border: 1px solid var(--white);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: var(--fs-p3);
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.signup__btn:hover {
  background: var(--white);
  color: var(--black);
}
.signup__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.signup__btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
}
.signup__btn[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--white);
}
.signup__note {
  margin: 0;
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.signup__note a {
  color: inherit;
  text-decoration: underline;
}
.signup__note a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup__done {
  margin: 0;
  font-size: var(--fs-p1);
  line-height: 1.5;
}
.signup__done:focus {
  outline: none;
}

/* Radar graphic: 459.5px square at 954 / 50.25 of the 1440 frame, cropped by the section */
.signup__radar {
  position: absolute;
  left: 66.25%;     /* 954 / 1440 */
  top: 50.25px;
  width: 459.5px;
  height: auto;
  pointer-events: none;
}

@media (max-width: 1279.98px) {
  /* Not enough room beside the text, so the radar becomes a faint backdrop */
  .signup__radar {
    left: auto;
    right: -120px;
    top: auto;
    bottom: -150px;
    width: 340px;
    opacity: 0.6;
  }
}
@media (max-width: 1023.98px) {
  .signup__frame {
    padding: 48px var(--gutter-hero);
  }
}
@media (max-width: 599.98px) {
  .signup__row {
    flex-direction: column;
    align-items: stretch;
  }
  .signup__btn {
    align-self: flex-start;
    margin-top: 0;
  }
  .signup__radar {
    right: -110px;
    bottom: -130px;
    width: 280px;
    opacity: 0.45;
  }
}

/* ==========================================================================
   Footer (Figma REM16Px/Website/Footer 3544:8818): the same on every page
   ========================================================================== */
.site-footer {
  background: var(--off-black);
  color: var(--white);
}
.site-footer__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 64px var(--gutter-nav);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.site-footer__wordmark {
  display: block;
  width: 156px;
  height: 16px;
}
.site-footer__partner-logo {
  display: block;
  width: 134px;
  height: 40px;
  max-width: 100%;
}
.site-footer__partner-logo--giz {
  width: 96px;
  height: auto;
}
/* Swap this for the GIZ logo (an <img>) when it arrives */
.site-footer .site-footer__client-logo {
  font-size: var(--fs-p1);
}
.site-footer__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer p {
  margin: 0;
  font-size: var(--fs-p4);
  line-height: 1.5;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.site-footer__links li {
  display: flex;
}
.site-footer__col--legal {
  gap: 20px;
}
.site-footer__links a,
.site-footer__links button {
  display: inline-block;
  font-size: var(--fs-p4);
  line-height: 1.5;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white);
}
.site-footer__links button {
  appearance: none;
  margin: 0;
  padding: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.site-footer__links a:focus-visible,
.site-footer__links button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

@media (max-width: 1023.98px) {
  .site-footer__inner {
    padding-block: 48px;
  }
}
@media (max-width: 899.98px) {
  .site-footer__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ==========================================================================
   List experiment page: What is a list experiment? (Figma MAIN-CONTENT 3532:7224)
   ========================================================================== */
.explain {
  position: relative;
  overflow: hidden;
  background: var(--olive-primary);
  color: var(--white);
}
.explain__frame {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 64px clamp(1.5rem, 11.4583vw, 10.3125rem);   /* 165px at 1440 */
}
.explain__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 652px;
}
.explain h1 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.25;
}
.explain p {
  margin: 0;
  font-size: var(--fs-p2);
  line-height: 1.5;
}
.explain strong {
  font-weight: 700;
}
/* Graphic: 514.9 x 488.1 at 933 / 38.07 of the 1440 frame; the section crops it at the right and bottom */
.explain__graphic {
  position: absolute;
  left: 64.7917%;    /* 933 / 1440 */
  top: 38.07px;
  width: 514.855px;
  height: auto;
  pointer-events: none;
}

@media (max-width: 1279.98px) {
  /* Not enough room beside the text, so the graphic becomes a faint backdrop */
  .explain__graphic {
    left: auto;
    right: -140px;
    top: auto;
    bottom: -170px;
    width: 400px;
    opacity: 0.35;
  }
}
@media (max-width: 1023.98px) {
  .explain__frame {
    padding: 48px var(--gutter-hero);
  }
}
@media (max-width: 599.98px) {
  .explain h1 {
    font-size: clamp(1.5rem, 7vw, var(--fs-h3));
  }
  .explain__graphic {
    right: -150px;
    bottom: -190px;
    width: 340px;
    opacity: 0.3;
  }
}

/* ==========================================================================
   List experiment page: How does a list experiment work? (Figma CONTENT-WRAPPER 3532:7019)
   ========================================================================== */
.method {
  background: var(--white);
  padding-bottom: 64px;                      /* space below the pagination link */
}
.method__frame {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 64px var(--gutter-hero) 64px;     /* 64px between the last block and the pagination link */
}
.method__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 894px;                          /* 273px side padding at 1440 */
  margin-inline: auto;
}
.method h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.2;
}
.method__block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.method p {
  margin: 0;
  font-size: var(--fs-p1);
  line-height: 1.5;
}

/* Group and list cards (Figma 3532:7040) */
.panels {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.panel {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--cloud-light);
  border-top: 2px solid var(--green-primary);
}
.panel--treatment {
  border-top-color: var(--teal-line);
}
.method h3.panel__title {
  margin: 0;
  color: var(--olive-primary);
  font-family: var(--font-body);
  font-size: var(--fs-p2);
  font-weight: 700;
  line-height: 1.5;
}
.method .panel--treatment .panel__title {
  color: var(--turquoise-deep);
}
.method .panel p {
  font-size: var(--fs-p3);
}
.pill {
  padding: 4px 12px;
  background: var(--green-tint-1);
  font-family: var(--font-mono);
  font-size: var(--fs-p4);
  line-height: 1.5;
  white-space: nowrap;
}
.statements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.statements li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 12px;
}
.statements__num {
  flex: none;
  min-width: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-p2);
  opacity: 0.5;
}
.statements__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.statements__text {
  min-width: 0;
}
.statements li.statements__sens {
  align-items: center;
  padding-block: 8px;
  background: rgba(241, 227, 221, 0.6);
}
.statements__sens .statements__num {
  color: var(--coral-primary);
  opacity: 1;
}
.statements__type {
  color: var(--coral-primary);
  font-size: 0.625rem;               /* 10px */
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}
.answers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.answers li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-tint-1);
  color: var(--olive-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  line-height: 1.1;
}
.panel--treatment .answers li {
  background: var(--teal-tint-2);
  color: var(--turquoise-deep);
}

/* Worked-example numbers */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.stat {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 24px;
  background: var(--cloud-medium);
}
.stat--result {
  flex: 0 0 350px;
  background: var(--green-tint-1);
}
.stat__value {
  display: flex;
  flex-direction: column;
  color: var(--olive-primary);
  font-family: var(--font-mono);
}
.stat__num {
  font-size: var(--fs-h4);
  line-height: 1.1;
}
.stat__unit {
  font-size: var(--fs-p1);
  line-height: 1.2;
}
.method .stat__label {
  font-size: var(--fs-p2);
  font-style: italic;
}

@media (max-width: 1023.98px) {
  .method__frame {
    padding-block: 48px 64px;
  }
}
@media (max-width: 799.98px) {
  .method__content {
    gap: 24px;
  }
  .panels {
    flex-direction: column;
    gap: 16px;
  }
  .stat {
    flex: 1 1 calc(50% - 4px);
  }
  .stat--result {
    flex: 1 1 100%;
  }
}
@media (max-width: 599.98px) {
  .method h2 {
    font-size: clamp(1.375rem, 6vw, var(--fs-h4));
  }
  .stat {
    padding: 16px;
  }
}

/* ==========================================================================
   The Toolkit: section layout, steps, example cards, pagination (Figma CONTENT-WRAPPER 3500:1203)
   ========================================================================== */
.tk {
  background: var(--white);
  padding-bottom: 64px;
}
.tk__frame {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 64px var(--gutter-hero) 0;
}
.tk__header,
.tk__content {
  max-width: 894px;                 /* 273px side padding at 1440 */
  margin-inline: auto;
}
.tk__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tk__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1.5rem, 6.2vw, var(--fs-h2));
  line-height: 1.25;
  text-align: center;
}
.tk__num {
  margin-right: 16px;
  color: #7c9779;   /* large numeral: 3.2:1 on white (Figma's 50%-faded #a1ba9e was 1.4:1; AA needs 3:1 for large text) */
}
.tk__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 64px;
}
.tk-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tk-block--lead {
  gap: 24px;
}
.tk-block--tight {
  gap: 8px;
}
.tk h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1.375rem, 5.5vw, var(--fs-h4));
  line-height: 1.2;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-h5);
  line-height: 1.1;
}
.tk h3.step {
  font-size: var(--fs-h5);
  line-height: 1.1;
}
.step__num {
  color: #5b7c56;   /* Figma #a1ba9e was 2.1:1 on white; this is 4.7:1 */
}
.step__title {
  color: var(--olive-primary);
}
.tk p,
.tk ul {
  margin: 0;
  color: var(--off-black);
  font-size: var(--fs-p2);
  line-height: 1.5;
}
.tk ul {
  padding-left: 24px;
}
/* Numbered lists in the running text (the example cards use .stmts instead) */
.tk-ol {
  margin: 0;
  padding-left: 24px;
  color: var(--off-black);
  font-size: var(--fs-p2);
  line-height: 1.5;
}
.tk-ol ol {
  margin: 0;
  padding-left: 24px;
  list-style: lower-alpha;
}
.tk .tk-block--black .tk-ol {
  color: var(--black);
}
.tk-list--spaced li + li {
  margin-top: 16px;
}
.tk strong {
  font-weight: 700;
}
.tk .pill {
  color: var(--black);
  font-size: var(--fs-p4);
}
.tk .tk-block--black p {
  color: var(--black);
}
.tk .tk__large {
  color: var(--black);
  font-size: var(--fs-p1);
}
.tk__content hr {
  width: 100%;
  height: 0;
  margin: 16px 0;                   /* 32px flex gap + 16px = 48px of space above and below each divider */
  border: 0;
  border-top: 1px solid var(--green-tint-1);
}

/* Example framework quote */
.example {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tk .example__label {
  font-style: italic;
  color: var(--grey-tagline);   /* was black at 50% (3.3:1); #666 is 5.7:1 */
}
.example__quote {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--green-primary);
}
.tk .example__quote p {
  color: var(--black);
  font-size: var(--fs-p1);
}

/* Sections shown one at a time (script adds "js" to <html>; without script every section stays visible) */
html.js [data-view]:not(.is-active) {
  display: none;
}
.tk:focus,
.tk__title:focus {
  outline: none;
}

/* Statement types: key cards above the control and treatment lists (Figma 3500:1212).
   Hover, focus or select a key card and the matching statements in both lists are highlighted. */
.sdiagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}
.skey {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.key {
  --key-colour: var(--stone);
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: var(--cloud-primary);
  color: var(--black);
  font: inherit;
  text-align: left;
  cursor: default;
}
.key--disagreeable {
  --key-colour: var(--ochre-primary);
  background: var(--ochre-tint-4);
}
.key--sensitive {
  --key-colour: var(--coral-primary);
  background: rgba(241, 227, 221, 0.6);
}
.key__title {
  color: var(--key-colour);
  font-size: var(--fs-p2);
  font-weight: 700;
  line-height: 1.5;
}
.key__text {
  font-size: var(--fs-p4);
  line-height: 1.5;
}
.key__text em {
  font-style: italic;
}

.lcards {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.lcard {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-top: 2px solid var(--green-primary);
  background: var(--cloud-light);
}
.lcard--treatment {
  border-top-color: var(--teal-line);
}
.lcard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}
.tk .lcard__title {
  margin: 0;
  color: var(--olive-primary);
  font-family: var(--font-body);
  font-size: var(--fs-p2);
  font-weight: 700;
  line-height: 1.5;
}
.tk .lcard--treatment .lcard__title {
  color: var(--turquoise-deep);
}
.tk .lcard__note {
  color: var(--olive-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-p4);
}
.tk .lcard--treatment .lcard__note {
  color: var(--teal-primary);
  text-align: right;
}
.stmts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stmt {
  --key-colour: var(--stone);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--cloud-primary);
  color: var(--black);
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.stmt__num {
  flex: none;
  min-width: 1ch;
  color: var(--key-colour);
  font-family: var(--font-mono);
  font-size: var(--fs-p2);
}
.stmt__text {
  flex: 1 1 0;
  min-width: 0;
}
.stmt--disagreeable {
  --key-colour: var(--ochre-primary);
  background: var(--ochre-tint-4);
}
.stmt--sensitive {
  --key-colour: var(--coral-primary);
  background: rgba(241, 227, 221, 0.6);
}

/* Interaction (needs script: it sets data-active on .sdiagram). Without script the diagram simply shows everything. */
html.js .key {
  cursor: pointer;
}
.key,
.stmt {
  transition: opacity 0.15s ease;
}
.key:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.sdiagram[data-active="neutral"] :is(.key:not(.key--neutral), .stmt:not(.stmt--neutral)),
.sdiagram[data-active="disagreeable"] :is(.key:not(.key--disagreeable), .stmt:not(.stmt--disagreeable)),
.sdiagram[data-active="sensitive"] :is(.key:not(.key--sensitive), .stmt:not(.stmt--sensitive)) {
  opacity: 0.35;
}
@media (prefers-reduced-motion: reduce) {
  .key,
  .stmt {
    transition: none;
  }
}

/* Data collection and analysis: sub-heads, data table, note cards, diagram */
.tk h3.tk-subhead,
.tk h4.tk-subhead {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-p2);
  font-weight: 700;
  line-height: 1.5;
}
.tk .tk-block--black ul {
  color: var(--black);
}
.tk .tk-black {
  color: var(--black);
}
.data-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--cloud-medium);
}
.data-card__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-h5);
  line-height: 1.1;
}
.table-scroll {
  position: relative;           /* keeps the visually-hidden text inside the scroll box */
  min-width: 0;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  min-width: 560px;                 /* below this the table scrolls sideways inside the card */
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--fs-p3);
  line-height: 1.4;
}
.data-table th {
  height: 58px;
  padding: 8px 4px;
  background: var(--green-tint-1);
  border-bottom: 2px solid var(--green-primary);
  color: var(--black);
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
}
.data-table th.num,
.data-table td.cell--control,
.data-table td.cell--treatment,
.data-table td.cell--direct {
  text-align: center;
}
.data-table .th-note {
  font-weight: 400;
}
.data-table td {
  height: 32px;
  padding: 0 4px;
  color: var(--black);
  vertical-align: middle;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 8px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 8px;
}
.data-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.4);
}
.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.9);
}
.data-table .grp {
  font-weight: 700;
}
.data-table .grp--control {
  color: var(--green-text);
}
.data-table .grp--treatment {
  color: var(--teal-primary);
}
.data-table .cell--control {
  color: var(--olive-primary);
}
.data-table .cell--treatment {
  color: var(--turquoise-deep);
  font-family: var(--font-mono);
}
.data-table .cell--direct {
  font-family: var(--font-mono);
}
.data-table .na {
  color: var(--grey-dash);
}
.note-cards,
.tk-block > .note-card {
  background: var(--green-tint-2);
}
.note-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--green-tint-2);
}
.tk .note-card p {
  color: var(--black);
}
.note-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.diagram {
  display: block;
  width: 100%;
  height: auto;
}
.diagram--narrow {
  display: none;
}
.diagram text {
  fill: var(--turquoise-deep);
  font-family: var(--font-mono);
  text-anchor: middle;
  dominant-baseline: central;
}
.diagram .dg-title {
  font-size: 14px;
}
.diagram .dg-label {
  font-size: 13px;
}
.diagram .dg-small,
.diagram .dg-sub {
  font-family: var(--font-body);
  font-size: 12px;
}
.diagram .dg-sub {
  fill-opacity: 0.85;
}
.diagram .dg-caption {
  fill: var(--black);
  font-size: 13px;
}
.diagram .dg-axis {
  stroke: #c3c3c0;
  stroke-width: 2;
}
.diagram .dg-box {
  fill: rgba(191, 218, 220, 0.5);
  stroke: rgba(95, 164, 169, 0.75);
}
.diagram .dg-dash {
  stroke: var(--black);
  stroke-dasharray: 4 4;
}
.dg-dot--evidence {
  fill: var(--green-tint-1);
  stroke: var(--olive-primary);
}
.dg-dot--none {
  fill: #f8efdc;
  stroke: #7e521e;
}
.diagram .dg-start {
  text-anchor: start;
}
.diagram .dg-axislabel {
  fill: #4d4d4a;
  font-family: var(--font-body);
  font-size: 13px;
}
.diagram .dg-title {
  font-family: var(--font-body);
  font-weight: 700;
}
.diagram .dg-tick {
  stroke: var(--turquoise-deep);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.diagram .dg-tickl {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
}
.diagram .dg-em {
  font-style: italic;
}
.diagram .dg-state {
  fill: var(--olive-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
}
.diagram .dg-caption {
  font-family: var(--font-body);
  font-weight: 700;
}
.diagram .dg-body {
  fill: var(--black);
  font-family: var(--font-body);
  font-size: 12px;
}
.diagram .dg-strong {
  fill: var(--olive-primary);
  font-weight: 700;
}
.diagram .dg-callout-box {
  fill: var(--green-tint-1);
  stroke: #b7c8b3;
}
.diagram .dg-arrow {
  stroke: var(--turquoise-deep);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.diagram .dg-arrow--head {
  stroke-dasharray: none;
}
.diagram .dg-letter {
  fill: var(--black);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}
.dg-legend,
.dg-callout {
  display: none;
}
.dg-note,
.dg-callout {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--green-tint-1);
  color: var(--black);
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.dg-note {
  font-size: var(--fs-p4);
}
.dg-callout strong {
  color: var(--olive-primary);
}
.dg-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 12px;
  font-size: var(--fs-p3);
  line-height: 1.4;
}
.dg-legend li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dg-legend em {
  color: var(--olive-primary);
}
.dg-legend__dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
}
@media (max-width: 699.98px) {
  .diagram--wide {
    display: none;
  }
  .diagram--narrow {
    display: block;
  }
  .dg-legend {
    display: flex;
  }
  .dg-callout {
    display: block;
  }
}
@media (max-width: 599.98px) {
  .data-card,
  .note-card {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   2026 Case Study: Survey Tool
   ========================================================================== */
.tk--cs {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.tk--cs .tk__frame,
.tk--cs .pager {
  width: 100%;
}
.tk__frame--part {
  padding-top: 0;
}
.cs-head {
  padding-bottom: 16px;           /* 48 gap + 16 = the 64px between header and content */
}
.cs-last {
  padding-bottom: 16px;           /* 48 gap + 16 = 64px above the pager */
}
.cs-part {
  max-width: 894px;
  margin-inline: auto;
}
.tk .btn-outline,
.btn-outline {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--black);
  border-radius: 4px;
  color: var(--black);
  font-size: var(--fs-p3);
  line-height: 1.5;
  text-decoration: none;
}
.tk .btn-outline:hover,
.tk .btn-outline:focus-visible {
  background: var(--black);
  color: var(--white);
}

/* Intro: text left, photo collage right (re-uses the home collage tile layout) */
.cs-intro {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cs-intro__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.tk .cs-intro__text p {
  color: var(--black);
  font-size: var(--fs-p1);
  line-height: 1.5;
}
.cs-intro .collage {
  flex: 1 1 0;
  min-width: 0;
  max-width: 435px;
}

/* Key figures band (full width) */
.cs-figures {
  background: var(--green-tint-1);
  padding: 48px var(--gutter-hero);
}
.tk .cs-figures__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1020px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.cs-fig {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline: 16px;
  text-align: center;
}
.tk .cs-fig p,
.cs-fig p {
  margin: 0;
  color: var(--black);
}
.tk .cs-fig__value {
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 2.35vw, var(--fs-h4));
  line-height: 1.2;
}
.tk .cs-fig__label {
  font-size: var(--fs-p1);
  line-height: 1.5;
}

/* Survey tool text block */
.cs-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tk .cs-text p {
  color: var(--black);
}
.tk h4.tk-subhead--lg {
  font-size: var(--fs-p1);
}
.cs-quote {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--green-primary);
}
.tk .cs-quote p {
  color: var(--black);
}
.cs-examples {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.cs-ex {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--cloud-light);
}
.tk .cs-text p.cs-ex__label {
  color: var(--stone);               /* Figma 60% stone was ~2.8:1; solid stone is 4.9:1 */
  font-size: var(--fs-p2);
  font-weight: 700;
  line-height: 1.5;
}
.tk h4.cs-h4,
.cs-h4 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: 1.1;
}
.tk .cs-ex__list {
  margin: 0;
  padding-left: 24px;
  color: var(--black);
}
.tk .cs-ex__note {
  color: var(--black);
  font-size: var(--fs-p3);
  opacity: 0.75;
}

/* Tabbed results */
.tk h3.cs-results-title {
  margin: 0;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 24px;
}
.cs-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
html:not(.js) .cs-tablist {
  display: none;
}
.cs-tab {
  appearance: none;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: var(--cloud-tab);
  color: rgba(0, 0, 0, 0.75);
  font-family: var(--font-body);
  font-size: var(--fs-p4);
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.cs-tab:hover {
  background: #dbdbd4;
  color: var(--black);
}
.cs-tab[aria-selected="true"] {
  background: var(--cloud-medium);
  color: var(--black);
}
.cs-tab:focus-visible,
.cs-panel:focus-visible {
  outline: 2px solid var(--olive-primary);
  outline-offset: 2px;
}
.cs-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--cloud-medium);
}
html.js .cs-panel:not(.is-active) {
  display: none;
}
html.js .cs-panel__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tk h4.cs-panel__label {
  margin: 0 0 -12px;
  font-size: var(--fs-h5);
}
.cs-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tk .cs-panel p {
  color: var(--black);
}
.tk .cs-panel__intro {
  font-size: var(--fs-p1);
}
.tk .cs-panel__sub {
  font-size: var(--fs-p3);
}
.cs-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  align-items: stretch;
}
.cs-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
  border-top: 2px solid var(--green-primary);
}
.cs-list--treatment {
  border-top-color: var(--teal-line);
}
.tk h5.cs-list__title {
  margin: 0;
  color: var(--olive-primary);
  font-family: var(--font-body);
  font-size: var(--fs-p2);
  font-weight: 700;
  line-height: 1.5;
}
.tk .cs-list--treatment .cs-list__title {
  color: var(--turquoise-deep);
}
.tk .cs-statements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-st {
  --st-colour: var(--stone);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--cloud-primary);
}
.cs-st--disagreeable {
  --st-colour: var(--ochre-primary);
  background: var(--ochre-tint-4);
}
.cs-st--sensitive {
  --st-colour: var(--coral-primary);
  background: rgba(241, 227, 221, 0.6);
}
.cs-st__num {
  flex: none;
  min-width: 10px;
  color: var(--st-colour);
  font-family: var(--font-mono);
  font-size: var(--fs-p2);
  line-height: 1.5;
}
.cs-st__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cs-st__type {
  color: var(--st-colour);
  font-size: 0.625rem;               /* 10px */
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}
.cs-st__text {
  color: var(--black);
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.tk .cs-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-answers li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-tint-1);
  color: var(--olive-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  line-height: 1.1;
}
.cs-list--treatment .cs-answers li {
  background: var(--teal-tint-2);
  color: var(--turquoise-deep);
}
.cs-qline {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--green-primary);
}
.tk .cs-qline p {
  font-size: var(--fs-p1);
  line-height: 1.5;
}
.tk .cs-note {
  color: rgba(0, 0, 0, 0.55);     /* Figma 50% was 3.9:1; 55% is 4.7:1 on this background */
}
.cs-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
}
.tk .cs-note--caption {
  text-align: center;
}
.tk .cs-callout {
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  font-size: var(--fs-p3);
  line-height: 1.5;
}
.cs-lists {
  margin-top: 0;
}
.tk .cs-panel .cs-note {
  color: rgba(0, 0, 0, 0.55);
}
.tk .cs-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
}
.tk .cs-result p {
  font-family: var(--font-mono);
}
.tk .cs-result__value {
  font-size: clamp(1.75rem, 5vw, var(--fs-h3));
  line-height: 1.25;
}
.tk .cs-result__label {
  font-size: var(--fs-p2);
  line-height: 1.5;
}
.tk .cs-result__value--text {
  font-size: var(--fs-h5);
  line-height: 1.5;
}
@media (min-width: 600px) {
  /* Keep labels on one line across cards when a value wraps to two lines */
  .tk .cs-results {
    row-gap: 0;
    grid-template-rows: auto auto;
  }
  .tk .cs-results .cs-result {
    grid-row: span 2;
    grid-template-rows: subgrid;
    display: grid;
    row-gap: 8px;
  }
}
.tk .cs-empty {
  padding-block: 48px;
  color: var(--black);
  font-size: var(--fs-p2);
}

@media (max-width: 799.98px) {
  .cs-intro {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .cs-intro .collage {
    flex: none;
    width: 100%;
    max-width: 380px;
    align-self: center;
  }
  .cs-intro .collage__stage {
    margin: 0;
  }
  .tk .cs-figures__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .tk .cs-fig__value {
    font-size: clamp(1.25rem, 5vw, var(--fs-h4));
  }
  .cs-examples,
  .cs-lists {
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 599.98px) {
  .cs-panel {
    padding: 20px 16px;
  }
  .tk .cs-results {
    grid-template-columns: minmax(0, 1fr);
  }
  .cs-ex,
  .cs-list,
  .cs-result {
    padding: 20px 16px;
  }
}
@media (max-width: 439.98px) {
  .tk .cs-figures__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Next steps cards */
.cs-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--green-tint-2);
}
.cs-card__icon {
  display: block;
  width: 32px;
  height: 32px;
}
.tk h3.cs-card__title {
  margin: 0;
  color: var(--olive-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: 1.1;
}
.tk .cs-card p {
  color: var(--black);
}
.tk .cs-card a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tk .cs-card a:hover {
  text-decoration-thickness: 2px;
}
@media (max-width: 599.98px) {
  .cs-card {
    padding: 20px 16px;
  }
}

/* Limitations (accordion) and Key Learnings */
.cs-limits {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.cs-intro-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tk .cs-intro-text p {
  color: var(--black);
}
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc {
  border-bottom: 1px solid var(--black);
}
.acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  cursor: pointer;
  list-style: none;
}
.acc__q::-webkit-details-marker {
  display: none;
}
.acc__q:focus-visible {
  outline: 2px solid var(--olive-primary);
  outline-offset: 2px;
}
.tk h3.acc__title {
  margin: 0;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: 1.1;
}
.acc__icon {
  flex: none;
  width: 19px;
  height: 19px;
  background: url("../assets/img/acc-open.svg") center / contain no-repeat;   /* plus: click to open */
}
.acc[open] .acc__icon {
  background-image: url("../assets/img/acc-close.svg");                          /* cross: click to close */
}
.acc__a {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0 32px;
}
.tk .acc__a p {
  color: var(--black);
  line-height: 1.5;
}
.tk .cs-lessons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-lesson {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--green-tint-2);
}
.tk .cs-lesson p {
  color: var(--black);
}
.tk .cs-lesson .cs-lesson__num {
  color: var(--olive-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  line-height: 1.2;
}
.tk h3.cs-lesson__title {
  margin: 0;
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-p2);
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 599.98px) {
  .cs-lesson {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact {
  background: var(--green-tint-2);
  padding-block: 64px;
}
.contact__frame {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter-hero);
}
.contact__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1.5rem, 6.2vw, var(--fs-h2));
  line-height: 1.25;
  text-align: center;
}
.contact__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 894px;
  margin-inline: auto;
  padding-block: 64px;
}
.contact__lead {
  margin: 0;
  color: var(--black);
  font-size: var(--fs-p1);
  line-height: 1.5;
  text-align: center;
}
.contact__body .howto__btn {   /* 404 page button */
  align-self: center;
}
.contact__form {
  width: 100%;
  max-width: 592px;
  min-height: 342px;   /* holds the space while the HubSpot form loads */
}

/* ---- Contact page HubSpot form: styled with HubSpot's documented CSS variables (it sits in an iframe) ---- */
:root {
  --hsf-global__font-family: "Union", "Helvetica Neue", Arial, sans-serif;
  --hsf-global__font-size: 1rem;
  --hsf-global__color: #000000;
  --hsf-global-error__color: #9b1c1c;

  --hsf-background__background-color: transparent;
  --hsf-background__padding: 0;
  --hsf-background__border-width: 0;
  --hsf-background__border-radius: 0;

  --hsf-row__horizontal-spacing: 16px;
  --hsf-row__vertical-spacing: 16px;

  --hsf-field-label__font-family: "Union", "Helvetica Neue", Arial, sans-serif;
  --hsf-field-label__font-size: 0.875rem;
  --hsf-field-label__color: #000000;

  --hsf-field-input__font-family: "Union", "Helvetica Neue", Arial, sans-serif;
  --hsf-field-input__font-size: 1rem;
  --hsf-field-input__color: #000000;
  --hsf-field-input__placeholder-color: #000000;
  --hsf-field-input__background-color: transparent;
  --hsf-field-input__border-color: #000000;
  --hsf-field-input__border-style: dashed;
  --hsf-field-input__border-width: 1px;
  --hsf-field-input__border-radius: 0;
  --hsf-field-input__padding: 8px 16px;

  --hsf-button__font-family: "Union", "Helvetica Neue", Arial, sans-serif;
  --hsf-button__font-size: 0.875rem;
  --hsf-button__color: #000000;
  --hsf-button__background-color: transparent;
  --hsf-button__background-image: none;
  --hsf-button__border-radius: 4px;
  --hsf-button__padding: 8px 16px;
  --hsf-button__box-shadow: none;
  /* Not in HubSpot's official list, so these may be ignored */
  --hsf-button__border-style: solid;
  --hsf-button--hover__background-color: #d3ddd0;
  --hsf-button--hover__color: #000000;

  --hsf-richtext__font-family: "Union", "Helvetica Neue", Arial, sans-serif;
  --hsf-richtext__font-size: 0.875rem;
  --hsf-richtext__color: #000000;
  --hsf-erroralert__font-family: "Union", "Helvetica Neue", Arial, sans-serif;
  --hsf-erroralert__font-size: 0.875rem;
  --hsf-infoalert__font-family: "Union", "Helvetica Neue", Arial, sans-serif;
  --hsf-infoalert__font-size: 0.875rem;
}

@media (max-width: 1023.98px) {
  .contact {
    padding-block: 48px;
  }
  .contact__body {
    padding-block: 32px 48px;     /* 32px between the page title and the content */
  }
}

/* Pagination: previous and next section */
.pager {
  display: flex;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 11.4583vw, 10.3125rem);   /* 165px at 1440 */
}
.pager__link {
  display: flex;
  align-items: stretch;
  color: var(--black);
  text-decoration: none;
}
.pager__link--next {
  margin-left: auto;
}
.pager__label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--cloud-medium);
  font-size: var(--fs-p2);
  line-height: 1.5;
}
.pager__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  background: var(--green-tint-1);
}
.pager__icon img {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);        /* caret points right for "next" */
}
.pager__link--prev .pager__icon img {
  transform: rotate(90deg);
}
.pager__link:hover .pager__label {
  background: var(--green-tint-1);
}
.pager__link:hover .pager__icon {
  background: var(--green-tint-hover);
}

@media (max-width: 1023.98px) {
  .pager {
    flex-wrap: wrap;
    gap: 12px;
  }
  .tk__frame {
    padding-top: 48px;
  }
  .tk__content {
    padding-block: 32px 48px;     /* tablet and mobile: 32px between the page header and the content */
  }
  .cs-head {
    margin-bottom: -32px;         /* 48px gap + 16px padding - 32px = 32px between header and content */
  }
  .pager {
    padding-inline: var(--gutter-hero);
  }
}
@media (max-width: 799.98px) {
  .lcards,
  .skey {
    flex-direction: column;
  }
}
@media (max-width: 599.98px) {
  .pager {
    gap: 12px;   /* stays a wrapping row: side by side if both fit, otherwise one under the other */
  }
  .pager__link {
    max-width: 100%;   /* each link is only as wide as its text; a very long label wraps inside it */
  }
  .tk__content {
    gap: 24px;
  }
}

/* ==========================================================================
   Sub-nav for The Toolkit and Case Study pages (Figma NAV-BAR-SUB 3500:1248)
   ========================================================================== */
.subnav {
  position: sticky;              /* pins directly below the pinned main nav */
  top: var(--nav-h);
  z-index: 90;                   /* below the main nav (100) and its dropdowns */
  background: var(--olive-primary);
  overflow-x: auto;
  scrollbar-width: none;
}
/* Pages with a sub-nav: anchor targets must clear both pinned bars (main.js keeps --subnav-h exact) */
html:has(.subnav) {
  scroll-padding-top: calc(var(--nav-h) + var(--subnav-h, 59px));
}
.subnav::-webkit-scrollbar {
  display: none;
}
.subnav__list {
  display: flex;
  gap: 24px;
  width: max-content;            /* centred when it fits, scrolls sideways when it does not */
  margin: 0 auto;
  padding: 16px var(--gutter-hero);
  list-style: none;
}
.subnav__link {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-p2);
  line-height: 1.5;
  white-space: nowrap;
}
.subnav__num {
  padding: 0 2px 2px 0;
  color: #dce5db;   /* Figma #a1ba9e was 2.8:1 on the olive bar; this is 4.5:1 and still reads as the quieter colour */
}
.subnav__label {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.subnav__link[aria-current] .subnav__label,
.subnav__link:hover .subnav__label {
  border-bottom-color: var(--white);
}
.subnav__link:focus-visible {
  outline-color: var(--white);
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  /* Slightly smaller so the longer name and all links still fit on one line */
  .brand__title {
    font-size: 1rem;
  }
  .subnav__list {
    gap: 16px;
    padding-inline: 24px;
  }
  .subnav__link {
    font-size: var(--fs-p3);
  }
}
@media (max-width: 1023.98px) {
  .subnav__list {
    padding-block: 16px;
  }
}

/* ==========================================================================
   Tablet and mobile (below 1024px): hamburger menu
   ========================================================================== */
@media (max-width: 1023.98px) {
  :root {
    --nav-h: 76px;
    --gutter-nav: 1.25rem;
    --gutter-hero: 1.25rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }
  .brand__title {
    font-size: clamp(0.9375rem, 4.4vw, 1.125rem);
    text-wrap: balance;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--black);
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.15s ease, background-color 0.15s ease;
  }
  .nav-toggle__bars {
    position: relative;
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle__bars::before {
    top: -7px;
  }
  .nav-toggle__bars::after {
    top: 7px;
  }
  .site-nav.is-menu-open .nav-toggle__bars {
    background: transparent;
  }
  .site-nav.is-menu-open .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav.is-menu-open .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 0;            /* no padding at all, so the green hover / open background runs full-bleed, edge to edge and top to bottom */
    background: var(--cloud-light);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  .site-nav.is-menu-open .nav-panel {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item {
    flex-wrap: wrap;
  }
  .nav-link {
    flex: 1 1 auto;
    min-height: 48px;
    padding-left: calc(var(--gutter-nav) + 12px);   /* the old side padding now sits inside the row */
  }
  .nav-caret {
    min-width: calc(48px + var(--gutter-nav));
    justify-content: center;
    padding: 8px calc(12px + var(--gutter-nav)) 8px 12px;
  }

  .dropdown {
    position: static;
    flex: 1 0 100%;
    width: 100%;
  }
  .dropdown::before {
    display: none;
  }
  .dropdown a {
    min-height: 44px;
    padding-left: calc(var(--gutter-nav) + 12px);
    padding-right: var(--gutter-nav);
    white-space: normal;
  }
  .dropdown .is-sub a {
    padding-left: calc(var(--gutter-nav) + 46px);
  }

  /* Hero: the radar graphic becomes a faint backdrop */
  .hero__inner {
    min-height: 0;
    padding-block: 56px;
  }
  .hero__radar {
    top: auto;
    right: -60px;
    bottom: -90px;
    width: 300px;
    opacity: 0.45;
  }
}

@media (max-width: 767.98px) {
  /* Text spans the full width on small screens, so darken the whole photo evenly */
  .hero__overlay {
    background-image:
      linear-gradient(rgba(24, 24, 27, 0.35), rgba(24, 24, 27, 0.35)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
  }
}

@media (max-width: 599.98px) {
  .hero__radar {
    right: -90px;
    bottom: -110px;
    width: 280px;
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-caret img,
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    transition: none;
  }
}

/* ==========================================================================
   Audio clip (case study, above Findings). Figma 3667:2276: Green Tint 2 box,
   label left (mono 20px), player right (431 x 54, black at 8%).
   ========================================================================== */
.audio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--green-tint-2);
}
.tk .audio__title {
  flex: 0 1 341px;
  margin: 0;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: 1.1;
}
.audio__side {
  flex: 0 0 431px;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.audio__player {
  width: 100%;
  min-width: 0;
}
.audio__el {
  display: block;
  width: 100%;
  height: 48px;
}
.audio__ui {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding-right: 16px;
  background: rgba(0, 0, 0, 0.08);
}
.audio__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}
.audio__btn:hover { background: rgba(0, 0, 0, 0.08); }
.audio__btn:focus-visible,
.audio__seek:focus-visible {
  outline: 2px solid var(--olive-primary);
  outline-offset: -2px;
}
.audio__btn svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.audio__btn .i-pause { display: none; }
.audio__ui.is-playing .i-play { display: none; }
.audio__ui.is-playing .i-pause { display: block; }
.audio__seek {
  --pct: 0%;
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.audio__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--olive-primary) var(--pct), rgba(0, 0, 0, 0.45) var(--pct));
}
.audio__seek::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
}
.audio__seek::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--olive-primary);
}
.audio__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
}
.audio__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
}
.audio__time {
  flex: none;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: var(--fs-p4);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 719.98px) {
  .audio { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
  .tk .audio__title { flex: none; }
  .audio__side { flex: none; width: 100%; }
}

/* "Read the transcript" toggle (right-aligned under the player) and the transcript it reveals */
.audio__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: var(--fs-p4);   /* Figma is 10px; 12px is the smallest size in the type scale */
  line-height: 1.5;
  cursor: pointer;
}
.audio__toggle:hover { text-decoration: underline; }
.audio__toggle:focus-visible {
  outline: 2px solid var(--olive-primary);
  outline-offset: 2px;
}
.audio__toggle img { display: block; width: 10px; height: 10px; transition: transform 0.15s; }
.audio__toggle[aria-expanded="true"] img { transform: rotate(180deg); }
html:not(.js) .audio__toggle { display: none; }
.audio__tbody {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  max-height: 240px;             /* scrolls inside the box instead of lengthening the page */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.45) transparent;
}
.audio__tbody:focus-visible {
  outline: 2px solid var(--olive-primary);
  outline-offset: 2px;
}
.audio__tbody[hidden] { display: none; }
.audio__turn {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tk .audio__tbody p {
  margin: 0;
  color: var(--black);
  font-size: var(--fs-p4);   /* Figma is 10px; 12px is the smallest size in the type scale */
  line-height: 1.5;
}
.tk .audio__tbody p.audio__who { font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .audio__toggle img { transition: none; }
}
