/* ==========================================================================
   Sample Dashboard v2 — Profile Match (.pm-) + Buyer Searches (.bs-) views.
   Composition only — tokens and primitives live in base.css.
   ========================================================================== */

#view-profile-match,
#view-buyer-searches {
  display: grid;
  gap: 20px;
  max-width: 880px;
}

/* ---------- Profile Match: hero ---------- */
.pm-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.pm-hero__copy .h-display {
  margin: 10px 0 12px;
}
.pm-hero__explainer {
  max-width: 46ch;
}
.pm-hero__metrics {
  display: grid;
  gap: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.metric__value--neutral {
  color: var(--ink);
}

/* ---------- Profile Match: surfaces grid ---------- */
.pm-surfaces-wrap {
  display: grid;
  gap: 12px;
}
.pm-surfaces-label {
  padding-left: 2px;
}
.pm-surfaces {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pm-surface {
  padding: 16px 18px;
  border-left: 3px solid var(--line-strong);
  display: grid;
  gap: 8px;
}
.pm-surface--match {
  border-left-color: rgba(95, 211, 154, 0.55);
}
.pm-surface--mismatch {
  border-left-color: rgba(244, 194, 90, 0.5);
}
.pm-surface__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pm-surface__name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.pm-surface__detail {
  line-height: 1.5;
}

/* ---------- Profile Match: issues ---------- */
.pm-issues__body {
  display: grid;
  gap: 16px;
}
.pm-issue-group {
  display: grid;
  gap: 12px;
}
.pm-issue-group__head {
  display: flex;
}
.pm-issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pm-issue-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pm-issue-row__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex: none;
}
.pm-issue-row__text {
  line-height: 1.6;
}

/* ---------- Profile Match: closing ---------- */
.pm-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pm-close__text {
  max-width: 44ch;
}

/* ---------- Buyer Searches: hero ---------- */
.bs-hero__explainer {
  margin: 10px 0 16px;
  max-width: 60ch;
}
.bs-hero__engines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Buyer Searches: lanes ---------- */
.bs-lanes__body {
  display: grid;
  gap: 22px;
}
.bs-lane {
  display: grid;
  gap: 10px;
}
.bs-lane__top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.bs-lane__label-block {
  display: grid;
  gap: 2px;
  flex: 1 1 220px;
  min-width: 0;
}
.bs-lane__label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.bs-lane__example {
  font-style: italic;
}
.bs-lane__pct {
  font-weight: 650;
  font-size: 0.9375rem;
  margin-left: auto;
}
.bs-lane__engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bs-lane__note {
  line-height: 1.5;
}

/* ---------- Buyer Searches: Kirkland spotlight ---------- */
.bs-spotlight {
  display: grid;
  gap: 18px;
}
.bs-spotlight__prompt {
  font-weight: 650;
  line-height: 1.35;
}
.bs-spotlight__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.bs-spotlight__stat-value {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.bs-spotlight__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.bs-spotlight__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bs-spotlight__person {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.bs-spotlight__person-name {
  color: var(--ink);
}
.bs-spotlight__close {
  line-height: 1.55;
}

/* ---------- Buyer Searches: questions ---------- */
.bs-prompts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.bs-prompt-group {
  display: grid;
  gap: 10px;
  align-content: start;
}
.bs-prompt-group__label {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.bs-prompt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bs-prompt-row {
  line-height: 1.55;
  font-style: italic;
}

/* ---------- Buyer Searches: why differ ---------- */
.bs-differ {
  display: grid;
  gap: 10px;
}
.bs-differ__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
}
.bs-differ__icon {
  color: var(--muted-2);
  flex: none;
}
.bs-differ__body {
  line-height: 1.6;
  max-width: 70ch;
}

/* ==========================================================================
   Responsive — 640px per common rules
   ========================================================================== */
@media (max-width: 640px) {
  .pm-hero__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pm-hero__metrics {
    padding-left: 0;
    border-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .pm-surfaces {
    grid-template-columns: 1fr;
  }
  .pm-close {
    flex-direction: column;
    align-items: flex-start;
  }

  .bs-spotlight__columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bs-prompts__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bs-lane__top {
    gap: 8px;
  }
  .bs-lane__pct {
    margin-left: 0;
  }
}

/* Entity & schema checklist — long sameAs URLs and status strings must wrap
   instead of widening the page (8px mobile overflow before this rule). */
.schema-checklist {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.schema-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}
.schema-row code,
.schema-row span {
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .schema-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
