/* =============================================================================
   Thomas Dudley Corporate — Main Stylesheet
   td-style.css v1.0
   ============================================================================= */

/* ── 0. Web font: Prometo ─────────────────────────────────────────────────── */
/* Prometo is the paid-for brand typeface (licensed web-font kit found on the
   company software share, 2026-10-02). Self-hosted from assets/fonts/ rather
   than loaded from a third party, so there's no extra connection to another
   site before text can show. Only WOFF2 is shipped: every browser from the
   last several years supports it, and it's the smallest format.
   font-display: swap shows the fallback font immediately and swaps Prometo
   in when it arrives, so text is never invisible while loading.
   Weights match what the stylesheet already uses: 400 body, 500, 700, 800 and
   900 headings. Anything written as 600 falls back to Bold (700), because
   CSS picks the nearest available weight. */
@font-face { font-family: 'Prometo'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/Prometo.woff2') format('woff2'); }
@font-face { font-family: 'Prometo'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/Prometo-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Prometo'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/Prometo-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Prometo'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/Prometo-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Prometo'; font-weight: 700; font-style: italic; font-display: swap; src: url('../fonts/Prometo-BoldItalic.woff2') format('woff2'); }
@font-face { font-family: 'Prometo'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/Prometo-XBold.woff2') format('woff2'); }
@font-face { font-family: 'Prometo'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/Prometo-Black.woff2') format('woff2'); }

/* ── Sizing convention: min(vw, vh) ─────────────────────────────────────────
   Big vertical sizes (section padding, panel heights, headings, giant
   numerals) are written like  clamp(3rem, min(6vw, 8vh), 5rem):
   "6% of the screen WIDTH or 8% of its HEIGHT, whichever is smaller, kept
   between 3rem and 5rem". Scaling off width alone (the old way) made
   everything big on laptops, which are wide but short (1366x768,
   1280x720, 1536x864): sections grew taller than the screen and you had to
   scroll to see a heading and its content together. The vh half keeps a
   short screen proportionally tighter; on a big monitor the max wins and
   nothing changes. Use the same pattern for any new large size. (Added
   2026-10-05; the homepage hero in section 27 already worked this way.) */

/* ── 1. Design Tokens (CSS Custom Properties) ──────────────────────────────── */
/* Everything in :root is a CSS custom property (a "CSS variable"), referenced
   elsewhere as var(--name). Centralising colours, fonts, spacing units, radii
   and transition timings here means the whole site's look can be restyled by
   editing values in this one block, rather than hunting for hardcoded hex
   codes/pixel values across every selector below. */
:root {
  /* --td-ink and the --td-accent family are tuned to the Thomas Dudley brand
     guidelines (td-corporate/assets/TD Brand Guidelines_V1.0_LADAMS_2025_OLD.pdf)
     — "Black 100%" for ink, and a richer, more saturated navy for the accent
     family than the site originally used. The guide only gives CMYK values with
     no Pantone reference for these two, so these are a considered approximation
     rather than an exact match — kept close enough to the previous blue's hue
     that every existing hover/light/dark derivative below still reads as part
     of the same family (same relative lightening/darkening steps as before). */
  --td-ink:       #0e0e0d;
  --td-ink-mid:   #1c1c1a;
  --td-accent:       #163d7a;
  --td-accent-dark:  #0f2a58;
  --td-accent-hover: #2650a0;
  --td-accent-light: #7fa3d4;
  --td-error:        #b3413b;
  /* The Thomas Dudley Group's secondary brand colour -- matches the red
     already used in the Union Jack built into the logo (td-group.svg), so
     this is the same red already shipped in a real brand asset, not a new
     hue introduced from scratch. This is a proper secondary colour, not a
     token accent: every "kicker" label above a heading (section eyebrows,
     the hero eyebrow, footer labels, CTA panel eyebrows), every section
     divider and nav underline, every news category tag, and several card
     hover states all use it -- see --text-kicker/--band-kicker below for
     the label colour, and each selector's own comment for the rest. Buttons
     and body links stay navy/ink -- that keeps red out of the "what can I
     click" signal so it doesn't compete with the site's real interactive
     colour, while still giving red a genuinely prominent, repeated role. A
     standalone Union Jack graphic was tried on the homepage hero and
     dropped -- it read as tacky/gimmicky rather than as a brand touch,
     which is why red shows up as many consistent details instead. */
  --td-red:          #cf252d;
  --td-red-dark:     #a01e24;
  /* Lighter tint of --td-red for the same reason --td-accent-light exists --
     plain --td-red doesn't have enough contrast for text sitting on a dark
     band (dark mode's near-black bands, or the permanently-dark overlay on
     brand card photos), so kicker labels swap to this there instead. */
  --td-red-light:    #e07177;
  --td-white:      #ffffff;
  --td-off-white:  #f7f5f2;
  --td-gray-100:   #f1efec;
  --td-gray-200:   #e6e2dc;
  --td-gray-400:   #cbc6bd;
  /* Darkened 2026-09-24 from #6c757d, which is only 4.31:1 on the off-white
     page background (4.09:1 on gray-100) -- below WCAG AA's 4.5:1 for normal
     text. This is --text-secondary, used for most supporting paragraphs, so
     it matters. #5f666d is 5.2:1 on #f7f5f2 and looks almost identical. */
  --td-gray-600:   #5f666d;
  --td-gray-800:   #343a40;
  --td-gray-900:   #212529;
  --td-text:       #1a1a2e;

  /* Prometo is the one brand typeface (no separate heading/body split), so
     both tokens point at it. (Lato was used until 2026-10-02, before the
     licensed Prometo files were found.) */
  --font-heading:  'Prometo', system-ui, -apple-system, sans-serif;
  --font-body:     'Prometo', system-ui, -apple-system, sans-serif;

  /* Square by default (2026-09-24 site-wide pass). The "Every Drop Counts"
     homepage chapter set the direction Lee wanted the whole site to follow:
     flush, edge-to-edge, sharp corners. Rounded cards and photos elsewhere
     read as a different (softer, SaaS-style) design system sitting next to
     it. Rather than hunting down every border-radius, the tokens that ~60
     selectors already reference are flattened here. --radius-sm/md keep a
     hint of softening (2px) for small controls like buttons and inputs, so
     they don't look harsh at small sizes. lg/xl (cards, photos, panels) are
     fully square. */
  --radius-sm:     2px;
  --radius-md:     2px;
  --radius-lg:     0;
  --radius-xl:     0;

  /* Flattened in the same pass: the flush design uses 1px hairlines to
     separate things, not floating drop shadows. Kept as tokens (rather than
     deleted) so every existing reference still resolves. --shadow-lg/xl stay
     real because they're only used on things that genuinely float above the
     page: dropdown menus, the mobile nav, the video dialog. */
  --shadow-sm:     none;
  --shadow-md:     none;
  --shadow-lg:     0 10px 40px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.1);
  --shadow-xl:     0 20px 60px rgba(0,0,0,.2);

  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1240px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  --nav-height:       80px;
  --nav-height-sm:    64px;
  --brand-bar-height: 36px;
}

/* ── 1b. Theme Tokens ────────────────────────────────────────────────────────── */
/* Used to be two sets (light mode / dark mode) behind a user-facing toggle --
   removed 2026-09-24 at Lee's request after checking real comparable sites
   (Geberit, Viega, Ideal Standard): none of them are dark-themed, and B2B/
   trust research consistently finds light surfaces read as more trustworthy
   for this kind of audience than a dark UI borrowed from SaaS/tech branding.
   Rather than a full rebuild, this keeps the exact split the two-theme system
   already had, just fixed permanently on one side each instead of toggling:

   "Surface" tokens (--bg-*, --text-*, --border-*, --success-*) -- the page
   background, cards, forms, nav dropdowns -- stay on what was "light mode"'s
   values (unchanged from before this change).

   "Band" tokens (--band-*) -- the header/nav, hero, footer, stats/TD-Works
   bands, CTA photo panels, and alternating ".section--dark"/".section--navy"
   content bands -- are fixed on what was "dark mode"'s values. This isn't
   arbitrary: those elements were always the site's consistent "dark chrome"
   family (same navy/ink treatment throughout, by original design), and
   Viega's own site uses exactly this pattern -- a dark nav/chrome family
   against an otherwise light, photo-led site -- so keeping bands dark here
   matches real precedent rather than forcing everything light. */
:root {
  --bg-page:            var(--td-off-white);
  --bg-surface:         var(--td-white);
  --bg-surface-alt:     var(--td-gray-100);
  --border-color:       var(--td-gray-200);
  --border-color-muted: var(--td-gray-400);
  --text-primary:       var(--td-ink);
  --text-base:          var(--td-text);
  --text-body:          var(--td-gray-800);
  --text-secondary:     var(--td-gray-600);
  --text-accent:     var(--td-accent);
  /* Colour for "kicker" labels -- the small uppercase tag line that sits
     above a heading (section eyebrows, hero eyebrow, footer labels, CTA
     panel eyebrows). Deliberately a separate token from --text-accent
     above: that one drives links/hovers and needs to stay navy so red
     doesn't get mistaken for "this is clickable", whereas every kicker on
     the site is plain text -- safe to give red a real, frequent presence
     without touching interactive colour. */
  --text-kicker:     var(--td-red);
  --success-bg:      #d1fae5;
  --success-border:  #6ee7b7;
  --success-text:    #065f46;

  --band-bg:         var(--td-ink);
  --band-bg-alt:     var(--td-ink-mid);
  --band-text:       var(--td-white);
  --band-text-muted: rgba(255,255,255,.7);
  --band-border:     rgba(255,255,255,.1);
  --band-surface:    rgba(255,255,255,.05);
  --band-accent:     var(--td-accent-light);
  /* Same kicker role as --text-kicker, but for the dark "band" surfaces
     (hero, footer, CTA panels) -- see --band-accent above for why bands
     need their own copy of every accent-ish token. */
  --band-kicker:     var(--td-red-light);
  --band-scrim-strong: rgba(27,26,24,.9);
  --band-scrim-soft:   rgba(27,26,24,.4);

  color-scheme: light;
}

/* ── 2. CSS Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smallest text on the site: nothing is set below 0.75rem (12px). Small
   labels, captions and legal text were once 0.65-0.72rem, which is hard to
   read, so every one of them was raised to 0.75rem (B6, 16 Nov 2026). Keep
   new text at 0.75rem or above. */
html {
  font-size: 16px;
  overflow-x: clip; /* see the note on body below */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-base);
  background: var(--bg-page);
  overflow-x: hidden;
  /* "clip" as well (2026-10-08): the slide-in animations start 40px off to
     the side, which made pages 20px wider than a phone screen until they
     played. "hidden" on body alone isn't always honoured by iPhone Safari;
     "clip" is, and unlike "hidden" it doesn't break position: sticky.
     Browsers that don't know "clip" ignore it and keep "hidden". */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

body.nav-open { overflow: hidden; }

/* Balance the line lengths of headings so a heavy Prometo heading doesn't
   leave one lonely word on its last line. Browsers that don't support it
   simply wrap as normal. */
h1, h2, h3 { text-wrap: balance; }

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
/* --focus is white on dark surfaces (see the focus-ring block in section 25). */
a:focus-visible { outline: 3px solid var(--focus, var(--td-accent)); outline-offset: 3px; border-radius: 2px; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ── 3. Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, min(5vw, 5.6vh), 3.5rem); }
/* Heavier and tighter than a default h2 (2026-09-24): matches the big,
   confident type in the homepage's "Every Drop Counts" chapters
   (.story-heading), so every section heading on the site speaks the same
   typographic language instead of only that one section. */
h2 {
  font-size: clamp(1.7rem, min(3.6vw, 4.6vh), 2.9rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-body); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2rem 0 1rem; }
/* Long-form reading scale (news posts, policy pages) -- the global h2 is
   sized for section headlines (up to 2.9rem, 900 weight), which is far too
   loud for the headings inside a privacy policy or an article. */
.entry-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.entry-content h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 800; line-height: 1.25; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1rem 2rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 4px solid var(--td-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-surface-alt);
  font-style: italic;
  font-size: 1.1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.entry-content a { color: var(--text-accent); text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content th, .entry-content td { padding: 0.75rem 1rem; border: 1px solid var(--border-color); text-align: left; }
.entry-content th { background: var(--td-ink); color: white; font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.entry-content tr:nth-child(even) td { background: var(--bg-surface-alt); }

/* ── 4. Layout & Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--narrow { max-width: 800px; }

/* Retuned 2026-09-24 (Lee: "giant gaps creating needless scrolling is a
   problem too", part of the same content-density pass as the homepage
   company picker/text-callout/icon-strip work) -- was clamp(4rem,8vw,7rem),
   meaning two adjacent plain .section elements could add up to 224px of
   combined padding before any real content. NN/g's "Utilize Available
   Screen Space": whitespace should group/separate content on purpose, not
   accumulate by default between every section regardless of what's either
   side of it. Still real breathing room (48-80px each), just not double
   what most modern sites use here. */
.section {
  padding: clamp(3rem, min(6vw, 8vh), 5rem) 0;
}
.section--sm    { padding: clamp(2rem, min(4vw, 5vh), 3rem) 0; }
.section--dark  { background: var(--band-bg); }
.section--light { background: var(--bg-page); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--band-text); }
.section--dark p { color: var(--band-text-muted); }

/* Editorial section header (2026-09-24 site-wide pass) -- was a centred
   stack of eyebrow, heading, paragraph and a small two-tone rule, repeated
   identically on nearly every section of every page, which is what made
   the site read as "one template over and over". Now a two-column split:
   kicker + big heading on the left, the supporting paragraph on the right,
   bottom-aligned, with one full-width hairline underneath. The same
   left-aligned, big-type structure as the "Every Drop Counts" chapters, and
   denser too (the paragraph sits beside the heading rather than adding
   another row under it).

   The markup didn't change, so no template needed editing to get this.
   Every direct child goes in column 1, and the one <p> is lifted into
   column 2 across all the rows. A header with no paragraph just becomes a
   left-aligned heading. */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  text-align: left;
  margin-bottom: clamp(1.5rem, min(3.5vw, 4.4vh), 2.75rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--border-color);
}
.section-header > * { grid-column: 1; }
.section-header > p {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  max-width: 520px;
  margin: 0;
  color: var(--text-secondary);
}
.section-header h2 { margin: 0; }
.section--dark .section-header { border-bottom-color: var(--band-border); }
.section--dark .section-header > p { color: var(--band-text-muted); }
@media (max-width: 800px) {
  .section-header { grid-template-columns: 1fr; }
  .section-header > p { grid-column: 1; grid-row: auto; margin-top: 0.9rem; }
}

/* Kicker label above a heading. The short red bar in front of it replaces
   the old two-tone rule under the heading: the same brand-red accent, but
   leading the eye into the heading instead of trailing after it. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-kicker);
  margin-bottom: 0.9rem;
}
.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.section--dark .section-eyebrow { color: var(--band-kicker); }

/* Underlined uppercase text link -- the secondary action style from the
   "Every Drop Counts" chapters (.story-link), generalised so any section
   can pair one solid button with quieter text links instead of stacking
   two or three equal-weight buttons. --band variant for dark surfaces. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: color var(--transition), border-color var(--transition);
}
.text-link:hover, .text-link:focus-visible { color: var(--td-red); }
.text-link--band { color: #fff; border-bottom-color: rgba(255,255,255,.45); }
.text-link--band:hover, .text-link--band:focus-visible { color: var(--td-red-light); border-bottom-color: var(--td-red-light); }

/* Solid white action on a dark surface -- the "Watch the film" button from
   the story chapters (.story-watch), generalised so the hero and other dark
   bands can use the same primary-action style. Turns brand red on hover. */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--td-ink);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1.05rem 1.75rem;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.btn-solid:hover, .btn-solid:focus-visible { background: var(--td-red); color: #fff; }

/* ── 4b. Editorial Components ────────────────────────────────────────────────── */
/* Shared building blocks from the 2026-09-24 site-wide pass, each rendered
   by one PHP helper in functions.php so every page gets the same thing. */

/* Page lede -- td_page_lede(). The opening statement under an inner page's
   hero: big heading left, intro paragraph right. */
.lede {
  padding: clamp(2rem, min(5vw, 6.8vh), 4.25rem) 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.lede-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 6vw, 6rem);
  align-items: end;
}
.lede-heading {
  font-size: clamp(1.9rem, min(4.4vw, 5.8vh), 3.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.lede-text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}
.lede-search { margin-top: 1.5rem; }
@media (max-width: 800px) {
  /* minmax(0, 1fr), not plain 1fr: a plain 1fr column refuses to shrink below
     its widest unbreakable word, which stretched the whole block past the
     screen on 320px phones. */
  .lede-inner { grid-template-columns: minmax(0, 1fr); }
}
/* Very small phones (320-360px wide, e.g. older iPhone SE): Prometo's heavy
   900 weight makes long words like "Accreditations" wider than the screen at
   the usual minimum size, so step the heading down and let a too-long word
   break rather than push the page sideways. */
@media (max-width: 360px) {
  .lede-heading { font-size: 1.6rem; overflow-wrap: break-word; }
}

/* Next-step band -- td_next_band(). Dark closing band: statement on the
   left, a ranked list of destinations on the right. Each destination is a
   full-width row with a hairline between rows, and the arrow slides on
   hover. The first row is the primary action, so it gets the white fill,
   the same "one solid action" as the story chapters' white button. */
.next-band {
  background: var(--band-bg);
  padding: clamp(3rem, min(6vw, 8vh), 5rem) 0;
  /* It's always the last thing before the (also black) footer; the
     hairline stops the two reading as one long undivided dark block. */
  border-bottom: 1px solid var(--band-border);
}
/* When the section just above is dark too (the Careers "How to Apply" band,
   when there are no vacancies to show between them), draw the same hairline
   on top, so two dark bands don't run together as one block (2026-11-16). */
.section--dark + .next-band { border-top: 1px solid var(--band-border); }
.next-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.next-band .section-eyebrow { color: var(--band-kicker); }
.next-band-heading {
  font-size: clamp(1.9rem, min(4vw, 5.4vh), 3.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.next-band-text {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 1.1rem 0 0;
  max-width: 520px;
}
.next-band-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--band-border); }
.next-band-links li { border-bottom: 1px solid var(--band-border); }
.next-band-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 800;
  color: #fff;
  transition: background var(--transition), color var(--transition), padding var(--transition);
}
.next-band-link svg { flex-shrink: 0; transition: transform var(--transition); }
.next-band-link:hover, .next-band-link:focus-visible { background: rgba(255,255,255,.06); color: var(--td-red-light); }
.next-band-link:hover svg, .next-band-link:focus-visible svg { transform: translateX(6px); }
.next-band-links li:first-child .next-band-link { background: #fff; color: var(--td-ink); }
.next-band-links li:first-child .next-band-link:hover,
.next-band-links li:first-child .next-band-link:focus-visible { background: var(--td-red); color: #fff; }
@media (max-width: 800px) {
  .next-band-inner { grid-template-columns: 1fr; }
}

/* Big-number row -- huge numerals in a hairline grid, the "Every Drop
   Counts" stat treatment (.story-stat) at a size that fits several side by
   side. Used for the homepage figures and the stat strips on inner pages.
   --band variant for dark surfaces. */
.figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--border-color);
}
.figure {
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--border-color);
}
.figure + .figure { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--border-color); }
.figure-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, min(5vw, 6.8vh), 4.25rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}
.figure-label {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
/* One figure per row -- for a narrow column (Environment's water numbers)
   where side-by-side figures wouldn't fit. The label sits beside the
   number instead of under it. */
.figure-row--stack { grid-template-columns: 1fr; }
.figure-row--stack .figure,
.figure-row--stack .figure + .figure {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-left: 0;
}
.figure-row--stack .figure-label { margin-top: 0; text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 700; }
.benefit-link { margin-top: 1.1rem; }
.figure-row--band { border-top-color: var(--band-border); }
.figure-row--band .figure { border-color: var(--band-border); }
.figure-row--band .figure-number { color: #fff; }
.figure-row--band .figure-label { color: rgba(255,255,255,.65); }
@media (max-width: 600px) {
  .figure-row { grid-template-columns: 1fr 1fr; }
  /* Re-stated here: the two-column rule above would otherwise beat the
     one-per-row stacked variant (same specificity, later in the file). */
  .figure-row--stack { grid-template-columns: 1fr; }
  .figure + .figure { padding-left: 0; border-left: 0; }
  .figure:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--border-color); }
  .figure-row--band .figure:nth-child(even) { border-left-color: var(--band-border); }
  /* Half a phone screen is ~150px -- real values like "Est. 1920" or
     "Net Zero" don't fit on one line at full size, so shrink and allow
     wrapping rather than overflowing the column. */
  .figure-number { font-size: clamp(1.7rem, 8vw, 2.4rem); white-space: normal; }
}

/* ── 5. Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--td-accent);
  color: var(--td-white);
  border-color: var(--td-accent);
}
/* No hover lift or drop shadow on any button (2026-09-24) -- the flat design
   system signals hover with colour alone, like .btn-solid and .text-link. */
.btn--primary:hover { background: var(--td-accent-dark); border-color: var(--td-accent-dark); }

.btn--navy {
  background: var(--td-ink);
  color: var(--td-white);
  border-color: var(--td-ink);
}
.btn--navy:hover { background: var(--td-red); border-color: var(--td-red); }

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn--outline:hover { background: var(--text-primary); color: var(--bg-page); }

/* These two variants exist specifically to stay legible sitting on top of a
   dark band (hero, footer, .section--dark, etc). Since bands now flip light
   in light mode, both buttons key off the same --band-* tokens as the band
   itself rather than hardcoded white, so they invert together and keep
   contrasting correctly in either theme. */
.btn--outline-white {
  background: transparent;
  color: var(--band-text);
  border-color: var(--band-text-muted);
}
.btn--outline-white:hover { background: var(--band-text); color: var(--band-bg); }

.btn--white {
  background: var(--band-text);
  color: var(--band-bg);
  border-color: var(--band-text);
}
.btn--white:hover { background: var(--td-red); border-color: var(--td-red); color: #fff; }

.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.8rem; }
.btn--lg { padding: 1.125rem 2.5rem; font-size: 1rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ── 6. Navigation ──────────────────────────────────────────────────────────── */
/* Stacking order (highest wins) is deliberate across this file:
   .site-header (1000) sits above .nav-mobile (999), which sits above
   .nav-overlay (998 — see Mobile Navigation below), which sits above the
   .back-to-top button (900, below). Keeping the header on top means it
   stays clickable/visible even while the mobile drawer is open. */

/* Back to Top button (markup in footer.php): starts hidden/offset, td-main.js
   adds .visible once the page has scrolled past 600px. This has to be a real
   class rule, not an inline style on the button -- an inline style attribute
   always wins over a class selector in the cascade, so a .visible class rule
   would never be able to override an inline opacity:0 and the button would
   stay invisible forever no matter how far you scrolled. */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: var(--td-ink);
  color: white;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.back-to-top:hover { background: var(--td-red); }
/* :focus-visible -- since 2026-11-16 the button hides while scrolling down
   (see td-main.js), so a keyboard user could Tab onto it while it is
   invisible. Showing it whenever it has keyboard focus fixes that. */
.back-to-top.visible,
.back-to-top:focus-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: var(--band-bg);
  border-bottom: 1px solid var(--band-border);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  border-bottom-color: transparent;
}
.site-header.scrolled .nav-inner {
  height: var(--nav-height-sm);
}

/* Logo swap — the header is part of the permanently-dark "band" chrome (see
   the ── 1b. Theme Tokens comment), so it always shows the white logo. */
.site-header .nav-logo .logo-light { display: block; }
.site-header .nav-logo .logo-dark  { display: none; }

.site-header.page-header .nav-link { color: var(--band-text-muted); }

.nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--nav-height);
  transition: height var(--transition);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-primary {
  display: flex;
  align-items: center;
}
.nav-primary > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--band-text-muted);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  /* Same two-tone navy/red split as .section-rule (see --td-red above) --
     repeating that exact motif here means every nav hover/active state
     across the whole site carries the same red touch. */
  background: linear-gradient(to right, var(--band-accent) 0 50%, var(--td-red) 50% 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--band-text) !important; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--band-text) !important; }
.nav-link.active::after { transform: scaleX(1); }

.nav-arrow {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  display: inline-block;
  margin-top: -3px;
  opacity: 0.7;
}
.nav-item:hover .nav-arrow { transform: rotate(-135deg) translateY(3px); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  min-width: 210px;
  padding: 0.75rem 0.5rem 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateY(6px);
  /* Was navy -- switched to red so opening any nav dropdown, on every page,
     is one more place the brand's secondary colour actually shows up. */
  border-left: 3px solid var(--td-red);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}
.nav-dropdown a:hover { color: var(--text-accent); background: var(--bg-surface-alt); padding-left: 1.125rem; }
.nav-dropdown-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-color-muted);
  flex-shrink: 0;
  transition: background var(--transition);
}
.nav-dropdown a:hover .nav-dropdown-dot { background: var(--td-accent); }

/* Mega menu for brands */
.nav-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 680px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 48px rgba(0,0,0,.18), 0 2px 12px rgba(0,0,0,.08);
  padding: 1rem 1.5rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  /* Was navy -- see .nav-dropdown above for why this moved to red. */
  border-top: 3px solid var(--td-red);
}
.nav-item:hover .nav-megamenu,
.nav-item:focus-within .nav-megamenu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-megamenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.nav-megamenu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.nav-megamenu-item:hover { background: var(--bg-surface-alt); }
.nav-megamenu-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0;
}
.nav-megamenu-text { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.nav-megamenu-text small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); }
/* Linked Sites row (added 2026-11-04): group websites that sit under a
   company (Utility Products, TD Spares). Smaller than the company tiles
   above so they read as "part of", with the parent's colour as a thin bar. */
.nav-megamenu-linked {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}
.nav-megamenu-linked-item {
  display: block;
  padding: 0.6rem 0.875rem;
  border-left: 3px solid var(--brand-color, var(--td-accent));
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.3;
  transition: background var(--transition);
}
.nav-megamenu-linked-item:hover { background: var(--bg-surface-alt); }
.nav-megamenu-linked-item small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); }
.nav-megamenu-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-megamenu-footer a { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-accent); transition: color var(--transition); }
.nav-megamenu-footer a:hover { color: var(--td-accent-dark); }

/* Nav CTA */
.nav-cta {
  margin-left: 1rem;
}
.nav-cta .btn--primary {
  background: var(--td-accent);
  color: var(--td-white);
  border-color: var(--td-accent);
  font-weight: 700;
}
.nav-cta .btn--primary:hover {
  background: var(--td-accent-hover);
  border-color: var(--td-accent-hover);
  color: var(--td-white);
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--band-text-muted);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Brand Bar (top strip) */
.brand-bar {
  background: var(--band-scrim-soft);
  border-bottom: 1px solid var(--band-border);
  /* height (not just padding) matching --brand-bar-height -- pages using
     td_page_hero()'s image banner position that banner with
     margin-top: calc(var(--nav-height) + var(--brand-bar-height)) (see
     .page-hero below), assuming the header is exactly that tall. Padding
     alone left this ~5px shorter than the token claimed (content/line-height
     driven, not a fixed box), which showed as a sliver of the page's own
     background colour between the header and the banner image -- invisible
     against the old plain (also off-white) page-hero, but visible once a
     photo sat there instead. display:flex centres the row's content now
     that height is fixed instead of content-driven. */
  height: var(--brand-bar-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}
.site-header.scrolled .brand-bar {
  max-height: 0;
  padding: 0;
  opacity: 0;
  border: none;
}
/* Three-column layout — contact details, brand links, and a matching-width
   empty spacer — so the middle column (brand links) sits truly centred in
   the strip: the two "1fr" tracks either side absorb the leftover space
   equally regardless of how wide the contact details happen to be. */
.brand-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.brand-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-self: start;
}
.brand-bar-contact a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--band-text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.brand-bar-contact a:hover { color: var(--band-text); }
.brand-bar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
/* Small opacity/lift hover instead of the footer's boxed .social-link button —
   this bar is too slim (0.35rem padding) for a 38px icon button without
   growing the whole strip taller. */
.brand-bar-social-link {
  display: flex;
  align-items: center;
  /* 24x24px tap area around the 14px icon: WCAG 2.2's minimum target size
     (2.5.8). The icon was the whole target before (14x14). */
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  opacity: 0.75;
  transition: opacity var(--transition), transform var(--transition);
}
.brand-bar-social-link:hover { opacity: 1; transform: translateY(-1px); }
/* The top bar is always dark, so the icons must be light. td_social_icon()
   fills them with --text-accent (dark navy), which was almost invisible
   here (found 2026-11-16; same fault and same fix as the footer's
   .social-link icons). A CSS fill beats the SVG's fill attribute. */
.brand-bar-social-link svg { fill: var(--band-text); }
/* YouTube's play triangle is hard-coded white, so cut it out in the bar's
   own dark colour or it would vanish into the now-white icon. */
.brand-bar-social-link svg polygon { fill: var(--band-bg); }
.brand-bar-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}
/* ── 7. Mobile Navigation ────────────────────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: var(--band-bg);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  /* visibility:hidden while closed takes the drawer's links out of the Tab
     order and out of what screen readers read. Before 2026-10-05 it was only
     slid off-screen, so keyboard users tabbed through ~20 invisible links
     on every page. The 0.3s delay on visibility lets the slide-out finish
     before it disappears. */
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  display: flex;
  flex-direction: column;
}
.nav-mobile.active { transform: translateX(0); visibility: visible; transition: transform 0.3s ease, visibility 0s; }

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--band-border);
}
.nav-mobile-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: var(--band-text); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-mobile-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--band-text); font-size: 1.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-mobile-close:hover { background: var(--band-surface); }

.nav-mobile-list { flex: 1; padding: 1rem; }
.nav-mobile-item { border-bottom: 1px solid var(--band-border); }
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0.5rem;
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--band-text);
  transition: color var(--transition);
}
/* The section toggles are <button>s (2026-09-24) -- full width and
   left-aligned so they line up exactly like the plain link rows. */
button.nav-mobile-link { width: 100%; text-align: left; }
.nav-mobile-link:hover { color: var(--td-red-light); }
.nav-mobile-link .nav-arrow { border-color: currentColor; }
.nav-mobile-sub {
  display: none;
  padding: 0 0 0.5rem 1rem;
}
.nav-mobile-sub.open { display: block; }
.nav-mobile-sub a {
  display: block; padding: 0.6rem 0.5rem;
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--band-text-muted);
  transition: color var(--transition);
}
.nav-mobile-sub a:hover { color: var(--band-text); }
/* A Linked Site, indented under its company (added 2026-11-04). */
.nav-mobile-sub-linked a { padding-left: 1.5rem; font-weight: 500; text-transform: none; letter-spacing: 0; }

.nav-mobile-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--band-border);
  display: flex; flex-direction: column; gap: 0.75rem;
}

/* ── 8. Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--band-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--band-bg) 0%, var(--band-bg-alt) 100%);
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--band-scrim-strong) 50%, var(--band-scrim-soft) 100%);
  z-index: 1;
}
/* Hero type retuned 2026-09-24 to match the "Every Drop Counts" chapters:
   bigger, tighter headline, the second line in muted white rather than a
   blue accent (the site's accent colours are red for labels and navy for
   links, and a third blue competed with both). */
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + var(--brand-bar-height) + 3rem) 0 6.5rem;
  width: 100%;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6.8vw, 6.25rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--band-text);
  margin-bottom: 1.5rem;
  max-width: 960px;
}
.hero-title em {
  font-style: normal;
  /* All three headline lines are white (C8, 16 Nov 2026). The last line was
     50% white, which read as disabled text; it now matches the lines above. */
  color: var(--band-text);
  display: block;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.78);
  margin-bottom: 1.25rem;
  max-width: 560px;
  line-height: 1.65;
}
/* Short, always-visible product summary -- no scrolling needed to see what
   the Group actually makes. Plain slash-separated text (was rounded pills,
   which looked like clickable filters but weren't). */
.hero-products-line {
  max-width: 640px;
  margin: 0 0 2.25rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
}
.hero-products-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--band-kicker);
  margin-bottom: 0.2rem;
}
.hero-products-sep { color: var(--td-red-light); margin: 0 0.55rem; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
/* Pause/play control for the hero's background video (WCAG 2.2.2 -- see
   front-page.php). Small square button in the bottom-right corner, above
   the company logo strip; shows the pause icon while playing and the play
   icon once paused (.is-paused, set by td-main.js). */
.hero-video-toggle {
  position: absolute;
  right: var(--container-pad);
  bottom: 5.5rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(14,14,13,.55);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}
.hero-video-toggle:hover { background: var(--td-red); border-color: var(--td-red); }
.hero-video-toggle-play { display: none; }
.hero-video-toggle.is-paused .hero-video-toggle-play { display: block; }
.hero-video-toggle.is-paused .hero-video-toggle-pause { display: none; }
/* Stats as big numerals in hairline-divided columns, the same treatment
   as .figure-row further down the page. */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
  border-top: 1px solid var(--band-border);
}
.hero-stat-item { color: var(--band-text); padding: 1.4rem 2.5rem 0 0; }
.hero-stat-item + .hero-stat-item { padding-left: 2.5rem; border-left: 1px solid var(--band-border); }
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, min(4vw, 5.6vh), 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 0.95;
}
.hero-stat-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.6rem;
}
/* Tablet widths: with Prometo's wider letters the three stats no longer fit on
   one line, so the third dropped to its own row still carrying its divider
   line and indent. Three equal columns (labels wrap inside them) keep all
   three on one row. */
@media (min-width: 601px) and (max-width: 900px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stat-item { padding-right: 1.25rem; }
  .hero-stat-item + .hero-stat-item { padding-left: 1.25rem; }
}
/* Phones: one stat per line, with the number on the left and its label
   beside it. Before (found 2026-11-16) the three wrapped wherever they
   happened to fit, so "1920" sat alone on one row and the other two shared
   the next. flex-direction: column gives each stat its own row; inside a
   row, the number has a fixed width so the three labels line up. */
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; }
  .hero-stat-item, .hero-stat-item + .hero-stat-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0 0;
    border-left: 0;
  }
  .hero-stat-number { min-width: 5.75rem; }
  .hero-stat-label  { margin-top: 0; }
}
.hero-brand-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: var(--band-surface);
  border-top: 1px solid var(--band-border);
  backdrop-filter: blur(2px);
}
.hero-brand-strip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.25rem 0;
}
.hero-brand-strip__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 1;
}
.hero-brand-strip__logo {
  display: inline-grid;
  align-items: center;
  min-height: 24px; /* WCAG 2.2 target size; the logos themselves are 22px tall */
  opacity: .6;
  transition: opacity var(--transition);
}
.hero-brand-strip__logo:hover { opacity: 1; }
.hero-brand-strip__logo img {
  grid-area: 1 / 1;
  height: 22px;
  width: auto;
  transition: opacity var(--transition);
}
/* The hero is permanently-dark band chrome, so white-out logos show at rest
   -- both images always occupy the same grid cell (rather than a
   display:none/block swap) so hover below can crossfade to the real
   full-colour logo (cropped from the brand guidelines PDF for the brands
   that needed one — see front-page.php/functions.php). */
.hero-brand-strip__logo .logo-dark  { opacity: 1; }
.hero-brand-strip__logo .logo-light { opacity: 0; }
/* The full-colour logo often has a slightly different aspect ratio from the
   white one (Rugby Plastics: ~9.1:1 vs ~8.6:1). If both were in-flow the
   wider one would stretch the link, so hovering looked like the logo grew.
   Instead the white logo alone sets the size, and the colour logo is laid
   over it and fitted inside that same box. */
.hero-brand-strip__logo { position: relative; }
.hero-brand-strip__logo .logo-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-brand-strip__logo:hover .logo-dark  { opacity: 0; }
.hero-brand-strip__logo:hover .logo-light { opacity: 1; }
/* Inner page header — a compact title bar, not a photo banner. Every inner
   page used to open with a ~320px full-bleed background photo; that's a lot
   of "before you reach the actual page" real estate repeated identically 17
   times across the site, and modern practice (see breadcrumb research below)
   treats this zone as a quiet wayfinding strip, not a decorative hero. No
   image, no overlay/scrim — just the page background plus a thin bottom
   border for a little definition, sized to fit breadcrumb + title + an
   optional one-line subtitle and nothing more. */
.page-hero {
  position: relative;
  margin-top: calc(var(--nav-height) + var(--brand-bar-height));
  padding: 1.1rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
}
/* Thin red accent riding along the same bottom edge as the border-bottom
   above -- this bar sits at the top of every inner page (About, Board,
   Careers, etc.), so it's a small, repeated touch of the brand's red (see
   --td-red above) rather than a one-off. Kept short and right-aligned so it
   reads as a deliberate accent, not a full-width stripe. */
.page-hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--td-red);
}
/* Fallback heading for the rare case $breadcrumbs=false is passed to
   td_page_hero() — normally the breadcrumb trail's own final segment is the
   page's <h1> instead (see .breadcrumb-title below). */
.page-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin: 0.35rem 0 0;
}
.page-hero__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

/* Optional per-page banner image (td_page_hero()'s $default_bg -- restored
   2026-09-25 at stakeholder request, see the comment above that function in
   functions.php). Taller than the plain bar but deliberately still a
   compact strip, not the old full-height photo hero -- ~200px reads as a
   real banner without pushing real page content below the fold. */
.page-hero--image {
  padding: 2.75rem 0 2.25rem;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  border-bottom: none;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,13,.88) 0%, rgba(14,14,13,.55) 60%, rgba(14,14,13,.25) 100%);
}
.page-hero--image .container { position: relative; z-index: 1; }
.page-hero--image .breadcrumb li,
.page-hero--image .breadcrumb a,
.page-hero--image .page-hero__title { color: rgba(255,255,255,.75); }
.page-hero--image .breadcrumb a:hover { color: #fff; }
.page-hero--image .breadcrumb [aria-current="page"],
.page-hero--image .breadcrumb-title { color: #fff; }
.page-hero--image .page-hero__subtitle { color: rgba(255,255,255,.8); }

/* ── 9. Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb li {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; }
/* Padding gives each breadcrumb link a 24px-tall tap area (WCAG 2.2 target
   size) without changing how the line looks. */
.breadcrumb a { display: inline-block; padding: 0.25rem 0; color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb [aria-current="page"] { color: var(--text-accent); }
/* The breadcrumb trail's final segment IS the page's <h1> (see
   td_breadcrumbs() in functions.php) — styled to match the rest of the
   trail (same size/weight/case as "Home") instead of a large heading, so
   it reads as one aligned line. It's still semantically an <h1> for
   accessibility/SEO — just visually understated, like the rest of the
   trail. The .breadcrumb [aria-current="page"] colour rule above is what
   marks it as the current page. */
.breadcrumb-title {
  display: inline;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: inherit;
}

/* ── 10. Brand Grid ──────────────────────────────────────────────────────────── */
/* padding-bottom: 0 -- the wwm-strip (last thing in this section) is
   already edge-to-edge, with its own internal padding; the section's own
   bottom padding was leaving a dead gap between it and the next (dark)
   section below. (The strip was dark when this was written; since C2 it is
   light, and the reasoning is unchanged.) Caught 2026-09-24 (Lee:
   "This is an unnecessary gap now too"). Top padding stays -- the intro
   heading above the panels still needs it. */
.brands-section { background: var(--bg-page); padding-bottom: 0; }

/* Solution Finder -- see front-page.php's comment above the markup for why
   this exists and which reference sites it follows. Two selects sit side
   by side on desktop; the reset button only ever appears once a filter is
   actually active (td-main.js toggles its `hidden` attribute), so an
   untouched finder shows just the two fields, nothing else. */
.solution-finder {
  position: relative;
  /* Own stacking context via .fade-in's scroll-reveal transform (even
     translateY(0) once .is-visible) traps the listbox panel's z-index: 20
     (below) inside it -- .brand-grid's own cards get the same transform
     from their own .fade-in class, and being LATER in the document they'd
     otherwise paint on top of this whole block regardless of the panel's
     z-index. An explicit z-index here (compared against .brand-grid as a
     whole, not just within this element) is what actually wins that fight. */
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
}
/* Homepage header row: question on the left, the finder on the right (see
   front-page.php). Carries the same z-index:30 as .solution-finder above,
   for the same reason: it has to paint over the company panels that
   follow it so an open dropdown isn't hidden behind them. */
.brands-head {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.brands-head-copy h2 { margin: 0; max-width: 16ch; }
.brands-head-copy p { margin: 1rem 0 0; max-width: 520px; color: var(--text-secondary); }
@media (max-width: 900px) {
  .brands-head { grid-template-columns: 1fr; }
  .solution-finder { justify-content: flex-start; }
}
.solution-finder-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 240px;
}
.solution-finder-field .field-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Custom Listbox Dropdown -- replaces a plain <select> (Lee: "very basic
   like that, not far off regular un-styled html"). Built on native
   <details>/<summary> (see td_render_finder_listbox(), functions.php) so
   open/close, keyboard access and radio-group semantics all come from the
   browser for free -- td-main.js only ever updates the visible summary text
   and closes the panel on selection, both cosmetic. */
.td-listbox { position: relative; }
.td-listbox-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 240px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.td-listbox-trigger::-webkit-details-marker { display: none; }
.td-listbox:hover .td-listbox-trigger { border-color: var(--td-accent); }
.td-listbox-trigger:focus-visible { outline: 2px solid var(--td-accent); outline-offset: 1px; }
.td-listbox[open] .td-listbox-trigger { border-color: var(--td-accent); }
.td-listbox-chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-secondary); transition: transform 0.18s ease; }
.td-listbox[open] .td-listbox-chev { transform: rotate(180deg); }
.td-listbox-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
}
.td-listbox-option { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; }
.td-listbox-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.td-listbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.td-listbox-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
}
.td-listbox-check::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--td-red);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.td-listbox-option input:checked ~ .td-listbox-row .td-listbox-check::after { opacity: 1; }
.td-listbox-option input:checked ~ .td-listbox-row .td-listbox-check { border-color: var(--td-red); }
.td-listbox-option input:checked ~ .td-listbox-row { background: var(--bg-page); font-weight: 700; }
.td-listbox-option input:hover ~ .td-listbox-row,
.td-listbox-option input:focus-visible ~ .td-listbox-row { background: var(--bg-page); }

/* Result line under the dropdowns (visible only while a filter is on). */
/* contain: inline-size stops this sentence from widening the finder column
   (and squeezing the heading beside it); it wraps within the dropdowns' width. */
.solution-finder-status { flex-basis: 100%; contain: inline-size; margin: 0.25rem 0 0; font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.solution-finder-reset {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--td-accent);
  padding: 0.75rem 0.25rem;
  text-decoration: underline;
}
.solution-finder-reset:hover { color: var(--td-accent-hover); }

/* Expanding Split Panels -- restyled 2026-09-24 from a uniform 3-col card
   grid (Lee: "very basic and boring... come up with some unique,
   interesting concepts", picked this from a visual concept review). Five
   full-height panels sit edge to edge in one flex row; each is flex:1 at
   rest, so hovering/focusing ONE panel up to a much larger flex-grow value
   automatically shrinks the other four in the same motion -- no separate
   "shrink the siblings" rule needed, that's just how flexbox distributes
   the row's width. The Solution Finder's .is-match/.is-dimmed classes hook
   into the exact same flex-grow mechanism, so a filtered match and a hover
   read as the same "brought into focus" gesture. */
.brand-grid {
  position: relative;
  display: flex;
  align-items: stretch;
  /* 55vh leaves room for the heading and finder above, so the heading,
     finder and all five panels fit on one laptop screen together. */
  height: clamp(360px, min(46vw, 55vh), 620px);
  overflow: hidden;
  /* No border-radius/box-shadow -- this row is edge-to-edge (see
     front-page.php's comment on why it sits outside .container), and
     rounded corners read as "discrete floating card", the opposite of
     flush/full-bleed. They also broke outright with the border-image bar
     below: border-image ignores border-radius completely, so the old
     rounded version showed the flat two-tone bar cutting straight across
     while the corner curved independently underneath it -- a visible gap. */
  border-radius: 0;
}
/* The two-tone red/navy bar already used for .section-rule and the About
   page's milestone flag -- the same "one Group, five companies" motif, here
   as a single edge tying the row together instead of five separate per-card
   accent bars. A ::before instead of border-image/border-top: a flat solid
   bar has no corners to go wrong, and this stays correct if a border-radius
   ever comes back (border-image can't -- see the comment above). */
.brand-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 5;
  background: linear-gradient(to right, var(--td-accent) 0 50%, var(--td-red) 50% 100%);
}

.brand-card {
  position: relative;
  flex: 1 1 0;
  min-width: 64px;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-right: 1px solid rgba(255,255,255,.14);
}
.brand-card:last-child { border-right: none; }

/* C1 (16 Nov 2026): the open panel is now ".is-open", a class td-main.js puts
   on the card the visitor last hovered or tabbed to. It used to be ":hover",
   so everything closed again the moment the pointer left, which punished a
   visitor who was moving toward something they had just opened. ".is-open"
   stays until a different card is opened. ":focus-within" is kept as well,
   and ".is-match" (a company finder result) still wins over both. */
.brand-card.is-open, .brand-card:focus-within, .brand-card.is-match { flex-grow: 6; }
/* A finder match with an active selection (is-match present anywhere in
   the grid) still gets its own sibling treatment: the non-matches shrink
   further AND dim, rather than just losing the flex-grow race -- makes a
   real filter result unambiguous, not just "the smallest panel". Plain
   hover/focus (no filter active) relies on flex-grow alone; see the
   :not(:has(.is-match)) guard below for why the two don't fight. */
.brand-grid:has(.is-match) .brand-card.is-dimmed { flex-grow: 0.5; opacity: 0.6; }

.brand-card-bg {
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}
.brand-card.is-open .brand-card-bg, .brand-card:focus-within .brand-card-bg, .brand-card.is-match .brand-card-bg { transform: scale(1.05); }
.brand-card-bg img { width: 100%; height: 100%; object-fit: cover; }

.brand-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  transition: background var(--transition);
}
.brand-card.is-open .brand-card-overlay, .brand-card:focus-within .brand-card-overlay, .brand-card.is-match .brand-card-overlay { background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.15) 100%); }

/* Collapsed (at-rest) state -- the company's white logo laid flat near the
   bottom plus its accent-colour dot, so a narrow panel still identifies itself
   without needing the full expanded content to fit. (It was the name running
   sideways until C1, 16 Nov 2026.) Faded out (not removed) on
   expand so the transition is a crossfade against .brand-card-content
   rather than a jump cut. */
.brand-card-collapsed {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.75rem 0;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.brand-card.is-open .brand-card-collapsed, .brand-card:focus-within .brand-card-collapsed, .brand-card.is-match .brand-card-collapsed { opacity: 0; pointer-events: none; }
/* The logo is capped by width AND height: the logos are very different
   shapes (a tall stacked crest next to long wordmarks), and a closed panel
   is only about 130-145px wide on a laptop. */
.brand-card-collapsed-logo {
  display: block;
  max-width: 80%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Fallback for a company with no logo: its name, flat (not sideways), wrapping
   within the narrow panel. */
.brand-card-collapsed-label {
  padding: 0 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}
.brand-card-collapsed-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.brand-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease 0.05s;
}
.brand-card.is-open .brand-card-content, .brand-card:focus-within .brand-card-content, .brand-card.is-match .brand-card-content { opacity: 1; }
/* Click-through fix (2026-09-24, Lee: "clicking anywhere inside one of these
   companies should take you to the company site... at the moment only
   clicking products work"). .brand-card-content and .brand-card-collapsed
   both fill the whole card (inset:0) and sit ABOVE .brand-card-cover-link,
   so they were swallowing every click that wasn't on a product chip.
   pointer-events:none lets clicks fall through them to the full-card link
   underneath; the product links opt back in, so they still go to their own
   product pages. Hover still works, because hovering the cover link is
   hovering the card. */
.brand-card-content,
.brand-card-collapsed { pointer-events: none; }
.brand-card-content a { pointer-events: auto; }

/* Now the panel's one visual identifier (see front-page.php: the separate
   text title was dropped as redundant -- "our company logos contain the
   company name"), so this is sized/spaced like a heading, not the small
   eyebrow-style label it used to sit above. */
.brand-card-logo { margin-bottom: 0.85rem; }
.brand-card-logo--text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-card-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 360px;
  white-space: normal;
}

/* Featured product chips -- real category names (see 'product_links' in
   td_get_brands(), functions.php), each one a real link to that specific
   product/category page on the company's own site, not decorative text --
   kept in the normal accessible tree rather than aria-hidden. */
.brand-card-products {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.brand-card-product-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  /* Sits above .brand-card-cover-link (z-index: 1, below) so this remains
     its own independently-clickable target instead of the whole-card link
     swallowing the click -- see front-page.php's comment on why the whole
     card stopped being one big <a>. */
  position: relative;
  z-index: 2;
}
a.brand-card-product-link:hover,
a.brand-card-product-link:focus { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.5); }

.brand-card-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  /* Red rather than navy -- this label only ever sits on the permanently-
     dark photo overlay (see .brand-card-overlay), so it can use the same
     red as everywhere else instead of needing a theme-aware token. */
  color: var(--td-red-light);
}

/* Card cover link -- the whole card's one primary action (visit the
   company site), covering the full card as a plain sibling <a> rather than
   wrapping all the content in one big <a> as before (see front-page.php).
   Positioned relative to .brand-card (already position:relative) since this
   link is a direct child of it, not nested inside .brand-card-content
   (which only covers the card's bottom text portion, not the photo area
   above it -- nesting it there would only make ~half the card clickable).
   z-index: 1 keeps it BELOW the product links (z-index: 2 above), so those
   stay independently clickable on top of it -- something a single wrapping
   <a> could never do (nested <a> elements are invalid HTML and browsers
   silently break them). */
.brand-card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Mobile fallback -- five slivers of a thin panel don't work below tablet
   width (nowhere near enough room even collapsed, and touch has no hover to
   reveal anything with). Below the breakpoint this reverts to a simple
   stacked list of always-expanded cards -- same underlying markup, just a
   different flex direction and the collapsed/expanded opacity toggle turned
   off, so nothing is ever permanently hidden on a phone.

   "(hover: none)" (B9, 16 Nov 2026) also applies this stacked layout to touch
   screens wider than 899px, such as a tablet in landscape. Those have no
   hover, so with the side-by-side panels a tap went straight to the
   company's website and the visitor never saw the card's content. */
@media (max-width: 899px), (hover: none) {
  .brand-grid { flex-direction: column; height: auto; }
  .brand-card { flex: none; min-height: 220px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.14); }
  .brand-card:last-child { border-bottom: none; }
  .brand-card.is-open, .brand-card:focus-within, .brand-card.is-match { flex-grow: 0; }
  .brand-grid:has(.is-match) .brand-card.is-dimmed { flex-grow: 0; opacity: 0.75; }
  .brand-card-collapsed { display: none; }
  /* position: relative puts the text back in the normal page flow, so the
     card grows to fit it. Left as position: absolute (the desktop setting)
     the card stayed at its 220px minimum and cut the logo and description
     off the top of four of the five cards on phones (found 2026-11-16). */
  .brand-card-content { opacity: 1; position: relative; min-height: 220px; padding: 1.5rem 1rem; }
}

/* Brand card — large variant (for gateway page) */

/* Company directory (Contact page, page-contact.php) -- replaced the
   logo-only .brand-contact-card tiles 2026-09-24. One hairline-ruled row per
   company: logo | name + what it does | "Contact X" action. The whole row is
   the link. On hover the company's own brand colour (--brand-color, set
   per row from td_get_brands()) grows in as a bar down the left edge, and
   the arrow slides -- the same red/brand-bar hover language as the hairline
   grids elsewhere, so it reads as "clickable" without a floating card. */
.company-directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-color); }
.company-directory li { border-bottom: 1px solid var(--border-color); }
.company-directory-row {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.35rem 1.25rem 1.35rem 1.5rem;
  background: var(--bg-surface);
  transition: background var(--transition);
}
.company-directory-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand-color, var(--td-red));
  transform: scaleY(0.35);
  transition: transform 0.3s ease;
}
.company-directory-row:hover,
.company-directory-row:focus-visible { background: var(--bg-page); }
.company-directory-row:hover::before,
.company-directory-row:focus-visible::before { transform: scaleY(1); }
.company-directory-logo { display: flex; align-items: center; height: 48px; }
.company-directory-logo img { max-width: 170px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.company-directory-name { display: block; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 900; color: var(--text-primary); line-height: 1.25; }
.company-directory-tagline { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--text-secondary); }
.company-directory-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color var(--transition);
}
.company-directory-cta svg { transition: transform var(--transition); }
.company-directory-row:hover .company-directory-cta,
.company-directory-row:focus-visible .company-directory-cta { color: var(--td-red); }
.company-directory-row:hover .company-directory-cta svg,
.company-directory-row:focus-visible .company-directory-cta svg { transform: translateX(5px); }
.company-directory-section .section-header a { color: var(--text-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  /* Phone: logo, then name/tagline, then the action, stacked full width
     (side by side, the action squeezed the text into a narrow column). */
  .company-directory-row { grid-template-columns: 1fr; row-gap: 0.6rem; padding: 1.1rem 1rem 1.1rem 1.25rem; }
  .company-directory-logo { height: 36px; }
  .company-directory-logo img { max-height: 34px; }
}
/* ── 12. News / Cards ────────────────────────────────────────────────────────── */
/* Homepage news moment -- featured story + dense list, NOT the 3-equal-card
   .news-grid below (that stays for /news and search results, where every
   result is genuinely equal weight; see index.php/archive.php/search.php).
   "Concept A" from a visual concept review, Lee's pick 2026-09-24. */
.news-feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.news-feature {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.news-feature-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.news-feature:hover .news-feature-image { transform: scale(1.04); }
.news-feature-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 55%, transparent 100%); }
.news-feature-body { position: relative; z-index: 1; padding: 2rem; }
.news-feature-date { display: block; font-size: 0.8rem; color: rgba(255,255,255,.7); margin-top: 0.6rem; }
.news-feature-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.25; margin: 0.6rem 0 0; }
.news-feature-excerpt { font-size: 0.9rem; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0.6rem 0 0; max-width: 440px; }

.news-list { display: flex; flex-direction: column; }
.news-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}
.news-list-item:first-child { padding-top: 0; }
.news-list-thumb { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius-md); background: var(--border-color); }
.news-list-text { min-width: 0; }
.news-list-date { display: block; font-size: 0.75rem; color: var(--text-secondary); }
.news-list-title { display: block; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin-top: 0.2rem; }
.news-list-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--td-accent);
  text-decoration: none;
}
.news-list-all:hover { color: var(--td-accent-hover); }
@media (max-width: 899px) {
  .news-feature-grid { grid-template-columns: 1fr; }
}

/* /news, archives and search results. Hairline grid since 2026-09-24
   (same construction as .benefits-grid): images run edge to edge across
   each cell, no floating cards or lift-on-hover. The image zoom on hover
   stays, as the one "this is clickable" cue. */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.news-card {
  position: relative; /* anchors the category tag over the image */
  background: var(--bg-surface);
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.news-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface-alt);
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-category {
  position: absolute;
  top: 1rem; left: 1rem;
  /* Was navy -- every news card on the site now carries a red category
     tag instead, so red shows up on the news listing/archive too. */
  background: var(--td-red);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.news-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.news-card-date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.news-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: color var(--transition);
  display: block;
}
.news-card-title:hover { color: var(--text-accent); }
/* The <h2> wrapping each card's title link (2026-09-24: the titles were
   plain links, so listing pages had no headings between the <h1> and the
   footer). It takes its look entirely from .news-card-title inside it. */
.news-card-heading { font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: inherit; margin: 0 0 0.75rem; }
.news-card-excerpt { font-size: 0.9rem; color: var(--text-secondary); flex: 1; margin: 0; }
a.news-card-category:hover { background: var(--td-ink); color: #fff; }

/* ── News listing (template-parts/news-listing.php, 2026-10-08) ──
   Toolbar of topic/year links + search, a big lead story, then the grid. */
.news-hub { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.news-filters { display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; min-width: 0; }
.news-filter-group { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.news-filter-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
/* The chips wrap on desktop; on phones they scroll sideways in one row
   instead of stacking into a tall block above the news (see 640px rule). */
.news-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.news-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem; /* comfortable tap target */
  padding: 0 0.9rem;
  border: 1px solid var(--border-color-muted);
  border-radius: 999px;
  background: var(--bg-surface);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.news-chip:hover { border-color: var(--td-ink); }
.news-chip.is-current { background: var(--td-ink); border-color: var(--td-ink); color: #fff; }
.news-chip-count { font-size: 0.75rem; font-weight: 600; opacity: 0.6; }
.news-search { flex: 0 1 260px; min-width: 220px; margin-left: auto; }
.news-search .search-field { padding: 0.6rem 0.9rem; }
.news-status { margin: 1rem 0 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }

/* Lead story: photo two-thirds, text one-third, flush with the grid below
   (same hairline border), so the page opens with one strong image. */
.news-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-bottom: 0;
}
/* The photo fills the full height of the row, however long the headline is. */
/* The hover zoom scales the <img>, which gives it its own layer that can paint
   over the text beside it. isolation + min-width:0 keep the zoomed photo
   clipped inside its own column, and the text body sits above it (z-index). */
/* Root cause of the "photo covers the text" bug: aspect-ratio + min-height:100%
   made the photo box grow WIDER than its grid column (it overlapped the text by
   ~90px). Now the <img> is absolutely positioned, so it fills the column but
   can no longer influence its size; the row height comes from the text and
   min-height. The 16/9 ratio is only used when stacked on phones (see below). */
.news-lead-image { display: block; position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: clamp(260px, 30vw, 420px); background: var(--bg-surface-alt); }
.news-lead-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-slow); }
.news-lead:hover .news-lead-image img { transform: scale(1.03); }
.news-lead-body {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.news-lead-kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-red);
}
.news-lead-kicker a { color: inherit; }
.news-lead-title { margin: 0; font-size: clamp(1.4rem, min(2.4vw, 4vh), 2.1rem); line-height: 1.15; }
.news-lead-title a { color: var(--text-primary); text-decoration: none; }
.news-lead-title a:hover { color: var(--text-accent); }
.news-lead-excerpt { margin: 0; color: var(--text-secondary); }
.news-lead .news-card-meta { margin: 0; }
/* With no grid below it (a page holding one article) the lead closes itself. */
.news-lead:not(:has(+ .news-grid)) { border-bottom: 1px solid var(--border-color); }
.news-pagination { margin-top: 2.5rem; }
@media (max-width: 900px) {
  .news-lead { grid-template-columns: 1fr; }
  .news-lead-image { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .news-toolbar { align-items: stretch; }
  .news-search { flex-basis: 100%; }
  .news-filter-group { flex-direction: column; align-items: flex-start; gap: 0.4rem; width: 100%; }
  .news-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}
.read-more {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap var(--transition);
}
.read-more:hover { gap: 0.75rem; }
/* Phones (B7): the "Read the full story" link was 21px tall. Padding gives
   it a proper tap size without changing how it looks. */
@media (max-width: 640px) {
  .read-more { padding: 0.6rem 0; }
}
.read-more::after { content: '→'; }

/* Pagination (WordPress default the_posts_pagination() markup) */
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
}
a.page-numbers:hover { border-color: var(--td-accent); color: var(--text-accent); }
.page-numbers.current {
  background: var(--td-accent);
  border-color: var(--td-accent);
  color: var(--td-white);
  cursor: default;
}
.page-numbers.dots {
  border: none;
  background: none;
  min-width: auto;
  padding: 0 0.25rem;
  color: var(--border-color-muted);
}
.page-numbers.prev,
.page-numbers.next {
  padding: 0 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-color: var(--text-primary);
}
a.page-numbers.prev:hover,
a.page-numbers.next:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-page);
}

/* Single news post sidebar (single.php) -- hairline-ruled blocks, the same
   flat look as the rest of the site (was rounded, inline-styled boxes). */

/* ── 14. Accreditations ──────────────────────────────────────────────────────── */
/* Restyled 2026-09-24: a hairline grid (same construction as
   .benefits-grid) with the standard's code set big as a typographic
   "badge", instead of a dark circle with tiny text in a floating card.
   A real logo (the CPT's featured image) still shows when one is set. */
.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}
.accreditation-card {
  position: relative;
  background: var(--bg-surface);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  text-align: left;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition);
}
.accreditation-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 0; height: 3px;
  background: var(--td-red);
  transition: width 0.35s ease;
}
.accreditation-card:hover { background: var(--bg-page); }
.accreditation-card:hover::before { width: calc(100% + 2px); }
.accreditation-badge {
  display: block;
  margin: 0 0 1.1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--td-red);
}
.accreditation-badge img { width: auto; height: 56px; object-fit: contain; }
.accreditation-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 900; color: var(--text-primary); margin-bottom: 0.2rem; }
.accreditation-issuer { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.accreditation-desc { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.75rem; line-height: 1.55; }
.accreditation-desc p { margin: 0; color: inherit; }

/* ── 15. Careers ─────────────────────────────────────────────────────────────── */
/* auto-fit/minmax (not a fixed repeat(3,...)) -- reused by 5 templates
   (careers/apprenticeships/schools/environment/manufacturing-uk, see the
   file header comment on why this shares one class across ACF repeaters
   with different content) rendering anywhere from 3 to 6 short items.
   Fixed 3 columns left real width unused whenever a wide viewport had room
   for 4-5 without cards getting cramped; auto-fit reflows to fill it
   instead (Baymard: "Additional Product Columns" on large screens). */
/* Hairline grid (2026-09-24 site-wide pass) -- was floating rounded cards
   with drop shadows and a coloured left strip. Now the cells sit edge to
   edge, separated only by 1px rules, like a spec sheet or an editorial
   index. The grid itself draws the top and left lines, and each cell draws
   its own right and bottom line, so an incomplete last row just ends
   cleanly instead of showing grey gaps.
   The same rules also cover the other "icon + title + text" grids that
   were each their own card style: .facts-grid, .csr-items-grid and
   .partnerships-grid. */
.benefits-grid,
.facts-grid,
.csr-items-grid,
.partnerships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}
.benefits-grid { grid-template-columns: repeat(3, 1fr); } /* 6 cards = 3 x 2, not an auto-fit 4 + 2 with an empty corner (meeting 2026-10-08) */
/* A photo-tile grid of exactly 4 (People & Community) goes 4 across, then
   2 x 2, then 1 -- never an auto-fit 3 + 1 with a lone tile. */
@media (max-width: 1100px) {
  .gateway-grid:has(> .gateway:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .gateway-grid:has(> .gateway:nth-child(4):last-child) .gateway:nth-child(3) { border-left: 0; }
}
@media (max-width: 600px) {
  .gateway-grid:has(> .gateway:nth-child(4):last-child) { grid-template-columns: 1fr; }
}
.benefit-card,
.partnership-card {
  position: relative;
  background: var(--bg-surface);
  border: 0;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  text-align: left;
  transition: background var(--transition);
}
/* Red bar that grows along the top edge on hover -- the same accent as the
   story progress rail, and the one thing that marks the hovered cell. */
.benefit-card::before,
.partnership-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 0;
  height: 3px;
  background: var(--td-red);
  transition: width 0.35s ease;
}
.benefit-card:hover::before,
.partnership-card:hover::before { width: calc(100% + 2px); }
.benefit-card:hover,
.partnership-card:hover { background: var(--bg-page); transform: none; box-shadow: none; }
/* Plain red stroke icon, no dark tile behind it -- lighter and more
   "technical drawing" than a filled square badge. */
.benefit-icon,
.partnership-icon {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--td-red);
  margin-bottom: 1.1rem;
}
.benefit-icon svg,
.partnership-icon svg { width: 28px; height: 28px; }
.benefit-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; line-height: 1.25; color: var(--text-primary); margin-bottom: 0.5rem; }
.benefit-desc { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 0; }

.vacancies-list { display: flex; flex-direction: column; gap: 1rem; }
.vacancy-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 1.5rem;
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.vacancy-item:hover { box-shadow: var(--shadow-md); border-color: var(--td-red); }
.vacancy-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--td-ink); display: grid; place-items: center; flex-shrink: 0; }
.vacancy-info { flex: 1; }
.vacancy-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.vacancy-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.vacancy-tag { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); padding: 0.2rem 0.6rem; background: var(--bg-surface-alt); border-radius: 2px; }

/* ── 16. Board Members ──────────────────────────────────────────────────────── */
/* Restyled 2026-09-24: square portraits filling the full width of each
   cell in a hairline grid (same construction as .people-grid), instead of
   small ringed circles floating in centred cards. Big initials stand in
   when a member has no photo yet. */
.board-grid {
  display: grid;
  /* 190px minimum fits all six directors on one row on a laptop or
     desktop (was 260px: four then two, two screens tall on a laptop). */
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}
.board-card {
  text-align: left;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  /* A column, so the "Read full bio" button and the Email/LinkedIn links can
     be pushed to the bottom of the card (see "Line up the bottoms" below). */
  display: flex;
  flex-direction: column;
}
.board-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--td-ink);
}
.board-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
/* No photo uploaded yet: a light tile with big initials instead of a black
   block. It keeps the same 4:5 shape as a real portrait so names line up
   across the row when some directors have photos and some don't. */
.board-photo:has(.board-photo-placeholder) { background: var(--bg-surface-alt); }
.board-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading); font-size: clamp(3.5rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.9;
  color: var(--border-color-muted);
}
.board-card > :not(.board-photo) { margin-left: 1.1rem; margin-right: 1.1rem; }
.board-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 900; color: var(--text-primary); margin-top: 1.4rem; margin-bottom: 0.2rem; }
.board-role { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--td-red); margin-bottom: 0.75rem; }
.board-bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }
.board-bio p { margin: 0 0 0.6em; }
.board-bio p:last-child { margin-bottom: 0; }
/* Full bios (2026-10-13): with JavaScript, the card shows the first 6 lines;
   "Read full bio" (td-main.js) opens the whole bio in a pop-up
   (.board-dialog, further down). Without JavaScript the bio simply shows in
   full. 0.9rem x 1.6 line height x 6 lines = 8.64rem. */
.js .board-bio {
  max-height: 8.64rem;
  overflow: hidden;
}
/* The fade only when text really is cut off (td-main.js adds .is-clamped). */
.js .board-bio.is-clamped {
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.js .board-bio:has(+ .board-bio-toggle:not([hidden])) { margin-bottom: 0.5rem; }
.board-bio-toggle {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--td-red);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
}
.board-bio-toggle:hover { color: var(--td-red); }
.board-bio-toggle[hidden] { display: none; }
/* Email + LinkedIn links side by side under the bio. */
.board-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-bottom: 1.5rem; }
.board-links .board-linkedin { margin-top: 0; }
/* Line up the bottoms (Lisa Adams, 2026-10-28). Every card in a row is
   already the same height (grid rows stretch), but a long job title like
   "Chief Technology and Information Officer" wraps onto more lines, which
   pushed that card's bio, button and links further down than its
   neighbours'. margin-top: auto on whichever of these comes first after the
   bio soaks up the spare space above it, so the button and links sit at the
   bottom of every card, level across the row. Three cases: the button is
   showing; the bio is short so the button is hidden (links come next); or
   there's no bio at all (links follow the role). */
.board-card > .board-bio-toggle,
.board-card > .board-bio-toggle[hidden] + .board-links,
.board-card > .board-role + .board-links { margin-top: auto; }
/* In a flex column a button would stretch to the full card width; keep it
   only as wide as its text so its red underline stays short. */
.board-card > .board-bio-toggle { align-self: flex-start; }

/* Numbered columns -- big numeral, title and text per column, hairlines
   between columns (Board values). Works on light or dark sections. */
.numbered-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.numbered-col { padding: 0 clamp(1rem, 2.5vw, 2.25rem); }
.numbered-col:first-child { padding-left: 0; }
.numbered-col + .numbered-col { border-left: 1px solid var(--border-color); }
.numbered-col-num { display: block; font-family: var(--font-heading); font-size: clamp(2.4rem, min(4.5vw, 6.4vh), 4rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; color: var(--td-red); }
.numbered-col-title { font-size: 1.3rem; font-weight: 900; margin: 1rem 0 0; }
.numbered-col-text { font-size: 0.92rem; margin: 0.6rem 0 0; color: var(--text-secondary); }
.section--dark .numbered-col + .numbered-col { border-left-color: var(--band-border); }
.section--dark .numbered-col-num { color: var(--td-red-light); }
.section--dark .numbered-col-text { color: rgba(255,255,255,.7); }
@media (max-width: 800px) {
  .numbered-cols { gap: 2rem; }
  .numbered-col, .numbered-col:first-child { padding: 0; }
  .numbered-col + .numbered-col { border-left: 0; }
}
/* The last band on a page that ends dark, just above the (also dark)
   footer -- same hairline separation as .next-band. */
.section--last { border-bottom: 1px solid var(--band-border); }
.board-linkedin { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-accent); transition: color var(--transition); }
.board-linkedin:hover { color: var(--text-primary); }

/* ── 17. Contact ─────────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  /* Was align-items:start -- with a form that's naturally taller than the
     details column, that left the map a fixed 320px and stranded a big
     dead gap underneath it rather than the map ever using that space. This
     stretches both columns to the same height and .contact-map below grows
     (flex:1) to fill whatever's left in its column instead. */
  align-items: stretch;
}
.contact-form { }
/* Tightened 2026-10-05 (1.5rem gaps, 160px message box) so the whole form,
   Send button included, sits closer to one laptop screen. */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-primary); margin-bottom: 0.5rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text-base);
  background: var(--bg-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--td-accent);
  box-shadow: 0 0 0 3px rgba(14,14,13,.08);
}
.form-input.error, .form-textarea.error, .form-select.error { border-color: var(--td-error); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-error { font-size: 0.8rem; color: var(--td-error); margin-top: 0.35rem; display: block; }
.form-success {
  display: none;
  background: var(--success-bg); border: 1px solid var(--success-border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; color: var(--success-text); font-weight: 600;
}
.form-success.visible { display: block; }

/* Contact page tidy-up (2026-09-24): these replaced inline styles in
   page-contact.php. The detail rows are now a denser hairline list with a
   plain red stroke icon (was a dark square tile per row), matching the
   rest of the site. */
.contact-main { background: var(--bg-surface); }
.company-directory-section { border-top: 1px solid var(--border-color); }
.contact-intro { color: var(--text-secondary); margin: 0.9rem 0 2rem; }
/* Target of the "general enquiry form" link in the directory header --
   stops the fixed site header covering the heading once it's jumped to. */
#contact-form-heading { scroll-margin-top: calc(var(--nav-height) + var(--brand-bar-height) + 1.5rem); }
.form-required { color: var(--td-red); }
.form-consent { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-consent input { margin-top: 0.1rem; width: 1.25rem; height: 1.25rem; flex-shrink: 0; accent-color: var(--td-ink); } /* 20px: easier to tap than the 13px default */
.form-consent label { font-size: 0.88rem; color: var(--text-secondary); cursor: pointer; }
/* The consent error sits on its own line under the checkbox and label. */
.form-consent { flex-wrap: wrap; }
.form-consent label { flex: 1; min-width: 0; } /* fill the row beside the checkbox */
.form-consent .form-error { flex-basis: 100%; margin-top: 0; }
/* Form-level message when sending fails (replaces a browser alert()). */
.form-status { margin: 0 0 1rem; padding: 0.85rem 1rem; font-size: 0.9rem; border-left: 3px solid var(--td-error); background: var(--bg-surface-alt); color: var(--text-primary); }
.form-status[hidden] { display: none; }
/* Contact-form spam trap: off-screen (not display:none, which some bots
   skip), so people never see it. See page-contact.php. */
.td-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent a { color: var(--text-accent); text-decoration: underline; }
.form-submit { width: 100%; justify-content: center; }
.contact-details { display: flex; flex-direction: column; }
.contact-detail-list { margin-top: 1.5rem; border-top: 1px solid var(--border-color); }
/* Desktop: details in two columns. Stacked in one, the five details plus
   the map made this column over 1,000px tall, longer than the form beside
   it and longer than a laptop screen. */
@media (min-width: 1024px) {
  .contact-detail-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}
.contact-detail-item {
  display: flex; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border-color);
}
.contact-detail-icon {
  width: 22px; height: 22px;
  background: none;
  color: var(--td-red);
  display: grid; place-items: center; flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-detail-note { font-size: 0.85rem; color: var(--text-secondary); }
.contact-detail-label { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 0.25rem; }
.contact-detail-value { font-weight: 500; color: var(--text-primary); }
.contact-detail-value a { transition: color var(--transition); }
.contact-detail-value a:hover { color: var(--text-accent); }

.contact-map {
  overflow: hidden;
  flex: 1;
  min-height: 220px;
  margin-top: 1.75rem;
  border: 1px solid var(--border-color);
}
.contact-map iframe { width: 100%; height: 100%; border: none; }
/* Click-to-load placeholder (see the comment in page-contact.php): a quiet
   panel the same size as the map, with the button, the cookie note and a
   plain link to Google Maps. */
.contact-map--facade { display: flex; background: var(--bg-surface-alt); }
.contact-map-placeholder {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
}
.contact-map-note { margin: 0; max-width: 34ch; font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); }
.contact-map-note a { color: var(--text-primary); text-decoration: underline; }

/* ── 19. CTAs / Callouts ─────────────────────────────────────────────────────── */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
/* Homepage closing panels (careers / contact). Restyled 2026-09-24: real
   photos behind a bottom-up scrim, big story-style heading, content sitting
   at the bottom of the panel. Was two flat dark gradient boxes. */
.cta-panel {
  position: relative;
  min-height: clamp(320px, min(38vw, 52vh), 520px);
  padding: clamp(2rem, min(5vw, 6.4vh), 4rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--band-bg);
}
.cta-panel + .cta-panel { border-left: 1px solid rgba(255,255,255,.12); }
.cta-panel-bg {
  position: absolute; inset: 0;
  transition: transform 0.8s ease;
}
.cta-panel-bg img { width: 100%; height: 100%; object-fit: cover; } /* fills the panel like background-size: cover did */
.cta-panel:hover .cta-panel-bg { transform: scale(1.04); }
.cta-panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,13,.95) 0%, rgba(14,14,13,.7) 45%, rgba(14,14,13,.3) 100%);
}
.cta-panel-content { position: relative; z-index: 1; max-width: 520px; }
.cta-panel-eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--band-kicker); margin-bottom: 0.9rem;
}
.cta-panel-eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.cta-panel-title { font-size: clamp(1.7rem, min(3.4vw, 4.8vh), 3rem); font-weight: 900; letter-spacing: -0.02em; color: var(--band-text); line-height: 1.04; margin-bottom: 1rem; }
.cta-panel-text { color: rgba(255,255,255,.78); margin-bottom: 1.75rem; }
@media (max-width: 800px) {
  .cta-split { grid-template-columns: 1fr; }
  .cta-panel + .cta-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
}

/* ── 20. Intro / Feature Sections ───────────────────────────────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.feature-split.reverse .feature-image { order: 2; }
.feature-split.reverse .feature-content { order: 1; }
.feature-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
/* For a tall portrait photo shown in a wide box: object-fit: cover crops
   from the centre by default, which cut the person's head off on the
   Apprenticeships "Real Job From Day One" photo (B16, 16 Nov 2026). Anchoring
   the crop near the top (12% down) keeps the head and shoulders in frame. */
.feature-image img.img-crop-top { object-position: center 12%; }
/* When a .csr-pillar-video facade sits inside .feature-image (Manufacturing
   in the UK's "Our Commitment" video) it must fill the same 4:3 box as the
   photo it replaces, not keep its own 16:9 -- otherwise it only fills the
   top of the box, leaving .feature-image-accent's hidden-behind-the-photo
   square exposed in the empty space below. */
.feature-image .csr-pillar-video { aspect-ratio: unset; width: 100%; height: 100%; }
/* The offset navy square that used to peek out from behind every feature
   photo. Retired 2026-09-24: it only made sense with rounded photos, and a
   decorative shape poking out of a flush, square image reads as a mistake.
   Hidden here rather than removed from ~10 templates at once. */
.feature-image-accent { display: none; }
/* Top-aligned variant for splits whose two columns are both text (e.g.
   Careers' "How to Apply" copy beside its step list), where centring
   would leave the shorter column floating in the middle. */
.feature-split--top { align-items: start; }
/* When the right-hand list is longer than the left-hand copy (Accreditations'
   seven principles, Careers' development journey), pin the copy so its
   heading and button stay on screen while the list scrolls past. Desktop
   only; on narrow screens the two stack. */
@media (min-width: 901px) {
  .feature-split--top > .feature-content { position: sticky; top: calc(var(--nav-height-sm) + 2rem); }
}
.feature-content {}
.feature-content .section-eyebrow { margin-bottom: 0.9rem; }
.feature-content h2 { margin-bottom: 0; }
/* The first paragraph under a feature heading -- replaces the
   style="margin-top:1.25rem" that was repeated inline on every template. */
.feature-lead { margin-top: 1.25rem; }
.feature-figures { margin-top: 2rem; }
/* The single button under a feature's copy -- replaces style="margin-top:1.75rem". */
.feature-cta { margin-top: 1.75rem; }
.brand-products-list {
  list-style: none;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Split band -- a flush, full-width 50/50 split: text on one half, and a
   photo filling the other half edge to edge, top to bottom. The same way
   the story chapters let imagery fill the screen, instead of a rounded
   photo floating inside a padded container. (Homepage About and People &
   Community.)
   The text side's outer padding lines its text up with the site's normal
   .container edge: max() takes whichever is bigger, the usual gutter or
   the gap a centred 1240px container would leave, so the copy never sits
   further out than every other section's content.
   --media-left mirrors it, and --dark is the dark-band version. */
.split-band {
  --split-outer: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(400px, min(44vw, 62vh), 620px);
  background: var(--bg-surface);
}
.split-band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, min(6vw, 8vh), 5rem) clamp(2rem, 5vw, 5rem) clamp(3rem, min(6vw, 8vh), 5rem) var(--split-outer);
}
.split-band-copy h2 { margin: 0; }
.split-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.split-band-media { position: relative; overflow: hidden; background: var(--td-ink); min-height: 320px; }
.split-band-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Which side of a photo stays in view when it is cropped to fit (added
   2026-11-16). object-fit: cover trims whatever doesn't fit; by default it
   keeps the middle. These let a template keep the left or right part instead.
   Used on the Our Companies panels, where a landscape photo is shown as a
   tall slice (set per company in wp-admin > Company Cards). */
.split-band-media > img.img-focus-left  { object-position: 25% 50%; }
.split-band-media > img.img-focus-right { object-position: 75% 50%; }
.split-band--media-left .split-band-media { order: -1; }
.split-band--media-left .split-band-copy { padding-left: clamp(2rem, 5vw, 5rem); padding-right: var(--split-outer); }
.split-band--dark { background: var(--band-bg); }
.split-band--dark h2 { color: #fff; }
.split-band--dark p { color: rgba(255,255,255,.75); }
.split-band--dark .section-eyebrow { color: var(--band-kicker); }
/* Photo mosaic variant of the media half: one tall photo plus two stacked,
   separated by a thin 2px seam of the band colour rather than gaps. */
.split-band-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.split-band-mosaic figure { position: relative; margin: 0; overflow: hidden; }
.split-band-mosaic figure:first-child { grid-row: 1 / 3; }
.split-band-mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.split-band-mosaic figure:hover img { transform: scale(1.04); }
.split-band-mosaic figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(14,14,13,.85), transparent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .split-band { grid-template-columns: 1fr; min-height: 0; }
  .split-band-copy,
  .split-band--media-left .split-band-copy { padding: clamp(2.5rem, 7vw, 3.5rem) var(--container-pad); }
  .split-band-media { min-height: 0; aspect-ratio: 16 / 10; }
  .split-band--media-left .split-band-media { order: 0; }
  .split-band-mosaic { aspect-ratio: 4 / 3; }
}

/* Our Companies page -- one .split-band per company (page-brands.php).
   --brand-color is set inline per company (it's that company's data from
   td_get_brands()) and only drives the thin bar across the top of the
   photo. The company's white logo sits over a darkened corner of its
   photo, so each band is identifiable at a glance while scrolling. */
.company-band { min-height: clamp(440px, min(48vw, 70vh), 700px); }
@media (max-width: 900px) { .company-band { min-height: 0; } }
/* Desktop: copy gets 60% of the width, the photo 40%. At 50/50 the product
   descriptions wrapped to three lines in a narrow column, so each company
   panel was taller than a laptop screen. The photo still fills its side
   (object-fit: cover). Both rules are needed because the panels alternate
   photo-right and photo-left. */
@media (min-width: 901px) {
  .company-band { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .company-band.split-band--media-left { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.company-band .split-band-media::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--brand-color, var(--td-red));
  z-index: 2;
}
.company-band .split-band-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,13,.7) 0%, rgba(14,14,13,0) 45%);
  z-index: 1;
}
.split-band-media > img.company-logo {
  inset: auto;
  left: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: 220px;
  object-fit: contain;
  z-index: 2;
}
.company-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.company-fallback span { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: #fff; opacity: .3; text-transform: uppercase; }
.company-tagline { font-family: var(--font-heading); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; line-height: 1.4; color: var(--text-primary); margin: 1rem 0 0.75rem; }
.split-band--dark .company-tagline { color: #fff; }
.company-products { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--border-color); }
.company-products li { padding: 0.65rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); }
.company-products strong { display: block; font-family: var(--font-heading); font-weight: 800; color: var(--text-primary); }
/* Two columns on desktop: five products stacked in one column made each
   company panel ~990px tall on a 1366x768 laptop, taller than the screen. */
@media (min-width: 1024px) {
  .company-products { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}
.split-band--dark .company-products,
.split-band--dark .company-products li { border-color: var(--band-border); }
.split-band--dark .company-products li { color: rgba(255,255,255,.65); }
.split-band--dark .company-products strong { color: #fff; }
/* Linked Sites on the Our Companies page (added 2026-11-04): one compact,
   fully clickable panel per site, with the company colour as a left bar. */
.company-linked-sites { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.company-linked-site {
  display: grid; gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-color, var(--td-accent));
  background: var(--bg-surface-alt);
  transition: border-color var(--transition), background var(--transition);
}
.company-linked-site:hover { border-color: var(--brand-color, var(--td-accent)); }
.company-linked-site-kicker { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.company-linked-site strong { font-family: var(--font-heading); font-weight: 800; color: var(--text-primary); }
.company-linked-site-text { font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); }
.company-linked-site-go { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; color: var(--text-accent); margin-top: 0.25rem; }
.split-band--dark .company-linked-site { background: rgba(255,255,255,.04); border-color: var(--band-border); border-left-color: var(--brand-color, var(--td-accent)); }
.split-band--dark .company-linked-site strong { color: #fff; }
.split-band--dark .company-linked-site-text,
.split-band--dark .company-linked-site-kicker { color: rgba(255,255,255,.65); }
.split-band--dark .company-linked-site-go { color: var(--band-kicker); }
.company-news { margin-top: 2rem; }
.company-news-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.5rem; }
.company-news-item { display: block; padding: 0.6rem 0; border-top: 1px solid var(--border-color); }
.company-news-date { display: block; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--td-red); }
.company-news-title { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
.company-news-item:hover .company-news-title { color: var(--text-accent); }
.split-band--dark .company-news-label { color: rgba(255,255,255,.6); }
.split-band--dark .company-news-item { border-top-color: var(--band-border); }
.split-band--dark .company-news-date { color: var(--td-red-light); }
.split-band--dark .company-news-title { color: #fff; }
.split-band--dark .company-news-item:hover .company-news-title { color: var(--td-red-light); }

/* White strip holding the homepage's big-number row, directly under the
   About split. */
.figures-band { background: var(--bg-surface); padding-bottom: 0; } /* the figures' own padding is enough; extra band padding was the odd gap above the footer (meeting 2026-10-08) */
.figures-band .figure-row { border-top-color: var(--border-color); }
/* Dark version, directly under a dark .split-band (Environment's water
   numbers), so the two read as one section. */
.figures-band--dark { background: var(--band-bg); padding-top: 0.5rem; }
.figures-band--dark .figure-row { border-top-color: var(--band-border); }
.figures-band-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 0 0.9rem; }
/* Sentence-length figure labels -- readable sentence case, not the small
   uppercase label style used for one- or two-word labels. */
.figure-label--text { text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.45; }
/* A split band whose photo field is empty: let the copy use the full width. */
.split-band--no-media { grid-template-columns: 1fr; min-height: 0; }

/* A section's closing action, left-aligned under its content (replaces the
   old centred button rows). */
.section-foot { margin-top: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* History chronology (/history) -- see page-history.php and td-main.js's
   "History chronology" block. Two columns: .chrono-aside is sticky (pinned
   just under the fixed header while the list scrolls past) and shows the
   current milestone's year at story-stat scale plus a progress count/bar;
   .chrono-main is the list itself. The active milestone is full strength
   and the others dim slightly, so the eye stays on the one the big year
   refers to. No overflow on .chrono or its ancestors, or sticky stops
   working (same rule as .story). */
.chrono { background: var(--bg-surface); padding: clamp(3rem, min(6vw, 8vh), 5rem) 0; }
.chrono-inner {
  display: grid;
  /* One third / two thirds (C4, 16 Nov 2026). The left column only holds the
     big year and a thin progress bar, so at 0.9fr it was mostly empty space;
     narrowing it gives the milestone text the room instead. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.chrono-aside {
  position: sticky;
  top: calc(var(--nav-height) + 2.5rem);
}
.chrono-year {
  font-family: var(--font-heading);
  /* Smaller than before (was clamp(4rem, min(10vw, 15vh), 9.5rem)) because
     the column is now a third of the width (C4): at the old size "2000s" no
     longer fitted and broke onto two lines ("2000" / "s"). This size keeps a
     five-character decade like "2000s" on one line at 1280-1920px wide. */
  font-size: clamp(3.5rem, min(7.4vw, 13vh), 6.9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin: 0.5rem 0 0;
  /* Keeps short years ("1920") and ranges ("1940s–60s") from making the
     column jump in height as the text swaps. */
  min-height: 1.8em;
  overflow-wrap: anywhere;
}
.chrono-progress { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; max-width: 360px; }
.chrono-count { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: var(--text-secondary); white-space: nowrap; }
.chrono-track { position: relative; flex: 1; height: 3px; background: var(--border-color); overflow: hidden; }
.chrono-bar { position: absolute; inset: 0; background: var(--td-red); transform-origin: left; transform: scaleX(0); transition: transform 0.5s ease; }
/* The list's real heading, styled as a small label -- the giant year is
   the visual headline here, but the section still needs a proper <h2>. */
.chrono-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 1rem; }
.chrono-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-color); }
.chrono-item {
  padding: clamp(1.5rem, min(3.5vw, 4.4vh), 2.75rem) 0;
  border-bottom: 1px solid var(--border-color);
  /* Entries that are not the active one are dimmed, but only to .75 (was
     .45, which gave text about 2.4:1 contrast against white; WCAG AA needs
     4.5:1, and visitors do read ahead). The active entry is still full
     strength, so it clearly stands out. (B4, 16 Nov 2026) */
  opacity: 0.75;
  transition: opacity 0.4s ease;
}
.chrono-item.is-active { opacity: 1; }
.chrono-item-year { display: block; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; color: var(--td-red); }
.chrono-item-title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; line-height: 1.1; margin: 0.4rem 0 0; }
.chrono-item-text { margin: 0.75rem 0 0; font-size: 1rem; line-height: 1.7; color: var(--text-body); max-width: 60ch; }
.chrono-item-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 1.4rem; background: var(--td-ink); }
/* Without JS nothing ever gets .is-active -- so only dim the others once
   the script has marked one (the :has() check), never by default. */
.chrono-list:not(:has(.is-active)) .chrono-item { opacity: 1; }
@media (max-width: 900px) {
  .chrono-inner { grid-template-columns: 1fr; }
  .chrono-aside { display: none; }
  .chrono-item { opacity: 1; }
  .chrono-item-year { font-size: clamp(2.5rem, 12vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .chrono-item, .chrono-bar { transition: none; }
}

/* Pull quote -- big left-aligned quote at the story chapters' heading
   scale, with a red rule and the attribution as a kicker. */
.pull-quote { margin: 0; max-width: 980px; padding-left: clamp(1.25rem, 3vw, 2.5rem); border-left: 3px solid var(--td-red); }
.pull-quote-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, min(3.4vw, 4.5vh), 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  border: 0;
  background: none;
  padding: 0;
  font-style: normal;
}
.pull-quote-text::before { content: '\201C'; }
.pull-quote-text::after { content: '\201D'; }
.pull-quote-cite { display: block; margin-top: 1.5rem; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--td-red); }
/* Smaller size for a quote that shares its row with other content (About's
   purpose statement), rather than standing alone as a whole section. */
.pull-quote-text--sm { font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.25; }
.purpose-text { margin-top: 1.5rem; color: var(--text-secondary); }

/* Value list -- values (icon + title + text), hairline between rows (About).
   The "01-04" numbers were removed on 16 Nov 2026 (B15) because the values
   are not steps, so there is no number column any more. */
.value-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-color); }
.value {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-color);
}
.value-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; font-weight: 900; margin: 0; }
.value-icon { display: flex; color: var(--text-secondary); }
.value-text { font-size: 0.92rem; color: var(--text-secondary); margin: 0.35rem 0 0; }

.section--dark .pull-quote-text { color: #fff; }
.section--dark .pull-quote-cite { color: var(--td-red-light); }
.pull-quote-section { border-top: 1px solid var(--border-color); }

/* ── 20b. Page Components (2026-09-24 site-wide pass) ────────────────────────── */
/* Small, reusable pieces that replaced one-off inline-styled markup on the
   inner page templates. Each is named for what it is, not for the page it
   first appeared on, so the next page that needs one can just use it. */

/* Icon list -- icon + one line of text per row, hairline between rows.
   (Apprenticeships "Why Choose Us".) */
.icon-list { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--border-color); }
.icon-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-body);
}
.icon-list-icon { color: var(--td-red); flex-shrink: 0; display: flex; }
.icon-list-icon svg { width: 22px; height: 22px; }

/* People grid -- flush portrait tiles with the name and quote underneath.
   (Apprenticeships "Meet Our Apprentices".) Hairline grid, same
   construction as .benefits-grid. The photo zooms slightly on hover. */
/* 200px minimum fits five portraits across a full-width container, which
   matches the five apprentices currently entered (one per division) with
   no orphan on a second row. */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}
.person {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-surface-alt); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 0.6s ease; }
.person:hover .person-photo img { transform: scale(1.04); }
.person-body { padding: 1.4rem 1.4rem 1.6rem; }
.person-kicker { display: block; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--td-red); }
.person-name { font-size: 1.3rem; font-weight: 900; margin: 0.35rem 0 0; }
.person-role { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.15rem; }
.person-quote { margin: 1rem 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-body); font-style: normal; }
/* A quote shown under the row of people rather than inside one card (see the
   note in page-apprenticeships.php). Just the gap above it; the look comes
   from .pull-quote. */
.people-quote { margin-top: clamp(2rem, 4vw, 3rem); }

/* Step list -- numbered steps with big numerals, hairline between rows.
   (Careers "The Development Journey".) --band variant for dark sections. */
.step-list-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }
.section--dark .step-list-title { color: #fff; }
.step-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-color); }
.step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: clamp(0.85rem, 1.8vh, 1.25rem) 0;
  border-bottom: 1px solid var(--border-color);
}
.step-num { font-family: var(--font-heading); font-size: clamp(2rem, 4.5vh, 2.6rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.03em; color: var(--td-red); }
.step-title { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.step-text { font-size: 0.9rem; margin: 0.3rem 0 0; color: var(--text-secondary); }
.step-list--band { border-top-color: var(--band-border); }
.step-list--band .step { border-bottom-color: var(--band-border); }
.step-list--band .step-num { color: var(--td-red-light); }
.step-list--band .step-title { color: #fff; }
.step-list--band .step-text { color: rgba(255,255,255,.7); }

/* Apply contact block -- Careers' "send your CV to" details. Hairline-ruled
   rather than boxed, with the email set big because it's the whole point. */
.apply-contact { margin: 1.75rem 0; padding: 1.25rem 0; border-top: 1px solid var(--band-border); border-bottom: 1px solid var(--band-border); }
.apply-contact-label { display: block; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--td-red-light); }
.apply-contact-email { display: inline-block; margin-top: 0.4rem; font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 900; color: #fff; }
.apply-contact-email:hover { color: var(--td-red-light); }
.apply-contact-note { font-size: 0.82rem; color: rgba(255,255,255,.65); margin: 0.6rem 0 0; }
.apply-contact-note a { color: inherit; text-decoration: underline; }
/* Short "no vacancies right now" note under the How to Apply text on Careers
   (C6, 16 Nov 2026). It replaces the full-width Current Vacancies band, which
   is no longer shown when there are no vacancies. A hairline above, a bold
   heading and one line of text; no button, since the page already has two
   ways to send a CV. Sits on the dark band, so light text. */
.apply-vacancy-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--band-border); }
.apply-vacancy-note-title { display: block; font-family: var(--font-heading); font-weight: 800; color: var(--band-text); }
.apply-vacancy-note-text { margin: 0.3rem 0 0; font-size: 0.95rem; }
.apply-vacancy-note-text a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Empty state -- "nothing here yet" message with one action beside it.
   (News when no stories match. Careers used it too until C6, 16 Nov 2026,
   when its empty state became the short .apply-vacancy-note instead.) */
.empty-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* Bottom rule only -- it always sits under a .section-header, whose own
     hairline already draws the line above it. */
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border-color);
}
.empty-state-title { font-size: 1.3rem; font-weight: 900; margin: 0; }
.empty-state-text { color: var(--text-secondary); margin: 0.4rem 0 0; max-width: 560px; }
.empty-state-text a { color: var(--text-accent); font-weight: 700; }

/* Gateway grid -- full-bleed photo tiles, each one big link to another
   part of the site, sitting edge to edge like the homepage company panels.
   (TD Works pillars, homepage "More From The Group".) The photo darkens
   from the bottom so the text stays readable. On hover the photo zooms
   slightly and the red bar at the top of the text grows. Sits OUTSIDE
   .container on purpose so it reaches both edges of the screen. */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: var(--td-ink);
}
.gateway {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, min(40vw, 48vh), 480px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.gateway + .gateway { border-left: 1px solid rgba(255,255,255,.12); }
.gateway-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s ease;
}
.gateway::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14,14,13,.95) 0%, rgba(14,14,13,.6) 45%, rgba(14,14,13,.15) 100%);
  transition: background var(--transition);
}
.gateway:hover .gateway-image, .gateway:focus-visible .gateway-image { transform: scale(1.05); }
.gateway-body { display: block; padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.gateway-index {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-red-light);
}
.gateway-index::after { content: ''; width: 22px; height: 2px; background: currentColor; transition: width 0.35s ease; }
.gateway:hover .gateway-index::after, .gateway:focus-visible .gateway-index::after { width: 48px; }
/* Colours set on the elements themselves: a tile's title/text can be a real
   <h3>/<p> (Environment), and the global h3/p colour rules would otherwise
   beat the inherited white and turn them dark on the dark photo. */
.gateway-title { display: block; margin: 0.7rem 0 0; font-family: var(--font-heading); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 900; line-height: 1.08; color: #fff; }
.gateway-text { display: block; margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,.78); max-width: 380px; }
/* No photo uploaded (added 2026-11-04): the tall min-height above exists to
   show a photo, so without one it left a big empty dark block above the text
   (Lee spotted it on the Environment page of the preview). Shrink the tile to
   its text instead. In a row where other tiles do have photos, the grid still
   stretches this one to the same height, so the row stays even. */
.gateway--no-image { min-height: 0; }
.gateway--no-image::before { background: none; }
/* Non-link tiles: no hover zoom, since movement on hover says "clickable". */
.gateway--static:hover .gateway-image { transform: none; }
.gateway--static:hover .gateway-index::after { width: 22px; }
.gateway-cta {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.gateway:hover .gateway-cta, .gateway:focus-visible .gateway-cta { color: var(--td-red-light); border-color: var(--td-red-light); }
@media (max-width: 600px) {
  .gateway { min-height: 300px; }
  .gateway + .gateway { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
}

/* ── 21. Schools Programme ───────────────────────────────────────────────────── */
/* Tightened 2026-09 -- was minmax(200px,...) with 1.5rem gap and 2rem card
   padding, which for a card holding only an icon + one line of text read
   as mostly empty space around very little content (real user feedback:
   "I find you leave far too much dead space on the sites we make" -- a
   standing pattern to watch for, not just this one grid). Smaller minimum
   column width fits more cards per row at the same viewport, and the
   tighter gap/padding brings the card's empty margin down closer to what
   an icon + short label actually needs. */
/* .partnerships-grid / .partnership-card share the hairline grid rules in
   section 15 (Careers) -- only the text styles are specific to them. */
/* Fixed 4 across (was auto-fit, which put 7 partners as 5 + 2 with a big
   empty block). 2 across on tablets, 1 on phones. */
.partnerships-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* No gaps in the last row (2026-10-08). When the number of cards doesn't
   divide evenly into rows, the LAST card stretches across the columns left
   over, so the grid is always a clean rectangle -- e.g. 7 partners in a
   4-across grid: 4 on top, then 3 below with the last one double width.
   ":nth-child(4n+3):last-child" reads "the last card, when it lands in the
   3rd column". Same idea for the 3-across .benefits-grid. Editors can add
   or remove cards in wp-admin and it still fits. */
.partnerships-grid > :last-child:nth-child(4n+1) { grid-column: span 4; }
.partnerships-grid > :last-child:nth-child(4n+2) { grid-column: span 3; }
.partnerships-grid > :last-child:nth-child(4n+3) { grid-column: span 2; }
.benefits-grid > :last-child:nth-child(3n+1) { grid-column: span 3; }
.benefits-grid > :last-child:nth-child(3n+2) { grid-column: span 2; }
@media (max-width: 900px) {
  .partnerships-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns: reset the 4-column spans, then only an odd last card stretches. */
  .partnerships-grid > :last-child,
  .benefits-grid > :last-child { grid-column: auto; }
  .partnerships-grid > :last-child:nth-child(odd),
  .benefits-grid > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .partnerships-grid { grid-template-columns: 1fr; }
  .partnerships-grid > :last-child:nth-child(odd),
  .benefits-grid > :last-child:nth-child(odd) { grid-column: auto; }
}
.partnership-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.partnership-desc { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.55; }

/* Homepage "What We Make" category grid. Each card is either a real photo
   (uploaded via wwm_categories in wp-admin) with the category icon as a small
   badge overlay + label over a bottom scrim, or -- until an editor adds a
   photo -- a plain placeholder tile with just the icon and label, so the
   grid never looks broken while photos are still being sourced (see the
   $photo check in front-page.php around the WHAT WE MAKE section). */
/* Dense icon strip -- replaces the old 4-col padded-card grid (wrapped to 2
   rows for all 8 real categories). One dark, edge-to-edge band instead,
   modelled on JCB's "Select your Machine" strip -- see front-page.php's
   comment above the markup. Flex-wrap (not a fixed-column grid) so it still
   reflows sensibly at any width down to mobile, rather than needing a
   separate breakpoint-by-breakpoint column count. */
/* C2 (16 Nov 2026): the strip is now LIGHT. It used to be near-black, which
   put it between the dark company panels above and the dark story below, so
   about 5,200px of the homepage in a row was dark. Light breaks that run up.
   (The change list asked for "--td-gray-50", which this file does not have;
   --bg-surface-alt is the next-lightest grey and does the same job.) Text is
   ink, icons are red, and the dividing lines are hairlines. */
.wwm-strip {
  background: var(--bg-surface-alt);
  /* Side padding is 0 because the markup now wraps the contents in a
     .container, which supplies the side padding and keeps the strip lined up
     with the page's content column (B2, 16 Nov 2026). */
  padding: 2rem 0 2.5rem;
}
/* Compact heading + single CTA sharing one row, JCB-style ("Select your
   Machine" / "View all Machines ->") -- replaces the old separate light-
   background .section-header block (eyebrow/big h2/intro paragraph/hr)
   this strip used to sit under. See front-page.php's comment above the
   markup. */
.wwm-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.wwm-strip-heading { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin: 0; }
/* Direct rule needed -- see the identical comment on .water-efficiency-text
   p above: a global `p { color: var(--text-body) }` rule beats an inherited
   ancestor colour regardless of that ancestor's own specificity. */
.wwm-strip-text { font-size: 0.9rem; color: var(--text-secondary); margin: 0.35rem 0 0; max-width: 480px; }
.wwm-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--text-primary);
  transition: border-color var(--transition), color var(--transition);
}
.wwm-strip-cta:hover, .wwm-strip-cta:focus-visible { color: var(--td-red); border-color: var(--td-red); }
.wwm-strip-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
}
.wwm-item {
  position: relative;
  flex: 1 1 140px;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition);
}
a.wwm-item:hover, a.wwm-item:focus-visible { color: var(--td-red); }
.wwm-item-icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--td-red); }
.wwm-item-label { font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; line-height: 1.3; }
/* Optional photo (unused by any category yet -- see front-page.php's
   comment) -- a small rounded thumbnail above the icon rather than the old
   full-tile background photo, so it still fits this strip's height if an
   editor ever adds one. */
.wwm-item-photo { width: 100%; max-width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); }

/* Group Capabilities -- "Round 5": an on-brand (navy #163d7a / ink #0e0e0d /
   red #cf252d only -- no teal/gold/neon) translation of a reference the user
   liked for its energy, mocked up first in the design canvas
   (I-OnBrandDynamic.dc.html) before landing here. .section--gc-dark below is
   still hardcoded to its own #0a1628 rather than var(--band-bg) (now that
   there's no light/dark toggle, --band-bg is just the site's one permanent
   dark chrome colour, --td-ink) -- this section is meant to read as a
   distinct, richer dark "moment" against that chrome, not blend into it.
   td_render_group_capabilities_grid() in functions.php outputs this markup
   (shared by the homepage teaser and the full /group-capabilities page). */
.section--gc-dark {
  background: #0a1628;
  position: relative;
  overflow: hidden;
}
.section--gc-dark .section-header h2 { color: #fff; }
.section--gc-dark .section-header p { color: rgba(255,255,255,.65); }
.section--gc-dark .section-eyebrow { color: var(--td-red-light); }
.section--gc-dark > .container { position: relative; z-index: 1; }

/* Group Capabilities index (2026-09-24, replaced the pill clusters). Three
   columns, one per thematic group, each headed by a big numeral and then its
   capabilities as a hairline-ruled list: the editorial "index" look of a
   spec sheet or a printed brochure, rather than a cloud of rounded pills
   (which read as clickable filters but weren't). Rendered by
   td_render_group_capabilities_grid() in functions.php for the full
   /group-capabilities page (names + descriptions, $detailed = true). The
   homepage stopped using it on 2026-10-28; it now shows the plant table
   below with the names as one line underneath.
   Colours default to the light homepage section; .section--gc-dark
   overrides them for the full page's dark, video-backed band. */
.section--gc-light { background: var(--bg-surface); }

/* Homepage plant table (2026-10-28, "Concept A"): one row per manufacturing
   process -- name and company, capacity, one-line summary -- under the Group
   section's heading. A spec-sheet table, not number tiles: the earlier
   design rounds found big-number-plus-label boxes read as a generic "stat
   bar", so the figures sit inline in the row instead. Heavy rule on top,
   hairlines between rows, like the rest of the site. */
.plant-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--td-ink);
  text-align: left;
}
.plant-table thead th {
  padding: 0.75rem 1.5rem 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.plant-table tbody th,
.plant-table td {
  padding: 1rem 1.5rem 1rem 0;
  border-bottom: 1px solid var(--border-color);
  vertical-align: baseline;
}
/* Column widths: process and capacity fixed-ish, highlights takes the rest. */
.plant-table thead th:nth-child(1) { width: 30%; }
.plant-table thead th:nth-child(2) { width: 22%; }
.plant-name { display: block; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 900; line-height: 1.2; color: var(--text-primary); }
.plant-where {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-red);
}
.plant-capacity { font-size: 0.95rem; color: var(--text-secondary); white-space: nowrap; }
.plant-capacity strong { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text-primary); }
.plant-summary { font-size: 0.95rem; line-height: 1.5; color: var(--text-body); }
/* The 14 Group services, one compact line under the table. */
.plant-also {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  margin-top: 1.5rem;
  align-items: baseline;
}
.plant-also-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.plant-also p { margin: 0; font-size: 0.92rem; line-height: 1.8; color: var(--text-body); }
/* Phones: a three-column table is too cramped, so each row becomes a small
   block -- name and company, then capacity, then summary -- and the column
   titles are hidden (each value explains itself in this layout). */
@media (max-width: 760px) {
  .plant-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plant-table, .plant-table tbody, .plant-table tr, .plant-table tbody th, .plant-table td { display: block; width: auto; }
  .plant-table tr { padding: 0.9rem 0; border-bottom: 1px solid var(--border-color); }
  .plant-table tbody th, .plant-table td { padding: 0; border-bottom: 0; }
  .plant-capacity { margin-top: 0.5rem; white-space: normal; }
  .plant-summary { margin-top: 0.35rem; }
  .plant-also { grid-template-columns: 1fr; gap: 0.35rem; }
}

.gc-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gc-col { padding: 0 clamp(1rem, 2.5vw, 2.25rem); }
.gc-col:first-child { padding-left: 0; }
.gc-col:last-child { padding-right: 0; }
.gc-col + .gc-col { border-left: 1px solid var(--border-color); }
.gc-col-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, min(4.5vw, 6.4vh), 4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--td-red);
}
.gc-col-kicker {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.gc-col-title { font-size: 1.35rem; font-weight: 900; margin: 0.25rem 0 1rem; color: var(--text-primary); }
.gc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-color); }
.gc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
}
.gc-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--td-red); }
.gc-item-name { display: block; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; color: var(--text-primary); line-height: 1.35; }
.gc-item-desc { display: block; margin-top: 0.25rem; font-size: 0.85rem; line-height: 1.55; color: var(--text-secondary); }

/* Dark variant: the full /group-capabilities page. */
.section--gc-dark .gc-col + .gc-col { border-left-color: rgba(255,255,255,.14); }
.section--gc-dark .gc-col-num,
.section--gc-dark .gc-item svg { color: var(--td-red-light); }
.section--gc-dark .gc-col-kicker { color: rgba(255,255,255,.6); }
.section--gc-dark .gc-col-title,
.section--gc-dark .gc-item-name { color: #fff; }
.section--gc-dark .gc-list,
.section--gc-dark .gc-item { border-color: rgba(255,255,255,.14); }
.section--gc-dark .gc-item-desc { color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .gc-index { grid-template-columns: 1fr; gap: 2.5rem; }
  .gc-col, .gc-col:first-child, .gc-col:last-child { padding: 0; }
  .gc-col + .gc-col { border-left: 0; }
}
/* ── 22. Environment / CSR ──────────────────────────────────────────────────── */
/* "Every Drop Counts" scroll chapter (homepage) -- see front-page.php's
   comment above the markup for the why, and td-main.js's "Every Drop Counts"
   block for the chapter-switching. The mechanics in short:
   - .story-stage is position:sticky and one screen tall, so it stays
     pinned while the chapters (which are each one screen tall) scroll over
     it. .story-chapters pulls itself up by one screen (margin-top:-100vh)
     so the first chapter starts on top of the stage rather than below it.
   - .story must NOT get overflow:hidden (or a .fade-in transform): an
     overflow on an ancestor turns it into the sticky element's scroll
     container and the stage would stop sticking.
   - Every chapter's background is stacked in the stage; only .is-active is
     visible, crossfading when td-main.js switches chapter.
   Edge-to-edge, no border-radius -- same "flush" rule as the company panels. */
.story {
  position: relative;
  background: var(--td-ink);
  color: #fff;
}
.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.story-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease, transform 1.6s ease;
}
.story-media.is-active { opacity: 1; transform: scale(1); }
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.6s ease; }
/* Background loop -- a self-hosted video file (the chapter's 'loop_video'
   field), never a YouTube embed (see front-page.php for why). It sits
   under the still image, which only fades out once the video is genuinely
   playing (td-main.js adds .is-playing), so a blocked or slow autoplay just
   leaves the still showing. */
.story-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-media img { position: relative; z-index: 1; }
.story-media.is-playing img { opacity: 0; }
/* Slow push-in on the active chapter's still (a "Ken Burns" move), so a
   chapter without video -- or before its video starts -- never sits there
   completely frozen. Restarts each time the chapter becomes active. */
.story-media.is-active img { animation: story-push-in 14s ease-out forwards; }
@keyframes story-push-in {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
/* Darkened left side keeps the white chapter text readable on any footage;
   the right side stays mostly clear so the image still does the talking. */
.story-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, rgba(14,14,13,.92) 0%, rgba(14,14,13,.72) 38%, rgba(14,14,13,.15) 75%, rgba(14,14,13,.3) 100%);
}
/* Chapter progress rail -- purely a "where am I" cue (NN/g heuristic 1:
   visibility of system status); the chapters themselves are the content. */
.story-rail {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}
.story-rail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* .72, not .5 -- this is tiny (0.7rem) text sitting over photos and
     video, so it needs the extra contrast to stay readable (audit
     2026-09-24). The active item is full white, so it still stands out. */
  color: rgba(255,255,255,.72);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  transition: color 0.3s ease;
}
.story-rail-item::after {
  content: '';
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  transition: width 0.3s ease, background 0.3s ease;
}
.story-rail-item.is-active { color: #fff; }
.story-rail-item.is-active::after { width: 34px; background: var(--td-red); }

.story-chapters {
  position: relative;
  z-index: 4;
  margin-top: -100vh;
  /* The chapters are a full-screen layer on top of the pinned stage; only
     the text cards need to catch clicks. Everything else lets clicks pass
     through to the stage (the loop pause button, .story-video-toggle). */
  pointer-events: none;
}
.story-card { pointer-events: auto; }
/* Loop pause button -- same look as the hero's (.hero-video-toggle), pinned
   to the stage's bottom-right corner. */
.story-video-toggle { bottom: 2rem; right: clamp(1.5rem, 3vw, 2.5rem); z-index: 5; }
.story-chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(3rem, 9vh, 6rem) 0;
}
/* On screens 900px and wider the story text sits inside a .container (see
   front-page.php) so its left edge matches the rest of the page (B2,
   16 Nov 2026). That is why the chapter itself has no side padding here. The
   phone rule further down gives the chapter its own padding back. */
/* Mobile-only inline image -- see the max-width:899px rule below. */
.story-chapter-image { display: none; }
.story-card { max-width: 560px; }
/* Colours set directly on each element (not inherited from .story) -- the
   theme's global `p { color: var(--text-body) }` rule would otherwise win on
   every <p> here, the same bug that once made the old Water Efficiency
   text near-black on black. */
/* The company's full-colour logo above a chapter's text (the "Company Logo"
   pick on each chapter). Capped by height AND width because the logos are
   very different shapes -- a tall crest and a long wordmark should look
   about the same size. The soft shadow keeps them readable over bright
   parts of a photo. */
.story-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 240px;
  object-fit: contain;
  margin: 0 0 1.4rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.story-kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-red-light);
  margin: 0;
}
.story-stat {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, min(12vw, 16vh), 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 1.1rem 0 0;
}
.story-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 1.1rem 0 0;
}
.story-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, min(4vw, 5.2vh), 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin: 1rem 0 0;
}
.story-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin: 1.1rem 0 0;
}
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.story-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--td-ink);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.story-watch:hover, .story-watch:focus-visible { background: var(--td-red); color: #fff; }
.story-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  transition: color var(--transition), border-color var(--transition);
}
.story-link:hover, .story-link:focus-visible { color: var(--td-red-light); border-color: var(--td-red-light); }

/* No crossfade or zoom for visitors who've asked for reduced motion -- the
   background still changes per chapter, it just swaps instantly (and
   td-main.js skips the background video entirely for them). */
@media (prefers-reduced-motion: reduce) {
  .story-media, .story-media img { transition: none; transform: none; animation: none; }
}

/* Mobile: no pinned stage (a full-screen sticky background with text
   scrolling over it is cramped and heavy on a phone). Each chapter becomes
   a plain stacked block with its own image above the text. */
@media (max-width: 899px) {
  .story-stage { display: none; }
  .story-chapters { margin-top: 0; }
  .story-chapter { min-height: 0; display: block; padding: 0 0 3rem; }
  /* The card already has its own side padding here, so cancel the
     .container's to avoid doubling it (added with B2). */
  .story-chapter .container { padding: 0; }
  .story-chapter-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .story-card { padding: 1.75rem var(--container-pad) 0; }
  .story-logo { max-height: 48px; max-width: 180px; margin-bottom: 1.1rem; }
}

/* Video dialog -- the shared player the "Watch the film" buttons open (see
   td-main.js's "Video dialog" block). Native <dialog> + showModal() gives
   the dark backdrop, Escape-to-close and focus trapping for free. */
.video-dialog {
  width: min(1100px, 92vw);
  /* margin:auto is what centres a modal <dialog> in the viewport (browser
     default) -- the theme's global reset zeroes every margin, which was
     pinning this to the top-left corner. */
  margin: auto;
  padding: 0;
  border: 0;
  background: #000;
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(0,0,0,.85); }
.video-dialog-frame { aspect-ratio: 16 / 9; }
.video-dialog-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-dialog-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.video-dialog-close:hover, .video-dialog-close:focus-visible { color: var(--td-red-light); }

/* 16:9 responsive embed via aspect-ratio rather than the old padding-bottom
   trick -- supported in every browser this theme targets, and needs no
   wrapper-within-wrapper. Used by the click-to-play video cards (Environment,
   Social & Events, Manufacturing in the UK). */
.csr-pillar-video { aspect-ratio: 16 / 9; position: relative; }
.csr-pillar-video iframe,
iframe.csr-pillar-video { width: 100%; height: 100%; border: 0; display: block; }

/* Click-to-play facade -- thumbnail + centred play button, swapped for the
   real iframe on click by the "YouTube Facade" block in td-main.js. */
.yt-facade { cursor: pointer; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(207,37,45,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.yt-facade-play svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.yt-facade:hover .yt-facade-play,
.yt-facade:focus-visible .yt-facade-play { background: var(--td-red); transform: scale(1.08); }
.yt-facade:focus-visible { outline: 2px solid var(--td-red-light); outline-offset: 2px; }

/* Hairline grid of video tiles (2026-09-24, same construction as
   .benefits-grid): the thumbnail runs edge to edge across its cell, with
   the title and text underneath. Was floating rounded cards that lifted
   on hover. The play button on the thumbnail is what says "clickable". */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}
.video-card {
  background: var(--bg-surface);
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.video-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.video-card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 900; line-height: 1.25; color: var(--text-primary); margin-bottom: 0.5rem; }
.video-card-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Horizontal scrolling video "reel" (Social & Events) -- see the comment
   above the .video-reel markup in page-social-events.php for why this page
   gets a swipeable reel instead of the static .video-card-grid. Native
   scroll + scroll-snap rather than a JS carousel library: works with touch/
   trackpad/keyboard for free, and degrades to "just scrolls" if JS fails. */
.video-reel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.video-reel-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color-muted);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.video-reel-arrow svg { width: 20px; height: 20px; }
.video-reel-arrow:hover:not(:disabled) { background: var(--td-ink); border-color: var(--td-ink); color: var(--td-white); }
.video-reel-arrow:disabled { opacity: .35; cursor: default; }
.video-reel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding-bottom: 1rem;
}
.video-reel::-webkit-scrollbar { display: none; }
.video-reel-track { display: flex; gap: 1.5rem; }
/* Fixed card width (not the grid's auto-fit) -- and deliberately NOT a clean
   divisor of the reel's visible width, so the next card always peeks in at
   the right edge as a visual hint there's more to scroll to. */
.video-reel-track .video-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* Phones (2026-09-24 audit): the fixed 320px reel card plus two 44px arrows
   didn't fit in 375px. Swipe replaces the arrows, and each card takes most
   of the width with the next one peeking in. */
@media (max-width: 600px) {
  .video-reel-arrow { display: none; }
  .video-reel-track .video-card { flex-basis: 85%; }
}

/* ── 23. Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--band-bg); color: var(--band-text-muted); }
.footer-top {
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {}
.footer-logo { margin-bottom: 1.25rem; }
.footer-logo img { max-height: 32px; width: auto; }
.footer-address { margin-bottom: 1.25rem; }
.footer-desc { font-size: 0.9rem; color: var(--band-text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
/* td_social_icon() renders each glyph in its own real brand colour (not
   currentColor), so hovering can't do the old "swap background to accent,
   icon turns white" trick without fighting the icon's own colour. Hover
   feedback is a hairline border turning brand red instead (was a lift +
   shadow, retired with the rest of the floating-card look 2026-09-24). */
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--band-surface);
  border: 1px solid transparent;
  display: grid; place-items: center;
  transition: border-color var(--transition), background var(--transition);
}
.social-link:hover { border-color: var(--td-red); }
/* On the dark footer band the glyphs must be light. td_social_icon() fills
   them with --text-accent (dark navy), which is near-invisible on the dark
   band (2026-11-11). A CSS fill beats the SVG's fill attribute, so we
   override it here. The --light variant sits on a light surface and keeps
   the accent colour. The tile is also a touch brighter so it reads as a button. */
.social-link:not(.social-link--light) { background: rgba(255,255,255,.12); }
.social-link:not(.social-link--light) svg { fill: var(--band-text); }
/* YouTube's play triangle is hard-coded white in the SVG; with a white glyph
   it would disappear, so cut it out in the band colour instead. */
.social-link:not(.social-link--light) svg polygon { fill: var(--band-bg); }
/* Same icon-button component, reused outside the (always-dark) footer band —
   e.g. page-brands.php's alternating light/white sections need a variant
   that reads correctly on an ordinary light surface instead of a dark band. */
.social-icons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link--light {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color-muted);
}
.social-link--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--td-red); }

.footer-col-title {
  /* An <h2> since 2026-09-24 (was h3, which skipped a heading level on
     pages without an h2), so every size is set explicitly here. Red, like
     every other kicker label on the site -- it was the old light blue. */
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--band-kicker);
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}
/* Small red underline nub below every footer column heading, on every page
   -- the same brand red as --td-red above, kept tiny (24px) so it reads as
   a consistent finishing touch rather than competing with the navy heading
   text above it. */
.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--td-red);
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  font-size: 0.88rem; color: var(--band-text-muted);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-link:hover { color: var(--band-text); padding-left: 4px; }
/* A Linked Site under its company (added 2026-11-04): indented with a thin
   rule so it reads as part of the company above, not a sixth company. */
.footer-link-linked { margin-top: -0.25rem; padding-left: 0.75rem; border-left: 1px solid var(--band-border); }
.footer-link-linked .footer-link { font-size: 0.8rem; }

.footer-accreditations {
  border-top: 1px solid var(--band-border);
  padding: 1.25rem 0;
}
.footer-accreditations .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.footer-accreditations-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--band-kicker);
  flex-shrink: 0;
}
.footer-accreditations-list {
  font-size: 0.78rem;
  color: var(--band-text-muted);
  transition: color var(--transition);
}
.footer-accreditations-list:hover { color: var(--band-text); }

.footer-bottom {
  border-top: 1px solid var(--band-border);
  padding: 1.5rem 0;
  /* baseline, not center: lines the copyright text up with the link text
     itself, even though the links have extra tap-target padding. */
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-legal { font-size: 0.82rem; color: var(--band-text-muted); opacity: .7; }
/* The copyright line is a <p>, and paragraphs get a bottom margin by
   default -- that margin pushed it up out of line with the links. */
.footer-bottom p.footer-legal { margin: 0; }
.footer-legal a { color: var(--band-text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--band-text); }
.footer-legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
/* Wraps the bottom legal bar — a subtle tint distinguishing it from the rest
   of the footer, same idea in both themes. */
.footer-bottom-bar { background: var(--band-scrim-strong); }

/* ── 24. Animations ─────────────────────────────────────────────────────────── */
/* These classes only define the "hidden" state and the transition — CSS alone
   never adds .is-visible. That's done by td-main.js: an IntersectionObserver
   watches every element with one of these classes and adds .is-visible the
   moment it scrolls into the viewport, which triggers the fade/slide/scale-in
   transition below.
   The hidden state only applies under html.js (fixed 2026-09-24). header.php
   adds that class with a one-line inline script, so if JavaScript is off or
   td-main.js fails to load, nothing is ever left invisible -- content just
   shows without the animation (progressive enhancement). It used to hide
   content unconditionally, so a JS failure left it at opacity:0 forever. */
.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .fade-in.is-visible { opacity: 1; transform: translateY(0); }

.js .slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .slide-in-left.is-visible { opacity: 1; transform: translateX(0); }

.js .slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .slide-in-right.is-visible { opacity: 1; transform: translateX(0); }

.js .scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .scale-in.is-visible { opacity: 1; transform: scale(1); }

/* Stagger delays — applied alongside .fade-in etc. (e.g. class="fade-in delay-2") on
   items in a grid/row so each one starts its transition slightly after the last,
   giving a staggered reveal instead of every card animating in simultaneously. */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── 25. Utilities ───────────────────────────────────────────────────────────── */
/* Skip link (header.php) -- off-screen until a keyboard user tabs to it, then
   it appears top-left above everything, so it's the very first stop. */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.8rem 1.2rem;
  background: #fff;
  color: var(--td-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
/* Elements given tabindex="-1" by td-main.js (the skip-link / in-page link
   target) receive focus only so screen readers and the Tab order continue
   from there -- they aren't controls, so no focus ring around the page. */
[tabindex="-1"]:focus { outline: none; }

/* Keyboard focus rings (2026-09-24 audit). One consistent ring for every
   interactive element, not just links -- buttons, <summary> (FAQ) and the
   custom listbox were getting the browser default or nothing. On dark
   surfaces the navy ring was nearly invisible, so those set --focus to
   white. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus, var(--td-accent));
  outline-offset: 3px;
}
.site-header, .site-footer, .nav-mobile, .hero, .next-band, .gateway-grid, .story, .cta-split,
.split-band--dark, .section--dark, .section--gc-dark, .brand-grid, .figure-row--band {
  --focus: #fff;
}
/* Full-card links fill their card exactly, and the card clips overflow
   (for the image zoom) -- so an outside ring would be cut off. Draw it
   just inside the edge instead. */
.brand-card-cover-link:focus-visible,
.gateway:focus-visible,
.company-directory-row:focus-visible,
.next-band-link:focus-visible { outline-offset: -4px; }

/* Reduced motion (2026-09-24 audit): for visitors who've asked their OS for
   less motion, switch off every transition and animation site-wide in one
   place, and show scroll-reveal content immediately instead of fading it
   in. Individual components used to handle this one by one, and most
   didn't. (The homepage story and hero videos are also skipped in
   td-main.js for these visitors.) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in, .slide-in-left, .slide-in-right, .scale-in { opacity: 1 !important; transform: none !important; }
}

/* .screen-reader-text is WordPress's own name for the same thing -- core
   outputs it in markup it generates itself (e.g. the "Search for:" label in
   get_search_form(), pagination labels), so the theme must define it or
   those labels show up visibly. Was missing until 2026-09-24. */
.sr-only,
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* WordPress's search form (get_search_form() -- used on the 404 page and
   search results). Input and button joined into one flush bar. */
.search-form { display: flex; max-width: 560px; }
/* min-width: 0 lets the label shrink below the input's default width, otherwise
   the form overflows 320px phones; the button keeps its size. */
.search-form label { flex: 1; min-width: 0; display: flex; }
.search-field {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border-color-muted);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--bg-surface);
  font: inherit;
  color: var(--text-base);
}
.search-field:focus { outline: none; border-color: var(--td-ink); box-shadow: inset 0 0 0 1px var(--td-ink); }
.search-submit {
  flex-shrink: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--td-ink);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.search-submit:hover, .search-submit:focus-visible { background: var(--td-red); }

/* Band text — for headings/copy sitting directly on a dark band (hero,
   .section--dark/--navy, footer, etc) in page templates that previously used
   inline style="color:white"/"color:rgba(255,255,255,...)". Using these
   classes instead of hardcoded white lets that text invert along with its
   band when the theme switches. */
/* Apprenticeship facts strip (Apprenticeships page -- see
   page-apprenticeships.php). Four real facts as equal columns, each a big
   value in the site's big-numeral style with its label, and hairlines
   between. The "Step 1-4" numbers and arrows between the columns were
   removed on 16 Nov 2026 (the facts are not steps), and the CSS for them was
   deleted with B12. The class names still say "journey" only because the
   markup uses them. */
.journey-strip {
  display: flex;
  align-items: stretch;
}
.journey-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5rem clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--band-border);
}
.journey-step:first-child { border-left: 0; padding-left: 0; }
.journey-step-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.7rem, min(3.4vw, 4.6vh), 2.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--band-text);
}
.journey-step-label { font-size: 0.85rem; color: var(--band-text-muted); margin-top: 0.5rem; line-height: 1.4; }
@media (max-width: 800px) {
  .journey-strip { flex-direction: column; }
  .journey-step, .journey-step:first-child { border-left: 0; border-top: 1px solid var(--band-border); padding: 1rem 0; }
  .journey-step:first-child { border-top: 0; }
}

/* "Life at TD" photo strip (People & Community page -- see page-td-works.php
   for why this reuses the homepage's own tdworks_photos rather than new
   content). A simple even-width row, not a masonry/featured layout like the
   homepage band uses -- this is a teaser of the same photos below the fold,
   not the section's own hero moment. */
.life-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.life-strip-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.life-strip-item img { width: 100%; height: 100%; object-fit: cover; }
.life-strip-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Milestone teaser (About page -- see page-about.php for why this reads
   straight from the History page's own timeline repeater). Deliberately not
   another counter-stat strip: real years + real milestone titles, not
   numbers, reading left-to-right as a mini-timeline rather than a row of
   stats. */
/* Milestone ticker (About page) -- a slim single-line strip, not a banded
   section: see the comment above the markup in page-about.php for why this
   replaced a taller, more elaborate version. */
.milestone-ticker { background: var(--band-bg); padding: 0.9rem 0; }
.milestone-ticker-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.milestone-ticker-flag {
  width: 28px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.milestone-ticker-items {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.milestone-ticker-item {
  font-size: 0.85rem;
  color: var(--band-text-muted);
  white-space: nowrap;
}
.milestone-ticker-item strong {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--td-red-light);
  margin-right: 0.4rem;
}
.milestone-ticker-sep { color: var(--band-border); }
.milestone-ticker-link {
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--band-text);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.milestone-ticker-link:hover { color: var(--band-accent); border-color: var(--band-accent); }
/* Phones: the strip can't fit on one line. Without this rule the milestones
   were squeezed beside the "Full Story" link and the link sat on top of
   their text (found 2026-11-16). Stack it instead: flag, then one milestone
   per line, then the link on its own line underneath. */
@media (max-width: 767px) {
  .milestone-ticker-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .milestone-ticker-items { flex-direction: column; flex: none; gap: 0.35rem; }
  .milestone-ticker-item  { white-space: normal; }
  .milestone-ticker-sep   { display: none; }
  .milestone-ticker-link  { margin-left: 0; }
}

.band-heading { color: var(--band-text); }
.band-text    { color: var(--band-text-muted); }

/* Content grids — 2/3-column text, form, and stat layouts used across pages.
   These replace one-off `style="display:grid;grid-template-columns:1fr 1fr"`
   attributes that had no mobile treatment and caused horizontal-scroll
   overflow on phones. `minmax(0, 1fr)` matters here, not just style: a bare
   `1fr` track has an implicit minimum of its content's natural width, so a
   long word or wide form input can force the grid wider than its container
   ("grid blowout") even before the 900px collapse below kicks in. */
.about-split-grid  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; }
/* gap:0 -- these two are hairline grids now (see .benefits-grid, section 15). */
.facts-grid        { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.csr-items-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.form-row          { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

/* ── 26. FAQ ──────────────────────────────────────────────────────────────────── */
/* Restyled 2026-09-24: one row per category, the title on the left (sticky,
   so it stays in view beside a long list) and a hairline-ruled accordion on
   the right. Was a narrow centred column of floating rounded boxes. */
.faq-category {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(1.5rem, min(3vw, 4vh), 2.5rem) 0;
  border-top: 1px solid var(--border-color);
}
.faq-category:first-child { border-top: 0; padding-top: 0; }
.faq-category-title {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}
.faq-category-num { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--td-red); margin-bottom: 0.5rem; }
.faq-list { border-top: 1px solid var(--border-color); }
/* Native <details>/<summary> — no JS needed for expand/collapse. */
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-primary);
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--td-red); }
.faq-question::-webkit-details-marker { display: none; }
/* Plus/minus indicator, drawn with CSS rather than an image or icon font. */
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--td-red);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 70ch;
}
@media (max-width: 800px) {
  .faq-category { grid-template-columns: 1fr; gap: 1rem; }
  .faq-category-title { position: static; }
}

/* ── 27. Media Queries ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Hero vertical rhythm, ≥901px width (the width range where the hero keeps its
   full-bleed min-height:100vh treatment with the brand strip pinned to the
   bottom via position:absolute). A single max-height breakpoint kept getting
   outgrown by real devices in between the tested sizes, so every gap/margin/
   font-size below scales continuously off `vh` instead: as the viewport gets
   shorter (laptop) everything shrinks in proportion so the eyebrow, title,
   subtitle, buttons, stats AND the brand strip all still land inside one
   screen; as it gets taller (large desktop) they grow back up to the original
   sizing instead of stopping at one arbitrary breakpoint. */
@media (min-width: 901px) {
  .hero-content {
    padding: calc(var(--nav-height) + var(--brand-bar-height) + clamp(0.5rem, 2vh, 2.5rem)) 0 clamp(4.5rem, 9vh, 6rem);
  }
  .hero-title {
    font-size: clamp(2.25rem, min(5vw, 6vh), 4.5rem);
    margin-bottom: clamp(0.75rem, 1.5vh, 1.5rem);
  }
  .hero-subtitle {
    font-size: clamp(0.95rem, min(1.5vw, 1.8vh), 1.2rem);
    margin-bottom: clamp(1rem, 2vh, 2.5rem);
  }
  .hero-stats { margin-top: clamp(0.75rem, 2.5vh, 3rem); }
  .hero-brand-strip__inner { padding: clamp(0.75rem, 2vh, 1.25rem) 0; }
}

/* Short screens (most laptops are 720-900px tall): a slightly shorter nav
   bar at page load gives that height back to the content. Everything that
   offsets for the header reads this same token, so nothing else changes. */
@media (max-height: 860px) {
  :root { --nav-height: 68px; }
}

/* Menu switch: hamburger at 1200px and below, full nav above. 1200px gives the
   full desktop nav room with the Prometo font (it needs ~1160px: logo 320px + five
   links ~585px + Contact button ~130px + gaps and padding ~125px = ~1160px).
   Prometo is wider than the old Lato, so the old 900px switch left the Contact
   button pushed off-screen and a menu item wrapping at 900-1160px. If links
   are added or renamed, re-measure and adjust this number. */
@media (max-width: 1200px) {
  .nav-primary, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* The logo image is ~8.9x wider than it is tall, so at its desktop height
   (36px = 320px wide) it plus the menu button overflowed a 375px phone and
   pushed the button off-screen: no way to open the menu. A smaller logo and
   gap on small screens keeps both on-screen. */
@media (max-width: 900px) {
  .nav-inner { gap: 1rem; }
  .nav-logo img { height: 28px; }
  /* Not enough room for phone/email alongside 6 brand links and the toggle
     at this width — the brand links + toggle stay, contact details drop
     (they're still one tap away via the /contact page and nav CTA). The
     brand links stay centred either way since the grid's two 1fr columns
     hold their width regardless of whether the contact column has content. */
  .brand-bar-contact { display: none; }
  .hero { display: block; min-height: auto; }
  /* position: relative (was static) so the strip's own z-index: 2 counts. A
     static element ignores z-index and is painted underneath the hero's dark
     overlay (z-index: 1), which dimmed the logos AND stopped them being
     clickable on phones. Found while checking B8, 16 Nov 2026. */
  .hero-brand-strip { position: relative; margin-top: 3rem; }
  .hero-brand-strip__inner { flex-direction: column; align-items: flex-start; padding: 1.5rem 0 2.5rem; }
  /* Hero on phones (B8, 16 Nov 2026). The company logos sit straight on the
     photo here, and at the desktop 60% opacity they were hard to make out,
     so they are full strength on small screens. The video pause button used
     to sit above the logo strip and landed on top of the logos; it moves to
     the top right of the hero instead, clear of the logos and the headline. */
  .hero-brand-strip__logo { opacity: 1; }
  .hero-video-toggle { top: 6rem; bottom: auto; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-groups { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split { grid-template-columns: 1fr; gap: 3rem; }
  .feature-split.reverse .feature-image { order: 0; }
  .feature-split.reverse .feature-content { order: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .cta-split { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split-grid,
  .facts-grid,
  .csr-items-grid,
  .form-row { grid-template-columns: 1fr; }
}
/* Smaller again on 320-360px phones, where 28px (250px wide) plus the menu
   button still doesn't fit. Must stay after the 900px rule above. */
@media (max-width: 360px) {
  .nav-logo img { height: 22px; }
}

@media (max-width: 640px) {
  :root { --container-pad: 1.25rem; }
  .solution-finder { flex-direction: column; align-items: stretch; }
  .solution-finder-field { min-width: 0; }
  .news-grid { grid-template-columns: 1fr; }
  /* Two across on phones, not one: six full-width portraits stacked was
     several screens of scrolling for one section. */
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  /* Stacked and centred on phones. align-items must be restated here: the
     desktop rule uses "baseline", which in a column means "left". */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-legal-links { justify-content: center; gap: 0.25rem 1.25rem; }
  /* Tap targets (B7, 16 Nov 2026). Footer links were only 24px tall, too
     small for a thumb. Vertical padding takes each link to about 44px (the
     recommended minimum touch size); the gap between links is removed
     because the padding now provides the spacing. */
  .footer-links { gap: 0; }
  .footer-link { padding: 0.65rem 0; }
  .footer-legal-links a, .footer-accreditations-list { display: inline-block; padding: 0.65rem 0.25rem; }
  /* The footer phone number and email, and the phone/email lines on the
     Contact page, sit on their own lines (not inside a sentence), so they
     need a proper tap size too. Links inside a sentence are exempt from the
     WCAG 2.2 minimum, so those are left as they are. */
  .footer-address a, .contact-detail-value a { display: inline-block; padding: 0.4rem 0; }
  /* Contact form consent checkbox: 24x24 (was 20x20), the WCAG 2.2 minimum. */
  .form-consent input { width: 1.5rem; height: 1.5rem; }
  .btn--lg { padding: 1rem 1.75rem; }
  .btn-group { flex-direction: column; }
  .nav-megamenu { width: calc(100vw - 2rem); }
  .nav-megamenu-grid { grid-template-columns: repeat(2, 1fr); }
}

/* WordPress admin bar offset (only shown when logged in) */
@media screen and (min-width: 601px) {
  body.admin-bar .site-header { top: 32px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar .site-header { top: 46px; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { font-size: 12pt; color: black; }
  .page-hero { margin-top: 0; min-height: auto; }
}

/* ── Social & Events (page-social-events.php, redesigned 2026-10-08) ────────
   The one deliberately playful page: a pinned-up photo wall, colourful
   "year" cards and a red video band. The colours are the Group companies'
   own brand colours (see the template's header comment), set here once: */
.se-moments,
.se-year-section {
  --se-c1: #1d5c9e; /* Thomas Dudley Plumbing Products */
  --se-c2: #0891b2; /* Waterfit */
  --se-c3: #d97706; /* McDonald Die Casting */
  --se-c4: #16a34a; /* Rugby Plastics */
}

/* Intro sits above the wall, left-aligned like the rest of the site. */
.se-intro { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.se-intro h2 { margin: 0.4rem 0 0.75rem; }
.se-intro p { margin: 0; font-size: 1.05rem; color: var(--text-secondary); }

/* Photo wall: printed photos pinned up at slight angles. Four across. */
.se-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
}
.se-photo { position: relative; --tilt: -2deg; --tape: var(--se-c1); }
/* Each photo leans a different way and gets a different colour of tape, so
   the wall looks hand-arranged rather than gridded. The pattern repeats every
   4 photos -- the same as the number of columns -- with every other row
   shifted, so no two neighbours match. */
.se-photo:nth-child(4n+2) { --tilt: 1.5deg;  --tape: var(--se-c2); }
.se-photo:nth-child(4n+3) { --tilt: -1deg;   --tape: var(--se-c3); }
.se-photo:nth-child(4n+4) { --tilt: 2.25deg; --tape: var(--se-c4); }
.se-photo:nth-child(8n+5) { --tilt: 1.75deg; }
.se-photo:nth-child(8n+6) { --tilt: -2.25deg; }
.se-photo:nth-child(8n+7) { --tilt: 1deg; }
.se-photo:nth-child(8n+8) { --tilt: -1.5deg; }
.se-photo figure {
  margin: 0;
  padding: 0.6rem 0.6rem 0.85rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 22px rgba(0,0,0,.10);
  transform: rotate(var(--tilt));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Strip of coloured tape across the top edge. */
.se-photo figure::before {
  content: '';
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 34%;
  height: 1.3rem;
  background: var(--tape);
  opacity: 0.85;
  transform: translateX(-50%) rotate(calc(var(--tilt) * -1.5));
  z-index: 1;
}
.se-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.se-photo figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: center;
}
/* Hover: the photo straightens up and lifts off the wall. */
.se-photo:hover figure {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 16px 34px rgba(0,0,0,.16);
}

/* Our Year Together: four white cards, each led by a company colour. */
.se-year-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); } /* the wall above already ends with its own space */
.se-year {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.se-year-card {
  --c: var(--se-c1);
  position: relative;
  padding: 1.4rem 1.4rem 1.6rem;
  background: var(--bg-surface);
  border-top: 6px solid var(--c);
}
.se-year-card:nth-child(4n+2) { --c: var(--se-c2); }
.se-year-card:nth-child(4n+3) { --c: var(--se-c3); }
.se-year-card:nth-child(4n+4) { --c: var(--se-c4); }
/* Large and bold, so these colours pass WCAG contrast as large text. */
.se-year-when {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--c);
}
.se-year-title { margin: 0.7rem 0 0.35rem; font-size: 1.1rem; }
.se-year-text { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }

/* Watch the Highlights: the video reel on a TD red band. */
.se-reel-band { background: var(--td-red); }
.se-reel-band .section-eyebrow,
.se-reel-band h2 { color: #fff; }
.se-reel-band .section-eyebrow::before { background: #fff; }
.se-reel-band .video-reel-arrow { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.se-reel-band .video-reel-arrow:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--td-red); }

@media (max-width: 900px) {
  .se-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .se-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .se-year { grid-template-columns: 1fr; }
  .se-photo figcaption { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .se-photo figure { transition: none; }
}

/* ── News article (single.php, redesigned 2026-10-08) ─────────────────────── */
/* margin-top clears the fixed site header, the same as .page-hero. */
.article-header { margin-top: calc(var(--nav-height) + var(--brand-bar-height)); background: var(--bg-surface); border-bottom: 1px solid var(--border-color); }
.article-header-inner { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.article-header .breadcrumb { margin-bottom: 1.25rem; }
.article-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-red);
  text-decoration: none;
  margin-bottom: 0.6rem;
}
.article-kicker:hover { color: var(--td-ink); }
.article-title {
  max-width: 54rem; /* long headlines wrap before the full width, easier to read */
  margin: 0;
  font-size: clamp(2rem, min(4.2vw, 6.5vh), 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.article-standfirst { margin: 1rem 0 0; max-width: 46rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-secondary); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.article-share { display: inline-flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.article-share-label { opacity: 0.7; }
.article-share a { display: inline-block; padding: 0.35rem 0; color: var(--text-primary); border-bottom: 2px solid var(--td-red); text-decoration: none; }
.article-share a:hover { color: var(--td-red); }

/* The photo: wide, a little taller than letterbox, caption underneath. */
.article-figure { margin-top: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 0; }
/* Never cropped: news photos from the old site often have logos or text
   along an edge (e.g. Bailey Products). Capped in width instead, so a
   landscape photo stays a sensible height. */
.article-figure img { display: block; width: 100%; max-width: 60rem; height: auto; }
.article-figure figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-secondary); }

/* Text column at a comfortable reading width (~70 characters a line), with
   the "Get in touch" box beside it, staying in view while you read. */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 44rem) 280px;
  justify-content: space-between;
  gap: 3rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.article-body { font-size: 1.08rem; line-height: 1.75; }
/* The opening paragraph reads as the article's intro: larger and darker. */
.article-body > p:first-child { font-size: 1.25rem; line-height: 1.6; color: var(--text-primary); }
.article-body img { height: auto; }
.article-body figure { margin: 2rem 0; }
.article-tags { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-secondary); }
.article-aside-box {
  position: sticky;
  top: calc(var(--header-h, 80px) + 1.5rem);
  padding: 1.4rem;
  background: var(--bg-surface);
  border-top: 4px solid var(--td-red);
}
.article-aside-title { margin: 0 0 0.5rem; font-size: 1.15rem; }
.article-aside-box p { font-size: 0.92rem; color: var(--text-secondary); margin: 0 0 1rem; }

/* Older / newer article: two halves of a hairline-ruled strip. */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
/* The rule sits on the links (not the container) so it lines up with the text, not the page padding. */
.article-nav-link { border-top: 1px solid var(--border-color); }
.article-nav-link { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.25rem 1.5rem 1.25rem 0; text-decoration: none; }
.article-nav-link--newer { grid-column: 2; text-align: right; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 1px solid var(--border-color); }
.article-nav-dir { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--td-red); }
.article-nav-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: var(--text-primary); }
.article-nav-link:hover .article-nav-title { color: var(--text-accent); }

.article-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.article-more-head h2 { margin: 0; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-aside-box { position: static; }
  .article-share { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-link--newer { grid-column: 1; text-align: left; padding-left: 0; border-left: 0; border-top: 1px solid var(--border-color); }
  /* Share links (B7): the "X" link was only 9px wide. A minimum width and
     side/vertical padding give every share link a proper tap target. */
  .article-share a { min-width: 44px; padding: 0.6rem 0.35rem; text-align: center; }
}

/* ── About page: At a Glance + Proud Moments (2026-10-08) ─────────────────── */
.section--white { background: var(--bg-surface); }

/* Fact file: label above a short sentence, three across, hairline-ruled. */
.fact-file {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border-color);
}
.fact-file-item { padding: 1.25rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--border-color); }
.fact-file-item:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--border-color); }
.fact-file dt {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-red);
  margin-bottom: 0.4rem;
}
.fact-file dd { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-primary); }
.fact-file-link {
  display: table; /* own line under the fact, but only as wide as its text */
  margin-top: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-accent);
  text-decoration: none;
}
.fact-file-link:hover { color: var(--td-red); }
/* Phones (B7): these small links were 19px tall, below the 24px WCAG 2.2
   minimum. Vertical padding takes them to about 44px; the top margin goes
   because the padding now provides that space. */
@media (max-width: 640px) {
  .fact-file-link { margin-top: 0; padding: 0.8rem 0; }
}

/* Plant & Processes (Group Capabilities page, 2026-10-28): one card per
   manufacturing process, four across, in a hairline grid (same flush/square
   construction as .board-grid). Each card: where it's done (red label), the
   process name, an optional big key figure, then a tight bullet list of
   facts. Dense on purpose: buyers come here for specifics. */
.process-grid {
  display: grid;
  /* Three across (was four until 2026-11-04, when the Foundry made it nine
     rows: 4 + 4 + 1 left one card stranded). Wider cards also wrap their
     fact lines less, so rows stay shorter. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}
/* Editors can add or remove rows, so the count will change. If the last row
   isn't full, stretch its last card to fill the gap rather than leaving a
   hole in the hairline grid: one card left over spans all three columns,
   two left over means the second spans two. */
.process-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.process-card:last-child:nth-child(3n+2) { grid-column: span 2; }
.process-card {
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.process-business {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-red);
  line-height: 1.35;
  margin: 0 0 0.35rem;
}
/* "Thomas Dudley Plumbing Products" wraps onto two lines in a quarter-width
   card, which pushed that card's name and figure lower than its neighbours'.
   Reserving two lines for every label keeps names and figures level across
   the row. Not needed once the cards stack on a phone. */
@media (min-width: 601px) { .process-business { min-height: 2.7em; } }
.process-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 900; line-height: 1.2; margin: 0 0 0.75rem; }
/* Big number + small label on one baseline, e.g. "15–750 tonne". */
.process-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4rem; margin: 0 0 0.85rem; }
.process-figure-num { font-family: var(--font-heading); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--text-primary); }
.process-figure-label { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }
.process-details { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; line-height: 1.45; color: var(--text-secondary); }
/* Hairline between facts instead of bullets: easier to scan as a spec list. */
.process-details li { padding: 0.4rem 0; border-top: 1px solid var(--border-color); }
@media (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two across: undo the three-column rules above, and stretch a lone last
     card (odd count) across both columns instead. */
  .process-card:last-child:nth-child(3n+1),
  .process-card:last-child:nth-child(3n+2) { grid-column: auto; }
  .process-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px)  { .process-grid { grid-template-columns: 1fr; } }

/* Proud moments: photo cards; a moment with no photo becomes a solid
   colour card with its year big, alternating ink and TD red. */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.moment { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-color); }
.moment-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-surface-alt); }
.moment-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-slow); }
.moment:hover .moment-image img { transform: scale(1.04); }
.moment-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.moment-year { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; color: var(--td-red); }
.moment-title { margin: 0.35rem 0 0.45rem; font-size: 1.15rem; line-height: 1.25; }
.moment-text { margin: 0; font-size: 0.92rem; color: var(--text-secondary); flex: 1; }
.moment-link { align-self: flex-start; margin-top: 0.9rem; }
.moment--plain { background: var(--td-ink); border-color: var(--td-ink); }
.moment--plain:nth-child(even) { background: var(--td-red); border-color: var(--td-red); }
.moment--plain .moment-body { justify-content: flex-end; padding: 1.6rem; }
.moment--plain .moment-year { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; color: rgba(255,255,255,.9); margin-bottom: auto; padding-bottom: 1.5rem; }
.moment--plain .moment-title { color: #fff; }
/* Solid white, not 85%: on the red cards the see-through white blended to pale
   pink (#f8dee0), only 4.17:1 contrast against the red, under the 4.5:1 that
   WCAG needs for body text (Lighthouse, 1 Dec 2026). White is 7.9:1. */
.moment--plain .moment-text { color: #fff; flex: 0; }
.moment--plain .moment-link { color: #fff; }

@media (max-width: 900px) {
  .fact-file, .moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-file-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .fact-file-item:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--border-color); }
}
@media (max-width: 600px) {
  .fact-file, .moments-grid { grid-template-columns: 1fr; }
  .fact-file-item:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ── About: Five Pillars + vision (2026-10-13) ────────────────────────────── */
/* Five cards in one row on wide screens. Below 1100px it falls back to the
   normal .benefits-grid (3 across, then 2, then 1), whose "last card fills
   the row" rule keeps it a clean rectangle (3 + 2, or 2 + 2 + 1). Above
   1100px that rule is switched off, since 5 across has no leftover gap. */
@media (min-width: 1101px) {
  .benefits-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* Specific enough to beat ".benefits-grid > :last-child:nth-child(3n+2)". */
  .benefits-grid.benefits-grid--5 > :last-child:nth-child(n) { grid-column: auto; }
}
.purpose-vision {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.purpose-vision strong { color: var(--text-primary); }

/* Purpose examples line (About) and the Group Capabilities differentiator list (2026-10-13). */
.purpose-examples { margin: 1rem 0 1.25rem; font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
.diff-list-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 0.75rem; }
.diff-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-color); }
.diff-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 0.5rem 0.85rem 0; border-bottom: 1px solid var(--border-color); font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
.diff-list-icon { color: var(--td-red); display: inline-flex; flex-shrink: 0; }
/* Two across even on phones: the labels are short, and one per row made a long thin list. */
@media (max-width: 480px) { .diff-list li { font-size: 0.9rem; gap: 0.45rem; } }

/* Tidy-up after the Group messaging (2026-10-13). */
/* Supports the purpose quote rather than competing with it. */
.purpose-examples { font-family: var(--font-body); font-weight: 400; color: var(--text-secondary); }
/* Group Capabilities intro: the note sits under the ticked list. */
.diff-note { margin: 1.25rem 0 0; color: var(--text-secondary); }
.diff-intro .pull-quote { margin-bottom: 0; }
/* Footer tagline: one bold line above the description. */
.footer-tagline { text-wrap: balance; /* even line lengths, no lone "Value." */ margin: 0 0 0.5rem; font-family: var(--font-heading); font-weight: 800; color: #fff; letter-spacing: 0.01em; }

/* Board bio pop-up (2026-10-13): the browser's own <dialog>, opened by
   "Read full bio" (td-main.js). Photo beside the text on wide screens,
   stacked on phones. Square corners like the site's other panels. */
.board-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(85vh, 760px);
  padding: 0;
  border: 0;
  background: var(--bg-surface);
  color: var(--text-base);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  overflow: auto;
}
.board-dialog::backdrop { background: rgba(14,14,13,.72); }
.board-dialog-inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.board-dialog-photo { background: var(--td-ink); }
.board-dialog-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.board-dialog-body { padding: 2rem 3.5rem 1.75rem 2.25rem; }
/* The dialog sits inside a card, whose children get side margins
   (.board-card > :not(.board-photo)); a modal centres itself with
   margin: auto, so restore that. */
.board-card > dialog.board-dialog { margin: auto; }
.board-dialog-body > * { margin-left: 0; margin-right: 0; }
.board-dialog-body .board-name { margin-top: 0; font-size: 1.5rem; }
.board-dialog-bio { font-size: 0.98rem; line-height: 1.7; color: var(--text-secondary); margin: 1rem 0 1.25rem; }
.board-dialog-bio p { margin: 0 0 0.8em; }
.board-dialog .board-links { margin-bottom: 0; }
/* Floated right and sticky: stays in the top-right corner while a long bio
   scrolls. The negative bottom margin stops it pushing the content down. */
.board-dialog-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem -3.25rem 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
}
.board-dialog-close:hover { background: var(--td-ink); border-color: var(--td-ink); color: #fff; }
@media (max-width: 640px) {
  .board-dialog-inner { grid-template-columns: 1fr; }
  .board-dialog-photo { max-height: 260px; overflow: hidden; }
  .board-dialog-body { padding: 1.5rem 1.25rem; }
}
