/* Thomson Broadbent — component stylesheet (load after tokens.css).
   Mobile-first. Breakpoints (min-width): sm 480 · md 768 · lg 1024 · xl 1280 · 2xl 1440.
   Icons: Phosphor, optically weighted (Light / Regular / Bold by size; see Icon README) (https://phosphoricons.com) — <i class="ph ph-NAME" aria-hidden="true"></i>.
   Jost is self-hosted (fonts/Jost-Regular|SemiBold|Bold.woff2, @font-face generated from tokens.json): weights 400 / 600 / 700 only.
   Phosphor is imported from unpkg for previews; self-host it in production (see README). */
/* phosphor:start (generated by tools/icons/subset_icons.py; do not edit by hand) */
@font-face { font-family: "Phosphor"; src: url("../vendor/phosphor/Phosphor.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
.ph { font-family: "Phosphor" !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ph.ph-arrow-left:before { content: "\e058"; }
.ph.ph-arrow-right:before { content: "\e06c"; }
.ph.ph-arrow-square-out:before { content: "\e5de"; }
.ph.ph-arrow-up:before { content: "\e08e"; }
.ph.ph-bell:before { content: "\e0ce"; }
.ph.ph-calendar-blank:before { content: "\e10a"; }
.ph.ph-caret-down:before { content: "\e136"; }
.ph.ph-caret-left:before { content: "\e138"; }
.ph.ph-caret-right:before { content: "\e13a"; }
.ph.ph-caret-up:before { content: "\e13c"; }
.ph.ph-chart-bar:before { content: "\e150"; }
.ph.ph-check:before { content: "\e182"; }
.ph.ph-check-circle:before { content: "\e184"; }
.ph.ph-clock:before { content: "\e19a"; }
.ph.ph-clock-counter-clockwise:before { content: "\e1a0"; }
.ph.ph-currency-gbp:before { content: "\e556"; }
.ph.ph-download-simple:before { content: "\e20c"; }
.ph.ph-envelope-simple:before { content: "\e218"; }
.ph.ph-eye:before { content: "\e220"; }
.ph.ph-eye-slash:before { content: "\e224"; }
.ph.ph-file-pdf:before { content: "\e702"; }
.ph.ph-file-text:before { content: "\e23a"; }
.ph.ph-funnel:before { content: "\e266"; }
.ph.ph-handshake:before { content: "\e582"; }
.ph.ph-house:before { content: "\e2c2"; }
.ph.ph-image:before { content: "\e2ca"; }
.ph.ph-info:before { content: "\e2ce"; }
.ph.ph-layout:before { content: "\e6d6"; }
.ph.ph-lightning:before { content: "\e2de"; }
.ph.ph-linkedin-logo:before { content: "\e2ee"; }
.ph.ph-list:before { content: "\e2f0"; }
.ph.ph-lock-simple:before { content: "\e308"; }
.ph.ph-magnifying-glass:before { content: "\e30c"; }
.ph.ph-map-pin:before { content: "\e316"; }
.ph.ph-minus:before { content: "\e32a"; }
.ph.ph-paper-plane-tilt:before { content: "\e398"; }
.ph.ph-pencil-simple:before { content: "\e3b4"; }
.ph.ph-phone:before { content: "\e3b8"; }
.ph.ph-plus:before { content: "\e3d4"; }
.ph.ph-printer:before { content: "\e3dc"; }
.ph.ph-question:before { content: "\e3e8"; }
.ph.ph-scales:before { content: "\e750"; }
.ph.ph-shield-check:before { content: "\e40c"; }
.ph.ph-sign-out:before { content: "\e42a"; }
.ph.ph-sliders-horizontal:before { content: "\e434"; }
.ph.ph-ticket:before { content: "\e490"; }
.ph.ph-trash:before { content: "\e4a6"; }
.ph.ph-trend-down:before { content: "\e4ac"; }
.ph.ph-trend-up:before { content: "\e4ae"; }
.ph.ph-upload-simple:before { content: "\e4c0"; }
.ph.ph-user:before { content: "\e4c2"; }
.ph.ph-users:before { content: "\e4d6"; }
.ph.ph-warning:before { content: "\e4e0"; }
.ph.ph-warning-circle:before { content: "\e4e2"; }
.ph.ph-x:before { content: "\e4f6"; }
/* phosphor:end */

/* jost-fallback:start (generated by tools/fonts/fallback_metrics.py; do not edit by hand) */
/* Local fallback with Jost's metrics: while Jost loads (font-display: swap) text is laid out at Jost's size, so the swap doesn't move it. */
@font-face { font-family: "Jost Fallback"; src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Helvetica'), local('Liberation Sans'), local('Roboto'); font-weight: 400; font-style: normal; size-adjust: 95.95%; ascent-override: 111.51%; descent-override: 39.08%; line-gap-override: 0.00%; }
@font-face { font-family: "Jost Fallback"; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Neue Bold'), local('Helvetica Bold'), local('Liberation Sans Bold'), local('Roboto Bold'); font-weight: 600; font-style: normal; size-adjust: 95.19%; ascent-override: 112.41%; descent-override: 39.40%; line-gap-override: 0.00%; }
@font-face { font-family: "Jost Fallback"; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Neue Bold'), local('Helvetica Bold'), local('Liberation Sans Bold'), local('Roboto Bold'); font-weight: 700; font-style: normal; size-adjust: 98.01%; ascent-override: 109.17%; descent-override: 38.26%; line-gap-override: 0.00%; }
/* jost-fallback:end */

/* ---------- Responsive scale (the only place sizes change by breakpoint) ---------- */
:root {
  --fs-display: 1.9rem;  --fs-h1: 1.75rem; --fs-h2: 1.4rem; --fs-h3: 1.2rem; --fs-eyebrow: 1.1rem;
  --fs-body-lg: 1.15rem; --fs-body: 1.1rem; --fs-body-sm: 1rem; --fs-caption: 0.875rem; --fs-button: 1.1rem; --fs-nav: 1.25rem;
  --gutter: var(--grid-gutter-sm); --page-margin: var(--page-margin-sm); --section-y: 2.5rem;
  --mark-size: 4.5rem; --mark-overhang: 1.75rem; --word-width: 9.5rem; --header-bar: 4.5rem;
}
@media (min-width: 480px) { :root { --page-margin: var(--page-margin-md); --word-width: 11.5rem; } }
@media (min-width: 768px) {
  :root { --fs-display: 2.3rem; --fs-h1: 2rem; --fs-h2: 1.5rem; --fs-h3: 1.25rem; --fs-eyebrow: 1.15rem;
          --fs-body-lg: 1.2rem; --fs-body: 1.15rem; --fs-button: 1.15rem;
          --gutter: var(--grid-gutter-md); --page-margin: var(--page-margin-lg); --section-y: 3rem;
          --mark-size: 5.25rem; --mark-overhang: 1.75rem; --word-width: 14rem; --header-bar: 5rem; }
}
@media (min-width: 1024px) {
  :root { --fs-display: 2.8rem; --fs-h1: 2.2rem; --fs-h2: 1.6rem; --fs-h3: 1.3rem; --fs-eyebrow: 1.2rem;
          --fs-body-lg: 1.3rem; --fs-body: 1.2rem; --fs-button: 1.2rem;
          --page-margin: var(--container-gutter); --section-y: var(--space-8);
          --mark-size: 4.75rem; --mark-overhang: 2.25rem; --word-width: 12.5rem; --header-bar: 4.75rem; --fs-nav: 1.05rem; }
}
@media (min-width: 1280px) {
  :root { --gutter: var(--grid-gutter-lg); --fs-nav: 1.2rem; --mark-size: 6.25rem; --mark-overhang: 2.25rem; --word-width: 18rem; --header-bar: 5rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6;
  color: var(--text); background: var(--surface-page); -webkit-font-smoothing: antialiased; touch-action: manipulation;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; color: inherit; }
strong, b { font-weight: 700; }
a { color: var(--link); text-underline-offset: 0.18em; }
button { font-family: inherit; }
:focus-visible { outline: var(--border-focus) solid var(--tb-focus, var(--focus-ring)); outline-offset: 2px; }
.tb-on-dark { --tb-focus: var(--focus-ring-inverse); color: var(--text-inverse); }
.tb-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tb-skip { position: absolute; left: var(--space-4); top: -4rem; z-index: 999; background: var(--teal-900); color: var(--white); padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill); }
.tb-skip:focus { top: var(--space-4); }
body.tb-scroll-lock { overflow: hidden; }

/* ---------- Icons (Phosphor; weight follows size, see 'Optical icon weights' below) ---------- */
.ph { font-size: 1.25em; line-height: 1; flex: none; display: inline-block; vertical-align: -0.2em; }
.tb-icon--sm { font-size: var(--icon-sm); }
.tb-icon--md { font-size: var(--icon-md); }
.tb-icon--lg { font-size: var(--icon-lg); }
.tb-icon--xl { font-size: var(--icon-xl); }

/* ---------- Type helpers ---------- */
.tb-display { font-size: var(--fs-display); line-height: 1.2; }
.tb-h1 { font-size: var(--fs-h1); line-height: 1.25; }
.tb-h2 { font-size: var(--fs-h2); line-height: 1.3; }
.tb-h3 { font-size: var(--fs-h3); line-height: 1.35; }
.tb-eyebrow { font-size: var(--fs-eyebrow); line-height: 1.4; display: block; margin-bottom: var(--space-3); }
.tb-body-lg { font-size: var(--fs-body-lg); line-height: 1.6; }
.tb-body-sm { font-size: var(--fs-body-sm); line-height: 1.6; }
.tb-meta { font-size: var(--fs-body-sm); line-height: 1.4; font-style: italic; }
.tb-caption { font-size: var(--fs-caption); line-height: 1.5; }
.tb-text-brand { color: var(--text-brand); }
.tb-text-muted { color: var(--text-muted); }

/* ---------- Layout: container, sections, grid ---------- */
.tb-container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--page-margin)); margin-inline: auto; padding-inline: var(--page-margin); }
.tb-section { padding-block: var(--section-y); position: relative; }
.tb-section--raised { background: var(--surface-raised); }
.tb-section--header { background: var(--surface-header); }
.tb-section--inverse { background: var(--surface-inverse); }
.tb-stack > * + * { margin-top: var(--space-5); }
.tb-cluster { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); align-items: center; }
/* 12-column grid: 4 columns < 768, 8 at md, 12 at lg+. Span with tb-col-{n} / tb-md-col-{n} / tb-lg-col-{n}. */
.tb-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.tb-row > * { grid-column: span 4; }
.tb-col-1 { grid-column: span 1 !important; } .tb-col-2 { grid-column: span 2 !important; } .tb-col-3 { grid-column: span 3 !important; } .tb-col-4 { grid-column: span 4 !important; }
@media (min-width: 768px) {
  .tb-row { grid-template-columns: repeat(8, minmax(0, 1fr)); } .tb-row > * { grid-column: span 8; }
  .tb-md-col-2 { grid-column: span 2 !important; } .tb-md-col-3 { grid-column: span 3 !important; } .tb-md-col-4 { grid-column: span 4 !important; }
  .tb-md-col-5 { grid-column: span 5 !important; } .tb-md-col-6 { grid-column: span 6 !important; } .tb-md-col-8 { grid-column: span 8 !important; }
}
@media (min-width: 1024px) {
  .tb-row { grid-template-columns: repeat(12, minmax(0, 1fr)); } .tb-row > * { grid-column: span 12; }
  .tb-lg-col-3 { grid-column: span 3 !important; } .tb-lg-col-4 { grid-column: span 4 !important; } .tb-lg-col-5 { grid-column: span 5 !important; }
  .tb-lg-col-6 { grid-column: span 6 !important; } .tb-lg-col-7 { grid-column: span 7 !important; } .tb-lg-col-8 { grid-column: span 8 !important; } .tb-lg-col-12 { grid-column: span 12 !important; }
}
/* Card grid shortcut: 1 → 2 (md) → --tb-cols (lg, default 3) */
.tb-grid { display: grid; gap: var(--gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-grid--1 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) { .tb-grid { grid-template-columns: repeat(var(--tb-cols, 3), minmax(0, 1fr)); } }
.tb-split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .tb-split { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }

.tb-watermark { position: relative; overflow: hidden; }

/* ---------- Buttons ---------- */
.tb-btn {
  --tb-btn-bg: var(--action-primary); --tb-btn-fg: var(--on-action-primary); --tb-btn-icon: var(--on-action-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-6); min-height: 3rem;
  font: 400 var(--fs-button)/1.2 var(--font-sans); text-decoration: none; white-space: normal; text-align: center;
  color: var(--tb-btn-fg); background: var(--tb-btn-bg);
  border: 2px solid transparent; border-radius: var(--radius-pill); box-shadow: var(--shadow-button);
  cursor: pointer; position: relative;
  transition: background-color var(--duration-base) ease, color var(--duration-base) ease, transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
}
.tb-btn .ph { color: var(--tb-btn-icon); transition: transform var(--duration-base) ease, opacity var(--duration-base) ease; }
.tb-btn:hover { transform: translateY(-2px); }
.tb-btn:hover .tb-icon--trail { transform: translateX(4px); }
.tb-btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.tb-btn--primary:hover { --tb-btn-bg: var(--action-primary-hover); --tb-btn-fg: var(--white); --tb-btn-icon: var(--lime-500); }
.tb-btn--secondary { --tb-btn-bg: var(--action-secondary); --tb-btn-fg: var(--white); --tb-btn-icon: var(--white); }
.tb-btn--secondary:hover { --tb-btn-bg: var(--teal-900); }
.tb-btn--outline { --tb-btn-bg: var(--white); --tb-btn-fg: var(--teal-700); --tb-btn-icon: var(--teal-700); }
.tb-btn--outline:hover { --tb-btn-bg: var(--teal-700); --tb-btn-fg: var(--white); --tb-btn-icon: var(--white); }
.tb-btn--ghost { --tb-btn-bg: transparent; --tb-btn-fg: var(--teal-700); --tb-btn-icon: var(--teal-700); box-shadow: none; padding-inline: var(--space-3); }
.tb-btn--ghost:hover { transform: none; text-decoration: underline; }
.tb-btn--danger { --tb-btn-bg: var(--danger); --tb-btn-fg: var(--white); --tb-btn-icon: var(--white); box-shadow: none; }
.tb-btn--sm { min-height: 2.75rem; padding: var(--space-2) 1.25rem; font-size: 1rem; }
.tb-btn--lg { min-height: 3.5rem; padding: 1rem 2.5rem; font-size: calc(var(--fs-button) + 0.1rem); }
.tb-btn--block { width: 100%; }
.tb-btn--icon { padding: 0; width: 2.75rem; min-height: 2.75rem; box-shadow: none; } /* icon-only: always give aria-label */
.tb-btn[disabled], .tb-btn[aria-disabled="true"] { opacity: 0.5; box-shadow: none; transform: none; cursor: not-allowed; }
.tb-btn.is-loading { color: transparent; pointer-events: none; }
.tb-btn.is-loading .ph { opacity: 0; }
.tb-btn.is-loading::after { content: ""; position: absolute; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--tb-btn-fg); border-right-color: transparent; animation: tb-spin 0.7s linear infinite; }

/* Links */
.tb-link { color: var(--link); text-decoration: underline; transition: color var(--duration-fast); }
.tb-link:hover { color: var(--teal-900); }
.tb-readmore { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--link-accent); font-size: var(--fs-body); text-decoration: none; min-height: 2.75rem; }
.tb-readmore .ph { transition: transform var(--duration-base); font-size: 1em; }
.tb-readmore:hover { text-decoration: underline; }
.tb-readmore:hover .ph { transform: translateX(4px); }
.tb-backlink { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text); text-decoration: none; font-size: var(--fs-body); min-height: 2.75rem; }
.tb-backlink:hover { color: var(--text-brand); }

/* Definition term + tooltip (e.g. DNO) */
.tb-term { all: unset; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--teal-700); text-underline-offset: 0.2em; position: relative; color: inherit; }
.tb-term:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
.tb-tooltip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); width: max-content; max-width: min(18rem, 80vw);
  background: var(--teal-700); color: var(--white); font-size: 1rem; line-height: 1.4; text-align: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-xs);
  box-shadow: var(--shadow-overlay); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--duration-fast), transform var(--duration-fast); z-index: var(--z-dropdown); }
.tb-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--teal-700); }
.tb-term:hover + .tb-tooltip, .tb-term:focus-visible + .tb-tooltip, .tb-term[aria-expanded="true"] + .tb-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tb-term-wrap { position: relative; display: inline; }

/* ---------- Section heading ---------- */
.tb-heading { max-width: 46rem; }
.tb-heading p { margin-top: var(--space-5); }
.tb-heading--center { margin-inline: auto; text-align: center; }

/* ---------- Prose ---------- */
.tb-prose { max-width: var(--prose-max); }
.tb-prose > * + * { margin-top: 1rem; }
/* Pictures inside article text carry width and height attributes (so the page does not jump while they load); on a narrow screen max-width shrinks them, and height must follow. */
.tb-prose img { height: auto; }
.tb-prose h2 { font-size: var(--fs-h2); line-height: 1.3; font-weight: 700; margin-top: var(--space-6); }
.tb-prose h3 { font-size: var(--fs-h3); line-height: 1.35; font-weight: 700; margin-top: var(--space-5); }
.tb-prose ul, .tb-prose ol { padding-left: 1.5em; }
.tb-prose li + li { margin-top: var(--space-2); }
.tb-prose li::marker { color: var(--teal-700); }
.tb-prose blockquote { padding: var(--space-5) var(--space-6); background: var(--surface-raised); border-radius: var(--radius-md); font-size: var(--fs-body-lg); }
.tb-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--space-6); }
.tb-checklist { list-style: none; padding: 0 !important; display: grid; gap: var(--space-3); }
.tb-checklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); margin: 0 !important; }
.tb-checklist .ph { color: var(--success); margin-top: 0.15em; }

/* ---------- Utility bar ---------- */
.tb-topbar { background: var(--surface-brand); color: var(--white); font-size: 1rem; --tb-focus: var(--focus-ring-inverse); }
.tb-topbar__inner { display: flex; justify-content: flex-end; align-items: stretch; min-height: 2.75rem; gap: var(--space-1); }
.tb-topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 2.75rem; padding-inline: var(--space-3); }
.tb-topbar a:hover { text-decoration: underline; }
/* Pay invoice is for existing clients: a quiet text link. Lime is reserved for "Open a case". */
.tb-topbar__pay { margin-right: auto; }
.tb-topbar__label { display: none; }
@media (min-width: 768px) { .tb-topbar__pay { margin-right: 0; } .tb-topbar__label--md { display: inline; } .tb-topbar__inner { gap: var(--space-4); } }
@media (min-width: 1024px) { .tb-topbar__label { display: inline; } }

/* ---------- Site header ---------- */
.tb-header { background: var(--surface-header); border-bottom: 2px solid var(--teal-700); position: sticky; top: 0; z-index: var(--z-header); }
.tb-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-bar); }
.tb-brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; margin-right: auto; min-width: 0; flex: 0 1 auto; }
.tb-brand__mark { width: var(--mark-size); height: var(--mark-size); border-radius: 50%; background: var(--stone-100); padding: 0.3rem; margin-bottom: calc(-1 * var(--mark-overhang)); position: relative; z-index: 1; flex: none; transition: width var(--duration-base), height var(--duration-base); }
.tb-brand__mark img { width: 100%; height: 100%; }
.tb-brand__word { width: var(--word-width); min-width: 0; flex: 0 1 auto; }
@media (min-width: 1024px) { .tb-brand, .tb-brand__word { flex: none; } }
.tb-nav { display: flex; align-items: center; gap: var(--space-3); }
.tb-nav__list { display: none; }
.tb-nav__cta { display: none; }
.tb-nav__toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-3); background: none; border: 2px solid var(--teal-700); border-radius: var(--radius-pill); color: var(--teal-700); font: 600 1rem/1 var(--font-sans); cursor: pointer; }
.tb-nav__toggle:hover { background: var(--teal-700); color: var(--white); }
@media (min-width: 768px) { .tb-nav__cta { display: inline-flex; } .tb-brand { gap: var(--space-4); } }
@media (min-width: 1024px) {
  .tb-nav__toggle { display: none; }
  .tb-nav { gap: var(--space-6); }
  .tb-nav { gap: var(--space-5); }
  .tb-nav__list { display: flex; flex-wrap: nowrap; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
  .tb-nav__cta { min-height: 2.75rem; padding-inline: 1.25rem; font-size: 1.05rem; }
}
@media (min-width: 1280px) { .tb-nav, .tb-nav__list { gap: var(--space-7); } .tb-brand { gap: var(--space-5); } .tb-nav__cta { min-height: 3rem; padding-inline: var(--space-6); font-size: var(--fs-button); } }
.tb-nav__item { position: relative; }
.tb-nav__link { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; font-size: var(--fs-nav); line-height: 1.2; color: var(--text); text-decoration: none; background: none; border: 0; padding: var(--space-3) 0; cursor: pointer; transition: color var(--duration-fast); min-height: 2.75rem; }
.tb-nav__link:hover, .tb-nav__link[aria-current="page"] { color: var(--text-brand); }
.tb-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime-500); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.tb-nav__link .ph { font-size: 1rem; transition: transform var(--duration-base); }
.tb-nav__item.is-open > .tb-nav__link .ph { transform: rotate(180deg); }
.tb-nav__sub { position: absolute; top: calc(100% + var(--space-2)); left: -1.25rem; min-width: 16rem; z-index: var(--z-dropdown); list-style: none; margin: 0; padding: var(--space-2) 0; background: var(--teal-700); border-radius: var(--radius-sm); box-shadow: var(--shadow-overlay); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--duration-fast), transform var(--duration-fast), visibility var(--duration-fast); --tb-focus: var(--focus-ring-inverse); }
.tb-nav__item.is-open > .tb-nav__sub, .tb-nav__item:focus-within > .tb-nav__sub { opacity: 1; visibility: visible; transform: none; }
.tb-nav__sub a { display: block; padding: var(--space-3) 1.25rem; color: var(--white); text-decoration: none; font-size: 1.1rem; }
.tb-nav__sub a:hover { background: var(--teal-900); }

/* Mobile/tablet menu drawer */
.tb-drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; }
.tb-drawer__scrim { position: absolute; inset: 0; background: rgba(0, 46, 49, 0.55); opacity: 0; transition: opacity var(--duration-base); }
.tb-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; background: var(--surface-header); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--duration-base) ease-out; overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 768px) { .tb-drawer__panel { width: 26rem; box-shadow: var(--shadow-overlay); } }
.tb-drawer.is-open { visibility: visible; }
.tb-drawer.is-open .tb-drawer__scrim { opacity: 1; }
.tb-drawer.is-open .tb-drawer__panel { transform: none; }
.tb-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--page-margin); min-height: var(--header-bar); border-bottom: 2px solid var(--teal-700); }
.tb-drawer__head img { width: 2.75rem; height: 2.75rem; }
.tb-drawer__nav { list-style: none; margin: 0; padding: var(--space-2) var(--page-margin); }
.tb-drawer__nav > li { border-bottom: 1px solid var(--line); }
.tb-drawer__nav a, .tb-drawer__nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; font-size: 1.25rem; color: var(--text); text-decoration: none; cursor: pointer; list-style: none; }
.tb-drawer__nav summary::-webkit-details-marker { display: none; }
.tb-drawer__nav summary .ph { color: var(--teal-700); transition: transform var(--duration-base); }
.tb-drawer__nav details[open] summary { color: var(--text-brand); }
.tb-drawer__nav details[open] summary .ph { transform: rotate(180deg); }
.tb-drawer__nav details ul { list-style: none; padding: 0 0 var(--space-3) var(--space-4); margin: 0; border-left: 3px solid var(--lime-500); }
.tb-drawer__nav details ul a { min-height: 3rem; font-size: 1.1rem; }
.tb-drawer__nav a[aria-current="page"] { color: var(--text-brand); font-weight: 600; }
.tb-drawer__foot { margin-top: auto; padding: var(--space-5) var(--page-margin) var(--space-6); display: grid; gap: var(--space-4); background: var(--surface-page); }
.tb-drawer__contact { display: grid; gap: var(--space-2); }
.tb-drawer__contact a { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-brand); text-decoration: none; min-height: 2.75rem; font-size: 1.1rem; }

/* Mobile sticky action bar */
.tb-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-actionbar); display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-3); padding: var(--space-3) var(--page-margin) calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -6px 20px rgba(0, 46, 49, 0.15); transform: translateY(110%); transition: transform var(--duration-base) ease-out; }
.tb-actionbar.is-visible { transform: none; }
.tb-actionbar .tb-btn { min-height: 3rem; padding-inline: var(--space-4); }
.tb-actionbar--static { position: static; transform: none; }
@media (min-width: 768px) { .tb-actionbar:not(.tb-actionbar--static) { display: none; } }

/* ---------- Hero ---------- */
.tb-hero { position: relative; display: grid; place-items: center; text-align: center; color: var(--cream); min-height: calc(100svh - var(--header-height)); padding: var(--space-8) var(--page-margin); background: var(--teal-900); overflow: hidden; --tb-focus: var(--focus-ring-inverse); }
.tb-hero::before { content: ""; position: absolute; inset: 0; background: var(--overlay-hero); }
.tb-hero > * { position: relative; }
.tb-hero__content { width: 100%; max-width: 100%; display: grid; gap: var(--space-5); justify-items: center; }
@media (min-width: 768px) { .tb-hero__content { max-width: 80%; gap: var(--space-6); } }
@media (min-width: 1280px) { .tb-hero__content { max-width: 55%; } }
.tb-hero__title { font-size: var(--fs-display); line-height: 1.2; text-shadow: 0 0 10px rgba(0, 0, 0, 0.83); }
.tb-hero__lead { font-size: var(--fs-body-lg); text-shadow: 0 0 8px rgba(0, 0, 0, 0.6); }
.tb-hero--banner { min-height: 16rem; place-items: end start; text-align: left; padding-block: var(--space-7); }
.tb-hero--banner .tb-hero__content { justify-items: start; max-width: 46rem; }
@media (min-width: 1024px) { .tb-hero--banner { min-height: 22rem; } }

/* Hero with the eligibility check beside the message (stacks below 1024px) */
.tb-hero--split { place-items: center; text-align: left; }
.tb-hero__split { width: 100%; max-width: var(--container-max); display: grid; gap: var(--space-6); align-items: center; }
.tb-hero--split .tb-hero__content { max-width: 40rem; justify-items: start; }
@media (min-width: 1024px) { .tb-hero__split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-8); } }

/* ---------- Service tile ---------- */
.tb-tile { position: relative; display: grid; place-items: center; aspect-ratio: 947 / 460; overflow: hidden; border-radius: var(--radius-sm); text-decoration: none; isolation: isolate; }
.tb-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform var(--duration-slow) ease; }
.tb-tile__band { width: 100%; padding: var(--space-5); background: var(--overlay-band); color: var(--cream); text-align: center; font-size: var(--fs-h2); line-height: 1.3; transition: background-color var(--duration-base); }
.tb-tile:hover img { transform: scale(1.05); }
.tb-tile:hover .tb-tile__band { background: var(--teal-900); }

/* ---------- Service card (mobile: compact row as on the live site; md+: floating card) ---------- */
.tb-service-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); background: rgba(252, 252, 252, 0.94); border-radius: var(--radius-md); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); box-shadow: var(--shadow-card); }
.tb-service-card__title { font-size: 1.15rem; line-height: 1.3; color: var(--text-brand); white-space: nowrap; min-width: 0; }
.tb-service-card--question .tb-service-card__title { white-space: normal; }
.tb-service-card__text { display: none; }
.tb-service-card .tb-btn { min-height: 2.75rem; padding: var(--space-2) var(--space-4); font-size: 1rem; flex: none; }
@media (min-width: 768px) {
  .tb-service-card { display: grid; justify-content: stretch; align-content: start; align-items: start; justify-items: center; text-align: center; gap: var(--space-4); background: var(--white-50); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-6) var(--space-6) var(--space-8); border-bottom: 10px solid var(--teal-700); }
  .tb-service-card__title { font-size: var(--fs-h2); color: var(--text); white-space: normal; }
  .tb-service-card__text { display: block; font-size: var(--fs-body); max-width: 26rem; }
  .tb-service-card .tb-btn { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 55%); min-height: 3rem; padding: var(--space-3) var(--space-6); font-size: var(--fs-button); }
  .tb-service-card .tb-btn:hover { transform: translate(-50%, calc(55% - 2px)); }
}

/* ---------- Contact strip ---------- */
.tb-contact-strip { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .tb-contact-strip { grid-template-columns: repeat(3, 1fr); } }
.tb-contact-strip a { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 4.5rem; padding: var(--space-4); text-decoration: none; font-size: var(--fs-h3); transition: filter var(--duration-fast); }
.tb-contact-strip a:hover { filter: brightness(1.08); }
.tb-contact-strip a > .ph { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: rgba(0, 46, 49, 0.1); }
.tb-contact-strip__phone > .ph { background: rgba(255, 255, 255, 0.16) !important; }
.tb-contact-strip a > span { display: grid; gap: 0.1rem; text-align: left; line-height: 1.25; }
.tb-contact-strip__phone { background: var(--teal-700); color: var(--white); --tb-focus: var(--focus-ring-inverse); }
.tb-contact-strip__email { background: var(--sky-200); color: var(--teal-900); }
.tb-contact-strip__case { background: var(--lime-500); color: var(--teal-900); }
.tb-contact-strip small { display: block; font-size: 0.95rem; opacity: 0.9; }

/* ---------- CTA banner ---------- */
.tb-cta-banner { position: relative; text-align: center; color: var(--cream); padding: var(--space-8) var(--page-margin); background: var(--teal-900); --tb-focus: var(--focus-ring-inverse); }
@media (min-width: 1024px) { .tb-cta-banner { padding-block: var(--space-9); } }
.tb-cta-banner::before { content: ""; position: absolute; inset: 0; background: var(--overlay-cta); }
.tb-cta-banner > * { position: relative; }
.tb-cta-banner__inner { max-width: 48rem; margin-inline: auto; display: grid; gap: var(--space-5); justify-items: center; font-size: var(--fs-body-lg); }

/* ---------- Section divider ---------- */
.tb-divider { position: relative; height: 3.5rem; background: var(--surface-inverse); }
.tb-divider__mark { position: absolute; left: var(--page-margin); bottom: calc(-0.4 * var(--mark-size)); width: var(--mark-size); height: var(--mark-size); border-radius: 50%; background: var(--stone-100); padding: 0.3rem; }
@media (min-width: 768px) { .tb-divider { height: 5rem; } }
.tb-divider + * { padding-top: calc(var(--section-y) + 1.5rem); }

/* ---------- Accordion ---------- */
.tb-accordion { display: grid; gap: var(--space-1); }
.tb-accordion summary { list-style: none; display: flex; align-items: center; gap: var(--space-4); cursor: pointer; padding: var(--space-3) var(--space-1); min-height: 3.25rem; font-size: var(--fs-h2); line-height: 1.3; color: var(--text); transition: color var(--duration-fast); }
@media (min-width: 768px) { .tb-accordion summary { gap: var(--space-6); } }
.tb-accordion summary::-webkit-details-marker { display: none; }
.tb-accordion summary:hover { color: var(--text-brand); }
.tb-accordion summary .ph { font-size: 1.5rem; color: var(--teal-700); }
.tb-accordion .tb-icon--minus { display: none; color: var(--lime-500); }
.tb-accordion details[open] summary { color: var(--text-brand); }
.tb-accordion details[open] .tb-icon--plus { display: none; }
.tb-accordion details[open] .tb-icon--minus { display: inline-block; }
.tb-accordion__panel { border: 1px solid var(--line); padding: var(--space-5); display: grid; gap: var(--space-4); justify-items: start; font-size: var(--fs-body); }
@media (min-width: 768px) { .tb-accordion__panel { padding: var(--space-6) var(--space-6) var(--space-6) 4rem; } }
.tb-accordion--docs summary { font-size: var(--fs-h3); border-bottom: 1px solid var(--line); padding-block: var(--space-4); }
.tb-accordion--docs .tb-accordion__panel { border: 0; padding: var(--space-5) 0 var(--space-6); }
@media (min-width: 768px) { .tb-accordion--docs .tb-accordion__panel { padding-left: 3.25rem; } }

/* ---------- Carousel ---------- */
.tb-carousel { position: relative; --tb-per: 1; }
@media (min-width: 768px) { .tb-carousel { --tb-per: 2; } }
@media (min-width: 1024px) { .tb-carousel { --tb-per: var(--tb-per-lg, 3); } }
@media (min-width: 1280px) { .tb-carousel { --tb-per: var(--tb-per-xl, var(--tb-per-lg, 4)); } }
.tb-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--tb-per) - 1) * var(--gutter)) / var(--tb-per)); gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-block: var(--space-2) var(--space-5); }
.tb-carousel__track::-webkit-scrollbar { display: none; }
.tb-carousel__track > * { scroll-snap-align: start; }
.tb-carousel__arrow { background: none; border: 0; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; cursor: pointer; color: inherit; padding: 0; }
.tb-carousel__arrow .ph { font-size: 2rem; }
.tb-carousel__arrow[disabled] { opacity: 0.3; cursor: default; }
.tb-carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.tb-carousel__arrows { display: flex; gap: var(--space-2); }
.tb-dots__count { font-size: 1rem; color: inherit; font-variant-numeric: tabular-nums; min-height: 2.75rem; display: inline-flex; align-items: center; }
.tb-dots { display: flex; gap: 0.25rem; }
.tb-dots button { width: 2.75rem; height: 2.75rem; border: 0; padding: 0; cursor: pointer; background: none; display: grid; place-items: center; }
.tb-dots button::before { content: ""; width: 0.875rem; height: 0.875rem; border-radius: 50%; background: var(--tb-dot, #c7d6d7); transition: background-color var(--duration-fast), transform var(--duration-fast); }
.tb-dots button[aria-current="true"]::before { background: var(--tb-dot-active, var(--teal-700)); transform: scale(1.15); }
@media (min-width: 768px) { .tb-dots { gap: 0; } }

/* ---------- Testimonials ---------- */
.tb-testimonials { background: var(--surface-inverse); color: var(--white); --tb-focus: var(--focus-ring-inverse); --tb-dot: rgba(255, 255, 255, 0.3); --tb-dot-active: var(--white); }
.tb-testimonials .tb-carousel { --tb-per: 1; --tb-per-lg: 1; --tb-per-xl: 1; }
.tb-quote { display: grid; gap: var(--space-4); font-size: var(--fs-body); }
.tb-quote cite { font-size: 1rem; font-style: italic; }
.tb-quote cite::before { content: "~ "; }

/* ---------- Team card ---------- */
.tb-team-card { background: var(--white); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); padding: 1rem 1rem 1.25rem; display: grid; gap: var(--space-2); align-content: start; transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease; }
.tb-team-card__photo { position: relative; aspect-ratio: 348 / 288; border-radius: var(--radius-sm); overflow: hidden; background: #b9a3a9; margin-bottom: var(--space-2); }
.tb-team-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity var(--duration-slow) ease, transform var(--duration-slow) ease; }
.tb-team-card__candid { opacity: 0; transform: scale(1.04); }
@media (hover: hover) { .tb-team-card:hover .tb-team-card__candid, .tb-team-card:focus-within .tb-team-card__candid { opacity: 1; transform: none; } }
.tb-team-card__name { font-size: var(--fs-h3); line-height: 1.35; }
.tb-team-card__role { font-size: 1rem; font-style: italic; margin-bottom: var(--space-3); }
.tb-team-card .tb-btn { justify-self: start; }
@media (hover: hover) { .tb-lift:hover, .tb-team-card:hover, .tb-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); } }

/* ---------- Blog card ---------- */
.tb-blog-card { position: relative; background: var(--white-50); border: var(--border-hairline) solid var(--lime-500); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease; height: 100%; }
@media (min-width: 1024px) { .tb-blog-card { padding: var(--space-6); } }
.tb-blog-card__img { aspect-ratio: 2 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--grey-100); margin-bottom: var(--space-2); }
.tb-blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.tb-blog-card__title { font-size: var(--fs-h2); line-height: 1.3; color: var(--text-brand); }
.tb-blog-card__title a { color: inherit; text-decoration: none; }
.tb-blog-card__title a::after { content: ""; position: absolute; inset: 0; }
.tb-blog-card__meta { font-size: 1rem; color: var(--text-brand); }
.tb-blog-card__excerpt { font-size: var(--fs-body); }
.tb-blog-card .tb-readmore { margin-top: auto; position: relative; }

/* ---------- Article ---------- */
.tb-article { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .tb-article { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: var(--space-7); } .tb-article__aside { position: sticky; top: calc(var(--header-bar) + var(--space-5)); } }
.tb-article__aside { display: grid; gap: var(--space-4); }
.tb-article__date { color: var(--text-brand); font-size: 1.05rem; }
.tb-article__author { display: flex; align-items: center; gap: var(--space-3); color: var(--text-brand); font-size: 1.05rem; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.tb-article__author img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.tb-article__title { font-size: var(--fs-display); line-height: 1.12; }
.tb-article__hero { height: 12rem; background: var(--teal-900); }
@media (min-width: 1024px) { .tb-article__hero { height: 22rem; } }

/* ---------- Profile header ---------- */
.tb-profile__banner { height: 8rem; background: var(--teal-900); }
.tb-profile__head { display: grid; justify-items: start; gap: var(--space-3); margin-top: -3.5rem; }
.tb-profile__avatar { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; border: 5px solid var(--stone-100); background: #b9a3a9; }
.tb-profile__name { font-size: var(--fs-h1); line-height: 1.25; color: var(--text-brand); }
.tb-profile__role { font-size: 1.05rem; font-style: italic; color: var(--text-muted); }
@media (min-width: 768px) { .tb-profile__banner { height: 12rem; } .tb-profile__head { display: flex; align-items: flex-start; gap: var(--space-6); margin-top: -4.5rem; } .tb-profile__avatar { width: 9rem; height: 9rem; border-width: 6px; } .tb-profile__name { padding-top: 6rem; } }

/* ---------- Rates ---------- */
.tb-rates { list-style: none; padding: 0; margin: 0; background: var(--surface-raised); border-radius: var(--radius-md); border: var(--border-card) solid var(--line-teal); }
.tb-rates li { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-5); padding: var(--space-4) var(--space-5); align-items: baseline; }
.tb-rates li + li { border-top: 1px solid var(--line); }
.tb-rates__role { font-weight: 600; }
.tb-rates__desc { grid-column: 1 / -1; font-size: 1rem; color: var(--text-muted); }
.tb-rates__price { font-weight: 600; color: var(--text-brand); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tb-rates__price small { font-weight: 400; font-size: 0.9rem; color: var(--text-muted); }
@media (min-width: 768px) { .tb-rates li { padding: var(--space-4) var(--space-6); } .tb-rates__desc { grid-column: 1; } .tb-rates__price { grid-row: 1 / span 2; grid-column: 2; align-self: center; } }

/* ---------- Legal document ---------- */
.tb-doc-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 1rem; color: var(--text-muted); }
.tb-doc-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.tb-download { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--white); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); text-decoration: none; color: var(--text); transition: border-color var(--duration-fast), box-shadow var(--duration-base); max-width: 34rem; }
.tb-download:hover { border-color: var(--teal-700); box-shadow: var(--shadow-lift); }
.tb-download > .ph { font-size: 2.25rem; color: var(--danger); }
.tb-download strong { display: block; font-weight: 600; color: var(--text-brand); }
.tb-download small { font-size: 0.95rem; color: var(--text-muted); }
.tb-download .ph-download-simple { margin-left: auto; font-size: 1.5rem; color: var(--teal-700); }
.tb-clauses { counter-reset: none; padding-left: 0 !important; list-style: none; display: grid; gap: var(--space-4); }
.tb-clauses > li { display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--space-2); margin: 0 !important; }
.tb-clauses ol li { display: list-item; margin-top: var(--space-1); }
/* A long web address in a clause must wrap, or it pushes the page wider than a phone (and is cut off inside an accordion). */
.tb-clauses > li > div { min-width: 0; overflow-wrap: anywhere; }
.tb-clauses > li > b:first-child { color: var(--text-brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-clauses ol { list-style: lower-alpha; margin-top: var(--space-2); padding-left: 1.5em; }
.tb-legal-h { font-size: var(--fs-h3); font-weight: 600; color: var(--text-brand); margin-top: var(--space-6) !important; }
.tb-toc { background: var(--surface-raised); border-radius: var(--radius-md); padding: var(--space-5); font-size: 1rem; }
.tb-toc h2 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--space-3); }
.tb-toc ol { padding-left: 1.25em; display: grid; gap: var(--space-1); }
.tb-toc a { color: var(--text-brand); text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.tb-toc a:hover { text-decoration: underline; }
.tb-legal-layout { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .tb-legal-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--space-8); } .tb-legal-layout .tb-toc { position: sticky; top: calc(var(--header-bar) + var(--space-5)); align-self: start; } }

/* Steps (complaints stages, "how the process works") */
.tb-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); counter-reset: step; }
.tb-steps > li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); counter-increment: step; align-items: center; }
.tb-steps > li:has(h3) { align-items: start; }
.tb-steps > li::before { content: counter(step); width: 3rem; height: 3rem; border-radius: 50%; background: var(--teal-700); color: var(--white); display: grid; place-items: center; font-size: 1.25rem; font-weight: 600; }
.tb-steps h3 { font-size: var(--fs-h3); line-height: 1.3; color: var(--text-brand); min-height: 3rem; display: flex; align-items: center; margin: 0 0 var(--space-1); }
.tb-steps > li > div > p + p { margin-top: var(--space-3); }
.tb-steps--lime > li::before { background: var(--lime-500); color: var(--teal-900); }

/* Info card (address, provider) */
.tb-infocard { background: var(--white); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-2); font-size: 1rem; align-content: start; }
.tb-infocard h3 { font-size: var(--fs-h3); color: var(--text-brand); }
.tb-infocard a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--link); min-height: 2.25rem; word-break: break-word; }
.tb-infocard address { font-style: normal; line-height: 1.6; }

/* Responsive table → stacked cards below md */
.tb-rtable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tb-rtable th { text-align: left; font-weight: 600; color: var(--text-brand); padding: var(--space-3) var(--space-4); background: var(--surface-raised); border-bottom: 2px solid var(--line-teal); vertical-align: bottom; }
.tb-rtable td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.tb-rtable ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 767px) {
  .tb-rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tb-rtable, .tb-rtable tbody, .tb-rtable tr, .tb-rtable td { display: block; width: 100%; }
  .tb-rtable tr { background: var(--white); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); margin-bottom: var(--space-4); padding: var(--space-2) 0; }
  .tb-rtable td { border: 0; padding: var(--space-2) var(--space-4); }
  .tb-rtable td::before { content: attr(data-label); display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-1); }
}

/* Embedded third-party form (Jotform) */
.tb-embed { background: var(--white); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); overflow: hidden; }
.tb-embed__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); font-size: 1rem; }
.tb-embed__head strong { color: var(--text-brand); font-weight: 600; margin-right: auto; }
.tb-embed iframe { display: block; width: 100%; min-height: 700px; border: 0; }
.tb-embed__placeholder { display: grid; place-items: center; gap: var(--space-3); min-height: 22rem; padding: var(--space-6); text-align: center; background: repeating-linear-gradient(135deg, var(--white-50) 0 14px, var(--grey-100) 14px 28px); color: var(--text-muted); font-size: 1rem; }
.tb-embed__placeholder .ph { font-size: 2.5rem; color: var(--teal-700); }
.tb-embed__foot { padding: var(--space-3) var(--space-5); font-size: 0.95rem; color: var(--text-muted); border-top: 1px solid var(--line); display: flex; gap: var(--space-2); align-items: center; }
.tb-notice-card { background: var(--white); border-radius: var(--radius-md); padding: var(--space-5) var(--space-5) var(--space-7); box-shadow: var(--shadow-card); border-bottom: 8px solid var(--teal-700); position: relative; display: grid; gap: var(--space-3); text-align: center; justify-items: center; }
.tb-notice-card .tb-btn { position: absolute; bottom: 0; transform: translateY(55%); }
.tb-notice-card .tb-btn:hover { transform: translateY(calc(55% - 2px)); }

/* Consent-gated map */
.tb-map { position: relative; aspect-ratio: 16 / 9; background: #dfe8e2; border-radius: var(--radius-md); overflow: hidden; display: grid; place-items: center; text-align: center; }
@media (max-width: 767px) { .tb-map { aspect-ratio: 4 / 5; } }
.tb-map__gate { display: grid; gap: var(--space-3); justify-items: center; max-width: 24rem; padding: var(--space-5); background: rgba(255, 255, 255, 0.95); border-radius: var(--radius-md); box-shadow: var(--shadow-card); font-size: 1rem; }
.tb-map__gate .ph { font-size: 2rem; color: var(--teal-700); }

/* Opening hours */
.tb-hours { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.tb-hours th { text-align: left; font-weight: 400; padding: var(--space-2) 0; }
.tb-hours td { text-align: right; padding: var(--space-2) 0; }
.tb-hours tr + tr { border-top: 1px solid var(--line); }
.tb-hours .is-today { color: var(--text-brand); font-weight: 600; }

/* ---------- Accreditations ---------- */
.tb-accreditations { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); }
.tb-accreditations img { height: 3.25rem; width: auto; }
@media (min-width: 768px) { .tb-accreditations img { height: 4rem; } }

/* ---------- Footer (mobile-first) ---------- */
.tb-footer { background: var(--surface-page); border-top: 2px solid var(--teal-700); padding-bottom: var(--space-5); }
.tb-footer__mark { position: relative; z-index: 1; width: var(--mark-size); height: var(--mark-size); border-radius: 50%; background: var(--stone-100); padding: 0.3rem; margin-top: calc(-0.5 * var(--mark-size)); }
.tb-footer__grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "cta" "nav" "services" "trust"; }
.tb-footer__brand { grid-area: brand; } .tb-footer__nav { grid-area: nav; } .tb-footer__services { grid-area: services; } .tb-footer__cta { grid-area: cta; } .tb-footer__trust { grid-area: trust; }
.tb-footer__word { width: min(17rem, 80%); margin-block: var(--space-2) var(--space-4); }
.tb-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); }
.tb-footer__contact a { color: var(--text-brand); display: inline-flex; align-items: center; gap: var(--space-3); font-size: 1.15rem; text-decoration: none; min-height: 2.75rem; }
.tb-footer__contact a:hover { text-decoration: underline; }
/* The email address is long: on a 320px phone it must wrap, not widen the page. */
.tb-footer__contact li { min-width: 0; }
.tb-footer__contact a { max-width: 100%; overflow-wrap: anywhere; }
.tb-footer address { font-style: normal; font-size: 1rem; line-height: 1.7; margin-top: var(--space-3); }
.tb-footer__w3w { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); margin-top: var(--space-4); font-size: 0.875rem; color: var(--text); text-decoration: none; }
.tb-footer__w3w img { height: 2rem; width: auto; max-width: none; flex: none; object-fit: contain; }
/* link groups: <details> collapsed on mobile, forced open from md by TB.initFooter() */
.tb-footer__group { border-top: 1px solid var(--line); }
.tb-footer__services { margin-top: calc(-1 * var(--space-5)); border-bottom: 1px solid var(--line); }
.tb-footer__group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; font-size: 1.3rem; color: var(--text-brand); cursor: pointer; }
.tb-footer__group summary::-webkit-details-marker { display: none; }
.tb-footer__group summary .ph { transition: transform var(--duration-base); }
.tb-footer__group[open] summary .ph { transform: rotate(180deg); }
.tb-footer__group ul { list-style: none; padding: 0 0 var(--space-4); margin: 0; display: grid; }
.tb-footer__group a { display: flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.tb-footer__group a:hover { color: var(--text-brand); text-decoration: underline; }
.tb-footer__cta .tb-btn { width: 100%; }
.tb-footer__trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-2); }
.tb-footer__trust img { height: 2.75rem; width: auto; max-width: 100%; object-fit: contain; }
.tb-footer__trust img[alt^="Registered"] { height: 2.4rem; }
.tb-footer__trust img.tb-trust--lg { height: 3.5rem; } /* RICS and ICO marks larger (client, 11 Nov 2026) */
.tb-footer__legal { display: grid; gap: var(--space-2); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 0.875rem; }
.tb-footer__legal a { color: var(--text); }
@media (min-width: 768px) {
  .tb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand cta" "nav services" "trust trust"; gap: var(--space-6) var(--gutter); }
  .tb-footer__cta { justify-self: end; align-self: start; padding-top: var(--space-6); }
  .tb-footer__cta .tb-btn { width: auto; }
  .tb-footer__group, .tb-footer__services { border: 0; margin-top: 0; }
  .tb-footer__group summary { pointer-events: none; min-height: 0; margin-bottom: var(--space-3); font-size: 1.4rem; }
  .tb-footer__group summary .ph { display: none; }
  .tb-footer__group a { min-height: 2.25rem; }
  .tb-footer__trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
  .tb-footer__trust img { height: 3.5rem; }
  .tb-footer__trust img.tb-trust--lg { height: 4.75rem; }
  .tb-footer__legal { grid-auto-flow: column; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .tb-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "brand nav services" "trust trust cta"; }
  .tb-footer__nav, .tb-footer__services { padding-top: 3.25rem; }
  .tb-footer__cta { align-self: center; padding-top: var(--space-5); }
}
@media (min-width: 1280px) {
  .tb-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; grid-template-areas: "brand nav services cta" "brand nav services trust"; }
  .tb-footer__cta { padding-top: 3.25rem; align-self: start; }
  .tb-footer__trust { grid-template-columns: auto; justify-items: end; justify-content: end; border: 0; gap: var(--space-6); padding-top: 0; align-self: start; }
  .tb-footer__trust img { height: 4.25rem; }
  .tb-footer__trust img.tb-trust--lg { height: 5.5rem; }
}

/* ---------- Forms ---------- */
.tb-form { display: grid; gap: var(--space-2); }
.tb-form__row { display: grid; gap: 0 var(--space-5); align-items: start; }
@media (min-width: 768px) { .tb-form__row { grid-template-columns: 1fr 1fr; } }
.tb-field { display: grid; gap: var(--space-2); align-content: start; position: relative; padding-bottom: 1.75rem; }
.tb-label { font-size: 1rem; font-weight: 600; color: var(--text); }
.tb-label .tb-req { color: var(--danger); margin-left: 2px; }
.tb-label .tb-opt { color: var(--text-muted); font-weight: 400; }
.tb-input, .tb-select, .tb-textarea { width: 100%; font: 400 1.1rem/1.4 var(--font-sans); color: var(--text); background: var(--white); border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-xs); padding: 0.75rem 1rem; min-height: 3rem; transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.tb-textarea { min-height: 8rem; resize: vertical; }
.tb-select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.tb-select-wrap { position: relative; display: block; }
.tb-select-wrap > .ph { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--teal-700); font-size: 1.1rem; }
.tb-input::placeholder, .tb-textarea::placeholder { color: #767676; }
.tb-input:hover, .tb-select:hover, .tb-textarea:hover { border-color: var(--teal-700); }
.tb-input:focus, .tb-select:focus, .tb-textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(3, 81, 87, 0.25); }
.tb-input:disabled, .tb-select:disabled, .tb-textarea:disabled { background: var(--grey-100); color: var(--text-muted); cursor: not-allowed; }
.tb-help { font-size: 0.95rem; color: var(--text-muted); }
.tb-error { font-size: 0.95rem; line-height: 1.3; color: var(--danger); display: flex; align-items: center; gap: var(--space-2); }
.tb-field > .tb-error, .tb-choices > .tb-error, .tb-fieldset > .tb-error { position: absolute; left: 0; right: 0; top: calc(100% - 1.6rem); margin: 0; }
.tb-addr > .tb-error { position: static; }
.is-invalid .tb-input, .is-invalid .tb-select, .is-invalid .tb-textarea, .tb-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.is-invalid .tb-input:focus, .is-invalid .tb-select:focus, .is-invalid .tb-textarea:focus, .tb-input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 3px rgba(3, 81, 87, 0.25); }
.tb-input-group { position: relative; }
.tb-input-group .tb-input { padding-right: 3.25rem; }
.tb-input-group__btn { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: none; border: 0; color: var(--teal-700); cursor: pointer; border-radius: var(--radius-xs); }
.tb-counter { font-size: 0.875rem; color: var(--text-muted); text-align: right; }
.tb-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); position: relative; }
.tb-fieldset legend { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
.tb-check { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 1.1rem; cursor: pointer; min-height: 2.75rem; padding-block: 0.6rem; }
.tb-check input { appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0; border: 2px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background-color var(--duration-fast), border-color var(--duration-fast); }
.tb-check input[type="radio"] { border-radius: 50%; }
.tb-check input:checked { background: var(--teal-700); border-color: var(--teal-700); }
.tb-check input[type="checkbox"]:checked::after { content: "\e182"; font-family: "Phosphor-Bold"; color: var(--white); font-size: 1rem; line-height: 1; } /* Phosphor 'check' */
.tb-check input[type="radio"]:checked::after { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--white); }
.tb-check input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tb-switch { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: 1.05rem; min-height: 2.75rem; }
.tb-switch input { appearance: none; width: 2.75rem; height: 1.5rem; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; cursor: pointer; transition: background-color var(--duration-base); margin: 0; flex: none; }
.tb-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: var(--white); transition: transform var(--duration-base); }
.tb-switch input:checked { background: var(--teal-700); }
.tb-switch input:checked::after { transform: translateX(1.25rem); }
.tb-dropzone { display: grid; justify-items: center; gap: var(--space-2); text-align: center; padding: var(--space-6); border: 2px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--white); color: var(--text-muted); font-size: 1rem; cursor: pointer; transition: border-color var(--duration-fast), background-color var(--duration-fast); }
.tb-dropzone > .ph { font-size: 2rem; color: var(--teal-700); }
.tb-dropzone strong { color: var(--text-brand); font-weight: 600; }
.tb-dropzone:hover, .tb-dropzone.is-dragover { border-color: var(--teal-700); background: var(--info-surface); }
.tb-filelist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); font-size: 1rem; }
.tb-filelist li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xs); }
.tb-filelist li span { margin-left: auto; color: var(--text-muted); font-size: 0.9rem; }
.tb-form__actions { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.tb-hp { position: absolute; left: -9999px; }

/* ---------- Badges, alerts, toasts ---------- */
.tb-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; line-height: 1.3; white-space: nowrap; background: var(--grey-100); color: var(--text); }
.tb-badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.tb-badge--plain::before { display: none; }
.tb-badge--info { background: var(--info-surface); color: var(--info); }
.tb-badge--success { background: var(--success-surface); color: var(--success); }
.tb-badge--warning { background: var(--warning-surface); color: var(--warning); }
.tb-badge--danger { background: var(--danger-surface); color: var(--danger); }
.tb-badge--brand { background: var(--teal-700); color: var(--white); }
.tb-badge--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text-muted); }
.tb-alert { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); background: var(--info-surface); color: var(--text); font-size: 1rem; }
.tb-alert > .ph { color: var(--tb-alert-ink, var(--info)); margin-top: 0.1rem; }
.tb-alert__title { font-weight: 600; display: block; color: var(--tb-alert-ink, var(--info)); }
.tb-alert--success { background: var(--success-surface); --tb-alert-ink: var(--success); }
.tb-alert--warning { background: var(--warning-surface); --tb-alert-ink: var(--warning); }
.tb-alert--danger { background: var(--danger-surface); --tb-alert-ink: var(--danger); }
.tb-alert__close { background: none; border: 0; width: 2.75rem; height: 2.75rem; margin: -0.75rem -0.75rem 0 0; cursor: pointer; color: var(--text-muted); }
.tb-toasts { position: fixed; right: var(--space-4); left: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); z-index: var(--z-toast); display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .tb-toasts { left: auto; right: var(--space-5); bottom: var(--space-5); width: 26rem; } }
.tb-toasts--inline { position: static; width: auto; }
.tb-toast { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: start; padding: var(--space-4) var(--space-5); background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); font-size: 1rem; position: relative; overflow: hidden; animation: tb-toast-in var(--duration-base) ease-out both; }
.tb-toast__icon { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--info-surface); color: var(--info); }
.tb-toast--success .tb-toast__icon { background: var(--success-surface); color: var(--success); }
.tb-toast--warning .tb-toast__icon { background: var(--warning-surface); color: var(--warning); }
.tb-toast--danger .tb-toast__icon { background: var(--danger-surface); color: var(--danger); }
.tb-toast__title { font-weight: 600; display: block; }
.tb-toast__close { background: none; border: 0; width: 2.75rem; height: 2.75rem; margin: -0.75rem -0.75rem 0 0; cursor: pointer; color: var(--text-muted); }
.tb-toast__timer { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--lime-500); animation: tb-timer linear forwards; animation-duration: var(--tb-toast-ms, 5000ms); }
.tb-toast.is-leaving { animation: tb-toast-out 200ms ease-in forwards; }

/* ---------- Loading ---------- */
.tb-spinner { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--lime-500); border-right-color: var(--teal-700); animation: tb-spin 0.8s linear infinite; }
.tb-spinner--sm { width: 1.25rem; height: 1.25rem; border-width: 2px; }
.tb-skeleton { background: linear-gradient(90deg, #e6e8e8 0%, #f4f5f5 50%, #e6e8e8 100%); background-size: 200% 100%; animation: tb-shimmer 1.4s ease-in-out infinite; border-radius: var(--radius-xs); min-height: 1rem; }
.tb-skeleton--img { border-radius: var(--radius-sm); aspect-ratio: 2 / 1; }
.tb-progress { height: 0.5rem; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.tb-progress > span { display: block; height: 100%; width: var(--tb-progress, 40%); background: var(--teal-700); border-radius: inherit; transition: width var(--duration-slow); }
.tb-progress--indeterminate > span { width: 35%; animation: tb-indeterminate 1.3s ease-in-out infinite; }
.tb-loading-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(241, 241, 241, 0.75); border-radius: inherit; }

/* ---------- Modal, tabs, pagination, empty, consent ---------- */
.tb-modal { border: 0; padding: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); width: min(32rem, calc(100vw - 2rem)); background: var(--white); color: var(--text); }
.tb-modal::backdrop { background: rgba(0, 46, 49, 0.55); }
.tb-modal__body { padding: var(--space-6); display: grid; gap: var(--space-4); }
.tb-modal__title { font-size: var(--fs-h2); line-height: 1.3; }
.tb-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6); background: var(--surface-raised); border-top: 1px solid var(--line); }
.tb-modal--static { display: block; position: static; margin: 0; }
.tb-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tb-tabs button { background: none; border: 0; padding: var(--space-3) 0; min-height: 2.75rem; font: 400 1.1rem/1.2 var(--font-sans); color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tb-tabs button:hover { color: var(--text); }
.tb-tabs button[aria-selected="true"] { color: var(--text-brand); border-bottom-color: var(--lime-500); }
.tb-tabpanel { padding-top: var(--space-5); }
.tb-pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; list-style: none; padding: 0; margin: 0; }
.tb-pagination a, .tb-pagination span { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: var(--space-3); border-radius: var(--radius-pill); text-decoration: none; color: var(--text); font-size: 1.05rem; }
.tb-pagination a:hover { background: var(--white); color: var(--text-brand); }
.tb-pagination [aria-current="page"] { background: var(--teal-700); color: var(--white); }
.tb-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding: var(--space-8) var(--space-5); background: var(--surface-raised); border: 2px dashed var(--line); border-radius: var(--radius-md); }
.tb-empty img { width: 4.5rem; height: 4.5rem; }
.tb-empty h3 { font-size: var(--fs-h3); }
.tb-empty p { font-size: 1rem; color: var(--text-muted); max-width: 30rem; margin-bottom: var(--space-3); }

/* ---------- Admin (CMS) ---------- */
.tb-admin { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: var(--surface-page); font-size: 1rem; }
.tb-admin__side { display: none; background: var(--teal-900); color: var(--white); padding: var(--space-5) var(--space-3); flex-direction: column; gap: var(--space-5); --tb-focus: var(--focus-ring-inverse); }
@media (min-width: 768px) { .tb-admin { grid-template-columns: 4.5rem 1fr; } .tb-admin__side { display: flex; } .tb-admin__label, .tb-admin__navlabel, .tb-admin__logo span, .tb-admin__nav .tb-count { display: none; } }
@media (min-width: 1280px) { .tb-admin { grid-template-columns: 15.5rem 1fr; } .tb-admin__side { padding-inline: var(--space-4); } .tb-admin__label, .tb-admin__logo span { display: inline; } .tb-admin__navlabel, .tb-admin__nav .tb-count { display: block; } }
.tb-admin__logo { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-2) var(--space-4); border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 1.05rem; }
.tb-admin__logo img { width: 2.75rem; height: 2.75rem; }
.tb-admin__nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tb-admin__nav a { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-3); min-height: 2.75rem; border-radius: var(--radius-xs); color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.tb-admin__nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.tb-admin__nav a[aria-current="page"] { background: var(--teal-700); color: var(--white); }
.tb-admin__nav a[aria-current="page"] .ph { color: var(--lime-500); }
.tb-admin__nav .tb-count { margin-left: auto; background: var(--lime-500); color: var(--teal-900); border-radius: var(--radius-pill); font-size: 0.8rem; padding: 0 0.5rem; font-weight: 600; }
.tb-admin__navlabel { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); padding: 0 var(--space-3); margin-top: var(--space-3); }
.tb-admin__main { display: flex; flex-direction: column; min-width: 0; }
.tb-admin__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) var(--space-5); background: var(--white); border-bottom: 1px solid var(--line); }
.tb-admin__top h1 { font-size: 1.4rem; margin-right: auto; }
.tb-admin__user { display: flex; align-items: center; gap: var(--space-3); font-size: 0.95rem; }
.tb-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--teal-700); color: var(--white); display: grid; place-items: center; font-size: 0.9rem; font-weight: 600; flex: none; object-fit: cover; }
.tb-session { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tb-admin__content { padding: var(--space-4); display: grid; gap: var(--space-5); align-content: start; }
@media (min-width: 1024px) { .tb-admin__content { padding: var(--space-6); gap: var(--space-6); } }
.tb-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; }
.tb-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.tb-panel__head h2 { font-size: 1.2rem; margin-right: auto; }
.tb-panel__body { padding: var(--space-5); }
.tb-table-wrap { overflow-x: auto; }
.tb-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.tb-table th { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); padding: var(--space-3) var(--space-5); background: var(--surface-raised); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb-table th button { all: unset; cursor: pointer; display: inline-flex; gap: var(--space-1); align-items: center; }
.tb-table td { padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb-table tbody tr:hover { background: var(--surface-raised); }
.tb-table tr:last-child td { border-bottom: 0; }
.tb-table .tb-id { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-table__title { color: var(--text); font-weight: 600; text-decoration: none; }
.tb-table__title:hover { color: var(--text-brand); text-decoration: underline; }
.tb-table__sub { display: block; color: var(--text-muted); font-size: 0.85rem; }
.tb-toolbar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.tb-toolbar .tb-input, .tb-toolbar .tb-select { min-height: 2.75rem; padding-block: 0.4rem; font-size: 1rem; }
.tb-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-2); }
.tb-stat__label { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; gap: var(--space-2); }
.tb-stat__value { font-size: 2.2rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-stat__delta { font-size: 0.9rem; display: inline-flex; align-items: center; gap: var(--space-1); }
.tb-stat__delta--up { color: var(--success); } .tb-stat__delta--down { color: var(--danger); }
.tb-chart { width: 100%; height: auto; font-family: var(--font-sans); }
.tb-chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.tb-chart .axis { fill: var(--text-muted); font-size: 12px; }
.tb-chart .s1 { fill: var(--chart-1); } .tb-chart .s2 { fill: var(--chart-2); } .tb-chart .s3 { fill: var(--chart-3); } .tb-chart .s4 { fill: var(--chart-4); }
.tb-legend { display: flex; gap: var(--space-5); flex-wrap: wrap; font-size: 0.9rem; color: var(--text-muted); list-style: none; padding: 0; margin: 0; }
.tb-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.tb-legend i { width: 0.75rem; height: 0.75rem; border-radius: 3px; display: inline-block; }
.tb-history { list-style: none; padding: 0; margin: 0; }
.tb-history li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-items: start; padding: var(--space-4) 0; }
@media (min-width: 768px) { .tb-history li { grid-template-columns: auto 1fr auto; } }
.tb-history li + li { border-top: 1px solid var(--line); }
.tb-history__dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--line-strong); margin-top: 0.45rem; }
.tb-history li.is-current .tb-history__dot { background: var(--lime-500); }
.tb-history__title { font-weight: 600; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.tb-history__meta { color: var(--text-muted); font-size: 0.9rem; }
.tb-history__actions { display: flex; gap: var(--space-2); grid-column: 2; }
@media (min-width: 768px) { .tb-history__actions { grid-column: auto; } }
.tb-diff { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9rem; line-height: 1.6; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tb-diff div { padding: 0.15rem var(--space-4) 0.15rem 2.25rem; position: relative; white-space: pre-wrap; }
.tb-diff div::before { position: absolute; left: var(--space-3); font-family: "Phosphor-Bold"; font-size: 0.9rem; }
.tb-diff .del { background: var(--danger-surface); color: #7a1a12; }
.tb-diff .del::before { content: "\e32a"; color: var(--danger); } /* Phosphor minus */
.tb-diff .ins { background: var(--success-surface); color: #2b5a09; }
.tb-diff .ins::before { content: "\e3d4"; color: var(--success); } /* Phosphor plus */
.tb-login-screen { min-height: 100%; display: grid; place-items: center; padding: var(--space-7) var(--space-4); background: var(--teal-900); position: relative; overflow: hidden; }
.tb-login { position: relative; width: min(27rem, 100%); background: var(--white); border-radius: var(--radius-md); padding: var(--space-6) var(--space-5) var(--space-5); box-shadow: var(--shadow-overlay); display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .tb-login { padding: var(--space-7) var(--space-6) var(--space-6); } }
.tb-login__brand { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.tb-login__brand img:first-child { width: 4.5rem; height: 4.5rem; }
.tb-login__brand img + img { width: 14rem; }
.tb-login__brand p { font-size: 1rem; color: var(--text-muted); }
.tb-login__foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; flex-wrap: wrap; gap: var(--space-2); }
.tb-login__note { font-size: 0.85rem; color: var(--text-muted); text-align: center; display: flex; gap: var(--space-2); justify-content: center; align-items: center; }

/* ---------- Breadcrumbs ---------- */
.tb-breadcrumbs { font-size: 0.95rem; }
.tb-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); }
.tb-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-2); }
.tb-breadcrumbs li + li::before { content: "\e13a"; font-family: "Phosphor-Bold"; font-size: 0.8rem; color: var(--text-muted); } /* Phosphor caret-right */
.tb-breadcrumbs a { color: var(--text-brand); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.tb-breadcrumbs a:hover { text-decoration: underline; }
.tb-breadcrumbs [aria-current="page"] { color: var(--text-muted); }
.tb-hero .tb-breadcrumbs a, .tb-hero .tb-breadcrumbs [aria-current="page"], .tb-hero .tb-breadcrumbs li + li::before { color: var(--cream); }
/* Phones: show only "‹ Parent" (the current page is already the H1) */
@media (max-width: 767px) {
  .tb-breadcrumbs li { display: none; }
  .tb-breadcrumbs li:nth-last-child(2) { display: inline-flex; }
  .tb-breadcrumbs li:nth-last-child(2)::before { content: "\e138"; font-family: "Phosphor-Bold"; font-size: 0.8rem; color: inherit; } /* Phosphor caret-left */
}

/* ---------- Key facts ("At a glance") ---------- */
.tb-keyfacts { background: var(--white); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-4); }
.tb-keyfacts__title { font-size: var(--fs-h3); color: var(--text-brand); }
.tb-keyfacts__summary { font-size: var(--fs-body-lg); line-height: 1.5; }
.tb-keyfacts dl { margin: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .tb-keyfacts { padding: var(--space-6); } .tb-keyfacts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tb-keyfacts dl > div { display: grid; grid-template-columns: 2.75rem 1fr; grid-template-rows: auto auto; column-gap: var(--space-3); row-gap: var(--space-1); align-content: start; }
.tb-keyfacts dt { grid-column: 2; grid-row: 1; align-self: center; font-weight: 600; font-size: 1rem; }
.tb-keyfacts dd { grid-column: 2; grid-row: 2; margin: 0; font-size: 1rem; }
.tb-keyfacts dl > div > .ph { grid-row: 1; grid-column: 1; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--info-surface); color: var(--teal-700); display: grid; place-items: center; font-size: 1.35rem; }
.tb-keyfacts__foot { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* ---------- Next step (end-of-page action) ---------- */
.tb-nextstep { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-5); background: var(--surface-raised); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); }
@media (min-width: 768px) { .tb-nextstep { padding: var(--space-6) var(--space-7); } } /* text full width, button and phone underneath (client, 11 Nov 2026) */
.tb-nextstep h2 { font-size: var(--fs-h2); }
.tb-nextstep p { font-size: var(--fs-body); color: var(--text-muted); margin-top: var(--space-2); }
.tb-nextstep__actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; }
.tb-nextstep__actions .tb-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; }

/* ---------- Stepper ---------- */
.tb-stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; font-size: 0.95rem; color: var(--text-muted); }
.tb-stepper li { display: inline-flex; align-items: center; gap: var(--space-2); }
.tb-stepper li + li::before { content: ""; width: 1.5rem; height: 2px; background: var(--line-strong); }
.tb-stepper b { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; background: var(--white); }
.tb-stepper [aria-current="step"] { color: var(--text-brand); font-weight: 600; }
.tb-stepper [aria-current="step"] b { border-color: var(--teal-700); background: var(--teal-700); color: var(--white); }
.tb-stepper .is-done { color: var(--text); }
.tb-stepper .is-done b { border-color: var(--success); background: var(--success-surface); color: var(--success); font-size: 0; }
.tb-stepper .is-done b::before { content: "\e182"; font-family: "Phosphor-Bold"; font-weight: 400; font-size: 0.9rem; } /* Phosphor check */

/* ---------- Eligibility check (the two-step "Open a case" flow) ---------- */
.tb-elig { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-5); display: grid; gap: var(--space-5); color: var(--text); text-align: left; --tb-focus: var(--focus-ring); }
@media (min-width: 768px) { .tb-elig { padding: var(--space-6); } }
.tb-elig__head { display: grid; gap: var(--space-3); }
.tb-elig__title { font-size: var(--fs-h2); line-height: 1.25; }
.tb-elig__sub { font-size: 1rem; color: var(--text-muted); }
.tb-elig__step { display: grid; gap: var(--space-2); }
.tb-elig__step[hidden] { display: none; }
.tb-elig__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.tb-elig__nav .tb-btn--primary { flex: 1 1 14rem; }
.tb-elig__trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 0.9rem; color: var(--text-muted); }
.tb-elig__trust span { display: inline-flex; align-items: center; gap: var(--space-1); }
.tb-elig__trust .ph { color: var(--success); }
.tb-elig__saved { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: var(--space-2); }
.tb-elig__saved[hidden] { display: none; }
.tb-elig--compact { gap: var(--space-4); }
.tb-elig--compact .tb-elig__title { font-size: var(--fs-h3); }
.tb-choices { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr); border: 0; padding: 0 0 1.75rem; margin: 0; position: relative; }
.tb-choices legend { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
@media (min-width: 480px) { .tb-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tb-choice { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 3.25rem; padding: var(--space-3) var(--space-4); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; font-size: 1.05rem; line-height: 1.3; transition: border-color var(--duration-fast), background-color var(--duration-fast); }
.tb-choice:hover { border-color: var(--teal-700); }
.tb-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tb-choice__mark { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; background: var(--white); }
.tb-choice input[type="checkbox"] + .tb-choice__mark { border-radius: var(--radius-xs); }
.tb-choice input:checked + .tb-choice__mark { background: var(--teal-700); border-color: var(--teal-700); }
.tb-choice input:checked + .tb-choice__mark::after { content: "\e182"; font-family: "Phosphor-Bold"; color: var(--white); font-size: 0.85rem; } /* Phosphor check */
.tb-choice:has(input:checked) { border-color: var(--teal-700); background: var(--info-surface); }
.tb-choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tb-choice small { display: block; font-size: 0.9rem; color: var(--text-muted); }
.tb-elig .tb-confirm { border: 0; padding: 0; }
.tb-elig__note { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-sm); background: var(--warning-surface); font-size: 1rem; }
.tb-elig__note > .ph { color: var(--warning); margin-top: 0.1rem; }
.tb-elig__note[hidden] { display: none; }

/* ---------- Address finder ---------- */
.tb-addr { display: grid; gap: var(--space-3); }
.tb-addr__row { display: flex; gap: var(--space-2); }
.tb-addr__row .tb-input { flex: 1; min-width: 0; text-transform: uppercase; }
.tb-addr__row .tb-btn { flex: none; min-height: 3rem; box-shadow: none; }
.tb-addr__manual { justify-self: start; background: none; border: 0; padding: 0; min-height: 2.75rem; color: var(--link); text-decoration: underline; font: inherit; font-size: 1rem; cursor: pointer; }
.tb-addr__fields[hidden], .tb-addr__pick[hidden], .tb-addr__chosen[hidden] { display: none; }
.tb-addr__fields { display: grid; gap: var(--space-4); }
.tb-addr__chosen { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--success-surface); font-size: 1rem; }
.tb-addr__chosen .ph { color: var(--success); margin-top: 0.15rem; }
.tb-addr__chosen button { margin-left: auto; background: none; border: 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; min-height: 2.75rem; padding: 0 0 0 var(--space-3); align-self: center; }

/* ---------- Validation (on blur) ---------- */
.tb-field.is-valid .tb-input { border-color: var(--success); }
.tb-error[hidden] { display: none; }
.tb-errsummary { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); background: var(--danger-surface); font-size: 1rem; }
.tb-errsummary h2 { font-size: 1.05rem; font-weight: 600; color: var(--danger); display: flex; align-items: center; gap: var(--space-2); }
.tb-errsummary ul { margin: 0; padding-left: 1.25rem; }
.tb-errsummary a { color: var(--danger); font-weight: 600; }
.tb-errsummary[hidden] { display: none; }

/* ---------- Confirmation ---------- */
.tb-confirm { display: grid; gap: var(--space-5); background: var(--white); border-radius: var(--radius-md); border: var(--border-card) solid var(--line-teal); padding: var(--space-6) var(--space-5); }
@media (min-width: 768px) { .tb-confirm { padding: var(--space-7); } }
.tb-confirm__icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--success-surface); color: var(--success); display: grid; place-items: center; font-size: 2rem; }
.tb-confirm__ref { justify-self: start; display: inline-flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; padding: var(--space-3) var(--space-4); background: var(--surface-raised); border-radius: var(--radius-sm); font-size: 1rem; }
.tb-confirm__ref strong { font-size: 1.25rem; letter-spacing: 0.04em; color: var(--text-brand); font-variant-numeric: tabular-nums; }

/* ---------- Motion ---------- */
.tb-reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-slow) ease-out, transform var(--duration-slow) ease-out; }
.tb-reveal.is-visible { opacity: 1; transform: none; }
@keyframes tb-spin { to { transform: rotate(360deg); } }
@keyframes tb-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes tb-indeterminate { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes tb-toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes tb-toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes tb-timer { from { width: 100%; } to { width: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .tb-reveal { opacity: 1; transform: none; }
}

/* ---------- Links that contain icons: underline the words, never the icon ---------- */
a:has(> .ph):not(.tb-btn) { text-decoration: none; }
.tb-ul { text-decoration: none; }
.tb-link .tb-ul, .tb-prose a .tb-ul, .tb-infocard a .tb-ul, .tb-nextstep__actions .tb-link .tb-ul, .tb-alert a .tb-ul { text-decoration: underline; text-underline-offset: 0.18em; }
.tb-readmore:hover .tb-ul, .tb-backlink:hover .tb-ul, .tb-topbar a:hover .tb-ul, .tb-footer__contact a:hover .tb-ul, .tb-drawer__contact a:hover .tb-ul, .tb-infocard a:hover .tb-ul, .tb-contact-strip a:hover .tb-ul { text-decoration: underline; text-underline-offset: 0.18em; }
.tb-form .tb-fieldset:has(> .tb-error), .tb-elig .tb-fieldset:has(> .tb-error) { padding-bottom: 1.75rem; }
.tb-field:not(:has(.tb-error)):not(:has(.tb-help)):not(:has(.tb-counter)) { padding-bottom: 1rem; }

/* ---------- Disclosure animation (accordion, menu groups) ---------- */
.tb-accordion details, .tb-drawer__nav details { overflow: hidden; }
.tb-accordion summary .ph, .tb-drawer__nav summary .ph { transition: transform var(--duration-base) ease; }

/* v9: button labels stay on one line from 480px; below that a long label may wrap rather than overflow */
@media (min-width: 480px) { .tb-btn { white-space: nowrap; } }

/* v10 */
/* question cards on phones: title takes the full row and may wrap; the button sits underneath */
@media (max-width: 767px) {
  .tb-service-card--question { flex-wrap: wrap; }
  .tb-service-card--question .tb-service-card__title { flex: 1 1 100%; }
  .tb-service-card--question .tb-btn { white-space: normal; text-align: left; flex: 0 1 auto; max-width: 100%; }
}
/* the last dropdown in the nav opens leftwards so it never runs past the right edge (1024px without a CTA) */
.tb-nav__item:has(> .tb-nav__sub):not(:has(~ .tb-nav__item > .tb-nav__sub)) > .tb-nav__sub { left: auto; right: -1.25rem; }
/* keep visually hidden header cells inside the table's scroll box */
.tb-table-wrap { position: relative; }
/* long legal titles and URLs wrap instead of overflowing */
.tb-accordion--docs > details, .tb-accordion--docs summary > span { min-width: 0; }
.tb-accordion--docs summary > span, .tb-accordion--docs .tb-accordion__panel { overflow-wrap: anywhere; }

/* v12 optical icon weights
   One rendered stroke of about 1.5px everywhere, matching Jost Regular stems at body size.
   Phosphor stroke = size x (Light 12 | Regular 16 | Bold 24) / 256, so:
     up to 18px  -> Bold     (16px = 1.5px)
     19-28px     -> Regular  (24px = 1.5px)   default, no rule needed
     29px and up -> Light    (32px = 1.5px, 40px = 1.9px)
   Icons beside SemiBold/Bold text step up one weight. Same codepoints in every weight, so markup stays <i class="ph ph-NAME">. */
@font-face { font-family: "Phosphor-Bold"; src: url("../vendor/phosphor/Phosphor-Bold.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Phosphor-Light"; src: url("../vendor/phosphor/Phosphor-Light.woff2") format("woff2"); font-display: block; }

/* Bold: small icons (<= 18px) and icons beside SemiBold text */
.ph.tb-icon--sm, .ph.tb-icon--bold,
.tb-nav__link > .ph, .tb-nav__toggle .ph,
.tb-caption .ph, .tb-elig__trust .ph, .tb-login__note .ph, .tb-session .ph, .tb-stat__delta .ph, .tb-elig__saved .ph,
.tb-select-wrap > .ph, .tb-addr__pick .ph,
.tb-alert__close .ph, .tb-toast__close .ph, .tb-input-group__btn .ph,
.tb-badge .ph, th .ph, .tb-errsummary h2 .ph, .tb-label .ph, label > .ph { font-family: "Phosphor-Bold" !important; }

/* Light: large icons (>= 29px) */
.ph.tb-icon--xl, .ph.tb-icon--light,
.tb-carousel__arrow .ph, .tb-dropzone .ph, .tb-download > .ph:not(.ph-download-simple), .tb-map__gate .ph, .tb-map__gate .tb-link .ph,
.tb-confirm__icon .ph, .tb-confirm__icon.ph, .tb-embed__placeholder .ph { font-family: "Phosphor-Light" !important; }

/* Regular is restated for 24px icons inside light/bold contexts */
.ph.tb-icon--regular { font-family: "Phosphor" !important; }
/* v13: copywriter link labels ("Find out about low voltage equipment") are longer than the card; let them wrap inside it */
@media (min-width: 768px) {
  .tb-service-card--question .tb-btn { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - var(--space-6)); }
}
/* v13: the header shows the two journey links and Open a case; the Menu button opens the full sitemap at every width */
@media (min-width: 1024px) {
  .tb-nav__toggle { display: inline-flex; }
}
/* v13: with the Menu button always shown, 3rem gaps overflowed by ~9px at 1280 once a scrollbar takes its width */
@media (min-width: 1280px) {
  .tb-nav, .tb-nav__list { gap: var(--space-6); }
}
/* v13: long live-site article bodies (Word-pasted headings, URLs) must not widen the article grid on phones */
.tb-article > * { min-width: 0; }
.tb-article .tb-prose { overflow-wrap: break-word; }
/* v13: cards whose button already names the service ("Find out about low voltage equipment"):
   on phones the button is the whole card; the title stays for screen readers and search */
@media (max-width: 767px) {
  .tb-service-card--link { padding: var(--space-2); }
  .tb-service-card--link .tb-service-card__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tb-service-card--link .tb-btn { flex: 1 1 100%; max-width: none; justify-content: space-between; }
}
/* v13: testimonials as quote cards. Full-width quote text was hard to read; cards keep a comfortable
   measure, show 1 / 2 / 3 per view (phone / 768 / 1280) and share one height per row */
.tb-testimonials { padding-block: var(--section-y, var(--space-8)); }
.tb-testimonials .tb-carousel { --tb-per: 1; --tb-per-lg: 2; --tb-per-xl: 3; }
@media (min-width: 768px) { .tb-testimonials .tb-carousel { --tb-per: 2; } }
@media (min-width: 1280px) { .tb-testimonials .tb-carousel { --tb-per: 3; } }
.tb-testimonials .tb-carousel__track { align-items: stretch; padding-bottom: var(--space-2); }
.tb-quote { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); margin: 0;
  padding: var(--space-7) var(--space-6) var(--space-5); border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.tb-quote::before { content: "\201C" / ""; position: absolute; top: var(--space-2); left: var(--space-5); font-size: 4.5rem; line-height: 1; color: var(--lime-500); font-family: var(--font-sans); }
.tb-quote blockquote { margin: 0; font-size: var(--fs-body-lg); line-height: 1.6; max-width: 38rem; overflow-wrap: break-word; }
.tb-quote figcaption { padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, 0.18); }
.tb-quote cite { font-size: var(--fs-body-sm, 0.95rem); font-style: normal; font-weight: 600; letter-spacing: 0.01em; color: var(--sky-200, var(--white)); }
.tb-quote cite::before { content: "~ "; }
/* v13: CMS labels match the website's pill buttons: same pill, Jost SemiBold, brand teals; no status dots
   (the word carries the meaning, colour supports it) */
.tb-badge { gap: 0.35rem; padding: 0.3rem 0.9rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.25;
  border: 1.5px solid var(--line-teal); background: var(--white-50); color: var(--teal-900); }
.tb-badge::before { display: none; }
.tb-badge--brand, .tb-badge--brand.tb-badge--plain { background: var(--teal-900); border-color: var(--teal-900); color: var(--white); }
.tb-badge--info { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }
.tb-badge--success { background: var(--success-surface); border-color: var(--success); color: var(--success); }
.tb-badge--warning { background: var(--warning-surface); border-color: var(--warning); color: var(--warning); }
.tb-badge--danger { background: var(--danger-surface); border-color: var(--danger); color: var(--danger); }
.tb-badge--outline { background: transparent; border-color: var(--line-strong); color: var(--text-muted); }
/* v13: icon-only ghost buttons (list row chevrons, close buttons) never underline on hover:
   they darken to teal-900 on a light teal tint and switch to the Bold glyph */
.tb-btn--ghost[aria-label]:hover, .tb-btn--ghost[aria-label]:focus-visible { text-decoration: none; --tb-btn-fg: var(--teal-900); --tb-btn-icon: var(--teal-900); background: var(--info-surface); }
.tb-btn--ghost[aria-label]:hover .ph { font-family: "Phosphor-Bold" !important; }
@media (max-width: 767px) {
  .tb-service-card--link { background: transparent; box-shadow: none; padding: 0; }
}
@media (max-width: 767px) { .tb-testimonials .tb-carousel__track { align-items: start; } }
/* ---------- v14: no inline styles (strict CSP) ---------- */
/* Photo layers. An <img class="tb-cover-img"> as the first child replaces the old --tb-hero-img / --tb-cta-img /
   --tb-banner-img backgrounds, so the photo gets srcset, sizes, fetchpriority and alt text, and needs no inline style. */
.tb-hero, .tb-cta-banner, .tb-article__hero, .tb-profile__banner { isolation: isolate; }
.tb-article__hero, .tb-profile__banner { position: relative; overflow: hidden; }
.tb-hero > .tb-cover-img, .tb-cta-banner > .tb-cover-img, .tb-article__hero > .tb-cover-img, .tb-profile__banner > .tb-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -1; }
/* Watermark. <img class="tb-watermark__img" src="tb-watermark.svg" alt=""> replaces the --tb-watermark-src background. */
.tb-watermark, .tb-login-screen { isolation: isolate; }
.tb-watermark__img { position: absolute; right: -12%; bottom: -40%; width: 60%; max-width: none; aspect-ratio: 1; object-fit: contain; pointer-events: none; z-index: -1; }
.tb-watermark__img--login { right: -20rem; bottom: -30rem; width: 60rem; height: 60rem; opacity: 0.6; }
.tb-watermark__content { position: relative; z-index: 1; }
/* The avatar overlaps the banner; the banner is now a positioned photo layer, so the head must be positioned to stay on top. */
.tb-profile__head { position: relative; }
/* Per-instance values as classes */
.tb-grid--cols-2 { --tb-cols: 2; }
.tb-grid--cols-3 { --tb-cols: 3; }
.tb-grid--cols-4 { --tb-cols: 4; }
.tb-carousel--lg-3 { --tb-per-lg: 3; }
.tb-carousel--xl-4 { --tb-per-xl: 4; }
.tb-carousel__controls { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.tb-legend__key--1 { background: var(--chart-1); }
.tb-legend__key--2 { background: var(--chart-2); }
.tb-legend__key--3 { background: var(--chart-3); }
.tb-legend__key--4 { background: var(--chart-4); }
.tb-input--postcode { max-width: 14rem; text-transform: uppercase; }
.tb-input--search { min-width: 16.25rem; }
.tb-field--narrow { max-width: 20rem; }
.tb-form--card { max-width: 45rem; background: var(--white-50); padding: var(--space-6); border-radius: var(--radius-md); border: var(--border-card) solid var(--line-teal); }
.tb-accordion__title { flex: 1; }
.tb-prose--wide { max-width: none; }
.tb-address { font-style: normal; line-height: 1.7; }
.tb-badge--xs { font-size: 0.7rem; padding: 0 var(--space-2); }
.tb-stat__delta--neutral { color: var(--text-muted); }
.tb-table-foot { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) calc(var(--space-5) - var(--space-1)); border-top: var(--border-hairline) solid var(--line); }
.tb-skeleton--fill { border-radius: 0; height: 100%; }
.tb-skeleton--title { height: 1.375rem; width: 80%; }
.tb-skeleton--line { height: 0.875rem; }
.tb-skeleton--short { width: 50%; }
.tb-vstack { display: grid; gap: var(--space-4); }
/* Utilities: token steps only, for spacing between components. !important so they win like the inline styles they replace. */
.tb-mt-1 { margin-top: var(--space-1) !important; }
.tb-mt-2 { margin-top: var(--space-2) !important; }
.tb-mt-3 { margin-top: var(--space-3) !important; }
.tb-mt-4 { margin-top: var(--space-4) !important; }
.tb-mt-5 { margin-top: var(--space-5) !important; }
.tb-mb-2 { margin-bottom: var(--space-2) !important; }
.tb-mb-3 { margin-bottom: var(--space-3) !important; }
.tb-mb-4 { margin-bottom: var(--space-4) !important; }
.tb-gap-5 { gap: var(--space-5) !important; }
.tb-gap-7 { gap: var(--space-7) !important; }
.tb-align-start { align-items: start !important; }
.tb-fw-400 { font-weight: 400 !important; }
.tb-measure { max-width: 70ch !important; }
/* ---------- end v14 ---------- */

/* v15: page-building helpers for content-hub pages (Flow, steps, link lists, photo band, to-confirm marker, ActionBar spacing). Tokens only. */
/* ActionBar: steps aside while another lime button is in view (TB.initLimeGuard); reserves its height on phones. */
.tb-actionbar.is-yielding { transform: translateY(110%); }
@media (max-width: 767px) { body.tb-has-actionbar { padding-bottom: 5rem; } }
/* Flow: the vertical rhythm of a hub section (headings keep their component classes and weight). */
.tb-flow { max-width: var(--prose-max); }
.tb-flow--wide { max-width: none; } /* a text section with no photograph beside it fills the container (client, 11 Nov 2026) */
.tb-flow > * + * { margin-top: var(--space-4); }
.tb-flow .tb-h1 + *, .tb-flow .tb-heading + * { margin-top: var(--space-4); }
.tb-flow .tb-h3 { margin-top: var(--space-6); }
.tb-flow .tb-accordion { margin-top: var(--space-5); }
.tb-flow .tb-cluster { margin-top: var(--space-5); }
.tb-flow ul, .tb-flow ol { padding-left: 1.5em; }
.tb-flow li + li { margin-top: var(--space-2); }
.tb-flow li::marker { color: var(--teal-700); }
.tb-flow .tb-link-list { padding-left: 0; }
/* Step: the copywriter's numbered steps carry their own numbers ("1. Tell us about your property"), so no counter. */
.tb-step { border-left: var(--border-card) solid var(--line-teal); padding-left: var(--space-5); }
.tb-step + .tb-step { margin-top: var(--space-5); }
.tb-step .tb-h3 { margin-top: 0; }
/* Link list: a hub LINKS block. */
.tb-link-list { list-style: none; padding-left: 0; display: grid; gap: var(--space-2); }
/* Photo band: ServiceCards over a photograph. */
.tb-photo-band { background-color: var(--teal-900); padding-block: var(--section-y); position: relative; isolation: isolate; }
.tb-photo-band::before { content: ""; position: absolute; inset: 0; background: var(--overlay-hero); z-index: -1; }
.tb-photo-band__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.tb-photo-band .tb-service-card { height: 100%; }
@media (min-width: 768px) { .tb-photo-band .tb-grid { row-gap: var(--space-8); } }
.tb-service-card__title a { color: inherit; }
/* To-confirm marker: content the firm still has to supply (never client wording). */
.tb-to-confirm {
  display: inline-flex; align-items: center; gap: var(--space-1); max-width: 100%; padding: 0 var(--space-2); border-radius: var(--radius-xs); vertical-align: middle;
  font: 600 var(--fs-caption)/1.7 var(--font-sans); font-style: normal; letter-spacing: 0.02em; text-shadow: none;
  background: var(--warning-surface); color: var(--warning); border: var(--border-hairline) solid var(--warning);
}
.tb-to-confirm .ph { font-size: var(--icon-sm); }

/* ---------- v18 (20 Oct 2026): full-width layouts, photographs beside text, aligned banners ---------- */
/* Page banner: the breadcrumbs and H1 start on the same line as the header logo and the page content at every width. */
.tb-hero--banner { padding-inline: max(var(--page-margin), calc((100% - var(--container-max)) / 2)); }
/* Home hero with the journey cards: one photograph behind the message and the cards. */
.tb-hero--with-cards { grid-template-rows: 1fr auto; row-gap: var(--space-8); padding-bottom: var(--space-9); }
.tb-hero__cards { width: 100%; max-width: var(--container-max); text-align: left; }
.tb-hero__cards .tb-service-card { color: var(--text); text-shadow: none; height: 100%; }
@media (min-width: 768px) { .tb-hero__cards .tb-grid { row-gap: var(--space-8); } }
/* Split with a photograph: text beside a page photograph; the photograph follows the text on phones and tablets. */
.tb-split--media { align-items: stretch; }
.tb-split__media { margin: 0; min-width: 0; }
.tb-split__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
@media (min-width: 1024px) {
  .tb-split--media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tb-split--media.tb-split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .tb-split--reverse > .tb-split__media { order: -1; }
  .tb-split__media { contain: size; min-height: 22rem; } /* the text sets the section's height, not the photograph */
  .tb-split__media img { position: sticky; top: calc(var(--header-bar) + var(--space-5)); height: 100%; max-height: 40rem; aspect-ratio: auto; }
}
/* Photographs beside text are shown whole at their own proportions (portrait, square or landscape), never cropped to
   fit the text's height: as wide as the column, up to 40rem tall. */
.tb-split__media--whole img { aspect-ratio: auto; height: auto; max-height: 40rem; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
@media (min-width: 1024px) {
  .tb-split__media--whole { contain: none; min-height: 0; }
  .tb-split__media--whole img { height: auto; }
}
/* ServiceTiles use the full container width under the section's text. */
.tb-tiles { margin-top: var(--space-6); }
/* Article: no banner; the back link and date sit above the line, and the article starts level with it. */
.tb-article-page { padding-top: calc(var(--mark-overhang) + var(--space-5)); padding-bottom: var(--section-y); }
.tb-article-page .tb-breadcrumbs { margin-bottom: var(--space-5); }
.tb-article__lead { display: grid; gap: var(--space-3); justify-items: start; }
.tb-article__aside { border-top: var(--border-hairline) solid var(--line); padding-top: var(--space-5); }
.tb-article__author { border-top: 0; padding-top: 0; }
.tb-article > .tb-prose > :first-child { margin-top: 0; }
@media (min-width: 1024px) {
  .tb-article { grid-template-rows: auto 1fr; gap: var(--space-4) var(--space-7); }
  .tb-article__lead { grid-column: 1; grid-row: 1; }
  .tb-article__aside { grid-column: 1; grid-row: 2; }
  .tb-article > .tb-prose { grid-column: 2; grid-row: 2; padding-top: var(--space-5); }
}
/* Team profile: one landscape banner, the breadcrumbs clear of the headshot, the biography across the page. */
.tb-profile { display: grid; gap: var(--space-5) var(--space-6); align-items: start; padding-top: var(--space-5); padding-bottom: var(--section-y); }
.tb-profile .tb-profile__head { margin-top: 0; }
.tb-profile > .tb-breadcrumbs { grid-column: 1 / -1; }
.tb-profile .tb-profile__name { padding-top: 0; }
@media (min-width: 768px) { .tb-profile .tb-profile__head { align-items: center; } }
.tb-profile__bio { max-width: none; }
@media (min-width: 1024px) {
  .tb-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); column-gap: var(--space-7); }
  .tb-profile .tb-profile__head { display: grid; justify-items: start; align-items: start; gap: var(--space-4); position: sticky; top: calc(var(--header-bar) + var(--space-5)); }
}
/* ---------- end v18 ---------- */
/* ---------- v19 (21 Oct 2026): Contact page layout ---------- */
/* Contact: the ContactStrip straight under the banner; the ways to reach us and the Open a case block on the left, the
   enquiry form on the right (grid areas, so the markup keeps the content hub's order; stacked in that order below
   1024px); then the address beside a photograph. The strip's Open a case tile is the page's lime surface
   (data-lime-fixed: TB.initLimeGuard demotes other lime buttons while it is in view). */
.tb-contact { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1024px) {
  .tb-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "ways form" "more form"; column-gap: var(--space-8); }
  .tb-contact__ways { grid-area: ways; }
  .tb-contact__form { grid-area: form; }
  .tb-contact__more { grid-area: more; }
}
.tb-contact__form.tb-flow { max-width: none; }
.tb-contact__ways { display: grid; gap: var(--space-6); }
.tb-contact__ways > .tb-flow + .tb-flow, .tb-contact__more { border-top: var(--border-hairline) solid var(--line); padding-top: var(--space-6); }
.tb-address + .tb-link-list .tb-link { display: inline-flex; align-items: center; gap: var(--space-1); }
.tb-contact__tel { font-size: var(--fs-h2); line-height: 1.2; }
.tb-contact__tel a { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 2.75rem; }
.tb-contact__form .tb-form--card { max-width: none; margin-top: var(--space-5); }
.tb-contact-strip small { overflow-wrap: break-word; } /* the address breaks after its @ (<wbr>) on tablets */
/* ---------- end v19 ---------- */
/* ---------- v19 (21 Oct 2026): service pages ---------- */
/* PhotoQuote: one client quote on a darkened photograph, in the photograph column of a split (the live service pages put
   one beside their introduction). The photograph is decoration (alt=""); the quote sets the height, at least 20rem.
   Scrim: overlay-hero twice (about 58% black) plus the hero's text shadow, so the photograph shows and the text stays AA. */
.tb-photo-quote { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); min-height: 20rem; margin: 0;
  padding: var(--space-8) var(--space-6) var(--space-7); border-radius: var(--radius-md); background: var(--teal-900); color: var(--cream); --tb-focus: var(--focus-ring-inverse); }
.tb-photo-quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--overlay-hero), var(--overlay-hero)), var(--overlay-hero); } /* two hero scrims: the photograph stays visible */
.tb-photo-quote > img, .tb-split__media.tb-photo-quote > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.tb-photo-quote blockquote { margin: 0; max-width: 34rem; font-size: var(--fs-body-lg); line-height: 1.6; overflow-wrap: break-word; }
.tb-photo-quote blockquote, .tb-photo-quote figcaption { text-shadow: 0 0 var(--space-2) var(--overlay-cta); } /* as the hero lead: cream on a photograph needs a scrim and a shadow (Accessibility.md) */
.tb-photo-quote blockquote::before { content: "\201C" / ""; display: block; height: var(--space-6); font-size: calc(var(--fs-display) * 2); line-height: 1; color: var(--lime-500); }
.tb-photo-quote--long blockquote { font-size: var(--fs-body); }
.tb-photo-quote figcaption { max-width: 34rem; padding-top: var(--space-4); border-top: var(--border-hairline) solid color-mix(in srgb, var(--cream) 30%, transparent); }
.tb-photo-quote cite { font-size: var(--fs-body-sm); font-style: normal; font-weight: 600; color: var(--sky-200); }
.tb-photo-quote cite::before { content: "~ "; }
@media (min-width: 1024px) { .tb-split__media.tb-photo-quote { contain: none; min-height: 22rem; padding: var(--space-8) var(--space-7); } }
/* CtaBanner carrying a page's NextStep (heading, line, the hub's button and the phone link) on a photograph: the live
   site's closing band. One or the other per page, never both; its lime button is the one in view. */
.tb-cta-banner--nextstep .tb-cta-banner__inner { gap: var(--space-4); }
.tb-cta-banner--nextstep h2 { font-size: var(--fs-h1); font-weight: 400; line-height: 1.25; color: var(--white); }
.tb-cta-banner--nextstep p { margin: 0; }
.tb-cta-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-3); }
.tb-cta-banner__actions .tb-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--cream); text-decoration: none; }
.tb-cta-banner__actions .tb-link .tb-ul { text-decoration: underline; text-underline-offset: 0.18em; }
.tb-cta-banner__actions .tb-link:hover { color: var(--white); }
/* ---------- end v19 service pages ---------- */

/* ---------- v19.1 (21 Oct 2026): static office map, PhotoQuote mark spacing ---------- */
/* MapEmbed, static (.tb-map--static): a map image the site serves itself (from OpenStreetMap), the office at its centre.
   Nothing loads from a map provider, so no consent, cookies or policy change. The OpenStreetMap credit is required by its
   licence. The box keeps MapEmbed's shape (16:9, 4:5 on phones); beside text from 1024px it takes the text's height. */
.tb-map--static { display: block; place-items: normal; background: var(--grey-100); }
.tb-map--static > a { display: block; width: 100%; height: 100%; }
.tb-map--static img, .tb-split__media.tb-map--static img { position: static; display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: 0; }
.tb-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--teal-900); color: var(--cream); border: var(--border-focus) solid var(--cream); box-shadow: var(--shadow-card); pointer-events: none; }
.tb-map__pin .ph { font-size: var(--icon-md); }
.tb-map__credit { position: absolute; right: 0; bottom: 0; padding: var(--space-1) var(--space-2); font-size: var(--fs-caption); line-height: 1.4; color: var(--text); background: var(--white-50); border-top-left-radius: var(--radius-sm); }
.tb-map__credit a { color: var(--text-brand); }
@media (min-width: 1024px) { .tb-split__media.tb-map--static { aspect-ratio: auto; } }
/* PhotoQuote: the opening mark's box holds the whole glyph, then a gap in proportion to it before the quote. */
.tb-photo-quote blockquote::before { height: 0.42em; margin-bottom: 0.12em; overflow: visible; }
/* ---------- end v19.1 ---------- */

/* ---------- v19.2 (21 Oct 2026): contact action row ---------- */
/* A hub block of contact buttons on their own ("Call us", "Email us", "Start your enquiry"): one card of equal actions
   with their icons, three across from 768px, stacked on phones. The markup stays the hub's bare buttons in a .tb-flow. */
.tb-flow:has(> .tb-btn:first-child) { max-width: none; display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--surface-raised); border: var(--border-hairline) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .tb-flow:has(> .tb-btn:first-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--space-6); gap: var(--space-5); } }
.tb-flow:has(> .tb-btn:first-child) > * + * { margin-top: 0; }
.tb-flow:has(> .tb-btn:first-child) > .tb-btn { width: 100%; min-height: 3.5rem; justify-content: center; gap: var(--space-3); }
.tb-flow:has(> .tb-btn:first-child) > .tb-btn--outline { border-color: var(--teal-700); }
.tb-flow > .tb-btn:first-child::before, .tb-flow > .tb-btn:first-child ~ .tb-btn::before { font-family: "Phosphor-Bold"; font-size: var(--icon-sm); line-height: 1; color: var(--tb-btn-icon); }
.tb-flow > .tb-btn[href^="tel:"]::before { content: "\e3b8"; } /* Phosphor phone */
.tb-flow > .tb-btn[href^="mailto:"]::before { content: "\e218"; } /* Phosphor envelope-simple */
.tb-flow > .tb-btn:not([href^="tel:"]):not([href^="mailto:"])::before { content: "\e06c"; } /* Phosphor arrow-right */
/* ---------- end v19.2 ---------- */

/* ---------- v19.3 (21 Oct 2026): drawer on short screens ---------- */
/* Laptop screens are short (a 13" laptop at 150% scaling shows about 1280 x 600px). On them the side-sheet drawer's menu
   list scrolls on its own and its foot, with Open a case, always sits in view below it (nothing overlaps, so a focused
   menu item is scrolled into view within the list, never hidden). Rows are a little tighter and their text 1px smaller;
   they stay 2.75rem (44px), the touch-target minimum. Tall screens are unchanged. */
@media (min-width: 768px) and (max-height: 860px) {
  .tb-drawer__panel { overflow: hidden; }
  .tb-drawer__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .tb-drawer__nav > li > a, .tb-drawer__nav > li > details > summary { min-height: 2.75rem; font-size: 1.1875rem; }
  .tb-drawer__foot { flex: none; margin-top: 0; padding-block: var(--space-4); gap: var(--space-3); border-top: var(--border-hairline) solid var(--line); }
  .tb-drawer__contact { gap: 0; }
}
/* Laptops (from 1024px wide, up to 860px tall): the header's utility bar already shows the phone number, email and Pay
   invoice, so the drawer's foot keeps only Open a case, and its head is a little shorter; the eleven menu rows then fit
   without scrolling from about 620px tall. Phones and tablets keep the contact links in the drawer (their header has
   no room for them). */
@media (min-width: 1024px) and (max-height: 860px) {
  .tb-drawer__head { min-height: 4rem; padding-block: var(--space-2); }
  .tb-drawer__nav { padding-block: 0; }
  .tb-drawer__contact { display: none; }
  .tb-drawer__foot { padding-block: var(--space-2) var(--space-3); }
}
/* ---------- end v19.3 ---------- */

/* ---------- ConsentBanner (v20; DECISIONS #76): bottom left, full width on phones; replaces the v1 proposal ---------- */
.tb-consent { position: fixed; z-index: var(--z-dropdown); left: 0; right: 0; bottom: 0; display: grid; gap: var(--space-3); padding: var(--space-5) var(--page-margin) calc(var(--space-5) + env(safe-area-inset-bottom)); background: var(--white); color: var(--text); border-top: var(--border-card) solid var(--teal-700); box-shadow: var(--shadow-overlay); max-height: 85vh; overflow-y: auto; font-size: var(--fs-body-sm); }
.tb-consent[hidden], .tb-consent [hidden] { display: none !important; }
.tb-consent__title { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-h3); font-weight: 400; color: var(--text-brand); line-height: 1.3; }
.tb-consent__title:focus { outline: none; }
.tb-consent p { margin: 0; }
.tb-consent__prefs .tb-check { font-size: var(--fs-body-sm); }
.tb-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.tb-consent__manage { background: none; border: 0; padding: 0; min-height: 2.75rem; font: inherit; color: var(--text-brand); cursor: pointer; }
@media (min-width: 768px) {
  .tb-consent { left: var(--space-5); right: auto; bottom: var(--space-5); width: min(28rem, calc(100vw - 2 * var(--space-5))); padding: var(--space-5) var(--space-6); border: var(--border-card) solid var(--line-teal); border-radius: var(--radius-md); }
}
.tb-footer__legal button.tb-link { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; cursor: pointer; }

/* ---------- ContactStrip office hours (v20; DECISIONS #76): set by TB.initContactHours ---------- */
.tb-contact-strip.is-open, .tb-contact-strip.is-closed { display: flex; flex-wrap: wrap; }
.tb-contact-strip.is-open > a, .tb-contact-strip.is-closed > a { flex: 1 1 0; min-width: 0; }
.tb-contact-strip > a.is-big { flex: 1 1 100%; min-height: 5.5rem; font-size: var(--fs-h2); }
.tb-contact-strip > a.is-big > .ph { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; }
.tb-contact-strip > a.is-big small { font-size: var(--fs-body-lg); }
.tb-contact-strip > a.is-icon { flex: 0 0 auto; min-width: 5rem; }
.tb-contact-strip.is-closed > .tb-contact-strip__email { order: -1; }
@media (min-width: 768px) {
  .tb-contact-strip.is-open, .tb-contact-strip.is-closed { flex-wrap: nowrap; }
  .tb-contact-strip > a.is-big { flex: 2 1 0; }
  .tb-contact-strip > a.is-icon { min-width: 6rem; }
}

/* ---------- AdminShell: show the section names on tablets and small laptops (v20; DECISIONS #76) ---------- */
.tb-admin__expand { display: none; }
@media (min-width: 768px) and (max-width: 1279.98px) {
  .tb-admin__expand { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-2); background: none; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius-xs); color: var(--white); font: inherit; font-size: var(--fs-caption); cursor: pointer; }
  .tb-admin__expand:hover { background: rgba(255, 255, 255, 0.08); }
  .tb-admin__expand .ph { transition: transform var(--duration-base); }
  .tb-admin.is-rail-open { grid-template-columns: 15.5rem 1fr; }
  .tb-admin.is-rail-open .tb-admin__side { padding-inline: var(--space-4); }
  .tb-admin.is-rail-open .tb-admin__label, .tb-admin.is-rail-open .tb-admin__logo span { display: inline; }
  .tb-admin.is-rail-open .tb-admin__navlabel, .tb-admin.is-rail-open .tb-admin__nav .tb-count { display: block; }
  .tb-admin.is-rail-open .tb-admin__expand { justify-content: flex-start; }
  .tb-admin.is-rail-open .tb-admin__expand .ph { transform: rotate(180deg); }
  .tb-admin.is-rail-open .tb-admin__expand-show { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tb-admin__expand .ph { transition: none; } }
