/* Sheetsa Bid's own layer over landing.css (a synced copy of web/landing.css).
   Its accent is a deep slate/navy, not warm like Split (vermillion), Archive
   (ochre) or Specs (cobalt): it reads as an official notice rather than a
   product tool, same brand family otherwise (same type, same paper surface,
   same button and link shapes). Only tokens are redefined, the rule
   landing.css's own dark scheme follows. #1f3a5c clears 4.5:1 for white
   button text in either page theme, so --split-fill needs no dark variant;
   --link and --split do, since they sit directly on --paper. The dark tint
   (#6fa3cf) is the one landing.css's dark scheme already uses for Specs. */
:root {
  --split: #1f3a5c;
  --split-fill: #1f3a5c;
  --split-fill-hover: #16283f;
  --link: #1f3a5c;
  --ok: #2f6f4f;
  --danger: #a3271b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --split: #6fa3cf;
    --link: #6fa3cf;
    --ok: #6fb08c;
    --danger: #f08a7c;
  }
}

.button { border-radius: 2px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button:disabled { opacity: 0.6; cursor: default; }
.button.quiet { background: transparent; color: var(--link); border: 1.5px solid var(--split); padding: 10px 16px; }
.button.quiet:hover { background: var(--band); }
.button.small { padding: 8px 14px; font-size: 0.9rem; gap: 8px; }

.notice-box { border: 1.5px solid var(--split); border-radius: 2px; padding: 20px 24px; margin: 32px 0; background: var(--card); }
.notice-box p { margin: 0; }
.notice-box p + p { margin-top: 10px; }
.notice-tag { font-family: var(--mono); letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--split); }
.notice-title { margin: 6px 0 12px; font-size: 1.6rem; letter-spacing: -0.02em; }
.notice-actions { margin-top: 20px !important; }
.notice-actions .button, .notice-actions .button:hover { color: #fff; text-decoration: none; } /* the section's link colour would otherwise match the fill */

/* the board: bids open now */
.board { padding-block: 56px 24px; }
.board-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.board-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.board-item a { font-weight: 700; font-size: 1.08rem; }
.board-agency, .board-meta { color: var(--muted); font-size: 0.92rem; }
.board-due { font-family: var(--mono); font-size: 0.82rem; text-align: right; white-space: pre-line; }
.board-empty { color: var(--muted); }

/* a bid's notice */
.notice-page { padding-block: 48px 24px; max-width: 980px; }
.notice-head { border: 1.5px solid var(--split); border-radius: 2px; background: var(--card); padding: 22px 24px; }
.notice-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.1; margin: 6px 0 8px; }
.notice-agency { margin: 0; font-weight: 600; color: var(--body); }
.notice-status { font-family: var(--mono); letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--split); }
.notice-status[data-status="closed"], .notice-status[data-status="awarded"] { color: var(--muted); }
.notice-facts { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 6px 16px; margin: 18px 0 0; }
.notice-facts dt { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }
.notice-facts dd { margin: 0; white-space: pre-wrap; color: var(--body); }
.notice-description { white-space: pre-wrap; }
.notice-section { margin-top: 36px; }
/* outranks landing.css's `.prose h2:not(.section-title):not(.eyebrow)` margin */
.prose .notice-section h2:not(.section-title):not(.eyebrow) { font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 10px; }

.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.doc-item { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.doc-label { font-family: var(--mono); font-size: 0.85rem; }
.doc-title { color: var(--ink); }
.doc-meta { display: block; color: var(--muted); font-size: 0.85rem; }
.doc-get { justify-self: end; }

.addendum { border-left: 3px solid var(--split); padding: 6px 0 6px 14px; margin: 0 0 16px; }
.addendum h3 { margin: 0 0 4px; font-size: 1rem; }
.addendum p { margin: 4px 0 0; color: var(--body); }
.addendum .addendum-when { color: var(--muted); font-size: 0.88rem; }
.addendum ul { margin: 6px 0 0; padding-left: 18px; color: var(--body); }
.addendum-note { white-space: pre-wrap; }

.plan-box { border: 1px solid var(--border); border-radius: 2px; background: var(--card); padding: 18px 20px; }
.plan-box h2 { margin-top: 0; }
.plan-box form { display: grid; gap: 10px; max-width: 520px; }
.plan-box label { font-weight: 600; font-size: 0.92rem; }
.plan-box input { font: inherit; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--border); border-radius: 2px; }
.plan-box input:focus-visible { outline: 2px solid var(--split); outline-offset: 2px; }
.plan-box .hint { color: var(--muted); font-size: 0.88rem; margin: 0; }
.plan-who { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.plan-who button { font: inherit; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; }
.plan-ok { color: var(--ok); font-weight: 700; margin: 0; }
.status-line { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; color: var(--body); }
.status-line.error { color: var(--danger); }
.plan-box [hidden], .notice-page [hidden] { display: none !important; }

@media (max-width: 640px) {
  .notice-facts { grid-template-columns: 1fr; gap: 2px; }
  .notice-facts dd { margin-bottom: 8px; }
  .doc-item { grid-template-columns: minmax(0, 1fr) auto; }
  .doc-label { grid-column: 1 / -1; }
  .board-item { grid-template-columns: 1fr; }
  .board-due { text-align: left; }
}
