/* SR deal portal, on the SyndicateRoom Design System (claude.ai artifact
   "SyndicateRoom Design System", tokens.json + components/bundle.css).

   The rules it follows: exact Figma colours; coral only for things you can
   click (and error states); Spinwerad for the one headline per view, Open
   Sans for everything else (Light 300 for body and section titles); square
   cards and panels, pill buttons, tags and fields; flat (no gradients, no
   shadows, no left-border cards); borders only on form controls; focus is a
   2px white gap then a 2px ink ring. Status is never colour alone: every
   status carries a word or a mark.

   The system is drawn for web pages at 1170px. This is a working tool, so the
   type scale is the system's, one step smaller, and section titles sit
   left-aligned over their content. */

@font-face {
  font-family: spinwerad;
  src: url("fonts/spinwerad.ttf") format("truetype");  /* SIL OFL, fonts/spinwerad-OFL.txt */
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour (tokens.json) */
  --purple: #544998;
  --yellow: #fdc549;
  --coral: #ff6b5c;
  --coral-hover: #d63d2d;      /* 4.6:1 on white: the coral for small text */
  --blue: #629fc1;
  --blue-deep: #3e6987;
  --ink: #000000;
  --ink-muted: #6b6b6b;
  --white: #ffffff;
  --mist: #edf1f4;
  --blue-grey: #d8e1e8;
  --night: #1a1a1f;
  --line: #c4c4c4;
  --line-soft: #d9d9d9;
  --rule-cool: #d2d8dc;
  --fund-purple-rule: #2c2174;
  --fund-purple-label: #ada2f3;
  /* tints for status grounds (the system has none: mixes of its colours on white) */
  --purple-tint: #eceaf4;
  --yellow-tint: #fef3d8;
  --coral-tint: #ffe9e6;
  --blue-tint: #e6f0f6;

  /* type */
  --font-display: spinwerad, Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* size, radius */
  --container: 1170px;
  --control: 50px;
  --control-sm: 36px;
  --tag: 30px;
  --tag-sm: 22px;
  --radius-none: 0;
  --radius-check: 3px;
  --radius-field: 20px;
  --radius-pill: 30px;
  --radius-round: 50px;
  --pad-card: 25px;
  --gutter: 30px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 15px/1.5 var(--font-sans); color: var(--ink); background: var(--white); }
b, strong { font-weight: 700; }
a { color: var(--coral-hover); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1 { font: 700 40px/1.2 var(--font-display); color: var(--purple); margin: 0 0 10px; text-wrap: balance; }
h2 { font: 300 26px/1.23 var(--font-sans); color: var(--ink); margin: 0 0 16px; }
h3 { font: 700 16px/1.5 var(--font-sans); color: var(--ink); margin: 20px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-muted); font-size: 13px; }
.lede { font: 300 18px/1.5 var(--font-sans); max-width: 62ch; margin-bottom: 28px; }
.eyebrow { font: 600 12px/1.36 var(--font-sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--purple); margin-bottom: 8px; }
.pre { white-space: pre-wrap; }

a:focus-visible, button:focus-visible, .button:focus-visible, summary:focus-visible,
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible, input[type=file]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
}

/* ---------------------------------------------------------------- menu (NavBar) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 0 32px; min-height: 80px; background: var(--white); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); border-radius: var(--radius-round); }
.brand-logo { width: 48px; height: 48px; display: block; flex: none; }
.brand-name { font: 700 18px/1.5 var(--font-sans); }
.brand-app { font: 600 12px/1.36 var(--font-sans); text-transform: uppercase; color: var(--ink-muted);
             padding-left: 12px; border-left: 1px solid var(--line); }
.top nav { display: flex; align-items: center; gap: 36px; }
.top nav a { font: 300 14px/1.5 var(--font-sans); text-transform: uppercase; color: var(--ink); text-decoration: none;
             padding: 28px 0 25px; border-bottom: 3px solid transparent; }
.top nav a:hover, .top nav a.active { border-bottom-color: var(--yellow); }
.top nav a.active { font-weight: 600; }
.top nav .who { color: var(--ink-muted); font-size: 13px; }

/* Staff side: the purple menu (NavBar tone="purple"). */
body.staff .top { background: var(--purple); }
body.staff .brand, body.staff .brand-name { color: var(--white); }
body.staff .brand-app { color: var(--white); border-left-color: rgba(255, 255, 255, 0.4); }
body.staff .top nav a { color: var(--white); font-weight: 400; }
body.staff .top nav a.active { font-weight: 700; }
body.staff .top nav .who { color: var(--fund-purple-label); }
body.staff .top button.link { color: var(--white); }
body.company .top { border-bottom: 1px solid var(--rule-cool); }

main { max-width: var(--container); margin: 0 auto; padding: 48px 32px 96px; }
body.company main { max-width: 790px; }
.narrow { max-width: 480px; margin: 48px auto 0; }

/* ---------------------------------------------------------------- panels: square, flat, mist */
.panel { background: var(--mist); padding: var(--pad-card); margin: 0 0 var(--gutter); }
.panel.white { background: var(--white); outline: 1px solid var(--rule-cool); outline-offset: -1px; }
.panel.accent-blue { background: var(--blue-tint); }
.section { margin: 0 0 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }

/* ---------------------------------------------------------------- forms (TextField, Checkbox) */
form { margin: 0; }
label { display: block; margin: 0 0 20px; font: 600 12px/1.36 var(--font-sans); color: var(--ink); }
label .hint { display: block; font: 300 13px/1.5 var(--font-sans); color: var(--ink-muted); margin-top: 2px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 300 16px/1.36 var(--font-sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); appearance: none; }
input, select { height: var(--control); padding: 0 24px; border-radius: var(--radius-pill); }
select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6b6b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 22px center; }
textarea { padding: 14px 24px; border-radius: var(--radius-field); resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
label:focus-within { color: var(--blue-deep); }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; padding: 0; border-radius: var(--radius-check); flex: none; cursor: pointer; }
input[type=checkbox]:checked { border-color: var(--coral); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23ff6b5c' stroke-width='2'/%3E%3C/svg%3E") no-repeat center; }
input[type=radio] { width: 20px; height: 20px; margin: 0; padding: 0; border-radius: 50%; flex: none; cursor: pointer; }
input[type=radio]:checked { border: 6px solid var(--coral); }
input[type=date] { padding-right: 16px; }
input[type=file] { height: auto; padding: 10px 16px; border-radius: var(--radius-field); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 20px; }
label.check { display: flex; align-items: center; gap: 15px; font: 300 14px/1.36 var(--font-sans); }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
legend { font: 700 18px/1.5 var(--font-sans); margin-bottom: 16px; padding: 0; }

/* ---------------------------------------------------------------- buttons (Button) */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  height: var(--control); padding: 0 36px; border: 1px solid var(--coral); border-radius: var(--radius-pill);
  background: var(--coral); color: var(--white); font: 400 14px/1.36 var(--font-sans); text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
button:hover, .button:hover { background: var(--coral-hover); border-color: var(--coral-hover); color: var(--white); }
/* outline: the second action on white or mist */
button.secondary, button.danger { background: transparent; border-color: var(--coral); color: var(--coral-hover); }
button.secondary:hover, button.danger:hover { background: transparent; border-color: var(--coral-hover); color: var(--coral-hover); font-weight: 600; }
button.link { height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--coral-hover);
  font: 600 14px/1.5 var(--font-sans); text-transform: none; text-decoration: underline; text-underline-offset: 2px; white-space: normal; }
button.link:hover { background: none; color: var(--ink); }
form.inline { display: inline; }
.full { width: 100%; }
.side button, .item-actions button, .upload button { height: var(--control-sm); padding: 0 20px; }
.side button.link, .item-actions button.link { height: auto; padding: 0; }
@media (prefers-reduced-motion: reduce) { button, .button { transition: none; } }

/* ---------------------------------------------------------------- messages */
.flash { padding: 14px 20px; margin: 0 0 24px; font: 400 14px/1.5 var(--font-sans); background: var(--blue-tint); }
.flash-error { background: var(--coral-tint); }
.flash-error::before { content: "! "; font-weight: 700; color: var(--coral-hover); }
.flash-success { background: var(--purple-tint); }
.flash-warning { background: var(--yellow-tint); }

/* ---------------------------------------------------------------- status (Tag) */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--tag); min-width: 90px;
  padding: 0 14px; border-radius: var(--radius-pill); font: 700 12px/1.36 var(--font-sans); text-transform: uppercase; white-space: nowrap; }
.verdict-pass { background: var(--purple); color: var(--white); }
.verdict-pass::before { content: "\2713"; }
.verdict-fail { background: var(--coral); color: var(--white); }
.verdict-fail::before { content: "\2715"; }
.verdict-incomplete { background: var(--yellow); color: var(--purple); }
.verdict-incomplete::before { content: "?"; }
.verdict-error { background: var(--white); color: var(--coral-hover); box-shadow: inset 0 0 0 1px var(--coral); }
.verdict-error::before { content: "!"; }
.verdict-none { background: var(--mist); color: var(--ink-muted); }
.pill.no-icon::before { content: none; }

.status-chip { display: inline-flex; align-items: center; height: var(--tag-sm); padding: 0 12px; border-radius: var(--radius-pill);
  font: 700 11px/1.36 var(--font-sans); text-transform: uppercase; background: var(--mist); color: var(--ink-muted); }
.status-submitted { background: var(--yellow); color: var(--purple); }
.status-proceeding { background: var(--purple); color: var(--white); }
.status-declined { background: var(--coral-tint); color: var(--coral-hover); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: var(--tag-sm); padding: 0 8px;
  border-radius: var(--radius-pill); background: var(--mist); color: var(--ink-muted); font: 700 12px/1 var(--font-sans);
  margin-left: 10px; vertical-align: middle; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--radius-pill);
  font: 700 10px/1 var(--font-sans); text-transform: uppercase; background: var(--yellow); color: var(--purple); vertical-align: middle; }
.warn-text { color: var(--coral-hover); font-weight: 700; }
.block { display: block; }

/* ---------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font: 300 14px/1.5 var(--font-sans); }
th { text-align: left; font: 600 12px/1.36 var(--font-sans); text-transform: uppercase; color: var(--ink-muted);
  padding: 10px 12px; border-bottom: 1px solid var(--ink); }
td { padding: 14px 12px; border-bottom: 1px solid var(--rule-cool); vertical-align: top; }
tbody tr:hover { background: var(--mist); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-weight: 700; }
tr.inactive td, tr.minor td { color: var(--ink-muted); }
tr.minor td.num { font-weight: 400; }
.company-cell a { font-weight: 700; color: var(--ink); text-decoration: none; }
.company-cell a:hover { color: var(--coral-hover); text-decoration: underline; }
.company-cell .muted { display: block; }
.empty { padding: 28px; text-align: center; color: var(--ink-muted); background: var(--mist); font-size: 14px; }
td form.inline button.link { white-space: nowrap; }

/* ---------------------------------------------------------------- deal page */
.deal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.deal-head .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-muted); font-size: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.side .panel { padding: 22px; }
.side h2 { font: 700 18px/1.5 var(--font-sans); margin-bottom: 12px; }

/* The key figures read like a KeyTerms panel: square, purple, white values. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 28px; background: var(--purple); }
.stat { padding: 18px 20px; border-left: 1px solid var(--fund-purple-rule); }
.stat:first-child { border-left: 0; }
.stat .value { font: 700 22px/1.3 var(--font-sans); color: var(--white); font-variant-numeric: tabular-nums; }
.stat .label { font: 600 12px/1.36 var(--font-sans); color: var(--fund-purple-label); text-transform: uppercase; margin-bottom: 4px; }
.basis { display: inline-block; margin-top: 6px; font: 400 12px/1.36 var(--font-sans); color: var(--white); }

.check-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.check-head h2 { margin: 0; }
.criteria { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--ink); }
.criteria li { display: grid; grid-template-columns: 28px 180px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 13px 4px; border-bottom: 1px solid var(--rule-cool); font-size: 14px; }
.criteria .mark { width: 22px; height: 22px; border-radius: var(--radius-round); display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/1 var(--font-sans); align-self: center; }
.criteria .name { font-weight: 600; }
.c-pass .mark { background: var(--purple); color: var(--white); }
.c-pass .mark::before { content: "\2713"; }
.c-fail .mark, .c-excluded .mark { background: var(--coral); color: var(--white); }
.c-fail .mark::before, .c-excluded .mark::before { content: "\2715"; }
.c-unknown .mark { background: var(--yellow); color: var(--purple); }
.c-unknown .mark::before { content: "?"; }
.c-na .mark { background: var(--mist); color: var(--ink-muted); }
.c-na .mark::before { content: "\2013"; }
.c-na .detail, .c-na .name { color: var(--ink-muted); }

.callout { padding: 16px 20px; margin: 0 0 16px; font-size: 14px; }
.callout h3 { margin: 0 0 8px; font-size: 15px; }
.callout ul { margin: 0; padding-left: 18px; }
.callout li { margin: 4px 0; }
.callout.discrepancy { background: var(--yellow-tint); }
.callout.warn { background: var(--coral-tint); }
.callout.info { background: var(--blue-tint); }

.facts { width: 100%; }
.facts th { width: 40%; text-transform: none; font: 600 13px/1.5 var(--font-sans); color: var(--ink); border-bottom: 1px solid var(--rule-cool);
  padding: 11px 12px 11px 0; vertical-align: top; }
.facts td { padding: 11px 0; }
.decision label { margin-bottom: 14px; }
.decision .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.decision .buttons button { padding: 0 12px; }
.people { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.people li { padding: 10px 0; border-bottom: 1px solid var(--rule-cool); }
.people li:last-child { border-bottom: 0; }
.log { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.log li { padding: 8px 0 8px 16px; position: relative; }
.log li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: var(--radius-round); background: var(--purple); }
.log .when { display: block; color: var(--ink-muted); font-size: 12px; }

/* ---------------------------------------------------------------- company pages */
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none;
  font: 600 12px/1.36 var(--font-sans); text-transform: uppercase; color: var(--ink-muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--line); }
.steps .on, .steps .done { color: var(--purple); }
.steps .dot { width: 24px; height: 24px; border-radius: var(--radius-round); display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist); color: var(--ink-muted); font: 700 12px/1 var(--font-sans); }
.steps .on .dot { background: var(--yellow); color: var(--purple); }
.steps .done .dot { background: var(--purple); color: var(--white); }
.ch-facts { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; margin: 0 0 16px; }
.ch-facts dt { font-weight: 600; color: var(--ink-muted); }
.ch-facts dd { margin: 0; }
.confirm .tick { width: 64px; height: 64px; border-radius: var(--radius-round); background: var(--yellow); color: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; font: 700 28px/1 var(--font-sans); margin-bottom: 20px; }

/* Footer: the night band with the FCA statement. */
footer.legal { background: var(--night); color: var(--white); font: 300 12px/1.5 var(--font-sans); }
footer.legal .legal-inner { max-width: var(--container); margin: 0 auto; padding: 32px; }
body.company footer.legal .legal-inner { max-width: 790px; }
footer.legal a { color: var(--white); }

/* ---------------------------------------------------------------- documents, investments, tracker */
details summary { cursor: pointer; font: 600 14px/1.5 var(--font-sans); color: var(--coral-hover); }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.w-560 { max-width: 560px; }

.items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.item { background: var(--mist); padding: 18px 22px; }
.item-accepted, .item-waived { background: var(--white); outline: 1px solid var(--rule-cool); outline-offset: -1px; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item-head strong { font: 700 16px/1.5 var(--font-sans); }
.item-chip { flex: none; display: inline-flex; align-items: center; height: var(--tag-sm); padding: 0 12px; border-radius: var(--radius-pill);
  font: 700 11px/1 var(--font-sans); text-transform: uppercase; background: var(--white); color: var(--ink-muted); }
.chip-uploaded { background: var(--blue-deep); color: var(--white); }
.chip-accepted { background: var(--purple); color: var(--white); }
.chip-accepted::before { content: "\2713\00a0"; }
.chip-returned { background: var(--coral); color: var(--white); }
.chip-returned::before { content: "!\00a0"; }
.chip-waived { background: var(--mist); }
.files { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.files li { padding: 2px 0; }
.upload, .item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.upload input[type=file] { width: auto; flex: 1 1 240px; margin: 0; }
.item-actions input { flex: 1 1 220px; width: auto; margin: 0; height: var(--control-sm); font-size: 14px; }
.item details { margin-top: 12px; }
.item .callout { margin: 12px 0 0; background: var(--coral-tint); }

.stage { margin: 0 0 24px; }
.stage h3 { margin-top: 20px; }
.tracker-rows { margin-bottom: 10px; }
.tracker-rows li { grid-template-columns: 28px minmax(0, 1fr) 220px; }
.stage-note { display: flex; gap: 12px; align-items: flex-start; }
.stage-note textarea { margin: 0; min-height: 44px; font-size: 14px; padding: 10px 20px; }
.stage-note button { margin-top: 12px; white-space: nowrap; }

.bar { display: inline-block; vertical-align: middle; width: 80px; height: 10px; border-radius: var(--radius-field); background: var(--mist); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: var(--radius-field); background: var(--purple); }
.w-0 { width: 0; } .w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-100 { width: 100%; }

table.grid { font-size: 13px; }
table.grid th, table.grid td { padding: 9px 12px; white-space: nowrap; }
table.grid thead th a { color: var(--ink); text-decoration: none; text-transform: none; font-weight: 700; font-size: 13px; }
table.grid thead th a:hover { color: var(--coral-hover); }
table.grid .row-head { position: sticky; left: 0; background: var(--white); text-transform: none;
  font: 600 13px/1.4 var(--font-sans); color: var(--ink); min-width: 260px; white-space: normal; }
table.grid .stage-row th { background: var(--mist); color: var(--purple); font-size: 12px; border-bottom: 0; }
table.grid .cell { text-align: center; font-weight: 700; }
table.grid .cell.yes { color: var(--white); background: var(--purple); }
table.grid .cell.no { color: var(--line); }
table.grid .note-row td { white-space: pre-wrap; min-width: 160px; max-width: 260px; font-size: 12px; }

/* ---------------------------------------------------------------- legal checklist */
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-bottom: 24px; }
.summary-grid .panel { margin: 0; }
.summary-grid .ch-facts { grid-template-columns: 90px minmax(0, 1fr); }
.summary-grid h2 { font: 700 18px/1.5 var(--font-sans); }
table.checklist td.q { width: 30%; font-weight: 600; }
table.checklist td:nth-child(2) { width: 120px; }
table.checklist td { font-size: 13px; }
.ans { display: inline-flex; align-items: center; height: var(--tag-sm); padding: 0 10px; border-radius: var(--radius-pill);
  font: 700 11px/1 var(--font-sans); white-space: nowrap; }
.ans-y { background: var(--purple); color: var(--white); }
.ans-n { background: var(--coral); color: var(--white); }
.ans-nok { background: var(--yellow); color: var(--purple); }
.ans-na { background: var(--mist); color: var(--ink-muted); }
.ans-unknown { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.flags { margin: 0; padding-left: 20px; font-size: 14px; }
.flags li { margin-bottom: 12px; }

/* ---------------------------------------------------------------- the round form */
.form-block { padding: 32px 0 8px; border-top: 1px solid var(--rule-cool); }
.form-block:first-of-type { border-top: 0; padding-top: 8px; }
.form-title { display: flex; align-items: center; gap: 12px; font: 300 24px/1.3 var(--font-sans); margin: 0 0 24px; }
.form-title .dot { width: 30px; height: 30px; border-radius: var(--radius-round); display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--purple); font: 700 14px/1 var(--font-sans); flex: none; }
.form-sub { font: 700 15px/1.5 var(--font-sans); margin: 8px 0 14px; }
.grid-3-even { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.grid-2, .grid-3-even { align-items: start; }
label .hint { margin-top: 6px; }
.hint.group-hint { display: block; font: 300 13px/1.5 var(--font-sans); color: var(--ink-muted); margin: -6px 0 18px; max-width: 70ch; }
.optional { font-weight: 300; color: var(--ink-muted); }
.money { position: relative; display: block; margin-top: 6px; }
.money::before { content: "£"; position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  font: 300 16px/1 var(--font-sans); color: var(--ink-muted); pointer-events: none; }
.money input { margin-top: 0; padding-left: 40px; }
input.invalid, textarea.invalid { border-color: var(--coral); }
.field-error { display: block; margin-top: 6px; font: 600 13px/1.5 var(--font-sans); color: var(--coral-hover); }
.field-error::before { content: "! "; }
.error-summary { background: var(--coral-tint); padding: 20px 24px; margin: 0 0 32px; }
.error-summary h2 { font: 700 16px/1.5 var(--font-sans); margin: 0 0 8px; }
.error-summary ul { margin: 0; padding-left: 18px; font-size: 14px; }
.error-summary li { margin: 4px 0; }
fieldset.choice-group { margin: 8px 0 28px; }
fieldset.choice-group legend { font: 600 12px/1.36 var(--font-sans); margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
label.choice { display: inline-flex; align-items: center; gap: 12px; margin: 0; height: var(--control); padding: 0 22px 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); font: 300 15px/1.36 var(--font-sans); cursor: pointer; background: var(--white); }
label.choice:hover { border-color: var(--ink-muted); }
label.choice:has(input:checked) { border-color: var(--coral); }
.round-form label.check { margin: 0 0 28px; }

/* ---------------------------------------------------------------- the documents page: tracker + sections */
body.company.wide main, body.company.wide footer.legal .legal-inner { max-width: 1100px; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-nav { position: sticky; top: 24px; }
.progress-card { background: var(--mist); padding: 20px 22px; margin-bottom: 16px; }
.progress-card .eyebrow { margin-bottom: 4px; }
.progress-count { font: 300 15px/1.5 var(--font-sans); margin: 0 0 10px; }
.progress-count strong { font: 700 26px/1 var(--font-sans); color: var(--purple); }
.progress { display: block; height: 10px; border-radius: var(--radius-field); background: var(--white); overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: var(--radius-field); background: var(--purple); }
.doc-sections { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--rule-cool); }
.doc-sections li { border-bottom: 1px solid var(--rule-cool); }
.doc-sections a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 4px; color: var(--ink); text-decoration: none; font: 400 14px/1.4 var(--font-sans); }
.doc-sections a:hover .nav-label { color: var(--coral-hover); text-decoration: underline; }
.nav-mark { width: 24px; height: 24px; border-radius: var(--radius-round); display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist); color: var(--ink-muted); font: 700 12px/1 var(--font-sans); }
.doc-sections .complete .nav-mark { background: var(--purple); color: var(--white); }
.nav-count { font: 600 12px/1 var(--font-sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.doc-sections .complete .nav-count { color: var(--purple); }
.doc-main > .section { scroll-margin-top: 24px; }
.item { scroll-margin-top: 24px; }
.item-not_applicable { background: var(--white); outline: 1px solid var(--rule-cool); outline-offset: -1px; }
.chip-not_applicable { background: var(--mist); }
details.na summary { font-weight: 400; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- identity checks, by the company */
form.na { margin-top: 10px; }
form.na button.link { font-weight: 400; font-size: 13px; }
.add-people { margin-top: 16px; }
.add-people h3 { margin-top: 0; }
.pick-list { list-style: none; padding: 0; margin: 12px 0 16px; }
.pick-list li { padding: 10px 0; border-bottom: 1px solid var(--rule-cool); }
.pick-list li:last-child { border-bottom: 0; }
.pick-list label.check { margin: 0; align-items: flex-start; }
.pick-list label.check input { margin-top: 2px; }
.item-actions a.button { height: var(--control-sm); padding: 0 20px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .layout, .summary-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-layout { gap: 8px; }
  .doc-nav { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--fund-purple-rule); }
}
@media (max-width: 640px) {
  .top { padding: 12px 16px 0; min-height: 0; flex-wrap: wrap; gap: 4px 16px; }
  .brand { padding-bottom: 8px; }
  .brand-name { font-size: 16px; }
  .brand-logo { width: 36px; height: 36px; }
  .top nav { width: 100%; gap: 20px; overflow-x: auto; }
  .top nav a { padding: 8px 0 10px; white-space: nowrap; font-size: 13px; }
  .top nav .who { display: none; }
  .top nav form.inline { margin-left: auto; white-space: nowrap; }
  .brand-app { display: none; }
  .hide-sm { display: none; }
  main { padding: 32px 16px 64px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .grid-2, .grid-3, .grid-3-even { grid-template-columns: 1fr; }
  .criteria li, .tracker-rows li { grid-template-columns: 28px minmax(0, 1fr); }
  .criteria .detail, .tracker-rows .detail { grid-column: 2; }
  .item-head { flex-direction: column; }
  .deal-head { flex-direction: column; }
  .ch-facts { grid-template-columns: 1fr; }
  footer.legal .legal-inner { padding: 24px 16px 32px; }
}

/* The hidden attribute must win over display rules (the address finder relies on it). */
[hidden] { display: none !important; }
.address-finder { margin-bottom: 8px; }

/* Investments read from the bank statements */
.pick-list li.suggestion { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.receipts-note textarea { width: 100%; }
.receipts-note button { margin-top: 10px; }
.files.reads li { padding: 4px 0; }
#receipts h4 { margin: 0 0 4px; font-size: 15px; }

/* The application form */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.choices.stacked { flex-direction: column; align-items: flex-start; }
.angel-row { display: grid; grid-template-columns: 2fr 1.2fr 1.4fr; gap: 12px; margin-bottom: 4px; }
.angels .add-angel { margin: 6px 0 4px; }
.apply-form .knockout { margin-top: 4px; }
.apply-form .cf-turnstile { margin: 0 0 16px; }
ol.criteria li { margin: 6px 0; }
@media (max-width: 640px) { .angel-row { grid-template-columns: 1fr; padding-bottom: 12px; border-bottom: 1px solid var(--rule-cool); } }
.prose { white-space: pre-line; }

/* Application form, after review */
ol.criteria-list { padding-left: 22px; margin: 16px 0 24px; }
ol.criteria-list li { margin: 10px 0; }
.narrow.wide-text { max-width: 640px; }
.choices.stacked .choice { width: 100%; max-width: 520px; }
.apply-form input[type="file"] { height: auto; padding: 10px 0; border: 0; border-radius: 0; background: none; }
.angel-row + .angel-row .row-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.angel-row + .angel-row { margin-top: 8px; }
@media (max-width: 640px) {
  .angel-row + .angel-row .row-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}
