/* compliancemonitoring.co.uk — "The Ruled Record" (brief v2 §8).
   A kept file: one 1280px column, hairlines do the dividing, the product shown as itself.
   Paper, slate ink, navy brand; mono only for references, dates, counts and IDs;
   red, amber and green only as status inside product frames. Motion per brief v2 §7. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jbmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jbmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FFFFFF; --paper-2: #F9FAFB; --paper-3: #F2F4F7;
  --rule: #EAECF0; --rule-2: #D0D5DD;
  --ink: #101828; --ink-2: #344054; --muted: #667085;
  --brand-950: #0B1A2B; --brand-900: #10243A; --brand-800: #16324F; --brand-700: #1F4468; --brand-600: #2B5A86; --brand-100: #DCE8F3; --brand-50: #F0F5FA;
  --status-warn: #DC6803; --status-ok: #079455; --status-bad: #D92D20;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius-frame: 12px; --radius-card: 8px; --radius-control: 6px;
  --container: 1280px; --gutter: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Role tokens: the light world. Dark mode redefines these below. */
  --dot: #2E90FA;
  --wordmark: var(--brand-900);
  --link: var(--brand-700);
  --nav-bg: rgba(255,255,255,.94);
  --btn-bg: var(--brand-900); --btn-bg-hover: var(--brand-800); --btn-bg-active: var(--brand-950); --btn-fg: #FFFFFF;
  --close-bg: var(--brand-50);
  --footer-bg: var(--brand-950); --footer-ink: #C7D2DE; --footer-strong: #FFFFFF; --footer-link: #E6EDF4; --footer-muted: #9FB0C2; --footer-rule: rgba(255,255,255,.14);
  --shadow-frame: 0 1px 2px rgba(16,24,40,.04), 0 24px 48px -32px rgba(16,24,40,.25);
  --shadow-pop: 0 12px 28px -10px rgba(16, 24, 40, .22), 0 2px 6px -2px rgba(16, 24, 40, .08);
  --frame-img-filter: none;
}
/* Dark: the same kept file, read at night. Paper becomes deep navy, ink becomes paper; product frames stay as they are, dimmed slightly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0B1420; --paper-2: #101B2A; --paper-3: #172435;
    --rule: #1E2B3C; --rule-2: #2D3D52;
    --ink: #F2F5F8; --ink-2: #C4CDD9; --muted: #8E9BAE;
    --brand-700: #8DB6DE; --brand-600: #79A7D6; --brand-100: #1E3A59; --brand-50: #12233A;
    --status-warn: #F79009; --status-ok: #17B26A; --status-bad: #F04438;
    --wordmark: #FFFFFF; --link: #8DB6DE;
    --nav-bg: rgba(11,20,32,.92);
    --btn-bg: #DCE8F3; --btn-bg-hover: #FFFFFF; --btn-bg-active: #C2D6EA; --btn-fg: #0B1A2B;
    --close-bg: #0F1D2F;
    --footer-bg: #070E17; --footer-rule: rgba(255,255,255,.10);
    --shadow-frame: 0 1px 2px rgba(0,0,0,.3), 0 24px 48px -28px rgba(0,0,0,.6);
    --shadow-pop: 0 16px 32px -12px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.4);
    --frame-img-filter: brightness(.88) contrast(1.04);
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0B1420; --paper-2: #101B2A; --paper-3: #172435;
    --rule: #1E2B3C; --rule-2: #2D3D52;
    --ink: #F2F5F8; --ink-2: #C4CDD9; --muted: #8E9BAE;
    --brand-700: #8DB6DE; --brand-600: #79A7D6; --brand-100: #1E3A59; --brand-50: #12233A;
    --status-warn: #F79009; --status-ok: #17B26A; --status-bad: #F04438;
    --wordmark: #FFFFFF; --link: #8DB6DE;
    --nav-bg: rgba(11,20,32,.92);
    --btn-bg: #DCE8F3; --btn-bg-hover: #FFFFFF; --btn-bg-active: #C2D6EA; --btn-fg: #0B1A2B;
    --close-bg: #0F1D2F;
    --footer-bg: #070E17; --footer-rule: rgba(255,255,255,.10);
    --shadow-frame: 0 1px 2px rgba(0,0,0,.3), 0 24px 48px -28px rgba(0,0,0,.6);
    --shadow-pop: 0 16px 32px -12px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.4);
    --frame-img-filter: brightness(.88) contrast(1.04);
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
::selection { background: var(--brand-100); color: var(--ink); }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; }
html { scrollbar-color: var(--rule-2) var(--paper-2); }
input, textarea, select { caret-color: var(--brand-700); }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; }
.label { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 500; }
.lede { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 38em; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 12px; border-radius: var(--radius-control); }
.skip:focus { top: 12px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-control); font: 500 16px/24px var(--font-body); padding: 10px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn--primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn--primary:active { background: var(--btn-bg-active); transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn--loading { position: relative; color: transparent !important; }
.btn--loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid var(--btn-fg); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--rule-2); }
.btn--secondary:hover { background: var(--paper-2); }
.btn--xl { padding: 14px 22px; font-size: 18px; line-height: 28px; }
.btn--sm { padding: 6px 12px; font-size: 14px; line-height: 20px; }
.textlink { color: var(--brand-700); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.textlink svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(2px); }

/* Citation chip: the signature */
.ref { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 13px; line-height: 18px; padding: 1px 7px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper-2); color: var(--ink); white-space: nowrap; vertical-align: 1px; font-variant-numeric: tabular-nums slashed-zero; text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.ref:hover, .ref[aria-expanded="true"] { border-color: var(--brand-600); background: var(--brand-50); text-decoration: none; }
.tip { position: absolute; z-index: 60; width: min(440px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); padding: 14px 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); animation: tipin .15s var(--ease); }
@keyframes tipin { from { opacity: 0; } to { opacity: 1; } }
.tip[hidden] { display: none; }
.tip__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; color: var(--ink); }
.tip__type { font-size: 12px; line-height: 16px; color: var(--muted); }
.tip__text { color: var(--ink); max-height: 10em; overflow: auto; padding-right: 4px; }
.tip__foot { margin-top: 10px; font-size: 12px; line-height: 16px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.tag { display: inline-block; font-size: 13px; line-height: 18px; padding: 2px 8px; border-radius: 4px; background: var(--paper-3); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips--lg { margin-top: 12px; }
.cite { font-size: 11px; line-height: 0; margin-left: 1px; }
.cite a { font-family: var(--font-mono); color: var(--muted); padding: 0 2px; }
.cite a:hover { color: var(--brand-700); }

/* Nav */
.nav { position: sticky; top: 0; background: var(--nav-bg); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--rule); z-index: 40; }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.wordmark-link { display: inline-flex; }
.wordmark-link:hover { text-decoration: none; }
.wordmark { font-weight: 600; color: var(--wordmark); font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark--light { color: #FFFFFF; }
/* The signature dot: a dotless i with a coloured dot drawn above it */
.wm-i { position: relative; display: inline-block; }
.wm-i::after { content: ""; position: absolute; left: 50%; top: .2em; width: .27em; height: .27em; margin-left: -.135em; border-radius: 50%; background: var(--dot); }
.theme { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule-2); border-radius: var(--radius-control); background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .2s var(--ease); }
.theme:hover { background: var(--paper-2); color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme__sun { display: none; }
:root[data-theme="dark"] .theme__sun { display: block; }
:root[data-theme="dark"] .theme__moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme__sun { display: block; } :root:not([data-theme="light"]) .theme__moon { display: none; } }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: var(--radius-control); color: var(--ink-2); font: 500 15px/20px var(--font-body); background: none; border: 0; cursor: pointer; }
.nav__link svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.nav__link.is-current, .nav__link[aria-current="page"] { color: var(--brand-700); }
.menu { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); padding: 8px; animation: tipin .15s var(--ease); }
.menu--two { min-width: 460px; }
.menu--two ul { columns: 2; column-gap: 8px; }
.menu ul { list-style: none; padding: 0; }
.menu li { break-inside: avoid; }
.menu a { display: block; padding: 8px 10px; border-radius: var(--radius-control); color: var(--ink); font-size: 15px; line-height: 20px; font-weight: 500; }
.menu a:hover { background: var(--paper-2); text-decoration: none; }
.menu__t { display: block; }
.menu__d { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.menu .menu__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; border-top: 1px solid var(--rule); border-radius: 0; width: 100%; color: var(--brand-700); font-size: 14px; padding-top: 10px; }
.menu__all svg { width: 14px; height: 14px; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--rule-2); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); cursor: pointer; }
.nav__burger svg { width: 20px; height: 20px; }
.msheet { position: fixed; inset: 64px 0 0 0; background: var(--paper); overflow-y: auto; padding-block: 16px 32px; border-top: 1px solid var(--rule); }
.msheet[hidden] { display: none; }
.sheet__group { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sheet__group h2 { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.sheet__group ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sheet__group a { display: block; padding: 8px 0; color: var(--ink); font-weight: 500; }
.msheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
@media (max-width: 1040px) { .nav__links { display: none; } .nav__burger { display: inline-flex; } }
@media (max-width: 420px) { .nav__cta { display: none; } }
body.is-locked { overflow: hidden; }

/* Breadcrumbs */
.crumbs { padding-top: 20px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--rule-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs [aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }

/* Hero and page heads */
.hero { padding-block: 64px 48px; }
.hero__grid, .phead__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 58px; line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 20px; }
.hero .lede, .phead .lede { margin-bottom: 28px; }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.phead { padding-block: 40px 56px; border-bottom: 1px solid var(--rule); }
.phead h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.022em; margin-bottom: 16px; max-width: 18em; }
.phead .lede:last-child { margin-bottom: 0; }
.phead--split h1 { font-size: 44px; }
@media (max-width: 960px) {
  .hero__grid, .phead__grid { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .hero h1 { font-size: 40px; line-height: 1.1; }
  .phead h1, .phead--split h1 { font-size: 36px; line-height: 1.12; }
  .hero { padding-block: 40px 36px; }
  .phead { padding-block: 28px 40px; }
}

/* The one authored moment: the frame settles in, then its caption */
.frame-wrap--hero .frame { animation: settle .9s var(--ease) both; }
.frame-wrap--hero .caption { animation: fade .5s .45s var(--ease) both; }
.phead--split .frame-wrap .frame { animation: settle .7s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(12px) scale(.985); clip-path: inset(0 0 14% 0 round 12px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 12px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Product frame */
.frame-fig { margin: 0; }
.frame { border: 1px solid var(--rule-2); border-radius: var(--radius-frame); background: var(--paper); overflow: hidden; font-size: 14px; line-height: 20px; box-shadow: var(--shadow-frame); }
.frame--img img, .built__thumb img, .panel__media img { filter: var(--frame-img-filter); }
.frame--img img { width: 100%; height: auto; }
.caption { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 12px; max-width: 60em; }
.section .caption { margin-top: 16px; }

/* Strip */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.strip__row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 12px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.strip__row .mono { color: var(--ink); }

/* Sections */
.section { padding-block: 84px; }
.section--tight { padding-block: 48px; }
.section + .section, .phead + .section, .strip + .section { border-top: 1px solid var(--rule); }
.phead + .section { border-top: 0; padding-top: 48px; }
@media (max-width: 860px) { .phead + .section { padding-top: 32px; } }
.section__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.section__head h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; }
.section__head p { color: var(--ink-2); font-size: 18px; line-height: 28px; }
@media (max-width: 860px) { .section__head { grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 28px; } .section { padding-block: 56px; } .section__head h2 { font-size: 28px; } }
.statement { font-size: 24px; line-height: 34px; color: var(--ink); letter-spacing: -0.01em; max-width: 40em; }
@media (max-width: 860px) { .statement { font-size: 20px; line-height: 30px; } }

/* Prose */
.prose { max-width: 70ch; color: var(--ink-2); font-size: 17px; line-height: 28px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 24px; line-height: 32px; margin-top: 40px; letter-spacing: -0.01em; }
.prose h3 { font-size: 18px; line-height: 26px; margin-top: 24px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.prose a { text-decoration: underline; text-decoration-color: var(--rule-2); }
.prose a:hover { text-decoration-color: var(--brand-700); }
.prose a.ref { text-decoration: none; }
.prose--legal { font-size: 16px; line-height: 26px; }
.prose-note { margin-top: 24px; max-width: 70ch; font-size: 17px; line-height: 28px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }

.ticks { list-style: none; padding: 0; border-top: 1px solid var(--rule); max-width: 900px; }
.ticks li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 17px; line-height: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 7px; border-left: 1.5px solid var(--brand-700); border-bottom: 1.5px solid var(--brand-700); transform: rotate(-45deg); }

/* Ruled list */
.ruled { border-top: 1px solid var(--rule); }
.ruled__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); color: inherit; }
.ruled__row:hover { text-decoration: none; }
.ruled__row:hover .ruled__title { color: var(--brand-700); }
.ruled__row:hover svg { transform: translateX(3px); color: var(--brand-700); }
.ruled__title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); transition: color .2s var(--ease); }
.ruled__line { color: var(--ink-2); }
.ruled__row svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); align-self: center; }
@media (max-width: 860px) { .ruled__row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 16px; } .ruled__line { grid-column: 1 / -1; grid-row: 2; } .ruled__title { font-size: 18px; line-height: 26px; } }
.group + .group { margin-top: 48px; }
.group h3 { font-size: 16px; line-height: 24px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }

/* Software panels */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px 32px; }
.panel { color: inherit; display: block; }
.panel:hover { text-decoration: none; }
.panel:hover h3 { color: var(--brand-700); }
.panel__media { aspect-ratio: 16 / 10; border: 1px solid var(--rule-2); border-radius: var(--radius-card); overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.panel__media .frame-fig, .panel__media .frame { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.panel__type { height: 100%; display: flex; align-items: flex-end; padding: 20px; background: repeating-linear-gradient(to bottom, var(--paper-2) 0 27px, var(--rule) 27px 28px); }
.panel__type .mono { color: var(--wordmark); font-size: 15px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 4px; padding: 4px 10px; }
.panel h3 { font-size: 18px; line-height: 26px; transition: color .2s var(--ease); }
.panel p { margin-top: 4px; }
@media (max-width: 960px) { .panels { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .panels { grid-template-columns: minmax(0,1fr); } }

/* Diagram */
.diagram { border: 1px solid var(--rule-2); border-radius: var(--radius-frame); padding: 28px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: center; background: var(--paper-2); }
.diagram__src { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.diagram__src .mono { font-size: 13px; color: var(--muted); }
.diagram__src strong { font-size: 20px; color: var(--wordmark); background: var(--paper); border: 1px solid var(--brand-600); border-radius: var(--radius-card); padding: 12px 16px; }
.diagram__arrow { width: 1px; height: 24px; background: var(--rule-2); margin-left: 16px; }
.diagram__to { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; position: relative; }
.diagram__to span { background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--radius-card); padding: 14px 16px; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .diagram { grid-template-columns: minmax(0,1fr); } }

/* Features (Guardian) */
.features { display: grid; gap: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.feature__text { position: sticky; top: 96px; padding-top: 8px; }
.feature h3 { font-size: 22px; line-height: 30px; margin-bottom: 8px; }
.feature p { font-size: 17px; line-height: 28px; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature:nth-child(even) .feature__text { order: 2; }
@media (max-width: 860px) { .feature, .feature:nth-child(even) { grid-template-columns: minmax(0,1fr); gap: 20px; } .feature:nth-child(even) .feature__text { order: 0; } .feature__text { position: static; } }

/* Detail panels (finding, FinProm) */
.detail { border: 1px solid var(--rule-2); border-radius: var(--radius-frame); overflow: hidden; font-size: 14px; line-height: 20px; background: var(--paper); box-shadow: var(--shadow-frame); }
.tabs { display: flex; border-bottom: 1px solid var(--rule); background: var(--paper-2); padding: 0 8px; overflow-x: auto; }
.tab { padding: 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab--on { color: var(--ink); border-bottom-color: var(--brand-700); }
.detail__cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.detail__col { padding: 20px; min-width: 0; }
.detail__col + .detail__col { border-left: 1px solid var(--rule); }
.detail__h { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 500; }
.sev { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 13px; }
.sev__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-warn); display: inline-block; }
.sev__dot--ok { background: var(--status-ok); }
.finding__title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); margin: 6px 0 10px; }
.banner { margin: 14px 0; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--radius-control); background: var(--paper-2); color: var(--ink); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.banner svg { width: 16px; height: 16px; flex: none; color: var(--status-warn); }
.rows { display: grid; grid-template-columns: max-content minmax(0,1fr); column-gap: 20px; border-top: 1px solid var(--rule); margin: 0; }
.rows dt, .rows dd { padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.rows dt { color: var(--muted); }
.rows dd { color: var(--ink); }
.frame__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.frame__actions .btn { cursor: default; }
.frame__note { margin-left: auto; color: var(--muted); font-size: 12px; line-height: 16px; }
.rule-quote { border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 14px 16px; background: var(--paper-2); color: var(--ink); margin: 0; }
.rule-quote p { margin-top: 8px; }
.rule-quote .meta { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 16px; }
.audit { border-top: 1px solid var(--rule); padding: 14px 20px; display: grid; gap: 6px; }
.audit div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 16px; }
.audit .mono { color: var(--muted); font-size: 12px; }
.captions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; margin-top: 28px; }
.captions h3 { font-size: 16px; line-height: 24px; margin-bottom: 4px; }
.captions p { color: var(--ink-2); font-size: 15px; line-height: 22px; }
.promo { border: 1px dashed var(--rule-2); border-radius: var(--radius-card); padding: 16px; margin-bottom: 14px; color: var(--ink); }
.promo__h { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 4px; }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 12px; }
.checks li { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.checks p { margin-top: 4px; color: var(--ink); }
@media (max-width: 860px) { .detail__cols { grid-template-columns: minmax(0,1fr); } .detail__col + .detail__col { border-left: 0; border-top: 1px solid var(--rule); } .audit div { grid-template-columns: minmax(0,1fr); gap: 2px; } .captions { grid-template-columns: minmax(0,1fr); gap: 20px; } }

/* Answer card (Handbook) */
.answer { margin-top: 32px; border: 1px solid var(--rule-2); border-radius: var(--radius-frame); padding: 24px; display: grid; gap: 16px; max-width: 900px; }
.answer__q p { font-size: 18px; line-height: 28px; color: var(--ink); font-weight: 500; margin-top: 4px; }
.answer__a > p { font-size: 17px; line-height: 28px; color: var(--ink); margin: 4px 0 14px; }
.answer .frame__note { margin-left: 0; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; }
.stats div { padding: 20px 16px 20px 0; }
.stats div + div { border-left: 1px solid var(--rule); padding-left: 20px; }
.stats dt { color: var(--muted); font-size: 14px; line-height: 20px; }
.stats dd { margin: 6px 0 0; font-size: 28px; line-height: 36px; color: var(--ink); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } .stats div + div { border-left: 0; padding-left: 0; } .stats div { border-bottom: 1px solid var(--rule); } }

/* App page facts */
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); font-size: 17px; line-height: 28px; max-width: 64ch; }
@media (max-width: 760px) { .facts > div { grid-template-columns: minmax(0,1fr); gap: 6px; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.pager a { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius-card); color: var(--ink); font-weight: 500; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--brand-600); text-decoration: none; }

/* Built list */
.built { border-top: 1px solid var(--rule); }
.built__row { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.built__thumb { border: 1px solid var(--rule-2); border-radius: var(--radius-card); overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 10; margin: 0; }
.built__thumb .frame { border: 0; border-radius: 0; box-shadow: none; height: 100%; }
.built__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.built__thumb--text { display: flex; align-items: flex-end; padding: 14px; background: repeating-linear-gradient(to bottom, var(--paper-2) 0 23px, var(--rule) 23px 24px); }
.built__thumb--text .mono { font-size: 12px; line-height: 16px; color: var(--wordmark); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 4px; padding: 3px 8px; }
.built__title { font-size: 18px; line-height: 26px; }
.built__title a { color: var(--ink); }
.built__title a:hover { color: var(--brand-700); }
.built__line { color: var(--ink-2); margin-top: 2px; max-width: 64ch; }
.built__year { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .built__row { grid-template-columns: minmax(0,1fr); gap: 12px; } .built__thumb { max-width: 320px; } }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--rule); }
.steps li { padding: 20px 20px 20px 0; }
.steps li + li { border-left: 1px solid var(--rule); padding-left: 20px; }
.steps .mono { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.steps p { color: var(--ink); font-size: 17px; line-height: 26px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0,1fr); } .steps li + li { border-left: 0; padding-left: 0; } .steps li { border-bottom: 1px solid var(--rule); } }

/* Updates */
.update { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: start; position: relative; }
.update__meta { color: var(--muted); font-size: 14px; line-height: 20px; }
.update__meta .mono { color: var(--ink); display: block; }
.update__title { font-size: 18px; line-height: 26px; font-weight: 600; }
.update__title a { color: var(--ink); }
.update__title a::after { content: ""; position: absolute; inset: 0; }
.update:hover .update__title a { color: var(--brand-700); text-decoration: none; }
.update__line { color: var(--ink-2); margin: 4px 0 10px; max-width: 70ch; }
.update__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.update__chips .ref, .update .ref { position: relative; z-index: 1; }
.update > svg { width: 18px; height: 18px; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .update { grid-template-columns: minmax(0,1fr) auto; } .update__meta { grid-column: 1 / -1; } }
.post { padding-block: 40px 72px; }
.post__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 64px; }
.post__head { grid-column: 1 / -1; max-width: 52em; padding-bottom: 32px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.post__head h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.022em; margin: 8px 0 16px; }
.post__meta { color: var(--muted); font-size: 14px; }
.post__meta .mono { color: var(--ink); }
.post__aside { grid-column: 2; grid-row: 2; display: grid; gap: 10px; align-content: start; position: sticky; top: 96px; }
.post__aside .label { margin-top: 8px; }
.post__body { grid-column: 1; grid-row: 2; }
.post__how { color: var(--muted); font-size: 15px; line-height: 24px; border-top: 1px solid var(--rule); padding-top: 16px; }
@media (max-width: 860px) { .post__grid { grid-template-columns: minmax(0,1fr); } .post__aside, .post__body { grid-column: 1; grid-row: auto; position: static; } .post__head h1 { font-size: 32px; } }

/* Sectors line and quotes */
.sectors { font-size: 22px; line-height: 36px; color: var(--ink-2); max-width: 54em; }
.sectors a { color: var(--ink); border-bottom: 1px solid var(--rule-2); }
.sectors a:hover { text-decoration: none; border-bottom-color: var(--brand-700); color: var(--brand-700); }
@media (max-width: 860px) { .sectors { font-size: 19px; line-height: 32px; } }
.quotes { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; }
.quote { margin: 0; }
.quote p { font-size: 22px; line-height: 32px; color: var(--ink); letter-spacing: -0.01em; }
.quote footer { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.quote footer span { color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: minmax(0,1fr); gap: 32px; } .quote p { font-size: 20px; line-height: 30px; } }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 18px; line-height: 26px; }
.faq__item summary svg { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform .2s var(--ease); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item summary:hover h3 { color: var(--brand-700); }
.faq__a { padding: 0 0 20px; max-width: 70ch; font-size: 17px; line-height: 28px; }

/* Sources */
.sources { border-top: 1px solid var(--rule); padding-block: 32px; background: var(--paper-2); }
.sources h2 { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.sources ol { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.sources li { display: flex; gap: 10px; }
.sources .mono { color: var(--muted); min-width: 2ch; }
.sources :target { background: var(--brand-50); }

/* Contact form */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.contact h2 { font-size: 22px; line-height: 30px; margin-bottom: 16px; }
.contact__big { font-size: 24px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact__big + .contact__big { margin-top: 4px; }
.contact__direct p:last-child { margin-top: 20px; }
.form { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--rule-2); border-radius: var(--radius-frame); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { font: 16px/24px var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--radius-control); padding: 10px 14px; width: 100%; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-100); }
.field [aria-invalid="true"] { border-color: var(--status-bad); }
.field__err { color: var(--status-bad); font-size: 14px; line-height: 20px; }
.form__note { font-size: 14px; line-height: 20px; color: var(--muted); }
.form .btn { justify-self: start; }
.form__status { font-size: 15px; color: var(--ink); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0,1fr); gap: 40px; } .form { padding: 20px; } }

/* Close and footer */
.close { background: var(--close-bg); }
.section.close { border-top: 0; }
.close__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.close h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; }
.close p { font-size: 18px; line-height: 28px; }
.close__actions { display: flex; gap: 20px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 860px) { .close__row { grid-template-columns: minmax(0,1fr); } .close__actions { justify-content: flex-start; } .close h2 { font-size: 28px; } }
.footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 56px 32px; font-size: 14px; line-height: 20px; }
.footer a { color: var(--footer-link); }
.footer p { margin-top: 12px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(0,1fr)); gap: 32px; }
.footer h2 { margin: 0 0 12px; color: var(--footer-strong); font-size: 14px; line-height: 20px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--footer-rule); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--footer-muted); }
.footer__bottom .mono { color: var(--footer-ink); font-size: 13px; }
.footer :focus-visible { outline-color: #FFFFFF; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .footer__grid > div:first-child { grid-column: 1 / -1; } }

/* Scroll reveal: fully visible without scripting; with scripting, a single once-only settle */
.js .reveal { opacity: .6; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .frame-wrap--hero .frame, .frame-wrap--hero .caption, .phead--split .frame-wrap .frame { animation: none; }
  .btn, .ruled__title, .ref, .textlink svg, .ruled__row svg, .nav__link svg, .faq__item summary svg { transition: none; }
  .tip, .menu { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
@media print { .nav, .footer, .close, .tip { display: none; } }

/* Honeypot for the contact form: off-screen rather than display:none, so bots still fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .btn--loading::after { animation: none; } .theme { transition: none; } }

/* Hero video: real Guardian screens, muted, looping, with a pause control (WCAG 2.2.2) */
.frame--video { position: relative; aspect-ratio: 16 / 9; }
.frame--video video { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--frame-img-filter); }
.vid-toggle { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-2); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); cursor: pointer; opacity: .92; transition: opacity .2s var(--ease); }
.vid-toggle:hover { opacity: 1; }
.vid-toggle svg { width: 16px; height: 16px; }
.vid-pause { display: none; }
.vid-toggle[aria-pressed="true"] .vid-play { display: none; }
.vid-toggle[aria-pressed="true"] .vid-pause { display: block; }

/* Code blocks (agents page) */
.code { margin: 0 0 16px; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-card); overflow-x: auto; }
.code code { font-family: var(--font-mono); font-size: 13.5px; line-height: 21px; color: var(--ink); white-space: pre; }
.facts dt a.mono { font-size: 14px; }
.facts dt.mono { color: var(--ink); }
.agents-lead { margin: 0 0 24px; }

/* Voice agents: phone screens, shown in the theme that matches the site */
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-light { display: none; } :root:not([data-theme="light"]) .shot-dark { display: block; } }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
/* Voice agents hero: two phones on one stage. --t runs 0 (VoiceApp in front) to 1 (Collect+ in front); site.js sets it from the pointer. */
.vc { --t: 0; max-width: 560px; margin-inline: auto; }
.vc__stage { display: grid; perspective: 1400px; overflow: hidden; padding: 8px 0 28px; cursor: ew-resize; }
.vc__item { grid-area: 1 / 1; justify-self: center; width: min(300px, 60%); margin: 0; --dir: -1; --d: var(--t);
  transform: translateX(calc(var(--d) * var(--dir) * 48%)) scale(calc(1 - var(--d) * .16)) rotateY(calc(var(--d) * var(--dir) * -12deg));
  z-index: 2; will-change: transform; }
.vc__item .phone__screen { position: relative; }
.vc__item .phone__screen::after { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: calc(var(--d) * .55); pointer-events: none; }
.vc__item[data-i="1"] { --dir: 1; --d: calc(1 - var(--t)); z-index: 1; }
.vc[data-front="1"] .vc__item[data-i="0"] { z-index: 1; }
.vc[data-front="1"] .vc__item[data-i="1"] { z-index: 2; }
.vc__item .phone__screen { aspect-ratio: 600 / 1095; }
.vc__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
.vc__foot .caption { margin: 0; flex-basis: 100%; }
.vc__tabs { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 999px; padding: 3px; gap: 2px; }
.vc__tab { font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.vc__tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.phone { margin: 0; }
.phone__screen { border: 1px solid var(--rule-2); border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-frame); aspect-ratio: 600 / 1100; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .caption { margin-top: 12px; }
.voice { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: auto 1fr; gap: 24px 48px; align-items: start; padding-block: 8px 48px; }
.voice + .voice { border-top: 1px solid var(--rule); padding-top: 48px; }
.voice .prose h3 { margin-top: 0; }
.voice .phone { grid-column: 2; grid-row: 1 / span 2; max-width: 300px; }
.voice__list { grid-column: 1; }
@media (max-width: 860px) { .voice { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .voice .phone { grid-column: 1; grid-row: auto; max-width: 260px; } .voice__list { grid-column: 1; } }
.minis { height: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 14px; padding-top: 18px; background: var(--paper-2); overflow: hidden; }
.minis img { width: 34%; height: auto; border: 1px solid var(--rule-2); border-radius: 14px; box-shadow: var(--shadow-frame); }
.built__thumb .minis img { border-radius: 10px; }
