/* V3 colour theme (31 Oct 2026), after the Framer mock-up Fatima made (tasty-shares-923773.framer.app):
   white pages and mist bands, a deep-green hero on every page, the logo's four colours as solid
   card fills, a solid green closing band and pill buttons. Dan and Mila had found the site pale.
   Loaded on every page after the site's CSS (app/layout.jsx, tools/add-theme-css.py). */

:root {
  --t-ink: #123d36;
  --t-green: #5fbb57;
  --t-sea: #3cb68c;
  --t-teal: #25b0b2;
  --t-sky: #1cabc9;
  --t-mist: #f2f6f2;
  --t-on-dark: #d6e7df;
}

/* ---- Base: white pages, brand ink, pill buttons */
.clarity-home.clarity-home, .interior-page.interior-page {
  background: #fff;
  --primary: var(--t-ink);
  --accent-strong: #1f8f86;
  --ring: var(--t-teal);
  --foreground: var(--t-ink);
  --cl-ink: var(--t-ink);
}
header[data-scrolled] { background: rgba(255, 255, 255, 0.96); border-bottom-color: rgba(18, 61, 54, 0.08) !important; backdrop-filter: blur(10px); }
a.rounded-lg[class*="bg-primary"], a[data-slot="button"], button[data-slot="button"], .ip-close a.rounded-lg, .cl-conversation a.rounded-lg {
  border-radius: 999px !important;
}

/* ---- Dark green bands (hero, report, mission, footer) */
.chapter-deep.chapter-deep { --deep: var(--t-ink); background-color: var(--t-ink) !important; }

/* Homepage hero */
.clarity-home .cl-hero { background: var(--t-ink); color: #fff; }
.clarity-home .cl-hero .cl-kicker { color: var(--t-green); }
.clarity-home .cl-hero .cl-kicker > span { background: var(--t-green); box-shadow: 0 0 0 5px rgba(95, 187, 87, 0.18); }
.clarity-home .cl-hero h1 { color: #fff; }
.clarity-home .cl-hero h1 span { color: var(--t-green); }
.clarity-home .cl-hero p { color: var(--t-on-dark); }
.clarity-home .cl-hero .cl-hero-intro { color: #fff; }
.clarity-home .cl-hero a.rounded-lg { background: var(--t-green); color: var(--t-ink); }
.clarity-home .cl-hero a.rounded-lg:hover { background: #74cb6c; }
.clarity-home .cl-hero .cl-text-link { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 10px 20px; }
/* the sculpture is drawn on a near-white ground: give it a card of that colour on the dark band */
.clarity-home .cl-hero .cl-art-depth { background: #f8faf7; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.clarity-home .cl-hero .cl-art-caption { color: var(--t-on-dark); }

/* Trust row and common issues */
.clarity-home .cl-trust { background: var(--t-mist); }
.ci-band.ci-band { background: #fff; }
.ci-band .ci-card { box-shadow: 0 0 0 6px var(--t-teal), 0 30px 60px -28px rgba(18, 61, 54, 0.5); }

/* Service stories: white / mist / ink / white, numbers in the logo colours */
.clarity-home .cl-story-1 { background: var(--t-mist) !important; }
.clarity-home .cl-story-2 { background: var(--t-ink) !important; }

/* "We understand your world": the two sector rows become solid cards */
.clarity-home .cl-industries a[data-reveal] {
  border: 0 !important; border-radius: 24px; padding: 30px 30px 32px !important; color: #fff;
  transition: transform 300ms cubic-bezier(.23, 1, .32, 1), box-shadow 300ms ease;
}
.clarity-home .cl-industries a[data-reveal]:nth-of-type(1) { background: var(--t-ink); }
.clarity-home .cl-industries a[data-reveal]:nth-of-type(2) { background: var(--t-sea); }
.clarity-home .cl-industries a[data-reveal] h3,
.clarity-home .cl-industries a[data-reveal] p,
.clarity-home .cl-industries a[data-reveal] .cl-sector-order,
.clarity-home .cl-industries a[data-reveal] svg { color: #fff !important; }
.clarity-home .cl-industries a[data-reveal]:nth-of-type(2) h3,
.clarity-home .cl-industries a[data-reveal]:nth-of-type(2) svg { color: var(--t-ink) !important; }
.clarity-home .cl-industries a[data-reveal]:nth-of-type(2) p,
.clarity-home .cl-industries a[data-reveal]:nth-of-type(2) .cl-sector-order { color: #0d2f2a !important; }
.clarity-home .cl-industries a[data-reveal]:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -26px rgba(18, 61, 54, 0.6); }

/* Closing bands: solid green */
.cl-conversation.cl-conversation, .ip-close.ip-close { background: var(--t-green) !important; }
.cl-conversation *, .ip-close h2, .ip-close p { color: var(--t-ink); }
.cl-conversation a.rounded-lg, .ip-close a.rounded-lg { background: var(--t-ink) !important; color: #fff !important; }

/* ---- Interior pages: the opening band is deep green too */
.interior-page .ip-intro { background: var(--t-ink); color: #fff; }
.interior-page .ip-intro h1 { color: #fff; }
.interior-page .ip-intro h1 span { color: var(--t-green); }
.interior-page .ip-intro p, .interior-page .ip-intro li { color: var(--t-on-dark); }
.interior-page .ip-intro .ip-breadcrumb, .interior-page .ip-intro .ip-breadcrumb a { color: var(--t-on-dark) !important; }
.interior-page .ip-intro a.rounded-lg { background: var(--t-green) !important; color: var(--t-ink) !important; }
/* cards that sit inside the opening band keep their own light ground */
.interior-page .ip-intro .ip-about-fact, .interior-page .ip-intro .ip-service-map a { color: var(--t-ink); }
.interior-page .ip-intro .ip-about-fact p { color: var(--t-ink) !important; }
.interior-page .ip-intro .ip-about-fact { background: var(--t-green) !important; border: 0 !important; }

/* Bands that were a pale green or grey */
.ip-handover.ip-handover { background: var(--t-mist) !important; }
.ip-about-values.ip-about-values { background: var(--t-mist) !important; }

/* Who we serve cards: solid fills like the homepage rows */
.ip-sector-card.ip-sector-card { border: 0 !important; border-radius: 24px; padding: 30px !important; }
.ip-sector-card.ip-sector-card:nth-of-type(1) { background: var(--t-ink); }
.ip-sector-card.ip-sector-card:nth-of-type(2) { background: var(--t-sea); }
.ip-sector-card:nth-of-type(1) h2, .ip-sector-card:nth-of-type(1) p, .ip-sector-card:nth-of-type(1) svg { color: #fff !important; }
.ip-sector-card:nth-of-type(2) h2, .ip-sector-card:nth-of-type(2) p, .ip-sector-card:nth-of-type(2) svg { color: var(--t-ink) !important; }
.ip-sector-card .ip-sector-tags { border-color: rgba(255, 255, 255, 0.3) !important; }

/* CEO Insights and Dan's panel: same ink */
.ask.ask, .ia-dan.ia-dan { --ink: var(--t-ink); }

/* Sector pages: the ribbon under the opening heading */
.interior-page .ip-intro .ip-sector-ribbon { background: var(--t-green) !important; border: 0 !important; border-radius: 18px; }
.interior-page .ip-intro .ip-sector-ribbon p, .interior-page .ip-intro .ip-sector-ribbon a { color: var(--t-ink) !important; }
/* Closing band: the second heading line and the text were a faded green on the green */
.cl-conversation.cl-conversation h2 span, .cl-conversation.cl-conversation p, .ip-close.ip-close h2 span {
  color: #0b2b26 !important; opacity: 1 !important;
}
.cl-conversation.cl-conversation h2 span { color: #fff !important; }

/* ===================================================================================
   Vivid pass (31 Oct, second round): she found the first pass still pale. The diagrams and
   animations now sit on solid logo-colour panels like the Framer cards, and the type follows
   Framer: Bricolage Grotesque 700 headings, Karla 400 body in full ink, Karla 600 kickers.
   =================================================================================== */

/* ---- Type */
.clarity-home h1, .clarity-home h2, .interior-page h1, .interior-page h2, .ask h1, .ask h2, .ia-dan h2, .ci-copy h2 {
  font-weight: 700 !important; letter-spacing: -0.035em;
}
.clarity-home h3, .interior-page h3, .ask h3 { font-weight: 600 !important; letter-spacing: -0.02em; }
.clarity-home, .interior-page { --cl-muted: #22433c; --muted-foreground: #22433c; color: var(--t-ink); }
.cl-kicker.cl-kicker, .interior-page .ip-kicker, .ci-copy .cl-kicker {
  font-family: Karla, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-sea);
}
.chapter-deep .cl-kicker, .clarity-home .cl-hero .cl-kicker, .cl-story-2 .cl-kicker { color: var(--t-green) !important; }
nav a, header a { font-weight: 600; }

/* ---- Service tabs bar: solid colour tiles with white icons */
.cl-service-nav.cl-service-nav { background: #fff; border-color: rgba(18, 61, 54, 0.1); }
.cl-service-nav .ia-service-icon { background: var(--t-sky) !important; }
.cl-service-nav a:nth-of-type(2) .ia-service-icon, .cl-service-nav button:nth-of-type(2) .ia-service-icon { background: var(--t-teal) !important; }
.cl-service-nav a:nth-of-type(3) .ia-service-icon, .cl-service-nav button:nth-of-type(3) .ia-service-icon { background: var(--t-sea) !important; }
.cl-service-nav a:nth-of-type(4) .ia-service-icon, .cl-service-nav button:nth-of-type(4) .ia-service-icon { background: var(--t-green) !important; }
.cl-service-nav .ia-service-icon svg, .cl-service-nav .ia-service-icon svg * { stroke: #fff !important; }

/* ---- 01 Accounting: sky panel, white cards, white wires */
.cl-accounting { --flow-color: #ffffff; }
.cl-accounting .ia-current-svg > rect:first-of-type { fill: var(--t-sky) !important; }
.cl-accounting .ia-current-svg .flow-track { stroke: rgba(255, 255, 255, 0.35) !important; }
.cl-accounting .ia-current-svg .flow-halo, .cl-accounting .ia-current-svg .flow-wire { stroke: #fff !important; }
.cl-accounting .ia-current-svg circle[fill]:not([class]) { fill: #fff; }
.cl-accounting .ia-current-svg .source-panel { stroke: #fff !important; }
.cl-accounting .ia-current-svg .row-light, .cl-accounting .ia-current-svg .row-scan { fill: var(--t-green) !important; }
.cl-diagram.cl-accounting { background: transparent !important; }

/* ---- 02 Board reporting: the papers fan out in teal, sea and white */
.cl-back-page.cl-back-page { background: var(--t-teal) !important; border-color: var(--t-teal) !important; }
.cl-middle-page.cl-middle-page { background: var(--t-sea) !important; border-color: var(--t-sea) !important; }
.cl-back-page svg, .cl-back-page svg *, .cl-middle-page svg, .cl-middle-page svg * { stroke: #fff !important; }
.cl-back-page, .cl-middle-page { color: #fff !important; }
.cl-front-page.cl-front-page { border-color: rgba(18, 61, 54, 0.12) !important; box-shadow: 0 30px 60px -28px rgba(18, 61, 54, 0.55); }
.cl-front-page i { background: #bfe9e4 !important; }
.cl-front-page b { background: var(--t-ink) !important; }
.cl-front-page .cl-piece:last-child, .cl-front-page [class*="cl-piece"]:last-of-type { background: var(--t-green) !important; color: var(--t-ink); }

/* ---- 03 Forecasting: teal panel, ink branch cards, green bars */
.cl-forecast-visual.cl-forecast-visual { background: var(--t-teal) !important; }
.cl-forecast-visual .cl-branch { background: var(--t-ink) !important; border-color: var(--t-ink) !important; }
.cl-forecast-visual .cl-branch b { background: var(--t-green) !important; }
.cl-forecast-visual .cl-branch i { background: rgba(255, 255, 255, 0.18) !important; }
.cl-forecast-visual .cl-symbol { background: var(--t-green) !important; }
.cl-forecast-visual svg.lucide-arrow-down, .cl-forecast-visual svg.lucide-arrow-down * { stroke: #fff !important; }
.cl-forecast-visual .cl-stage-caption, .cl-forecast-visual .cl-scenario-note { color: #fff !important; }
.cl-forecast-visual button[class*="group/button"]:not([aria-pressed="true"]):not([data-state="on"]) { color: #fff; }

/* ---- 04 Compliance: green panel, white cards, months fill in ink */
.cl-compliance-visual.cl-compliance-visual { background: var(--t-green) !important; }
.cl-compliance-visual svg.lucide-shield-check { background: #fff !important; border-color: #fff !important; }
.cl-compliance-visual .cl-audit-point { background: #fff !important; border-color: var(--t-ink) !important; }
.cl-compliance-visual .cl-audit-item { background: rgba(255, 255, 255, 0.92) !important; border-radius: 10px; }
.cl-compliance-visual .cl-stage-caption, .cl-compliance-visual .cl-readiness-head { color: var(--t-ink) !important; }
.pl-year.pl-year li { background: rgba(255, 255, 255, 0.55); color: var(--t-ink); }
.pl-year.is-on li { background: var(--t-ink) !important; color: #fff !important; }

/* Section rhythm on the homepage stories: white / mist / ink / white */
.clarity-home .cl-story-2 h2, .clarity-home .cl-story-2 h3 { color: #fff !important; }
.clarity-home .cl-story-2 p { color: var(--t-on-dark) !important; }
.clarity-home .cl-story-2 .cl-text-link { color: #fff !important; }

/* Services page chapters alternate white and mist like the homepage */
.interior-page .ip-service-chapter:nth-of-type(odd) { background: var(--t-mist) !important; }

/* Services page: its accounting diagram is drawn in HTML, not on the homepage's SVG panel */
.interior-page .cl-diagram.cl-accounting { background: var(--t-sky) !important; border-radius: 24px; padding: 28px !important; }
.interior-page .cl-accounting .cl-source { background: #fff !important; border-color: #fff !important; }
/* the joining lines stay lines (a first pass filled them white, which drew white blocks over the sheet) */
.interior-page .cl-accounting .cl-merge-lines i { background: transparent !important; border-color: #fff !important; border-bottom-width: 2px; }
.interior-page .cl-accounting .cl-merge-lines i:first-child { border-left-width: 2px; }
.interior-page .cl-accounting .cl-merge-lines i:nth-child(2) { border-bottom-width: 0; }
.interior-page .cl-accounting .cl-merge-lines i:last-child { border-right-width: 2px; }
.interior-page .cl-accounting .cl-merge-lines i:nth-child(2)::before { background: #fff !important; width: 2px; }
.interior-page .cl-accounting .cl-close-sheet { box-shadow: 0 24px 50px -24px rgba(18, 61, 54, 0.5); }
.interior-page .cl-accounting .cl-stage-caption { color: #fff !important; }
.interior-page .cl-accounting .cl-check { background: var(--t-green) !important; color: #fff !important; border-color: var(--t-green) !important; }

/* Phones: the twelve month labels did not fit in one row; two rows of six */
@media (max-width: 640px) {
  .lf-year.lf-year, .pl-year.pl-year { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; grid-auto-rows: minmax(24px, auto) !important; height: auto !important; row-gap: 6px !important; align-items: stretch; }
  .lf-year.lf-year li, .pl-year.pl-year li { height: auto !important; min-height: 24px; position: relative !important; }
}

/* ===================================================================================
   Readable animations (31 Oct, third round): the labels inside the diagrams were 7-11px and
   close to their background colour, so they disappeared. Now they are bigger and bolder, WHITE on
   every dark or coloured panel, and ink only on white cards.
   =================================================================================== */

/* ---- 01 Accounting (SVG on the sky panel; sizes are in the drawing's own units) */
.cl-accounting .ia-current-svg text { font-family: Karla, sans-serif; font-size: 15px !important; font-weight: 700; fill: var(--t-ink) !important; }
.cl-accounting .ia-current-svg text[fill="#829078"] { font-size: 12px !important; font-weight: 600; fill: #3d6b60 !important; }
.cl-accounting .ia-current-svg rect[fill="#dfebd2"] { fill: var(--t-sky) !important; }
.cl-accounting .ia-current-svg .flow-month g[stroke], .cl-accounting .ia-current-svg .flow-month g[stroke] path { stroke: #fff !important; }
.cl-accounting .ia-current-svg .row-check circle { fill: var(--t-green) !important; }
.cl-accounting .ia-current-svg .row-check path { stroke: #fff !important; stroke-width: 2.4; }
.cl-accounting .ia-current-svg .flow-source g[stroke], .cl-accounting .ia-current-svg .flow-source g[stroke] * { stroke: var(--t-sky) !important; }
/* Services page: the HTML version */
.interior-page .cl-accounting .cl-source { font-size: 14px !important; font-weight: 700; color: var(--t-ink) !important; }
.interior-page .cl-accounting .cl-close-sheet strong, .interior-page .cl-accounting .cl-check-row { font-size: 14px !important; font-weight: 700; color: var(--t-ink) !important; }

/* ---- 02 Board reporting */
.cl-back-page span, .cl-middle-page span { font-size: 14px !important; font-weight: 700; color: #fff !important; }
.cl-paper-label, .cl-paper-label * { font-size: 11px !important; font-weight: 700; letter-spacing: 0.08em; color: var(--t-sea) !important; }
.cl-front-page > p { font-weight: 700 !important; }
.lf-mini-key { font-size: 12px !important; font-weight: 600; color: var(--t-ink) !important; }
.cl-brief-lines > div { font-size: 15px !important; font-weight: 700; color: var(--t-ink) !important; padding-block: 10px !important; }
.cl-brief-lines > div > span { font-size: 12px !important; font-weight: 700; color: var(--t-sea) !important; }
.cl-brief-lines > div:last-child { background: var(--t-green) !important; color: var(--t-ink) !important; border-radius: 8px; }
.cl-brief-lines > div:last-child > span { color: var(--t-ink) !important; }
.cl-board-visual .cl-stage-caption, .cl-story-1 .cl-stage-caption { font-size: 14px !important; font-weight: 700; color: var(--t-ink) !important; }

/* ---- 03 Forecasting (teal panel, ink cards): everything white and bold */
.cl-scenario-controls button { font-size: 14px !important; font-weight: 700 !important; color: #fff !important; }
.cl-scenario-controls button[aria-pressed="true"], .cl-scenario-controls button[data-state="on"],
.cl-scenario-controls button.bg-background { color: var(--t-ink) !important; }
.cl-question-node.cl-question-node { border: 0 !important; box-shadow: 0 18px 40px -20px rgba(18, 61, 54, 0.6); }
.cl-question-node p, .cl-question-node p * { color: var(--t-ink) !important; opacity: 1 !important; font-weight: 700 !important; font-size: 19px !important; }
.cl-branch > span { font-size: 12px !important; font-weight: 700; color: var(--t-green) !important; }
.cl-branch strong { font-size: 16px !important; font-weight: 700 !important; color: #fff !important; }
.cl-branch small, .lf-effect small { font-size: 13px !important; font-weight: 600; color: #fff !important; }
.lf-wi-label { font-size: 14px !important; font-weight: 700; color: #fff !important; }
.cl-forecast-visual output { font-size: 20px !important; font-weight: 800; color: #fff !important; }
.cl-forecast-visual .cl-scenario-note { font-size: 15px !important; font-weight: 700; color: #fff !important; }
.cl-forecast-visual .cl-stage-caption { font-size: 14px !important; font-weight: 700; color: #fff !important; opacity: 0.9; }

/* ---- 04 Compliance (green panel): white heading, crisp white cards, months in white */
.cl-compliance-visual .cl-readiness-head strong { font-size: 22px !important; font-weight: 700 !important; color: #fff !important; }
.cl-compliance-visual .cl-readiness-head span, .cl-compliance-visual .cl-readiness-head small { font-size: 14px !important; font-weight: 600; color: #fff !important; }
.cl-compliance-visual .cl-audit-item.cl-audit-item { background: transparent !important; }
.cl-compliance-visual .cl-audit-trail::before { background: rgba(255, 255, 255, 0.7) !important; }
.cl-compliance-visual .cl-audit-point { background: var(--t-ink) !important; border-color: var(--t-ink) !important; width: 34px; height: 34px; }
.cl-compliance-visual .cl-audit-point svg, .cl-compliance-visual .cl-audit-point svg * { stroke: #fff !important; stroke-width: 3; }
.cl-compliance-visual .cl-audit-item > div { border: 0 !important; border-radius: 12px !important; box-shadow: 0 12px 26px -18px rgba(18, 61, 54, 0.6); }
.cl-compliance-visual .cl-audit-item strong { font-size: 16px !important; font-weight: 700 !important; color: var(--t-ink) !important; }
.cl-compliance-visual .cl-audit-item > div > span { font-size: 13px !important; font-weight: 600; color: #3d6b60 !important; }
.cl-compliance-visual .cl-stage-caption { font-size: 15px !important; font-weight: 700; color: #fff !important; }
.lf-year.lf-year li, .pl-year.pl-year li { font-size: 13px !important; font-weight: 700; color: #fff !important; }
.lf-year li::before { background: rgba(255, 255, 255, 0.35) !important; height: 8px !important; }
.lf-year li::after { background: var(--t-ink) !important; height: 8px !important; }
.lf-year.lf-year li { padding-top: 14px !important; }
.pl-year.pl-year li { background: rgba(255, 255, 255, 0.3) !important; }
.pl-year.is-on li { background: var(--t-ink) !important; }

/* ---- Closing band: the logo arc in white and ink on the green, bolder small print */
.cl-conversation .lf-arc circle { fill: #fff !important; }
.cl-conversation .lf-arc .lf-arc-dot:nth-child(3n) circle { fill: var(--t-ink) !important; }
.cl-conversation small, .ip-close small { font-size: 14px !important; font-weight: 700; color: var(--t-ink) !important; }
.cl-conversation p, .cl-conversation .cl-kicker { font-weight: 700; color: var(--t-ink) !important; }

/* Fixes after checking: the story-2 white-text rule was also fading the question card's text;
   the compliance title is the head's first span; the Services caption sat under the card. */
.clarity-home .cl-story-2 .cl-question-node p, .cl-forecast-visual .cl-question-node p { color: var(--t-ink) !important; }
.cl-compliance-visual .cl-readiness-head > span:first-of-type { font-size: 22px !important; font-weight: 700 !important; color: #fff !important; letter-spacing: -0.02em; }
.cl-compliance-visual .cl-readiness-head > span:first-of-type ~ span, .cl-compliance-visual .cl-readiness-head small { font-size: 14px !important; }
.interior-page .cl-accounting .cl-stage-caption { display: block; margin-top: 22px !important; position: relative; }

/* Phones: the accounting drawing is shown at about half size, so its labels get larger units */
@media (max-width: 640px) {
  .cl-accounting .ia-current-svg text { font-size: 22px !important; }
  .cl-accounting .ia-current-svg text[fill="#829078"] { font-size: 17px !important; }
}

/* ===================================================================================
   Gradient second lines (31 Oct): the green-teal-sky gradient of the CEO Insights heading on the
   second (span) line of headings across the site. The span is shrunk to its text so the full
   gradient shows, and each wrapped line gets its own copy (box-decoration-break).
   Not on the green closing band, where a green start would vanish (that line stays white).
   =================================================================================== */
.clarity-home .cl-hero h1 span,
.interior-page .ip-intro h1 span,
.clarity-home h2 span:not(.sr-only),
.interior-page h2 span:not(.sr-only),
.ci-copy h2 span,
.ia-dan .dan-head h2 span, .ia-dan h2 span {
  background: linear-gradient(90deg, #6cc04a, #25b0b2 55%, #1aa9cc) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ci-copy h2 span, .clarity-home h2 span[style*="block"], .clarity-home .cl-services-intro h2 span { width: fit-content; }
/* on the deep-green bands a brighter start reads better */
.clarity-home .cl-hero h1 span, .interior-page .ip-intro h1 span, .chapter-deep h2 span:not(.sr-only), .cl-story-2 h2 span {
  background: linear-gradient(90deg, #7fd36f, #3cc6c4 55%, #3dc3e6) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
.cl-conversation.cl-conversation h2 span, .ip-close.ip-close h2 span {
  background: none !important; -webkit-text-fill-color: #fff; color: #fff !important;
}

/* Headings the gradient script (v3-gradient.js) split, and the Contact heading */
main h1[data-grad] > span, main h2[data-grad] > span, main h3[data-grad] > span, main h1 > span:not(.sr-only) {
  background: linear-gradient(90deg, #6cc04a, #25b0b2 55%, #1aa9cc) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.chapter-deep [data-grad] > span, .cl-story-2 [data-grad] > span, .ip-intro h1 > span, .cl-hero h1 > span {
  background: linear-gradient(90deg, #7fd36f, #3cc6c4 55%, #3dc3e6) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
.ip-close [data-grad] > span, .cl-conversation [data-grad] > span {
  background: none !important; -webkit-text-fill-color: #fff; color: #fff !important;
}
/* CEO Insights: the sector heading ("Private schools") is drawn by React, so it takes the gradient whole */
.ask .ask-sector-head h2 {
  background: linear-gradient(90deg, #6cc04a, #25b0b2 55%, #1aa9cc); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; width: fit-content;
}

/* Board package: one sample tab left (private), so the tab strip is hidden */
.interior-page [data-slot="tabs-list"]:has(> [role="tab"]:only-of-type) { display: none; }
.ip-sample-note { color: var(--t-ink) !important; font-weight: 600; }

/* Dan's longer Services text: space between its paragraphs, and the board-package link under "Where it fits" */
.ip-service-chapter p:not(.ip-trigger) + p { margin-top: 14px !important; }
.ip-fit .ip-detail-link { display: inline-flex; margin-top: 22px; font-weight: 700; color: var(--t-ink); text-decoration: underline; text-decoration-color: var(--t-sea); text-underline-offset: 5px; }

/* New logo (1 Nov, ® instead of ™): its wordmark is lighter, so it is shown a little larger */
header img[src*="brand/logo"] { height: 44px !important; width: auto !important; }
@media (min-width: 640px) { header img[src*="brand/logo"] { height: 58px !important; } }
footer img[src*="brand/logo"] { height: 46px !important; width: auto !important; }

/* ===================================================================================
   Gradient fills (2 Nov): the colour blocks take the same logo gradient as the headings,
   green → teal → sky, instead of one flat colour. Dark bands get a subtle ink gradient with
   a soft teal glow so they are not flat either.
   =================================================================================== */
:root {
  --g-logo: linear-gradient(120deg, #6cc04a 0%, #25b0b2 55%, #1aa9cc 100%);
  --g-green: linear-gradient(120deg, #6cc04a 0%, #3cb68c 55%, #25b0b2 100%);
  --g-teal: linear-gradient(135deg, #25b0b2 0%, #3cb68c 100%);
  --g-sky: linear-gradient(135deg, #1aa9cc 0%, #25b0b2 100%);
  --g-ink: radial-gradient(120% 90% at 88% 8%, rgba(37, 176, 178, 0.28), transparent 55%), linear-gradient(135deg, #0e322d 0%, #123d36 50%, #14504a 100%);
}

/* dark bands: hero, page openings, report, mission, footer */
.clarity-home .cl-hero, .interior-page .ip-intro, .chapter-deep.chapter-deep, .clarity-home .cl-story-2 {
  background: var(--g-ink) !important;
}

/* closing bands and green cards */
.cl-conversation.cl-conversation, .ip-close.ip-close, .interior-page .ip-intro .ip-sector-ribbon, .interior-page .ip-intro .ip-about-fact {
  background: var(--g-green) !important;
}

/* homepage "Every dollar planned" tiles */
.why-promise li:nth-child(1) { background: var(--g-green); }
.why-promise li:nth-child(2) { background: var(--g-sky); }
.why-promise li:nth-child(3) { background: var(--g-ink); }

/* service tab icons */
.cl-service-nav .ia-service-icon { background: var(--g-sky) !important; }
.cl-service-nav a:nth-of-type(2) .ia-service-icon { background: var(--g-teal) !important; }
.cl-service-nav a:nth-of-type(3) .ia-service-icon { background: var(--g-green) !important; }

/* diagram panels: the accounting drawing's own panel becomes the gradient card behind it */
.cl-accounting .ia-current-svg > rect:first-of-type { fill: transparent !important; }
.cl-accounting .ia-current-svg { background: var(--g-sky); border-radius: 22px; }
.interior-page .cl-diagram.cl-accounting { background: var(--g-sky) !important; }
.cl-forecast-visual.cl-forecast-visual { background: var(--g-teal) !important; }
.cl-back-page.cl-back-page { background: var(--g-sky) !important; border-color: transparent !important; }
.cl-middle-page.cl-middle-page { background: var(--g-green) !important; border-color: transparent !important; }

/* buttons on the dark hero, and the "Watch" card's ring */
.clarity-home .cl-hero a.rounded-lg { background: var(--g-green) !important; }
.interior-page .ip-intro a.rounded-lg { background: var(--g-green) !important; }
.ci-band .ci-card {
  border: 6px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--g-logo) border-box;
  box-shadow: 0 30px 60px -28px rgba(18, 61, 54, 0.5) !important;
}
/* Services forecasting panel: its explanatory line is a plain <p>, white on the teal like the rest */
.cl-forecast-visual p { color: #fff !important; font-weight: 700; }
.cl-forecast-visual .cl-question-node p { color: var(--t-ink) !important; }

/* Homepage hero: the story animation takes the full right column */
.clarity-home .cl-hero .hero-flow { margin-right: 0; }
/* the homepage service tabs now hold three levels, not four */
.cl-service-nav > div { grid-template-columns: repeat(3, 1fr) !important; }

/* "Three levels of service → One accountable team": it sat as a thin white strip between two dark
   bands. Now a full gradient band with large bold type, a clear bridge into the board perspective. */
.cl-services-end.cl-services-end {
  background: var(--g-green); color: var(--t-ink); gap: clamp(12px, 2vw, 26px);
  padding: clamp(26px, 3.4vw, 42px) 20px !important;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(20px, 2.4vw, 32px) !important;
}
.cl-services-end.cl-services-end span, .cl-services-end.cl-services-end strong { font-weight: 700; color: var(--t-ink); }
.cl-services-end.cl-services-end strong { color: #fff; }
.cl-services-end.cl-services-end svg { color: #fff !important; width: clamp(20px, 2vw, 28px) !important; height: auto !important; }

/* Six menu items since "Administrative support" joined (2 Nov): tighter on mid-size screens */
@media (max-width: 1560px) {
  header nav[aria-label="Main"] a, header nav[aria-label="Main"] button { padding-inline: 6px !important; font-size: 14.5px !important; }
  header nav[aria-label="Main"] ul { gap: 0 !important; }
}
@media (max-width: 1180px) {
  header nav[aria-label="Main"] a, header nav[aria-label="Main"] button { padding-inline: 4px !important; font-size: 13.5px !important; letter-spacing: -0.01em; }
  header img[src*="brand/"] { height: 48px !important; }
}

/* Phones (5 Nov): the board package table fits the card instead of hiding "vs. budget" past its
   right edge, and the diagram captions sit under their pictures instead of on top of them. With a
   phone's larger text setting the table can still scroll sideways inside its card. */
@media (max-width: 639px) {
  [data-slot="table-container"] table { font-size: 13px !important; }
  [data-slot="table-container"] th { letter-spacing: 0.02em !important; white-space: normal !important; line-height: 1.25; }
  [data-slot="table-container"] th, [data-slot="table-container"] td { padding-left: 6px !important; padding-right: 6px !important; }
  [data-slot="table-container"] tr > :first-child { padding-left: 12px !important; }
  [data-slot="table-container"] tr > :last-child { padding-right: 12px !important; }
  .cl-diagram { height: auto !important; }
  .cl-diagram > .cl-stage-caption { position: static !important; transform: none !important; margin-top: 18px !important; }
}

/* 17 Nov 2026: seven menu items with "Charter schools"; smaller laptops (1024-1340px) tighten the
   header a little more so "Talk to our team" stays on screen. */
@media (min-width: 1024px) and (max-width: 1340px) {
  header > div { padding-left: 20px !important; padding-right: 20px !important; gap: 10px !important; }
  header nav[aria-label="Main"] a, header nav[aria-label="Main"] button { padding-inline: 3px !important; font-size: 12.5px !important; }
  header img[src*="brand/"] { height: 42px !important; }
}

/* 18 Nov 2026: eight menu items with "Testimonials"; the narrowest laptops (1024-1110px) go one step smaller. */
@media (min-width: 1024px) and (max-width: 1110px) {
  header > div { padding-left: 14px !important; padding-right: 14px !important; gap: 8px !important; }
  header nav[aria-label="Main"] a, header nav[aria-label="Main"] button { padding-inline: 2px !important; font-size: 11.75px !important; }
  header img[src*="brand/"] { height: 38px !important; }
}
