/* oci-record.css: the Record, one system for every surface of ocintelligence.co.uk.
   APPROVED by DH 27 Nov 2026 (design/RECORD-EVERYWHERE-2026-11-28.md); promoted from design/record/oci-record.css
   in session 1 (the public front). Load it as /oci-platform/oci-record.css?v=<stamp> and bump the stamp in every
   page that loads it whenever this file changes. A page's own <style> holds only what this sheet does not cover.
   Tokens are the Record as approved 26-27 Aug 2026 (palette, C2 type pairing, hero ladder). Banned on navy:
   #93A5CC, #BCC9E4, #E2E8F4. One font link loads all three families:
   https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Bitter:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap */

:root {
  /* surfaces */
  --page: #F4F5F2;  --card: #FFFFFF;  --rule: #E2E5DF;  --well: #EEF0EC;
  /* brand */
  --navy: #0a2463;  --navy2: #1d3d8f;  --gold: #F0BC57;  --goldink: #8a6d1e;
  /* text on porcelain and white */
  --ink: #22272B;  --muted: #5d656b;
  /* text on navy: the hero ladder */
  --h-name: #FFFFFF;  --h-prose: #EDF1F8;  --h-second: #C7D1E4;  --h-label: #AAB6CE;
  --h-rule: rgba(199,209,228,.25);
  /* the record: four colours, one meaning each, everywhere */
  --r1: #0a2463;   /* tied to one published contract */
  --r2: #1d3d8f;   /* inside published contracts, several running at once */
  --r3: #6b86c4;   /* through a framework it is named on, no call-off notice */
  --r4: #c9a84c;   /* no published contract behind it */
  /* the year chart */
  --c-awarded: #D5DCEA;  --c-paid: #0a2463;
  /* movement */
  --up: #1f7a4d;  --down: #9a3412;
  /* type */
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;   /* names, numbers, headings, UI */
  --serif: 'Bitter', Georgia, serif;                     /* the written voice only: ledes, sentences that explain */
  --mono: 'IBM Plex Mono', ui-monospace, monospace;      /* identifiers and dates in feeds */
  /* scale: one headline number per screen (--t-hero), everything else steps down */
  --t-hero: 64px;  --t-h1: 38px;  --t-h2: 22px;  --t-h3: 17px;  --t-stat: 22px;  --t-lede: 21px;  --t-body: 16px;  --t-small: 13.5px;  --t-label: 11px;
  /* shape */
  --r-card: 16px;  --r-ctl: 999px;  --wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 var(--t-body)/1.5 var(--sans); }
/* tabular numerals only where figures stack in columns: in Schibsted Grotesk they widen commas and points */
table.t { font-variant-numeric: tabular-nums; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy2); text-decoration: underline; }
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.015em; margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.in { max-width: var(--wide); margin: 0 auto; padding: 0 28px; }

/* ---------- top bar: identical on every page, signed in or out ---------- */
.top { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.top .in { display: flex; align-items: center; gap: 28px; height: 60px; }
.mark { color: var(--h-name); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.mark span { color: var(--gold); }
.mark:hover { color: var(--h-name); text-decoration: none; }
.mark small { font: 400 italic 13px var(--serif); color: var(--h-second); margin-left: 10px; letter-spacing: 0; }
.top nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.top nav a { color: var(--h-second); font-size: 14px; font-weight: 500; }
.top nav a:hover { color: var(--h-name); text-decoration: none; }
.top nav a.on { color: var(--h-name); }
.top nav .signin { color: var(--h-name); border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-ctl); padding: 6px 14px; }
.plan { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--gold); color: var(--navy); }

/* ---------- hero: navy band, the ladder, one headline number ---------- */
.hero { background: var(--navy); color: var(--h-prose); }
.hero .in { padding-top: 26px; padding-bottom: 0; }
.hero.pad .in { padding-bottom: 40px; }
.crumb { font-size: 13px; color: var(--h-second); }
.crumb a { color: var(--h-second); }
.crumb span { margin: 0 8px; opacity: .7; }
.hero h1 { color: var(--h-name); font-weight: 800; font-size: var(--t-h1); line-height: 1.1; margin: 14px 0 6px; }
.hero h1.display { font-weight: 700; font-size: 56px; line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 0; }
.hero h1.display em { font-style: normal; color: var(--gold); }
.idline { display: flex; align-items: center; gap: 16px; }
.mono-tile { width: 52px; height: 52px; border-radius: 10px; background: var(--navy2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; flex: none; }
.ident { color: var(--h-second); font-size: 14px; }
.ident code { color: var(--gold); }
.ident b { color: var(--h-name); font-weight: 600; }
.hero .lede { font: 400 var(--t-lede)/1.45 var(--serif); color: var(--h-prose); margin: 24px 0 0; max-width: 760px; }
.hero .lede b { color: var(--gold); font-weight: 600; }
/* the one large number on the screen: on navy it is gold, on white it is navy */
.big { display: block; font: 800 var(--t-hero)/1 var(--sans); letter-spacing: -.03em; color: var(--gold); margin-bottom: 10px; }
.card .big { color: var(--navy); font-size: 56px; }
.hero-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
/* the stat band: quiet, rounded figures, labels in the smallest rung of the ladder */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0,1fr)); margin-top: 28px; border-top: 1px solid var(--h-rule); }
.stat { padding: 14px 18px 18px 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--h-rule); }
.stat .lab { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--h-label); font-weight: 600; }
.stat .val { font-size: var(--t-stat); font-weight: 700; color: var(--h-name); margin-top: 2px; }
.stat .val.g { color: var(--gold); }
.stat .sub { font-size: 12.5px; color: var(--h-second); }

/* tabs sit on the hero's foot */
.tabs { display: flex; gap: 2px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 13px 18px; font-size: 14.5px; font-weight: 700; color: var(--h-second); white-space: nowrap; }
.tabs a span { font-weight: 500; color: var(--h-label); margin-left: 6px; font-size: 12.5px; }
.tabs a:hover { color: var(--h-name); text-decoration: none; }
.tabs a.on { background: var(--page); color: var(--navy); border-radius: 10px 10px 0 0; }
.tabs a.on span { color: var(--muted); }
.tabs .gap { flex: 1; }

/* ---------- body ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 28px 28px 56px; display: grid; gap: 20px; }
.tlede { font: 400 18px/1.55 var(--serif); color: var(--ink); margin: 0; max-width: 72ch; }
.tlede b { color: var(--goldink); font-weight: 600; }
.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.cols.even { grid-template-columns: 1fr 1fr; }
.cols.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 22px 24px; }
.card h2 { font-size: var(--t-h3); font-weight: 700; margin: 0 0 4px; }
.card .meta { font-size: var(--t-small); color: var(--muted); }
.card .intro { font: 400 15px/1.5 var(--serif); color: var(--muted); margin: 0 0 14px; }
.card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.card-head .meta { margin-left: auto; }
.eyebrow { font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--navy2); }
.eyebrow.ok { color: var(--up); } .eyebrow.warn { color: var(--down); }
.sec-title { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.15; margin: 0; }
.sec-sub { font: 400 17px/1.55 var(--serif); color: var(--muted); margin: 8px 0 0; max-width: 62ch; }

/* buttons */
.btn { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 15px; padding: 12px 22px; border-radius: var(--r-ctl); border: 0; }
.btn:hover { text-decoration: none; color: var(--navy); filter: brightness(1.04); }
.btn.ghost { background: transparent; color: var(--h-name); border: 1px solid rgba(255,255,255,.4); font-weight: 600; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.sm { font-size: 13.5px; padding: 8px 15px; }

/* search */
.search { display: flex; gap: 10px; }
.search input { flex: 1; font: 400 16px var(--sans); padding: 13px 18px; border-radius: var(--r-ctl); border: 1px solid var(--rule); background: #fff; color: var(--ink); }

/* ---------- THE SIGNATURE: against the public record ----------
   One bar, four colours, one meaning each. It sits on white only (the navy segment vanishes on the hero).
   Segment widths are shares of the money the engine has read; money it has not read is stated in words
   under the bar, never coloured in. Labels print inside a segment only when it is wide enough (> 9%). */
.rb { display: flex; height: 34px; border-radius: 6px; overflow: hidden; margin: 14px 0 12px; background: var(--well); }
.rb > i { display: flex; align-items: center; justify-content: center; font: 700 12.5px/1 var(--sans); font-style: normal; color: #fff; white-space: nowrap; overflow: hidden; }
.rb .s1 { background: var(--r1); } .rb .s2 { background: var(--r2); } .rb .s3 { background: var(--r3); } .rb .s4 { background: var(--r4); color: var(--ink); }
.rb.slim { height: 18px; margin: 10px 0; } .rb.slim > i { font-size: 0; }
.rb-leg { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.rb-leg div { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.rb-leg div::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--k); }
.rb-leg b { display: block; font: 700 17px/1.3 var(--sans); color: var(--ink); margin-top: 2px; }
.rb-leg .zero b { color: var(--muted); font-weight: 500; }
.rb-note { font-size: var(--t-small); color: var(--muted); margin: 12px 0 0; }
.rb-note b { color: var(--ink); }

/* ---------- the one chart: paid against awarded, by year ----------
   Two columns a year: awarded (pale, at award, before VAT) and paid (navy, in the year paid, with VAT).
   Heights are a share of --max set on .yc. Values print under the axis for paid, on hover for both. */
.yc { position: relative; height: 200px; margin: 18px 0 0; display: grid; grid-template-columns: repeat(var(--years, 9), minmax(0,1fr)); gap: 10px; align-items: end; padding-left: 38px; }
.yc::before { content: ''; position: absolute; left: 38px; right: 0; bottom: 0; border-top: 1px solid #C9CEC6; }
.yc .grid { position: absolute; left: 38px; right: 0; border-top: 1px dashed var(--rule); font-size: 11px; color: var(--muted); }
.yc .grid span { position: absolute; left: -38px; top: -8px; width: 32px; text-align: right; }
.yc .yr { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.yc .yr i { display: block; width: 42%; max-width: 22px; border-radius: 3px 3px 0 0; min-height: 1px; }
.yc .yr .a { background: var(--c-awarded); }
.yc .yr .p { background: var(--c-paid); }
.yc-x { display: grid; grid-template-columns: repeat(var(--years, 9), minmax(0,1fr)); gap: 10px; padding-left: 38px; margin-top: 6px; text-align: center; }
.yc-x div { font-size: 12px; color: var(--muted); line-height: 1.3; }
.yc-x b { display: block; font-size: 11.5px; color: var(--ink); font-weight: 700; white-space: nowrap; letter-spacing: -.01em; }
.yc-key { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.yc-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--k); }
.yc-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- quieter pieces ---------- */
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.45; }
.tile .eyebrow { margin-bottom: 6px; }
.tile p { margin: 0 0 8px; }
.tile a.go { font-weight: 700; font-size: 13.5px; }
.door { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; color: var(--ink); }
.door:hover { border-color: var(--navy2); text-decoration: none; color: var(--ink); }
.door b { display: block; font-size: 14.5px; color: var(--navy); }
.door span { font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-ctl); background: #F1F3F8; color: var(--navy); border: 1px solid #DCE2EE; }
.chip.dash { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.hero .chip { background: transparent; border-color: rgba(199,209,228,.45); color: var(--h-name); }
.hero .chip.dash { color: var(--h-second); }
.src { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); border: 1px dashed #C9CEC6; border-radius: 6px; padding: 2px 7px; }

/* tables: the only place pennies appear */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
table.t td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.t .r { text-align: right; white-space: nowrap; }

/* a list row with a share bar (who pays) */
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.row:first-of-type { border-top: 0; }
.row .nm { font-weight: 600; font-size: 15px; }
.row .fam { font-size: 12px; color: var(--muted); }
.row .amt { font-weight: 700; text-align: right; grid-row: 1 / span 2; grid-column: 2; align-self: center; }

/* the product shown on the front page: a white panel lifted over the hero's foot */
.lift { margin-top: -120px; position: relative; box-shadow: 0 24px 60px -24px rgba(10,36,99,.35); }
.shot-cap { font-size: var(--t-small); color: var(--muted); text-align: center; margin: 12px 0 0; }

/* footer */
footer.foot { border-top: 1px solid var(--rule); }
footer.foot .in { padding-top: 22px; padding-bottom: 40px; font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  :root { --t-hero: 48px; --t-h1: 28px; --t-lede: 18px; }
  .hero h1.display { font-size: 38px; }
  .top nav a:not(.signin) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--h-rule); }
  .cols, .cols.even, .cols.three, .cols.four { grid-template-columns: 1fr; }
  .rb-leg { grid-template-columns: 1fr 1fr; }
  .yc, .yc-x { gap: 4px; }
  .lift { margin-top: -60px; }
}
