/*
 * Product and company profiles.
 *
 * Dense, document-like. The reader is checking facts, not browsing, so the
 * layout favours scannable rows and visible provenance over imagery.
 */

.nbd-profile {
  padding-block: var(--nbd-space-5) var(--nbd-space-7);
}

/* ------------------------------------------------------------------- head */

.nbd-profile__head {
  padding-bottom: var(--nbd-space-4);
  margin-bottom: var(--nbd-space-5);
  border-bottom: var(--nbd-hairline);
}

.nbd-profile__eyebrow {
  font-size: var(--nbd-text-sm);
  font-weight: 600;
  color: var(--nbd-muted);
  margin-bottom: var(--nbd-space-1);
}

.nbd-profile__title {
  font-size: var(--nbd-text-2xl);
  margin-bottom: var(--nbd-space-2);
}

@media (min-width: 768px) {
  .nbd-profile__title { font-size: var(--nbd-text-3xl); }
}

.nbd-profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nbd-space-2);
  margin-bottom: var(--nbd-space-3);
}

.nbd-profile__summary {
  max-width: 68ch;
  color: var(--nbd-muted);
  margin-bottom: var(--nbd-space-2);
}

.nbd-profile__reviewed {
  font-family: var(--nbd-font-mono);
  font-size: var(--nbd-text-xs);
  color: var(--nbd-muted);
  margin: 0;
}

/* ----------------------------------------------------------------- layout */

.nbd-profile__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nbd-space-5);
}

@media (min-width: 900px) {
  .nbd-profile__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--nbd-space-6);
    align-items: start;
  }
}

.nbd-profile__section { margin-bottom: var(--nbd-space-6); }

.nbd-profile__section-title {
  font-size: var(--nbd-text-lg);
  padding-bottom: var(--nbd-space-2);
  margin-bottom: var(--nbd-space-3);
  border-bottom: var(--nbd-hairline);
}

/* ------------------------------------------------------------ evidence */

/* Source lines sit under the value rather than beside it: on narrow screens a
   two-column source column collapses to unreadable fragments. */
.nbd-facts__source a {
  color: var(--nbd-muted);
  text-decoration-thickness: 1px;
}

.nbd-facts__source a:hover {
  color: var(--nbd-red-deep);
}

/* ------------------------------------------------------------------ aside */

.nbd-profile__aside {
  display: flex;
  flex-direction: column;
  gap: var(--nbd-space-3);
}

@media (min-width: 900px) {
  .nbd-profile__aside {
    position: sticky;
    top: var(--nbd-space-4);
  }
}

.nbd-panel {
  background: var(--nbd-white);
  border: var(--nbd-hairline);
  border-radius: var(--nbd-radius);
  padding: var(--nbd-space-4);
}

.nbd-panel__title {
  font-size: var(--nbd-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nbd-muted);
  margin-bottom: var(--nbd-space-2);
}

.nbd-panel p:last-child { margin-bottom: 0; }

.nbd-panel__note {
  font-size: var(--nbd-text-xs);
  color: var(--nbd-muted);
  margin-top: var(--nbd-space-2);
}

.nbd-list--tight .nbd-list__item {
  padding-block: var(--nbd-space-2);
}

/* Disclosure must stay legible — never small grey print. */
.nbd-panel.nbd-disclosure {
  border-left: 3px solid var(--nbd-teal);
  background: var(--nbd-surface);
  font-size: var(--nbd-text-sm);
  color: var(--nbd-ink);
}

/* ------------------------------------------------------------------ prose */

.nbd-prose p { max-width: 68ch; }

.nbd-prose ul,
.nbd-prose ol {
  max-width: 68ch;
  padding-left: var(--nbd-space-5);
  margin-bottom: var(--nbd-space-4);
}

/* ------------------------------------------------------------------- logo */

/* Contained, never cropped — see the card rule for why. Sized larger here
   because the profile is the canonical page for the brand. */
.nbd-profile__logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: var(--nbd-hairline);
  border-radius: var(--nbd-radius);
  background: var(--nbd-white);
  margin-bottom: var(--nbd-space-3);
}

@media (min-width: 768px) {
  .nbd-profile__logo { width: 72px; height: 72px; }
}

/* ------------------------------------------------------------------ offer */

/* Visually distinct from editorial panels: a reader must be able to tell at a
   glance which box is commercial. Red left border matches the primary action
   colour without turning the panel itself into an advert. */
.nbd-offer {
  border-left: 3px solid var(--nbd-red);
}

.nbd-offer__disclosure {
  font-size: var(--nbd-text-sm);
  color: var(--nbd-ink);
  margin-bottom: var(--nbd-space-3);
}

.nbd-offer__cta { width: 100%; }

.nbd-offer__destination,
.nbd-offer__merchant {
  font-family: var(--nbd-font-mono);
  font-size: var(--nbd-text-xs);
  color: var(--nbd-muted);
  margin-top: var(--nbd-space-2);
  margin-bottom: 0;
}
