/* ============================================================
   /condos/compare/ (B4, Wave A PLACES 2026-10-09). Loaded only there.
   .b-cmp-hero (dark) · .b-cmp (paper): slots (cards or comboboxes),
   suggestion chips, the scrollable comparison table with a sticky
   label column, actions · compare lead band.
   ============================================================ */
:root { --cmp-white: #fff; } /* white on the ink header cells and the light inputs (token so the kit lint can track it) */
.b-cmp-hero .b-hero-in { grid-template-columns: minmax(0, 1fr); }
.b-cmp-hero .b-lede { max-width: 36em; }   /* ~71 characters a line (62ch held ~91) */
.b-cmp { background: var(--paper); }
.b-cmp-k { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }

/* slots */
.b-cmp-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.b-cmp-slot { min-width: 0; }
.b-cmp-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; box-sizing: border-box; height: 100px; padding: 12px 44px 12px 12px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--cmp-white); }
.b-cmp-img { display: grid; place-items: center; width: 96px; height: 72px; overflow: hidden; border-radius: 10px; background: var(--ink); }
.b-cmp-img img { width: 100%; height: 100%; object-fit: cover; }
.b-cmp-mono { font-size: 26px; font-weight: 800; letter-spacing: -.04em; color: var(--amber); text-transform: uppercase; }
.b-cmp-card-body { display: flex; flex-direction: column; min-width: 0; }
.b-cmp-card-body .b-cmp-k { margin-bottom: 3px; }
.b-cmp-name { overflow: hidden; font-size: 16px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.b-cmp-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.b-cmp-sub { font-size: 13px; color: var(--ink-soft); }
.b-cmp-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--hairline); border-radius: 50%; background: var(--cmp-white); color: var(--ink); cursor: pointer; }
.b-cmp-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.b-cmp-x:hover { border-color: var(--ink); }
.b-cmp-x:focus-visible, .b-cmp-q:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.b-cmp-pick { box-sizing: border-box; height: 100px; padding: 12px; border: 1.5px dashed var(--hairline); border-radius: 16px; background: rgba(255,255,255,.55); }
.b-cmp-combo { position: relative; }
.b-cmp-q { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--cmp-white); font: inherit; font-size: 15px; color: var(--ink); }
.b-cmp-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--hairline); border-radius: 12px; background: var(--cmp-white); box-shadow: 0 14px 40px rgba(16,17,20,.16); }
.b-cmp-list li { display: flex; flex-direction: column; gap: 1px; min-height: 44px; justify-content: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.b-cmp-list li b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.b-cmp-list li span { font-size: 12.5px; color: var(--ink-soft); }
.b-cmp-list li:hover, .b-cmp-list li[aria-selected="true"] { background: rgba(242,179,54,.18); }
.b-cmp-list li.b-cmp-none { cursor: default; font-size: 13.5px; color: var(--ink-soft); }
.b-cmp-list li.b-cmp-none:hover { background: none; }

/* suggestions + hint */
.b-cmp-hint { min-height: 1.5em; margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.b-cmp-suggest { margin: 4px 0 22px; }
.b-cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-cmp-chips .k-chip { min-height: 36px; }

/* the table */
.b-cmp-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 16px; background: var(--cmp-white); -webkit-overflow-scrolling: touch; }
.b-cmp-wrap:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.b-cmp-table { width: 100%; min-width: calc(150px + var(--cmp-n, 3) * 190px); border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.b-cmp-table th, .b-cmp-table td { padding: 13px 16px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.b-cmp-table tr:last-child th, .b-cmp-table tr:last-child td { border-bottom: 0; }
.b-cmp-table thead th { position: sticky; top: 0; background: var(--ink); color: var(--cmp-white); font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.b-cmp-table thead th a { color: var(--cmp-white); text-decoration: none; }
.b-cmp-table thead th a:hover { color: var(--amber); }
.b-cmp-lab { position: sticky; left: 0; z-index: 1; width: 150px; min-width: 130px; background: var(--k-surface); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.b-cmp-table thead .b-cmp-lab { z-index: 2; background: var(--ink); }
.b-cmp-v { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.b-cmp-v small { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.b-cmp-m { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.b-cmp-na { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
td.is-lead { background: rgba(242,179,54,.10); }
.b-cmp-lead { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 3px; }

/* actions + note */
.b-cmp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.b-cmp-note { margin-top: 14px; }
.b-cmp-send-what { display: block; margin-top: 6px; font-weight: 700; color: var(--cmp-white); }

@media (max-width: 900px) {
  .b-cmp-slots { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 560px) {
  .b-cmp-card { grid-template-columns: 72px minmax(0, 1fr); }
  .b-cmp-img { width: 72px; height: 56px; }
  .b-cmp-table { min-width: calc(118px + var(--cmp-n, 3) * 150px); }
  .b-cmp-lab { width: 118px; min-width: 110px; }
  .b-cmp-table th, .b-cmp-table td { padding: 11px 12px; }
  .b-cmp-v { font-size: 15.5px; }
}
.b-cmp-th { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
