/* InMyWords · inmywords.chat
 *
 * The entire stylesheet. Implements the Civic Cadence design system from the
 * InMyWords brand kit v1.0.2 (05-documentation/DESIGN.md).
 *
 *   Colour   every value below is an approved token from DESIGN.md 5.1. There
 *            are no other hex values in this file, and tools/check.mjs fails
 *            the build if one appears.
 *   Ground   the site ground is warm paper, so :root carries the light-mode
 *            token set. A navy or olive field re-declares the same token names
 *            with its own surface-correct values, so a component written once
 *            stays accessible in every field it is dropped into.
 *   Type     Noto Sans only, at the scale in DESIGN.md 5.2.
 *   Rhythm   the 8px scale in DESIGN.md 5.3; the 4px half-step inside controls.
 *   Shape    6px controls, 8px planes, 12px sheets, 0-2px held scenes.
 *   Motion   100ms feedback, 220ms arrival, 320ms expansion, and nothing that
 *            loops, pulses or floats.
 */

/* ---- font ------------------------------------------------------------- */

/* Latin and Latin Extended subset supplied in the brand kit. It covers the
 * Polish and Spanish samples used on this site. Any language outside that
 * coverage needs its own Noto subset added here before it is shown.
 * optional, as the application's fonts: with swap a page first drawn in the
 * fallback was redrawn in Noto Sans, and the section links wrapped to a
 * second row and back, moving everything under them (0.26 on /contact/ at
 * phone width). A font that misses the first draw is used from the next
 * page on. */
@font-face {
  font-family: "Noto Sans";
  src: url("/site-assets/fonts/NotoSans-Brand-Latin.woff2?v=2026-11-06.1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

/* ---- tokens ------------------------------------------------------------ */

:root {
  color-scheme: light;

  /* surfaces and text: DESIGN.md 5.1 light mode */
  --bg-deep: #F4F0E7;
  --bg-warm: #ECE6DA;
  --bg-surface: #E3DDCF;
  --bg-elevated: #FBF8F1;
  --text-primary: #0B1B2F;
  --text-secondary: #3F4C5B;
  --text-muted: #59636D;
  --text-whisper: #6C747B;
  --border: #9A9488;
  --border-strong: #6F6A61;
  --brand-active: #7E5106;
  --brand-continuity: #596244;
  --success: #1F6744;
  --warning: #704700;
  --error: #94342F;
  --info: #1E607D;

  /* the news page's sections (imw_news_listing in inc/layout.php): the
     approved values above, named for the parts of that page they colour */
  --news-cream: #FBF8F1;
  --news-ground: #F4F0E7;
  --news-card: #E3DDCF;
  --news-brown: #7E5106;
  --news-on-brown: #FBF8F1;

  /* type */
  --font-sans: "Noto Sans", system-ui, sans-serif;
  --t-display: clamp(40px, 5vw, 64px);
  --t-h1: 40px;
  --t-h2: 30px;
  --t-h3: 22px;
  --t-conversation: 24px;
  --t-body: 17px;
  --t-small: 15px;
  --t-label: 13px;

  /* spacing: DESIGN.md 5.3 */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;

  /* shape */
  --r-control: 6px;
  --r-plane: 8px;
  --r-sheet: 12px;
  --r-scene: 2px;

  /* content widths: DESIGN.md 5.3 and 5.5 */
  --w-conversation: 760px;
  --w-prose: 720px;
  --w-wide: 1200px;
  --w-frame: 1120px;
}

/* A navy field. Re-declares the token names with the dark-mode values so that
 * anything placed inside stays on an approved foreground/background pair. */
.field-navy {
  color-scheme: dark;
  --bg-deep: #0B1B2F;
  --bg-warm: #13263A;
  --bg-surface: #1A3045;
  --bg-elevated: #243B50;
  --text-primary: #F4F0E7;
  --text-secondary: #C7CDD2;
  --text-muted: #AAB3B8;
  --text-whisper: #78848C;
  --border: #4A5A6A;
  --border-strong: #71808D;
  --brand-active: #D5942D;
  --brand-continuity: #A6AE87;
  --success: #73C69C;
  --warning: #F0B85A;
  --error: #F08A83;
  --info: #76BDD7;
  background: var(--bg-deep);
  color: var(--text-primary);
}

/* The olive closing field. DESIGN.md 5.1: labels on the olive surface are
 * navy. Ochre is illegible here at any weight, so the active role becomes
 * navy too and the field carries no ochre at all. */
.field-olive {
  --bg-deep: #A6AE87;
  --bg-warm: #A6AE87;
  --bg-surface: #A6AE87;
  --bg-elevated: #A6AE87;
  --text-primary: #0B1B2F;
  --text-secondary: #0B1B2F;
  --text-muted: #0B1B2F;
  --border: #0B1B2F;
  --border-strong: #0B1B2F;
  --brand-active: #0B1B2F;
  --brand-continuity: #0B1B2F;
  background: var(--bg-deep);
  color: var(--text-primary);
}

/* ---- base -------------------------------------------------------------- */

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

/* The canvas colour is set on html so the iOS status-bar area paints with the
 * page rather than white. DESIGN.md 7.1: no overflow or scroll rules here. */
html {
  background: #F4F0E7;
  -webkit-text-size-adjust: 100%;
  /* Reserve the scrollbar gutter on every page: without it a short page
   * and a long one sit at different horizontal positions, and the whole
   * layout jumps as you move between them. */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-wrap: break-word;
  /* The footer sits at the bottom of the window on a page shorter than it:
   * main takes the space left over. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > main { flex: 1 0 auto; }

h1, h2, h3, h4 { margin: 0 0 var(--s3); font-weight: 500; }
h1 { font-size: var(--t-h1); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 600; }
h4 { font-size: var(--t-small); line-height: 1.4; font-weight: 600; }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Loud on purpose. DESIGN.md 7.1. */
:focus-visible {
  outline: 3px solid var(--brand-active);
  outline-offset: 3px;
}

img, svg, video { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--s4);
}

.skip {
  position: fixed;
  z-index: 99;
  inset-inline-start: var(--s3);
  inset-block-start: var(--s2);
  transform: translateY(-200%);
  padding: 12px 20px;
  background: #F4F0E7;
  color: #0B1B2F;
  font-weight: 600;
  border-radius: var(--r-control);
  text-decoration: none;
}
.skip:focus { transform: none; }

/* ---- labels ------------------------------------------------------------ */

/* DESIGN.md 5.2: 13px, 600, 0.04em. Uppercase is used only on these short
 * standing labels, never on a sentence and never on a language name. */
.label,
.eyebrow {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--brand-active);
  margin-bottom: var(--s2);
}

/* ---- chrome: primary nav ----------------------------------------------- */

.nav { position: relative; z-index: 10; }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Tight across the bar, roomier between the stacked rows the bar breaks into
   * once it collapses. The bar is close to full at 1440 with eight sections
   * and the two account controls, so every column gap is width the section
   * links do not have. */
  column-gap: var(--s2);
  row-gap: var(--s3);
  min-height: 78px;
  padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 208px; height: auto; display: block; }

/* Auto margins on both sides share the spare width either side of the
 * sections, so they sit centred between the wordmark and the account
 * controls however wide the viewport gets. */
.links { display: flex; gap: var(--s1); flex-wrap: wrap; margin-inline: auto; }
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 12px;
  font-size: var(--t-small);
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: var(--r-control);
}
.links a:hover { color: var(--text-primary); text-decoration: underline; }
.links a.active {
  color: var(--text-primary);
  box-shadow: inset 0 -3px 0 var(--brand-active);
}

/* Register and Sign in leave the marketing site for the product, so they read
 * as controls rather than as two more sections. The rule keeps them last in
 * the bar and the divider stops the eye running the section list straight on
 * into them. */
.auth {
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding-inline-start: var(--s2);
  border-inline-start: 1px solid var(--border);
}
.auth .login {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--s3);
  font-size: var(--t-small);
  /* A control that breaks across two lines stops reading as a control. */
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  color: var(--text-primary);
  font-weight: 600;
}
.auth .login:hover { border-color: var(--text-primary); text-decoration: none; }
.auth .login--primary {
  background: var(--brand-active);
  border-color: var(--brand-active);
  color: var(--bg-deep);
}
.auth .login--primary:hover { opacity: .9; border-color: var(--brand-active); }

/* CSS-only mobile menu: navigation never depends on scripting. Where the
 * bar collapses, the checkbox is the control: drawn for nobody but in the tab
 * order, so the keyboard reaches it and Space opens the menu (WCAG 2.1.1),
 * and its focus is drawn on the label beside it. */
.navcb, .navtoggle { display: none; }

/* The bar and the section's links stay at the top of a large screen, the
 * one place there is height to spare for them. Below that the box is no box
 * at all, and both scroll away with the page as before. --masthead-h is the
 * box's height, with a section's links or without, for what has to clear it. */
.masthead { display: contents; }

/* ---- chrome: section navigation ---------------------------------------- */

/* Sits under the primary nav on a section's parent and on every child, so a
 * reader arriving on a sub-page can see the rest of the section. */
.subnav { border-block-start: 1px solid var(--border); }
.subnav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  padding-block: var(--s2);
}
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  font-size: var(--t-small);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r-control);
}
.subnav a:hover { color: var(--text-primary); text-decoration: underline; }
.subnav a.active {
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--brand-continuity);
}
/* A section inside a section (the integrations guides under Support): its
 * pages down the left, beside the text, under the parent's bar. The body's own
 * sections keep their padding but not a second wrap's width. */
.sidegrid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.sidegrid .wrap { padding-inline: 0; max-width: none; }
/* Beside the menu the column is the reference's whole width, so tables and
 * code use it; running text keeps a reading measure. */
.sidegrid .prose { max-width: none; }
.sidegrid .prose > p, .sidegrid .prose > ol, .sidegrid .prose > ul, .sidegrid .prose > dl { max-width: none; }
/* A product's logo set to the right of the text it introduces, which runs
 * beside it; the next heading starts below it. On a phone it sits above. */
.prose .logo-aside { float: right; margin: 0 0 var(--s3) var(--s5); }
.prose .logo-aside img { display: block; }
.prose .logo-aside ~ h2 { clear: both; }
@media (max-width: 600px) {
  .prose .logo-aside { float: none; margin: 0 0 var(--s3); }
}
/* A coloured band in the body (the Policies overview's Who you are dealing
 * with) cannot run edge to edge beside the menu, so it becomes a panel of the
 * column: its own inset, rounded, clear of the footer. */
.sidegrid__main > .sec[class*="field-"] {
  padding: var(--s6) var(--s5);
  border-radius: var(--r-sheet);
  margin-bottom: var(--s7);
}
@media (max-width: 600px) {
  .sidegrid__main > .sec[class*="field-"] { padding: var(--s5) var(--s4); }
}
.sidenav {
  position: sticky;
  top: var(--s4);
  display: flex;
  flex-direction: column;
  padding-block: var(--s7);
}
.sidenav a {
  display: block;
  padding: 8px 12px;
  font-size: var(--t-small);
  color: var(--text-muted);
  text-decoration: none;
  border-inline-start: 3px solid transparent;
  border-radius: 0 var(--r-control) var(--r-control) 0;
  transition: background-color 120ms ease, color 120ms ease;
}
.sidenav a:hover { color: var(--text-primary); background: var(--bg-warm); }
.sidenav a:focus-visible { outline: 2px solid var(--brand-active); outline-offset: 1px; }
/* A group's name above its pages, in the section's colour, with a rule
 * between one group and the next; the first sits flush with the menu's top. */
.sidenav__group {
  display: block;
  margin-top: var(--s3);
  padding: var(--s3) 12px var(--s1) 15px;
  border-top: 1px solid var(--bg-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-continuity);
}
.sidenav a + .sidenav__group:first-of-type,
.sidenav__group:first-child { margin-top: 0; }
.sidenav__group:first-child { padding-top: 0; border-top: 0; }
.sidenav a.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-warm);
  border-inline-start-color: var(--brand-continuity);
}
@media (max-width: 900px) {
  .sidegrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidenav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding-block: var(--s4) 0;
    border-block-end: 1px solid var(--border);
  }
  .sidenav a { min-height: 44px; display: inline-flex; align-items: center; border-inline-start: 0; }
  .sidenav a.active { box-shadow: inset 0 -3px 0 var(--brand-continuity); }
  /* A group's name starts its own line, above its pages. */
  .sidenav__group { flex-basis: 100%; margin-top: var(--s2); padding: var(--s3) 12px 0; }
  .sidenav a { border-radius: var(--r-control) var(--r-control) 0 0; }
}

/* ---- search ------------------------------------------------------------ */

/* Every box is an ordinary GET form to /search/ (inc/search.php). The
 * magnifier opens the search page; a section's bar ends with a box for that
 * section; the integrations guides' menu opens with one; the phone menu's
 * first line is one for the whole site; and the 404 page has one. */
.nav .searchlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  color: var(--text-secondary);
  border-radius: var(--r-control);
}
.nav .searchlink:hover, .nav .searchlink[aria-current] { color: var(--text-primary); }
.nav .searchlink svg { width: 20px; height: 20px; display: block; }
.drawersearch { display: none; }

.subsearch, .drawersearch, .search { margin: 0; }
.subsearch__row, .drawersearch__row, .search__row { display: flex; gap: 6px; }
.subsearch input, .drawersearch input, .search input[type="search"] {
  min-width: 0;
  font: 400 var(--t-small)/1.4 var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  padding: 6px 10px;
}
.subsearch button, .drawersearch button {
  padding: 0 12px;
  font: 600 var(--t-small)/1 var(--font-sans);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  cursor: pointer;
}
.subsearch button:hover, .drawersearch button:hover { border-color: var(--text-primary); }

.subnav .wrap { align-items: center; }
.subsearch { margin-inline-start: auto; }
.subsearch input { width: 200px; min-height: 40px; background: var(--bg-surface); border-color: var(--border-strong); }
.subsearch button { min-height: 40px; border-color: var(--border); }

/* The news section's bar: its search first, a divider, then its links as
 * buttons, light, the current one amber. The row keeps the height of every
 * other section's bar, which --masthead-h counts on. */
.subnav--news .wrap { gap: var(--s2); min-height: calc(44px + 2 * var(--s2)); }
.subnav--news .subsearch { margin-inline-start: 0; }
.subnav__divider { align-self: stretch; width: 1px; margin-block: 4px; margin-inline: var(--s1); background: var(--border-strong); }
.subnav--news a {
  min-height: 36px;
  padding-inline: 14px;
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  border-radius: var(--r-control);
}
.subnav--news a:hover { color: var(--bg-deep); text-decoration: underline; }
.subnav--news a.active { color: var(--bg-deep); background: var(--brand-active); border-color: var(--brand-active); box-shadow: none; }
/* Where the search takes a row of its own (max-width 900px below), nothing is beside it to divide. */
@media (max-width: 900px) {
  .subnav__divider { display: none; }
}


.search__label { display: block; font-size: var(--t-small); font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.search__row { max-width: 640px; gap: var(--s2); }
.search input[type="search"] { flex: 1; min-height: 48px; padding: 10px 14px; font-size: var(--t-body); }
.search__scope { border: 0; padding: 0; margin: var(--s3) 0 0; display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; align-items: center; }
.search__scope legend { float: left; margin: 0 var(--s2) 0 0; }
.search__scope label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t-small); }
.searchpage .search { margin-bottom: var(--s5); }
.search__section { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 24px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.search__section:hover { text-decoration-thickness: 2px; }
.search__section[aria-current] { font-weight: 600; text-decoration: none; }
.search__count { color: var(--text-muted); font-size: var(--t-small); margin: 0 0 var(--s3); }
.search__count b { color: var(--text-primary); }
.results, .prose .results { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.prose .results li { margin: 0; padding: var(--s4) 0; border-top: 1px solid var(--border); }
.results__sec { font-size: 13px; font-weight: 600; color: var(--brand-active); }
.prose .results h2 { margin: 4px 0 2px; font-size: 22px; }
.results h2 a { color: var(--text-primary); }
.results__url { margin: 0 0 6px; color: var(--text-muted); font-size: var(--t-small); overflow-wrap: anywhere; }
.results__text { margin: 0; color: var(--text-secondary); }
.results b { color: var(--text-primary); }
.search__other { margin-top: var(--s4); font-size: var(--t-small); }
.search--404 { max-width: 520px; margin: var(--s5) auto 0; text-align: start; }

/* ---- buttons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--r-control);
  font: 600 16px/1.4 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 100ms ease-out, opacity 100ms ease-out;
}
.button--primary { background: var(--brand-active); color: var(--bg-deep); }
.button--primary:hover { opacity: .9; }
.button--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.button--secondary:hover { border-color: var(--text-primary); }
.button:disabled { opacity: .55; cursor: not-allowed; }

/* The public hero is the one place the campaign may lead with continuity
 * rather than the product action token. DESIGN.md 6.3. */
.button--campaign { background: #A6AE87; color: #0B1B2F; }
.button--campaign:hover { opacity: .9; }

.actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---- calls to action ----------------------------------------------------- */

/* A box a page body places with %%CTA_<code>%% (inc/cta.php, site migration
 * 0163, app/docs/CTA-SPEC.md). Each style fixes its colours here as --cta-*
 * properties, so nobody types a colour in the editor; with's styles are in
 * with.css. Contrast, WCAG 2, text 4.5:1 or better, borders 3:1 or better:
 *
 *   light  #0B1B2F on #FBF8F1 16.34; #3F4C5B 8.26; button #F4F0E7 on
 *          #7E5106 6.02; link #7E5106 6.46; second border #6F6A61 5.06
 *   warm   #0B1B2F on #ECE6DA 13.94; #3F4C5B 7.05; button 6.02; link
 *          #7E5106 5.51; second border #6F6A61 4.32
 *   brand  #FBF8F1 on #7E5106 6.46; button #0B1B2F on #FBF8F1 16.34
 *   navy   #F4F0E7 on #0B1B2F 15.23; #C7CDD2 10.80; button #0B1B2F on
 *          #D5942D 6.69; link #F0B85A 9.66; second border #71808D 4.27
 *   green  #F4F0E7 on #596244 5.67; button #0B1B2F on #F4F0E7 15.23
 *   info   the page's own ground and tokens: #3F4C5B on #F4F0E7 7.71,
 *          link and rule #1E607D 6.11, button #F4F0E7 on #1E607D 6.11; in a
 *          navy field #C7CDD2 10.80 and #76BDD7 8.28 */
.cta {
  display: grid;
  gap: var(--s3);
  margin-block: var(--s5);
  padding: var(--s5);
  border-radius: var(--r-plane);
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: var(--cta-edge, 0);
}
.cta .cta__body { display: grid; gap: var(--s2); }
.cta h2.cta__h { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: 0; color: var(--cta-fg); }
.cta .cta__text { margin: 0; max-width: none; color: var(--cta-fg2); }
.cta .cta__eyebrow { margin: 0; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.04em; color: var(--cta-eyebrow); }
.cta .cta__acts { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cta .cta__button { background: var(--cta-btn-bg); color: var(--cta-btn-fg); }
.cta .cta__button:hover { opacity: .9; }
.cta .cta__button--second { background: transparent; color: var(--cta-fg); border: 1px solid var(--cta-second-border); }
.cta a.cta__link { font-weight: 600; color: var(--cta-link); text-underline-offset: 3px; }
@media (min-width: 641px) {
  .cta--button:not(.cta--info) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s5); }
}

.cta--light {
  --cta-bg: #FBF8F1; --cta-edge: 1px solid #9A9488; --cta-fg: #0B1B2F; --cta-fg2: #3F4C5B; --cta-eyebrow: #7E5106;
  --cta-btn-bg: #7E5106; --cta-btn-fg: #F4F0E7; --cta-second-border: #6F6A61; --cta-link: #7E5106;
}
.cta--warm {
  --cta-bg: #ECE6DA; --cta-fg: #0B1B2F; --cta-fg2: #3F4C5B; --cta-eyebrow: #7E5106;
  --cta-btn-bg: #7E5106; --cta-btn-fg: #F4F0E7; --cta-second-border: #6F6A61; --cta-link: #7E5106;
}
.cta--brand {
  --cta-bg: #7E5106; --cta-fg: #FBF8F1; --cta-fg2: #FBF8F1; --cta-eyebrow: #FBF8F1;
  --cta-btn-bg: #FBF8F1; --cta-btn-fg: #0B1B2F; --cta-second-border: #FBF8F1; --cta-link: #FBF8F1;
}
.cta--navy {
  color-scheme: dark;
  --cta-bg: #0B1B2F; --cta-fg: #F4F0E7; --cta-fg2: #C7CDD2; --cta-eyebrow: #F0B85A;
  --cta-btn-bg: #D5942D; --cta-btn-fg: #0B1B2F; --cta-second-border: #71808D; --cta-link: #F0B85A;
}
.cta--green {
  --cta-bg: #596244; --cta-fg: #F4F0E7; --cta-fg2: #F4F0E7; --cta-eyebrow: #F4F0E7;
  --cta-btn-bg: #F4F0E7; --cta-btn-fg: #0B1B2F; --cta-second-border: #F4F0E7; --cta-link: #F4F0E7;
}
.cta--info {
  --cta-bg: transparent; --cta-fg: var(--text-primary); --cta-fg2: var(--text-secondary); --cta-eyebrow: var(--info);
  --cta-btn-bg: var(--info); --cta-btn-fg: var(--bg-deep); --cta-second-border: var(--info); --cta-link: var(--info);
  padding-block: 0;
  padding-inline: var(--s4) 0;
  border-radius: 0;
  border-inline-start: 4px solid var(--info);
}

/* ---- conversational turn ----------------------------------------------- */

/* A structured plane, not a speech bubble. Speaker and language come before
 * the text; the edge colour is paired with that text so colour never carries
 * the state alone. DESIGN.md 6.1. */
.imw-turn {
  position: relative;
  padding: var(--s4);
  padding-inline-start: 28px;
  background: var(--bg-warm);
  border-radius: var(--r-plane);
}
.imw-turn::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  border-start-start-radius: var(--r-plane);
  border-end-start-radius: var(--r-plane);
  background: var(--brand-continuity);
}
.imw-turn[aria-current="true"]::before { background: var(--brand-active); }
.imw-turn__meta {
  margin: 0 0 var(--s2);
  color: var(--text-muted);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.imw-turn__text {
  margin: 0;
  font-size: var(--t-conversation);
  line-height: 1.55;
  color: var(--text-primary);
}
.imw-turn__note {
  margin: var(--s2) 0 0;
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--text-muted);
}

.exchange {
  display: grid;
  gap: var(--s3);
  max-width: var(--w-conversation);
}
/* A change of task, rather than the next turn. DESIGN.md 5.3. */
.exchange .break { height: var(--s2); }

/* ---- active handoff ---------------------------------------------------- */

/* A square and a text label, never a pulsing orb. DESIGN.md 6.2. */
.handoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  font-size: var(--t-small);
  color: var(--text-secondary);
}
.handoff .marker {
  width: 12px;
  height: 12px;
  border-radius: var(--r-control);
  background: var(--brand-active);
}
.thread {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s2);
  max-width: 520px;
  margin: var(--s6) auto var(--s3);
}
.thread i { height: 2px; background: var(--brand-continuity); }
.thread i:first-child { background: var(--brand-active); }
.thread b { width: 14px; height: 14px; border-radius: var(--r-control); background: var(--brand-active); }

/* ---- boundary notice --------------------------------------------------- */

/* Full-width structured notice with a heading, an explanation and a next
 * action. Never a tooltip. DESIGN.md 6.5. */
.imw-boundary {
  /* Even padding all round: 20px against 24px read as a mistake at the
   * corner where the rail meets the heading. */
  padding: var(--s4);
  /* And clear of the heading above it and the list below it. Without this
   * the notice sits flush against both and reads as part of whichever the
   * eye reaches first. */
  margin-block: var(--s4);
  background: var(--bg-warm);
  border-inline-start: 4px solid var(--warning);
  border-radius: var(--r-plane);
}
.imw-boundary h3 { font-size: var(--t-h3); margin-bottom: var(--s2); }
/* The box's own padding is the space above its first line; a heading's
 * prose margin on top of it doubled the gap. */
.imw-boundary > :first-child { margin-top: 0; }
.imw-boundary p { font-size: var(--t-small); color: var(--text-secondary); }
.imw-boundary p:last-child { margin-bottom: 0; }

/* ---- page sections ----------------------------------------------------- */

.sec { padding-block: var(--s7); }
.sec--tight { padding-block: var(--s6); }

.pagehead { padding-block: var(--s7) var(--s7); }
.pagehead h1 { font-size: var(--t-display); line-height: 1.08; max-width: none; }
.pagehead .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: none;
  margin-top: var(--s4);
}
/* One rail, running down the start margin of the page header, aligned to the
 * content edge rather than the viewport edge. It marks where the sequence
 * begins; it is not a border around a card. */
.pagehead .wrap { position: relative; }
.pagehead .wrap::before {
  content: "";
  position: absolute;
  inset-block: 0 45%;
  inset-inline-start: 0;
  width: 3px;
  background: var(--brand-active);
}

.shead { max-width: none; margin-bottom: var(--s6); }
.shead p { color: var(--text-secondary); }

.prose { max-width: none; }

/* Blocks of pasted content, offered as four ready shapes by the editor at
   /sysadmin/site/edit.php so a page can be laid out without writing CSS.
   Full width takes the whole wrap; the other three are a reading column
   placed within it. The placement is logical rather than physical, so in a
   right-to-left language a block on the left mirrors to the right along
   with everything else on the page. */
.block { max-width: none; }
.block--full { max-width: none; }
.block--left { margin-inline: 0 auto; }
.block--centre { margin-inline: auto; }
.block--right { margin-inline: auto 0; }

/* An image placed in a page body, fig--<code>, one of the placements the same
   editor offers (lkp_site_image_placement in the application's database).
   Float left and float right are not a block of their own: the text runs past
   on the other side, the way .mark--corner already sets the maker's mark into
   a column. Wrap is float right under its earlier name. Left, centre and
   right are a block on its own line, put where the name says.

   Placement is logical rather than physical, like the blocks above, so left
   and right mirror in a right-to-left language along with everything else.
   A floated image takes at most half the column it is in, and 20rem, with
   1.5em (--s4) on the side facing the text and 1em (--s3) below; height stays
   auto so nothing is squashed and the width and height attributes on the tag
   keep the space reserved while it loads. */
/* An upload's width and height attributes give its shape, not a size to
   force: where the column is narrower than the width, the height follows. */
img[src^="/media/"] { height: auto; }
/* A clip in a page body (<video controls src="/media/...">) is placed with
   the same fig--<code> classes: the rules here are by class, so they apply to
   it as to an image. Its width and height attributes give its shape; the
   column narrows it, the height following, and a clip with neither takes the
   column's width at its own shape once its header has loaded. */
video[src^="/media/"] { height: auto; }
video[src^="/media/"]:not([width]) { width: 100%; }
.fig { display: block; height: auto; border-radius: var(--r-scene); }
.fig--float-left, .fig--float-right, .fig--wrap {
  max-width: min(50%, 20rem);
  margin-block: var(--s1) var(--s3);
}
.fig--float-left               { float: inline-start; margin-inline: 0 var(--s4); }
.fig--float-right, .fig--wrap  { float: inline-end;   margin-inline: var(--s4) 0; }
.fig--left   { margin-inline: 0 auto; margin-block: var(--s4); }
.fig--centre { margin-inline: auto;   margin-block: var(--s4); }
.fig--right  { margin-inline: auto 0; margin-block: var(--s4); }

/* A float has no height, so a short paragraph beside a tall image would let
   the next block start underneath it. The section that follows clears, and so
   does a heading or a call to action after a floated image, whether the image
   stands alone or sits in a paragraph: a new part of the page starts below
   the image rather than tucked beside it. */
.sec::after, .block::after { content: ""; display: table; clear: both; }
:is(.fig--float-left, .fig--float-right, .fig--wrap) ~ :is(h1, h2, h3, h4, h5, h6, .cta),
:has(> :is(.fig--float-left, .fig--float-right, .fig--wrap)) ~ :is(h1, h2, h3, h4, h5, h6, .cta) { clear: both; }

@media (max-width: 640px) {
  /* Nothing floats on a phone: a 20rem image beside prose in a 360px column
     leaves a two-word measure. It takes the column's width, centred, on a
     line of its own. */
  .fig--float-left, .fig--float-right, .fig--wrap {
    float: none; max-width: 100%; margin-inline: auto; margin-block: var(--s4);
  }
}
.prose h2 { margin-top: var(--s6); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { margin: 0 0 var(--s3); padding-inline-start: var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose dt { font-weight: 600; margin-top: var(--s4); }
.prose dd { margin: var(--s2) 0 0; color: var(--text-secondary); }

/* Code in running text: request examples, answers, field names. A block
   keeps its lines exactly as written and scrolls inside itself, so a long
   curl line on a phone moves the block and never the page. Inline code may
   break anywhere in a sentence; inside a table it stays whole and the
   table's own scroller takes the width. */
.prose code { font-family: ui-monospace, monospace; font-size: 0.9em; }
.prose p code, .prose li code { overflow-wrap: anywhere; }
.prose pre {
  margin: 0 0 var(--s4);
  padding: var(--s3);
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: var(--t-small);
  line-height: 1.5;
}
.prose pre code { font-size: inherit; white-space: pre; }
/* Syntax colour, set by inc/highlight.php as the page renders, from the
 * approved tokens: each holds at least 4.5:1 on the code block's paper. */
.hl .tok-key, .hl .tok-flag { color: var(--info); }
.hl .tok-str  { color: var(--success); }
.hl .tok-num, .hl .tok-lit, .hl .tok-var { color: var(--warning); }
.hl .tok-kw, .hl .tok-cmd { color: var(--brand-active); font-weight: 600; }
.hl .tok-com  { color: var(--text-muted); font-style: italic; }
.hl .tok-url  { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border); }
.prose .table-scroll { margin: 0 0 var(--s4); }
.docdate {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  font-size: var(--t-small);
  color: var(--text-muted);
}

.two {
  display: grid;
  /* minmax(0, ...) so a column is never wider than the page because of the
   * longest thing in it (WCAG 1.4.10, at 320px). */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}

.planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s3);
}
.plane {
  padding: var(--s4);
  background: var(--bg-warm);
  border-radius: var(--r-plane);
  border-top: 4px solid var(--brand-continuity);
}
.plane h3 { margin-bottom: var(--s2); }
.plane p { font-size: var(--t-small); color: var(--text-secondary); margin-bottom: 0; }
.plane .n {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-active);
  margin-bottom: var(--s2);
}
/* Anything set below a grid of planes gets clear of it. Without this the
 * fineprint under the pricing cards sits against the bottom edge of the last
 * one and reads as part of it. */
.planes + * { margin-top: var(--s5); }

.panel {
  padding: var(--s5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-plane);
}
.panel p { font-size: var(--t-small); color: var(--text-secondary); }
/* On a navy panel the ochre is 4.46:1 at 13px, short of 4.5:1, so the
 * label takes the navy palette's lighter amber (6.45:1). */
.field-navy .panel > .eyebrow { color: var(--warning); }

/* A visible sequence: the numbers are content, not decoration. */
.steps { counter-reset: step; display: grid; gap: var(--s5); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-active);
  padding-top: 6px;
}
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--text-secondary); margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 10px var(--s3);
  background: var(--bg-surface);
  border-radius: var(--r-control);
  font-size: var(--t-small);
}

.langs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s2) var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--w-wide);
}
.langs li {
  padding-block: 6px;
  border-bottom: 1px solid var(--border);
  font-size: var(--t-small);
}

.limits { counter-reset: limit; list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: var(--s3); }
.limits li {
  padding: var(--s4);
  background: var(--bg-warm);
  border-inline-start: 4px solid var(--error);
  border-radius: var(--r-plane);
}
.limits b { display: block; margin-bottom: var(--s1); }
.limits b::before {
  counter-increment: limit;
  content: counter(limit, decimal-leading-zero) "  ";
  color: var(--error);
  font-variant-numeric: tabular-nums;
}
.limits span { font-size: var(--t-small); color: var(--text-secondary); }

.partners { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; }
.partners a { font-size: var(--t-h3); font-weight: 500; }

/* A maker's mark on its own: the logo, centred, and nothing else in the
 * section with it. The dark mark, because this sits on the paper ground;
 * the footer's reversed one is for the navy field. */
.mark { display: flex; justify-content: center; }
.mark img { width: 180px; height: auto; }
/* The same mark set into the corner of a column, with the text wrapping past
 * it. A float rather than a grid cell, because the column it sits in is
 * already one half of a two-column section. */
.mark--corner { display: block; float: inline-end; margin: 0; margin-block-end: var(--s3); margin-inline-start: var(--s4); }
.mark--corner img { width: 140px; }

/* ---- the interrupted frame (landing page only) ------------------------- */

/* DESIGN.md 5.5. Held scenes in a content field with exterior rails. The rails
 * are outside the scene and each state has different geometry: interrupted,
 * suspended, resumed, released. */

.hero {
  position: relative;
  min-height: min(770px, calc(100vh - 78px));
  display: flex;
  align-items: center;
  background: var(--bg-deep) url("/site-assets/images/face-to-face-hero.webp?v=2026-11-06.1") center / cover no-repeat;
  overflow: hidden;
}
/* The artwork already carries a quiet navy field at its centre, which is where
 * the live headline sits and where it keeps its 15.23:1. This leaves that
 * centre untouched and deepens the outer field so the two profiles frame the
 * words instead of competing with them. Every stop is #0B1B2F with alpha; no
 * new colour is introduced. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%,
    rgb(11 27 47 / 0) 0 24%,
    rgb(11 27 47 / .55) 62%,
    rgb(11 27 47 / .78) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(700px, 56vw);
  margin-inline: auto;
  text-align: center;
  padding-block: var(--s8);
}
.hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-block: var(--s2) var(--s3);
}
.hero .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 34ch;
  margin-inline: auto;
}
.hero .actions { justify-content: center; }
/* The plain statement of what the product physically is, under the campaign
 * line. Deliberately quieter than the lead above it and louder than a caption. */
.hero .lead--plain {
  margin-top: var(--s3);
  font-size: var(--t-body);
  color: var(--text-muted);
}
.hero .boundary-note {
  max-width: 46ch;
  margin: var(--s5) auto 0;
  font-size: var(--t-small);
  color: var(--text-secondary);
}

.cuts { padding-block: var(--s8); }
.cut {
  display: grid;
  grid-template-columns: 80px minmax(0, var(--w-frame)) 80px;
  justify-content: center;
}
.cut + .cut { margin-top: 28px; }

.rail { position: relative; }
.rail::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(50% - 1.5px);
  width: 3px;
  background: var(--brand-active);
}
/* Interrupted: the rail stops on one side and picks up on the other. */
.cut--interrupted .rail:first-child::before { top: 0; height: 42%; }
.cut--interrupted .rail:last-child::before { top: 42%; bottom: 0; }
/* Suspended: held clear of both ends. */
.cut--suspended .rail::before { top: 28%; bottom: 28%; }
/* Resumed: the mirror of interrupted. */
.cut--resumed .rail:first-child::before { top: 24%; bottom: 0; }
.cut--resumed .rail:last-child::before { top: 0; height: 24%; }
/* Released: a short mark at the close, and nothing else. */
.cut--released .rail::before { top: 0; height: 18%; }

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(58px, 6vw, 92px) clamp(34px, 6vw, 90px);
  border-radius: var(--r-scene);
  /* A held scene is a field, not a card. On the paper ground that means the
   * raised surface rather than the canvas, so the scene has an edge without
   * needing a border drawn around it. */
  background: var(--bg-elevated);
}
/* A navy or olive scene is the field itself and takes the canvas, not the
 * raised surface. Without this the navy scenes render as #243B50, which is
 * the hover state and not a field colour. */
.scene.field-navy,
.scene.field-olive { background: var(--bg-deep); }
.scene h2 {
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: none;
  margin-block: var(--s2) var(--s4);
  overflow-wrap: anywhere;
}
.scene p { font-size: 19px; line-height: 1.6; max-width: none; }
.scene .actions { margin-top: var(--s4); }

/* Supplementary compositional cue. DESIGN.md 5.2 permits 700-750 at 10-11px
 * here and nowhere else. It carries no instruction. */
.frame-label {
  position: absolute;
  top: 18px;
  inset-inline-start: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-active);
}

.pair { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin-top: var(--s5); max-width: var(--w-conversation); }

/* ---- tables ------------------------------------------------------------ */

/* Wide content scrolls inside its own container; the page body never scrolls
 * sideways. */
.table-scroll { overflow-x: auto; }
.langtable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}
.langtable caption {
  text-align: start;
  padding-bottom: var(--s3);
  color: var(--text-muted);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.langtable th,
.langtable td {
  text-align: start;
  padding: 12px 0;
  padding-inline-end: var(--s3);
  border-bottom: 1px solid var(--border);
}
.langtable th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
}
.langtable td code {
  font-family: ui-monospace, monospace;
  color: var(--text-muted);
}

/* ---- footer ------------------------------------------------------------ */

.site-footer { padding-block: var(--s7) var(--s4); }
.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s5);
}
.site-footer img { width: 180px; height: auto; }
/* The INT6 mark sits under the brand heading, smaller than the wordmark
   above it: it is whose product this is, not what the product is. */
.site-footer .int6-mark { width: 124px; margin-block: var(--s1) var(--s3); }
.site-footer h4 { color: var(--text-muted); letter-spacing: 0.04em; font-size: var(--t-label); }
.site-footer .col a { display: block; margin-bottom: var(--s2); font-size: var(--t-small); color: var(--text-secondary); text-decoration: none; }
.site-footer .col a:hover { color: var(--text-primary); text-decoration: underline; }
.site-footer .lab { font-size: var(--t-small); color: var(--text-secondary); margin-top: var(--s3); max-width: 40ch; }
.site-footer .policies {
  grid-column: 1 / -1;
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  font-size: var(--t-small);
  color: var(--text-muted);
}

/* ---- contact form ------------------------------------------------------ */

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); max-width: var(--w-prose); }
.form label { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.04em; margin-top: var(--s3); }
.form input, .form select, .form textarea {
  min-height: 48px;
  padding: 12px var(--s3);
  font: 400 var(--t-body)/1.5 var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-elevated);
  /* The strong border: a field's edge is 3:1 or more on its card (1.4.11). */
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
}
.form textarea { min-height: 160px; resize: vertical; }
.form .button { margin-top: var(--s4); justify-self: start; }
.form .note { font-size: var(--t-small); color: var(--text-muted); }
/* Cloudflare's check (inc/contact.php) puts a frame 65px high in its box
 * once its script has run; the box holds that height from the start, so the
 * Send button stays where it was drawn. */
.cf-turnstile { min-height: 65px; }
.big { font-size: var(--t-h3); font-weight: 600; }

/* ---- 404 --------------------------------------------------------------- */

.notfound { text-align: center; padding-block: var(--s8); }
.notfound .actions { justify-content: center; }

/* ---- responsive -------------------------------------------------------- */

/* Breakpoints from DESIGN.md 7.1. Tested at 320, 390, 768, 1024 and 1440. */

@media (min-width: 768px) {
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); }
  .two--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .pair { grid-template-columns: 1fr 1.15fr; }
}

@media (max-width: 900px) {
  .nav .wrap { flex-wrap: wrap; min-height: 68px; }
  .brand img { width: 176px; }
  .navcb {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .navcb:focus-visible + .navtoggle { outline: 3px solid var(--brand-active); outline-offset: 3px; }
  .navtoggle {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding-inline: var(--s3);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-control);
    font-size: var(--t-small);
    font-weight: 600;
    cursor: pointer;
  }
  .links { display: none; width: 100%; flex-direction: column; gap: 0; margin-inline-start: 0; padding-bottom: var(--s2); }
  .navcb:checked ~ .links { display: flex; }
  .links a { width: 100%; border-bottom: 1px solid var(--border); border-radius: 0; }
  .links a.active { box-shadow: none; border-inline-start: 3px solid var(--brand-active); padding-inline-start: 9px; }
  /* Two full-width controls will not fit beside the brand and the menu button
   * at this width, so the account group collapses with the sections rather
   * than staying in the top bar, and keeps its full tap target when open. */
  .auth {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--s2);
    padding-inline-start: 0;
    padding-bottom: var(--s2);
    border-inline-start: 0;
  }
  .navcb:checked ~ .auth { display: flex; }
  .auth .login { width: 100%; justify-content: center; }
  /* The magnifier gives way to the box heading the open menu, and a
   * section's box takes the full width above the section's links. */
  .nav .searchlink { display: none; }
  .drawersearch { display: block; width: 100%; padding-block: var(--s2); }
  .drawersearch input { flex: 1; min-height: 44px; font-size: var(--t-body); }
  .drawersearch button { min-height: 44px; }
  .subsearch { order: -1; width: 100%; margin-inline-start: 0; padding-bottom: var(--s1); }
  .subsearch input { flex: 1; min-height: 44px; width: auto; }
  .subsearch button { min-height: 44px; }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    background-image: url("/site-assets/images/face-to-face-hero-mobile.webp?v=2026-11-06.1");
    background-size: 100% auto;
    background-position: center top;
    align-items: flex-start;
  }
  /* Both profiles stay visible at the top and the lower hero resolves into
   * navy, so the copy reads against the field rather than the artwork.
   * DESIGN.md 5.5, signature device 2. */
  /* The artwork is served at full viewport width, so its 820x583 frame ends at
   * 71vw. The stops are in vw for that reason: as a percentage they would be
   * measured against the whole hero, which is several times taller than the
   * image, and the scrim would still be fully transparent where the copy
   * starts. Both profiles stay lit down to the jaw; below that the field
   * resolves to navy and the copy reads against navy, not against a face. */
  .hero::after {
    background: linear-gradient(to bottom,
      rgb(11 27 47 / 0) 0 34vw,
      rgb(11 27 47 / .95) 56vw,
      #0B1B2F 64vw);
  }
  .hero-copy { width: min(86vw, 520px); padding-block: 62vw var(--s7); }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .cuts { padding-block: var(--s6); }
  .cut { grid-template-columns: 26px minmax(0, 1fr) 26px; }
  .cut + .cut { margin-top: 20px; }
  .scene { min-height: auto; padding: 70px var(--s4) 62px; }
  .scene h2 { font-size: clamp(34px, 10vw, 52px); }
  .scene p { font-size: var(--t-body); }
  .rail::before { width: 2px; }
  .frame-label { inset-inline-start: var(--s3); }
  .sec { padding-block: var(--s6); }
  .pagehead { padding-block: var(--s6); }
  .pagehead h1 { font-size: clamp(32px, 9vw, 48px); }
}

@media (max-width: 430px) {
  .wrap { padding-inline: var(--s3); }
  .hero .actions .button { width: 100%; }
  .step { grid-template-columns: 32px 1fr; }
}

/* ---- reduced motion ---------------------------------------------------- */

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

/* ---- print ------------------------------------------------------------- */

/* /safeguards/ is meant to be handed to staff, so it has to print. */
@media print {
  .nav, .site-footer, .skip { display: none; }
  body { background: #FBF8F1; color: #0B1B2F; font-size: 12pt; }
  .sec, .pagehead { padding-block: 12pt; }
  a { text-decoration: underline; }
}

/* ---- language machinery ------------------------------------------------- */

/* The fallback notice: shown when a translation is missing and the English
 * is standing in. States its point once, in the page's own language. */
.lang-fallback {
  margin-block-start: var(--s4);
  padding: var(--s3) var(--s4);
  border-inline-start: 3px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--t-small);
}

/* The chooser: every language as a plain link, native name first. */
.langlist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 220px;
  column-gap: var(--s6);
}
.langlist li { break-inside: avoid; padding-block: var(--s2); }
.langlist a { font-size: var(--t-h3); text-decoration: none; }
.langlist a[aria-current="true"] { color: var(--brand-active); }
.langlist__en { color: var(--text-muted); font-size: var(--t-small); margin-inline-start: var(--s2); }
/* The language strip: one slim line under the bar, on every page. */
.langbar { border-block-start: 1px solid var(--border); }
.langbar .wrap { padding-block: var(--s2); text-align: center; }
.langbar a { font-size: var(--t-label); color: var(--text-secondary); }

/* ---- news listing ------------------------------------------------------- */

/* /news/, its categories and its months (imw_news_listing in inc/layout.php):
 * Latest article on cream, then the month bar and the month's cards on the
 * ground. Section headings are a small capitalised line over a brown rule
 * (text-transform; the words are stored in sentence case). */
.news-latest { background: var(--news-cream); padding-block: var(--s6); }
.news-articles { background: var(--news-ground); padding-block: var(--s6) var(--s7); }
.news-rule {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s4);
  padding-bottom: var(--s1);
  border-bottom: 2px solid var(--news-brown);
  font-size: var(--t-small);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.news-rule__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.news-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.news-latest__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s6);
  align-items: start;
}
.news-latest--noimg .news-latest__grid { grid-template-columns: minmax(0, 1fr); }
.news-latest__text { max-width: none; }
.news-latest__title { font-size: var(--t-h2); font-weight: 500; line-height: 1.25; margin-bottom: var(--s3); }
.news-latest__title a { text-decoration-thickness: 1px; }
.news-latest__desc { color: var(--text-secondary); margin-bottom: var(--s4); }
.news-latest__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 2px solid var(--news-brown);
  border-radius: var(--r-control);
}
.news-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s4);
  font-weight: 600;
  color: var(--news-on-brown);
  background: var(--news-brown);
  border-radius: var(--r-control);
  text-decoration: none;
}
.news-button:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .news-latest__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .news-latest__img { order: -1; }
}

/* The months, newest first, scrolling sideways inside the bar; an arrow
 * at each end goes to the newer and the older month. */
.news-months { display: flex; align-items: center; gap: var(--s1); margin: 0 0 var(--s4); }
.news-months__step {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
  border-radius: var(--r-control);
}
span.news-months__step { color: var(--border); }
.news-months__step--older svg { transform: scaleX(-1); }
[dir="rtl"] .news-months__step--newer svg { transform: scaleX(-1); }
[dir="rtl"] .news-months__step--older svg { transform: none; }
/* position: relative makes the list the containing block of each month's
 * visually hidden label (.news-vh, absolute), so a label scrolled out of the
 * strip is clipped with it instead of widening the page. */
.news-months__list {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}
.news-months__list li { flex: none; display: flex; align-items: center; }
.news-months__list li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: var(--s2);
  border-radius: 50%;
  background: var(--text-muted);
}
.news-months__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
}
.news-months__list a:hover { color: var(--text-primary); text-decoration: underline; }
.news-months__list a[aria-current] { color: var(--news-brown); font-weight: 700; }

/* The cards: three columns, the first of each four tall across two rows,
 * small ones in pairs beside it, an unpaired last one wide across two
 * (imw_news_mosaic). Two columns under 1024, one under 641. Each picture is
 * cut to its card's shape by aspect-ratio, so its space is held before it
 * arrives. */
.news-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--news-card);
  border: 1px solid var(--news-brown);
  border-radius: var(--r-control);
  overflow: hidden;
}
.news-card--tall { grid-row: span 2; }
.news-card--wide { grid-column: span 2; }
.news-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--news-brown);
}
.news-card--tall > img { aspect-ratio: 16 / 10; }
.news-card--wide > img { aspect-ratio: 16 / 3; }
.news-card__body { display: flex; flex-direction: column; flex: 1; gap: var(--s2); padding: var(--s3) var(--s4) var(--s4); }
.news-card__title { margin: 0; font-size: var(--t-body); font-weight: 600; line-height: 1.35; }
.news-card--tall .news-card__title { font-size: var(--t-h3); }
.news-card__title a { text-decoration: underline; text-decoration-thickness: 1px; }
/* The title's link covers the whole card; the category above it stays its own link. */
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__desc { margin: 0; font-size: var(--t-small); color: var(--text-secondary); }
.news-chip {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 12px;
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--news-cream);
  border-radius: var(--r-control);
  text-decoration: none;
}
.news-chip:hover { text-decoration: underline; }
.news-card:hover .news-card__title a { text-decoration-thickness: 2px; }
@media (max-width: 1023px) {
  .news-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-mosaic { grid-template-columns: minmax(0, 1fr); }
  .news-card--tall, .news-card--wide { grid-row: auto; grid-column: auto; }
  .news-card > img, .news-card--tall > img, .news-card--wide > img { aspect-ratio: 16 / 9; }
}

/* An article's date, added under the lead by the renderer, and its share
   links at the foot. Same date treatment as the card in the listing. */
.pagehead__date { margin-top: var(--s3); color: var(--text-muted); font-size: var(--t-small); }
.share { max-width: none; padding-top: var(--s4); border-top: 1px solid var(--border); }
.share__heading { font-size: var(--t-body); font-weight: 600; margin-bottom: var(--s2); }
.share__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0; padding: 0; list-style: none; }

/* Wide screens: the bar grows, in type and in presence. Type steps to the
 * next token on the scale (--t-body), never an invented size; the rest is
 * spacing. KEPT IN SYNC with the app bar: the same block lives in
 * app/public_html/site_assets/css/appbar.css, because the two hosts are one
 * product and the chrome must not announce the boundary. If one changes,
 * the other has to. */
@media (min-width: 1440px) {
  /* The bar's own container widens with the type, or the extra size just
   * wraps the menu: eight sections at 17px do not fit in 1200px. Only the
   * bar widens; page content keeps --w-wide. */
  .nav .wrap { min-height: 88px; max-width: 1400px; }
  .links { gap: var(--s2); }
  .links a { font-size: var(--t-body); padding-inline: var(--s3); }
  .auth .login { font-size: var(--t-body); padding-inline: 20px; }
}

/* The chooser's type-to-filter, worked by langfilter.js. In the page and
 * hidden; drawn from the first paint where JavaScript runs, so the list
 * under it does not move down when the script arrives. */
.langfilter { margin-block-end: var(--s4); }
@media (scripting: enabled) {
  .langfilter[hidden] { display: block; }
}
.langfilter__input {
  width: 100%; max-width: 420px;
  padding: 10px 14px;
  font: inherit; font-size: var(--t-body);
  color: var(--text-primary); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--r-control);
}

/* Questions grouped into sections that open. <details> rather than a script:
 * the browser opens one on a find-in-page hit, and a printed page prints
 * every answer whether or not somebody clicked it. */
.faq { display: grid; gap: var(--s3); max-width: none; }
.faq__group {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-plane);
}
.faq__group + .faq__group { margin-top: 0; }
.faq__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.faq__group > summary::-webkit-details-marker { display: none; }
.faq__group > summary::after {
  content: "+";
  flex: none;
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: 1;
  color: var(--brand-active);
}
/* U+2212, the minus sign, not a hyphen: it matches the plus at this size. */
.faq__group[open] > summary::after { content: "\2212"; }
.faq__group[open] > summary { border-bottom: 1px solid var(--border); }
.faq__group > summary:focus-visible {
  outline: 2px solid var(--brand-active);
  outline-offset: -2px;
  border-radius: var(--r-plane);
}
.faq__group .prose { max-width: none; padding: var(--s4); }
.faq__group .prose dl { margin: 0; }
.faq__group .prose dt:first-child { margin-top: 0; }

@media print {
  /* A closed group is closed by a user-agent rule, so printing needs it
   * overridden or half the page comes out blank. */
  .faq__group > *:not(summary) { display: block; }
  .faq__group > summary { border-bottom: 1px solid var(--border); }
  .faq__group > summary::after { content: ""; }
}

/* The contact form's honeypot, out of sight as well as hidden; and the
 * buttons after the answer to a sent form. Classes rather than style
 * attributes: the policy's style-src is to have no 'unsafe-inline'. */
.cf-trap { position: absolute; left: -9999px; }
.actions--after { margin-top: 32px; }

/* ==== the home page's components ========================================
 *
 * Drawn inside the home page's scenes. The page's frame is above: .hero,
 * .cuts, .cut and its rails, .scene in its fields, .eyebrow, .button, .two.
 * Every rule from here to the end marker is a .home-* class except the one
 * wider inside padding of a scene at 1440 and over (.cuts is the home
 * page's). Here, not in a stylesheet of their own, as the site has one
 * stylesheet on every page; after the rules they change, as that stylesheet
 * was loaded after this one.
 *
 * Colours are approved tokens (tools/check.mjs, APPROVED) and nothing else. A
 * component that sits in a navy or olive field names its own colours, because
 * the field's tokens are for text on the field and these are planes laid on
 * it. Contrast, WCAG 2, text 4.5:1 or better, measured:
 *
 *   convo     #F4F0E7 on #0B1B2F 15.23; #0B1B2F on #FBF8F1 16.34;
 *             label #0B1B2F on #ECE6DA 13.94
 *   steps     #0B1B2F on #F4F0E7 15.23; small #3F4C5B on #F4F0E7 7.71
 *   aside     #F4F0E7 on #13263A 13.52; #C7CDD2 on #13263A 9.58;
 *             button #F0B85A on #13263A
 *   uses      #0B1B2F on #FBF8F1 16.34 and on #E3DDCF 12.80; small #3F4C5B
 *             on #FBF8F1 8.26 and on #E3DDCF 6.47
 *   month     #F4F0E7 on #0B1B2F 15.23; #0B1B2F on #ECE6DA 13.94;
 *             #FBF8F1 on #7E5106 6.46 (aria-hidden, a picture)
 *   roadmap   on olive #0B1B2F on #A6AE87 7.45 (the stops' labels, 15px);
 *             live #0B1B2F on #F4F0E7 15.23, small #3F4C5B 7.71; in
 *             development #F4F0E7 on #0B1B2F 15.23, small #C7CDD2 10.80,
 *             icon #D5942D 6.69
 *
 * One column below 768px. No script. Pictures and clips carry their size, so
 * nothing moves when they arrive.
 */

/* ---- the scene's inside padding, wider at 1440 ------------------------- */

@media (min-width: 1440px) {
  .cuts > .cut > .scene { padding-inline: var(--s8); }
}

/* ---- icons --------------------------------------------------------------- */

/* Inline SVG in currentColor, aria-hidden; the words beside carry the
 * meaning. Each component sizes its own. */
.home-convo svg, .home-steps svg, .home-uses svg, .home-month svg,
.home-roadmap svg, .home-aside svg { display: block; flex: none; }

/* ---- simplified speech: the shared screen ------------------------------ */

.home-convo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
  margin-block: var(--s5) var(--s4);
  padding: var(--s3);
  background: #ECE6DA;
  border: 1px solid #9A9488;
  border-radius: var(--r-plane);
}
.home-convo__side { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.scene .home-convo__bubble {
  margin: 0;
  max-width: none;
  padding: 12px var(--s3);
  font-size: var(--t-body);
  line-height: 1.55;
  border-radius: var(--r-plane);
}
.home-convo__side:first-child .home-convo__bubble {
  background: #0B1B2F;
  color: #F4F0E7;
  border-inline-start: 4px solid #D5942D;
}
.home-convo__side:last-child .home-convo__bubble {
  background: #FBF8F1;
  color: #0B1B2F;
  border-inline-end: 4px solid #A6AE87;
}
/* A short standing label, so uppercase as the eyebrow rule allows. */
.scene .home-convo__who {
  margin: 0;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0B1B2F;
}

/* ---- active listening: the three steps ---------------------------------- */

.home-steps {
  display: grid;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-steps__step {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  background: #F4F0E7;
  color: #0B1B2F;
  border-inline-start: 4px solid #A6AE87;
  border-radius: var(--r-control);
}
.home-steps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  color: #0B1B2F;
}
.home-steps__icon svg { width: 36px; height: 36px; }
.scene .home-steps__step p { margin: 0; max-width: none; font-size: var(--t-small); line-height: 1.5; color: #3F4C5B; }
.scene .home-steps__step p:first-child { margin-bottom: var(--s1); font-size: var(--t-body); font-weight: 600; color: #0B1B2F; }

/* ---- active listening: you're in control -------------------------------- */

.home-aside {
  padding: var(--s4);
  background: #13263A;
  color: #F4F0E7;
  border-inline-start: 4px solid #D5942D;
  border-radius: var(--r-plane);
}
.home-aside h3 { margin: 0 0 var(--s2); color: #F4F0E7; }
.scene .home-aside p { font-size: var(--t-body); color: #C7CDD2; }
.home-aside .button { margin-top: var(--s3); color: #F0B85A; border: 1px solid #D5942D; background: transparent; }
.home-aside .button:hover { border-color: #F0B85A; }

/* ---- protect your interpreting budget: the two lists -------------------- */

.home-uses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
  margin: 0 0 var(--s5);
  padding: 0;
  list-style: none;
}
.home-uses__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  background: #FBF8F1;
  color: #0B1B2F;
  border-inline-start: 4px solid #0B1B2F;
  border-radius: var(--r-control);
}
.home-uses--keep .home-uses__item { background: #E3DDCF; }
.home-uses__icon { display: inline-flex; flex: none; width: 48px; height: 48px; align-items: center; justify-content: center; color: #0B1B2F; }
.home-uses__icon svg { width: 40px; height: 40px; }
.scene .home-uses__item p { margin: 0; max-width: none; font-size: var(--t-small); line-height: 1.5; color: #3F4C5B; }
.scene .home-uses__item p:first-child { margin-bottom: var(--s1); font-size: var(--t-body); font-weight: 600; color: #0B1B2F; }

/* ---- give us a month: the calendar --------------------------------------- */

/* A picture of a month, aria-hidden: the text beside it says what it means. */
.home-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-self: center;
  width: 100%;
  max-width: 480px;
}
.home-month__head {
  padding-block: 2px;
  text-align: center;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #0B1B2F;
  color: #F4F0E7;
}
.home-month__day {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  aspect-ratio: 3 / 4;
  padding: 18px 3px 6px;
  background: #ECE6DA;
  color: #0B1B2F;
  border: 1px solid #E3DDCF;
  border-radius: var(--r-control);
}
.home-month__day b {
  position: absolute;
  top: 3px;
  inset-inline-end: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.home-month__day--rest { background: rgb(166 174 135 / .45); }
.home-month__day--empty { background: #F4F0E7; }
.home-month__day--mark { align-items: center; justify-content: center; background: #7E5106; color: #FBF8F1; border-color: #7E5106; }
.home-month__day--mark svg { width: 60%; height: auto; }
.home-month__bar { display: block; height: 10px; border-radius: 2px; background: #D5942D; }
.home-month__bar--olive { background: #A6AE87; }
.home-month__bar--navy { background: #0B1B2F; }

/* ---- rolling improvements: the picture, and the clips -------------------- */

.home-photo {
  position: relative;
  margin: var(--s5) 0 var(--s6);
  border-radius: var(--r-sheet);
  overflow: hidden;
  background: #13263A;
  /* The ochre plate behind the picture: proud of the sides, deeper below,
     starting a little under the top edge. */
  box-shadow: 0 12px 0 6px #D5942D;
}
/* The pale rim laid over the picture's edge. */
.home-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 10px rgb(251 248 241 / .45);
  pointer-events: none;
}
.home-photo img,
.home-photo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.home-photo__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: var(--s4);
  text-align: center;
  font-size: var(--t-small);
  background: #1A3045;
  color: #C7CDD2;
  border: 2px dashed #71808D;
  border-radius: var(--r-sheet);
}

/* ---- handling today's conversations: the roadmap ------------------------- */

.home-roadmap { margin-block: var(--s5) var(--s4); }
.home-roadmap__line { display: flex; flex-direction: column; gap: var(--s4); }
.home-roadmap__group { min-width: 0; }
.home-roadmap__bracket {
  margin: 0 0 var(--s3);
  padding: 4px var(--s3);
  text-align: center;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.scene .home-roadmap__bracket { max-width: none; font-size: var(--t-small); }
.home-roadmap--live .home-roadmap__bracket { background: #F4F0E7; color: #0B1B2F; }
.home-roadmap--dev .home-roadmap__bracket { background: #0B1B2F; color: #F4F0E7; }
.home-roadmap__group ol { display: flex; flex-direction: column; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.home-roadmap__stop { position: relative; display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.home-roadmap__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #E3DDCF;
}
.home-roadmap__icon svg { width: 55%; height: 55%; }
.home-roadmap--live .home-roadmap__icon { background: #F4F0E7; color: #0B1B2F; }
.home-roadmap--dev .home-roadmap__icon { background: #0B1B2F; color: #A6AE87; border-color: #0B1B2F; }
.home-roadmap__label { font-size: var(--t-small); font-weight: 700; line-height: 1.3; color: #0B1B2F; }
/* The joins: up to the stop before, inside a group. */
.home-roadmap__stop + .home-roadmap__stop::before {
  content: "";
  position: absolute;
  inset-inline-start: 26px;
  bottom: 100%;
  height: var(--s3);
  border-inline-start: 4px solid #F4F0E7;
}
.home-roadmap--dev .home-roadmap__stop + .home-roadmap__stop::before { border-inline-start: 3px dashed #0B1B2F; }

.home-roadmap__lists {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 2px solid #0B1B2F;
}
.home-roadmap__list { display: grid; gap: var(--s3); align-content: start; margin: 0; padding: 0; list-style: none; }
.home-roadmap__card {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--r-control);
}
.home-roadmap__card svg { width: 40px; height: 40px; }
.home-roadmap--live .home-roadmap__card { background: #F4F0E7; color: #0B1B2F; border-inline-start: 4px solid #0B1B2F; }
.home-roadmap--dev .home-roadmap__card { background: #0B1B2F; color: #F4F0E7; border-inline-start: 4px solid #D5942D; }
.home-roadmap--dev .home-roadmap__card svg { color: #D5942D; }
.scene .home-roadmap__card p { margin: 0; max-width: none; font-size: var(--t-small); line-height: 1.5; }
.scene .home-roadmap__card p:first-child { margin-bottom: var(--s1); font-size: var(--t-body); font-weight: 600; }
.scene .home-roadmap--live .home-roadmap__card p { color: #3F4C5B; }
.scene .home-roadmap--live .home-roadmap__card p:first-child { color: #0B1B2F; }
.scene .home-roadmap--dev .home-roadmap__card p { color: #C7CDD2; }
.scene .home-roadmap--dev .home-roadmap__card p:first-child { color: #F4F0E7; }

/* ---- 768 and over: the components spread out ---------------------------- */

@media (min-width: 768px) {
  .home-convo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
  .home-convo__side:last-child { align-items: flex-end; }
  .home-convo__side:last-child .home-convo__bubble { align-self: stretch; }

  .home-uses { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s5); }

  /* The stops in a row, each the same width, the brackets over their own. */
  .home-roadmap__line { flex-direction: row; gap: 0; }
  .home-roadmap__group { flex: 1 1 0; }
  .home-roadmap__group:has(> ol > li:nth-child(2)) { flex-grow: 2; }
  .home-roadmap__group:has(> ol > li:nth-child(3)) { flex-grow: 3; }
  .home-roadmap__group:has(> ol > li:nth-child(4)) { flex-grow: 4; }
  .home-roadmap__group:has(> ol > li:nth-child(5)) { flex-grow: 5; }
  .home-roadmap__group:has(> ol > li:nth-child(6)) { flex-grow: 6; }
  .home-roadmap__bracket { margin-inline: var(--s2); }
  .home-roadmap__group ol { flex-direction: row; gap: 0; }
  .home-roadmap__stop { flex: 1 1 0; flex-direction: column; gap: var(--s2); text-align: center; }
  .home-roadmap__icon { width: 72px; height: 72px; }
  /* Each join runs from the centre of the stop before to this one's, the
   * first of the second group included. */
  .home-roadmap__stop + .home-roadmap__stop::before,
  .home-roadmap__group + .home-roadmap__group .home-roadmap__stop:first-child::before {
    content: "";
    position: absolute;
    top: 34px;
    bottom: auto;
    inset-inline-start: auto;
    inset-inline-end: 50%;
    width: 100%;
    height: 0;
    border-inline-start: 0;
    border-top: 4px solid #F4F0E7;
  }
  .home-roadmap--dev .home-roadmap__stop + .home-roadmap__stop::before,
  .home-roadmap__group + .home-roadmap__group.home-roadmap--dev .home-roadmap__stop:first-child::before {
    border-inline-start: 0;
    border-top: 3px dashed #0B1B2F;
  }

  .home-roadmap__lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s5); }
  .home-roadmap__lists > .home-roadmap--dev { padding-inline-start: var(--s5); border-inline-start: 2px solid #0B1B2F; margin-inline-start: calc(-1 * var(--s5) / 2); }
}

@media (min-width: 1024px) {
  .home-roadmap__icon { width: 96px; height: 96px; }
  .home-roadmap__stop + .home-roadmap__stop::before,
  .home-roadmap__group + .home-roadmap__group .home-roadmap__stop:first-child::before { top: 46px; }
}

/* ==== end of the home page's components ================================= */

/* The top of a large screen (see .masthead above): last, so
 * it overrides the rules it changes. */
@media screen and (min-width: 1200px) and (min-height: 700px) {
  :root { --masthead-h: 86px; }
  :root:has(.masthead > .subnav) { --masthead-h: 147px; }
  .masthead { display: block; position: sticky; top: 0; z-index: 20; }
  html { scroll-padding-top: var(--masthead-h); }
  .sidenav { top: calc(var(--masthead-h) + var(--s4)); }
}
@media screen and (min-width: 1440px) and (min-height: 700px) {
  :root { --masthead-h: 88px; }
  :root:has(.masthead > .subnav) { --masthead-h: 149px; }
}

/* Spacing and alignment classes for page content.
 * Margin: m (all sides), mt, mb, ml, mr. Padding: p, pt, pb, pl, pr. Each
 * in sizes 0, 1, 2 and 3 (0, --s3, --s5, --s7). Left and right are the
 * start and end of the line, so they swap sides on a right-to-left page.
 * Within each property the all-sides classes come first, so a side class
 * wins over an all-sides one on the same element, whatever their order in
 * the class attribute. Last in the file, so a class wins over a component
 * rule of one class. */
.m-0 { margin: 0; }
.m-1 { margin: var(--s3); }
.m-2 { margin: var(--s5); }
.m-3 { margin: var(--s7); }
.mt-0 { margin-block-start: 0; }
.mt-1 { margin-block-start: var(--s3); }
.mt-2 { margin-block-start: var(--s5); }
.mt-3 { margin-block-start: var(--s7); }
.mb-0 { margin-block-end: 0; }
.mb-1 { margin-block-end: var(--s3); }
.mb-2 { margin-block-end: var(--s5); }
.mb-3 { margin-block-end: var(--s7); }
.ml-0 { margin-inline-start: 0; }
.ml-1 { margin-inline-start: var(--s3); }
.ml-2 { margin-inline-start: var(--s5); }
.ml-3 { margin-inline-start: var(--s7); }
.mr-0 { margin-inline-end: 0; }
.mr-1 { margin-inline-end: var(--s3); }
.mr-2 { margin-inline-end: var(--s5); }
.mr-3 { margin-inline-end: var(--s7); }
.p-0 { padding: 0; }
.p-1 { padding: var(--s3); }
.p-2 { padding: var(--s5); }
.p-3 { padding: var(--s7); }
.pt-0 { padding-block-start: 0; }
.pt-1 { padding-block-start: var(--s3); }
.pt-2 { padding-block-start: var(--s5); }
.pt-3 { padding-block-start: var(--s7); }
.pb-0 { padding-block-end: 0; }
.pb-1 { padding-block-end: var(--s3); }
.pb-2 { padding-block-end: var(--s5); }
.pb-3 { padding-block-end: var(--s7); }
.pl-0 { padding-inline-start: 0; }
.pl-1 { padding-inline-start: var(--s3); }
.pl-2 { padding-inline-start: var(--s5); }
.pl-3 { padding-inline-start: var(--s7); }
.pr-0 { padding-inline-end: 0; }
.pr-1 { padding-inline-end: var(--s3); }
.pr-2 { padding-inline-end: var(--s5); }
.pr-3 { padding-inline-end: var(--s7); }

/* Text alignment: start and end of the line, like the spacing above. */
.text-start  { text-align: start; }
.text-centre { text-align: center; }
.text-end    { text-align: end; }
