/* Fonts are served from this site, so a visit loads nothing from third parties.
   Both families are under the SIL Open Font License; see fonts/LICENSE-*.txt. */
/* Each face comes in two files: the letters of western Europe, and the further Latin letters
   (Polish, Czech, Romanian, Turkish and the like), which a browser fetches only for a page that uses them. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/big-shoulders-display-latin-ext-700-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); 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: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/big-shoulders-display-latin-ext-900-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); 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: 400; font-display: swap; src: url("fonts/public-sans-latin-ext-400-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); 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: 600; font-display: swap; src: url("fonts/public-sans-latin-ext-600-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); 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: 700; font-display: swap; src: url("fonts/public-sans-latin-ext-700-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); 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; }

/* Plan: one left-aligned column set like an official form. Cool paper, ink, ballpoint
   blue for actions, and stamp colours kept only for verdicts. The hero is a tally
   sheet: one mark per tender notice read in a real run. */
:root {
  --paper: #edf0f3;
  --sheet: #fbfcfd;
  --ink: #131722;
  --muted: #566072;
  --rule: #c5ccd6;
  --accent: #1d3fd0;
  --on-accent: #ffffff;
  --go: #0e7448;
  --check: #8f5d00;
  --nogo: #b3261e;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1218;
    --sheet: #171b24;
    --ink: #e9ecf2;
    --muted: #9aa3b4;
    --rule: #2e3644;
    --accent: #9db0ff;
    --on-accent: #0f1218;
    --go: #4fc48d;
    --check: #e2a640;
    --nogo: #f2796f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1218;
  --sheet: #171b24;
  --ink: #e9ecf2;
  --muted: #9aa3b4;
  --rule: #2e3644;
  --accent: #9db0ff;
  --on-accent: #0f1218;
  --go: #4fc48d;
  --check: #e2a640;
  --nogo: #f2796f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 20px; }
p, li { max-width: 34rem; }
h1, h2, h3 { text-wrap: balance; margin: 0; }

/* Top bar */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.mark { display: inline-flex; align-items: center; gap: 0.55rem; font: 900 1.6rem/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.mark::before { content: ""; flex: none; width: 1.75rem; height: 1.75rem; background: url("logo.svg") center / contain no-repeat; }
.top a.jump { font-weight: 600; font-size: 0.95rem; }

/* Hero */
.hero { padding: 40px 0 48px; display: flex; flex-direction: column; gap: 22px; }
.label { font: 700 0.75rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1 { font: 900 clamp(2.9rem, 14.5vw, 6.4rem)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
h1 span { display: block; }
/* German has no short word for "tenders": its headline is set smaller so that the longest word fits a phone. */
html[lang="de"] .hero h1 { font-size: clamp(2.2rem, 11.5vw, 6.4rem); }
h1 .one { color: var(--go); }
.lede { font-size: 1.15rem; margin: 0; }
.button {
  display: inline-block; align-self: flex-start; padding: 14px 22px; border: 0; border-radius: 4px;
  background: var(--accent); color: var(--on-accent); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }

/* Tally sheet: one mark per notice */
.tally-box { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.tally { display: grid; grid-template-columns: repeat(auto-fill, 10px); gap: 4px; }
.m { width: 10px; height: 10px; border-radius: 1px; background: var(--bg); animation: settle 0.45s ease both; animation-delay: calc(var(--i, 0) * 3ms + 250ms); }
.m.kind { --bg: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.m.size { --bg: var(--muted); }
.m.lang { --bg: var(--rule); }
.m.read { --bg: transparent; box-shadow: inset 0 0 0 2px var(--nogo); }
.m.go { --bg: var(--go); outline: 2px solid var(--go); outline-offset: 2px; animation: settle 0.45s ease both, found 0.9s ease 1.3s both; }
@keyframes settle { from { background: var(--ink); } to { background: var(--bg); } }
@keyframes found { 0% { transform: scale(1); } 45% { transform: scale(2.1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .m, .m.go { animation: none; } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 8px 20px; font-size: 0.95rem; }
.legend li { display: grid; grid-template-columns: 14px 2.4rem 1fr; align-items: baseline; gap: 8px; max-width: none; }
.legend .m { animation: none; align-self: center; }
.legend b { text-align: right; font-weight: 700; }
.note { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Sections */
section { padding: 44px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; }
h2 { font: 900 clamp(2rem, 8.5vw, 3.2rem)/0.98 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
section > p { margin: 0; }

/* The sample sheet */
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px var(--ink); }
.stamp { position: absolute; top: 14px; right: 14px; transform: rotate(-7deg); border: 3px solid var(--go); border-radius: 5px; padding: 0 12px 2px; color: var(--go); font: 900 2.4rem/1.05 var(--display); letter-spacing: 0.06em; }
.sheet h3 { font: 700 1.3rem/1.25 var(--body); padding-right: 5.5rem; }
.sheet .meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.sheet h4 { font: 700 0.75rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.sheet p { margin: 0; }
.sheet ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 4px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 6px; align-items: start; }
.steps li::before { content: counter(step); font: 900 3rem/0.9 var(--display); color: var(--accent); }
.steps strong { display: block; }

/* Reasons */
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.reasons li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 4px 12px; align-items: baseline; max-width: none; }
.reasons b { text-align: right; font: 900 1.7rem/1 var(--display); }
.reasons .bar { grid-column: 2; height: 6px; border-radius: 3px; background: var(--muted); width: calc(var(--n) / 145 * 100%); min-width: 6px; }
.reasons .bar.read { background: var(--nogo); }
.reasons .bar.go { background: var(--go); }
.examples { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.examples li { padding-left: 14px; border-left: 3px solid var(--nogo); }
.examples strong { display: block; }

/* Price */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price b { font: 900 clamp(3.4rem, 17vw, 5.5rem)/0.9 var(--display); }
.plain { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 6px; }

/* Questions */
.qa { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.qa dt { font-weight: 700; }
.qa dd { margin: 4px 0 0; max-width: 34rem; }

/* Form */
form { display: flex; flex-direction: column; gap: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 4px; padding: 11px 12px; width: 100%; }
textarea { min-height: 6.5rem; resize: vertical; }
#form-status { margin: 0; padding: 12px 14px; border-left: 3px solid var(--check); background: var(--paper); }
.rehearsal { margin: 0 0 18px; padding: 12px 14px; border: 2px dashed var(--check); background: var(--sheet); font-size: 0.95rem; }
.rehearsal[hidden] { display: none; }
.preview { border-left: 3px solid var(--check); padding-left: 14px; color: var(--muted); font-size: 0.95rem; margin: 0; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 56px; color: var(--muted); font-size: 0.9rem; display: flex; flex-direction: column; gap: 8px; }
footer p { margin: 0; }

@media (max-width: 26rem) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .stamp { font-size: 2rem; }
}

/* Stage switch. <html data-stage="soon"> before the service opens, "open" after.
   Elements marked when-open or when-soon show in one stage only. */
[data-stage="soon"] .when-open { display: none !important; }
[data-stage="open"] .when-soon { display: none !important; }

/* Footer links */
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Legal pages: plain reading text */
.doc { padding: 36px 0 48px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: clamp(2.4rem, 10vw, 4rem); line-height: 0.95; }
.doc h2 { font: 700 1.2rem/1.3 var(--body); text-transform: none; letter-spacing: 0; margin-top: 16px; }
.doc p, .doc ul, .doc address { margin: 0; }
.doc ul { padding-left: 1.15rem; display: flex; flex-direction: column; gap: 6px; }
.doc address { font-style: normal; max-width: 34rem; }
.doc .updated { color: var(--muted); font-size: 0.9rem; }
.doc .notice { border-left: 3px solid var(--check); padding-left: 14px; color: var(--muted); }

/* Lists of open tenders (the pages under tenders/, made by tenderdesk/pages.py) */
.listing h1 { font-size: clamp(2rem, 8.5vw, 3.4rem); }
.listing .lede { font-size: 1.15rem; }
.tenders { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tenders li { max-width: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.t-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.t-buyer { margin: 0; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.t-facts { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.95rem; }
.t-facts div { display: flex; gap: 6px; }
.t-facts dt { color: var(--muted); }
.t-facts dd { margin: 0; font-weight: 600; }
.pitch { margin-top: 18px; padding: 18px; border: 2px solid var(--accent); border-radius: 6px; background: var(--sheet); display: flex; flex-direction: column; gap: 10px; }
.pitch h2 { margin-top: 0; }
.more ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; flex-direction: row; gap: 8px 18px; }
.more li { max-width: none; }
.more span { color: var(--muted); font-size: 0.9rem; }
.source { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 10px; }
