/* /v2/compare: up to three firms in a table, one column per firm; the first column (the labels) stays put while the table scrolls sideways. */
.cp-add { max-width: 520px; margin: 0 0 22px; display: grid; gap: 8px; padding: 16px 18px; background: #fff; border: 1px solid var(--sp-border); border-radius: 14px; }
.cp-field { position: relative; }
.cp-add label { font-weight: 700; color: var(--sp-ink); }
.cp-add input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--sp-border); border-radius: 10px; font: 16px var(--body); background: #fff; color: var(--sp-ink); }
.cp-add input:focus { outline: 2px solid var(--sp-accent); outline-offset: 1px; }
.cp-hint { margin: 0; font-size: 14px; color: var(--sp-ink-dim); }
.cp-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--sp-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(10, 17, 32, .14); max-height: 320px; overflow-y: auto; }
.cp-results[hidden] { display: none; }
.cp-results button { width: 100%; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font: 15px var(--body); color: var(--sp-ink); }
.cp-results button:hover, .cp-results button:focus-visible { background: var(--sp-accent-tint); outline: none; }
.cp-r-name { font-weight: 700; }
.cp-r-addr { font-size: 13px; color: var(--sp-ink-dim); }
.cp-r-none { padding: 10px 12px; color: var(--sp-ink-dim); font-size: 14.5px; }
.cp-empty { padding: 18px 20px; background: #fff; border: 1px dashed var(--sp-border); border-radius: 12px; color: var(--sp-ink-dim); margin: 0 0 20px; }

.cp-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--sp-border); border-radius: 16px; }
.cp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; table-layout: fixed; }
.cp-table th, .cp-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sp-border); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.cp-table tbody tr:last-child th, .cp-table tbody tr:last-child td { border-bottom: 0; }
.cp-table tbody th[scope="row"] { width: 168px; position: sticky; left: 0; z-index: 1; background: var(--sp-card-bg); font-weight: 700; color: var(--sp-ink); font-size: 14px; }
.cp-table tbody th[scope="row"] a { color: inherit; text-decoration: underline; text-decoration-color: var(--sp-border); text-underline-offset: 3px; }
.cp-corner { width: 168px; position: sticky; left: 0; z-index: 2; background: var(--sp-card-bg); }
.cp-col { background: #fff; font-weight: 500; }
.cp-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.cp-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--sp-border); background: #fff; flex: none; }
.cp-ini { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--sp-accent-tint); color: var(--sp-accent); font: 600 17px var(--display); }
.cp-name { font: 500 19px/1.2 var(--display); color: var(--sp-ink); text-decoration: none; }
a.cp-name:hover { text-decoration: underline; }
.cp-gone { color: var(--sp-ink-dim); font-size: 16px; }
.cp-remove { font-size: 13px; color: var(--sp-ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.cp-star { color: #b7791f; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; }
.cp-tags li { padding: 3px 10px; border-radius: 999px; background: var(--sp-accent-tint); color: var(--sp-accent); font-size: 13px; font-weight: 600; }
.cp-more { font-size: 13px; color: var(--sp-ink-dim); }
.cp-contact td { display: table-cell; }
.cp-contact a { display: block; margin-bottom: 6px; color: var(--sp-accent); font-weight: 600; }
.cp-profile { text-decoration: none; }
.cp-profile:hover { text-decoration: underline; }
.cp-notes { margin-top: 28px; }
.cp-notes ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--sp-ink-dim); font-size: 15px; }
@media (max-width: 640px) {
  .cp-table th, .cp-table td { padding: 12px; }
  .cp-table tbody th[scope="row"], .cp-corner { width: 112px; }
  .cp-table { min-width: 560px; }
}
