/* Claru public website, 2026 rebuild (templates/site/*).
   Design: canvas Main.dc.html + Page.dc.html (claude.ai/artifact/NuRNgQTkthTiJ5bDWmZB5S).
   Rules: dark + purple; no gradients, glows, pills, stat cards or numbered 01-02-03;
   3 text sizes (18 / 24 / 44px, as rem); weight 400 only; Atkinson Hyperlegible Next;
   links always underlined (except the menu); AA contrast or better.
   The converter pages add site-convert.css.  App pages (Studio, onboarding, portal, admin) keep base.html + custom.css. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext-Regular.woff2') format('woff2'), url('../fonts/AtkinsonHyperlegibleNext-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Bold is only used inside Easy Read samples (hard word + meaning, as in the PDF). */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext-Bold.woff2') format('woff2'), url('../fonts/AtkinsonHyperlegibleNext-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;          /* dark scrollbars, date picker and tick boxes to match the page */
  --bg: #131217;
  --surface: #1F1B33;          /* colour fields, panels */
  --text: #ECEAF2;             /* 15.6:1 on --bg */
  --link: #a996ff;             /* claru-primary-light, 7.6:1 on --bg */
  --link-hover: #c9bdff;
  --brand: #7A5EFF;            /* claru-primary: shapes only (bands, bars, outlines) — 4.3:1 with white, never behind text */
  --focus: #2EE6D6;            /* claru-teal */
  /* Accent colours: the brand palette, used only in shapes (bars, outlines), never behind or as text, and never as the only clue.  Each is at least 4.3:1 against --bg (needs 3:1 for shapes, WCAG 1.4.11).  Claru blue #4A3FFF is left out: 3.1:1 is too close. */
  --accent-1: #7A5EFF; --accent-2: #2EE6D6; --accent-3: #FFD93D; --accent-4: #FF5E78; --accent-5: #4DFF73; --accent-6: #D44FFF;
  --line: #2E2B38;
  --line-strong: #8A859A;
  --paper: #fff;               /* Easy Read page samples */
  --ink: #000;
  --btn-bg: #a996ff;
  --btn-text: #131217;         /* 7.6:1 on --btn-bg */
  --btn-hover: #c9bdff;

  --size-body: 1.125rem;       /* 18px */
  --size-h3: 1.25rem;          /* 20px: sub-headings; the fourth and last text size (plan: docs/plans/website_visual_unification_plan.md) */
  --size-h2: 1.5rem;           /* 24px */
  --size-h1: 2.75rem;          /* 44px */
  --measure: 42rem;            /* reading width */
  --page: 72rem;
  --gutter: 40px;
  /* Vertical rhythm (Calum 2026-11-03: more space between sections, chosen carefully).  Only the gaps BETWEEN things grow;
     paragraphs, lists, table cells and form fields keep their spacing, so text still reads as one block.
     Hierarchy: section > sub-heading > paragraph.  Big gaps are 7rem; sub-headings stay at 3rem. */
  --space-section: 7rem;       /* between major sections (was 80px) */
  --space-hero: 6rem;          /* between the page header and the first section (was 80px) */
  --space-heading: 2.5rem;     /* below a section heading, before its first line (was 2rem) */
  --space-sub: 3rem;           /* above a sub-heading inside a section (unchanged: short sub-sections stay together) */
  --space-end: 8rem;           /* last section to the footer (was 96px) */
}

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

html { -webkit-text-size-adjust: 100%; }

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--size-body);
  line-height: 1.6;
  overflow-wrap: break-word;   /* a long email address must wrap, not push the page sideways on a small screen (WCAG 1.4.10) */
}

.site h1, .site h2, .site h3, .site h4 { font-weight: 400; }
.site h1 { font-size: var(--size-h1); line-height: 1.2; margin: 0 0 1.5rem; }
.site h2 { font-size: var(--size-h2); line-height: 1.3; margin: 0 0 1.5rem; }
.site h3 { font-size: var(--size-h3); line-height: 1.4; margin: 2.5rem 0 0.75rem; }
.site h4 { font-size: var(--size-body); line-height: 1.6; margin: 1.5rem 0 0.5rem; }
.site p { margin: 0 0 1rem; }
.site ul, .site ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.site li + li { margin-top: 0.4rem; }
.site strong, .site b { font-weight: 400; } /* one weight only; never bold for emphasis */
.site img { max-width: 100%; height: auto; }
.site hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.site a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.site a:focus-visible, .site button:focus-visible, .site input:focus-visible,
.site select:focus-visible, .site textarea:focus-visible, .site summary:focus-visible,
.site [tabindex]:focus-visible, .site iframe.has-focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Skip link */
.skip { position: absolute; left: 16px; top: -80px; z-index: 10; }
.skip:focus { top: 16px; background: var(--bg); padding: 8px 12px; }

/* Page bands: the purple strips at the top and bottom of every Claru Easy Read page */
.band { height: 9px; background: var(--brand); }
.band--foot { height: 6px; }

/* Preview notice (only while the new site is being built) */
.preview-note { background: var(--surface); border-bottom: 1px solid var(--line); }
.preview-note p { margin: 0; padding: 10px 0; }
.preview-note .wrap { margin: 0 auto; }

/* Header.  Menu links are the one place links are not underlined: a nav landmark of
   short links is recognisable without it (WCAG 1.4.1 covers links inside text).  Hover
   underlines; the current page gets a purple bar under it, like an Easy Read heading bar. */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 20px; padding-bottom: 20px; }
.site-head__logo { display: inline-block; line-height: 0; }
.site-head__logo img { height: 40px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-nav li + li { margin-top: 0; }
.site-nav__list > li > a:not(.btn), .site-nav__sub-btn {
  display: inline-block; position: relative; padding: 8px 10px;
  color: var(--text); text-decoration: none; border-radius: 6px;
}
.site-nav__list > li > a:not(.btn):hover, .site-nav__sub-btn:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.site-nav a[aria-current]::after, .site-nav__sub-btn[aria-current]::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 2px; background: var(--brand);
}
.site-head .site-nav__menu-btn { display: none; }
.site-nav__sub { position: relative; }
.site-nav__sub-btn { font: inherit; line-height: inherit; background: none; border: 0; cursor: pointer; }
.site-nav__chev {
  display: inline-block; width: 7px; height: 7px; margin: 0 2px 4px 8px; vertical-align: middle;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.site-nav__sub-btn[aria-expanded="true"] .site-nav__chev { transform: rotate(225deg); margin-bottom: 0; }
.site-nav .site-nav__sub-list {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 16rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 8px; flex-direction: column; align-items: stretch !important; gap: 2px !important;
}
.site-nav__sub-list a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--text); text-decoration: none; }
.site-nav__sub-list a:hover { background: var(--bg); color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.js .site-nav__sub-list[hidden] { display: none; }
.site-nav .btn { margin-left: 12px; padding: 9px 20px; }

/* Menu button (small screens): three lines + the word Menu */
.site-nav__menu-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; }
.site-nav__burger, .site-nav__burger::before, .site-nav__burger::after {
  display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; position: relative;
}
.site-nav__burger::before, .site-nav__burger::after { content: ''; position: absolute; left: 0; }
.site-nav__burger::before { top: -6px; }
.site-nav__burger::after { top: 6px; }
.site-nav__menu-btn[aria-expanded="true"] .site-nav__burger { background: transparent; }
.site-nav__menu-btn[aria-expanded="true"] .site-nav__burger::before { top: 0; transform: rotate(45deg); }
.site-nav__menu-btn[aria-expanded="true"] .site-nav__burger::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 60rem) {
  .js .site-head .site-nav__menu-btn { display: inline-flex; }
  .js .site-nav[data-open="false"] .site-nav__list { display: none; }
  .site-nav { flex-basis: 100%; }
  .site-nav__list { flex-direction: column; align-items: stretch !important; gap: 0 !important; padding-top: 4px !important; border-top: 1px solid var(--line); }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__list > li:last-child { border-bottom: 0; padding-top: 20px; }
  .site-nav__list > li > a:not(.btn), .site-nav__sub-btn { display: block; width: 100%; text-align: left; padding: 14px 0; border-radius: 0; }
  .site-nav a[aria-current]::after, .site-nav__sub-btn[aria-current]::after { left: 0; right: auto; width: 3rem; }
  .site-nav .site-nav__sub-list { position: static; border: 0; box-shadow: none; background: none; padding: 0 0 12px 16px; min-width: 0; }
  .site-nav__sub-list a { padding: 10px 0; }
  .site-nav .btn { margin-left: 0; display: block; text-align: center; padding: 12px 24px; }
  .site-head { justify-content: space-between; }
}

/* Buttons: light purple with dark text (white on #7A5EFF fails AA) */
.btn {
  display: inline-block; font: inherit; line-height: 1.4; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-text) !important; text-decoration: none !important;
  padding: 12px 24px; border-radius: 6px; border: 2px solid transparent; min-height: 44px;
}
.btn:hover { background: var(--btn-hover); }
.btn--quiet { background: transparent; color: var(--link) !important; border-color: var(--link); }
.btn--quiet:hover { background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 2rem; }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li { margin-top: 0; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; }

/* The grid.  One three-column grid on every page with a hero or a side menu, so the edges line up:
   column 1 = side (picture panel, "On this page"), columns 2 and 3 = main text.  The page title
   always starts at the left edge, whatever the page.  Below 60rem everything stacks. */
.page-top { padding: 48px 0 var(--space-hero); display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: end; }
.page-top__text { max-width: 36rem; }
.page-top__text p:last-child { margin-bottom: 0; }
@media (min-width: 60rem) {
  .page-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-top__text { grid-column: 1 / span 2; }
  .page-top .field { grid-column: 3; }
  .page-top--tool .page-top__text { grid-column: 1 / -1; }
}

/* Colour field: the shape from the cover of every Claru Easy Read document */
.field { position: relative; background: var(--surface); border-radius: 120px 0 0 0; min-height: 15rem; display: flex; justify-content: flex-end; align-items: center; padding: 40px 48px; }
.field__pic { background: var(--paper); border: 2px solid var(--brand); border-radius: 14px; width: 9rem; height: 9rem; display: flex; align-items: center; justify-content: center; }
.field__pic img { width: 7rem; height: 7rem; object-fit: contain; }

/* Content page body: "On this page" in column 1, the article in columns 2 and 3 (see The grid above) */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: var(--space-end); }
.on-this-page { max-width: 18rem; }
@media (min-width: 60rem) { .page-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.on-this-page h2 { font-size: var(--size-body); line-height: 1.6; margin: 0 0 0.75rem; }
.on-this-page ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.on-this-page li + li { margin-top: 0; }
@media (min-width: 60rem) { .on-this-page { position: sticky; top: 24px; } }
.article { min-width: 0; max-width: var(--measure); }
@media (min-width: 60rem) { .page-body > .article { grid-column: 2 / -1; } .page-body > .article:only-child { grid-column: 1 / -1; } }

/* Sections and headings: heading bar = the purple bar beside every Easy Read heading */
.sec { margin: 0 0 var(--space-section); scroll-margin-top: 16px; }
.sec:last-child { margin-bottom: 0; }
/* Each section takes the next accent colour in turn; its heading bars and picture outlines share it, so the page reads in colour-coded blocks like an Easy Read Document. */
.sec { --accent: var(--accent-1); }
.sec:nth-of-type(6n+2) { --accent: var(--accent-2); }
.sec:nth-of-type(6n+3) { --accent: var(--accent-3); }
.sec:nth-of-type(6n+4) { --accent: var(--accent-4); }
.sec:nth-of-type(6n+5) { --accent: var(--accent-5); }
.sec:nth-of-type(6n+6) { --accent: var(--accent-6); }
.sec__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: var(--space-heading); }
.sec__head .h-bar { margin-bottom: 0 !important; }
.sec__pic { flex: 0 0 6.5rem; height: 6.5rem; }
.sec__pic img { width: 5.25rem; height: 5.25rem; }
@media (max-width: 640px) { .sec__head { gap: 12px; } .sec__pic { flex-basis: 4.5rem; height: 4.5rem; } .sec__pic img { width: 3.5rem; height: 3.5rem; } }
.h-bar { padding-left: 14px; border-left: 5px solid var(--accent, var(--brand)); margin-bottom: var(--space-heading) !important; }
.sec h3 { scroll-margin-top: 16px; padding-left: 10px; border-left: 3px solid var(--accent, var(--brand)); margin-top: var(--space-sub); }

/* Picture rows: a picture beside each idea, like an Easy Read page */
.rows { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.rows li + li { margin-top: 0; }
.row { display: flex; gap: 1.5rem; align-items: flex-start; }
.row--middle { align-items: center; }
.row p:last-child { margin-bottom: 0; }
.pic { flex: 0 0 5rem; height: 5rem; border: 2px solid var(--accent, var(--brand)); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.pic svg { width: 40px; height: 40px; stroke: var(--text); }
.pic--paper { background: var(--paper); }
.pic--paper img { width: 4rem; height: 4rem; object-fit: contain; }
.grid-3 { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 40px; }
.grid-3 li + li { margin-top: 0; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 64px; }

/* Easy Read paper sample */
.paper { background: var(--paper); color: var(--ink); border-radius: 4px; overflow: hidden; }
.paper a { color: #4A3FFF; }
.paper__body { padding: 28px; display: flex; flex-direction: column; gap: 24px; }

/* Boxes: outline only — never text on a coloured fill */
.box { border: 1px solid var(--line-strong); border-radius: 6px; padding: 24px; margin: 0 0 2rem; }
.box > :last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 2rem; }
.site table { border-collapse: collapse; width: 100%; }
.site th, .site td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
/* Phone: keep a score range like "90 to 100" on one line (checked 2026-11-03). */
.score-scale td:first-child { white-space: nowrap; }
.site th { font-weight: 400; color: var(--text); border-bottom-color: var(--line-strong); }

/* Quote */
.quote { margin: 0; padding: 0; }
.quote footer { margin-top: 1rem; }

/* Details / FAQ */
.site details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.site summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.site details[open] summary { margin-bottom: 0.75rem; }

/* Forms */
.site label { display: block; margin: 0 0 6px; }
.site input[type=text], .site input[type=email], .site input[type=url], .site input[type=search],
.site input[type=tel], .site input[type=date], .site input[type=number],
.site select, .site textarea {
  font: inherit; color: var(--text); background: var(--bg); width: 100%; max-width: var(--measure);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; min-height: 44px;
}
.site input:focus, .site select:focus, .site textarea:focus { border-color: var(--focus); }
.field-row { margin: 0 0 1.5rem; }
.hint { margin: 0 0 6px; }

/* Messages (flash) */
.notice { border: 1px solid var(--line-strong); border-left: 5px solid var(--brand); border-radius: 6px; padding: 12px 16px; margin: 16px 0; }

/* Footer */
.site-foot { padding-top: 64px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.site-foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 40px 48px; margin-bottom: 48px; }
.site .site-foot__head { font-size: var(--size-body); line-height: 1.6; margin: 0 0 0.75rem; color: var(--text); }
.site-foot__head::before { content: ''; display: inline-block; width: 3px; height: 1em; margin-right: 10px; vertical-align: -0.12em; border-radius: 2px; background: var(--brand); }
.site-foot__col:nth-child(4n+2) .site-foot__head::before { background: var(--accent-2); }
.site-foot__col:nth-child(4n+3) .site-foot__head::before { background: var(--accent-3); }
.site-foot__col:nth-child(4n+4) .site-foot__head::before { background: var(--accent-4); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li + li { margin-top: 0.6rem; }
/* Quiet footer: list links read as plain text until hovered or focused.  They sit in labelled lists, so it is still clear they are links; links inside sentences (legal text, "Doing good") keep their underline. */
.site .site-foot li a { color: var(--text); text-decoration: none; }
.site .site-foot li a:hover, .site .site-foot li a:focus-visible { text-decoration: underline; }
.site-foot__legal { border-top: 1px solid var(--line); padding-top: 24px; color: var(--text); }
.site-foot__legal p { margin: 0 0 0.4rem; max-width: var(--measure); }

.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; }

@media (max-width: 640px) {
  :root { --gutter: 16px; --size-h1: 2.25rem; }
  .page-top { padding: 32px 0 56px; }
  .page-top .field { display: none; } /* decorative; keep the words near the top */
  .field { min-height: 11rem; padding: 32px; border-radius: 80px 0 0 0; }
  .field__pic { width: 7rem; height: 7rem; }
  .field__pic img { width: 5rem; height: 5rem; }
  :root { --space-section: 4.5rem; --space-hero: 3.5rem; --space-heading: 2rem; --space-sub: 3rem; --space-end: 5rem; }   /* phone: about two thirds */
  .row { gap: 1rem; }
  .pic { flex-basis: 4rem; height: 4rem; }
}

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

/* Windows contrast themes: keep shapes visible */
@media (forced-colors: active) {
  .band { background: CanvasText; forced-color-adjust: none; }
  .btn { border-color: ButtonText; }
  .site-nav__sub-list { border-color: CanvasText; }
  .site-foot__head::before { background: CanvasText; forced-color-adjust: none; }
  .site-nav__burger, .site-nav__burger::before, .site-nav__burger::after, .site-nav a[aria-current]::after, .site-nav__sub-btn[aria-current]::after { background: CanvasText; forced-color-adjust: none; }
  .site-nav__menu-btn[aria-expanded="true"] .site-nav__burger { background: transparent; }
  .pic, .field__pic, .box { border-color: CanvasText; }
  .field__pic svg, .pic svg { stroke: CanvasText; }  /* icons are drawn in black: invisible on a dark contrast theme */
}

@media print {
  .band, .skip, .site-nav, .btn, .site-foot__cols, .field, .on-this-page, .preview-note, .crumbs { display: none !important; }
  body.site { background: #fff !important; color: #000 !important; }
  .site a { color: #000; }
  .site a[href^="http"]::after { content: ' (' attr(href) ')'; }
  .page-body { display: block; padding: 0; }
  .sec { margin-bottom: 2rem; }
  .site h2, .site h3, .site summary { break-after: avoid-page; }
  .site p, .site li, .site tr { break-inside: avoid-page; }
}

/* ---- Homepage (canvas Main.dc.html) ---- */
.home-top { padding: 48px 0 var(--space-hero); display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: end; }
.home-top__text { max-width: 36rem; }
@media (min-width: 60rem) {
  .home-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* the same grid as .page-top: text in columns 1 and 2, picture in column 3 */
  .home-top__text { grid-column: 1 / span 2; }
  .home-top__figure { grid-column: 3; }
}
.home-top__figure { margin: 0; }
.home-top__figure figcaption { margin-top: 1rem; }
.field--cover { border-radius: 120px 0 0 0; padding: 40px 32px 48px 56px; justify-content: flex-end; }
.field__page { display: block; width: 100%; max-width: 20rem; line-height: 0; border-radius: 4px; overflow: hidden; }
.field__page img { width: 100%; height: auto; }

.sample-pages { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 32px; }
.sample-pages li + li { margin-top: 0; }
.sample-pages a { display: block; line-height: 0; border-radius: 4px; overflow: hidden; margin-bottom: 0.75rem; }
.sample-pages img { width: 100%; height: auto; }

.news { list-style: none; padding: 0; margin: 0 0 2rem; max-width: var(--measure); }
.news li { border-left: 5px solid var(--line); padding-left: 14px; }
.news li + li { margin-top: 1.5rem; }
.news p { margin: 0; }

.home-orgs { border-top: 1px solid var(--line); padding-top: 5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list li + li { margin-top: 0; }
.contact-list__icon { flex: 0 0 1.75rem; height: 1.75rem; stroke: var(--link); }

/* Try it */
.try { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 48px; align-items: start; }
.try__controls { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.try fieldset { border: 0; margin: 0; padding: 0; }
.try legend { padding: 0; margin: 0 0 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.choice:hover { border-color: var(--text); }
.choice[aria-pressed="true"] { border: 2px solid var(--link); background: var(--surface); }
.try__source { padding: 24px; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; }
.try__result { min-width: 0; scroll-margin-top: 16px; }
.try__result:focus { outline: none; }
.paper .band { height: 9px; }
.paper h3 { margin: 0; font-size: var(--size-h2); line-height: 1.3; }
.paper .h-bar { margin-bottom: 0 !important; }
.paper .pic--paper { flex: 0 1 5rem; min-width: 3rem; height: 5rem; }
/* Very narrow screen + large text: the words may break anywhere rather than run past the row. */
.paper .pic--paper img { max-width: 100%; max-height: 100%; }
.paper .row > :not(.pic) { min-width: 0; overflow-wrap: anywhere; }
.paper ul { margin: 8px 0 0; }
.paper p { margin: 0; }
.paper .credit { margin-top: 8px; }
.demo[hidden] { display: none !important; }
.try__result .paper { margin-bottom: 1.5rem; }
.paper strong { font-weight: 700; }
.pic--none { border-color: transparent; }

/* Easy Read version of a page (?version=easy-read) */
.version-switch { margin-top: 1.5rem !important; }
.article--easy-read { max-width: 40rem; }
.article--easy-read .rows { gap: 32px; }
/* ERS: pictures at least 5cm, beside the words.  CSS cm = 37.8px, so on screen it is
   5cm at 100% zoom.  Phones: as big as fits beside the words (never under 40% of the width). */
.article--easy-read .row { gap: 2rem; align-items: center; }
.article--easy-read .pic--paper { flex-basis: 5cm; height: 5cm; }
.article--easy-read .pic--paper img { width: 4.5cm; height: 4.5cm; }
@media (max-width: 640px) {
  .article--easy-read .row { gap: 1rem; }
  .article--easy-read .pic--paper { flex-basis: min(5cm, 40vw); height: min(5cm, 40vw); }
  .article--easy-read .pic--paper img { width: 90%; height: 90%; }
}
@media (max-width: 360px) {   /* small phones: keep at least ~160px for the words */
  .article--easy-read .pic--paper { flex-basis: 34vw; height: 34vw; }
}
.article--easy-read h2 { margin-top: var(--space-section); }
.article--easy-read h2:first-child { margin-top: 0; }
.article--easy-read strong { font-weight: 700; }

/* Homepage words-converted ticker: the digits keep their width, so the line does not jiggle as it counts */
.ticker__num { font-size: var(--size-h2); font-variant-numeric: tabular-nums; }
.link-btn { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Free tools (templates/site/readability_checker.html + site/tools/*) ---- */
.d-none { display: none !important; }   /* the tool scripts show/hide with this class */
.page-top--tool { padding-bottom: 32px; grid-template-columns: 1fr; }
.tool-views ul { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; }
.tool-views li + li { margin-top: 0; }
.tool-views a { display: block; height: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 16px 20px; text-decoration: none; }
.tool-views a:hover { border-color: var(--link); }
.tool-views a[aria-current] { border: 2px solid var(--link); background: var(--surface); }
.tool-views__name { display: block; text-decoration: underline; text-underline-offset: 3px; }
.tool-views__about { display: block; color: var(--text); margin-top: 4px; }
.tool-area { max-width: 52rem; margin-bottom: var(--space-end); }
.tool textarea { max-width: none; min-height: 14rem; line-height: 1.6; }
.tool input[type=file] { font: inherit; color: var(--text); max-width: 100%; }
.tool h3 { margin-top: 2.5rem; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.tabs__list [role=tab] { font: inherit; color: var(--link); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tabs__list [role=tab][aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); text-decoration: none; }
.tool-results { margin-top: 48px; }
.easy-score-hero { margin: 0 0 1.5rem; }
.easy-score-hero__number { font-size: var(--size-h1); line-height: 1.1; margin: 0 0 4px; }   /* the biggest of the four site sizes */
.easy-score-hero__of { font-size: var(--size-body); }
.easy-score-hero__band { font-size: var(--size-h3); margin: 0 0 8px; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 16px; margin: 0 0 1.5rem; }
.scores .score { border: 1px solid var(--line-strong); border-radius: 6px; padding: 16px; }
.scores dt { margin: 0; }
.scores dd { margin: 0; }
.score__value { font-size: var(--size-h1); line-height: 1.2; margin: 8px 0 !important; }
.metric-interpretation { padding-left: 10px; border-left: 5px solid var(--line-strong); }
.metric-good { border-left-color: #4DFF73; }
.metric-moderate { border-left-color: #FFB347; }
.metric-hard { border-left-color: #FF5E78; }
.score--simple { border-left: 5px solid #4DFF73 !important; }
.score--moderate { border-left: 5px solid #FFB347 !important; }
.score--complex { border-left: 5px solid #FF5E78 !important; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 12px 24px; margin: 0 0 2rem; }
.stats dt { margin: 0; }
.stats dd { margin: 0; font-size: var(--size-h2); }
.meter { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 0 0 1rem; }
.meter__simple { background: #4DFF73; width: 0; }
.meter__moderate { background: #FFB347; width: 0; }
.meter__complex { background: #FF5E78; width: 0; }
.summary-message { margin: 0 0 1.5rem; }
.summary-message i { display: none; }   /* icon-font classes from the shared script */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 1rem; }
.legend li + li { margin-top: 0; }
.highlighted-text { line-height: 2.2; margin: 0 0 1.5rem; }
/* Highlights: dark tints with light text (contrast 9:1 or more), plus an underline style so colour is not the only signal */
.sentence-highlight { padding: 2px 4px; border-radius: 3px; color: var(--text); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.highlight-simple { background: #183b24; }
.highlight-moderate { background: #4a3500; text-decoration: underline dotted; text-underline-offset: 4px; }
.highlight-complex { background: #5c1a24; text-decoration: underline wavy; text-underline-offset: 4px; }
.share-link { display: inline-flex; gap: 8px; align-items: center; }
.share-link input { width: auto; min-width: 16rem; }
.box--problem { border-left: 5px solid #FF5E78; }
.field-error { margin: 6px 0 0 !important; padding-left: 10px; border-left: 5px solid #FF5E78; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { width: 24px; height: 24px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--link); }
.check-row label { margin: 0; }
.tool-gate { margin-top: 24px; }
.tool-gate h3 { margin-top: 0; }
.byline { font-style: normal; }
@media print { .tool-area, .tool-views { display: none !important; } }

/* About: brand swatches (shapes only, no text on colour) and company facts */
.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px 24px; }
.swatches li + li { margin-top: 0; }
.swatch { display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: 4px; vertical-align: middle; margin-right: 10px; border: 1px solid var(--line-strong); }
.site code { font-family: inherit; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { margin: 0 0 4px; }
.facts dd { margin: 0; }

/* For organisations: partner badges, embed code */
.badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 1rem; }
.badges iframe { border: 0; max-width: 100%; }
.badges__dark { background: #000; border-radius: 4px; padding: 2px 8px; }
.site pre.code { white-space: pre-wrap; word-break: break-all; border: 1px solid var(--line-strong); border-radius: 6px; padding: 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }

/* Guides: before / after examples */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 24px; margin: 0 0 2rem; align-items: start; }
.compare__before { border: 1px solid var(--line-strong); border-radius: 6px; padding: 24px; }
.compare__before > :last-child { margin-bottom: 0; }
.compare__label { margin: 0 0 12px !important; }
.compare .paper__body { gap: 12px; }
.compare .paper ul { margin: 0; }
.paper h4 { margin: 0; font-size: var(--size-h2); line-height: 1.3; }
.site th[scope=row] { color: var(--text); }

/* Our Pictures */
.notice-box { border-left: 5px solid var(--brand); }
.picture-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 16px; margin: 0 0 1.5rem; }
.picture-grid li + li { margin-top: 0; }
.picture-grid img { display: block; width: 100%; height: auto; background: var(--paper); border: 2px solid var(--brand); border-radius: 14px; padding: 8px; margin-bottom: 8px; }
.tiers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 16px; margin: 0 0 2rem; }
.tiers > li + li { margin-top: 0; }
.tier { border: 1px solid var(--line-strong); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; }
.tier--featured { border: 2px solid var(--link); }
.tier h3 { margin-top: 0 !important; padding-left: 0 !important; border-left: 0 !important; font-size: var(--size-h2); }
.tier__price { font-size: var(--size-h2); }
.tier .btn { margin-top: auto; text-align: center; }

/* Contact form */
.choice-list { border: 0; padding: 0; margin: 0 0 1.5rem; }
.choice-list legend { padding: 0; margin: 0 0 10px; }
.choice-list .check-row { margin: 0 0 8px; }
.choice-list--inline { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.choice-list--inline legend { flex-basis: 100%; }
.check-row input[type=radio] { width: 24px; height: 24px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--link); }

/* Legal pages: old Bootstrap markup shown in the new look (templates/legal/*) */
.legacy .container, .legacy .row, .legacy [class*="col-"] { display: block; width: auto; max-width: none; margin: 0; padding: 0; }
.legacy .fas, .legacy .far, .legacy .fab { display: none; }
.legacy h2 { font-size: var(--size-h2); padding-left: 14px; border-left: 5px solid var(--brand); margin: 3rem 0 1.5rem; scroll-margin-top: 16px; }
.legacy h3 { font-size: var(--size-h3); line-height: 1.4; margin: 2.5rem 0 0.75rem; }
.legacy .h5, .legacy .h6 { font-size: var(--size-body); margin: 2rem 0 0.75rem; }
.legacy .alert, .legacy .card { border: 1px solid var(--line-strong); border-radius: 6px; padding: 16px 20px; margin: 0 0 1.25rem; background: none; color: var(--text); }
.legacy .card-body { padding: 0; }
.legacy .card-text, .legacy .small, .legacy small { font-size: inherit; }
.legacy .text-muted, .legacy [class*="text-"] { color: inherit !important; }
.legacy .list-unstyled { list-style: none; padding-left: 0; }
.legacy .btn { display: inline-block; background: var(--btn-bg); color: var(--btn-text) !important; text-decoration: none; padding: 12px 24px; border-radius: 6px; }
.legacy .mb-5 { margin-bottom: 0; }
.legacy table { margin-bottom: 1.5rem; }
.legacy .table-responsive { overflow-x: auto; margin-bottom: 1.5rem; }
.legacy .table-responsive table { margin-bottom: 0; }

/* reCAPTCHA v3 badge is fixed over the page corner and can hide content on phones; Google allows hiding it when the form shows its notice (contact.html). */
.grecaptcha-badge { visibility: hidden; }

/* "Why not just use ChatGPT ?" table (templates/site/_compare.html).  Marks differ by
   shape (tick, dash, cross) as well as colour, and every note starts with the word,
   so colour is never the only clue (WCAG 1.4.1).  Colour sits only in the mark shapes. */
.compare table { min-width: 0; }
.compare th, .compare td { padding: 14px 16px; }
.compare thead th { font-size: var(--size-body); line-height: 1.4; vertical-align: bottom; }
.compare tbody th { min-width: 9rem; max-width: 14rem; }
.compare td { display: table-cell; }
.compare td > span:last-child { display: block; }
.compare .compare__us { background: var(--surface); }
.compare thead .compare__us { border-top: 6px solid var(--brand); border-radius: 8px 8px 0 0; }
.mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; margin-bottom: 6px; }
.mark svg { width: 1.25rem; height: 1.25rem; stroke: var(--bg); }
.mark--yes { background: #4DFF73; }      /* claru-green */
.mark--partly { background: #FFD93D; }   /* claru-yellow */
.mark--no { background: #FF5E78; }       /* claru-coral */
.compare__key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.compare__key .mark { margin: 0; width: 1.5rem; height: 1.5rem; }
.compare__key .mark svg { width: 1rem; height: 1rem; }

/* Phones: each row becomes a card, each cell says which column it is. */
@media (max-width: 45rem) {
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .compare tr { border: 1px solid var(--line-strong); border-radius: 8px; margin-bottom: 16px; padding: 4px 0; }
  .compare tbody th { max-width: none; border-bottom: 1px solid var(--line); }
  .compare td { display: grid; grid-template-columns: 7.5rem auto 1fr; gap: 0 10px; align-items: start; border-bottom: 0; }
  .compare td::before { content: attr(data-label); }
  .compare td:not(:has(.mark))::after { content: ''; }
  .compare td:not(:has(.mark)) > span { grid-column: 3; }
  .compare .mark { margin: 0; }
}
.compare__asof { color: var(--text); margin-bottom: 0.5rem !important; } /* "Facts correct on …" just above the table */
