/* ==========================================================
   AFFILIATE SYSTEM — CLEAN, SINGLE-SOURCE STYLES
   Prefix: aff-
   ========================================================== */

.aff-root {
  --aff-blue: #1e3a8a;
  --aff-blue-light: #3b82f6;
  --aff-orange: #ff6b00;
  --aff-red: #dc2626;
  --aff-gray: #f3f4f6;
  --aff-gray-dark: #6b7280;
  --aff-bg: #ffffff;
  --aff-text: #0f172a;
  --aff-radius: 16px;
  --aff-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --aff-font: 'Inter', system-ui, sans-serif;

  padding-top: 10px; /* single source of truth */
}

/* ==========================================================
   Affiliate pages using post layout skeleton
   - Don’t fight post.scss hero; only tighten spacing slightly
   ========================================================== */

.aff-post .aff-intro,
.aff-post .aff-who,
.aff-post .aff-how,
.aff-post .aff-use,
.aff-post .aff-notes,
.aff-post .aff-products,
.aff-post .aff-final,
.aff-post .aff-related {
  margin-top: 14px;
}

/* ==========================================================
   Typography fixes (bullets were becoming too small)
   ========================================================== */

/* Editorial sections headings: match blog rhythm */
.aff-h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
}

/* General lists inside affiliate content: readable */
.aff-root ul,
.aff-root ol {
  font-size: 1rem;
  line-height: 1.65;
}

.aff-root li {
  font-size: 1rem;
  line-height: 1.65;
}

.aff-root ul {
  padding-left: 20px;
}

.aff-root ul li::marker {
  font-size: 1.05em;
}

/* ==========================================================
   Curated list editorial blocks (NO BOXES — blog-like)
   ========================================================== */

.aff-intro,
.aff-who,
.aff-how,
.aff-use,
.aff-notes,
.aff-final {
  margin: 14px 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Keep paragraphs readable */
.aff-intro__p,
.aff-notes__p,
.aff-final__p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.aff-intro__p:last-child,
.aff-notes__p:last-child,
.aff-final__p:last-child {
  margin-bottom: 0;
}

/* Lists: keep spacing but no "card" feel */
.aff-bullets {
  margin: 0;
  padding-left: 20px;
  display: block;
}

.aff-bullets li {
  margin-bottom: 8px;
}

/* Disclosure: subtle separator only */
.aff-disclosure {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  opacity: 0.9;
  font-size: 0.95rem;
}

.aff-disclosure__p {
  margin: 0;
}

/* ==========================================================
   Trust + Disclosure (compact)
   ========================================================== */

.aff-trust {
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.aff-trust__sep {
  opacity: 0.5;
}

.aff-trust__link {
  font-weight: 800;
  color: var(--aff-blue);
  text-decoration: none;
}
.aff-trust__link:hover { text-decoration: underline; }

/* ==========================================================
   Quick Picks bar
   ========================================================== */

.aff-quick-picks {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.aff-quick-picks__inner {
  display: block;
}

.aff-quick-picks__label {
  font-weight: 900;
  color: #0f172a;
  font-size: 0.92rem;
}

.aff-quick-picks__list {
  margin: 0;
  padding-left: 18px; /* keep numbering visible */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aff-quick-picks__list li {
  margin: 0;
}

.aff-quick-picks__note {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #374151;
  opacity: 0.9;
}

.aff-qp-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--aff-blue);
  padding: 0;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
}

.aff-qp-btn:hover {
  opacity: 0.9;
}

/* ==========================================================
   CTA row
   ========================================================== */

.aff-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.aff-specs-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--aff-blue);
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================
   Product card
   ========================================================== */

.aff-product-card {
  background: var(--aff-bg);
  border-radius: var(--aff-radius);
  padding: 14px;
  box-shadow: var(--aff-shadow);
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
  display: block;
}

.aff-product-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.aff-rank-badge {
  background: var(--aff-blue);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.aff-tag {
  background: var(--aff-orange);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.aff-product-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.aff-product-image-link {
  display: block;
  flex: 0 0 auto;
}
.aff-product-image-link:hover { opacity: 0.96; }

.aff-product-image {
  width: 144px;
  height: 144px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--aff-gray);
  padding: 6px;
  flex: 0 0 144px;
}

.aff-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aff-product-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  color: var(--aff-text);
  line-height: 1.3;
}

.aff-meta-badge {
  display: inline-block;
  margin: 2px 0 6px;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
}

/* Key features — readable */
.aff-key-features {
  margin: 0;
  padding-left: 20px;
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.aff-key-features li {
  margin-bottom: 6px;
  color: #1f2937;
}

/* ==========================================================
   CTA button — less clumsy, blog-style
   ========================================================== */

.aff-amazon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: auto;
  min-width: 220px;
  max-width: 100%;

  padding: 10px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.10);
}

.aff-amazon-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.aff-amazon-btn:active {
  transform: translateY(0px);
  opacity: 0.95;
}

/* ==========================================================
   Collapsible sections (specs dropdown)
   ========================================================== */

.aff-more {
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

.aff-more summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--aff-blue);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aff-more summary::-webkit-details-marker { display: none; }

.aff-chevron {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--aff-gray-dark);
  border-bottom: 2px solid var(--aff-gray-dark);
  transform: rotate(45deg);
  transition: 0.2s;
}
.aff-more[open] .aff-chevron { transform: rotate(-135deg); }

.aff-more-body {
  background: var(--aff-gray);
  padding: 10px;
  border-radius: 12px;
  margin-top: 10px;
}

.aff-more-section h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
}

/* dropdown lists should not be tiny */
.aff-more-section ul {
  padding-left: 20px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.aff-more-section ul li { margin-bottom: 6px; }

/* Specs rows */
.aff-specs { margin-top: 8px; }

.aff-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.98rem;
  align-items: flex-start;
}

.aff-spec-row dt {
  min-width: 42%;
  font-weight: 800;
  color: #374151;
}

.aff-spec-row dd {
  margin: 0;
  text-align: right;
  color: var(--aff-text);
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 58%;
}

/* Claims box */
.aff-claims {
  margin-top: 12px;
  padding: 10px;
  background: #fff7ed;
  border-left: 4px solid #fb923c;
  border-radius: 10px;
}

.aff-claims-header {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #9a3412;
  margin-bottom: 8px;
}

.aff-claims-list {
  margin: 0;
  padding-left: 20px;
}
.aff-claims-list li {
  font-size: 1rem;
  color: #431407;
  margin-bottom: 6px;
}

.aff-claims-source {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #7c2d12;
}

/* ==========================================================
   Hub pages (reviews hub)
   ========================================================== */

.aff-hub-intro { margin-bottom: 14px; }
.aff-hub-intro__p { margin: 0 0 10px; max-width: 720px; }

.aff-updated {
  margin: 4px 0 14px;
  font-size: 0.95rem;
  opacity: 0.75;
}

.aff-hub-section { margin-top: 18px; }

.aff-hub-h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
}

.aff-hub-desc { margin: 0 0 10px; max-width: 720px; }

.aff-category-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 8px;
}

.aff-category-grid a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.aff-category-grid a:hover {
  background: rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.aff-hub-section:not(:first-of-type) {
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 600px) {
  .aff-quick-picks {
    position: sticky;
    top: var(--aff-sticky-top, 0px);
    z-index: 1200;
  }

  .aff-product-main {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .aff-product-image {
    width: 140px;
    height: 140px;
    flex: none;
    align-self: center;
  }

  .aff-product-info {
    width: 100%;
    align-items: flex-start;
  }

  .aff-amazon-btn {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 12px;
  }

  .aff-ctas {
    width: 100%;
  }

  .aff-specs-link {
    width: 100%;
    text-align: center;
  }
}
