/* Sponsored slot, related products on articles, Product of the Week.
   Uses the shared tokens from theme.css. Loaded on /, /products/,
   /product-of-the-week/ and article pages (see _layouts/default.html). */

/* ── Sponsored label (used in the slot and on related-product cards) ── */
.sponsored-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font: 700 0.72rem var(--font-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sponsored-label-sm { padding: 2px 8px; font-size: 0.66rem; }

.sponsored-slot { margin-bottom: 1.25rem; }
.sponsored-slot .spotlight-tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sponsored-slot .spotlight-tag a:hover { color: var(--ink); }
.sponsored-title { cursor: default; }
.sponsored-title:hover { color: var(--ink); }

/* Logo / letter fallback shared by slot, POTW and related cards */
.spotlight-icon-box img,
.rp-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.spotlight-icon-box > span { font: 800 1.6rem var(--font-text); }

/* ── Product of the Week ── */
.potw-card .spotlight-title a { color: inherit; text-decoration: none; }
.potw-card .spotlight-title a:hover { color: var(--accent-text); }
.potw-card .spotlight-actions { flex-wrap: wrap; }

.potw-disclosure {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.potw-disclosure a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.potw-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.potw-entry {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.potw-entry.is-current {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}
.potw-entry-head { margin-bottom: 14px; }
.potw-week-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 600 0.78rem var(--font-text);
}
.potw-entry-main { display: flex; align-items: flex-start; gap: 16px; }
.potw-icon { width: 48px; height: 48px; }
.potw-entry-body { flex: 1; min-width: 0; }
.potw-name { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.potw-name a { color: var(--ink); text-decoration: none; }
.potw-name a:hover { color: var(--accent-text); }
.potw-note { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.potw-meta { margin: 10px 0 0; color: var(--muted); font-size: 0.85rem; }
.potw-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.potw-empty {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}

/* ── Related products on articles ── */
.related-products {
  margin: 2.5rem 0 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.related-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}
.related-products-head h2 { margin: 2px 0 0; font-size: 1.25rem; line-height: 1.25; }
.related-products-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.related-product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.rp-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font: 800 1.1rem var(--font-text);
}
.rp-body { flex: 1; min-width: 0; }
.rp-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rp-name { color: var(--ink); font: 700 1rem var(--font-text); text-decoration: none; }
.rp-name:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.rp-desc { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.rp-meta { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; }
.related-products-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.related-products-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 680px) {
  .related-products-head { flex-direction: column; align-items: flex-start; }
}
