/* ============================================================================
   PARTNER LAYOUT — affiliate-tier supplier page
   Applied via supplier.html?merchant=<slug>; populated by supplier.js
   reading affiliate_merchants/{slug} + affiliate_products.
   All rules scoped under #partnerProfile + .partner-* to avoid collision with
   the csv_verified supplier layout in supplier.css.
   ============================================================================ */

/* Identity card -- three-column header */
#partnerProfile .partner-identity-card { overflow: hidden; }
#partnerProfile .partner-identity-band {
  padding: 24px; display: flex; gap: 24px; align-items: center;
}
@media (max-width: 800px) {
  #partnerProfile .partner-identity-band { flex-direction: column; align-items: flex-start; gap: 16px; }
  #partnerProfile .partner-identity-right { align-items: flex-start !important; width: 100%; }
}

/* Left: copper square badge with PARTNER icon */
#partnerProfile .partner-tier-badge {
  flex-shrink: 0; width: 120px; height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, #c47e34, #8b5a2b);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.25);
}
#partnerProfile .partner-tier-badge svg { width: 36px; height: 36px; margin-bottom: 6px; }
#partnerProfile .partner-tier-badge .tier-name {
  font-size: 18px; font-weight: 800; letter-spacing: 0.05em;
}
#partnerProfile .partner-tier-badge .tier-sub {
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em; opacity: 0.85; margin-top: 2px;
}

/* Logo variant — white tile holding the brand's own logo (applyPartnerBadgeLogo). */
#partnerProfile .partner-tier-badge--logo {
  background: #fff;
  border: 1px solid #ECE7E0;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.12);
  padding: 14px;
  gap: 8px;
}
#partnerProfile .partner-tier-badge--logo .partner-tier-badge-logo {
  max-width: 88px; max-height: 56px; width: auto; height: auto;
  object-fit: contain; margin: 0;
}
#partnerProfile .partner-tier-badge--logo .tier-sub {
  color: #8b5a2b; opacity: 0.7; margin-top: 0;
}

/* Center: identity info */
#partnerProfile .partner-identity-info { flex: 1; min-width: 0; }
#partnerProfile .partner-identity-label-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap;
}
#partnerProfile .partner-type-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #6b7280;
  text-transform: uppercase;
}
#partnerProfile .partner-marketed-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: #fbe8d2; color: #8b5a2b;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
}
#partnerProfile .partner-marketed-badge svg { width: 12px; height: 12px; }
#partnerProfile .partner-title {
  font-size: 32px; font-weight: 800; color: #111; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 6px;
}
#partnerProfile .partner-identity-meta-row {
  display: flex; flex-wrap: wrap; gap: 14px; color: #6b7280; font-size: 14px;
}
#partnerProfile .partner-identity-meta-row > span {
  display: inline-flex; align-items: center; gap: 4px;
}
#partnerProfile .partner-identity-meta-row > span:not(:last-child)::after {
  content: '\00b7'; margin-left: 14px; color: #d1d5db;
}

/* Right: Likely tier pill + Visit site button */
#partnerProfile .partner-identity-right {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
/* Compact tier pill — mirrors the .product-score-pill on search/product cards
   (dark rounded pill, colored dot + "LIKELY · GOOD") instead of a large badge. */
#partnerProfile .partner-tier-pill-wrap {
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
#partnerProfile .likely-tier-pill {
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.82);
  color: #fff; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
#partnerProfile .likely-tier-pill .score-pill-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #9ca3af;
}
#partnerProfile .likely-tier-pill .tier-prefix {
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px; opacity: 0.9;
  text-transform: uppercase;
}
#partnerProfile .likely-tier-pill .tier-sep { opacity: 0.5; font-size: 13px; }
#partnerProfile .likely-tier-pill .tier-word {
  font-size: 13px; font-weight: 800; letter-spacing: 0.2px; text-transform: uppercase;
}
#partnerProfile .partner-tier-source {
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.6;
  text-transform: uppercase; color: #6b7280;
}
/* Tier dot colors — match the search-card Likely pill swatches
   (PARTNER_TIER_DOT_COLOR in utils/productCard.js). */
#partnerProfile .likely-tier-pill--excellent .score-pill-dot { background: #00e676; }
#partnerProfile .likely-tier-pill--great     .score-pill-dot { background: #43a047; }
#partnerProfile .likely-tier-pill--good      .score-pill-dot { background: #9ccc65; }
#partnerProfile .likely-tier-pill--fair      .score-pill-dot { background: #fbc02d; }
#partnerProfile .likely-tier-pill--poor      .score-pill-dot { background: #f57c00; }
#partnerProfile .likely-tier-pill--very-bad  .score-pill-dot { background: #c62828; }
#partnerProfile .likely-tier-pill--unknown   .score-pill-dot { background: #9ca3af; }

/* ── Top-cohort highlight (tier reconciliation 2026-06-20) ──
   Great/Excellent are rare (mission + stacked certs) → lift them visibly.
   Covers both pill systems: the hero .likely-tier-pill and the card-style
   .product-score-pill--likely_* built by supplier.js buildLikelyPill. */
#partnerProfile .likely-tier-pill--great,
.product-score-pill--likely_great {
  box-shadow: 0 0 0 1.5px rgba(67,160,71,0.9), 0 2px 8px rgba(0,0,0,0.30);
}
#partnerProfile .likely-tier-pill--excellent,
.product-score-pill--likely_excellent {
  background: linear-gradient(100deg, rgba(0,80,45,0.92), rgba(0,40,25,0.92));
  box-shadow: 0 0 0 1.5px rgba(0,230,118,0.95), 0 0 14px rgba(0,230,118,0.45);
}
.product-score-pill--likely_excellent .score-pill-star,
#partnerProfile .likely-tier-pill--excellent .score-pill-star {
  font-size: 11px; color: #ffd54f; margin-left: 1px; line-height: 1;
  text-shadow: 0 0 6px rgba(255,213,79,0.7);
}

/* ── Per-product Partner view (product hero + alternatives) ───────────── */
#partnerProfile .partner-product-hero { padding: 24px; }
#partnerProfile .partner-product-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #6b7280; text-decoration: none;
  margin-bottom: 16px;
}
#partnerProfile .partner-product-back:hover { color: #374151; }
#partnerProfile .partner-product-back svg { width: 16px; height: 16px; }
#partnerProfile .partner-product-hero-body {
  display: flex; gap: 28px; align-items: flex-start;
}
#partnerProfile .partner-product-hero-image {
  position: relative; flex-shrink: 0;
  width: 320px; max-width: 42%;
  border-radius: 14px; overflow: hidden; background: #f3f4f6;
}
#partnerProfile .partner-product-hero-image img {
  width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1 / 1;
}
#partnerProfile .partner-product-variant-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.95); color: #6b7280;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
#partnerProfile .partner-product-hero-info {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding-top: 6px; min-width: 0;
}
#partnerProfile .partner-product-brand {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #6b7280;
}
#partnerProfile .partner-product-title {
  font-size: 26px; font-weight: 800; line-height: 1.15; margin: 0; color: #1f2937;
}
#partnerProfile .partner-product-price {
  font-size: 22px; font-weight: 700; color: #1f2937;
}
#partnerProfile .partner-product-shop { margin-top: 6px; }
#partnerProfile .partner-product-disclosure {
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: #9ca3af;
}
#partnerProfile .partner-product-alternatives { padding: 24px; }
@media (max-width: 640px) {
  #partnerProfile .partner-product-hero-body { flex-direction: column; }
  #partnerProfile .partner-product-hero-image { width: 100%; max-width: 100%; }
}

/* ── Product-page two-column top row (mirrors csv_verified supplier layout) ── */
/* Back link spans full width above the row so both column tops align. */
#partnerProfile .partner-product-back--top { margin-bottom: 12px; }

#partnerProfile .partner-product-row {
  display: flex; gap: 28px; align-items: flex-start; margin-bottom: 24px;
}
/* Left: "Your Product" card column (fixed width, like .product-card-col). */
#partnerProfile .partner-product-col {
  flex: 0 0 420px; max-width: 420px;
  display: flex; flex-direction: column; min-width: 0;
}
#partnerProfile .partner-product-col .product-card { margin-bottom: 0; }
/* Pill + price on one line inside the product card. */
#partnerProfile .partner-pcard-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
#partnerProfile .partner-pcard .product-cta-actions { padding-bottom: 16px; }

/* Right: overview card (moved-up identity card) + alternatives beneath it. */
#partnerProfile .partner-product-overview-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}
#partnerProfile .partner-product-overview-col .partner-identity-card { margin-bottom: 16px; }
/* Slightly tighter identity band in the narrower overview slot. */
#partnerProfile .partner-overview-card .partner-tier-badge { width: 96px; height: 96px; }
#partnerProfile .partner-overview-card .partner-title { font-size: 28px; }

/* Brand-attribute tag row inside the overview card. */
#partnerProfile .partner-overview-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
#partnerProfile .partner-overview-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb;
}
#partnerProfile .partner-overview-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
#partnerProfile .partner-overview-tag--marketed { background: #fbe8d2; color: #8b5a2b; border-color: #f3d4ad; }
#partnerProfile .partner-overview-tag--cert { background: #dff0e1; color: #1f7a3d; border-color: #bfe3c6; }
#partnerProfile .partner-overview-tag--attr { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
#partnerProfile .partner-overview-tag--transparency { background: #eef2ff; color: #4338ca; border-color: #e0e7ff; }

/* Stack the two columns on narrow viewports. */
@media (max-width: 900px) {
  #partnerProfile .partner-product-row { flex-direction: column; }
  #partnerProfile .partner-product-col { flex-basis: auto; max-width: 100%; }
  /* The right-column spacer h2 only earns its keep when columns sit side by side. */
  #partnerProfile .partner-product-overview-col > .product-card-title[aria-hidden="true"] { display: none; }
}

#partnerProfile .partner-visit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff; color: #c47e34;
  border: 2px solid #c47e34; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  text-decoration: none;
}
#partnerProfile .partner-visit-btn:hover { background: #c47e34; color: #fff; }
#partnerProfile .partner-visit-btn svg { width: 14px; height: 14px; }

/* Disclosure banner */
#partnerProfile .partner-disclosure-banner {
  background: #fef3e7; border-left: 4px solid #c47e34;
  border-radius: 8px;
  padding: 16px 20px; margin-bottom: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
#partnerProfile .partner-disclosure-banner svg {
  width: 22px; height: 22px; flex-shrink: 0; color: #c47e34; margin-top: 2px;
}
#partnerProfile .partner-disclosure-content { font-size: 14px; color: #5d3a1a; }
#partnerProfile .partner-disclosure-content strong {
  font-weight: 700; display: block; margin-bottom: 4px; color: #4a2e15;
}

/* Section cards — match the base .card padding (supplier.css `.card { padding: 18px }`)
   used by every csv_verified supplier section, so partner sections share the same
   box geometry and inter-section rhythm as the regular supplier summary pages. */
#partnerProfile .partner-section-card { padding: 18px; }
#partnerProfile .partner-section-title {
  font-size: 18px; font-weight: 800; color: #111; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
#partnerProfile .partner-section-subtitle {
  font-size: 13px; color: #6b7280; margin-bottom: 16px; margin-top: -10px;
}

/* Trust signals (3 tiers) */
#partnerProfile .partner-signal-tier { margin-bottom: 20px; }
#partnerProfile .partner-signal-tier:last-child { margin-bottom: 0; }
#partnerProfile .partner-signal-tier-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #6b7280;
  text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
#partnerProfile .partner-signal-tier-label .partner-tier-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
#partnerProfile .partner-signal-tier--certified .partner-tier-dot { background: #1a7a1a; }
#partnerProfile .partner-signal-tier--transparency .partner-tier-dot { background: #c47e34; }
#partnerProfile .partner-signal-tier--declared .partner-tier-dot { background: #9ca3af; }
#partnerProfile .partner-signal-tier-empty {
  font-size: 12px; color: #9ca3af; font-style: italic;
}
#partnerProfile .partner-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
}
#partnerProfile .partner-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
}
#partnerProfile .partner-badge-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
#partnerProfile .partner-badge-pill--cert {
  background: #e8f5e9; color: #1a7a1a; border: 1px solid #b8e0b8;
}
#partnerProfile .partner-badge-pill--transparency {
  background: #fbe8d2; color: #8b5a2b; border: 1px solid #e8c79b;
}
#partnerProfile .partner-badge-pill--declared {
  background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
  font-style: italic;
}
#partnerProfile .partner-badge-pill--declared::before { content: '\201c'; opacity: 0.6; }
#partnerProfile .partner-badge-pill--declared::after  { content: '\201d'; opacity: 0.6; }

/* Brand evaluation */
#partnerProfile .partner-summary-body {
  font-size: 15px; color: #374151; line-height: 1.65;
  padding: 16px; background: #f9fafb; border-radius: 8px;
  margin-bottom: 16px;
}
#partnerProfile .partner-sg-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
@media (max-width: 700px) {
  #partnerProfile .partner-sg-grid { grid-template-columns: 1fr; }
}
#partnerProfile .partner-sg-col { padding: 14px 16px; border-radius: 8px; }
#partnerProfile .partner-sg-col--strengths { background: #f0f9f0; border: 1px solid #d4ecd4; }
#partnerProfile .partner-sg-col--gaps      { background: #fef5f0; border: 1px solid #f5d7c0; }
#partnerProfile .partner-sg-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px;
}
#partnerProfile .partner-sg-col--strengths .partner-sg-col-title { color: #1a7a1a; }
#partnerProfile .partner-sg-col--gaps      .partner-sg-col-title { color: #c47e34; }
#partnerProfile .partner-sg-list { list-style: none; padding: 0; margin: 0; }
#partnerProfile .partner-sg-list li {
  font-size: 13px; padding: 4px 0; color: #374151;
}
#partnerProfile .partner-sg-list li::before { content: '\2014 '; color: #9ca3af; }
#partnerProfile .partner-summary-meta {
  font-size: 11px; color: #9ca3af; letter-spacing: 0.04em;
  padding-top: 12px; border-top: 1px solid #e5e7eb;
}

/* Commitments grid */
#partnerProfile .partner-commit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) {
  #partnerProfile .partner-commit-grid { grid-template-columns: 1fr; }
}
#partnerProfile .partner-commit-col {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px;
}
#partnerProfile .partner-commit-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #6b7280;
  text-transform: uppercase; margin-bottom: 12px;
}
#partnerProfile .partner-commit-list { list-style: none; padding: 0; margin: 0; }
#partnerProfile .partner-commit-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 13px; color: #374151;
  border-bottom: 1px solid #eef0f3;
}
#partnerProfile .partner-commit-item:last-child { border-bottom: none; }
#partnerProfile .partner-commit-icon {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
#partnerProfile .partner-commit-icon--yes  { background: #c6e8c6; color: #1a7a1a; }
#partnerProfile .partner-commit-icon--soft { background: #fbe8d2; color: #8b5a2b; }
#partnerProfile .partner-commit-icon--no   { background: #e5e7eb; color: #9ca3af; }
#partnerProfile .partner-commit-icon--flag { background: #fde8e8; color: #c0392b; }
#partnerProfile .partner-commit-item--no { color: #9ca3af; }
#partnerProfile .partner-commit-item--no .partner-commit-text {
  text-decoration: line-through; opacity: 0.7;
}
#partnerProfile .partner-commit-summary {
  margin-top: 14px; font-size: 13px; color: #6b7280;
  padding: 10px 14px; background: #f3f4f6; border-radius: 6px;
}
#partnerProfile .partner-commit-summary strong { color: #111; font-weight: 700; }
#partnerProfile .partner-commit-legend {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px;
  font-size: 11px; color: #6b7280;
}
#partnerProfile .partner-commit-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
}

/* Reported concerns */
#partnerProfile .partner-concerns-empty {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; background: #f0f9f0; border: 1px solid #d4ecd4;
  border-radius: 10px; color: #1a7a1a;
}
#partnerProfile .partner-concerns-empty svg {
  width: 28px; height: 28px; flex-shrink: 0;
}
#partnerProfile .partner-concerns-empty-text strong {
  display: block; font-weight: 700; margin-bottom: 2px;
}
#partnerProfile .partner-concerns-empty-text span {
  font-size: 12px; color: #4a7a4a;
}
#partnerProfile .partner-concerns-list {
  display: flex; flex-direction: column; gap: 12px;
}
#partnerProfile .partner-concern-item {
  padding: 14px 16px; background: #fef5f0; border-left: 4px solid #c47e34;
  border-radius: 6px;
}
#partnerProfile .partner-concern-item-title {
  font-weight: 700; color: #5d3a1a; font-size: 14px; margin-bottom: 4px;
}
#partnerProfile .partner-concern-item-meta {
  font-size: 11px; color: #8b5a2b; margin-bottom: 6px;
}
#partnerProfile .partner-concern-item-body {
  font-size: 13px; color: #5d3a1a;
}
#partnerProfile .partner-concern-item-source {
  display: inline-block; margin-top: 6px;
  font-size: 11px; color: #c47e34; text-decoration: underline;
}

/* Products grid */
#partnerProfile .partner-products-card { padding: 18px; }
#partnerProfile .partner-products-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
#partnerProfile .partner-products-count {
  font-size: 13px; color: #6b7280;
}
#partnerProfile .partner-products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 1100px) { #partnerProfile .partner-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { #partnerProfile .partner-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { #partnerProfile .partner-products-grid { grid-template-columns: 1fr; } }
/* ----------------------------------------------------------------------------
   Partner grid product cards — mirror of `styles/product-card.css` rules,
   scoped to `#partnerProductsGrid` so they don't collide with supplier.css's
   own unscoped `.product-card` rules (which style the main top-of-page
   product card). Specificity wins without `!important`.

   Card structure built by renderAffiliateCardElement in utils/productCard.js:
     .product-card.product-card--affiliate
       > .product-heart-btn
       > .product-image-wrap > .product-image + .product-card-likely-pill
       > .product-info > .product-title > a
                       > .product-card-affiliate-brand
                       > .product-price-stars-row > .product-price
       > .product-card-footer > .product-source-btn.product-source-btn--affiliate
                              > .product-card-affiliate-disclosure
   ---------------------------------------------------------------------------- */
#partnerProductsGrid .product-card {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
#partnerProductsGrid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #d1d5db;
}
#partnerProductsGrid .product-card .product-image-wrap {
  position: relative;
  flex-shrink: 0;
  background: #fff;
  padding: 0;
  display: block;
}
/* Score pill — bottom-left of image, black pill (mirror product-card.css).
   Used by affiliate "Likely <tier>" pill which reuses this markup.
   Sized down vs. the base score pill — the affiliate grid cards run
   smaller than the main catalog, and the un-shrunk pill dominated the
   image. */
#partnerProductsGrid .product-card .product-score-pill {
  position: absolute;
  /* top:auto neutralizes the `top:18px` from supplier.css's unscoped
     `.product-card .product-score-pill` — without it the pill inherits both
     top AND bottom and stretches into a tall black capsule over the image. */
  top: auto;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 5;
  pointer-events: none;
}
#partnerProductsGrid .product-card .score-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
#partnerProductsGrid .product-card .score-pill-num {
  font-weight: 800;
  font-size: 12px;
}
#partnerProductsGrid .product-card .score-pill-sep {
  opacity: 0.5;
  font-size: 12px;
}
#partnerProductsGrid .product-card .score-pill-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.9;
}
#partnerProductsGrid .product-card .product-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  background: #fff;
  border: none;
  border-radius: 10px 10px 0 0;
  padding: 12px;
  box-sizing: border-box;
}
#partnerProductsGrid .product-card .product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px 8px;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
}
#partnerProductsGrid .product-card .product-title {
  position: relative;
  margin: 0 0 2px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  border: none;
  font-family: inherit;
  color: #111827;
}
#partnerProductsGrid .product-card .product-title::before { display: none; }
#partnerProductsGrid .product-card .product-title a {
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
#partnerProductsGrid .product-card .product-title a:hover {
  color: #072908;
  text-decoration: underline;
}
#partnerProductsGrid .product-card .product-price-stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#partnerProductsGrid .product-card .product-price {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #111;
  font-size: 16px;
}
/* Affiliate footer stacks vertically: full-width Shop button on top, small
   "#ad" disclosure centered beneath. Matches the bespoke partner card the
   user is replacing, while reusing the source-button styling. */
#partnerProductsGrid .product-card .product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 14px 10px;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}
#partnerProductsGrid .product-card .product-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  width: 100%;
  margin: 0;
}
#partnerProductsGrid .product-card .product-source-btn--affiliate {
  background: #c47e34;
  color: #fff;
}
#partnerProductsGrid .product-card .product-source-btn--affiliate:hover {
  background: #a86925;
}
#partnerProductsGrid .product-card .source-btn-arrow {
  font-size: 12px;
  line-height: 1;
}
#partnerProductsGrid .product-card .product-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#partnerProductsGrid .product-card .product-heart-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  background: #fff;
}
#partnerProductsGrid .product-card .product-heart-btn svg {
  width: 18px;
  height: 18px;
  stroke: #999;
  fill: none;
  stroke-width: 2;
}
#partnerProductsGrid .product-card .product-heart-btn.hearted svg {
  stroke: #e91e63;
  fill: #e91e63;
}

#partnerProfile .partner-affiliate-note {
  font-size: 11px; color: #9ca3af; text-align: center; margin-top: 14px;
  font-style: italic;
}

/* Don't show the supplier-page skeleton when we're in Partner mode --
   skeleton is shaped like the csv_verified card and looks weird here. */
#partnerProfile:not([style*="display:none"]) ~ #supplierSkeleton { display: none !important; }
#partnerProductProfile:not([style*="display:none"]) ~ #supplierSkeleton { display: none !important; }

/* ============================================================================
   PARTNER PRODUCT layout -- per-product affiliate supplier page
   Applied via supplier.html?merchant=<slug>&product=<docId>; populated by
   supplier.js loadPartnerProductByIds() from affiliate_merchants/{slug}
   + the matching affiliate_products doc.
   All rules scoped under #partnerProductProfile to avoid collision with
   the brand-only Partner layout (#partnerProfile) and the csv_verified
   supplier layout in supplier.css.
   Ported from mockup-supplier-product-grey-state.html.
   ============================================================================ */

#partnerProductProfile .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: #6b7280; text-transform: uppercase;
  margin: 4px 0 10px 4px;
}
#partnerProductProfile .top-row {
  display: flex; gap: 20px; margin-bottom: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  #partnerProductProfile .top-row { flex-direction: column; }
}

/* --- Left column: product card ----------------------------------------- */
#partnerProductProfile .partner-product-card {
  flex: 0 0 360px;
  padding: 20px;
  display: flex; flex-direction: column;
}
#partnerProductProfile .partner-product-image-wrap {
  position: relative;
  background: #f9fafb;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}
#partnerProductProfile .partner-product-image-wrap img {
  max-width: 90%; max-height: 90%; object-fit: contain;
}
#partnerProductProfile .partner-product-tier-pill {
  position: absolute; left: 8px; bottom: 8px;
  background: #000; color: #fff;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
}
#partnerProductProfile .partner-product-tier-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7ba84a;
}
#partnerProductProfile .partner-product-tier-pill .sep { opacity: 0.4; margin: 0 2px; }

#partnerProductProfile .partner-product-brand {
  font-size: 11px; color: #6b7280; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700;
  margin-bottom: 4px;
}
#partnerProductProfile .partner-product-title {
  font-size: 15px; font-weight: 700; color: #111; line-height: 1.3;
  margin-bottom: 8px;
  display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap;
}
#partnerProductProfile .partner-product-title .affiliate-tag {
  display: inline-block;
  background: #fbe8d2; color: #8b5a2b;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase;
}
#partnerProductProfile .partner-product-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6b7280; margin-bottom: 6px;
}
#partnerProductProfile .partner-product-rating .stars { color: #f59e0b; letter-spacing: 1px; }
#partnerProductProfile .partner-product-rating .count { color: #9ca3af; }
#partnerProductProfile .partner-product-price {
  font-size: 22px; font-weight: 800; color: #111;
  margin-bottom: 14px;
}
#partnerProductProfile .partner-product-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 14px; border-radius: 10px;
  background: #c47e34; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  border: none; cursor: pointer; text-decoration: none;
}
#partnerProductProfile .partner-product-cta:hover { background: #a86925; }
#partnerProductProfile .partner-product-disclosure {
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  color: #9ca3af; text-align: center; margin-top: 8px;
  text-transform: uppercase;
}

/* --- Right column: brand summary --------------------------------------- */
#partnerProductProfile .partner-brand-summary {
  flex: 1; min-width: 0;
  padding: 20px 24px;
  display: flex; flex-direction: column;
}
#partnerProductProfile .partner-brand-summary-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
#partnerProductProfile .partner-brand-summary-left { flex: 1; min-width: 0; }
#partnerProductProfile .partner-brand-summary-title-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
#partnerProductProfile .partner-brand-summary-name {
  font-size: 24px; font-weight: 800; color: #111; letter-spacing: -0.02em;
}
#partnerProductProfile .auto-researched-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: #fbe8d2; color: #8b5a2b;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
#partnerProductProfile .auto-researched-pill svg { width: 11px; height: 11px; }
#partnerProductProfile .partner-brand-summary-subtitle {
  font-size: 13px; color: #6b7280;
}
#partnerProductProfile .partner-brand-tier-badge {
  flex-shrink: 0;
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 10px 18px; border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  min-width: 92px;
}
#partnerProductProfile .partner-brand-tier-badge .prefix {
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em; opacity: 0.85;
  text-transform: uppercase; margin-bottom: 2px;
}
#partnerProductProfile .partner-brand-tier-badge .word {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1;
}
/* Tier color variants (gradients match the existing .likely-tier-pill--* set) */
#partnerProductProfile .partner-brand-tier-badge--excellent { background: linear-gradient(135deg, #0f5e0f, #1a7a1a); }
#partnerProductProfile .partner-brand-tier-badge--great     { background: linear-gradient(135deg, #1a7a1a, #2d9c2d); }
#partnerProductProfile .partner-brand-tier-badge--good      { background: linear-gradient(135deg, #5c8a3a, #7ba84a); }
#partnerProductProfile .partner-brand-tier-badge--fair      { background: linear-gradient(135deg, #c47e34, #d4933f); }
#partnerProductProfile .partner-brand-tier-badge--poor      { background: linear-gradient(135deg, #c45a1a, #d97734); }
#partnerProductProfile .partner-brand-tier-badge--very-bad  { background: linear-gradient(135deg, #8b1a1a, #c0392b); }
#partnerProductProfile .partner-brand-tier-badge--unknown   { background: linear-gradient(135deg, #6b7280, #9ca3af); }

/* --- Knowledge tile grid ----------------------------------------------- */
#partnerProductProfile .partner-knowledge-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 700px) {
  #partnerProductProfile .partner-knowledge-grid { grid-template-columns: 1fr; }
}
#partnerProductProfile .knowledge-tile {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column;
}
#partnerProductProfile .knowledge-tile-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #6b7280;
  text-transform: uppercase; margin-bottom: 6px;
}
#partnerProductProfile .knowledge-tile-status {
  font-size: 13px; font-weight: 700; color: #1a7a1a;
  margin-bottom: 4px; line-height: 1.25;
}
#partnerProductProfile .knowledge-tile--amber .knowledge-tile-status { color: #c47e34; }
#partnerProductProfile .knowledge-tile-evidence {
  font-size: 11px; color: #6b7280; line-height: 1.4;
  margin-bottom: 8px;
}
#partnerProductProfile .knowledge-tile-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #1a7a1a;
}
#partnerProductProfile .knowledge-tile--amber .knowledge-tile-dot { background: #c47e34; }
#partnerProductProfile .knowledge-tile-toggle {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 10px;
  background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: #374151; text-transform: uppercase;
  cursor: pointer;
}
#partnerProductProfile .knowledge-tile-toggle:hover { background: #f3f4f6; }
#partnerProductProfile .knowledge-tile-toggle .chev { font-size: 9px; }
#partnerProductProfile .knowledge-tile-hint {
  font-size: 11px; color: #9ca3af; text-align: center;
  margin: 4px 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* --- Stat strip -------------------------------------------------------- */
#partnerProductProfile .partner-stat-strip {
  display: flex; gap: 0;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px 0;
  margin-top: 4px;
}
#partnerProductProfile .partner-stat {
  flex: 1; padding: 4px 16px;
  border-right: 1px solid #e5e7eb;
}
#partnerProductProfile .partner-stat:last-child { border-right: none; }
#partnerProductProfile .partner-stat-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #9ca3af;
  text-transform: uppercase; margin-bottom: 3px;
}
#partnerProductProfile .partner-stat-value {
  font-size: 13px; font-weight: 700; color: #111; line-height: 1.3;
}
#partnerProductProfile .partner-stat-value .muted { color: #6b7280; font-weight: 600; }
#partnerProductProfile .partner-stat-value .sep { color: #d1d5db; margin: 0 5px; }

/* --- "Brand at a glance" pill strip ------------------------------------ */
#partnerProductProfile .glance-strip {
  padding: 16px 22px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
#partnerProductProfile .glance-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #6b7280;
  text-transform: uppercase; flex-shrink: 0;
}
#partnerProductProfile .glance-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#partnerProductProfile .glance-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: #f3f4f6; color: #374151;
  font-size: 12px; font-weight: 600;
  border: 1px solid #e5e7eb;
}

/* --- Generic section card ---------------------------------------------- */
#partnerProductProfile .section-card { padding: 22px 24px; }
#partnerProductProfile .section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
#partnerProductProfile .section-title {
  font-size: 17px; font-weight: 800; color: #111; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
#partnerProductProfile .section-title .ico { color: #c47e34; }
#partnerProductProfile .ai-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: #ede9fe; color: #6d28d9;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
}
#partnerProductProfile .ai-badge svg { width: 11px; height: 11px; }

/* --- Potential alternatives ------------------------------------------- */
#partnerProductProfile .alts-section { margin-top: 18px; }
#partnerProductProfile .alts-head {
  background: #f0f9f0; border: 1px solid #d4ecd4;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
#partnerProductProfile .alts-head-title {
  font-size: 14px; font-weight: 700; color: #1a4a1a;
  display: flex; align-items: center; gap: 8px;
}
#partnerProductProfile .alts-head-title .leaf { color: #1a7a1a; }
#partnerProductProfile .alts-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: #fff; border: 1px solid #b8e0b8; border-radius: 999px;
  overflow: hidden;
}
#partnerProductProfile .alts-toggle-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  background: transparent; color: #6b7280; border: none; cursor: pointer;
}
#partnerProductProfile .alts-toggle-btn.active { background: #1a7a1a; color: #fff; }
#partnerProductProfile .alts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 1200px) {
  #partnerProductProfile .alts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #partnerProductProfile .alts-grid { grid-template-columns: 1fr; }
}
#partnerProductProfile .alt-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
#partnerProductProfile .alt-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
#partnerProductProfile .alt-card-image-wrap {
  position: relative; background: #f9fafb; height: 100px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
#partnerProductProfile .alt-card-image-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
#partnerProductProfile .alt-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; color: #9ca3af;
  font-size: 13px; font-weight: 600;
}
#partnerProductProfile .alt-card-check {
  position: absolute; top: 8px; left: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #1a7a1a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
#partnerProductProfile .alt-card-check svg { width: 13px; height: 13px; }
#partnerProductProfile .alt-card-tier-pill {
  position: absolute; left: 8px; bottom: 8px;
  background: #000; color: #fff;
  padding: 4px 9px 4px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
#partnerProductProfile .alt-card-tier-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
#partnerProductProfile .alt-card-tier-pill .sep { opacity: 0.4; }
#partnerProductProfile .alt-card-info { padding: 8px 10px 10px; }
#partnerProductProfile .alt-card-title {
  font-size: 11px; font-weight: 700; color: #111; line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}
#partnerProductProfile .alt-card-price { font-size: 12px; font-weight: 700; color: #111; }
#partnerProductProfile .alt-card-check { width: 18px; height: 18px; top: 6px; left: 6px; }
#partnerProductProfile .alt-card-check svg { width: 10px; height: 10px; }
#partnerProductProfile .alt-card-tier-pill {
  font-size: 9px; padding: 3px 7px 3px 5px; gap: 4px;
  bottom: 6px; left: 6px;
}
#partnerProductProfile .alt-card-tier-pill .dot { width: 5px; height: 5px; }

/* Tier dot palette (matches PARTNER_TIER_DOT_COLOR in productCard.js) */
#partnerProductProfile .dot--great    { background: #2d9c2d; }
#partnerProductProfile .dot--good     { background: #7ba84a; }
#partnerProductProfile .dot--fair     { background: #d4933f; }
#partnerProductProfile .dot--poor     { background: #d97734; }
#partnerProductProfile .dot--very-bad { background: #c0392b; }
#partnerProductProfile .dot--unknown  { background: #9ca3af; }

/* --- "What this tier means in context" -------------------------------- */
#partnerProductProfile .context-body {
  background: #f9fafb; border-radius: 8px;
  padding: 16px 18px;
  font-size: 14px; color: #374151; line-height: 1.65;
}

/* --- Product-level signals -------------------------------------------- */
#partnerProductProfile .signals-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 700px) {
  #partnerProductProfile .signals-grid { grid-template-columns: 1fr; }
}
#partnerProductProfile .signal-col {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px;
}
#partnerProductProfile .signal-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #6b7280;
  text-transform: uppercase; margin-bottom: 10px;
}
#partnerProductProfile .signal-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#partnerProductProfile .signal-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: #fff; color: #374151;
  border: 1px solid #e5e7eb;
  font-size: 12px; font-weight: 600;
}
#partnerProductProfile .signal-caveat {
  font-size: 11px; color: #9ca3af; font-style: italic; line-height: 1.5;
}

/* --- Summary collapsibles --------------------------------------------- */
#partnerProductProfile .collapsible-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid #eef0f3;
  cursor: pointer;
}
#partnerProductProfile .collapsible-row:last-child { border-bottom: none; }
#partnerProductProfile .collapsible-left {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: #111;
}
#partnerProductProfile .collapsible-left .ico { color: #6b7280; }
#partnerProductProfile .collapsible-right {
  display: flex; align-items: center; gap: 12px;
  color: #9ca3af;
}
#partnerProductProfile .ai-tag {
  background: #ede9fe; color: #6d28d9;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}
#partnerProductProfile .chev-icon {
  transition: transform 0.18s ease;
}
#partnerProductProfile .collapsible-row.is-open .chev-icon {
  transform: rotate(90deg);
}
#partnerProductProfile .collapsible-body {
  padding: 12px 4px 16px;
  border-bottom: 1px solid #eef0f3;
  font-size: 13px; color: #374151; line-height: 1.55;
}
#partnerProductProfile .collapsible-body:last-child { border-bottom: none; }
#partnerProductProfile .collapsible-body[hidden] { display: none; }
#partnerProductProfile .collapsible-body a {
  color: #c47e34; text-decoration: underline;
}
#partnerProductProfile .collapsible-body ul { list-style: none; padding: 0; margin: 0; }
#partnerProductProfile .collapsible-body li { padding: 4px 0; }
#partnerProductProfile .collapsible-empty {
  color: #9ca3af; font-style: italic; font-size: 12px;
}
#partnerProductProfile .concern-card {
  padding: 12px 14px; margin-bottom: 8px;
  background: #fef5f0; border-left: 3px solid #c47e34; border-radius: 6px;
}
#partnerProductProfile .concern-card-title {
  font-weight: 700; color: #5d3a1a; font-size: 13px; margin-bottom: 3px;
}
#partnerProductProfile .concern-card-meta {
  font-size: 11px; color: #8b5a2b; margin-bottom: 5px;
}
#partnerProductProfile .concern-card-body { font-size: 12px; color: #5d3a1a; }

#partnerProductProfile .knowledge-tile-breakdown {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 11px; color: #6b7280; line-height: 1.5;
}
#partnerProductProfile .knowledge-tile-breakdown[hidden] { display: none; }
#partnerProductProfile .knowledge-tile-breakdown .score-row {
  font-weight: 700; color: #111; margin-bottom: 4px;
}
#partnerProductProfile .knowledge-tile-breakdown a {
  color: #c47e34; text-decoration: underline; word-break: break-all;
}
#partnerProductProfile .knowledge-tile-toggle.is-open .chev {
  transform: rotate(180deg); display: inline-block;
}

/* --- Forward-looking signals ------------------------------------------ */
#partnerProductProfile .forward-tile {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 12px;
}
#partnerProductProfile .forward-tile-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
#partnerProductProfile .forward-tile-headline {
  font-size: 14px; font-weight: 700; color: #111;
}
#partnerProductProfile .forward-tile-target-pill {
  background: #f3f4f6; color: #6b7280;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase;
}
#partnerProductProfile .forward-tile-note {
  font-size: 12px; color: #6b7280; line-height: 1.5;
}
#partnerProductProfile .forward-callout {
  background: #fef3e7; border-left: 4px solid #c47e34;
  border-radius: 8px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
  color: #5d3a1a; font-size: 13px;
}
#partnerProductProfile .forward-callout svg {
  width: 18px; height: 18px; color: #c47e34; flex-shrink: 0; margin-top: 2px;
}

/* --- Stated attributes (commitments) ---------------------------------- */
#partnerProductProfile .stated-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
#partnerProductProfile .self-declared-pill {
  background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase;
}
#partnerProductProfile .stated-section { margin-bottom: 16px; }
#partnerProductProfile .stated-section:last-child { margin-bottom: 0; }
#partnerProductProfile .stated-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #6b7280;
  text-transform: uppercase; margin-bottom: 10px;
}
#partnerProductProfile .stated-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#partnerProductProfile .stated-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
#partnerProductProfile .stated-pill--met {
  background: #e8f5e9; color: #1a7a1a; border: 1px solid #b8e0b8;
}
#partnerProductProfile .stated-pill--met .check { color: #1a7a1a; }
#partnerProductProfile .stated-pill--unmet {
  background: #f3f4f6; color: #9ca3af; border: 1px solid #e5e7eb;
  text-decoration: line-through;
  text-decoration-color: #d1d5db;
  text-decoration-thickness: 1px;
}
