/* Tenderbird design system. See docs/BRAND.md for the reasoning behind every token.
   Idea: a morning departures board. Tenders are listed by the day they close, the way
   a timetable lists by the time things leave. Colours come from first light and a bird's egg.
   No external fonts or images. */
:root {
  /* Colour */
  --ink: #14213A;        /* pre-dawn sky: text, rules, the board */
  --ink-soft: #24365C;
  --shell: #F3F7F7;      /* page */
  --paper: #FFFFFF;      /* surfaces that hold listings and forms */
  --egg: #CDE5E8;        /* egg blue: tints, selected states */
  --egg-pale: #E6F2F3;
  --yolk: #FFC83D;       /* the one accent: the sun, the action */
  --yolk-deep: #F0B420;
  --feather: #135E6B;    /* links */
  --alarm: #B8371B;      /* closing within three days, errors */
  --alarm-pale: #FBE7E1;
  --muted: #4D5B6E;
  --line: #D3DFE1;
  /* Type */
  --display: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Shape, space, motion */
  --radius: 4px;
  --radius-small: 3px;
  --rule: 2px solid var(--ink);
  --press: 3px;
  --quick: .11s;
  /* Names older templates still use */
  --bg: var(--shell); --card: var(--paper); --green: var(--feather); --green-dark: var(--ink);
  --green-tint: var(--egg-pale); --yellow: var(--yolk); --red: var(--alarm);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--shell); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); overflow-x: hidden; border-top: 5px solid var(--yolk); }
h1, h2, h3, legend { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin-top: 2.2em; }
h3 { font-size: 1.22rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 72ch; }
a { color: var(--feather); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--yolk-deep); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--feather); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 580px; margin-left: auto; margin-right: auto; }
main { padding: 28px 0 72px; }
.site-header { background: var(--shell); border-bottom: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.6rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; display: block; }
.nav { display: flex; gap: 2px 22px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; font-weight: 500; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--yolk); }
/* Browse menu: a full-width panel hanging off the header rule, like a departures board dropping down. */
.site-header { position: relative; z-index: 20; }
.mega > summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 500; padding: 8px 0; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 7px; user-select: none; }
.nav .mega, .nav .mega > summary { border-top: 0; margin: 0; font-size: inherit; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary::after { content: ""; width: 7px; height: 7px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.mega[open] > summary { border-bottom-color: var(--yolk); }
.mega[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.mega > summary:hover { border-bottom-color: var(--yolk); }
.mega { border: 0; padding: 0; max-width: none; position: relative; }
.mega-panel { position: absolute; left: -18px; top: calc(100% + 13px); width: min(980px, calc(100vw - 32px)); background: var(--paper); border: var(--rule); border-top-width: 5px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 5px 5px 0 rgba(20, 33, 58, .16); padding: 8px 18px 18px; }
.mega[open] .mega-panel { animation: mega-drop .16s ease-out; }
@keyframes mega-drop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .mega[open] .mega-panel { animation: none; } }
.mega-panel ul { list-style: none; margin: 0 0 16px; padding: 0; columns: 2; column-gap: 28px; }
.mega-panel li { break-inside: avoid; }
.nav .mega-panel li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav .mega-panel li a:hover { border-bottom-color: var(--yolk-deep); }
.nav .mega-panel li a:hover span { text-decoration: underline; text-decoration-color: var(--yolk-deep); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.mega-panel li a span { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.nav .mega-panel li a { align-items: center; }
.mega-panel li img { width: 28px; height: 28px; flex: none; }
.mega-panel li b { font: 700 .95rem var(--display); color: var(--muted); }
.nav .mega-panel a.btn { padding: 8px 14px; border-bottom: var(--rule); }
/* The Tenders menu: lines of work beside states, then the other ways in. */
.mega-groups { display: grid; grid-template-columns: 2.5fr 1fr; gap: 0 32px; }
.mega-groups p { margin: 10px 0 0; font-size: .9rem; color: var(--muted); font-weight: 500; }
.mega-groups .mega-states ul { columns: 1; }
.mega-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; }
.nav .mega-more a { padding: 6px 0; font-weight: 500; }
.burger, .phone-only { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Phones: a sticky bar with the logo, the main button and a menu button; everything else is in the drawer. */
@media (max-width: 1000px) {
  html { scroll-padding-top: 76px; }
  .site-header { position: sticky; top: 0; }
  .site-header .wrap { flex-wrap: wrap; gap: 0 10px; padding-top: 9px; padding-bottom: 9px; }
  .brand { font-size: 1.4rem; }
  .nav-end { gap: 10px; flex-wrap: nowrap; }
  .js .desk-only { display: none; }
  .js .phone-only { display: block; }
  .js .burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: var(--paper); border: var(--rule); border-radius: var(--radius); cursor: pointer; }
  .burger-bars, .burger-bars::before, .burger-bars::after { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .16s ease, opacity .16s ease; }
  .burger-bars { position: relative; }
  .burger-bars::before, .burger-bars::after { content: ""; position: absolute; left: 0; }
  .burger-bars::before { top: -7px; }
  .burger-bars::after { top: 7px; }
  .open .burger-bars { background: transparent; }
  .open .burger-bars::before { transform: translateY(7px) rotate(45deg); }
  .open .burger-bars::after { transform: translateY(-7px) rotate(-45deg); }
  /* No wrapping: a tall open menu would otherwise start a second column off the right edge. */
  .js .nav { display: none; order: 5; flex: 0 0 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; overflow-x: hidden; margin-top: 9px; border-top: var(--rule); max-height: calc(100vh - 80px); overflow-y: auto; }
  .js .open .nav { display: flex; }
  .js .nav > a, .js .mega > summary { padding: 14px 2px; min-height: 50px; border-bottom: 1px solid var(--line); font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; }
  .js .nav > a:last-child { border-bottom: 0; }
  /* Sign out lives in the drawer on phones: a form, styled like the drawer's other rows. */
  .js .nav > .nav-form { display: block; margin: 0; }
  .js .nav-form button { display: flex; justify-content: flex-start; align-items: center; box-shadow: none; border-radius: 0; width: 100%; text-align: left; background: none; border: 0; padding: 11px 2px; min-height: 46px; font: inherit; font-size: 1.08rem; font-weight: 500; color: var(--ink); cursor: pointer; }
  .js .nav-form button:hover { text-decoration: underline; text-decoration-color: var(--yolk); text-decoration-thickness: 3px; }
  .mega { position: static; }
  .mega[open] > summary { border-bottom-color: var(--line); }
  .mega-panel { position: static; width: auto; border: 0; box-shadow: none; background: none; padding: 0 0 14px 14px; border-bottom: 1px solid var(--line); }
  .mega[open] .mega-panel { animation: none; }
  /* Kept short so the rows after Browse stay on screen when it is open. */
  .mega-panel { padding: 4px 0 12px; }
  .mega-panel ul { columns: 2; column-gap: 18px; margin-bottom: 10px; }
  .nav .mega-panel li a { padding: 8px 0; font-size: .93rem; line-height: 1.25; min-height: 44px; gap: 8px; }
  .mega-panel li img { width: 22px; height: 22px; }
  .mega-panel li b { display: none; }
  .mega-groups { grid-template-columns: 1fr; }
  .mega-groups .mega-states ul { columns: 2; }
  .js .nav > a, .js .mega > summary { padding: 11px 2px; min-height: 46px; }
  @media (prefers-reduced-motion: reduce) { .burger-bars, .burger-bars::before, .burger-bars::after { transition: none; } }
}
.nav-end { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav-end > a:not(.btn) { color: var(--ink); font-weight: 500; }
.site-footer { background: var(--ink); color: #C5D2E2; padding: 40px 0 48px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.2fr; gap: 26px 36px; }
.site-footer a { color: #E8EEF6; display: block; padding: 4px 0; text-decoration: none; }
.site-footer a:hover { color: var(--yolk); }
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; font: 700 1.12rem var(--display); }
.site-footer .tagline { font: 700 1.5rem/1.15 var(--display); color: var(--yolk); display: block; margin-bottom: 8px; max-width: 14ch; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* Buttons: a key you press. The shadow is the travel; pressing uses it up. */
.btn, button { font: 600 1rem/1.2 var(--body); display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; box-shadow: var(--press) var(--press) 0 var(--ink); position: relative; top: 0; left: 0; }
.btn:hover, button:hover { background: var(--egg-pale); color: var(--ink); text-decoration: none; }
.btn:active, button:active { top: var(--press); left: var(--press); box-shadow: 0 0 0 var(--ink); }
.btn-primary, button.primary, .btn-accent, button.btn-accent { background: var(--yolk); }
.btn-primary:hover, button.primary:hover, .btn-accent:hover, button.btn-accent:hover { background: var(--yolk-deep); }
.btn-small, button.small { min-height: 38px; padding: 6px 14px; font-size: .92rem; --press: 2px; }
button.danger, .btn-danger { color: var(--alarm); border-color: var(--alarm); box-shadow: var(--press) var(--press) 0 var(--alarm); }
button.danger:active, .btn-danger:active { box-shadow: 0 0 0 var(--alarm); }
button.linklike { border: 0; background: none; padding: 0; min-height: 0; color: var(--feather); font-weight: 500; text-decoration: underline; box-shadow: none; position: static; }
button:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; box-shadow: none; }
form.inline { display: inline; }
label { font-weight: 600; display: block; margin-bottom: 5px; }
.hint { font-weight: 400; color: var(--muted); font-size: .93rem; }
input[type=text], input[type=email], input[type=search], select, textarea { font: inherit; width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #9FB0B8; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
input:hover, select:hover { border-color: var(--ink-soft); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--yolk); outline-offset: 0; }
::placeholder { color: #7A8794; }
.field { margin-bottom: 18px; }
.hidden-field { position: absolute; left: -9999px; }

/* Blocks. A sheet is paper with a ruled top edge; nothing floats on a shadow. */
.card { background: var(--paper); border: 1px solid var(--line); border-top: var(--rule); border-radius: 0 0 var(--radius) var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.card-flat { background: none; border: 0; border-top: var(--rule); border-radius: 0; padding: 14px 0 0; }
.notice { background: #FFF3CC; border-left: 5px solid var(--yolk-deep); padding: 12px 16px; margin-bottom: 16px; }
.notice-error { background: var(--alarm-pale); border-left-color: var(--alarm); color: #6A1F0E; }
.chip { display: inline-block; padding: 2px 9px; border-radius: var(--radius-small); background: var(--egg); color: var(--ink); font-size: .86rem; font-weight: 600; white-space: nowrap; }
.chip-urgent { background: var(--alarm); color: #fff; }
.chip-closed { background: #E3E8EA; color: var(--muted); }
.chip-plain { background: none; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; }
.crumbs { font-size: .93rem; color: var(--muted); margin-bottom: 14px; }
.grid { display: grid; gap: 22px 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Hero: headline and the bird, then the search across the full width. The one loud thing on the site. */
.hero { background: var(--ink); color: #fff; margin: -28px calc(50% - 50vw) 36px; padding: clamp(28px, 5vw, 56px) calc(50vw - 50%) clamp(30px, 5vw, 52px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 4vw, 56px); align-items: end; }
.hero-art { width: clamp(150px, 30vw, 360px); height: auto; display: block; }
/* On phones the bird stays beside the headline, never above it; the sentence runs full width underneath. */
@media (max-width: 640px) {
  .hero-top { gap: 6px 12px; align-items: end; }
  .hero-top > div { display: contents; }
  .hero .hero-title { font-size: clamp(2.2rem, 10.5vw, 2.9rem); margin-bottom: 0; }
  .hero-art { width: clamp(110px, 34vw, 160px); grid-column: 2; grid-row: 1; }
  .hero .lead { grid-column: 1 / -1; margin-top: 10px; }
}
/* The slogan is the display line; the page's one heading is the plain description under it, for search. */
.hero .hero-title { font-family: var(--display); font-weight: 700; color: #fff; font-size: clamp(2.7rem, 7.4vw, 5rem); line-height: .95; letter-spacing: -.02em; max-width: 9.5ch; margin: 0 0 .3em; }
.hero .lead { font-family: inherit; font-weight: 400; line-height: 1.45; letter-spacing: 0; font-size: 1.2rem; max-width: 46ch; color: #D8E3F0; margin: 0; }
.hero .under { margin: 18px 0 0; color: #D8E3F0; }
.hero a { color: #fff; }
.hero a:hover { color: var(--yolk); }
.hero .searchbar { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 18px; margin-top: 26px; }

/* Tender rows: the timetable. The left column is the day it closes. */
.slip { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 4px 20px; align-items: start; padding: 16px 12px 16px 0; background: var(--paper); border-bottom: 1px solid var(--line); border-left: 5px solid transparent; }
:not(.slip) + .slip, .slip:first-child { border-top: var(--rule); }
.slip:hover { border-left-color: var(--yolk); background: #FDFEFE; }
.slip-when { text-align: center; padding-left: 8px; font: 700 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.slip-when span { display: block; font: 600 .84rem/1.4 var(--body); color: var(--muted); }
.slip-when.none { font: 500 .84rem/1.3 var(--body); color: var(--muted); padding-top: 6px; }
.slip.urgent .slip-when { color: var(--alarm); }
.slip.closed .slip-when { color: #8A96A3; }
.slip h3 { margin: 0 0 4px; font: 600 1.1rem/1.3 var(--body); letter-spacing: 0; }
.slip h3 a { color: var(--ink); text-decoration: none; }
.slip h3 a:hover { text-decoration: underline; text-decoration-color: var(--yolk-deep); text-decoration-thickness: 3px; }
.slip .summary { margin: 0 0 6px; font-size: .95rem; color: #33415A; }
.slip .meta { color: var(--muted); font-size: .93rem; margin: 0; }
.slip .meta a { color: var(--muted); }
.slip .meta .not-yet { color: var(--ink); font-weight: 600; }
.slip-due { text-align: right; font-size: .88rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; align-items: flex-end; min-width: 132px; }
@media (max-width: 640px) {
  .slip { grid-template-columns: 54px minmax(0, 1fr); padding-right: 10px; }
  .slip-when { font-size: 1.6rem; padding-left: 4px; }
  .slip-due { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 4px 10px; min-width: 0; }
}
/* Older names some pages still use. */
.tender { display: block; }
.tender h3 { font: 600 1.1rem/1.3 var(--body); margin: 6px 0 4px; }
.tender h3 a { color: var(--ink); text-decoration: none; }
.tender h3 a:hover { text-decoration: underline; }
.tender .meta { color: var(--muted); font-size: .93rem; }
.tender-row { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }

table.compact, table.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-top: var(--rule); font-size: .95rem; }
table.compact th, table.compact td, table.compare th, table.compare td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compact th, table.compare th { font: 700 1rem var(--display); }
table.compare td.us { background: var(--egg-pale); font-weight: 600; box-shadow: inset 4px 0 0 var(--yolk); }
.scroll { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chips a { text-decoration: none; padding: 6px 12px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--paper); color: var(--ink); font-size: .93rem; font-weight: 500; }
.chips a:hover { border-color: var(--ink); background: var(--egg-pale); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 26px; }
dl.facts { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.facts dt { color: var(--muted); padding-right: 20px; }

/* Index: a contents page with leaders, label on the left and count on the right. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 36px; border-top: var(--rule); }
.tile { display: flex; align-items: baseline; gap: 8px; padding: 12px 0 11px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 46px; }
.tile i { flex: 1; border-bottom: 2px dotted #A9B8C0; transform: translateY(-4px); min-width: 16px; }
.tile span { font: 700 1.05rem var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.tile:hover { color: var(--ink); }
.tile:hover b, .tile:hover { text-decoration: underline; text-decoration-color: var(--yolk-deep); text-decoration-thickness: 3px; }
.tile:hover i { border-bottom-color: var(--yolk-deep); }
.tile b { font-weight: 600; }
/* Category cards: the busiest lines of work, count first like a platform number. */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .cats { grid-template-columns: 1fr; } }
.cat { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--ink); border-radius: 0 0 var(--radius) var(--radius); padding: 16px 18px 16px; color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.cat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cat-top img { width: 52px; height: 52px; margin-top: -2px; }
.cat-count { font: 700 2.6rem/1 var(--display); }
.cat b { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.cat small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cat em { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--feather); margin-top: auto; padding-top: 10px; }
.cat em::after { content: " \2192"; }
.cat:hover, .cat:focus-visible { color: var(--ink); border-top-color: var(--yolk-deep); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .cat { transition: none; } .cat:hover { transform: none; } }

/* Sections */
.band { background: var(--egg); margin: 48px calc(50% - 50vw); padding: clamp(32px, 5vw, 56px) calc(50vw - 50%); }
.band h2 { margin-top: 0; max-width: 20ch; }
/* Directly under the hero the two colour bands sit flush. */
.hero + .band { margin-top: -36px; margin-bottom: 36px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 36px; margin: 22px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: var(--rule); padding-top: 10px; }
.steps li::before { content: counter(step); font: 700 3.2rem/1 var(--display); display: block; margin-bottom: 4px; }
.steps h3 { margin-bottom: 4px; }
.steps-art li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.steps-art li img { grid-column: 1 / -1; width: 132px; height: auto; margin: 6px 0 8px; }
.steps-art li::before { font-size: 2rem; margin: 0; }
.steps-art li p { grid-column: 1 / -1; }
.empty img, .ticket img.art { width: 120px; height: auto; display: block; margin-bottom: 10px; }
.steps p { margin: 0; }
.step-number { display: inline-flex; width: 1.7em; height: 1.7em; background: var(--ink); color: var(--yolk); font: 700 1em var(--display); align-items: center; justify-content: center; border-radius: var(--radius-small); margin-right: 6px; }
.proof { display: none; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 7px 0 7px 30px; position: relative; max-width: 60ch; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 13px; height: 7px; border-left: 3px solid var(--feather); border-bottom: 3px solid var(--feather); transform: rotate(-45deg); }
.ticks li.no::before { width: 13px; height: 0; border-left: 0; border-bottom: 3px solid #9AA8B3; transform: none; top: 19px; }
.ticks li.no { color: var(--muted); }
.cta { background: var(--ink); color: #fff; padding: 18px 22px; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-radius: var(--radius); }
.cta h3 { color: #fff; margin: 0 0 2px; }
.cta p { margin: 0; color: #D8E3F0; font-size: .96rem; }
.cta .btn { box-shadow: var(--press) var(--press) 0 var(--yolk-deep); border-color: var(--yolk); }

/* Guided setup */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; font-weight: 400; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span { display: block; min-height: 46px; padding: 10px 14px 10px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); height: 100%; }
.choice span b { display: block; font-weight: 600; }
.choice span small { color: var(--muted); display: block; line-height: 1.35; }
.choice:hover span { border-color: var(--ink-soft); }
.choice input:checked + span { border-color: var(--ink); background: var(--egg-pale); box-shadow: inset 6px 0 0 var(--yolk); }
.choice input:focus-visible + span { outline: 3px solid var(--feather); outline-offset: 3px; }
.choices-tight { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-size: 1.4rem; padding: 0; margin-bottom: 6px; }
.preview { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.preview strong { font: 700 1.35rem var(--display); color: var(--yolk); }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 1.5rem; }
.plan .price { font: 700 2.4rem/1 var(--display); margin-bottom: 12px; }
.plan ul { padding-left: 20px; margin: 0 0 18px; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan-featured { border-top: 6px solid var(--yolk); box-shadow: 0 0 0 2px var(--ink); border-color: var(--ink); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 78ch; }
details:first-of-type { border-top: var(--rule); }
details summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
details[open] summary { margin-bottom: 6px; }
details p { margin: 8px 0 0; }

/* Search */
.searchbar { display: grid; grid-template-columns: 2fr 1.3fr 1.1fr auto; gap: 12px; align-items: end; }
.searchbar label { font-size: .9rem; }
@media (max-width: 760px) { .searchbar { grid-template-columns: 1fr; } }
.email-preview { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: 6px 6px 0 var(--egg); }
.email-head { background: var(--egg-pale); padding: 12px 18px; font-size: .93rem; border-bottom: 1px solid var(--line); }
.email-body { padding: 20px; }

/* Small single-purpose pages (sign in, confirm, unsubscribe, errors): one ticket. */
.ticket { max-width: 580px; margin: 28px 0 0; background: var(--paper); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--egg); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); }
.ticket h1 { font-size: clamp(1.8rem, 4.4vw, 2.4rem); }
.ticket > :last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.actions form { display: contents; }

/* Tender page: what it is on the left, when it leaves on the right. */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px 44px; align-items: start; margin-bottom: 36px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail .closing { order: -1; position: static; } }
.detail h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: .5em; }
.detail .lede { font-size: 1.08rem; }
.closing { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; position: sticky; top: 16px; }
.closing .day { font: 700 4.6rem/.9 var(--display); color: var(--yolk); font-variant-numeric: tabular-nums; }
.closing .day span { font-size: 1.5rem; color: #fff; margin-left: 6px; }
.closing .time { color: #D8E3F0; margin: 8px 0 14px; }
.closing .chip { margin-bottom: 16px; }
.closing .btn { width: 100%; text-align: center; border-color: var(--yolk); box-shadow: var(--press) var(--press) 0 var(--yolk-deep); margin-bottom: 12px; }
.closing .btn:active { box-shadow: none; }
.closing .btn-plain { background: transparent; color: #fff; border-color: #7B8DB0; box-shadow: none; }
.closing .btn-plain:hover { background: var(--ink-soft); color: #fff; }
.closing form { display: block; }
.closing button { width: 100%; }
.closing .hint { color: #B9C7DA; margin: 6px 0 0; font-size: .88rem; }
.closing.shut .day { color: #8A96A3; }

/* Account */
.tabs { display: flex; flex-wrap: wrap; gap: 0 26px; border-bottom: var(--rule); margin: 0 0 24px; }
.tabs a { padding: 10px 0 8px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 5px solid transparent; margin-bottom: -2px; }
.tabs a:hover { border-bottom-color: var(--egg); }
.tabs a.on { border-bottom-color: var(--yolk); }
.slip-when.count { color: var(--feather); }
.slip.off .slip-when.count { color: #8A96A3; }
.slip .actions { margin-top: 10px; gap: 10px; }
.empty { border-top: var(--rule); padding: 22px 0; max-width: 60ch; }
.empty h3 { font-size: 1.5rem; }
.sent { list-style: none; padding: 0; margin: 0; border-top: var(--rule); max-width: 560px; }
.sent li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Motion answers the hand; nothing moves by itself. */
@media (prefers-reduced-motion: no-preference) {
  .btn, button { transition: top var(--quick), left var(--quick), box-shadow var(--quick), background-color var(--quick); }
  .slip, .chips a, .choice span, .nav a { transition: border-color var(--quick), background-color var(--quick); }
}

/* Guides */
.prose { max-width: 72ch; }
.prose .lede { font-size: 1.08rem; }
.prose li { margin-bottom: 8px; }
dl.glossary { margin: 0; border-top: 1px solid var(--line); }
dl.glossary dt { font: 700 1.08rem var(--display); margin: 18px 0 4px; scroll-margin-top: 96px; }
dl.glossary dd { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 721px) and (max-width: 1000px) { .site-footer .cols { grid-template-columns: repeat(3, 1fr); } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
/* On wide screens the Tenders menu hangs from the header, not the button, so it never runs off the right edge. */
@media (min-width: 1001px) {
  .site-header .wrap { position: relative; }
  .nav .mega { position: static; }
  .mega-panel { left: 16px; top: calc(100% + 3px); }
}
.intro { margin: 0 0 20px; }
.intro p, .intro li { color: var(--ink); }
/* Award facts on buyer and line-of-work pages */
.award-facts { border-top: var(--rule); padding-top: 14px; margin: 26px 0; }
.award-facts .winners { margin: 0 0 12px; padding-left: 1.4em; }
.award-facts .winners li { margin-bottom: 4px; }
/* The company finder */
.finder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; align-items: end; }
.finder .wide { grid-column: span 2; }
.finder-actions { grid-column: span 2; display: flex; gap: 14px; align-items: center; }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr 1fr; } .finder .wide, .finder-actions { grid-column: 1 / -1; } }
.finder-summary { margin: 16px 0 12px; }
/* Spend trend and procurement methods */
.trend { margin: 22px 0; }
.trend figcaption { font-weight: 600; margin-bottom: 6px; }
.trend svg { width: 100%; height: auto; display: block; }
.trend .bar { fill: var(--feather); }
.trend g:hover .bar { fill: var(--yolk-deep); }
.trend .axis { font-size: 12px; fill: var(--muted); }
.trend .base { stroke: var(--ink); stroke-width: 1; }
.methods { margin: 18px 0; }
.method-row { display: grid; grid-template-columns: 170px 1fr 48px; gap: 10px; align-items: center; margin: 6px 0; }
.method-bar { background: var(--egg-pale); height: 12px; display: block; }
.method-bar i { display: block; height: 100%; background: var(--feather); }
@media (max-width: 520px) { .method-row { grid-template-columns: 1fr 48px; } .method-bar { grid-column: 1 / -1; grid-row: 2; } }
.finder-actions-wide { grid-column: 1 / -1; }
