/* Kestrel. The palette is the bird's: a slate head (ink), a rufous back (the one accent) and cream underparts (the page).
   Red and amber are meaning, never decoration. Headings are Source Serif 4 and text is Inter, both self-hosted (SIL OFL). */
@font-face { font-family: "Kestrel Sans"; src: url("../fonts/inter.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F8F8F7;
  --paper-deep: #EFEFED;
  --card: #FFFFFF;
  --ink: #1B2129;
  --ink-2: #2B3541;
  --slate: #3C4F63;
  --muted: #5C636D;
  --line: #E4E4E1;
  --line-strong: #CCCCC8;
  --rufous: #B4572A;
  --rufous-dark: #8F4220;
  --rufous-soft: #F6E9E2;
  --rufous-line: #E8D3C7;
  --rufous-light: #E9A27C;
  --cream: #F1F1EF;
  --red: #A82A2A;
  --red-soft: #F8E4E2;
  --amber: #965F06;
  --amber-soft: #F8EDD6;
  --amber-ink: #5B3A07;
  --green: #2D6A45;
  --green-soft: #E2EFE5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 33, 41, .05), 0 4px 16px rgba(27, 33, 41, .05);
  --serif: var(--sans); /* headings in the sans too (Lee, 13 Nov: serif on paper reads as a generated site) */
  --sans: "Kestrel Sans", Inter, -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
body { background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--rufous-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rufous); }
:focus-visible { outline: 2px solid var(--rufous); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 8px 0 10px; }
h3 { font-size: 19px; margin: 24px 0 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow > * { max-width: 760px; }
.page { padding-top: 32px; padding-bottom: 64px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin: 0 0 18px; }
.meta { color: var(--muted); font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 650; margin: 14px 0 6px; }
.label:first-child { margin-top: 0; }
.eyebrow { color: var(--rufous); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); }

/* section headings: a numbered step or a plain small heading */
h2.section { display: flex; align-items: center; gap: 12px; font-size: 24px; margin: 44px 0 14px; }
h2.section .step { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cream); font: 700 14px/30px var(--sans); text-align: center; }
h2.section--plain { font: 650 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 40px 0 12px; }

/* header */
.top { background: var(--ink); color: var(--cream); }
.top__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand:hover { color: #fff; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name { font: 650 23px/1 var(--serif); letter-spacing: -.01em; }
.brand__tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #E6B497; border: 1px solid rgba(230, 180, 151, .45); border-radius: 999px; padding: 2px 8px; }
.top__search { display: flex; flex: 1 1 200px; min-width: 180px; max-width: 380px; background: rgba(255, 255, 255, .08); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.top__search input[type=search] { flex: 1; background: transparent; border: 0; color: #fff; padding: 9px 12px; box-shadow: none; }
.top__search input::placeholder { color: rgba(241, 241, 239, .6); }
.top__search button { background: transparent; color: var(--cream); padding: 8px 14px; }
.top__nav { display: flex; flex: none; gap: 2px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top__nav > a { color: var(--cream); text-decoration: none; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.top__nav > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.top__nav > a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--rufous); border-radius: 0; }
.top__nav .top__who { margin-left: 6px; box-shadow: inset 0 0 0 1px rgba(241, 241, 239, .3); }
.top__nav .top__who[aria-current=page] { box-shadow: inset 0 0 0 1px var(--rufous); border-radius: 8px; }
.top__menu, .top__menu:hover { display: none; margin-left: auto; background: transparent; color: var(--cream); padding: 8px 14px; box-shadow: inset 0 0 0 1px rgba(241, 241, 239, .3); }
.top__menu::after { content: ""; width: 0; height: 0; border: 5px solid transparent; border-top-color: currentColor; margin-top: 5px; }
.top__menu[aria-expanded=true]::after { border-top-color: transparent; border-bottom-color: currentColor; margin: -5px 0 0; }
@media (max-width: 1040px) { .top__search { display: none; } }
@media (max-width: 900px) {
  .top__inner { flex-wrap: wrap; gap: 12px; }
  .top--menu .top__menu { display: inline-flex; }
  .top--menu .top__nav { display: none; }
  .top--menu.top--open .top__nav { display: flex; flex-direction: column; width: 100%; margin: 0 0 10px; padding-top: 6px; border-top: 1px solid rgba(241, 241, 239, .14); }
  .top--open .top__nav > a, .top--open .top__nav .top__who { padding: 12px 6px; margin: 0; border-radius: 0; box-shadow: none; font-size: 16px; }
  .top--open .top__nav > a[aria-current=page] { color: #fff; background: rgba(255, 255, 255, .08); border-radius: 8px; padding-left: 12px; }
  .top:not(.top--menu) .top__nav { flex-wrap: wrap; margin-left: 0; }
}

/* forms and buttons */
input:not([type]), input[type=search], input[type=text], input[type=url], input[type=email], input[type=number] { font: inherit; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
input:not([type]):focus, input[type=search]:focus, input[type=text]:focus, input[type=url]:focus, input[type=email]:focus, input[type=number]:focus { outline: none; border-color: var(--rufous); box-shadow: 0 0 0 3px var(--rufous-soft); }
input[type=file] { font: inherit; font-size: 14px; width: 100%; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--muted); cursor: pointer; }
input[type=file]::file-selector-button { font: inherit; font-weight: 650; border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 12px; background: var(--ink); color: var(--cream); cursor: pointer; }
button, .btn { font: inherit; font-weight: 650; font-size: 15px; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--rufous); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; }
button:hover, .btn:hover { background: var(--rufous-dark); color: #fff; }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--big { font-size: 16px; padding: 13px 22px; }
.search { display: flex; gap: 8px; margin: 0 0 16px; }
.search--large { background: var(--card); padding: 6px; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.search--large input { font-size: 18px; padding: 14px 14px; border: 0; }
.search--large input:focus { box-shadow: none; }
.search--large button { font-size: 16px; padding: 14px 24px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { font: 600 20px/1.3 var(--serif); }

/* home */
/* The glow is part of the background, so the hero needs no overflow clipping: nothing may clip or bury the search
   suggestions, which hang below it over the cards. The search area sits above the cards (.two, z-index 2). */
.hero { color: var(--cream); padding: 56px 0 64px; position: relative;
  background: radial-gradient(circle 260px at calc(100% - 140px) 120px, rgba(180, 87, 42, .35), transparent), var(--ink); }
.hero .wrap { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.04; max-width: 21ch; margin: 14px 0 28px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--rufous-light); }
.hero__try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: rgba(241, 241, 239, .7); font-size: 14px; margin: 18px 0 0; }
.hero__try a { color: var(--cream); text-decoration: none; border: 1px solid rgba(241, 241, 239, .25); border-radius: 999px; padding: 5px 12px; }
.hero__try a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(241, 241, 239, .14); }
.stats a { color: var(--cream); text-decoration: none; }
.stats a:hover .stat__n { color: var(--rufous-light); }
.stat__n { display: block; font: 600 38px/1 var(--serif); font-variant-numeric: tabular-nums; color: #fff; }
.stat__l { display: block; font-size: 14px; color: rgba(241, 241, 239, .7); margin-top: 6px; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: -28px; position: relative; z-index: 2; }
.card.big { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; margin: 0; transition: transform .15s ease, box-shadow .15s ease; }
.card.big:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 32px rgba(27, 33, 41, .1); color: var(--ink); }
.card.big h2 { font-size: 28px; margin: 0; }
.card.big p { margin: 0; color: var(--ink-2); }
.card.big .go { margin-top: auto; padding-top: 6px; font-weight: 650; color: var(--rufous-dark); }
.sample { background: var(--paper); border-radius: 12px; padding: 14px 16px; margin: 6px 0 4px; border: 1px solid var(--line); font-size: 14px; }
.sample__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sample__title { font-weight: 650; }
.sample__quote { background: var(--paper); border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; color: var(--ink-2); }
.sample__tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 52px 0 14px; }
.section-head h2 { font-size: 28px; margin: 0; }
.section-head a { font-weight: 600; font-size: 15px; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 18px 20px; margin: 12px 0; }
/* a card that needs noticing is gently tinted all over, never striped down one side */
/* Cards that need noticing: white, so long text reads easily, with a coloured edge all round and a coloured heading (13 Nov:
   a whole card tinted read as a beige block, its tags lost in it). */
.card--red { background: var(--card); box-shadow: 0 0 0 1.5px #E3B5B5, var(--shadow); }
.card--amber { background: var(--card); box-shadow: 0 0 0 1.5px #E6C886, var(--shadow); }
.card--rufous { background: var(--card); box-shadow: 0 0 0 1.5px #E2BFAA, var(--shadow); }
.card--green { background: var(--card); box-shadow: 0 0 0 1.5px #B4D2BE, var(--shadow); }
.card--red > :is(.name, .label):first-child { color: var(--red); }
.card--amber > :is(.name, .label):first-child { color: var(--amber-ink); }
.card--green > :is(.name, .label):first-child { color: var(--green); }
.card--rufous > :is(.name, .label):first-child { color: var(--rufous-dark); }
.card .name, .name { font-weight: 650; margin: 0 0 4px; }
.card > :last-child { margin-bottom: 0; }

/* tender list */
.list { display: flex; flex-direction: column; gap: 10px; }
.list .card { margin: 0; }
.tender { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; text-decoration: none; color: var(--ink); padding: 18px 22px; transition: box-shadow .15s ease; }
.tender:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 8px 24px rgba(27, 33, 41, .08); }
.tender:hover .tender__title { color: var(--rufous-dark); }
.tender__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tender__title { font-weight: 650; font-size: 17px; line-height: 1.35; }
.tender__buyer { color: var(--muted); font-size: 14px; }
.tender__facts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tender__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; white-space: nowrap; }
.tender__value { font: 600 22px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.tender__value--none { font: 500 14px/1.4 var(--sans); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; background: var(--paper); color: var(--ink-2); }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--amber { background: var(--amber-soft); color: var(--amber); }
.tag--red { background: var(--red-soft); color: var(--red); }
.tag--grey { background: var(--paper-deep); color: var(--muted); }
.tag--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Someone's role in a firm (_RoleTag): Owner, Helper. In the account menu it sits at the end of the firm's line. */
.role-tag { margin-left: 4px; vertical-align: middle; }
.account__menu .role-tag { margin-left: auto; }
/* What a helper (an outside bid writer) reads but can't change: the forms are there, switched off (HelperRules). */
fieldset.read-only { border: 0; padding: 0; margin: 0; min-width: 0; }
.helper-invite { margin-top: 12px; }
.helper-invite > summary { list-style: none; display: inline-flex; }
.helper-invite > summary::-webkit-details-marker { display: none; }

/* search */
.search-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
/* Not sticky: a column of filters taller than the screen could never be scrolled to its end. */
.filters { position: static; }
/* Each group folds on its heading (<filter-group>, FilterGroups.cs). */
.filter-group > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 10px 10px 6px 0; border-radius: 6px; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: "\25BE"; color: var(--muted); font-size: 12px; }
.filter-group[open] > summary::after { content: "\25B4"; }
.filter-group > summary h2 { margin: 0 !important; }
.filter-group + .filter-group, .price-range__note + .filter-group { margin-top: 10px; }
.filters h2 { font: 650 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 8px; }
.filters h2:first-child { margin-top: 4px; }
.filters ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.filters a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.filters a:hover { background: var(--card); color: var(--ink); }
.filters a.on { background: var(--ink); color: var(--cream); font-weight: 600; }
.results-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; margin: 0 0 12px; }
.results-head > .meta { margin: 0; }
.results-head .sorts { grid-column: 1 / -1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.chip--on { background: var(--ink); color: var(--cream); border-color: var(--ink); font-weight: 600; }
.chip--on:hover { background: var(--ink-2); color: #fff; }
.chip--on span { opacity: .7; }
.readback { background: var(--rufous-soft); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 0 0 16px; }
.note { border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 14px 0; }
.note--amber { background: var(--amber-soft); color: var(--amber-ink); }
.empty { padding: 32px 0; color: var(--muted); }
.empty h1 { color: var(--ink); }
.more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
.more__button { width: 100%; max-width: 360px; justify-content: center; white-space: nowrap; padding: 13px 18px; }
.more__filter { font-size: 15px; color: var(--muted); text-align: center; }
.more__filter:hover { color: var(--rufous-dark); }

/* tender page */
.tender-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.tender-page h1 { font-size: clamp(28px, 3.6vw, 40px); }
.facts { position: sticky; top: 20px; margin: 0; padding: 22px 22px 20px; }
.facts__value { font: 600 34px/1.1 var(--serif); font-variant-numeric: tabular-nums; margin: 0; }
.facts__close { margin: 4px 0 16px; font-weight: 600; }
.facts .btn { width: 100%; justify-content: center; text-align: center; margin-top: 8px; }
.btn { text-align: center; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 9px 12px; margin: 0; font-size: 14px; padding: 16px 0 6px; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.kv__line { display: block; }
#summary p { font-size: 18px; line-height: 1.6; margin: 0; }
#summary p.meta { font-size: 15px; }
.notice { margin-top: 20px; }
.notice summary { cursor: pointer; color: var(--rufous-dark); font-weight: 650; }
.notice__body { max-width: 68ch; margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--ink-2);
  --rich-fg: var(--ink-2); --rich-muted: var(--muted); --rich-accent: var(--rufous-dark); --rich-accent-soft: var(--rufous-soft);
  --rich-border: var(--line); --rich-surface: var(--paper); --rich-radius: 10px; }
.notice__body p { margin: 0 0 12px; }
.notice__body ul { margin: 0 0 14px; padding-left: 20px; }
.notice__body li { margin: 4px 0; }
.notice__body li::marker { color: var(--rufous); }
.notice__body a { word-break: break-all; }

/* suggestions (SearchStack autocomplete) */
:root { --searchstack-list-background-color: var(--card); --searchstack-list-border-color: var(--line); --searchstack-list-border-radius: 12px;
  --searchstack-list-box-shadow: 0 12px 36px rgba(27, 33, 41, .18); --searchstack-list-item-background-hover-color: var(--paper);
  --searchstack-list-item-background-focused-color: var(--rufous-soft); --searchstack-list-font-size: 15px; --searchstack-list-z-index: 2147483000;
  /* The Ask Kestrel answer opens from the list, so it goes above it (it was under, at the widget's 2000). */
  --searchstack-ask-z: 2147483001;
  /* Ask Kestrel in the site's own colours: its default accent is indigo (Lee, 12 Nov: "blue, out of place"). */
  --searchstack-ask-accent-color: var(--rufous-dark); --searchstack-ask-text-color: var(--ink); --searchstack-ask-muted-color: var(--muted);
  --searchstack-ask-hover-color: var(--paper); --searchstack-ask-selected-color: var(--rufous-soft);
  --searchstack-ask-surface-color: var(--card); --searchstack-ask-background-color: var(--card); --searchstack-ask-border-color: var(--line); }
/* The browser's own clear (x) in a search box is blue in Chrome: a muted x in the site's colours instead. */
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer;
  background: currentColor; color: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat; }
input[type=search]::-webkit-search-cancel-button:hover { color: var(--ink); }
/* On phones the widget opens a full-screen sheet with its own back and clear buttons. Kestrel's button rule
   (white text on rufous) would draw their icons white on white, and turn them orange on tap, so they get their own. */
:root { --searchstack-mobile-background-color: var(--card); --searchstack-mobile-list-item-background-hover-color: var(--paper);
  --searchstack-mobile-list-item-background-focused-color: var(--rufous-soft); }
.searchstack-mobile-button, .searchstack-mobile-button:hover { background: none; color: var(--ink); padding: 8px; border-radius: 8px; box-shadow: none; }
.searchstack-mobile-button:disabled { color: var(--muted); opacity: .45; }
.searchstack-mobile-input { font-size: 16px !important; color: var(--ink) !important; caret-color: var(--rufous); }
.sg { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px; text-align: left; color: var(--ink); font-family: var(--sans); }
.sg__title { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* The list hangs from the search box itself, exactly its width, just under it (it hung from the page section, wider
   than the box and off to one side). */
.search { position: relative; }
.search > .searchstack-list { left: 0 !important; right: 0 !important; margin: 6px 0 0 !important; width: auto; }
.sg__meta { font-size: 13px; color: var(--muted); }

/* checks */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; padding: 0; list-style: none; counter-reset: how; }
.how li { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 18px; counter-increment: how; }
.how li::before { content: counter(how); display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 14px; line-height: 30px; text-align: center; margin-bottom: 10px; }
.how strong { display: block; font: 600 18px/1.3 var(--serif); margin-bottom: 4px; }
.how span { font-size: 14px; color: var(--muted); }
.promises { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 20px 0; list-style: none; }
.promises li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.promises li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--rufous); transform: rotate(45deg); }


/* Hidden means hidden, whatever display a class gives (the "0 gaps to fill" button showed on empty answers). */
[hidden] { display: none !important; }
.ticks, .plain { padding-left: 0; list-style: none; margin: 0; }
.ticks li, .plain li { position: relative; padding-left: 20px; margin: 8px 0; }
.ticks li::before, .plain li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--rufous); }
.files { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.files li .meta { white-space: nowrap; font-size: 13px; }
/* A button under a list of files ("Read these documents") stands clear of the last row. */
.files + form { margin-top: 20px; }
/* "Add more documents" under the files once they're read: its own section of the card. */
.add-more { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
/* _PackChange: the buyer's documents added again, what was new, changed and the same. */
.pack-change { background: var(--paper); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-size: 14px; }
.pack-change__when { font-weight: 650; margin: 0; }
.pack-change__files { list-style: none; padding: 0; margin: 8px 0 0; }
.pack-change__files li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; overflow-wrap: anywhere; }
.pack-change .meta { margin: 8px 0 0; }
.add-more .name { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 650; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px 8px 4px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 10px 10px 10px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; white-space: nowrap; }
.table td:nth-child(3), .table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote { display: block; background: var(--paper); border-radius: 8px; padding: 8px 12px; font: 16px/1.5 var(--serif); margin: 6px 0 10px; color: var(--ink-2); }
.quote--yours { background: var(--red-soft); }
.risks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.risks .card { margin: 0; padding: 0; }
.risks summary { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; cursor: pointer; padding: 16px 20px; list-style: none; }
.risks summary::-webkit-details-marker { display: none; }
.risks details[open] summary { border-bottom: 1px solid var(--line); }
.risks details > :not(summary) { margin-left: 20px; margin-right: 20px; }
.risks details > :last-child { margin-bottom: 18px; }
.risk__ref { font-weight: 800; background: var(--paper); border-radius: 8px; padding: 4px 9px; font-size: 14px; }
.risk__why { font-weight: 550; }
.risk__score { font: 700 15px/1.2 var(--sans); color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.risk__bar { display: block; height: 4px; border-radius: 2px; background: var(--amber-soft); margin-top: 6px; overflow: hidden; min-width: 90px; }
.risk__bar i { display: block; height: 100%; background: var(--amber); }
.card--red .risk__score { color: var(--red); }
.card--red .risk__bar { background: var(--red-soft); }
.card--red .risk__bar i { background: var(--red); }
.result { display: flex; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); margin: 20px 0 0; }
.result:hover { color: var(--ink); }
.result strong { display: block; font: 600 20px/1.3 var(--serif); }
.result__n { font: 600 44px/1 var(--serif); color: var(--amber); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.card--red .result__n { color: var(--red); }
.working { background: var(--rufous-soft); box-shadow: 0 0 0 1px var(--rufous-line); display: flex; gap: 16px; align-items: flex-start; }
.spinner { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--rufous-line); border-top-color: var(--rufous); animation: spin 1s linear infinite; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* A button whose form is on its way (site.js): a spinner where its icon was, and no second press. */
button.is-busy { cursor: progress; opacity: .85; }
button.is-busy:disabled { opacity: .85; }
button.is-busy > .icon { display: none; }
button.is-busy::before { content: ""; flex: none; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { button.is-busy::before { animation: none; border-top-color: currentColor; opacity: .6; } }
.keep-private { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); margin: 14px 0; }
.keep-private svg { flex: none; color: var(--rufous); }

/* footer */
.foot { background: var(--ink); color: rgba(241, 241, 239, .72); margin-top: 64px; padding: 32px 0 36px; font-size: 14px; }
.foot a { color: var(--cream); }
.foot a:hover { color: #fff; }
.foot__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot__facts { max-width: 620px; }
.foot__facts strong { color: var(--cream); font: 600 18px/1 var(--serif); }
.foot__links { display: flex; gap: 8px 18px; margin-top: 10px; flex-wrap: wrap; }
.foot__buyers { max-width: 300px; }
.foot__buyers strong { color: var(--cream); font: 600 18px/1 var(--serif); }
.foot__buyers p { margin: 14px 0 0; }

@media (max-width: 900px) {
  .search-page, .tender-page { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .filters, .results { min-width: 0; }
  .filters { position: static; }
  .filters ul { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .filters a { white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
  .filters h2 { margin-top: 12px; }
  /* Phone and tablet: title first, then the facts and buttons, then the summary and notice. */
  .tender-page { gap: 0; }
  .tender-page__main { display: contents; }
  .tender-page__head { order: -2; }
  .facts { position: static; order: -1; margin: 4px 0 8px; }
  .how { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .top__search { display: none; }
  .page { padding-top: 20px; }
  .section-head { flex-wrap: wrap; gap: 4px 16px; margin-top: 40px; }
  .section-head h2 { font-size: 24px; }
  .section-head a { white-space: nowrap; }
  .hero { padding: 36px 0 52px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat__n { font-size: 30px; }
  .search--large { flex-direction: column; }
  .tender { grid-template-columns: 1fr; padding: 16px 18px; }
  .tender__side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; order: 2; }
  .kv { grid-template-columns: 96px 1fr; }
  .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .risks summary { grid-template-columns: auto 1fr; }
  .risk__score { grid-column: 1 / -1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Skip to content (_Layout): off the page until a keyboard reaches it, then over the header's top left. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); font-weight: 600; padding: 12px 16px; border-radius: 10px; box-shadow: 0 0 0 2px var(--rufous); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* applying: what you need to do, and the answer boxes */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.card > summary { cursor: pointer; }
.how-list { margin: 8px 0 14px; padding-left: 22px; }
.how-list li { margin: 6px 0; }
/* A list whose points each start with a bold title: the title on its own line, the detail under it, room between. */
.how-list--titled { list-style: none; padding-left: 0; }
.how-list--titled li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.how-list--titled li:first-child { border-top: 0; padding-top: 4px; }
.how-list--titled li > strong:first-child { display: block; margin-bottom: 2px; }
.todo { padding: 6px 20px; }
.todo__row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.todo__row:first-child { border-top: 0; }
.todo__k { color: var(--muted); font-size: 14px; }
.todo__v { font-weight: 550; }
.todo__v .plain li { margin: 2px 0; font-weight: 500; }
.answers { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.answers .card { margin: 0; }
.answer__head { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.answer__q { display: block; font: 600 18px/1.4 var(--serif); margin-bottom: 10px; }
textarea { font: 16px/1.55 var(--sans); width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); resize: vertical; }
textarea:focus { outline: none; border-color: var(--rufous); box-shadow: 0 0 0 3px var(--rufous-soft); }
.answer__count { margin: 6px 0 0; text-align: right; font-variant-numeric: tabular-nums; }
.answer__count.over { color: var(--red); font-weight: 650; }
.answer__issues { background: var(--paper); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: 15px; }
.answer__issues p { margin: 4px 0; }
.answers__bar { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 0; background: linear-gradient(transparent, var(--paper) 30%); }
@media (max-width: 600px) { .todo__row { grid-template-columns: 1fr; gap: 2px; } }
/* Who does what (_Assignee, moat plan 3b): who has a question and how far it has got, on its card; "Mine" above the list. */
.assign-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.assignee { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -2px 0 10px; font-size: 14px; color: var(--ink-2); }
.assignee__now { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.assignee__now .icon { width: 1.05em; height: 1.05em; color: var(--muted); }
.assignee__who { font-weight: 600; color: var(--ink); }
.assignee__change > summary { list-style: none; cursor: pointer; }
.assignee__change > summary::-webkit-details-marker { display: none; }
.assignee__change[open] { flex-basis: 100%; }
.assignee__panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.assignee__panel .meta { flex-basis: 100%; margin: 0; }
.assignee__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; margin: 0; }
.assignee__field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.assignee__field select { padding: 8px 12px; }
.assignee__save { margin: 0; }
/* Pass a gap to whoever knows (_GapAsks): each [gap] in an answer with "Ask someone", and each ask with where it stands. */
.gap-asks { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.gap-asks:empty { display: none; }
.gap-ask { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.gap-ask p { margin: 0 0 6px; }
.gap-ask p:last-child { margin-bottom: 0; }
.gap-ask__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gap-ask__gap, .gap-ask__head .gap-ask__gap { font-weight: 600; color: var(--amber); overflow-wrap: anywhere; }
.gap-ask__answer { font-size: 14px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.gap-ask__field { display: flex; flex-direction: column; gap: 4px; }
.gap-ask__field label, .gap-asks__field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.gap-ask__field textarea { font-size: 14px; padding: 8px 12px; }
.gap-ask__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.gap-asks__new > summary { list-style: none; cursor: pointer; max-width: 100%; white-space: normal; text-align: left; }
.gap-asks__new > summary::-webkit-details-marker { display: none; }
.gap-asks__panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.gap-asks__panel .meta { flex-basis: 100%; margin: 0; }
.gap-asks__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; margin: 0; }
.gap-asks__field--wide { flex-basis: 100%; }
.gap-asks__field input, .gap-asks__field select { padding: 8px 12px; font-size: 14px; }
.gap-asks__outside { display: none; }
.gap-asks__panel--outside .gap-asks__outside, .gap-asks__panel:has(option[value="outside"]:checked) .gap-asks__outside { display: flex; }
.gap-asks__send { margin: 0; }
/* The page someone outside Kestrel answers a gap on (/question/{token}). */
.question-card { margin: 0 0 22px; }
.question-card p { margin: 0 0 10px; }
.question-card p:last-child { margin-bottom: 0; }
.question-card__around { font-size: 17px; line-height: 1.6; color: var(--ink); }
.question-form { margin: 0 0 18px; }
.question-form label { font: 600 16px/1.4 var(--sans); color: var(--ink); }
.question-form p { margin: 0; }

/* Paste a link, and the portal's project code */
.form--inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.form--inline input { flex: 1 1 260px; min-width: 0; }
.code-line { margin: 4px 0 6px; font-size: 18px; }
.code { font: 700 22px/1 var(--sans); letter-spacing: .04em; background: var(--paper); border: 1px solid currentColor; border-radius: 6px; padding: 2px 10px; user-select: all; }

/* Browse pages and the home page's browse lists */
.crumbs__sep { color: var(--muted); }
.browse { margin-top: 2.5rem; margin-bottom: 3rem; }
.browse__cols { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.browse__cols h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.browse__list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.browse__cols > div:last-child .browse__list { columns: 1; }
.browse__list li { padding: .3rem 0; break-inside: avoid; }
.browse__list a { color: var(--ink-2); text-decoration: none; }
.browse__list a:hover { color: var(--rufous-dark); text-decoration: underline; }
@media (max-width: 720px) { .browse__cols { grid-template-columns: 1fr; } .browse__list, .browse__cols > div:last-child .browse__list { columns: 2; column-gap: 1rem; font-size: 15px; } }

.sorts { display: flex; gap: 4px 14px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.sorts a { color: var(--muted); }
.sorts__on, .sorts a.sorts__on { font-weight: 600; color: var(--ink); }
.sorts__flip span { color: var(--rufous-dark); }
@media (max-width: 600px) {
  .results-head { grid-template-columns: 1fr; }
  .results-head .btn { justify-self: start; }
  .sorts { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .sorts a, .sorts__on { display: inline-block; padding: 8px 0; }
}

.filters__more summary { cursor: pointer; padding: 6px 10px; font-size: 14px; color: var(--rufous-dark); list-style: none; }
.filters__more summary::-webkit-details-marker { display: none; }
.filters__more summary::after { content: " ▾"; }
.filters__more[open] summary::after { content: " ▴"; }
.filters__more[open] summary { color: var(--muted); }

/* Help while applying: firm facts, drafts and one-answer checks */
.firm textarea { width: 100%; }
.form--inline-actions { display: flex; gap: 12px; align-items: center; margin: 8px 0 0; }
.saved { color: var(--green); font-weight: 600; }
.answer__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.answer__tools .answer__count { margin: 0 auto 0 0; }
.btn--small { padding: 5px 12px; font-size: 14px; }
.answer__help { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.answer__draft { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 15px; max-height: 360px; overflow: auto; }
.answer__bar { display: flex; gap: 8px; margin: 8px 0 0; }
.answer__verdict { margin: 0 0 6px; }
.answer__verdict--strong b, .answer__verdict--adequate b { color: var(--green); }
.answer__verdict--weak b, .answer__verdict--missing b { color: var(--amber); }
.answer__verdict--non_compliant b { color: var(--red); }
.answer__gaps ul { margin: 4px 0 0; padding-left: 20px; list-style: disc; font-size: 14px; }
.answer__gaps li { padding: 2px 0; }

/* [Gaps] to fill in (site.js, textarea[data-gaps]): amber behind the words, a copy of the text under the box. */
mark.gap { background: var(--amber-soft); color: inherit; border-radius: 3px; box-shadow: 0 0 0 1px #E8C98A; }
.gapbox { position: relative; background: var(--card); border-radius: 10px; }
/* The box is see-through so the marks behind it show; its colour is the frame's. More specific than any box colour set
   elsewhere (a later "textarea { background }" hid the marks on the firm's details, Lee 13 Nov). */
.gapbox > textarea[data-gaps] { position: relative; background: transparent; display: block; }
.gapbox__marks { position: absolute; overflow: hidden; box-sizing: border-box; white-space: pre-wrap; overflow-wrap: break-word; color: transparent; pointer-events: none; border-radius: 10px; }
.gapbox > textarea.has-gaps { border-color: #E8C98A; }
.gaps-next { font: 650 14px/1.3 var(--sans); padding: 7px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); box-shadow: inset 0 0 0 1px #E8C98A; }
.gaps-next:hover { background: #F1E3C4; color: var(--amber-ink); }
.answer__tools .gaps-next { margin-right: auto; }
.answer__tools .answer__count:has(+ .gaps-next:not([hidden])) { margin-right: 0; }

/* Questions to ask the buyer; ready to send */
.clarify__list { margin: 8px 0 12px; padding-left: 22px; }
.clarify__list li { margin: 0 0 10px; }
.clarify__list p { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 4px 0 14px; }
.checklist li { padding: 5px 0; }
.checklist input { margin-right: 8px; accent-color: var(--rufous); }
.checklist__mark { display: inline-block; width: 18px; font-weight: 700; }
.checklist__auto.is-done .checklist__mark { color: var(--green); }
.checklist__auto.is-todo .checklist__mark { color: var(--amber); }
.ready__how, .checklist li, .clarify__list li { overflow-wrap: anywhere; }
/* "· Ben to review it" moves as one piece: never a lone "·" at a line's end with the words under it */
.checklist__detail { display: inline-block; }
/* check page: each step folds to its heading and one line saying where it stands */
details.stage { border-top: 1px solid var(--line); margin-top: 28px; }
details.stage > summary { list-style: none; cursor: pointer; padding: 18px 0 6px; }
details.stage > summary::-webkit-details-marker { display: none; }
details.stage > summary h2.section { margin: 0; }
details.stage > summary h2.section::after { content: "\25BE"; margin-left: auto; font-size: 16px; color: var(--muted); transition: transform .15s; }
details.stage[open] > summary h2.section::after { transform: rotate(180deg); }
details.stage > summary:hover h2.section { color: var(--rufous-dark); }
.stage__status { display: block; margin: 6px 0 0 42px; color: var(--muted); font-size: 15px; }
details.stage[open] > summary { padding-bottom: 14px; }
h2.section .step--done { background: var(--green); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 12px 0 0; }
.actions form { margin: 0; }
.clarify__list .tick { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; cursor: pointer; }
.clarify__list .tick input { accent-color: var(--rufous); }
.clarify__list li.is-answered > p { color: var(--muted); }
.clarify__list li.is-answered > p:first-child { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist__fold { margin: 0 0 14px; }
.checklist__fold > summary { cursor: pointer; }
.checklist__fold > summary .label { display: inline; }
/* search-box suggestions: a type of work or region reads as a category, above the tenders */
.sg--filter .sg__title::before { content: "\2192  "; color: var(--rufous); font-weight: 700; }
.sg--filter .sg__meta { color: var(--rufous-dark); }
/* invitations (People): an address and Send on one line, then the firm's record of invitations, one per line with its
   state on the right, like the rules on an application */
.invite-form { display: flex; gap: 10px; margin: 6px 0 8px; }
.invite-form input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .invite-form { flex-direction: column; } }
.invites__head { margin-top: 18px; }
.invites { list-style: none; margin: 4px 0 0; padding: 0; }
.invite { padding: 12px 0; border-top: 1px solid var(--line); }
.invite:first-child { border-top: 0; padding-top: 4px; }
.invite__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.invite__side { display: flex; align-items: center; gap: 8px; flex: none; }
.invite__who { font-weight: 650; overflow-wrap: anywhere; }
/* An email address (Fmt.Address) never breaks at its hyphen: the part before the @ and the part from it each move to
   the next line whole, so a narrow screen breaks it at the @; only a part wider than the line wraps */
.address > span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.firm-list__who { min-width: 0; }
.invite__when { margin: 2px 0 0; color: var(--muted); }
.invite .copy-line { margin: 6px 0 0; }
/* a rule on an application (_RuleRow): no box of its own, a thin line between rules. The title with one status tag
   on the right (lined up down the list), then why when it adds something, what to do, and when it's needed (muted),
   all at the card's one text size */
.rules { list-style: none; margin: 6px 0 16px; padding: 0; }
.rule { padding: 14px 0; border-top: 1px solid var(--line); }
.rule:first-child { border-top: 0; padding-top: 6px; }
.rule p { margin: 4px 0 0; }
.rule__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rule__head .tag { flex: none; margin-top: 1px; }
.rule__title { font-weight: 650; }
.rule__why { color: var(--ink-2); }
.rule__todo { color: var(--ink); }
.rule__when { color: var(--muted); }
.rule__fix { font-size: 14px; }
.fit__stop { color: var(--ink-2); margin: 0 0 6px; }
.rule__fix a { display: inline-block; padding: 3px 0; }
.rule .quote { margin: 6px 0 0; }
/* a past answer offered for a new question */
.past { margin: 6px 0 8px; padding: 8px 12px; border-radius: 8px; background: var(--paper); }
.past summary { cursor: pointer; }
.past__text { white-space: pre-wrap; max-height: 14em; overflow: auto; font-size: .92rem; }
/* Your firm page */
.saved-answers { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.saved-answers li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.saved-answers details { flex: 1; }
.saved-answers summary { cursor: pointer; }
.saved-answers__text { white-space: pre-wrap; font-size: .92rem; }
.firm-link { word-break: break-all; font-family: ui-monospace, monospace; font-size: .85rem; background: var(--paper); padding: 8px; border-radius: 6px; }
/* ask about this tender */
.ask .form--inline label { flex-basis: 100%; }
.ask__item { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.ask__item p { margin: 0 0 6px; }
.ask__q { font-weight: 650; }
.ask__item--none p:not(.ask__q) { color: var(--muted); }
.ask__older summary { cursor: pointer; margin-top: 10px; }
/* How much: any range */
.price-range { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; }
.price-range input[type=text] { width: 0; flex: 1 1 0; padding: 7px 9px; font-size: 14px; }
.price-range span { color: var(--muted); font-size: 14px; }
.price-range__note { font-size: 13px; margin: 0 0 18px; }
/* Where: near a town */
.near-town { margin-top: 10px; }
.near-line { margin: 0 0 12px; }

/* Buyer side and Kestrel-run tenders */
.buyer .people { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.buyer .people li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.buyer .conflict, .buyer .add-person, .buyer .two-to-open { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.buyer .conflict input[name=detail] { width: 100%; margin: 8px 0; }
.radio { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; font-weight: 500; }
.qrow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.qrow legend { font-weight: 700; padding: 0 6px; }
.notice-fields th { width: 34%; vertical-align: top; text-align: left; }
.notice-fields td { white-space: pre-wrap; }
.todo-list { margin: 6px 0 14px; }
.qa { border-top: 1px solid var(--line); padding: 10px 0; }
.qa:first-child { border-top: 0; }
.qa__q { font-weight: 650; margin: 0 0 4px; }
.qa__a { margin: 0; white-space: pre-wrap; }
.qa textarea { width: 100%; margin: 6px 0; }
.receipts { margin: 6px 0 12px; color: var(--muted); }
.bid .mark { border-top: 1px solid var(--line); padding: 10px 0; }
.bid .mark summary { cursor: pointer; }
.mark__answer { white-space: pre-wrap; background: var(--paper); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.mark__form input[name=reason] { flex: 1; min-width: 220px; }
.pointers { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.pointers li { display: grid; gap: 2px; }
.pointer__quote { background: var(--green-soft); border-radius: 6px; padding: 2px 6px; }
.pointer__none { color: var(--amber); }
.agreed { background: var(--green-soft); border-radius: 10px; padding: 8px 12px; }
.letter__text { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.55; margin: 8px 0 0; }
.record__list { padding-left: 20px; display: grid; gap: 4px; }
.kt__desc { white-space: pre-wrap; }
.bid-form textarea { width: 100%; }
.words { margin: 2px 0 14px; }
.words.over { color: var(--red); font-weight: 650; }
.card.big.kt-card h2 { font-size: 22px; line-height: 1.25; }
@media print { .top, .foot, .no-print { display: none !important; } .record-page { padding: 0; } }
/* Buyer forms: two boxes side by side, every box styled the same. */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pair > div { display: flex; flex-direction: column; gap: 6px; }
.buyer input:not([type]), .buyer input[type=number], .buyer input[type=datetime-local], .buyer select,
.buy-start input:not([type]), .buy-start input[type=number], .buy-start select,
.kt input:not([type]), .kt input[type=number] { font: inherit; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
.buyer .form--inline input, .buyer .form--inline select { width: auto; }
.buyer .mark__form select { width: auto; padding: 8px 10px; }
.tender-form label, .buy-start label, .bid-form label, .award label { font: 600 16px/1.3 var(--sans); }
.qrow { display: flex; flex-direction: column; gap: 6px; }
.qrow label { font-size: 14px !important; color: var(--slate); }
.buyer input:focus, .buyer select:focus, .buy-start input:focus, .kt input:focus { outline: none; border-color: var(--rufous); box-shadow: 0 0 0 3px var(--rufous-soft); }
/* Buyer and Kestrel-tender tables wrap long questions; buttons in forms keep their own width. */
.kt .table, .buyer .table, .record-page .table { table-layout: auto; width: 100%; }
.kt .table td, .kt .table th, .buyer .table td, .buyer .table th, .record-page .table td { white-space: normal; overflow-wrap: anywhere; }
.kt .table td:not(:first-child), .kt .table th:not(:first-child) { width: 90px; }
.kt .form .btn, .buyer .form .btn, .buy-start .btn, .bid-form .btn { align-self: flex-start; }

/* Watches */
.watch-summary { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 14px 16px; margin: 12px 0; }
.watch-summary__readback { font-size: 1.05rem; margin: 0 0 6px; }
.watch-summary__state { font-weight: 600; }
.watch-summary__state--live { color: var(--green); }
.watch-summary__state--paused, .watch-summary__state--stopped { color: var(--amber); }
.watch-form label.choice { display: block; margin: 6px 0; }
/* The home feed's "Get new ones by email" (Index). */
.feed-email { margin-bottom: 18px; }
.feed-email .name { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; }
.feed-email__choices { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 4px; }
.feed-email__choices label.choice { display: flex; gap: 8px; align-items: center; min-height: 32px; font-size: 15px; }
/* What the Recommended feed shows (_FeedFilters): one line always in view, the form folded under it. */
.feed-filters { margin-bottom: 18px; }
.feed-filters > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; cursor: pointer; min-height: 32px; }
.feed-filters > summary::-webkit-details-marker { display: none; }
.feed-filters__title { font-weight: 650; }
.feed-filters__now { flex: 1 1 auto; color: var(--ink-2); }
.feed-filters__change { color: var(--rufous-dark); font-weight: 650; text-decoration: underline; }
.feed-filters[open] .feed-filters__change { visibility: hidden; }
.feed-filters__form { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.feed-filters__group { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.feed-filters__group legend { font-weight: 650; padding: 0; margin-bottom: 4px; }
.feed-filters__options { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.feed-filters__options label.choice { display: flex; gap: 8px; align-items: center; min-height: 32px; font-size: 15px; }
.feed-filters__near { display: block; font-size: 15px; font-weight: 500; margin: 10px 0 4px; }
.feed-filters .near-town__box { max-width: 340px; }
/* The home feed's "What your feed covers" (Index). */
.watch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ask your AI assistant: the one note every page shares (_AgentNote) */
.agent-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0; padding: 14px 18px; border-radius: var(--radius); background: var(--rufous-soft); color: var(--ink); text-decoration: none; border: 1px solid var(--rufous-line); }
.agent-note:hover { color: var(--ink); border-color: var(--rufous); }
.agent-note__tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rufous-dark); }
.agent-note__text { flex: 1 1 320px; font-size: 15px; }
.agent-note__go { font-weight: 650; color: var(--rufous-dark); white-space: nowrap; }
.agent-note--hero { background: rgba(255, 255, 255, .08); border-color: rgba(241, 241, 239, .28); color: var(--cream); margin: 22px 0 0; }
.agent-note--hero:hover { color: #fff; border-color: var(--rufous-light); }
.agent-note--hero .agent-note__tag, .agent-note--hero .agent-note__go { color: var(--rufous-light); }

/* tenders that fit your firm (_FitResults) */
/* a tender that fits: one card, the tender on top and why it fits underneath */
.matches { gap: 16px; }
.match { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.match > .tender.card { box-shadow: none; border-radius: 0; margin: 0; }
.match__body { padding: 14px 22px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.match__why, .match__watch { margin: 0; font-size: 15px; line-height: 1.55; display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; }
.match__why .tag, .match__watch .tag { justify-self: start; }
.match__watch { color: var(--ink-2); }
.apply--compact { margin: 4px 0 0; }
@media (max-width: 720px) { .match__why, .match__watch { grid-template-columns: 1fr; gap: 4px; } .match__body { padding: 12px 18px 16px; } }
.matches__how { margin-top: 20px; }
.agents .card { margin-bottom: 16px; }
.agents__asks li { font-family: var(--serif); font-size: 17px; }
.agents .code { overflow-wrap: anywhere; }

/* sign-in and the firm's people */
.top__who { font-weight: 650; }
.sign-in { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 420px; }
.sign-in-to { margin: 8px 0 4px; }
.sign-in-to .meta { margin-top: 6px; }
.firm-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.firm-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.firm-list li:first-child { border-top: 0; }
.firm input[type=text] { width: 100%; margin: 4px 0 14px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; }

/* search filters: open beside the results on wide screens, one "Filters" button above them on phones */
.filters__fold > summary { display: none; }
@media (max-width: 900px) {
  .filters__fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-weight: 650; background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 16px; }
  .filters__fold > summary::-webkit-details-marker { display: none; }
  .filters__fold > summary::after { content: "\25BE"; color: var(--muted); }
  .filters__fold[open] > summary::after { content: "\25B4"; }
  .filters__fold[open] > summary { margin-bottom: 4px; }
  .filters__on { color: var(--rufous-dark); font-weight: 600; margin-left: auto; }
  .filters a { padding: 9px 14px; }
  .filters__more summary { padding: 10px; }
  .chip { padding: 8px 14px; }
}

/* the summary while it's being written */
.loading { display: flex; gap: 10px; align-items: center; margin: 0; }
.loading .spinner { width: 16px; height: 16px; border-width: 2px; margin: 0; }

/* the ask-your-assistant note between results-head and the list */

/* tender page: more open tenders like this one */
.related { margin-top: 36px; }
/* A firm's record (/firms/{number}): its figures, the contracts it won, who it works for. */
.firm-record__head h1 { margin: 6px 0 4px; }
.firm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
.firm-stats p { margin: 0; }
.firm-stats .stat__n { color: var(--ink); font-size: 32px; }
.firm-stats .stat__l { color: var(--muted); }
.firm-record { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; margin-top: 8px; }
.firm-record h2 { font-size: 24px; margin: 18px 0 10px; }
.firm-awards { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.firm-awards .card { margin: 0; }
.firm-awards .name a { color: var(--ink); }
.firm-awards__tags { margin: 8px 0 0; }
/* Coming up for renewal (_Renewals) and firms who could bid with you (_Partners). */
.renewals, .partners { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.renewals .card { margin: 0; }
.renewals .name a { color: var(--ink); }
.renewal__held, .renewal__when { margin: 6px 0 0; }
.renewal__held .tag { margin-left: 8px; }
.renewal .actions { margin: 10px 0 0; }
.partners-box { margin: 14px 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.partners { gap: 0; margin: 8px 0 10px; }
.partners li { padding: 10px 0; border-top: 1px solid var(--line); }
.partners li:first-child { border-top: 0; }
.partners .partner__name { font-weight: 650; }
.partners p { margin: 2px 0 0; }
.firm-buyers { list-style: none; padding: 0; margin: 0; }
.firm-buyers li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.firm-buyers li:first-child { border-top: 0; }
@media (max-width: 820px) { .firm-record { grid-template-columns: 1fr; } }

/* Who holds it now (tender page): the buyer's earlier awards for this work. */
.holders__lead { margin: 0 0 10px; }
.holders__list { list-style: none; padding: 0; margin: 0 0 10px; }
.holders__list li { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.holders__list a { color: var(--ink); }
.holders__who { display: block; color: var(--muted); font-size: 14px; }
.holders__value { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .holders__list li { grid-template-columns: 1fr auto; } .holders__list li > .meta { grid-column: 1 / -1; } }
.related h2 { font-size: 22px; margin: 0 0 12px; }

/* tenders on Kestrel that have closed */
.closed-list { list-style: none; padding: 6px 20px; margin: 0; }
.closed-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.closed-list li:first-child { border-top: 0; }
.sample__marks { color: var(--amber); font-weight: 700; }
.filters__fold > summary + h2 { margin-top: 4px; }

/* icons inside buttons and links (<icon name="…"/>, Icons.cs): a line drawing in the text's colour */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--small .icon { width: 1.05em; height: 1.05em; }
/* a copy icon on the same line as the text it copies (data-copy, site.js): no words, a tick once copied */
.copy-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 2px; vertical-align: middle; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--sans); }
.copy-icon:hover, .copy-icon:focus-visible { background: var(--paper-deep); color: var(--ink); }
.copy-icon .icon { width: 17px; height: 17px; }
/* Text to copy shown in a box or paragraph: the text, then the same copy icon at the end of the line. */
.copy-line { display: flex; align-items: center; gap: 6px; }
.copy-line > span { flex: 1; min-width: 0; }
.copy-line > .copy-icon { margin: -6px -4px -6px 0; }
.copy-line.ask-body > span { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.copy-line.ask-body { align-items: flex-start; }
/* an action that should stand out without being the page's main button */
.btn--soft { background: var(--card); color: var(--rufous-dark); box-shadow: inset 0 0 0 1.5px var(--rufous); }
.btn--soft svg { color: var(--rufous); }
.btn--soft:hover svg { color: #fff; }
.btn--soft:hover { background: var(--rufous); color: #fff; box-shadow: none; }
.btn:active { transform: translateY(1px); }

/* Sign in with Microsoft / Google (_SignInWith): each company's own words and logo, white, same size side by side */
.provider, .provider:hover { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px;
  background: #FFFFFF; border-radius: 4px; box-shadow: none; cursor: pointer; }
.provider--microsoft, .provider--microsoft:hover { border: 1px solid #8C8C8C; color: #5E5E5E; font: 600 15px/1 "Segoe UI", "Segoe UI Web", system-ui, sans-serif; }
.provider--google, .provider--google:hover { border: 1px solid #747775; color: #1F1F1F; font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif; letter-spacing: .25px; }
.provider:hover { background: #F8F8F8; }
.provider:focus-visible { outline: 2px solid var(--rufous); outline-offset: 2px; }
.provider__logo { width: 20px; height: 20px; flex: none; }
.provider--google .provider__logo { width: 18px; height: 18px; }

/* what the buyer asks for besides written answers, and the brief for an AI agent to build a demo */
.deliverable { padding: 14px 0; border-top: 1px solid var(--line); }
.deliverable:first-of-type { border-top: 0; padding-top: 6px; }
.deliverable p { margin: 4px 0 0; }
.deliverable__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.deliverable__head .tag { flex: none; margin-top: 1px; }
.deliverable__what { font-weight: 650; }
.deliverable__fact { color: var(--ink-2); }
.deliverable__k { color: var(--muted); display: inline-block; min-width: 132px; }
@media (max-width: 600px) { .deliverable__k { display: block; min-width: 0; } }

/* the buyer's words behind a rule or deliverable (_Quotes): folded under one small line, body size when open */
.quotes { margin: 6px 0 0; }
.quotes__toggle { cursor: pointer; color: var(--rufous-dark); font-size: 14px; font-weight: 600; list-style: none; padding: 4px 0; min-height: 24px; }
.quotes__toggle::-webkit-details-marker { display: none; }
.quotes__toggle::after { content: " ▾"; }
.quotes[open] > .quotes__toggle::after { content: " ▴"; }
.quotes__line { background: var(--paper); border-radius: 8px; padding: 8px 12px; margin: 6px 0 0; color: var(--ink-2); }
.quotes__from { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.brief { margin: 10px 0; }
.brief__text { max-height: 460px; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; font-size: 15px; line-height: 1.55; margin: 10px 0; }
.brief__text pre { white-space: pre-wrap; font: inherit; }
.brief__text h1 { font-size: 20px; margin: 14px 0 8px; }
.brief__text h2 { font-size: 16px; margin: 16px 0 6px; }
.brief__text blockquote { margin: 8px 0; padding: 8px 12px; background: var(--paper); border-radius: 8px; color: var(--muted); }

/* sign in by email */
.sign-in--email input[type=email] { width: 100%; }
.code-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.code-form .name { margin: 0; }
.code-input { font: 600 28px/1.2 var(--sans) !important; letter-spacing: 0.3em; text-align: center; width: 11ch !important; padding: 14px 16px !important; }
.code-input::placeholder { color: var(--line-strong); letter-spacing: 0.3em; }

/* a step that couldn't finish: what happened, and the way round it */
.problem p { margin: 0 0 8px; }
.problem .actions, .working .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* the signed-in person on Your firm */
.you .form--inline-actions { margin-top: 4px; }
.you .form--inline-actions input { flex: 1; }
.you form + .meta { margin: 10px 0 8px; }

/* short points instead of a paragraph (the tender summary, what the notice doesn't say): one size for both cards */
/* Written points (_Points): a topic on its own line, its detail under it, space and a light rule between points. */
.point-list { list-style: none; padding: 0; margin: 4px 0 0; }
.point-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.point-list li:first-child { border-top: 0; padding-top: 4px; }
.point__title { display: block; font-weight: 650; color: var(--ink); margin-bottom: 2px; }
.point__detail { display: block; color: var(--ink-2); }
.point-more > summary { cursor: pointer; font-size: 15px; font-weight: 650; color: var(--rufous-dark); padding: 10px 0 2px; list-style: none; }
.point-more > summary::-webkit-details-marker { display: none; }
.point-more > summary::after { content: " ▾"; }
.point-more[open] > summary { display: none; }
.point-more .point-list li:first-child { border-top: 1px solid var(--line); padding-top: 12px; }
.points { margin: 4px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.55; }
.points li { margin: 0 0 6px; }
.points li::marker { color: var(--rufous); }

/* "What to put" beside a firm's details box */
.hint { margin: 2px 0 10px; }
.hint summary { cursor: pointer; }
.points--small { font-size: 15px; }

/* your firms on Your firm */
.firms .firm-list li { gap: 12px; }

/* finding the firm at Companies House (_CompanyPicker) */
.company-picker label.name { display: block; margin: 10px 0 6px; }
.company-picker__box { position: relative; }
/* A list of suggestions under a box (site.js suggestions()): the company picker and "Near a town". */
.suggest-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 28px rgba(20, 24, 30, .14); max-height: 320px; overflow: auto; }
.suggest-list__item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.suggest-list__item:hover, .suggest-list__item:focus, .suggest-list__item.is-on { background: var(--paper); outline: none; }
.suggest-list:not([hidden]) { display: block; }
.suggest-list li { display: block; margin: 0; padding: 0; }
.suggest-list .suggest-list__item { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; width: 100%; font-weight: 400; color: var(--ink); }
.near-town__box { position: relative; flex: 1 1 0; min-width: 0; }
.near-town__box input[type=text] { width: 100%; }
.company-picker__picked { margin-top: 6px; color: var(--green); }
.linkish { border: 0; background: none; padding: 0; margin-left: 8px; color: var(--rufous-dark); text-decoration: underline; font: inherit; cursor: pointer; }

.note--green { background: var(--green-soft); color: var(--ink); }
.drafted p { margin: 0 0 8px; }
.prefill summary { cursor: pointer; }
.prefill form { margin-top: 6px; }

/* long names never push the header past the window: your name and your firm's are cut with an ellipsis */
.top__nav { min-width: 0; flex: 0 1 auto; }
.top__who { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.top__nav > a { flex-shrink: 0; }

/* a wait with something to show for it: a spinner and something to read */
.waiting { align-items: flex-start; }
.waiting .name { margin: 0 0 4px; }

/* waiting tips (_WaitingTips): one card, the current tip fades in, a dot for each */
.tips { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: left; }
.tips__mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rufous-soft); color: var(--rufous-dark); }
.tips__mark svg { width: 18px; height: 18px; }
.tips__body { flex: 1; min-width: 0; }
.tips__tag { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rufous-dark); }
.tips__stack { display: grid; }
.tips__tip { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease-in-out, visibility 0s linear .9s; font-size: 15px; line-height: 1.5; color: var(--ink); }
.tips__tip.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease-in-out, visibility 0s; }
.tips__dots { display: flex; gap: 6px; margin-top: 10px; }
.tips__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background .9s ease-in-out, width .9s ease-in-out; }
.tips__dots span.is-on { width: 16px; border-radius: 3px; background: var(--rufous); }
/* Drawn straight at the tip it had reached (after the page reloaded itself), and no fades for reduced motion. */
.tips--still .tips__tip, .tips--still .tips__dots span { transition: none; }
/* What to fix: Kestrel's summary of the review, at body size in short paragraphs. */
.review-summary { max-width: 68ch; margin: 0 0 16px; }
.review-summary p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tips__tip, .tips__dots span { transition: none; } }
.stale-form { padding-top: 18px; }

/* a firm's details, one box per part (_FirmFactsFields) */
.firm-parts__title { margin: 14px 0 2px; }
.firm-parts__progress { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft, #FBEFD9); font-size: 15px; }
.firm-parts__progress--done { background: var(--green-soft); }
/* one part after another with space between, no rules: the boxes themselves separate them */
.firm-parts__part { padding: 0; margin: 0 0 22px; }
.firm-parts__label { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.firm-parts__heading { font-weight: 650; font-size: 16px; }
.firm-parts__hint { margin: 0 0 8px; }
.firm-parts__optional { color: var(--muted); font-weight: 400; }
/* boxes that grow with their text (data-grow): no inner scroll bar, no drag handle */
textarea[data-grow] { resize: none; overflow: hidden; }
.firm-parts__part--todo textarea { border-color: var(--amber, #C8891D); }
.firm-parts__part--todo .gapbox { background: #FCFCFB; }

/* the tender page: one size for reading in the main column, one for the side panel */
.tender-page__main .card .meta, .tender-page__main > .meta { font-size: 16px; }
.tender-page .facts .kv, .tender-page .facts .meta { font-size: 15px; }

/* the account menu at the top right: the firm you're in, then your firms and sign out */
.account { position: relative; flex-shrink: 0; margin-left: 6px; }
.account > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-left: 0; max-width: 22ch; }
.account > summary::-webkit-details-marker { display: none; }
.account > summary svg { width: 14px; height: 14px; flex-shrink: 0; }
.account__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; width: max-content; max-width: 340px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 24, 31, .18); padding: 6px; z-index: 50; font-size: 15px; }
.account__menu a, .account__menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; font-weight: 550; font-size: 15px; }
.account__menu a:hover, .account__menu button:hover { background: var(--paper); }
.account__menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.account__who { margin: 0; padding: 8px 12px 10px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account__who strong { color: var(--ink); display: block; font-size: 15px; }
.account__menu a, .account__menu button, .account__current { display: flex; align-items: center; gap: 10px; }
.account__menu a svg, .account__menu button svg, .account__current svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.account__menu a[aria-current=page] { background: var(--paper); }
.account__sep { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; border-radius: 0; }
.account__firms { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.account__firms form { border-top: 0; margin-top: 0; padding-top: 0; }
.account__label { margin: 0; padding: 8px 12px 4px; color: var(--muted); font-size: 14px; }
.account__current { margin: 0; padding: 9px 12px; font-weight: 650; font-size: 15px; }
.account__current svg { color: var(--green, #2E7D4F); }
.firm-title { display: flex; align-items: center; gap: 14px; }
.firm-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: #fff; padding: 4px; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
.top--open .account__menu { position: static; box-shadow: none; margin-top: 6px; }
.top__nav { align-items: center; }
.account > summary.top__who { color: var(--cream); padding: 8px 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account > summary.top__who:hover { background: rgba(255, 255, 255, .08); }
.account[open] > summary.top__who { box-shadow: inset 0 0 0 1px var(--rufous); }
/* Phones and tablets: one menu. Menu opens the panel with the account menu's own items in it as one list (site.js opens
   the <details> with the panel); no firm button and no second dropdown (Lee, 13 Nov: "weird double menu on mobile"). */
@media (max-width: 900px) {
  .top--open .top__nav { align-items: stretch; }
  .top--open .account { margin: 0; }
  .top--open .account > summary { display: none; }
  .top--open .account__menu { position: static; min-width: 0; width: auto; max-width: none; margin: 6px 0 0; padding: 6px 0 0; background: transparent; color: var(--cream); border: 0; border-top: 1px solid rgba(241, 241, 239, .14); border-radius: 0; box-shadow: none; font-size: 16px; }
  .top--open .account__menu a, .top--open .account__menu button { color: var(--cream); padding: 12px 6px; border-radius: 0; font-size: 16px; font-weight: 600; }
  .top--open .account__menu a:hover, .top--open .account__menu button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .top--open .account__menu a[aria-current=page] { color: #fff; background: rgba(255, 255, 255, .08); border-radius: 8px; padding-left: 12px; }
  .top--open .account__menu a svg, .top--open .account__menu button svg { color: rgba(241, 241, 239, .75); }
  .top--open .account__who { padding: 8px 6px 12px; color: rgba(241, 241, 239, .75); font-size: 16px; border-bottom-color: rgba(241, 241, 239, .14); }
  .top--open .account__who strong { color: var(--cream); font-size: 16px; }
  .top--open .account__menu a.account__plan { border-bottom-color: rgba(241, 241, 239, .14); border-radius: 0; }
  .top--open .account__plan-use { color: rgba(241, 241, 239, .75); font-size: 16px; font-weight: 400; }
  .top--open .account__plan--low .account__plan-use { color: #F2C26B; }
  .top--open .account__sep, .top--open .account__firms, .top--open .account__menu > form { border-top-color: rgba(241, 241, 239, .14); }
  .top--open .account__label { padding: 12px 6px 4px; color: rgba(241, 241, 239, .75); font-size: 16px; }
  .top--open .account__current { padding: 12px 6px; color: var(--cream); font-size: 16px; font-weight: 600; }
  .top--open .account__current svg { color: #7BC79A; }
}


/* "Save for later" (_SaveButton) and the Saved list */
.save { margin: 0; display: inline-block; }
.save__button[aria-pressed=true] { color: var(--rufous-dark); box-shadow: inset 0 0 0 1px var(--rufous); }
.save__button[aria-pressed=true] svg { fill: currentColor; }
.facts .save { display: block; margin-top: 8px; }
.facts .save .btn { width: 100%; justify-content: center; }
.match__body .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.match__body .actions .apply { margin: 0; }
/* Help me apply and Save for later side by side: one height, room between them and above. */
.match__body .actions { gap: 12px 14px; margin-top: 18px; }
.match__body .actions .btn { padding: 9px 16px; font-size: 15px; min-height: 40px; }
.saved__body .meta { margin: 0; }
.saved__applying { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.top__nav > a svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }

/* "Not for us" (_NotForUs): the reasons under a tender, the note left in its place, the suggested line, what's left out */
.not-for-us { display: inline-block; }
.not-for-us[open] { display: block; }
.not-for-us__reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.match__body .not-for-us__reasons .btn { padding: 6px 14px; font-size: 14px; min-height: 36px; }
.not-for-us__problem { margin: 10px 0 0; }
.not-for-us__out { display: flex; flex-direction: column; gap: 12px; }
.not-for-us__out > .card { margin: 0; }
.not-for-us__taken { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.not-for-us__taken p { margin: 0; flex: 1 1 260px; }
.not-for-us__taken form { margin: 0; }
.not-for-us__offer { background: var(--green-soft); box-shadow: none; }
.not-for-us__offer .name { margin: 0 0 6px; }
.not-for-us__offer .meta { margin: 6px 0 0; color: var(--ink-2); }
.not-for-us__offer .actions form { margin: 0; }
.not-for-us__line { margin: 0; font-weight: 650; }
.not-for-us__left { margin: 18px 0 0; }
.not-for-us__left > summary { cursor: pointer; color: var(--ink-2); font-size: 15px; padding: 6px 0; }
.not-for-us__list { list-style: none; padding: 0; margin: 8px 0 0; }
.not-for-us__list li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.not-for-us__list form { margin: 0; }
.not-for-us__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }

/* Found by the design check: labels above titles readable (4.5:1), and buttons big enough to tap on a phone */
.eyebrow { color: var(--rufous-dark); }
.hero .eyebrow { color: #F0B48F; }
@media (max-width: 720px) { .btn--small, .btn { min-height: 36px; } }
.promises li { font-size: 14px; }
.agents__asks li { font-size: 16px; }

/* The wait for tenders that fit (For your firm): a bar, steps that tick off, and the shape of the results to come */
.progress { padding: 20px 22px; }
.progress__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress__head .name { margin: 0; }
.progress__bar { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; margin: 14px 0 16px; }
.progress__bar span { display: block; height: 100%; width: 4%; border-radius: inherit; background: var(--rufous); transition: width 20s cubic-bezier(.2, .6, .3, 1); }
.progress.is-running .progress__bar span { width: 92%; }
.progress__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.progress__steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; transition: color .3s; }
.progress__steps li.is-on { color: var(--ink); font-weight: 600; }
.progress__steps li.is-done { color: var(--ink-2); }
.progress__mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); box-sizing: border-box; position: relative; }
.is-on > .progress__mark { border-color: var(--rufous); border-right-color: transparent; animation: spin .8s linear infinite; }
.is-done > .progress__mark { border-color: var(--green, #2F7D4F); background: var(--green, #2F7D4F); }
.is-done > .progress__mark::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.skeleton-list { display: grid; gap: 12px; margin: 16px 0; }
.skeleton { display: grid; gap: 10px; padding: 18px 22px; }
.skeleton__line { display: block; height: 12px; border-radius: 6px; width: 70%; background: linear-gradient(90deg, var(--paper) 0%, #EEEEEC 50%, var(--paper) 100%); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.skeleton__line--title { height: 16px; width: 55%; }
.skeleton__line--short { width: 30%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton__line, .is-on > .progress__mark { animation: none; } .progress__bar span { transition: none; } }
#matches > .tips { margin-top: 4px; }

/* Tabs: a few views of one list (For your firm: All that fit, Small contracts) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin: 8px 0 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 10px 16px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--rufous); }
/* The home feed's switcher (Recommended or a saved search): tabs that post, since the choice is kept on the account. */
.feed-tabs button { background: none; border: 0; border-radius: 0; padding: 10px 16px 12px; color: var(--ink-2); font-weight: 600; font-size: 16px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.feed-tabs button:hover { background: none; color: var(--ink); }
.feed-tabs button[aria-current=page] { color: var(--ink); border-bottom-color: var(--rufous); }
.feed-tabs button.is-busy::before { width: .8em; height: .8em; }
.feed-search__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.saved-searches { margin-bottom: 28px; }
.saved-search { display: flex; flex-direction: column; gap: 6px; }
.saved-search p { margin: 0; }
.saved-search .actions { margin-top: 6px; }
.saved-search__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.saved-search .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.saved-search .actions form { margin: 0; }
.save-search .confirm__panel form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.save-search .confirm__panel input[type=text] { flex: 1 1 200px; }

/* Your firm: an in-page "are you sure?" (never a browser pop-up), the webhook box, and what's changed */
.firm-list__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: flex-start; }
.firm-list__actions > .meta { align-self: center; }
.firm-list li:has(.confirm[open]) { flex-wrap: wrap; }
.firm-list__actions:has(.confirm[open]) { flex-basis: 100%; justify-content: flex-start; }
.confirm > summary { list-style: none; cursor: pointer; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] { flex-basis: 100%; }
.confirm__panel { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.confirm__panel p { margin: 0 0 10px; }
#webhook .form--inline-actions input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; }
#webhook > form + form { margin-top: 8px; }
.activity { list-style: none; margin: 8px 0 8px; padding: 0; }
.activity li { padding: 7px 0; border-top: 1px solid var(--line); }
.activity li:first-child { border-top: 0; }
.activity__line { overflow-wrap: anywhere; }
.activity__more > summary { list-style: none; cursor: pointer; display: inline-flex; }
.activity__more > summary::-webkit-details-marker { display: none; }
.activity__more[open] > summary { display: none; }

/* Ready to send: the buyer's forms filled in, and "Check the pack" (Check page). */
.pack-forms, .pack-check { margin-bottom: 18px; }
.pack-forms__list { list-style: none; padding: 0; margin: 12px 0 0; }
.pack-forms__item { border-top: 1px solid var(--line); padding: 12px 0; }
.pack-forms__name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 4px; }
.pack-forms__upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 0; }
.pack-forms__upload input[type=file] { flex: 1 1 220px; padding: 10px; }
.pack-forms__item .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pack-check__summary { font-weight: 600; margin: 10px 0; }
.pack-check__summary.is-todo { color: var(--rufous-dark); }
.pack-check__attention .checklist__mark { color: var(--rufous-dark); font-weight: 700; }
.pack-check__cant_check .checklist__mark { color: var(--muted); font-weight: 700; }
.pack-check__assessment { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }

/* Your firm: the plan, its limits and this month's AI use. */
.plan__bar { height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; margin: 8px 0 6px; box-shadow: inset 0 0 0 1px var(--line); }
.plan__bar span { display: block; height: 100%; border-radius: inherit; background: var(--rufous); }
.plan__limits { margin-top: 10px; }
.plan__limits summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }

/* a long fact in the side panel folds after its first lines (KvFold) */
.kv__more > summary { cursor: pointer; color: var(--rufous-dark); font-weight: 600; list-style: none; padding: 2px 0; }
.kv__more > summary::-webkit-details-marker { display: none; }
.kv__more > summary::after { content: " ▾"; }
.kv__more[open] > summary { display: none; }

/* an application: the steps, and beside them the firm's details every application uses (under them on narrow screens) */
.app-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.app-page__side .firm { margin-top: 0; }
.app-page__side .firm textarea { min-height: 72px; }
@media (max-width: 1000px) { .app-page { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.firm-parts__more > summary { cursor: pointer; font-weight: 650; color: var(--rufous-dark); padding: 10px 0 4px; list-style: none; }
.firm-parts__more > summary::-webkit-details-marker { display: none; }
.firm-parts__more > summary::after { content: " ▾"; }
.firm-parts__more[open] > summary::after { content: " ▴"; }
.firm-parts__more > summary .meta { font-weight: 400; }
/* the box a link just took you to (site.js, openAround) */
.is-pointed { outline: 3px solid var(--rufous); outline-offset: 2px; transition: outline-color .4s; }

/* a rule's own fix, opened in place: one part of the firm's details under the rule (_RuleRow) */
.rule__edit > summary { cursor: pointer; list-style: none; color: var(--rufous-dark); text-decoration: underline; text-underline-offset: 3px; padding: 3px 0; display: inline-block; }
.rule__edit > summary::-webkit-details-marker { display: none; }
.rule__edit > summary::after { content: " ▾"; text-decoration: none; display: inline-block; margin-left: 4px; }
.rule__edit[open] > summary::after { content: " ▴"; }
.rule__guide { margin: 6px 0 4px; padding: 12px 14px; background: var(--paper); border-radius: 10px; }
.rule__guide > p { margin: 0 0 8px; }
.rule__guide > p:last-child { margin-bottom: 0; }
.rule__guide .points { margin: 0 0 10px; }
.rule__guide-head { font-weight: 650; margin-top: 4px; }
.rule__form { margin: 6px 0 4px; padding: 12px 14px; background: var(--paper); border-radius: 10px; }
.rule__form .firm-parts__part { margin: 0; }
.rule__form textarea { width: 100%; }
.rule__form .form--inline-actions { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* the firm's details beside an application fold to their heading and progress */
.firm-fold > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; }
.firm-fold > summary::-webkit-details-marker { display: none; }
.firm-fold > summary::after { content: "▾"; grid-column: 2; grid-row: 1; color: var(--muted); font-size: 12px; }
.firm-fold[open] > summary::after { content: "▴"; }
.firm-fold > summary .firm-parts__title { margin: 0; }
.firm-fold > summary .meta { grid-column: 1 / -1; }
.firm-fold[open] > summary { margin-bottom: 8px; }
.firm-fold[open] > summary .meta { display: none; }
/* One person beats a bid team (docs/beat-a-team-plan.md) */
input[type=date], select { font: inherit; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
input[type=date]:focus, select:focus { outline: none; border-color: var(--rufous); box-shadow: 0 0 0 3px var(--rufous-soft); }
/* how the buyer marks: its own scale, top mark first */
.marking .scale { list-style: none; margin: 6px 0 12px; padding: 0; }
.marking .scale li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.marking .scale li:first-child { border-top: 0; }
.scale__mark { font-weight: 650; }
.scale__means { color: var(--ink-2); }
@media (max-width: 560px) { .marking .scale li { grid-template-columns: 1fr; gap: 2px; } }
/* reminders and the calendar on the timetable */
.reminders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.reminders a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
/* a question only the firm can answer, and where its answer goes */
.fact-ask { padding: 10px 0; border-top: 1px solid var(--line); }
.fact-ask__q { display: block; font-weight: 600; margin-bottom: 6px; }
.fact-ask__line { display: flex; gap: 8px; align-items: center; margin: 0; }
.fact-ask__line input { flex: 1; }
.fact-ask__line .btn { flex: none; }
@media (max-width: 560px) { .fact-ask__line { flex-wrap: wrap; } .fact-ask__line .btn { width: 100%; } }
/* social value promises to tick and set numbers in */
.commitments { list-style: none; margin: 8px 0 12px; padding: 0; }
.commitments__item { padding: 10px 0; border-top: 1px solid var(--line); }
.commitments__item:first-child { border-top: 0; }
.commitments__line { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; }
.commitments__line input[type=checkbox] { flex: none; width: 20px; height: 20px; }
.commitments__item .meta { margin: 0 0 0 30px; }
/* how did it go, and the buyer's marks */
.outcome .actions { margin: 8px 0; }
.marks { list-style: none; margin: 6px 0 12px; padding: 0; }
.marks li { padding: 8px 0; border-top: 1px solid var(--line); }
.marks li:first-child { border-top: 0; }
.marks__q { font-weight: 650; }
.marks__why { display: block; color: var(--ink-2); margin-top: 2px; }
/* the buyer's forms: what goes in each box */
.form-fill { margin: 8px 0 0; }
.form-fill details summary { cursor: pointer; padding: 6px 0; }
.form-fill__list { list-style: none; margin: 4px 0 10px; padding: 0; }
.form-fill__list li { padding: 8px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.form-fill__k { font-weight: 600; }
.form-fill__list .copy-line { margin: 0; }
/* the firm's documents */
.first-bid__item { padding: 10px 0; border-top: 1px solid var(--line); }
.first-bid__item:first-child { border-top: 0; }
.first-bid__item .meta { margin: 4px 0 0 28px; }
.first-bid__time { color: var(--ink-2); }
.doc { border-top: 1px solid var(--line); padding: 12px 0; }
.doc summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc__title { font-weight: 650; }
.doc textarea { margin-top: 10px; }
.doc__again { margin-top: 10px; }
.doc-types { list-style: none; margin: 6px 0 0; padding: 0; }
.doc-types li { padding: 10px 0; border-top: 1px solid var(--line); }
.doc-types li:first-child { border-top: 0; }
.doc-types__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-types__row .btn { flex: none; }
@media (max-width: 560px) { .doc-types__row { flex-wrap: wrap; } }
.upload-doc label { display: block; margin: 12px 0 4px; font: 600 15px/1.4 var(--sans); color: var(--ink); }
/* your bids so far */
.bids { list-style: none; margin: 8px 0 0; padding: 0; }
.bids__item { padding: 12px 0; border-top: 1px solid var(--line); }
.bids__item:first-child { border-top: 0; }
.bids__title { font-weight: 650; margin: 0 0 2px; }
.bids__item .actions { margin-top: 8px; }
.holders__facts li { margin: 4px 0; }
/* what the buyer's answers change, and where a bid says two things */
.changes { list-style: none; margin: 6px 0 16px; padding: 0; }
.change { padding: 12px 0; border-top: 1px solid var(--line); }
.change:first-child { border-top: 0; padding-top: 6px; }
.change p { margin: 4px 0 0; }
.change__title { font-weight: 650; }
.change .quote { margin: 6px 0 0; }
.doc-types__name { font-weight: 650; }
.first-bid__why summary { cursor: pointer; padding: 4px 0; }
.first-bid__why p { margin: 2px 0 0 28px; }
.first-bid__why summary.meta { margin-left: 28px; }
.bid-outcome .actions { margin: 8px 0; }

/* the plan card (_PlanCard): amber near the month's limit; beside the work, it sits under the firm's details */
.plan--low .plan__bar span { background: var(--amber, #C8891D); }
.app-page__side .plan { margin-top: 12px; }
/* the plan in one line in the account menu */
.account__menu a.account__plan { align-items: flex-start; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.account__plan > span { display: flex; flex-direction: column; }
.account__plan-use { color: var(--muted); font-weight: 400; font-size: 14px; }
.account__plan--low .account__plan-use { color: var(--amber-ink); }
/* the buyer's letter for a past bid: the file box full width, its button under it, lined up with the buttons above (Lee, 13 Nov) */
.bid-outcome__letter { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px 0 0; }
.bid-outcome__letter input[type=file] { width: 100%; }
.bid-outcome .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bid-outcome .actions form { margin: 0; }
/* Your bids so far, in the side column of Your applications: compact */
.app-page__side .past-bids { margin-top: 12px; }
.app-page__side .bid-outcome__letter input[type=file] { padding: 10px; }
.app-page__side .bids__item { padding: 12px 0; }

/* "Is this tender for us?" (_FitTalk): Kestrel's turns plain, the person's on the right in a soft bubble. */
.fit-talk__intro { margin: 0 0 12px; }
.fit-talk__log { display: flex; flex-direction: column; gap: 14px; }
.fit-talk__log:not(:empty) { margin-bottom: 14px; }
.fit-talk__turn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fit-talk__reply { margin: 0; font-size: 16px; line-height: 1.55; }
.fit-talk__reply + .fit-talk__reply { margin-top: 4px; }
.fit-talk__head { margin: 4px 0 0; font-size: 16px; font-weight: 650; }
.fit-talk__turn .points { margin: 0; }
.fit-talk__saved { margin: 4px 0 0; align-self: stretch; }
.fit-talk__saved p { margin: 0 0 4px; }
.fit-talk__saved .points { margin: 0; font-size: inherit; }
.fit-talk__you { align-self: flex-end; max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 16px; line-height: 1.55; white-space: pre-wrap; }
.fit-talk__say { display: flex; gap: 10px; align-items: flex-end; }
.fit-talk__say textarea { flex: 1; }
/* how the buyer marks it, in the side column of an application: the scale folds, each level its name then what it means */
.app-page__side .marking { margin-top: 12px; }
.marking__scale > summary { cursor: pointer; list-style: none; }
.marking__scale > summary::-webkit-details-marker { display: none; }
.marking__scale > summary::after { content: " ▾"; }
.marking__scale[open] > summary::after { content: " ▴"; }
.app-page__side .marking .scale li { grid-template-columns: 1fr; gap: 2px; }
.app-page__side .marking .scale__means { color: var(--ink-2); font-size: 14px; }
/* Ask about this tender, in the side column of an application: the box over its button */
.app-page__side .ask { margin-top: 0; }
.ask__form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ask__form .name { margin: 0; }
.ask__form input { width: 100%; }
.ask__form .btn { align-self: flex-start; }
.app-page__side .ask + .firm { margin-top: 12px; }
/* what buyers said about answers like this one (_PastMarks), under a question on an application */
.past-marks { list-style: none; margin: 6px 0 8px; padding: 0; font-size: 14px; color: var(--ink-2); }
.past-marks li { margin: 2px 0; }
.past-marks b { white-space: nowrap; }
/* how this buyer has asked before (_BuyerNotes): a few facts, then the kinds of question it asks most; the scale's names fold */
.buyer-notes__facts, .buyer-notes__kinds { list-style: none; margin: 6px 0 10px; padding: 0; }
.buyer-notes__facts li, .buyer-notes__kinds li { margin: 4px 0; }
.buyer-notes__scale { margin: 8px 0 4px; }
.buyer-notes__scale > summary { cursor: pointer; list-style: none; }
.buyer-notes__scale > summary::-webkit-details-marker { display: none; }
.buyer-notes__scale > summary::after { content: " ▾"; color: var(--muted); }
.buyer-notes__scale[open] > summary::after { content: " ▴"; }
.buyer-notes__scale > .meta { margin: 4px 0 0; }
.app-page__side .buyer-notes { margin-top: 12px; }
.app-page__side .buyer-notes__facts, .app-page__side .buyer-notes__kinds, .app-page__side .buyer-notes__scale > summary { font-size: 14px; }
/* the firm's record by buyer, size of contract and kind of question, in Your bids so far: three narrow columns */
.record-table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; }
.record-table__note { margin: 14px 0 0; }
.record-table__note + .record-table { margin-top: 6px; }
.record-table th { text-align: left; color: var(--muted); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line-strong); }
.record-table td { font-size: 14px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.record-table tr:last-child td { border-bottom: 0; }
.record-table th:not(:first-child), .record-table td:not(:first-child) { width: 1%; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.record-table th:last-child, .record-table td:last-child { padding-right: 0; }
/* Your evidence (_EvidenceList): each case study or referee on a line of its own, its form folded under it */
.evidence { list-style: none; margin: 8px 0 12px; padding: 0; }
.evidence__item { padding: 14px 0; border-top: 1px solid var(--line); }
.evidence__item:first-child { border-top: 0; padding-top: 6px; }
.evidence__item > p { margin: 4px 0 0; }
.evidence__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evidence__title { font-weight: 650; }
.evidence__uses-title { margin: 10px 0 0; font-weight: 650; }
.evidence__uses { list-style: none; margin: 2px 0 0; padding: 0; }
.evidence__uses li { margin: 2px 0; }
.evidence__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 8px 0 0; }
.evidence__edit[open] { flex-basis: 100%; }
.evidence__edit > summary { cursor: pointer; color: var(--rufous-dark); font-weight: 650; padding: 6px 0; }
.evidence__remove { margin: 0; }
.evidence__add { margin: 10px 0 0; }
.evidence__add > summary { list-style: none; }
.evidence__add > summary::-webkit-details-marker { display: none; }
.evidence__add[open] > summary { margin-bottom: 4px; }
.evidence-form { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; }
.evidence-form label { display: block; margin: 10px 0 2px; font: 600 15px/1.4 var(--sans); color: var(--ink); }
.evidence-form .pair { gap: 0 14px; }
.evidence-form .pair > div { gap: 0; }
.evidence-form__check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.evidence-form__check input { width: 20px; height: 20px; flex: none; }
.evidence-form .btn { margin-top: 10px; }
/* "Add a bid you made before" (_ImportBid): the upload beside the bids, what was found to check above the
   applications, and a fold on the welcome screen */
.app-page__side .import-bid { margin-top: 12px; }
.import-bid__upload { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 10px 0 6px; }
.import-bid__upload input[type=file] { padding: 12px; }
.import-bid__found { list-style: none; margin: 12px 0 14px; padding: 0; }
.import-bid__found li { padding: 10px 0; border-top: 1px solid var(--line); }
.import-bid__found li:first-child { border-top: 0; padding-top: 0; }
.import-bid__ref { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.import-bid__pick { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.import-bid__pick input[type=checkbox] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
.import-bid__fold { margin: 4px 0 0 30px; }
.import-bid__fold > summary { cursor: pointer; }
.import-bid__answer { white-space: pre-wrap; font-size: 15px; color: var(--ink-2); margin: 6px 0 0; max-height: 360px; overflow-y: auto; }
/* The tender across the top; under it the buyer takes what's left beside the year and the value, and they wrap onto lines of their own when there's no room. */
.import-bid__fields { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 10px; }
.import-bid__field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.import-bid__fields .import-bid__field { margin: 0; flex: 1 1 18rem; min-width: 0; }
.import-bid__fields .import-bid__field--year { flex: 0 0 8rem; }
.import-bid__fields .import-bid__field--value { flex: 0 0 12rem; }
.import-bid__field label, .import-bid__result legend { font-weight: 600; }
.import-bid__fields .import-bid__field--wide { flex: 1 1 100%; }
.import-bid__result { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.import-bid__result legend { padding: 0; margin-bottom: 6px; width: 100%; }
@media (max-width: 640px) { .import-bid__fields .import-bid__field, .import-bid__fields .import-bid__field--year, .import-bid__fields .import-bid__field--value { flex: 1 1 100%; max-width: none; } }
.import-bid--welcome { border-top: 1px solid var(--line); padding-top: 12px; }
.import-bid--welcome > summary { cursor: pointer; font-weight: 600; }
.import-bid--welcome[open] > summary { margin-bottom: 8px; }
.import-bid--welcome input[type=file] { margin-top: 8px; }
.bids__remove { margin: 8px 0 0; }
.import-bid--found .form--inline-actions { flex-wrap: wrap; }
.import-bid--found .form--inline-actions .btn { white-space: nowrap; }

/* What changed since I looked (_AnswerHistory): who last changed an answer, and its earlier wordings to put back */
.answer-history { margin: 6px 0 4px; font-size: 14px; color: var(--ink-2); }
.answer-history__line { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.answer-history__line .icon { width: 1.05em; height: 1.05em; }
.answer-history__fold { margin-top: 6px; }
.answer-history__fold > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.answer-history__item { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.answer-history__who { margin: 0 0 6px; }
.answer-history__text { white-space: pre-wrap; font-size: 14px; color: var(--ink); }
.answer-history__back { margin: 8px 0 0; }
/* Sign-off before sending (_Approval), on Ready to send */
.approval { display: grid; gap: 8px; }
.approval > p { margin: 0; }
.approval__line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.approval__line.is-done .icon { color: var(--green); }
.approval__changes { margin: 0; font-size: 14px; }
.approval__changes li { margin: 2px 0; }
.approval__form { margin: 4px 0 0; }
/* The firm's own dates on an application (#reminders): what they are, and a fold to change them */
.firm-dates__about { display: block; font-weight: 500; }
.firm-dates__change { margin-top: 8px; }
.firm-dates__change > summary { list-style: none; cursor: pointer; display: inline-flex; }
.firm-dates__change > summary::-webkit-details-marker { display: none; }
.firm-dates__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.firm-dates__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; margin: 0; }
.firm-dates__field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.firm-dates__save { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; flex-basis: 100%; }
/* "Should we bid?" (_BidDecision): everyone's answer, one per line, then the form or the decision */
.decide__outcome { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.decide__votes { list-style: none; padding: 0; margin: 4px 0 10px; }
.decide__votes li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.decide__votes li:first-child { border-top: 0; }
.decide__who { font-weight: 600; }
.decide__why { color: var(--ink-2); }
.decide__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0 0; }
.decide__field { display: flex; flex-direction: column; gap: 4px; flex: 0 1 180px; margin: 0; }
.decide__field--why { flex: 1 1 260px; }
.decide__field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.decide__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.decide__form .decide__actions { margin: 0; }
.decide__change { margin-top: 8px; }
.decide__change > summary { list-style: none; cursor: pointer; display: inline-flex; }
.decide__change > summary::-webkit-details-marker { display: none; }
.decide__result { margin: 10px 0 0; }
@media (max-width: 600px) { .decide__votes li { grid-template-columns: auto 1fr; } .decide__why { grid-column: 1 / -1; } }

/* Your applications: working on, only looked at (folded), bids closed (folded). A row on a desktop (title, when and how
   far along, Remove); on a phone the title has the full width and the rest goes under it. */
.apps { list-style: none; margin: 8px 0 12px; padding: 0; }
.apps__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto; gap: 4px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.apps__row:first-child { border-top: 0; }
.apps__title { min-width: 0; overflow-wrap: anywhere; }
.apps__meta { text-align: right; }
.apps__remove { margin: 0; }
.apps-fold { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.apps-fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.apps-fold > summary::-webkit-details-marker { display: none; }
.apps-fold > summary::after { content: "▾"; color: var(--muted); font-size: 12px; margin-left: auto; }
.apps-fold[open] > summary::after { content: "▴"; }
.apps-fold > summary .name { margin: 0; }
@media (max-width: 720px) {
    .apps__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .apps__meta { text-align: left; }
    .apps__remove { justify-self: start; }
}
