/* Shared stylesheet for the static landing and tender pages (build_pages.py). Tokens copied from DESIGN.md / viewer_template.html. */
:root {
  --bg: #F8F5F0; --surface: #FFFDFA; --sunk: #F0E9E0; --ink: #3D3029; --muted: #6D5C50; --line: #E4D8CA;
  --accent: #984923; --accent-soft: #F5E5D6; --brand: #E98F4C; --brand-strong: #C66A2E; --brand-ink: #3D3029;
  --today: #AD382B; --today-soft: #FAE9E2; --urgent: #975022; --faint: #7C6B5F; --open: #1F7A4D; --open-soft: #E3F3EA; --brand-soft: #FDEBDC;
  --font: "Figtree", "Segoe UI", sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r-sm: 6px; --r-md: 8px; --r-lg: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.top .logo { display: block; line-height: 0; }
.top .logo img { height: 26px; width: auto; }
/* buttons: quiet outlined 36px controls; only the action row's primary is filled apricot */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: 500 13.5px var(--font); line-height: 1; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--brand); color: var(--brand-strong); text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .lg { display: contents; }   /* the optional word is part of the label, not a second flex item */
.top .btn { font-size: 14px; }
.acts > .btn:first-child { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.acts > .btn:first-child:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.crumbs { font-size: 14px; color: var(--muted); margin: 8px 0 4px; }
.crumbs a { color: var(--muted); }
h1 { font-weight: 700; font-size: clamp(26px, 4.5vw, 36px); line-height: 1.15; letter-spacing: -0.025em; margin: 8px 0 12px; overflow-wrap: anywhere; }
h2 { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 10px; }
.lede { color: var(--muted); max-width: 70ch; margin: 0 0 20px; }
.bids { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.bids li { padding: 12px 16px; border-top: 1px solid var(--line); }
.bids li:first-child { border-top: 0; }
.bids .t { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bids .t:hover { color: var(--accent); }
.bids .m { font-size: 14px; color: var(--muted); margin-top: 2px; }
.bids .c { color: var(--urgent); font-weight: 500; }
.more { margin: 14px 0 0; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.links a { display: inline-block; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--ink); }
.links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.mono { font-family: var(--font-mono); font-size: 14px; }
.cta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.foot { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 48px; padding: 18px 0 40px; }
@media (max-width: 560px) { .top .logo img { height: 22px; } }
.bids .d { font-size: 14px; color: var(--muted); margin-top: 1px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---- tender page: static twin of the explorer drawer (same sections and order) ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.snav { position: sticky; top: 0; z-index: 5; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.snav::-webkit-scrollbar { display: none; }
.snav a { flex: none; padding: 11px 0 9px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.snav a:hover { color: var(--ink); text-decoration: none; }
.snav a[aria-current="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 14px; scroll-margin-top: 56px; }
.sec h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.sec h2::before { content: ""; flex: none; width: 16px; height: 16px; background: no-repeat center / 16px; }
#d-dates h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M8 4.5V8l2.5 1.5'/%3E%3C/svg%3E"); }
#d-figs h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2.5h8M4 5.5h8M11.5 5.5c0 2.5-2 4-4.5 4H5l5.5 4'/%3E%3C/svg%3E"); }
#d-about h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 1.5h5.5L13 5v9.5H4z'/%3E%3Cpath d='M9.5 1.5V5H13M6 8.5h4M6 11h4'/%3E%3C/svg%3E"); }
#d-docs h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='2.5' width='10' height='12' rx='1.5'/%3E%3Cpath d='M6 1.5h4v2H6zM5.5 8.5l1.5 1.5 3-3'/%3E%3C/svg%3E"); }
#d-elig h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.3-2.2 5.6-5 7-2.8-1.4-5-3.7-5-7v-4z'/%3E%3Cpath d='m5.5 8 1.8 1.8L10.8 6'/%3E%3C/svg%3E"); }
#d-pref h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 2 1.6 3.3 3.6.5-2.6 2.5.6 3.6L8 10.2l-3.2 1.7.6-3.6L2.8 5.8l3.6-.5z'/%3E%3C/svg%3E"); }
#d-items h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 4.5h8v7h-8zM9.5 7h3l2 2.5v2h-5'/%3E%3Ccircle cx='4' cy='12.5' r='1.3'/%3E%3Ccircle cx='12' cy='12.5' r='1.3'/%3E%3C/svg%3E"); }
#d-fees h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.5' y='4' width='13' height='9' rx='1.5'/%3E%3Ccircle cx='8' cy='8.5' r='2'/%3E%3Cpath d='M4 6.5v4M12 6.5v4'/%3E%3C/svg%3E"); }
#d-when h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M2.5 7h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E"); }
#d-sim h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='5.5' width='8.5' height='8.5' rx='1.5'/%3E%3Cpath d='M2 10.5V3.5A1.5 1.5 0 0 1 3.5 2h7'/%3E%3C/svg%3E"); }
.ov { padding: 18px 20px; }
.ov h1 { font-size: clamp(22px, 3.6vw, 30px); margin: 6px 0 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tag, .pill { font-size: 12.5px; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.tag.o { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.tag.x { background: #F0E9DA; color: #716047; }
.pill { font-weight: 600; color: var(--ink); }
.pill.open { background: var(--open-soft); color: var(--open); }
.pill.today { background: var(--today-soft); color: var(--today); }
.pill.closed { background: var(--today-soft); color: var(--today); }
.crumb { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.by, .pl { margin: 12px 0 0; padding-left: 24px; font-size: 15px; background: no-repeat 0 3px / 16px; }
.by { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237C6B5F' stroke-width='1.4'%3E%3Cpath d='M2.5 14V5.5L8 2l5.5 3.5V14M1 14h14M6 14v-3.5h4V14M5.5 7.5h1M9.5 7.5h1'/%3E%3C/svg%3E"); }
.pl { margin-top: 6px; color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237C6B5F' stroke-width='1.4'%3E%3Cpath d='M8 14.5s4.5-4.2 4.5-8A4.5 4.5 0 0 0 3.5 6.5c0 3.8 4.5 8 4.5 8Z'/%3E%3Ccircle cx='8' cy='6.5' r='1.6'/%3E%3C/svg%3E"); }
.by b { display: block; font-weight: 600; }
.by span { display: block; font-size: 14px; color: var(--muted); }
.strip { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.strip b, .g b { color: var(--ink); font-weight: 600; }
.note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tl { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tl li { position: relative; text-align: center; font-size: 13px; color: var(--muted); padding: 0 4px; }
.tl li::before { content: ""; position: absolute; top: 7px; right: 50%; left: -50%; height: 2px; background: var(--line); }
.tl li:first-child::before { display: none; }
.tl li.done::before, .tl li.next::before { background: var(--brand); }
.tl i { position: relative; z-index: 1; display: block; width: 16px; height: 16px; margin: 0 auto 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.tl .done i { background: var(--brand); border-color: var(--brand); }
.tl .next i { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl b { display: block; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: #FDEBDC; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tiles.two .tile { background: var(--surface); }
.tile { margin: 0; }
.tile span, .tile small { display: block; font-size: 13px; color: var(--muted); }
.tile b { display: block; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.tile.nil b { font-size: 16px; font-weight: 500; color: var(--muted); }
.tile.hot { background: var(--today-soft); }
.tile.hot b { color: var(--today); }
.items { margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.g { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.items + .g, p + .g { margin-top: 14px; }
.g div { min-width: 0; padding: 10px 12px 11px; box-shadow: -1px -1px 0 0 var(--line); }
.g div.wide, .g div:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd last cell spans the row so no cell is left without a hairline below it */
.g dt { font-size: 11.5px; line-height: 1.3; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.g dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.g .money, .g .mono { font: 500 13.5px/1.4 var(--font-mono); letter-spacing: -0.01em; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.docs li:first-child { border-top: 0; }
details .docs li:first-child { border-top: 1px solid var(--line); }
.docs li::after { content: "Required"; flex: none; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
details summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; padding-top: 8px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { display: none; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticks li { font-size: 14px; padding: 4px 12px 4px 30px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg) no-repeat 10px 50% / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23984923' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E"); }
.ticks li.no { color: var(--muted); background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237C6B5F' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E"); }
.ticks li.no::after { content: " no"; color: var(--faint); font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pills .pill { font-size: 13px; }
.tbl { overflow-x: auto; }
.cons { width: 100%; border-collapse: collapse; font-size: 14px; }
.cons th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 8px 6px 0; border-bottom: 1px solid var(--line); }
.cons td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cons .n { text-align: right; white-space: nowrap; }
#d-sim .bids { border: 0; border-radius: 0; margin: 0 -18px -16px; }
@media (max-width: 860px) {
  .g { grid-template-columns: 1fr; }
  .acts { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); flex-wrap: nowrap; }
  .acts .btn { flex: 1 1 0; justify-content: center; height: 44px; padding: 0 6px; font-size: 14px; border-radius: 14px; }
  .acts .lg, .acts .doc { display: none; }
  .foot { padding-bottom: 96px; }
}
@media (max-width: 359px) { .tiles { grid-template-columns: 1fr; } }
@media (min-width: 360px) and (max-width: 860px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { padding: 9px 10px; } .tile b { font-size: 15.5px; } }

/* ---- 404 (build_pages.not_found_page): a calm centred empty state, the one place a centred layout is allowed ---- */
.nf { display: flex; flex-direction: column; justify-content: center; max-width: 560px; min-height: calc(100svh - 250px); margin: 0 auto; padding: 32px 0 40px; text-align: center; }
.nf-mark { display: block; width: 72px; height: auto; margin: 0 auto 22px; opacity: 0.55; }
.nf-code { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--faint); }
.nf h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.03em; }
.nf .lede { margin: 0 auto 28px; max-width: 42ch; font-size: 17px; }
/* the explorer's pill search: hairline, soft shadow, magnifier at the left, round apricot arrow at the right */
.nf-search { position: relative; max-width: 480px; margin: 0 auto; text-align: left; }
.nf-search input { width: 100%; height: 54px; margin: 0; padding: 0 60px 0 48px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 400 16px var(--font); -webkit-appearance: none; appearance: none;
  box-shadow: 0 8px 28px rgba(82, 55, 34, 0.10), 0 1px 2px rgba(82, 55, 34, 0.06); }
.nf-search input::placeholder { color: var(--faint); }
.nf-search input::-webkit-search-decoration, .nf-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nf-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nf-search > svg { position: absolute; left: 18px; top: 18px; color: var(--faint); pointer-events: none; }
.nf-search button { position: absolute; right: 9px; top: 9px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.nf-search button:hover { background: var(--brand-strong); color: #fff; }
.nf-search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; font-size: 15px; font-weight: 600; }
.nf-links span { color: var(--faint); font-weight: 400; }
@media (max-width: 560px) { .nf { min-height: 0; padding-top: 40px; } .nf .lede { font-size: 16px; } .nf-search input { height: 50px; padding-right: 56px; } .nf-search button { top: 7px; right: 7px; } }
