/*
 * ProcureFeed - one stylesheet for every page.
 *
 * Plain and sturdy, like a public notice board that is well kept. One
 * typeface, Public Sans - the open typeface made for government websites -
 * served from /assets/fonts (OFL), so no page asks a third party for
 * anything. Warm paper, near-black ink, one green for links and what is open,
 * colour elsewhere only where it means something: a tender's status. Square
 * corners kept small, borders thin, no shadows but one, no decoration.
 *
 * Motion is kept to what helps: the homepage headline sets itself, a stack of
 * real tenders turns over, the newest run past in a ticker, numbers count to
 * today's figure, sections rise into place as you reach them. All of it stops
 * for anyone whose system asks for less motion.
 *
 * Spacing runs on one scale: 4, 8, 12, 16, 24, 32, 48, 64.
 *
 * Light and dark share every token. Light is the default; dark only when the
 * visitor picks it with the header's switch (set before first paint by a few
 * lines in <head>).
 */

@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #f6f5f1;          /* paper */
  --bg-2: #efede7;        /* one shade down */
  --bg-3: #e6e3db;
  --surface: #fdfcfa;     /* a sheet on the paper */
  --fg: #16191a;          /* ink */
  --fg-2: #353b3c;
  --muted: #61686a;
  --line: #dddad2;
  --line-2: #c6c2b8;

  --link: #1d5c43;
  --link-hover: #123f2d;
  --primary: #16191a;
  --primary-hover: #2b3132;
  --primary-fg: #f6f5f1;
  --accent: #d3ecdc;      /* the light green, behind what is open */
  --accent-fg: #123f2d;
  --accent-ink: #1d5c43;
  --focus: #1d5c43;

  --open: #1a5e3f;
  --open-bg: #e0efe5;
  --soon: #7a4b05;
  --soon-bg: #f6ead0;
  --closed: #5f6566;
  --closed-bg: #ebe9e3;
  --award: #224777;
  --award-bg: #e3eaf3;
  --urgent: #9f1d26;      /* under three days left */
  --urgent-bg: #f7e0dd;
  --danger: #b4232c;

  --radius: 8px;
  --radius-lg: 12px;
  --wrap: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111413;
  --bg-2: #171b1a;
  --bg-3: #1e2321;
  --surface: #141817;
  --fg: #eceeec;
  --fg-2: #c9cecb;
  --muted: #929a96;
  --line: #262c2a;
  --line-2: #38403d;

  --link: #8fd4ae;
  --link-hover: #b8e8cc;
  --primary: #eceeec;
  --primary-hover: #ffffff;
  --primary-fg: #111413;
  --accent: #1f3a2d;
  --accent-fg: #cdeedb;
  --accent-ink: #8fd4ae;
  --focus: #8fd4ae;

  --open: #8fd4ae;
  --open-bg: rgba(110, 196, 148, .14);
  --soon: #e9bd63;
  --soon-bg: rgba(214, 160, 50, .14);
  --closed: #929a96;
  --closed-bg: rgba(146, 154, 150, .13);
  --award: #a3c2ea;
  --award-bg: rgba(110, 160, 225, .14);
  --urgent: #ff9d94;
  --urgent-bg: rgba(255, 112, 100, .16);
  --danger: #ff8a80;
  color-scheme: dark;
}

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

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over any display a class sets (.new, .scope, .empty). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px);
  scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
::selection { background: var(--accent); color: var(--accent-fg); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: -.015em; }
h1 { font-size: 36px; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 12px; text-wrap: balance; }
h2 { font-size: 21px; margin: 48px 0 16px; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
svg { display: inline-block; vertical-align: middle; flex: none; }
@media (max-width: 640px) { h1 { font-size: 30px; } h2 { margin-top: 40px; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.read { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.note { color: var(--muted); font-size: 14px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 720px; margin-bottom: 12px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -44px; background: var(--fg); color: var(--bg);
  padding: 8px 12px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 8px; color: var(--bg); }

/* -------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.is-scrolled .site-header { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 18px;
  color: var(--fg); letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--fg); text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 6px; background: #16191a;
  display: grid; place-items: center; color: #d3ecdc; }
:root[data-theme="dark"] .brand .mark { box-shadow: inset 0 0 0 1px var(--line-2); }
.brand .mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links li { margin: 0; }
.nav-links a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg-2); font-size: 15px;
  font-weight: 500; }
.nav-links a:hover { background: var(--bg-2); color: var(--fg); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--fg); font-weight: 650; }
.header-search { flex: 1 1 240px; max-width: 360px; display: flex; position: relative; }
.header-search input {
  width: 100%; height: 38px; padding: 0 40px 0 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg);
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.header-search button { position: absolute; right: 3px; top: 3px; width: 32px; height: 32px; border: 0;
  border-radius: 6px; background: transparent; color: var(--fg-2); cursor: pointer; display: grid; place-items: center; }
.header-search button:hover { background: var(--bg-2); color: var(--fg); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--fg-2); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
.nav-dash[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-2); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  /* Two rows here: stuck to the top it would cover a seventh of a phone. */
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
  .site-header .wrap { flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; padding-bottom: 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-links { display: none; order: 4; flex-basis: 100%; flex-direction: column; padding-bottom: 4px; }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 10px 8px; font-size: 16px; }
  .nav-toggle { display: inline-grid; }
}
/* Narrow phones: tighter, so the brand, the theme switch, Dashboard and the
   menu stay on one row; the smallest give up the brand's word first. */
@media (max-width: 400px) {
  .site-header .wrap { column-gap: 6px; }
  .header-end { gap: 4px; }
  .brand { font-size: 17px; }
  .nav-dash { padding: 0 10px; }
}
@media (max-width: 359px) { .brand { font-size: 0; gap: 0; } }

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

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--fg); font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--bg-2); color: var(--fg); text-decoration: none; }
.btn:disabled, .btn.is-busy { opacity: .55; cursor: default; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-fg); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; }
.btn-link { border: 0; background: none; color: var(--link); padding: 0; height: auto; font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; color: var(--link-hover); }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

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

/* A tender's status: a word on a tint, nothing more. */
.label { display: inline-block; padding: 0 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600;
  line-height: 22px; white-space: nowrap; border: 1px solid transparent; }
.label-open { color: var(--open); background: var(--open-bg); }
.label-soon { color: var(--soon); background: var(--soon-bg); }
.label-closed { color: var(--closed); background: var(--closed-bg); }
.label-awarded { color: var(--award); background: var(--award-bg); }
.label-plain { color: var(--muted); border-color: var(--line); font-weight: 500; background: transparent; }
/* How long is left, coloured by how soon: the first thing on every card. */
.cd { display: inline-block; padding: 0 8px; border-radius: 4px; font-size: 12.5px; font-weight: 700;
  line-height: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-urgent { color: var(--urgent); background: var(--urgent-bg); }
.cd-soon { color: var(--soon); background: var(--soon-bg); }
.cd-open { color: var(--open); background: var(--open-bg); }
.cd-closed { color: var(--closed); background: var(--closed-bg); }
.cd-awarded { color: var(--award); background: var(--award-bg); }
.new { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11.5px; font-weight: 700;
  line-height: 20px; letter-spacing: .02em; color: var(--accent-fg); background: var(--accent); }
.cc { display: inline-block; min-width: 26px; padding: 0 4px; margin-right: 6px; border-radius: 3px;
  border: 1px solid var(--line-2); font: 600 10.5px/16px var(--mono); color: var(--fg-2); text-align: center; }

/* --------------------------------------------------------- breadcrumbs */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 16px; padding: 0; list-style: none;
  font-size: 14px; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

/* ------------------------------------------------------------- results */

/* A list of tenders: one row each, the way a search result reads. */
.results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden; }
.result { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 4px 24px;
  padding: 16px 20px; margin: 0; border-top: 1px solid var(--line); transition: background-color .2s; }
.result .top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px;
  font-size: 13px; color: var(--muted); }
.result .top .where { color: var(--fg-2); }
.result .facts-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; font-size: 13px; }
.result .facts-line span { padding: 1px 8px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.result .scope { margin: 6px 0 0; font-size: 14px; color: var(--muted); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The official notice and save sit above the card-wide link. */
.result .acts { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px;
  position: relative; z-index: 2; }
.src-link { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; font-size: 13px;
  font-weight: 600; border: 1px solid var(--line); border-radius: 6px; color: var(--fg-2); background: var(--surface); }
.src-link:hover { color: var(--fg); border-color: var(--line-2); text-decoration: none; }
.src-link svg { width: 14px; height: 14px; }
.save-btn { width: 32px; height: 30px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg-2); cursor: pointer; }
.save-btn:hover { color: var(--fg); border-color: var(--line-2); }
.save-btn svg { width: 16px; height: 16px; }
.save-btn.on { color: var(--primary-fg); background: var(--primary); border-color: var(--primary); }
.save-btn.on svg path { fill: currentColor; }
.result:first-child { border-top: 0; }
.result::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fg);
  transform: scaleY(0); transition: transform .25s var(--ease); }
.result:hover { background: var(--bg); }
.result:hover::before { transform: scaleY(1); }
.result h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 4px; overflow-wrap: anywhere; }
.result h3 a { color: var(--fg); }
.result h3 a:hover { color: var(--link); }
/* The whole row opens the tender, not only its title: the title's link is
   stretched over the row. Nothing else in a row is a link or a button. */
.result h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.result .sub { font-size: 14px; color: var(--fg-2); margin: 0; }
.result .sub span + span::before { content: "\00B7"; margin: 0 6px; color: var(--line-2); }
.result .side { text-align: right; font-size: 14px; color: var(--fg-2); display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; }
.result .side .when { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.result .side .val { color: var(--muted); font-variant-numeric: tabular-nums; }
.result .side .money { color: var(--fg); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .result { grid-template-columns: 1fr; padding: 16px; }
  .result .side { text-align: left; align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px 12px;
    margin-top: 8px; }
  .result .acts { margin: 0 0 0 auto; padding: 0; }
}

/* A list page's heading over its rows, and the way on to the rest. */
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 16px; margin: 0 0 12px; }
.list-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.list-head .see-all { font-size: 14px; font-weight: 600; white-space: nowrap; }
.list-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0 0; font-size: 14px; }
.list-more a:not(.btn) { font-weight: 500; }

.list-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; }
/* The search page's scope from a list page: a buyer or a code, removable. */
.scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.scope-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 4px 2px 10px;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); font-size: 14px; color: var(--fg); }
.scope-tag button { flex: none; width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent;
  color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.scope-tag button:hover { background: var(--bg-2); color: var(--fg); }
.list-bar .count { font-size: 14px; color: var(--muted); margin-right: auto; font-variant-numeric: tabular-nums; }
.list-bar input[type=search] { height: 38px; padding: 0 12px; font: inherit; font-size: 14px; width: 240px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
select, .select { height: 38px; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--fg); }

.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 24px 0 4px; }
.pager button, .pager a { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--fg-2); font: inherit; font-size: 14px;
  cursor: pointer; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.pager button:hover:not([disabled]) { background: var(--bg-2); }
.pager button[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.pager button[disabled] { opacity: .4; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--muted); align-self: center; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg); }
.empty h3 { color: var(--fg); margin-bottom: 4px; }

/* -------------------------------------------------- filters + layout */

.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) {
  /* One column: the filter button, then the tenders, then the email form -
     not the form first, which put the list a screen below the heading. */
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .layout > aside { display: contents; }
  .layout > aside > .filters-toggle { justify-self: start; }
  .layout > div { order: 2; min-width: 0; }
  .layout > aside > .signup { order: 3; margin: 16px 0 0; }
}
.filters { font-size: 14px; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0; min-width: 0; }
/* first-of-type: a list page's form starts with its hidden scope fields. */
.filters fieldset:first-of-type { border-top: 0; padding-top: 0; }
/* Floated, so the legend sits under the fieldset's rule instead of cutting
   through it. */
.filters legend { float: left; width: 100%; font-weight: 650; font-size: 14px; padding: 0; margin-bottom: 8px;
  color: var(--fg); }
.filters legend + * { clear: both; }
.filters label.opt { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; color: var(--fg-2); }
.filters label.opt:hover { color: var(--fg); }
.filters label.opt .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.filters input[type=checkbox], .filters input[type=radio] { margin: 0; width: 15px; height: 15px;
  accent-color: var(--accent-ink); }
.filters select, .filters input[type=number], .filters input[type=text], .filters input[type=search] {
  width: 100%; height: 36px; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.filters .scroll { max-height: 224px; overflow: auto; padding-right: 4px; }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px;
    background: var(--surface); }
  .filters.open { display: block; }
}
@media (min-width: 961px) { .filters-toggle { display: none; } }

/* ------------------------------------------------------------ the home */

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 32px 0 40px; } }
.hero-title { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 750;
  margin: 0 0 20px; text-wrap: balance; }
.hero-title .soft { color: var(--muted); }
/* Each word rises out of its own line box. */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%);
  animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
@keyframes rise { to { transform: none; } }
.hero .lede { max-width: 560px; margin: 24px 0 0; font-size: 16.5px; }
.hero .eyebrow { margin-bottom: 16px; }

/* The search: keywords and the button, then the quick filters a filer reaches
   for first - country, sector, how soon, how big - all above the fold. */
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 760px; }
.search-form input, .search-form select { height: 46px; padding: 0 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--fg);
  width: 100%; min-width: 0; }
.search-form select { font-size: 15px; color: var(--fg-2); cursor: pointer; }
.search-form .quick-filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; }
.search-form .quick-filters select { height: 42px; font-size: 14px; }
#search-form { margin: 16px 0 24px; }
.search-form input:focus, .search-form select:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
@media (max-width: 800px) { .search-form .quick-filters { grid-template-columns: 1fr 1fr; } }
.browse { margin: -4px 0 0; font-size: 14px; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 16px 0 0; font-size: 14px;
  color: var(--muted); }
.quick a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.quick a:hover { color: var(--fg); text-decoration-color: currentColor; }
.facts-line { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* A stack of real tenders that turns over (app.js); without scripts it is a
   still stack with the top card readable. */
.stack { position: relative; height: 312px; }
@media (max-width: 960px) { .stack { height: 290px; max-width: 520px; } }
/* Only transform and opacity move, each card on its own layer, and only the
   top card carries a shadow - a moving shadow is repainted every frame. */
.stack-card { position: absolute; left: 0; right: 0; top: 0; padding: 20px 24px; min-height: 248px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transform: translate3d(0, calc(var(--i, 0) * 12px), 0) scale(calc(1 - var(--i, 0) * .035));
  transform-origin: 50% 0; z-index: calc(10 - var(--i, 0)); opacity: calc(1 - var(--i, 0) * .3);
  transition: transform .55s var(--ease), opacity .55s var(--ease); will-change: transform, opacity;
  backface-visibility: hidden; display: flex; flex-direction: column; gap: 8px; }
.stack-card[data-i="0"] { --i: 0; box-shadow: 0 10px 28px -18px rgba(22, 25, 26, .35); }
.stack-card[data-i="1"] { --i: 1; } .stack-card[data-i="2"] { --i: 2; } .stack-card[data-i="3"] { --i: 3; }
.stack-card.leaving { transform: translate3d(0, -28px, 0); opacity: 0; transition-duration: .4s; }
/* The card that just left goes to the back at once, not across the stack. */
.stack-card.instant { transition: none !important; }
.stack-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px;
  color: var(--muted); margin-bottom: 4px; }
.stack-card h3 { font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stack-card h3 a { color: var(--fg); }
/* The top card opens its tender wherever it is clicked; the cards behind it
   take no clicks. */
.stack-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stack-card:not([data-i="0"]) { pointer-events: none; }
.stack-card[data-i="0"]:hover { border-color: var(--line-2); }
.stack-card .by { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden; }
.stack-card .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex;
  align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.stack-card .val { font-size: 18px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }

/* The ticker: the newest tenders, moving left; it stops while you read. */
.ticker { position: relative; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 90s linear infinite; will-change: transform; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px 12px 0; margin-left: 24px;
  white-space: nowrap; font-size: 14px; color: var(--fg-2); border-right: 1px solid var(--line); }
.tick a { color: var(--fg); font-weight: 500; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.tick .when { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Today's numbers, counted up as they come into view. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { display: block; font-size: clamp(32px, 3.6vw, 44px); font-weight: 750; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .what { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 220px; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.section { padding: 56px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 16px; }
.section-head h2 { font-size: 28px; letter-spacing: -.025em; margin: 0; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head a { font-size: 14px; font-weight: 500; white-space: nowrap; }

.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; gap: 0; } }
.cols > div > .section-head:first-child, .cols > div > .section-title:first-child { margin-top: 0; }
.link-list { list-style: none; margin: 0; padding: 0; columns: 2 200px; column-gap: 24px; }
.link-list li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid;
  display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.link-list li a { color: var(--fg); }
.link-list li a:hover { color: var(--link); }
.link-list .n { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.link-list.one { columns: 1; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 48px 0 12px; }
.section-title h2 { margin: 0; }
.section-title a { font-size: 14px; font-weight: 500; }
.codes { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.codes a { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono);
  font-size: 12.5px; color: var(--fg-2); background: var(--surface); }
.codes a:hover { border-color: var(--line-2); text-decoration: none; background: var(--bg-2); }
.codes .n { color: var(--muted); margin-left: 6px; }
.steps { padding-left: 20px; max-width: 760px; }
.steps li { margin: 8px 0; }

/* How it works: three numbered sheets. */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0;
  list-style: none; counter-reset: flow; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.flow li { counter-increment: flow; margin: 0; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); }
.flow .glyph { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--bg-2); color: var(--fg); margin-bottom: 16px; }
.flow .glyph svg { width: 20px; height: 20px; }
.flow h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.flow h3::before { content: counter(flow) ". "; color: var(--muted); font-weight: 600; }
.flow p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* ------------------------------------------------------------- boxes */

.box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--surface); }
.box + .box { margin-top: 12px; }
.box h2, .box h3 { margin: 0 0 8px; }

/* The email form on every page, carrying that page's filter. */
.signup { margin: 32px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); }
.signup h2 { margin: 0 0 4px; font-size: 18px; }
.signup p { margin: 0 0 12px; color: var(--fg-2); font-size: 15px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 200px; height: 42px; padding: 0 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--fg); min-width: 0; }
.signup input[type=email]:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.signup button { height: 42px; padding: 0 18px; font: 600 15px/1 var(--font); border: 1px solid var(--primary);
  border-radius: var(--radius); background: var(--primary); color: var(--primary-fg); cursor: pointer; }
.signup button:hover { background: var(--primary-hover); }
.signup button:disabled { opacity: .6; }
.signup .note { margin: 8px 0 0; min-height: 1em; }
.signup .note.ok { color: var(--open); }
.signup .pick { display: block; margin: 0 0 12px; font-size: 14px; color: var(--fg-2); }
.signup .pick select { display: block; margin-top: 4px; height: 40px; max-width: 360px; width: 100%; }
.signup .fine { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.done h3 { margin-bottom: 4px; }
.done p { margin: 0 0 8px; }

/* The home's alert: tick the countries and sectors you want, give an email. */
.builder { margin: 48px 0 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); }
.builder-head { max-width: 640px; margin-bottom: 24px; }
.builder-head h2 { font-size: 28px; letter-spacing: -.025em; margin: 0 0 8px; }
.builder-head p { color: var(--fg-2); margin: 0; }
.builder .picks { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.builder legend { font-weight: 650; font-size: 14px; margin: 0 0 8px; padding: 0; }
.builder .more { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 6px;
  font-size: 14px; line-height: 20px; color: var(--fg-2); background: var(--bg); user-select: none;
  transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover span { border-color: var(--fg-2); color: var(--fg); }
.chip input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.builder .row { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.builder input[type=email] { flex: 1 1 240px; height: 46px; padding: 0 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--fg); min-width: 0; }
.builder input[type=email]:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.builder .note { margin: 8px 0 0; min-height: 1em; }
.builder .fine { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.quick .to-alerts { color: var(--link); font-weight: 600; text-decoration-color: currentColor; }
@media (max-width: 640px) { .builder { padding: 20px; } .builder-head h2 { font-size: 24px; } }

/* ------------------------------------------------------- notice page */

/* The tender's details, then its actions, then the rest (generate.py,
   notice_page). Wide: the actions beside both, in view while you read. Narrow:
   one column in that order, so the buttons follow the details instead of
   coming last, above the footer. */
.notice-grid { display: grid; grid-template-columns: minmax(0, 1fr) 312px; column-gap: 40px; align-items: start;
  grid-template-areas: "head side" "body side"; }
.notice-head { grid-area: head; min-width: 0; }
.notice-body { grid-area: body; min-width: 0; }
.notice-grid > .side { grid-area: side; }
@media (max-width: 960px) {
  .notice-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "body"; row-gap: 24px; }
  .notice-body > h2:first-child, .notice-body > section:first-child > h2:first-child { margin-top: 8px; }
}
.notice-title { margin: 0 0 8px; font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 640px) { .notice-title { font-size: 25px; } }
.labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 10px 16px; border-top: 1px solid var(--line); }
.facts-table tr:first-child th, .facts-table tr:first-child td { border-top: 0; }
.facts-table th { width: 148px; color: var(--muted); font-weight: 500; font-size: 14px; }
.facts-table td { overflow-wrap: anywhere; }
.facts-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  overflow: hidden; margin-top: 16px; }
.side { display: grid; gap: 12px; }
.notice-grid > .side { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 960px) { .notice-grid > .side { position: static; } }
.side .box p:last-child { margin-bottom: 0; }
.side .actions { display: grid; gap: 8px; margin-top: 12px; }
.side .btn { width: 100%; }
.side .btn-link { justify-self: center; padding: 4px 0; }
/* How to bid, with what the site is not. */
.bid-how ul { padding-left: 20px; margin: 0 0 12px; max-width: 72ch; }
.bid-how li { margin: 6px 0; color: var(--fg-2); }
.warn { max-width: 72ch; margin: 0; padding: 12px 14px; font-size: 14px; color: var(--fg-2);
  border: 1px solid var(--line); border-left: 3px solid var(--soon); border-radius: var(--radius); background: var(--surface); }

/* The guide (/how-it-works). */
.guide-toc { font-size: 14px; color: var(--muted); line-height: 1.9; }
.guide h2 { scroll-margin-top: calc(var(--nav-h) + 16px); }
.guide h3 { margin: 20px 0 6px; }
.guide li { margin: 6px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.guide-table thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 13px; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* The sign-in asked for when a visitor saves a tender (app.js). */
dialog.pf-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); }
dialog.pf-dialog::backdrop { background: rgba(10, 12, 12, .45); }
dialog.pf-dialog h2 { margin: 0 0 6px; font-size: 20px; }
dialog.pf-dialog p { color: var(--fg-2); font-size: 15px; }
dialog.pf-dialog .row { display: grid; gap: 8px; margin-top: 12px; }
dialog.pf-dialog .close { position: absolute; top: 10px; right: 10px; }
.side .when-big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 4px; }
/* The buyer's description: plain reading text. */
blockquote.desc { margin: 0; padding: 0; border: 0; background: none; color: var(--fg); max-width: 72ch; }
.desc p { margin: 0; white-space: pre-line; line-height: 1.7; }
blockquote.desc + .note { margin-top: 12px; }
.facts { padding-left: 20px; }
.related { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden; }
.related > li { margin: 0; border-top: 1px solid var(--line); }
.related > li:first-child { border-top: 0; }
.related > li > .result { border: 0; }
.twins { columns: 2 220px; font-size: 14px; }

/* ----------------------------------------------------------- pricing */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--surface); }
.plan.now { border-color: var(--fg); }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 0; }
.plan .when { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.plan ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--fg-2); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--fg-2); max-width: 760px; }

/* ------------------------------------------------------------- forms */

.field { display: grid; gap: 4px; margin: 0 0 12px; }
.field label { font-size: 14px; font-weight: 600; color: var(--fg-2); }
.input, .textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.auth { max-width: 460px; margin: 48px auto; }
.auth h1 { font-size: 30px; }
.auth ul { color: var(--fg-2); font-size: 15px; }

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

/* Ink with paper-coloured text in both themes. Its own two tokens: in dark
   mode the page's --bg is dark, and the footer drew dark text on a dark
   ground (2026-11-15). --foot-ink is an "r, g, b" triple for rgba(), which
   every browser reads. */
.site-footer { --foot-bg: #16191a; --foot-ink: 246, 245, 241;
  margin-top: 64px; background: var(--foot-bg); color: rgba(var(--foot-ink), .72);
  padding: 48px 0 24px; font-size: 14px; }
:root[data-theme="dark"] .site-footer { --foot-bg: #0b0e0d; --foot-ink: 236, 238, 236;
  border-top: 1px solid var(--line); }
.site-footer .say { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  color: rgb(var(--foot-ink)); margin: 0 0 32px; }
.site-footer .say em { font-style: normal; color: rgba(var(--foot-ink), .6); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
.site-footer h4 { margin: 0 0 12px; font-size: 14px; color: rgb(var(--foot-ink)); font-weight: 650; }
.site-footer p { color: rgba(var(--foot-ink), .68); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: rgba(var(--foot-ink), .86); }
.site-footer a:hover { color: rgb(var(--foot-ink)); }
.site-footer :focus-visible { outline-color: rgb(var(--foot-ink)); }
.site-footer .legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(var(--foot-ink), .16);
  font-size: 13px; line-height: 1.6; }
.site-footer .legal p { margin: 0 0 8px; color: rgba(var(--foot-ink), .6); }
.site-footer .legal a { color: rgba(var(--foot-ink), .76); text-decoration: underline;
  text-decoration-color: rgba(var(--foot-ink), .3); text-underline-offset: 2px; }

/* ------------------------------------------------------------- toast */

.toast-host { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast { padding: 8px 16px; border-radius: var(--radius); background: var(--fg); color: var(--bg); font-size: 14px; }

/* ---------------------------------------------------- reveal on scroll */

/* app.js adds .anim to <html> and .rv to blocks below the fold, then .in as
   each comes into view. Without scripts nothing is hidden. */
.anim .rv { opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.anim .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-title .w > span { transform: none; }
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none !important; }
  .anim .rv { opacity: 1; transform: none; }
}

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

@media print {
  .site-header, .site-footer, .signup, .filters, .filters-toggle, .list-bar, .pager, .no-print, .ticker, .stack,
  .notice-grid > .side .actions, .builder { display: none !important; }
  body { background: #fff; color: #000; }
  /* Blocks still waiting to rise into view would print blank. */
  .anim .rv { opacity: 1 !important; transform: none !important; }
  .notice-grid { display: block; }
  .result h3 a::after { display: none; }
}
