/* The business page (lead-detail panel) and the owner badge, 14 Nov 2026.
   Hannah approved the mock-up (artifact KKyHtaoy2YegZsNxUKKYxy). Linked
   AFTER each page's own <style> block on search.html and campaigns.html, so
   these rules win over the older drawer rules at equal weight. Theme tokens
   only. */

/* ---------- the worded Verified badge (owner name, table and page) ---------- */
.owner-verified { display: inline-flex; align-items: center; gap: 4px; height: 20px; margin-left: 8px; padding: 0 8px 0 6px;
  border-radius: 999px; background: var(--w-status-completed-bg); color: var(--w-status-completed-ink);
  font: 600 11.5px/1 var(--w-font); white-space: nowrap; vertical-align: 1px; cursor: default; }
.owner-verified svg { width: 12px; height: 12px; flex: none; }
.lp-owner-line .owner-verified { height: 22px; margin-left: 0; font-size: 12px; padding: 0 9px 0 7px; }
.lp-owner-line .owner-verified svg { width: 13px; height: 13px; }

/* ---------- top bar ---------- */
.modal-lead-detail .drawer-nav.lp-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center;
  justify-content: flex-start; gap: 10px; max-width: none; margin: 0; padding: 12px 22px;
  background: var(--w-surface); border-bottom: 1px solid var(--w-border); }
.lp-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size: 13px; }
.lp-crumb-search { min-width: 0; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0; border: 0; background: none; font: inherit; color: var(--w-muted); cursor: pointer; }
.lp-crumb-search:hover { color: var(--w-ink); text-decoration: underline; text-underline-offset: 2px; }
.lp-crumb-sep { flex: none; color: var(--w-muted); opacity: 0.6; }
.lp-crumb-here { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--w-ink); }
.lp-hint { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; color: var(--w-muted); white-space: nowrap; }
.lp-hint kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px;
  border: 1px solid var(--w-border); border-bottom-width: 2px; border-radius: 5px; background: var(--w-bg);
  font: 500 11.5px/1 var(--w-font); color: var(--w-body); }
.lp-pager { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.modal-lead-detail .lp-count { min-width: 64px; margin: 0; text-align: center; font-size: 13px; color: var(--w-muted);
  font-variant-numeric: tabular-nums; }
.lp-count b { font-weight: 600; color: var(--w-ink); }
.modal-lead-detail .lp-bar .drawer-icon-btn { width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--w-border); border-radius: 9px; background: var(--w-surface); color: var(--w-body); font-size: 15px; cursor: pointer; }
.modal-lead-detail .lp-bar .drawer-icon-btn:disabled { color: var(--w-muted); opacity: 0.45; cursor: default; }
.lp-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 32px; padding: 0 11px;
  border: 1px solid var(--w-border); border-radius: 9px; background: var(--w-surface); color: var(--w-ink);
  font: 500 13px/1 var(--w-font); white-space: nowrap; cursor: pointer; }
.lp-btn svg { width: 14px; height: 14px; flex: none; }
.modal-lead-detail .lp-bar .drawer-nav-close { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 32px;
  padding: 0 11px; border: 1px solid var(--w-border); border-radius: 9px; background: var(--w-surface);
  font: 500 13px/1 var(--w-font); color: var(--w-body); cursor: pointer; }
.lp-btn:hover, .modal-lead-detail .lp-bar .drawer-icon-btn:hover:not(:disabled),
.modal-lead-detail .lp-bar .drawer-nav-close:hover { color: var(--w-ink); border-color: var(--w-muted); }

/* ---------- two columns: page on the right, photo + Google on the left ---------- */
.modal-lead-detail .lp-grid { align-items: start; }
.modal-lead-detail .lp-left { position: static; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.modal-lead-detail .lp-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 900px) {
  .modal-lead-detail .lp-right { grid-column: 2; grid-row: 1; }
  .modal-lead-detail .lp-left { grid-column: 1; grid-row: 1; }
}

/* ---------- the open cards ---------- */
.lp-card { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 18, 34, 0.05); }
.modal-lead-detail .lp-card-head { margin: 0; padding: 14px 18px 10px; font: 600 15px/1.3 var(--w-font); color: var(--w-ink); }
.lp-card-body { padding: 0 18px 8px; }
.modal-lead-detail .lp-card-body .detail-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px;
  padding: 10px 0; font-size: 13.5px; border-bottom: 0; border-top: 1px solid var(--w-border); }
.modal-lead-detail .lp-card-body .detail-label { font-size: 13.5px; color: var(--w-muted); }
.modal-lead-detail .lp-card-body .detail-value { min-width: 0; color: var(--w-ink); overflow-wrap: anywhere; }
.modal-lead-detail .lp-left .lp-card-body .detail-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.modal-lead-detail .lp-left .lp-card-body .detail-label { font-size: 12.5px; }
.lp-claimed { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--w-status-completed-ink); }
.lp-claimed svg { width: 14px; height: 14px; }

/* Owner */
.lp-owner { padding: 16px 18px; }
.lp-owner-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-muted); }
.lp-owner-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lp-owner-name { font: 600 20px/1.25 var(--w-font); letter-spacing: -0.01em; color: var(--w-ink); }
.lp-owner-title { font-size: 14px; color: var(--w-muted); }
.lp-verified-why { margin: 6px 0 0; font-size: 12.5px; color: var(--w-muted); }
.lp-quote { margin: 12px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--w-border);
  font-size: 13.5px; font-style: italic; line-height: 1.55; color: var(--w-body); overflow-wrap: anywhere; }
.lp-owner-rows { margin-top: 12px; }
.lp-others { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--w-border); font-size: 13px; color: var(--w-muted); }
.lp-others ul { display: grid; gap: 3px; margin: 4px 0 0; padding: 0; list-style: none; }
.lp-others li { color: var(--w-ink); }
.lp-others li span { color: var(--w-muted); }
.lp-none { margin: 0; font-size: 14px; color: var(--w-ink); }
.lp-none-sub { margin: 6px 0 0; font-size: 13px; color: var(--w-muted); }
.lp-none-sub .owner-lookup { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; }

/* One contact line: label, value, copy button */
.lp-line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--w-border); }
.lp-line-label { font-size: 13px; color: var(--w-muted); }
.lp-line-main { min-width: 0; }
.lp-line-value { font-size: 14px; color: var(--w-ink); overflow-wrap: anywhere; }
.lp-line-value.is-big { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-line-sub { margin-top: 1px; font-size: 12.5px; color: var(--w-muted); }
.lp-line-sub a { color: inherit; }
.lp-muted { color: var(--w-muted); }
.lp-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 12.5px; font-weight: 400;
  color: var(--w-body); white-space: nowrap; }
.lp-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--w-muted); }
.lp-tag.is-good::before { background: var(--w-accent); }
.lp-line-value .chip { margin-left: 4px; font-weight: 400; }
.lp-copy { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface); color: var(--w-muted); cursor: pointer; }
.lp-copy:hover { color: var(--w-ink); border-color: var(--w-muted); }
.lp-copy svg { width: 14px; height: 14px; }
.lp-copy.is-done { color: var(--w-status-completed-ink); border-color: var(--w-status-completed-ink); }
.lp-copy[data-tip]:hover::after, .lp-copy.is-done::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px);
  padding: 4px 8px; border-radius: 6px; background: var(--w-ink); color: var(--w-surface); font-size: 11.5px; white-space: nowrap; pointer-events: none; }
.lp-socials { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lp-socials a { font-size: 13.5px; color: var(--w-ink); text-decoration: none; }
.lp-socials a:hover { text-decoration: underline; text-underline-offset: 2px; }
.modal-lead-detail .lp-ad-note { margin: 0; padding: 10px 0 10px; border-top: 1px solid var(--w-border); line-height: 1.5; }

/* ---------- phone width ---------- */
@media (max-width: 700px) {
  .modal-lead-detail .drawer-nav.lp-bar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .lp-crumbs { flex: 1 1 100%; }
  .lp-hint { display: none; }
  .lp-pager { margin-right: auto; }
  .lp-btn-text { display: none; }
  .lp-line { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-line-label { grid-column: 1 / -1; margin-bottom: -6px; }
  .modal-lead-detail .lp-card-body .detail-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
