/* Layout for the server-rendered public pages.

   Hand-written and small on purpose: these are the pages Core Web Vitals is measured on, and they
   ship almost no JavaScript. One file, no framework.

   The system (docs/busybids-style-guide.md): a 4px grid, a 14px body with 16px prose, one teal for
   the single primary action on a surface, borders rather than shadows, semantic colours for status
   only, and density over empty space - a product a contractor can rely on every morning, not a
   directory. Every glyph the CSS draws (ticks, carets, separators) is a CSS escape, so the HTML
   itself stays plain ASCII.

   Sections: base - controls - header - layout - cards, stats, chips - bid rows - filters and
   toolbar - bid page - directories and tables - marketing - forms and feedback - the contractor
   app - footer - print - small screens. */

/* base ------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: .875rem;
  line-height: 1.5715;
  color: var(--bb-gray-900);
  background: var(--bb-gray-25);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; color: var(--bb-gray-900); }
h1 { font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.125rem; line-height: 1.625rem; font-weight: 650; }
h3 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
h4 { font-size: .875rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
a { color: var(--bb-brand-600); text-underline-offset: 2px; }
a:hover { color: var(--bb-brand-700); }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 600; }
small { font-size: .8125rem; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125em; }
hr { border: 0; border-top: 1px solid var(--bb-gray-200); margin: 1rem 0; }
ul, ol { padding-left: 1.25rem; }
.num, .tabular, .stat-value, .bid-value, .table td, .dates td, .plan-price { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2.5rem; }
.wrap-narrow { max-width: 58rem; }
.muted { color: var(--bb-gray-500); }
.hint { color: var(--bb-gray-500); font-size: .8125rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 100; padding: .5rem .75rem;
  background: var(--bb-gray-0); border: 1px solid var(--bb-brand-500); border-radius: var(--bb-radius-md);
  color: var(--bb-gray-900); font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: .5rem; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -.2em; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }
main { padding: 1.25rem 0 3rem; }
body.has-cta-bar main { padding-bottom: 5.5rem; }

/* the words above a heading, and page heads ---------------------------------------------------- */
.eyebrow {
  display: block; margin: 0 0 .25rem; font-size: .6875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--bb-gray-500);
}
.page-head { margin-bottom: 1rem; }
.page-head h1 { margin-bottom: .25rem; }
.page-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .75rem 1.5rem; flex-wrap: wrap;
}
.page-head-row > div:first-child { flex: 1 1 24rem; min-width: 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding-top: .125rem; }
.lede { font-size: .9375rem; line-height: 1.55; color: var(--bb-gray-600); max-width: 70ch; margin: 0 0 .25rem; }
.dek { font-size: 1rem; line-height: 1.55; color: var(--bb-gray-600); max-width: 65ch; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .5rem;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: .8125rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.section-head .muted { margin: 0; font-size: .8125rem; }

/* buttons --------------------------------------------------------------------------------------- */
.btn, .button,
.hero-form button, .edition-form button, .report-form button, .ask-row button,
.filters button, .refine-actions button, .near-form button,
.interest-form button, .verdict-btn, .bid-actions .action, .nav-burger {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  min-height: 2.5rem; padding: .5rem 1rem; border-radius: var(--bb-radius-md);
  font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.25; cursor: pointer;
  text-decoration: none; white-space: normal; text-align: center; max-width: 100%;
  border: 1px solid var(--bb-gray-300); background: var(--bb-gray-0); color: var(--bb-gray-900);
  transition: background .14s ease-out, border-color .14s ease-out, color .14s ease-out;
}
.btn:hover, .button:hover, .verdict-btn:hover, .bid-actions .action:hover, .nav-burger:hover {
  background: var(--bb-gray-50); border-color: var(--bb-gray-300); color: var(--bb-gray-900);
}
.btn-primary, .button-primary,
.hero-form button, .edition-form button, .report-form button, .ask-row button,
.filters button[type="submit"], .refine-actions button, .near-form button,
.interest-form button, .verdict-btn.is-on {
  background: var(--bb-brand-500); border-color: var(--bb-brand-500); color: #fff;
}
.btn-primary:hover, .button-primary:hover,
.hero-form button:hover, .edition-form button:hover, .report-form button:hover,
.ask-row button:hover, .filters button[type="submit"]:hover, .refine-actions button:hover,
.near-form button:hover, .interest-form button:hover, .verdict-btn.is-on:hover {
  background: var(--bb-brand-fill-hover); border-color: var(--bb-brand-fill-hover); color: #fff;
}
.btn-primary:active { background: var(--bb-brand-fill-active); border-color: var(--bb-brand-fill-active); }
.btn-tertiary, .bid-actions .action { border-color: transparent; background: transparent; color: var(--bb-gray-700); }
.btn-tertiary:hover, .bid-actions .action:hover { background: var(--bb-gray-100); border-color: transparent; }
.btn-danger { color: var(--bb-danger); border-color: var(--bb-danger-border); }
.btn-danger:hover { background: var(--bb-danger-bg); border-color: var(--bb-danger-border); color: var(--bb-danger); }
.btn-lg { min-height: 2.75rem; padding: .625rem 1.25rem; font-size: .9375rem; }
.btn-sm, .verdict-btn.small, .bid-actions .action { min-height: 2rem; padding: .25rem .75rem; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn .icon, .verdict-btn .icon, .bid-actions .action .icon { width: 16px; height: 16px; }
.btn[disabled], button[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 2.25rem; height: 2.25rem; display: inline-grid; place-items: center; flex: none;
  border-radius: var(--bb-radius-md); border: 1px solid transparent; background: transparent;
  color: var(--bb-gray-600); text-decoration: none; cursor: pointer;
  transition: background .14s ease-out, color .14s ease-out;
}
.icon-btn:hover { background: var(--bb-gray-100); color: var(--bb-gray-900); }
.theme-toggle[hidden] { display: none; }
.theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--bb-gray-500); font: inherit; font-size: .8125rem;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.link-btn:hover { color: var(--bb-danger); }

/* form controls --------------------------------------------------------------------------------- */
input[type="text"], input[type="search"], input[type="email"], input[type="number"],
input[type="date"], input[type="tel"], input[type="url"], input:not([type]),
input[inputmode], select, textarea {
  font: inherit; font-size: .875rem; color: var(--bb-gray-900); background: var(--bb-gray-0);
  border: 1px solid var(--bb-gray-300); border-radius: var(--bb-radius-md);
  padding: .5rem .75rem; min-height: 2.5rem; min-width: 0; width: 100%;
  transition: border-color .14s ease-out, box-shadow .14s ease-out;
}
textarea { min-height: 5rem; line-height: 1.5; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.25rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--bb-brand-500); box-shadow: var(--bb-focus);
}
button:focus-visible, a:focus-visible, summary:focus-visible, label:focus-visible, .pick:focus-within {
  outline: 2px solid var(--bb-brand-500); outline-offset: 2px;
}
input::placeholder, textarea::placeholder { color: var(--bb-gray-500); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--bb-brand-500); width: 1rem; height: 1rem; }
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field > label, .field > legend { font-size: .8125rem; font-weight: 600; color: var(--bb-gray-700); }
.field .hint { margin-top: .125rem; }
.field-row { display: flex; gap: .5rem; }
.field-row > * { flex: 1 1 0; min-width: 0; }
.kbd {
  display: inline-block; padding: 0 .35rem; min-width: 1.35rem; text-align: center;
  border: 1px solid var(--bb-gray-300); border-bottom-width: 2px; border-radius: 4px;
  background: var(--bb-gray-0); color: var(--bb-gray-500); font-size: .6875rem; line-height: 1.2rem;
}

/* header ---------------------------------------------------------------------------------------- */
.site-header { background: var(--bb-gray-0); border-bottom: 1px solid var(--bb-gray-200); position: relative; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: .75rem; height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--bb-gray-900);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; letter-spacing: -.02em; flex: none;
}
.brand:hover { color: var(--bb-gray-900); }
.header-menu { display: contents; }
.site-nav { display: flex; align-items: center; gap: .125rem; margin-left: .5rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .625rem;
  border-radius: var(--bb-radius-sm); color: var(--bb-gray-700); text-decoration: none;
  font-size: .875rem; font-weight: 500; white-space: nowrap;
  transition: background .14s ease-out, color .14s ease-out;
}
.site-nav a:hover { background: var(--bb-gray-100); color: var(--bb-gray-900); }
.site-nav a.cta {
  margin-left: .375rem; background: var(--bb-brand-500); color: #fff; padding: 0 .875rem;
  border-radius: var(--bb-radius-md);
}
.site-nav a.cta:hover { background: var(--bb-brand-fill-hover); color: #fff; }
.header-search {
  position: relative; display: flex; align-items: center; margin-left: auto;
  width: 21rem; max-width: 100%;
}
.header-search .icon { position: absolute; left: .625rem; color: var(--bb-gray-500); pointer-events: none; }
.header-search input { padding-left: 2rem; padding-right: 2.5rem; min-height: 2.5rem; font-size: .875rem; background: var(--bb-gray-50); }
.header-search input:focus { background: var(--bb-gray-0); }
.header-search .kbd { position: absolute; right: .5rem; pointer-events: none; }
.header-tools { display: flex; align-items: center; gap: .125rem; flex: none; }
.nav-burger { display: none; min-height: 2.25rem; padding: 0 .75rem; margin-left: auto; }

/* the signed-in block. D3: the signed link in the email is the credential; the session carries
   it across the public pages. A <details> disclosure, so it opens with no JavaScript. */
.account { position: relative; margin-left: .25rem; }
.account > summary {
  display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none;
  max-width: 14rem; min-height: 2.25rem; padding: 0 .5rem 0 .25rem; font-size: .8125rem; font-weight: 500;
  color: var(--bb-gray-900); border: 1px solid transparent; border-radius: var(--bb-radius-md);
}
.account > summary::-webkit-details-marker { display: none; }
.account > summary:hover { background: var(--bb-gray-100); }
.account > summary::after { content: "\25BE"; color: var(--bb-gray-500); font-size: .75rem; }
.account-avatar {
  width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bb-brand-50); color: var(--bb-brand-700); font-weight: 700; font-size: .75rem;
  border: 1px solid var(--bb-brand-200);
}
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account[open] > summary { background: var(--bb-gray-100); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + .375rem); z-index: 40; width: 17rem;
  padding: .75rem .875rem; background: var(--bb-gray-0);
  border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-popover);
}
.account-who { margin: 0 0 .5rem; font-size: .75rem; color: var(--bb-gray-500); word-break: break-word; }
.account-menu nav { display: block; margin: 0; }
.account-menu ul { list-style: none; margin: 0; padding: 0; }
.account-menu li + li { margin-top: .0625rem; }
.account-menu a {
  display: block; padding: .375rem .5rem; margin: 0 -.5rem; border-radius: var(--bb-radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--bb-gray-900); text-decoration: none;
}
.account-menu a:hover { background: var(--bb-gray-100); color: var(--bb-gray-900); }
.account-signout { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--bb-gray-200); }
.account-signout button {
  display: block; width: 100%; padding: .375rem .5rem; margin: 0 -.5rem; width: calc(100% + 1rem);
  font: inherit; font-size: .875rem; font-weight: 500; text-align: left;
  color: var(--bb-gray-900); background: none; border: 0; border-radius: var(--bb-radius-sm); cursor: pointer;
}
.account-signout button:hover { background: var(--bb-gray-100); }
.account-note { margin: .5rem 0 0; font-size: .75rem; line-height: 1.45; color: var(--bb-gray-500); }

.crumbs { padding-top: .75rem; font-size: .75rem; color: var(--bb-gray-500); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.crumbs a { color: var(--bb-gray-500); text-decoration: none; }
.crumbs a:hover { color: var(--bb-gray-900); text-decoration: underline; }
.crumbs li + li::before { content: "\203A"; margin-right: .25rem; color: var(--bb-gray-300); }
.crumbs [aria-current] { color: var(--bb-gray-700); }

/* layout ---------------------------------------------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; align-items: start; }
.layout-rail { grid-template-columns: 16.5rem minmax(0, 1fr); }
.layout-wide { grid-template-columns: minmax(0, 1fr) 24rem; }
.layout > * { min-width: 0; }
.side-sticky { position: sticky; top: 1rem; }
.two-col { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.stack > * + * { margin-top: 1rem; }

/* cards ----------------------------------------------------------------------------------------- */
.card, .edition, .verdict, .asks, .alert-cta, .report {
  background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200);
  border-radius: var(--bb-radius-lg); padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.card > h2:first-child, .card > h3:first-child { margin-bottom: .5rem; }
.card > :last-child { margin-bottom: 0; }
.card.tight { padding: .75rem 1rem; }
.card-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin-bottom: 1rem; }
.card-grid > .card { margin: 0; }
.card-grid a.card { display: block; color: inherit; text-decoration: none; transition: border-color .14s ease-out, box-shadow .14s ease-out; }
.card-grid a.card:hover { border-color: var(--bb-gray-300); box-shadow: var(--bb-shadow-sm); }
.card-grid a.card h2, .card-grid a.card h3 { color: var(--bb-gray-900); margin-bottom: .25rem; font-size: 1rem; }
.card-grid a.card p { color: var(--bb-gray-600); margin: 0; font-size: .8125rem; }
.card-grid a.card .meta { display: block; margin-top: .5rem; font-size: .75rem; color: var(--bb-gray-500); }
.side-card h2, .side-card h3 {
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bb-gray-500); margin-bottom: .5rem;
}

/* the numbers ----------------------------------------------------------------------------------- */
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: 1rem; }
.stat { background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg); padding: .75rem 1rem; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat-label { display: block; color: var(--bb-gray-500); font-size: .8125rem; margin-top: .125rem; }
.stat-hint { display: block; color: var(--bb-gray-500); font-size: .75rem; margin-top: .0625rem; }
.stat-strip, .kpi-strip {
  display: flex; flex-wrap: wrap; background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200);
  border-radius: var(--bb-radius-lg); margin-bottom: 1rem; overflow: hidden;
}
.stat-strip .stat, .kpi-strip .stat {
  flex: 1 1 9rem; border: 0; border-radius: 0; padding: .625rem 1rem;
  border-left: 1px solid var(--bb-gray-100); background: none;
}
.stat-strip .stat:first-child, .kpi-strip .stat:first-child { border-left: 0; }
.stat-strip .stat-value, .kpi-strip .stat-value { font-size: 1.25rem; }
.stats.compact .stat-value { font-size: 1.125rem; }
.stats.compact .stat { padding: .625rem .875rem; }

/* chips ----------------------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .25rem; border-radius: var(--bb-radius-full);
  padding: 0 .5rem; font-size: .75rem; font-weight: 600; line-height: 1.25rem; white-space: nowrap;
  background: var(--bb-gray-100); color: var(--bb-gray-700); border: 1px solid transparent;
}
.chip.urgent { background: var(--bb-danger-bg); color: var(--bb-danger); border-color: var(--bb-danger-border); }
.chip.soon { background: var(--bb-warning-bg); color: var(--bb-warning); border-color: var(--bb-warning-border); }
.chip.ok { background: var(--bb-success-bg); color: var(--bb-success); border-color: var(--bb-success-border); }
.chip.info { background: var(--bb-info-bg); color: var(--bb-info); border-color: var(--bb-info-border); }
.chip.past { background: var(--bb-gray-100); color: var(--bb-gray-500); }
.chip.neutral { background: var(--bb-gray-50); color: var(--bb-gray-700); border-color: var(--bb-gray-200); }
.chip.match { background: var(--bb-ai-bg); color: var(--bb-ai); border-color: var(--bb-ai-border); }
.chip.tag { background: var(--bb-gray-0); color: var(--bb-gray-700); border-color: var(--bb-gray-200); border-radius: var(--bb-radius-sm); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; margin: 0 0 .75rem; }
.chip-row .plain { color: var(--bb-gray-600); font-size: .8125rem; }
.match-strong .chip.match, .chip.match-strong { background: var(--bb-ai-bg); color: var(--bb-ai); border-color: var(--bb-ai-border); }
.match-possible .chip.match, .chip.match-possible { background: var(--bb-info-bg); color: var(--bb-info); border-color: var(--bb-info-border); }
.match-weak .chip.match, .chip.match-weak { background: var(--bb-gray-100); color: var(--bb-gray-600); border-color: transparent; }

/* listing rows - one compact card each, everywhere (style guide section 13) ------------------- */
.bid-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.bid-list > li {
  background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg);
  padding: .875rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem 1.25rem; align-items: stretch; transition: border-color .14s ease-out, box-shadow .14s ease-out;
}
.bid-list > li:hover { border-color: var(--bb-gray-300); box-shadow: var(--bb-shadow-sm); }
.bid-list > li > .bid-main { min-width: 0; }
.bid-list > li > .bid-aside {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  gap: .5rem; text-align: right;
}
.bid-list > li > .bid-foot { grid-column: 1 / -1; }
.bid-top { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; margin-bottom: .25rem; }
.bid-title { font-weight: 600; font-size: 1rem; line-height: 1.35; text-decoration: none; color: var(--bb-gray-900); }
.bid-title:hover { color: var(--bb-brand-700); text-decoration: underline; }
.bid-meta { color: var(--bb-gray-600); font-size: .8125rem; margin-top: .125rem; }
.bid-meta .sep, .bid-facts .sep { margin: 0 .35rem; color: var(--bb-gray-300); }
.bid-facts { display: flex; flex-wrap: wrap; gap: .125rem .875rem; margin-top: .375rem; font-size: .8125rem; color: var(--bb-gray-600); }
.bid-facts b { color: var(--bb-gray-900); }
.bid-deadline { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.bid-value { font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.bid-due { color: var(--bb-gray-900); font-weight: 500; font-size: .8125rem; white-space: nowrap; }
.bid-due strong { color: var(--bb-gray-900); }
.bid-row-actions { display: flex; gap: .375rem; align-items: center; }
.bid-row-actions form { margin: 0; }
.bid-list .chip { font-size: .75rem; }
.bid-list .match-line { font-size: .8125rem; color: var(--bb-gray-600); margin-bottom: .25rem; }
.muted-list .bid-title { color: var(--bb-gray-600); font-weight: 500; }
.muted-list > li { background: var(--bb-gray-50); }

/* ticks and warnings on a row. Glyphs are CSS escapes, so the markup stays ASCII. */
.flags { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .375rem; font-size: .75rem; color: var(--bb-gray-700); }
.flag { display: inline-flex; align-items: center; gap: .25rem; }
.flag::before { display: inline-block; font-weight: 700; }
.flag.ok::before { content: "\2713"; color: var(--bb-success); }
.flag.warn::before { content: "\26A0"; color: var(--bb-warning); font-weight: 400; }

/* the filter rail and the results toolbar (style guide sections 10, 34) ------------------------ */
.filters {
  background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg);
  padding: 0; margin: 0 0 1rem;
}
.filters-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .625rem .75rem .625rem 1rem; border-bottom: 1px solid var(--bb-gray-100);
}
.filters-head h2 { margin: 0; font-size: .875rem; display: inline-flex; align-items: center; gap: .375rem; }
.filters-head .clear { font-size: .8125rem; }
.filters-toggle-label { display: none; }
.filters form { padding: .75rem 1rem 1rem; }
.filters-row { display: grid; gap: .75rem; }
.filters-row .field-action { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.filters button[type="submit"] { width: 100%; }
.filters .more { margin-top: .75rem; border-top: 1px solid var(--bb-gray-100); padding-top: .5rem; }
.filters .more > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: .8125rem; color: var(--bb-gray-700); padding: .25rem 0;
}
.filters .more > summary::-webkit-details-marker { display: none; }
.filters .more > summary::after { content: "\25BE"; color: var(--bb-gray-500); }
.filters .more[open] > summary { margin-bottom: .5rem; }
.filters .more[open] > summary::after { content: "\25B4"; }
.filters .clear { font-size: .8125rem; }
.filters .n {
  display: inline-block; margin-left: .25rem; padding: 0 .4rem; min-width: 1.25rem; text-align: center;
  background: var(--bb-brand-500); color: #fff; border-radius: 999px; font-size: .6875rem; line-height: 1.25rem;
}
.refine-note { margin: .5rem 0 0; font-size: .75rem; }
.notice { font-size: .8125rem; color: var(--bb-gray-600); margin: 0 0 .75rem; padding: .5rem .75rem; background: var(--bb-info-bg); border: 1px solid var(--bb-info-border); border-radius: var(--bb-radius-md); }
.notice.warn { background: var(--bb-warning-bg); border-color: var(--bb-warning-border); color: var(--bb-warning); }
.showing { font-size: .8125rem; color: var(--bb-gray-600); margin: 0; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  margin-bottom: .625rem; font-size: .8125rem; color: var(--bb-gray-600);
}
.sort-links { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem; }
.sort-links .label { margin-right: .25rem; color: var(--bb-gray-500); }
.sort-links a {
  display: inline-block; padding: .25rem .5rem; border-radius: var(--bb-radius-sm); text-decoration: none;
  color: var(--bb-gray-700); font-weight: 500;
}
.sort-links a:hover { background: var(--bb-gray-100); color: var(--bb-gray-900); }
.sort-links a[aria-current] { background: var(--bb-gray-100); color: var(--bb-gray-900); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-bottom: .75rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .375rem; padding: 0 .5rem 0 .625rem;
  border-radius: var(--bb-radius-full); background: var(--bb-brand-50); color: var(--bb-brand-700);
  border: 1px solid var(--bb-brand-200); font-size: .75rem; font-weight: 600; line-height: 1.5rem; text-decoration: none;
}
.filter-chip::after { content: "\00D7"; font-size: .875rem; line-height: 1; color: var(--bb-brand-500); }
.filter-chip:hover { background: var(--bb-brand-100); color: var(--bb-brand-700); }
.filter-chip.clear-all { background: transparent; border-color: var(--bb-gray-300); color: var(--bb-gray-700); }
.filter-chip.clear-all::after { content: none; }
.filter-chip.clear-all:hover { background: var(--bb-gray-100); }

/* index page blocks ---------------------------------------------------------------------------- */
.index .facet { margin-bottom: 1rem; }
.facet h2 { font-size: .8125rem; color: var(--bb-gray-600); font-weight: 600; margin-bottom: .5rem; }
.related { display: flex; flex-wrap: wrap; gap: .375rem; font-size: .8125rem; }
.related a {
  display: inline-flex; align-items: center; gap: .25rem; background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200);
  border-radius: var(--bb-radius-sm); padding: .25rem .625rem; text-decoration: none; color: var(--bb-gray-700);
  font-weight: 500; transition: border-color .14s ease-out, color .14s ease-out;
}
.related a:hover { border-color: var(--bb-brand-500); color: var(--bb-brand-700); }
.related a .n { color: var(--bb-gray-500); font-size: .75rem; font-variant-numeric: tabular-nums; }
.related.dir-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .125rem .75rem;
  font-size: .875rem;
}
.related.dir-list a {
  justify-content: space-between; background: transparent; border-color: transparent; padding: .5rem .625rem;
  color: var(--bb-gray-900);
}
.related.dir-list a:hover { background: var(--bb-gray-0); border-color: var(--bb-gray-200); }
.related.dir-list a .n { font-size: .8125rem; }
.blocks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-bottom: 1rem; }
.blocks > .card { margin: 0; }
.blocks ul.plain-list, .card ul.plain-list { margin: 0; padding-left: 1.1rem; }
.blocks ul.plain-list li, .card ul.plain-list li { margin-bottom: .25rem; }
.blocks .bid-list > li { padding: .625rem .75rem; border-radius: var(--bb-radius-md); }
.blocks .bid-title { font-size: .875rem; }
ul.plain-list { margin: 0; padding-left: 1.1rem; }
.empty { margin-bottom: 1rem; }
.empty-state {
  text-align: center; padding: 2rem 1rem; margin-bottom: 1rem;
  background: var(--bb-gray-0); border: 1px dashed var(--bb-gray-300); border-radius: var(--bb-radius-lg);
}
.empty-state h2 { font-size: 1rem; margin-bottom: .25rem; }
.empty-state p { color: var(--bb-gray-600); max-width: 46ch; margin: 0 auto .75rem; }
.empty-state .btn { margin-top: .25rem; }

/* pagination ------------------------------------------------------------------------------------ */
.pagination { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; margin: 1rem 0 1.5rem; font-size: .8125rem; }
.pagination ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; min-height: 2.25rem;
  padding: 0 .625rem; border-radius: var(--bb-radius-md); border: 1px solid var(--bb-gray-200);
  text-decoration: none; background: var(--bb-gray-0); color: var(--bb-gray-700); font-weight: 500;
}
.pagination a:hover { border-color: var(--bb-gray-300); background: var(--bb-gray-50); color: var(--bb-gray-900); }
.pagination [aria-current="page"] { background: var(--bb-gray-900); border-color: var(--bb-gray-900); color: var(--bb-gray-25); }
.pagination .page-step { font-weight: 500; }

/* homepage and marketing ------------------------------------------------------------------------ */
.hero {
  background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-xl);
  padding: 2rem 2rem 1.5rem; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; margin-bottom: .375rem; max-width: 24ch; }
.hero-sub { font-size: 1rem; color: var(--bb-gray-600); max-width: 60ch; margin-bottom: 1.25rem; }
.hero-form { display: grid; gap: .75rem 1rem; grid-template-columns: minmax(12rem, 2fr) minmax(8rem, 1fr) minmax(8rem, 1fr) auto; align-items: end; }
.hero-form .field-action { display: flex; }
.hero-form button { width: 100%; min-height: 2.75rem; padding: .625rem 1.5rem; font-size: .9375rem; }
.hero-free { margin: .75rem 0 0; color: var(--bb-gray-500); font-size: .8125rem; }
.hero-free span + span::before { content: "\00B7"; margin: 0 .5rem; color: var(--bb-gray-300); }
.home-block { margin-bottom: 1.75rem; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: .75rem; }
.steps li {
  counter-increment: step; position: relative; padding: .875rem 1rem .875rem 3.25rem;
  background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg);
  display: flex; flex-direction: column; gap: .125rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: .875rem; top: .875rem;
  width: 1.625rem; height: 1.625rem; border-radius: 50%;
  background: var(--bb-brand-50); color: var(--bb-brand-700); border: 1px solid var(--bb-brand-200);
  display: grid; place-items: center; font-weight: 700; font-size: .8125rem;
}
.steps li span { color: var(--bb-gray-600); font-size: .8125rem; }
.faq dl { margin: 0; }
.faq dt { font-weight: 600; margin-top: .875rem; }
.faq dd { margin: .125rem 0 0; color: var(--bb-gray-600); max-width: 70ch; }
.faq dt:first-child { margin-top: 0; }
.prose-page .page-head h1 { font-size: 2rem; line-height: 1.2; }

/* bid page (style guide section 14) ------------------------------------------------------------- */
.bid-head { margin-bottom: 1rem; }
.bid-head h1 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; max-width: 56rem; margin-bottom: .5rem; }
.bid-metarow { display: flex; flex-wrap: wrap; gap: .375rem .875rem; align-items: center; font-size: .8125rem; color: var(--bb-gray-600); margin: 0 0 .25rem; }
.bid-metarow > span { display: inline-flex; align-items: center; gap: .3rem; }
.bid-metarow .icon { width: 15px; height: 15px; color: var(--bb-gray-500); }
.banner {
  border-radius: var(--bb-radius-md); padding: .625rem .875rem; margin-bottom: 1rem;
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; font-size: .8125rem;
}
.banner-closed { background: var(--bb-danger-bg); border: 1px solid var(--bb-danger-border); }
.banner-changed { background: var(--bb-warning-bg); border: 1px solid var(--bb-warning-border); display: block; }
.banner-changed ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.banner-changed s { color: var(--bb-gray-500); }
.banner-changed .muted { font-size: .75rem; }

.summary-blocks { display: grid; gap: .875rem; }
.summary-block h3 {
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bb-gray-500); margin-bottom: .25rem;
}
.summary-block p:last-child, .summary-block ul:last-child { margin-bottom: 0; }
.summary-block ul { margin: 0; padding-left: 1.1rem; }
.summary-block li + li { margin-top: .125rem; }
.ai-note {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 500;
  color: var(--bb-ai); background: var(--bb-ai-bg); border: 1px solid var(--bb-ai-border);
  border-radius: var(--bb-radius-sm); padding: 0 .5rem; line-height: 1.375rem;
}

.dates { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.dates th {
  text-align: left; font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--bb-gray-500); padding: 0 .5rem .5rem 0; border-bottom: 1px solid var(--bb-gray-200);
}
.dates td { padding: .5rem .5rem .5rem 0; border-top: 1px solid var(--bb-gray-100); vertical-align: top; }
.dates tr:first-child td { border-top: 0; }
.dates td.when { font-weight: 600; white-space: nowrap; }
.dates td.status { text-align: right; white-space: nowrap; padding-right: 0; }
.dates .hint { display: block; font-weight: 400; font-size: .75rem; }
.dates .event { font-weight: 500; color: var(--bb-gray-900); }

.facts dl { margin: 0; }
.fact { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; padding: .5rem 0; font-size: .8125rem; }
.fact + .fact { border-top: 1px solid var(--bb-gray-100); }
.fact dt { font-weight: 500; color: var(--bb-gray-500); }
.fact dd { margin: 0; color: var(--bb-gray-900); word-break: break-word; }
.side-card .fact { grid-template-columns: 6.5rem 1fr; padding: .375rem 0; }
.row-source {
  font-size: .6875rem; text-decoration: none; color: var(--bb-gray-500);
  border-bottom: 1px dotted var(--bb-gray-300); margin-left: .35rem; white-space: nowrap;
}
.row-source:hover { color: var(--bb-brand-600); border-bottom-color: currentColor; }

.body { max-width: 70ch; font-size: 1rem; line-height: 1.6; }
.body img { border-radius: var(--bb-radius-lg); }
.body > :last-child { margin-bottom: 0; }
.body h2 { font-size: 1.25rem; margin-top: 1.5rem; }
.body h3 { font-size: 1.0625rem; margin-top: 1.25rem; }
.body p, .body ul, .body ol { margin-bottom: 1rem; }
.scope .body p:last-child { margin-bottom: 0; }
.summary-block .body { font-size: .9375rem; }

.checks, .why { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.checks li, .why li { padding-left: 1.5rem; position: relative; }
.checks li::before { content: "\26A0"; color: var(--bb-warning); position: absolute; left: 0; }
.why li::before { content: "\2713"; color: var(--bb-success); font-weight: 700; position: absolute; left: 0; }
.match h2 .chip { margin-left: .5rem; vertical-align: middle; }

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  padding: .5rem 0; border-top: 1px solid var(--bb-gray-100);
}
.doc-list li:first-child { border-top: 0; padding-top: 0; }
.doc-icon {
  width: 2rem; height: 2rem; border-radius: var(--bb-radius-sm); display: grid; place-items: center;
  background: var(--bb-gray-100); color: var(--bb-gray-600); flex: none;
}
.doc-list a.doc-name, .doc-list .doc-name { font-weight: 500; text-decoration: none; color: var(--bb-gray-900); display: block; overflow-wrap: anywhere; }
.doc-list a.doc-name:hover { text-decoration: underline; }
.doc-list .meta { display: block; color: var(--bb-gray-500); font-size: .75rem; }
.doc-list .meta strong { color: var(--bb-warning); }

.bid-cta { display: grid; gap: .5rem; margin-bottom: .875rem; }
.bid-cta .btn { width: 100%; }
.bid-cta form { margin: 0; display: contents; }
.bid-actions { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
.bid-actions .action { font-size: .8125rem; }
.official { margin-bottom: 1rem; }
.official .muted { margin: .5rem 0 0; font-size: .8125rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .25rem .875rem; align-items: center; font-size: .75rem; color: var(--bb-gray-500); }
.trust-row > span { display: inline-flex; align-items: center; gap: .3rem; }
.trust-row .icon { width: 14px; height: 14px; }
.trust-row a { color: inherit; }
.provenance { margin-bottom: 1rem; padding: .875rem 1rem; background: var(--bb-gray-50); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg); font-size: .8125rem; }
.provenance h2 { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-gray-500); margin-bottom: .375rem; }
.provenance p { margin-bottom: .375rem; }
.provenance p:last-child { margin-bottom: 0; }
.similar { margin-bottom: 1rem; }

/* directories and tables (style guide sections 17, 26) ------------------------------------------ */
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.table th, .table td { text-align: left; padding: .625rem .875rem; vertical-align: middle; }
.table thead th {
  height: 2.5rem; padding-top: 0; padding-bottom: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--bb-gray-500); background: var(--bb-gray-50);
  border-bottom: 1px solid var(--bb-gray-200); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.table td { border-top: 1px solid var(--bb-gray-100); }
.table tbody tr:first-child td { border-top: 0; }
.table thead + tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: var(--bb-gray-50); }
.table a { color: var(--bb-gray-900); text-decoration: none; font-weight: 500; }
.table a:hover { text-decoration: underline; }
.table .chip { margin-left: .4rem; }
.table th.num, .table td.num { text-align: right; }
.table td .meta { display: block; color: var(--bb-gray-500); font-size: .75rem; font-weight: 400; }
.table th a { color: inherit; font-weight: inherit; display: inline-flex; align-items: center; gap: .25rem; }
.table th a.sorted::after { content: "\25BE"; }
.table th a.sorted.asc::after { content: "\25B4"; }
.table th a:hover { color: var(--bb-gray-900); text-decoration: none; }
.muted-rows td { color: var(--bb-gray-500); }
.muted-rows a { color: var(--bb-gray-500); }
.table-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: .75rem; }
.table-controls .field { flex: 1 1 10rem; }
.table-controls .field.grow { flex: 2 1 16rem; }
.table-controls .field-action { display: flex; gap: .5rem; align-items: center; }
.agency-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.agency-list li { margin: 0; }
.agency-list a {
  display: block; height: 100%; text-decoration: none; color: inherit;
  background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg); padding: .75rem 1rem;
}
.agency-list a:hover { border-color: var(--bb-gray-300); box-shadow: var(--bb-shadow-sm); }
.agency-list .bid-title { font-size: .9375rem; }
.agency-list .meta { display: block; color: var(--bb-gray-500); font-size: .8125rem; margin-top: .125rem; }
.featured-agencies { margin-bottom: 1rem; }
.featured-agencies .card-grid { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.featured-agencies .stat-value { font-size: 1.25rem; }

/* pricing --------------------------------------------------------------------------------------- */
.pricing-head { align-items: center; }
.billing-toggle { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .875rem; user-select: none; cursor: pointer; }
.billing-toggle .knob {
  width: 2.25rem; height: 1.25rem; border: 1px solid var(--bb-gray-300); border-radius: 999px; position: relative;
  background: var(--bb-gray-100); transition: background .14s ease-out;
}
.billing-toggle .knob::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: .875rem; height: .875rem; border-radius: 50%;
  background: var(--bb-gray-0); box-shadow: 0 1px 2px rgba(15, 23, 42, .2); transition: transform .14s ease-out;
}
#billing-annual:checked ~ .page-head .knob { background: var(--bb-brand-500); border-color: var(--bb-brand-500); }
#billing-annual:checked ~ .page-head .knob::before { transform: translateX(1rem); }
#billing-annual:focus-visible ~ .page-head .knob { outline: 2px solid var(--bb-brand-500); outline-offset: 2px; }
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-bottom: 1rem; }
.plan { display: flex; flex-direction: column; margin: 0; padding: 1.25rem; position: relative; }
.plan.featured { border-color: var(--bb-brand-500); box-shadow: 0 0 0 1px var(--bb-brand-500); }
.plan h2 { font-size: 1rem; margin-bottom: .125rem; }
.plan .tagline { color: var(--bb-gray-600); min-height: 2.4em; margin-bottom: .75rem; font-size: .8125rem; }
.plan-price { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .125rem; }
.plan-price .per { font-size: .875rem; font-weight: 400; color: var(--bb-gray-500); letter-spacing: 0; margin-left: .125rem; }
.plan-billed { color: var(--bb-gray-500); font-size: .75rem; min-height: 1.4em; margin-bottom: 1rem; }
.plan-features { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .375rem; flex: 1; font-size: .875rem; }
.plan-features li { padding-left: 1.375rem; position: relative; }
.plan-features li::before { content: "\2713"; color: var(--bb-success); font-weight: 700; position: absolute; left: 0; }
.plan .btn { width: 100%; }
.interest-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.interest-form input[type="email"] { flex: 1 1 10rem; }
.interest-form button { flex: 0 0 auto; }
.plan .early { font-size: .75rem; color: var(--bb-gray-500); margin: .5rem 0 0; }
.plan.is-answered { border-color: var(--bb-brand-500); }
.price-annual { display: none; }
#billing-annual:checked ~ .plans .price-annual { display: block; }
#billing-annual:checked ~ .plans .price-monthly { display: none; }
#billing-annual:checked ~ .plans .period-monthly { display: none; }
#billing-annual:checked ~ .plans .period-annual { display: inline; }
.period-annual { display: none; }
/* The two submit buttons carry the chosen period. The shared `.interest-form button` rule above
   sets display with more specificity than `.period-annual`, so they need their own show/hide. */
.interest-form button.period-annual { display: none; }
#billing-annual:checked ~ .plans .interest-form button.period-annual { display: inline-flex; }
.pricing-notes { max-width: 70ch; }

/* forms and feedback (save, signup, report, verdicts, questions) -------------------------------- */
.verdict h2 { font-size: 1rem; }
.verdict-current { font-size: .8125rem; }
.verdict-buttons { display: flex; flex-wrap: wrap; gap: .375rem; }
.verdict-buttons form { margin: 0; }
.verdict-why { margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--bb-gray-100); }
.asks h2 { font-size: 1rem; margin-bottom: .75rem; }
.ask + .ask { margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--bb-gray-100); }
.ask label { display: block; font-weight: 600; font-size: .875rem; }
.ask-because { color: var(--bb-gray-500); font-size: .8125rem; margin: .125rem 0 .5rem; }
.ask-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ask-row input:not([type="checkbox"]), .ask-row select { width: auto; min-width: 14rem; flex: 1 1 14rem; }
.ask-checks { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ask-check { display: inline-flex; gap: .35rem; align-items: center; font-weight: 400; font-size: .875rem; padding: .375rem .625rem; border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-sm); background: var(--bb-gray-0); }

.edition { background: var(--bb-brand-50); border-color: var(--bb-brand-200); }
.edition h2 { margin-bottom: .25rem; font-size: 1rem; }
.edition p { margin-bottom: .625rem; }
.edition-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.edition-form input[type="email"] { flex: 1 1 16rem; width: auto; }
.edition-note { font-size: .75rem; color: var(--bb-gray-500); margin: .5rem 0 0; }
.edition.is-answered { background: var(--bb-success-bg); border-color: var(--bb-success-border); }
.edition.save { background: var(--bb-gray-0); border-color: var(--bb-gray-200); }
.edition.save.is-answered { background: var(--bb-success-bg); border-color: var(--bb-success-border); }
/* The honeypot. Not `display:none` - some bots skip hidden inputs, and this one only works if
   they find it and fill it in. Kept out of the tab order and off the accessibility tree instead. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.report { padding: .75rem 1.25rem; }
.report-details summary { cursor: pointer; font-weight: 500; color: var(--bb-gray-600); font-size: .8125rem; }
.report-details summary:hover { color: var(--bb-gray-900); }
.report-details[open] summary { color: var(--bb-gray-900); margin-bottom: .375rem; }
.report-form { display: flex; flex-direction: column; gap: .25rem; max-width: 34rem; margin-top: .5rem; }
.report-form label { font-size: .8125rem; font-weight: 600; margin-top: .5rem; }
.report-form label .muted { font-weight: 400; }
.report-form button { align-self: flex-start; margin-top: .75rem; }

/* saved bids, first run, invite ----------------------------------------------------------------- */
.saved-group { margin-bottom: 1.5rem; }
.saved-group h2 { font-size: 1rem; margin-bottom: .125rem; }
.saved-group > .muted { font-size: .8125rem; margin-bottom: .5rem; }
.saved-row .verdict-buttons { margin-top: .375rem; }
.first-run-list .match-line { font-weight: 500; }
.first-run-list .match-strong { color: var(--bb-ai); }
.first-run-list .match-possible { color: var(--bb-info); }
.first-run-list .match-weak, .first-run-list .match-unknown { color: var(--bb-gray-500); }
.invite-link {
  display: inline-block; padding: .375rem .625rem; background: var(--bb-gray-50);
  border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-sm);
  font-size: .8125rem; word-break: break-all;
}
.invite .hero-form { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.invite .hero-form .field { flex: 1 1 14rem; }

/* legacy selectors still used by a few partials ------------------------------------------------- */
.near-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.near-form label { font-weight: 500; color: var(--bb-gray-600); }
.near-form input { width: 9rem; }
.refine-field { display: flex; flex-direction: column; gap: .25rem; }
.refine-field label { font-size: .8125rem; font-weight: 600; color: var(--bb-gray-600); }
.refine-actions { display: flex; gap: .75rem; align-items: center; }
.alert-cta { margin-bottom: 1rem; }
/* Google's "add as preferred source" card (`_preferred_source.html`). The button itself is
   Google's, inflated by its script; this only spaces the card. */
.preferred-source h2 { margin-bottom: .25rem; font-size: 1rem; }
.preferred-source p { margin-bottom: .625rem; }
/* The deeplink shows until Google's script has inflated the div. The button lives in a shadow
   root, so the div stays `:empty` in the light DOM; `data-initialized` is what the script sets. */
.preferred-source [google-add-preferred-source-btn][data-initialized] + .preferred-source-link { display: none; }
.alert-cta h2 { font-size: 1rem; }
.alert-cta .btn + .btn { margin-left: .375rem; }

/* the contractor app (web/public/app.py) -------------------------------------------------------- */
.app-nav { margin: 0 0 1rem; border-bottom: 1px solid var(--bb-gray-200); overflow-x: auto; }
.app-nav ul { list-style: none; display: flex; gap: .125rem; margin: 0; padding: 0; }
.app-nav a {
  display: block; padding: .625rem .75rem; margin-bottom: -1px; color: var(--bb-gray-600); text-decoration: none;
  font-weight: 500; font-size: .875rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.app-nav a:hover { color: var(--bb-gray-900); }
.app-nav a[aria-current="page"] { color: var(--bb-brand-700); border-bottom-color: var(--bb-brand-500); }

.app .card { margin-bottom: 1rem; }
.app-form h2 { margin-bottom: .75rem; }
.form-disclosure { border-top: 1px solid var(--bb-gray-200); margin-bottom: .75rem; }
.form-disclosure > summary { cursor: pointer; padding: .75rem 0; font-weight: 600; }
.form-disclosure[open] > summary { margin-bottom: .25rem; }
#nav-toggle:focus-visible ~ .nav-burger,
.filters-toggle:focus-visible ~ .filters-head .filters-toggle-label,
#view-table:focus-visible ~ .toolbar label[for="view-table"],
#view-board:focus-visible ~ .toolbar label[for="view-board"] {
  outline: 2px solid var(--bb-brand-500); outline-offset: 3px;
}
.app-form .field { margin-bottom: .875rem; }
.app-form fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.app-form legend { font-size: .8125rem; font-weight: 600; color: var(--bb-gray-700); padding: 0; margin-bottom: .375rem; }
.field-row.two { display: grid; gap: .875rem; grid-template-columns: 1fr 1fr; margin-bottom: .875rem; }
.field-row.three { display: grid; gap: .875rem; grid-template-columns: 1fr 2fr 1fr; margin-bottom: .875rem; }
.field-row.two > .field, .field-row.three > .field { margin-bottom: 0; }
.pick-grid { display: flex; flex-wrap: wrap; gap: .375rem; }
.pick {
  display: inline-flex; gap: .4rem; align-items: center; min-height: 2.25rem; padding: .25rem .75rem;
  border: 1px solid var(--bb-gray-300); border-radius: var(--bb-radius-md); background: var(--bb-gray-0);
  font-weight: 500; font-size: .8125rem; cursor: pointer; transition: border-color .14s ease-out, background .14s ease-out;
}
.pick:hover { border-color: var(--bb-gray-500); }
.pick:has(input:checked) { border-color: var(--bb-brand-500); background: var(--bb-brand-50); color: var(--bb-brand-700); }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: .25rem; }
.form-actions .hint { max-width: 52ch; }
.inline-form { display: inline-flex; gap: .375rem; align-items: center; margin: 0; }
.inline-form select, .inline-form input:not([type="hidden"]) { min-height: 2rem; padding: .25rem .5rem; font-size: .8125rem; width: auto; }
.inline-form select { padding-right: 1.9rem; }
.notice.ok, .app .notice { color: var(--bb-success); background: var(--bb-success-bg); border-color: var(--bb-success-border); }
.notice.ok::before, .app .notice::before { content: "\2713"; font-weight: 700; margin-right: .375rem; }
/* The unsubscribed banner is a warning, not a "Saved." confirmation: no tick, warning colours, and
   its Resume button sits inline with the sentence. */
.app .notice.warn { color: var(--bb-warning); background: var(--bb-warning-bg); border-color: var(--bb-warning-border); }
.app .notice.warn::before { content: none; }
.app .unsubscribed-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .75rem 0 1rem; }
.app .unsubscribed-banner button { margin-left: auto; }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem; align-items: start; }
.dash-grid > * { min-width: 0; }
.plain-rows { gap: 0; }
.plain-rows > li { border: 0; border-top: 1px solid var(--bb-gray-100); border-radius: 0; padding: .75rem 0; box-shadow: none; }
.plain-rows > li:hover { box-shadow: none; border-color: var(--bb-gray-100); }
.plain-rows > li:first-child { border-top: 0; padding-top: 0; }
.plain-rows > li:last-child { padding-bottom: 0; }
.deadline-list { list-style: none; padding: 0; margin: 0; }
.deadline-list li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--bb-gray-100); font-size: .8125rem; }
.deadline-list li:first-child { border-top: 0; padding-top: 0; }
.deadline-list li a { font-weight: 500; color: var(--bb-gray-900); text-decoration: none; flex: 1 1 12rem; }
.deadline-list li a:hover { text-decoration: underline; }
.card.action p:last-child { margin-bottom: 0; }
.card.action { border-left: 3px solid var(--bb-brand-500); }

/* pipeline */
.stat-stage { display: flex; flex-direction: column-reverse; }
.stat-stage .stat-label { margin: .125rem 0 0; font-weight: 500; color: var(--bb-gray-600); font-size: .8125rem; }
.stat-stage .stat-value { font-size: 1.25rem; }

/* workspace */
.checklist { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .125rem; }
.checklist li { display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; padding: .375rem 0; border-top: 1px solid var(--bb-gray-100); }
.checklist li:first-child { border-top: 0; }
.checklist label { display: inline-flex; gap: .625rem; align-items: baseline; cursor: pointer; }
.checklist input[type="checkbox"] { width: 1.05rem; height: 1.05rem; position: relative; top: .15rem; flex: none; }
.checklist .hint { margin-left: .25rem; }
.add-line { margin-top: .75rem; }
.add-line input { min-width: 16rem; }
.lib-strip { color: var(--bb-gray-600); font-size: .875rem; margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.lib-item { display: inline-flex; align-items: center; gap: .25rem; padding: .125rem .5rem; border-radius: var(--bb-radius-sm); border: 1px solid var(--bb-gray-200); background: var(--bb-gray-0); font-size: .8125rem; color: var(--bb-gray-900); }
.lib-item::after { display: inline-block; margin-left: .125rem; }
.lib-item.ok::after { content: "\2713"; color: var(--bb-success); font-weight: 700; }
.lib-item.warn::after { content: "\26A0"; color: var(--bb-warning); }
.lib-item.missing { color: var(--bb-gray-500); background: var(--bb-gray-50); }
.lib-item.missing::after { content: "-"; }
.lib-strip .sep { display: none; }
.team-line { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; margin-bottom: .5rem; }
.approval { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .8125rem; }
.stage-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .5rem; padding: 0; }
.stage-steps li { padding: .125rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 500; color: var(--bb-gray-500); background: var(--bb-gray-100); }
.stage-steps li.is-current { background: var(--bb-brand-500); color: #fff; }
.stage-steps li.is-done { background: var(--bb-success-bg); color: var(--bb-success); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .125rem; }
.link-list a { display: flex; align-items: center; gap: .5rem; padding: .375rem .5rem; margin: 0 -.5rem; border-radius: var(--bb-radius-sm); text-decoration: none; color: var(--bb-gray-900); font-weight: 500; font-size: .8125rem; }
.link-list a:hover { background: var(--bb-gray-100); }
.link-list .icon { color: var(--bb-gray-500); width: 16px; height: 16px; }

/* reader */
.extracted { margin: 0 0 .75rem; }
.extracted dt { color: var(--bb-gray-500); font-weight: 500; }
.chat .you { margin: .5rem 0 .5rem; font-size: .875rem; }
.chat .answer {
  background: var(--bb-ai-bg); border: 1px solid var(--bb-ai-border); border-radius: var(--bb-radius-md);
  padding: .75rem .875rem; margin-bottom: 1rem; font-size: .875rem;
}
.chat .answer.unavailable { background: var(--bb-gray-50); border-color: var(--bb-gray-200); color: var(--bb-gray-600); }
.ask-form { display: flex; gap: .5rem; }
.ask-form input { flex: 1 1 auto; }

/* alerts */
.toggle-row { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; padding: .875rem 1.25rem; }
.toggle-row h2 { margin-bottom: .125rem; font-size: .9375rem; }
.toggle-row p { margin: 0; font-size: .8125rem; }
.toggle-row p + input[type="tel"] { margin-top: .5rem; max-width: 18rem; }
.toggle-row select { display: inline-block; width: auto; min-height: 1.75rem; padding: .125rem 1.75rem .125rem .5rem; font-size: .8125rem; }
.big-check { width: 1.375rem; height: 1.375rem; flex: 0 0 auto; cursor: pointer; }

/* team */
.member-grid { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.member h2 { margin-bottom: .125rem; font-size: .9375rem; }
.member p { margin: 0 0 .5rem; font-size: .8125rem; }
.member-actions { display: flex; flex-wrap: wrap; gap: .375rem .75rem; align-items: center; }

/* billing */
.plan-card .section-head { align-items: flex-start; }
.plan-card .plan-price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.plan-card .per { font-size: .875rem; font-weight: 500; color: var(--bb-gray-500); }
.usage { margin: 0 0 .75rem; }
.usage div { display: flex; justify-content: space-between; gap: 1rem; padding: .375rem 0; border-top: 1px solid var(--bb-gray-100); font-size: .8125rem; }
.usage div:first-child { border-top: 0; padding-top: 0; }
.usage dt { color: var(--bb-gray-500); }
.usage dd { margin: 0; font-weight: 600; }

/* onboarding */
.onboarding .app-form { max-width: 46rem; }
.onboarding .page-head { max-width: 46rem; }

/* print ----------------------------------------------------------------------------------------- */
/* Estimators print these. What survives is the bid; what goes is everything that only works in a
   browser - navigation, forms, the things that take an email address. */
@media print {
  .site-header, .site-footer, .crumbs, .bid-actions, .edition, .save, .page-actions, .bid-cta,
  .verdict, .asks, .alert-cta, .report, .filters, .pagination, .related, .skip-link { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .layout { grid-template-columns: 1fr; }
  .card, .stat, .bid-list > li { border: none; padding: 0; }
  .bid a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* responsive ------------------------------------------------------------------------------------ */
@media (max-width: 89.9rem) { .wrap { padding: 0 2rem; } }
@media (max-width: 74.9rem) {
  .layout, .layout-rail, .layout-wide { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
  .header-search { width: 16rem; }
  /* the filter rail becomes a drawer opened by its own checkbox - no JavaScript */
  .filters-toggle-label { display: inline-flex; }
  .filters form { display: none; }
  .filters-toggle:checked ~ form { display: block; }
  .filters-toggle:checked ~ .filters-head .filters-toggle-label .icon-open { display: none; }
  .filters button[type="submit"] { width: auto; }
  .filters-row { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-items: end; }
}
@media (max-width: 63.9rem) {
  .wrap { padding: 0 1.5rem; }
  .header-inner { gap: .5rem; }
  .header-menu { display: none; }
  .nav-burger { display: inline-flex; }
  #nav-toggle:checked ~ .header-menu {
    display: flex; flex-direction: column; gap: .75rem; position: absolute; left: 0; right: 0; top: 100%;
    padding: .75rem 1.5rem 1rem; background: var(--bb-gray-0); border-bottom: 1px solid var(--bb-gray-200);
    box-shadow: var(--bb-shadow-popover);
  }
  #nav-toggle:checked ~ .header-menu .site-nav { flex-direction: column; align-items: stretch; margin: 0; }
  #nav-toggle:checked ~ .header-menu .site-nav a { min-height: 2.75rem; }
  #nav-toggle:checked ~ .header-menu .site-nav a.cta { margin: .25rem 0 0; justify-content: center; }
  #nav-toggle:checked ~ .header-menu .header-search { width: 100%; margin: 0; }
  .header-tools { margin-left: auto; }
  .account > summary { max-width: 10rem; }
  .account-name { display: none; }
  .account > summary::after { display: none; }
  .account-menu { width: 17rem; }
}
@media (max-width: 47.9rem) {
  .wrap { padding: 0 1rem; }
  .site-header .brand { flex: 0 1 11rem; min-width: 0; }
  .site-header .brand-logo { width: 100%; min-width: 0; object-fit: contain; flex-shrink: 1; }
  main { padding-top: 1rem; }
  h1 { font-size: 1.5rem; line-height: 2rem; }
  .card, .stat, .hero, .edition, .verdict, .asks, .alert-cta, .report { padding: .875rem 1rem; }
  .hero { padding: 1.25rem 1rem; }
  .hero-form { grid-template-columns: 1fr 1fr; }
  .hero-form .field:first-child, .hero-form .field-action { grid-column: 1 / -1; }
  .bid-list > li { grid-template-columns: minmax(0, 1fr); padding: .75rem .875rem; }
  .bid-list > li > .bid-aside { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .bid-deadline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .bid-due { white-space: normal; }
  .section-head { flex-wrap: wrap; gap: .25rem .75rem; }
  .section-head a { white-space: normal; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .dates td.status { display: none; }
  .dates td.when { white-space: normal; }
  .stat-value { font-size: 1.25rem; }
  /* Compact summaries keep actual bids near the top on phones. */
  .stats, .kpi-strip { gap: .375rem .75rem; background: none; border: 0; overflow: visible; }
  .stats { display: flex; flex-wrap: wrap; }
  .stats .stat, .kpi-strip .stat {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem;
    flex: 0 1 auto; padding: 0; border: 0; background: none; min-width: 0;
  }
  .stats .stat-value, .kpi-strip .stat-value { font-size: .875rem; }
  .stats .stat-label, .kpi-strip .stat-label { margin: 0; font-size: .75rem; }
  .kpi-strip .stat-hint { flex-basis: 100%; }
  .fact { grid-template-columns: 1fr; gap: .125rem; }
  .field-row.two, .field-row.three { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr; }
  .stat-strip .stat { flex-basis: 45%; border-top: 1px solid var(--bb-gray-100); }
  .stat-strip .stat:nth-child(-n+2), .kpi-strip .stat:nth-child(-n+2) { border-top: 0; }
  .stat-strip .stat:nth-child(odd), .kpi-strip .stat:nth-child(odd) { border-left: 0; }
  .toggle-row { align-items: flex-start; }
  /* the bid page's primary actions become a bar pinned to the bottom of the screen */
  .bid-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0;
    grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem;
    padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom));
    background: var(--bb-gray-0); border-top: 1px solid var(--bb-gray-200); box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
  }
  .bid-cta .btn { min-height: 2.75rem; padding-inline: .5rem; }
  .bid-cta .btn .label-long { display: none; }
  .toolbar { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 48rem) {
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .bid-cta .btn .label-short { display: none; }
}
/* A loading indicator for a page that is waiting on a worker (the bid assistant's "Working on
   it" card). CSS only, so it shows with scripts off; the reduced-motion rule below stills it. */
.spinner { display: inline-block; width: 1em; height: 1em; margin-right: .5rem; vertical-align: -.125em; border: 2px solid var(--bb-gray-300); border-top-color: var(--bb-brand-500); border-radius: 50%; animation: bb-spin .8s linear infinite; }
@keyframes bb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-color: var(--bb-brand-500); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* late additions: the filter drawer's label, the sidebar's key facts ------------------------------ */
.filters .when-open { display: none; }
.filters-toggle:checked ~ .filters-head .when-open { display: inline; }
.filters-toggle:checked ~ .filters-head .when-closed { display: none; }
.side-card .side-stats { grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .75rem; }
.side-card .side-stats .stat { padding: .5rem .625rem; background: var(--bb-gray-50); border-color: var(--bb-gray-100); }
.side-card .side-stats .stat-label { margin: 0 0 .0625rem; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.side-card .side-stats .stat-value { font-size: 1rem; }
.side-card .facts h2 { margin-top: .25rem; }

/* the pipeline's table/board switch - two radios and CSS, no JavaScript ---------------------------- */
.view-switch { display: inline-flex; gap: 0; }
.view-switch label { border-radius: 0; cursor: pointer; }
.view-switch label:first-child { border-radius: var(--bb-radius-md) 0 0 var(--bb-radius-md); }
.view-switch label:last-child { border-radius: 0 var(--bb-radius-md) var(--bb-radius-md) 0; margin-left: -1px; }
#view-table:checked ~ .toolbar label[for="view-table"],
#view-board:checked ~ .toolbar label[for="view-board"] { background: var(--bb-gray-900); border-color: var(--bb-gray-900); color: var(--bb-gray-25); }

:root[data-theme="dark"] .header-search,
:root[data-theme="dark"] .header-search input { background: var(--bb-gray-50); }
@media print {
  :root[data-theme="dark"] body,
  :root[data-theme="dark"] .site-header,
  :root[data-theme="dark"] .card { background: #fff; color: #000; }
}
.board { display: none; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
#view-board:checked ~ .board { display: grid; }
#view-board:checked ~ .pipeline-table { display: none; }
.board-col { background: var(--bb-gray-50); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-lg); padding: .625rem; min-height: 8rem; }
.board-col h3 { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bb-gray-500); margin: 0 .25rem .5rem; display: flex; justify-content: space-between; }
.board-card { display: grid; gap: .25rem; padding: .625rem .75rem; margin-bottom: .5rem; background: var(--bb-gray-0); border: 1px solid var(--bb-gray-200); border-radius: var(--bb-radius-md); text-decoration: none; color: var(--bb-gray-900); }
.board-card:hover { border-color: var(--bb-gray-300); box-shadow: var(--bb-shadow-sm); }
.board-title { font-weight: 600; font-size: .8125rem; line-height: 1.35; }
.board-card .meta { font-size: .75rem; color: var(--bb-gray-500); }
.board-card .chip { justify-self: start; }
.report-details summary { list-style: none; display: flex; align-items: center; gap: .375rem; }
.report-details summary::-webkit-details-marker { display: none; }
.report-details summary::before { content: "\25B8"; color: var(--bb-gray-500); }
.report-details[open] summary::before { content: "\25BE"; }

/* the profile's library sits in the sidebar; its add-a-document row stacks there */
.layout > aside .field-row.three { grid-template-columns: 1fr; }
.layout > aside .form-actions .hint { max-width: none; }

/* The interview form (task 18): each section is a fieldset with a heading-sized legend, and a
   multi-choice question is a wrapped row of checkboxes rather than a select. */
.interview .app-form > fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.interview .app-form > fieldset > legend { font-size: 1.0625rem; font-weight: 700; color: inherit; padding: 0; margin-bottom: .75rem; }
.interview .field > .label { display: block; font-size: .8125rem; font-weight: 600; color: var(--bb-gray-700); margin-bottom: .375rem; }
.interview .field > .hint { margin: -.125rem 0 .375rem; }
.interview .choices { display: flex; flex-wrap: wrap; gap: .5rem .875rem; }
.interview label.check { display: inline-flex; align-items: center; gap: .375rem; font-weight: 400; font-size: .9375rem; }
.interview label.check input { width: auto; margin: 0; }
