/* Before you sign pages and the contractor bid comparison tool, December 1, 2026.
   sg- is the two guides, sb- is the bid tool. Built on aad.css tool and vx- parts. */

/* Guides */
.sg-neutral p { display: flex; gap: 12px; align-items: flex-start; }
.sg-neutral .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--dusk); }
.sg-states th[scope=row] { white-space: nowrap; }
.sg-states td small { display: block; font-size: .82rem; color: var(--muted); }
.sg-states td small a { color: var(--dusk-mid); }
@media (min-width: 900px) { .sg-states td:last-child { min-width: 9em; } }

/* Bid tool: tabs */
.sb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 16px; }
.sb-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 15em; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1.5px solid var(--tint-2); background: #fff; color: var(--text); font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s; }
.sb-tabs button:hover { border-color: var(--dusk-soft); }
.sb-tabs button[aria-selected=true] { background: var(--dusk); border-color: var(--dusk); color: #fff; }
.sb-tabs button:focus-visible, .sb-bar .btn:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 2px; }
.sb-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--dusk); font-size: .82rem; font-variant-numeric: tabular-nums; flex: none; }
.sb-tabs button[aria-selected=true] .sb-n { background: rgba(255,255,255,.18); color: #fff; }
.sb-tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-bar .btn:disabled { opacity: .45; pointer-events: none; }
.sb-form textarea { min-height: 96px; }
.tool-grid.sb-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1180px) { .tool-grid.sb-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
@media (min-width: 640px) and (max-width: 1179px) { .sb-form .sb-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; } }
.sb-form-actions { margin-top: 6px; }
.sb-form-actions .btn { min-height: 44px; }

/* Bid tool: results */
.sb-band { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.sb-band li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.sb-band b { display: block; font-size: 1.25rem; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sb-band span { font-size: .84rem; color: var(--muted); }
.sb-h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.sb-gaps { list-style: none; padding: 0; margin: 0 0 14px; font-size: .92rem; }
.sb-gaps li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sb-gaps li b { display: block; color: var(--text); }
.sb-gaps li span { color: var(--body); }
.sb-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 8px; }
.tool-out .sb-cmp { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sb-cmp thead th { position: static !important; box-shadow: none; white-space: normal; color: var(--text); font-size: .86rem; }
.sb-cmp td, .sb-cmp th { min-width: 120px; }
.sb-cmp tbody th { font-weight: 650; color: var(--text); font-size: .86rem; min-width: 110px; }
.sb-cmp td ul { margin: 0; padding-left: 1.1em; }
.sb-cmp tr.sb-diff { background: var(--gold-tint); }
.sb-dtag { display: block; font-size: .72rem; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--gold-ink); margin-top: 2px; }
.sb-miss { color: var(--muted); font-style: italic; }
.sb-s { display: inline-block; font-size: .82rem; font-weight: 650; border-radius: 999px; padding: 3px 10px; }
.sb-s-in { background: var(--good-tint); color: var(--good); }
.sb-s-out { background: var(--bad-tint); color: var(--bad); }
.sb-s-none { background: var(--sand); color: var(--body); }
.sb-scope-note { margin: 8px 0 0; }

/* Phones: each comparison row becomes a card, one line per bid. */
@media (max-width: 640px) {
  .sb-wrap { overflow: visible; }
  .sb-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sb-cmp, .sb-cmp tbody, .sb-cmp tr, .sb-cmp td, .sb-cmp tbody th { display: block; width: auto; min-width: 0 !important; }
  .sb-cmp tr { border: 1px solid var(--hairline); border-radius: 14px; padding: 8px 12px; margin: 0 0 10px; background: #fff; }
  .sb-cmp tr.sb-diff { background: #fff; border-left: 4px solid var(--gold); }
  .tool-out .sb-cmp td, .tool-out .sb-cmp tbody th { border: 0; padding: 5px 0; overflow-wrap: anywhere; }
  .sb-cmp tbody th { border-bottom: 1px solid var(--line) !important; padding-bottom: 7px !important; }
  .sb-cmp td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 650; color: var(--muted); }
  .sb-tabs { width: 100%; }
  .sb-tabs button { max-width: 100%; }
}

@media print {
  .sb-bar, .sb-scope-note, .sb-form, #sb-file { display: none !important; }
  .sb-wrap { overflow: visible; }
  .sb-cmp td, .sb-cmp th { min-width: 0; }
  .sb-cmp tr.sb-diff { background: none; }
  .sb-cmp tr { break-inside: avoid; }
}
