/* ============================================================
   TenderWatch — civic/official styling
   Type: Newsreader (serif display) · Hanken Grotesk (UI) · IBM Plex Mono (data)
   ============================================================ */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/newsreader-dd08b472.woff2") format("woff2-variations"),
       url("/assets/newsreader-dd08b472.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/newsreader-italic-0b0e0d9c.woff2") format("woff2-variations"),
       url("/assets/newsreader-italic-0b0e0d9c.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/hanken-grotesk-7b3229a0.woff2") format("woff2-variations"),
       url("/assets/hanken-grotesk-7b3229a0.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-400-d803141a.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-500-3f7bbac1.woff2") format("woff2");
}

:root {
  /* Paper & ink */
  --paper:      oklch(0.991 0.004 95);
  --paper-2:    oklch(0.975 0.005 95);
  --card:       oklch(1 0 0);
  --ink:        oklch(0.255 0.035 258);
  --ink-soft:   oklch(0.46 0.028 258);
  --ink-faint:  oklch(0.62 0.02 258);
  --line:       oklch(0.905 0.008 258);
  --line-soft:  oklch(0.945 0.006 258);

  --navy:       oklch(0.305 0.058 262);
  --navy-deep:  color-mix(in oklab, var(--navy), black 22%);

  --live:       oklch(0.60 0.125 152);
  --live-ink:   color-mix(in oklab, var(--live), black 26%);
  --live-bg:    color-mix(in oklab, var(--live), var(--paper) 90%);
  --live-ring:  color-mix(in oklab, var(--live), white 52%);

  --warn:       oklch(0.66 0.14 60);
  --warn-ink:   color-mix(in oklab, var(--warn), black 30%);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1100px;
  --pad: clamp(20px, 5vw, 56px);

  --shadow-sm: 0 1px 2px oklch(0.25 0.04 258 / 0.05), 0 1px 1px oklch(0.25 0.04 258 / 0.04);
  --shadow-md: 0 4px 14px oklch(0.25 0.04 258 / 0.06), 0 2px 5px oklch(0.25 0.04 258 / 0.05);
  --shadow-lg: 0 18px 50px oklch(0.25 0.04 258 / 0.10), 0 6px 16px oklch(0.25 0.04 258 / 0.06);
}

/* ============================================================
   Reset — strip default UA margin/padding from block elements that
   are routinely styled from scratch, so we never have to remember
   that `<ul>` is paragraph-margin'd and inset, or that `<h2>` ships
   with a half-em top. Form controls inherit typography. Media is
   block-level by default.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  background-image:
    linear-gradient(oklch(0.5 0.03 258 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.5 0.03 258 / 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  /* Sticky footer: body is a column flex container; main grows to fill
     remaining viewport so the footer is pinned to the bottom even on
     short pages, without absolute positioning. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

::selection { background: var(--live-ring); color: var(--navy-deep); }

/* Skip-to-content: invisible until focused, then anchors to the top-
   left so keyboard users can jump past the header. Sits in a fixed
   position so it doesn't shift layout on focus. */
.skip-to-content {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 0.15s;
}
.skip-to-content:focus { transform: translateY(0); outline: 2px solid var(--paper); outline-offset: 2px; }

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: oklch(0.991 0.004 95 / 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
@media (max-width: 700px) {
  /* Brand on row 1, then a hairline, then the nav links centered on
     row 2. Drops the asymmetric "links pushed to the right and wrapping"
     look and gives the row of links its own visual band. */
  .site-header__inner {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-block: 12px;
    text-align: center;
  }
  .header-right {
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px clamp(10px, 3vw, 18px);
  }
  .header-link, .header-button { font-size: 13px; padding: 6px 2px; }
  .brand { flex-direction: column; gap: 4px; align-items: center; text-align: center; }
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark { flex: none; }
.brand__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand__name b { font-weight: 700; }

.header-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.header-link, .header-button {
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.15s;
  white-space: nowrap;
}
.header-link:hover, .header-button:hover { color: var(--live-ink); }
.header-link.is-active { color: var(--live-ink); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--live-ink);
  background: var(--live-bg);
  border: 1px solid var(--live-ring);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); position: relative; }
.live-pill .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--live); opacity: 0.6;
  animation: ping 2.4s cubic-bezier(0.2,0.6,0.3,1) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 80%,100% { transform: scale(1.7); opacity: 0; } }

/* Honour the OS-level reduced-motion preference. The ping animation
   loops forever; users who opted out via a system setting (vestibular
   sensitivity, attention concerns, motion sickness) shouldn't get an
   in-perpetuity pulse. Other one-shot transitions (button hover,
   underline) stay — they're brief and event-driven. */
@media (prefers-reduced-motion: reduce) {
  .live-pill .dot::after,
  .hero__stat-dot::after { animation: none; }
}

.live-pill__num { font-weight: 500; }
.live-pill__suffix { white-space: nowrap; }
@media (max-width: 620px) {
  .live-pill__suffix { display: none; }
}

/* ============================================================
   Flash — full-width band flush against the navbar bottom border.
   Outer element paints the colour across the viewport; inner .wrap
   re-uses the navbar's max-width + --pad so the message aligns with
   the brand mark. Pattern mirrors the sibling Forcepull app.
   ============================================================ */
.site-flash {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
}
.site-flash .wrap { padding-top: 12px; padding-bottom: 12px; text-align: center; }
.site-flash-notice {
  background: var(--live-bg);
  border-top: 1px solid color-mix(in oklab, var(--live-bg), var(--live) 11%);
  border-bottom: 1px solid color-mix(in oklab, var(--live-bg), var(--live) 22%);
  color: var(--live-ink);
}
.site-flash-alert {
  background: oklch(0.96 0.04 30);
  border-top: 1px solid color-mix(in oklab, oklch(0.96 0.04 30), oklch(0.55 0.18 30) 11%);
  border-bottom: 1px solid color-mix(in oklab, oklch(0.96 0.04 30), oklch(0.55 0.18 30) 22%);
  color: oklch(0.4 0.13 30);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(46px, 7vw, 80px); padding-bottom: 0; text-align: center; }
.hero__eyebrow { color: var(--ink); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ink); display: inline-block; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 auto 26px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--navy); }

.hero__sub {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
  margin: 0 auto;
  text-wrap: pretty;
}
.hero__sub b { color: var(--ink); font-weight: 600; }

.hero__tagline {
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 18px);
  margin: 16px auto 0;
}
.hero__tagline b { font-weight: 600; }

.hero__stat {
  display: inline-flex;
  align-items: stretch;
  margin-top: 28px;
  background: var(--live-bg);
  border: 1px solid var(--live-ring);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 22px -16px color-mix(in oklab, var(--live), transparent 35%);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hero__stat:hover {
  border-color: var(--live);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -16px color-mix(in oklab, var(--live), transparent 25%);
}
.hero__stat-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: color-mix(in oklab, var(--live-bg), var(--live) 12%);
  border-right: 1px solid color-mix(in oklab, var(--live-ring), transparent 25%);
}
.hero__stat-body {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  position: relative;
  overflow: hidden;
}
.hero__stat-body > * { position: relative; z-index: 1; }
/* Hover sweep: the alcove tint washes across the body, as if the live
   signal is expanding through the pill. The arrow's existing
   hover-translate gives it directionality. */
.hero__stat-body::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--live-bg), var(--live) 12%);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__stat:hover .hero__stat-body::before { transform: translateX(0); }
.hero__stat-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--live);
  position: relative;
  flex: none;
}
.hero__stat-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--live); opacity: 0.6;
  animation: ping 2.4s cubic-bezier(0.2,0.6,0.3,1) infinite;
}
.hero__stat .num {
  font-family: var(--mono);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 500;
  color: var(--live-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero__stat .cap {
  color: var(--live-ink);
  opacity: 0.78;
  font-size: 15.5px;
}
.hero__stat-arrow {
  margin-left: 4px;
  color: var(--live-ink);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s;
}
.hero__stat:hover .hero__stat-arrow { transform: translateX(3px); }

/* ── ticker ─────────────────────────────────────── */
.ticker {
  margin-top: clamp(46px, 7vw, 80px);
  border-block: 1px solid var(--line);
  background: linear-gradient(var(--paper-2), var(--paper-2));
  overflow: hidden;
  position: relative;
}
.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(--paper-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }
.ticker__head {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 0 30px 0 var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ticker__head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live-ring); }
.ticker__track { display: flex; width: max-content; animation: scroll-x 180s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px; white-space: nowrap; border-right: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
.ticker__item .sect { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }
.ticker__item .title { color: var(--ink); font-weight: 500; }
.ticker__item .open { font-family: var(--mono); font-size: 11px; color: var(--live-ink); letter-spacing: 0.04em; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ============================================================
   Panel (signup + manage + message variants)
   ============================================================ */
.section { padding-top: clamp(46px, 7vw, 80px); padding-bottom: clamp(46px, 7vw, 80px); }
.panel {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel--narrow { max-width: 560px; }
.panel--wide { max-width: none; }
.panel__head { padding: clamp(26px, 4vw, 38px) clamp(24px, 4vw, 44px) clamp(20px, 3vw, 28px); }
.panel__head h2,
.panel__head h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 3.4vw, 32px);
  letter-spacing: -0.015em; margin: 0 0 8px;
}
.panel__head p { color: var(--ink-soft); margin: 0; font-size: 16px; }

.panel__body { padding: clamp(22px, 3.5vw, 32px) clamp(24px, 4vw, 44px); }
.panel__body > p { color: var(--ink-soft); margin: 0 0 14px; }
.panel__body > p:last-child { margin-bottom: 0; }
.panel__body a { color: var(--navy); }

.step { padding: clamp(22px, 3.5vw, 32px) clamp(24px, 4vw, 44px); border-top: 1px solid var(--line-soft); }

/* Utility classes — kept here so views never need inline style attrs
   (which would trip the strict CSP style-src directive). */
.is-hidden       { display: none !important; }
.u-text-faint    { color: var(--ink-faint); }
.u-text-center   { text-align: center; }
.u-mt-md         { margin-top: 18px; }
.u-flex-row      { display: flex; gap: 10px; flex-wrap: wrap; }
.u-confirm-start { justify-content: flex-start; }
.step__label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step__title { line-height: 1.3; font-weight: 700; font-size: 15.5px; letter-spacing: 0.005em; }
.step__no {
  font-family: var(--mono); font-size: 12px; color: var(--paper);
  background: var(--navy); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.step__optional { font-weight: 500; color: var(--ink-faint); }

/* fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.input {
  width: 100%; font: inherit; font-size: 16.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px oklch(0.305 0.058 262 / 0.1); }

/* Keyboard-only focus ring on every interactive element. Reset the
   browser default outline and re-establish a consistent ring that
   only appears for :focus-visible (so mouse clicks don't show it).
   The 4px offset matches the .input ring's visual weight. */
.btn:focus-visible,
.header-link:focus-visible,
.header-button:focus-visible,
.view-toggle__item:focus-visible,
.pagination-link:focus-visible,
.tender-title:focus-visible,
.brand:focus-visible,
.site-footer__links a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

.field--indent { margin-left: 34px; }
.field-hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.field-hint--indent { margin-left: 34px; margin-top: -4px; }

/* mode choice */
.choice {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: 13px; padding: 16px 18px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s; background: var(--paper);
}
.choice + .choice { margin-top: 8px; }
.choice:hover { border-color: oklch(0.82 0.02 258); }
.choice input { margin-top: 3px; accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.choice__body { flex: 1; }
.choice__title { display: block; font-weight: 700; font-size: 15.5px; }
.choice__count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--live-ink); margin-left: 9px; white-space: nowrap; }
.choice__desc { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.45; margin-top: 5px; }
.choice:has(input:checked) { border-color: var(--navy); background: oklch(0.305 0.058 262 / 0.035); box-shadow: var(--shadow-sm); }

.or-rule { display: flex; align-items: center; gap: 16px; margin: 20px 0 4px; color: var(--ink-faint); }
.or-rule::before, .or-rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.or-rule span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* sector accordion */
.sectors { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sector {
  border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sector.is-open { border-color: oklch(0.84 0.02 258); box-shadow: var(--shadow-sm); background: var(--card); }
.sector__bar {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 15px 16px; font: inherit; color: var(--ink);
}
.sector__check { width: 19px; height: 19px; flex: none; accent-color: var(--navy); cursor: pointer; }
.sector__name { font-weight: 600; font-size: 15.5px; flex: 1; }
.sector__count {
  font-family: var(--mono); font-size: 12px; color: var(--live-ink);
  background: var(--live-bg); border: 1px solid var(--live-ring);
  padding: 2px 8px; border-radius: 999px;
}
.sector__count.zero { color: var(--ink-faint); background: var(--paper-2); border-color: var(--line); }
.sector__chev { color: var(--ink-faint); transition: transform 0.2s ease; flex: none; }
.sector.is-open .sector__chev { transform: rotate(180deg); }

.sector__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.26s ease; }
.sector.is-open .sector__body { grid-template-rows: 1fr; }
.sector__inner { overflow: hidden; }
.areas {
  list-style: none; margin: 0; padding: 4px 16px 16px 48px;
  display: grid; gap: 2px;
}
.area label {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; font-size: 14.5px; color: var(--ink-soft); transition: background 0.12s;
}
.area label:hover { background: var(--paper-2); }
.area input { width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.area__name { flex: 1; }
.area__count { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
.area__count.has { color: var(--live-ink); }

/* submit row */
.submit-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: clamp(22px, 3.5vw, 30px) clamp(24px, 4vw, 44px);
  background: var(--paper-2); border-top: 1px solid var(--line);
}
.summary { font-size: 14px; color: var(--ink-soft); }
.summary b { color: var(--ink); font-family: var(--mono); font-weight: 500; }

.btn {
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  border: 0; border-radius: 12px; padding: 15px 26px;
  background: var(--navy); color: var(--paper); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  box-shadow: var(--shadow-md); transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.15s; }
.btn:hover svg { transform: translateX(3px); }

.btn--warn { background: var(--warn); }
.btn--warn:hover { background: var(--warn-ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  border: 1.5px solid var(--line);
  padding: 13px 22px;
}
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: oklch(0.82 0.02 258); }

.assure { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 13.5px; margin-top: 14px; }
.assure svg { color: var(--live); flex: none; }

.form-errors {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: oklch(0.97 0.05 30);
  border: 1px solid oklch(0.88 0.1 30);
  border-radius: 11px;
  color: oklch(0.38 0.16 30);
  font-size: 14.5px;
}
.form-errors p { margin: 2px 0; }

/* ============================================================
   How it works
   ============================================================ */
/* ============================================================
   Sources we watch — sits just above the footer.
   ============================================================ */
.sources { padding-block: clamp(34px, 5vw, 54px); border-top: 1px solid var(--line); }
.sources__row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: space-between; }
.sources__intro { max-width: 36ch; }
.sources__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.sources__lead { color: var(--ink-soft); font-size: 15px; }
.sources__list { display: flex; flex-wrap: wrap; gap: 10px; }
.source-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--card);
}
.source-chip--soon {
  background: transparent;
  border-style: dashed;
  color: var(--ink-faint);
}

.how { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); background: var(--paper-2); }
.how__eyebrow { color: var(--ink); margin-bottom: 28px; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.how__num { font-family: var(--mono); font-size: 13px; color: var(--live-ink); margin-bottom: 14px; }
.how__step h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 9px; letter-spacing: -0.01em; }
.how__step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; line-height: 1.5; }
@media (max-width: 760px) { .how__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: oklch(0.86 0.01 258); }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 24px;
}
.site-footer .brand { flex: 0 0 auto; }
.site-footer .brand__name { color: var(--paper); font-size: 17px; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; flex: 0 0 auto; }
.site-footer a { color: oklch(0.82 0.012 258); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.site-footer a:hover { color: var(--paper); }
.site-footer__fine {
  flex: 1 1 auto;
  text-align: center;
  color: oklch(0.62 0.015 258);
  font-size: 12px;
  font-family: var(--mono);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .site-footer__inner { flex-direction: column; text-align: center; gap: 14px; }
  .site-footer__fine { order: 3; }
}

/* ============================================================
   Confirmation panel (.confirm — used on check_inbox, confirmed, etc.)
   ============================================================ */
.confirm { padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px); text-align: center; }
.confirm__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--live-bg);
  border: 1.5px solid var(--live-ring); display: grid; place-items: center; margin: 0 auto 26px; color: var(--live);
}
.confirm__icon--warn { background: oklch(0.97 0.05 60); border-color: oklch(0.85 0.12 60); color: oklch(0.55 0.16 60); }
.confirm h1, .confirm h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -0.015em;
}
.confirm p { color: var(--ink-soft); margin: 0 auto 8px; max-width: 46ch; font-size: 16.5px; line-height: 1.5; }
.confirm p b, .confirm p strong { color: var(--ink); font-weight: 600; }
.confirm__chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 26px 0 6px; }
.confirm__chip {
  font-family: var(--mono); font-size: 12px; color: var(--navy);
  background: oklch(0.305 0.058 262 / 0.06); border: 1px solid oklch(0.305 0.058 262 / 0.18);
  padding: 6px 12px; border-radius: 999px;
}
.confirm__actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.confirm__hint { color: var(--ink-faint); font-size: 14.5px; margin-top: 18px; }
.confirm__back {
  margin-top: 22px; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 14.5px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0;
}
.confirm__back:hover { color: var(--ink); }

/* ============================================================
   Manage page (panel subdivisions)
   ============================================================ */
.panel__section {
  padding: clamp(22px, 3.5vw, 32px) clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}
.panel__section h2 {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.panel__section p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 14px; }
.panel__section p:last-of-type { margin-bottom: 18px; }
.panel__section .field { margin-bottom: 14px; }

.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.inline-form .input { flex: 1; min-width: 220px; }

/* ============================================================
   Welcome-back panel (home page for signed-in users)
   ============================================================ */
.welcome__matches { list-style: none; border-top: 1px solid var(--line-soft); }
.welcome__match {
  padding: 18px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}
.welcome__match:first-child { border-top: 0; }
.welcome__match-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.welcome__match-sect { color: var(--ink-faint); }
.welcome__match-when { color: var(--live-ink); }
.welcome__match-title {
  display: inline-block;
  font-weight: 600; font-size: 16px; color: var(--navy);
  text-decoration: none; line-height: 1.35;
}
.welcome__match-title:hover { text-decoration: underline; }
.welcome__match-buyer { color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.welcome__empty {
  padding: 28px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.welcome__empty p { margin: 0; }

/* ============================================================
   Tenders table
   ============================================================ */
.page-header {
  padding-bottom: 18px;
}
.page-header h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.page-subtitle { color: var(--ink-soft); font-size: 17px; margin: 0; }
.last-refreshed {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 12px;
}

/* Watch summary now sits as a top-level panel band so each group gets
   its own full-width section, with hairlines that stretch edge to edge
   instead of being inset by the panel head's padding. Paper-2 ground
   sets it apart from the main panel body without dropping it out of the
   reading flow. */
.watch-summary {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
}
.watch-summary__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.5vw, 24px) clamp(24px, 4vw, 44px);
}
.watch-summary__group {
  border-top: 1px solid var(--line-soft);
}
.watch-summary__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.watch-summary__manage-wrap {
  margin-left: 4px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: 0.02em;
}
.watch-summary__manage {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.watch-summary__manage:hover { text-decoration: underline; }
/* Status line — flowing text so long messages wrap cleanly at narrow
   widths. The active/paused word carries the colour cue. */
.watch-summary__status {
  font-size: 14px;
  color: var(--ink-soft);
}
.watch-summary__status strong { font-weight: 600; }
.watch-summary__status--active strong { color: var(--live-ink); }
.watch-summary__status--paused strong { color: var(--warn-ink); }
.watch-summary__resume {
  display: inline-block;
  margin-left: 4px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.watch-summary__resume:hover { text-decoration: underline; }
.watch-summary__list {
  list-style: none;
  counter-reset: watch-item;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.watch-summary__list li { counter-increment: watch-item; }
.watch-summary__list li::before {
  content: counter(watch-item) ".";
  display: inline-block;
  min-width: 1.6em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--live);
}

.page-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.btn--small { padding: 9px 16px; font-size: 14px; }
.view-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
  gap: 2px;
}
.view-toggle__item {
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.view-toggle__item:hover { color: var(--ink); }
.view-toggle__item.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Card-style list of tenders — same shape as the welcome panel's matches
   list. Used on /tenders and /tenders/mine. */
.tender-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.tender-list__item {
  padding: 18px clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tender-list__item:last-child { border-bottom: 0; }
.tender-list__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tender-list__sect { color: var(--ink-faint); }
.tender-list__when { color: var(--live-ink); }
.tender-list__loc  { color: var(--ink-soft); }
.tender-list__title {
  display: inline-block;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.35;
}
.tender-list__title:hover { text-decoration: underline; }
.tender-list__sub {
  display: flex;
  gap: 6px 16px;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 2px;
}
.tender-list__buyer { color: var(--ink-soft); }
.tender-list__value { font-family: var(--mono); color: var(--ink); }
.tender-list__deadline { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

.tender-title { font-weight: 600; color: var(--navy); text-decoration: none; }
.tender-title:hover { text-decoration: underline; }

/* Data table — sits flush inside a panel; horizontal scroll wraps the
   table so the row layout stays clean on narrow screens instead of
   overflowing the panel. Picks up panel inset padding so cells align
   with .panel__head. */
.data-table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 14px clamp(12px, 2vw, 18px);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.data-table th:first-child, .data-table td:first-child { padding-left: clamp(24px, 4vw, 44px); }
.data-table th:last-child, .data-table td:last-child { padding-right: clamp(24px, 4vw, 44px); }
.data-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 500;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in oklab, var(--paper-2), white 40%); }
.data-table td.numeric, .data-table th.numeric {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.data-table td.nowrap, .data-table th.nowrap { white-space: nowrap; }
.data-table__primary { font-weight: 600; color: var(--navy); }

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
}
.badge--admin {
  background: var(--live-bg);
  border-color: var(--live-ring);
  color: var(--live-ink);
}

.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 3vw, 24px) clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  font-size: 14px;
  gap: 14px;
}
.pagination-link {
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--card);
}
/* On touch viewports the pagination chips need a ≥44px tap target so
   the WCAG AA target-size guideline (and Apple/Material design
   minimums) are met. Bumps the inner padding rather than the font
   size so the visual weight stays even. */
@media (max-width: 700px) {
  .pagination-link { padding: 14px 18px; }
}
.pagination-link:hover { border-color: var(--navy); color: var(--navy); }
.pagination-link.disabled { color: var(--ink-faint); background: var(--paper-2); cursor: default; }
.pagination-info { color: var(--ink-faint); font-family: var(--mono); font-size: 12.5px; }

.empty-state {
  padding: 28px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.guest-cta {
  margin-top: 28px;
  padding: clamp(22px, 3.5vw, 30px) clamp(24px, 4vw, 36px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.guest-cta__body { flex: 1 1 320px; min-width: 0; }
.guest-cta__body h2 {
  font-family: var(--serif); font-weight: 500; font-size: 24px;
  letter-spacing: -0.01em; margin: 0 0 6px;
}
.guest-cta__body p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.guest-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

code {
  background: var(--paper-2);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.92em;
}

/* small responsive tweaks */
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .inline-form .input { width: 100%; }
}
