/* ==========================================================================
   Ranch Approved — Article / Review / Buying Guide Styles
   Companion CSS for ra-article-extras section
   ========================================================================== */

/* ---------- Article page overrides ---------- */
.ra-article-extras {
  margin-top: -1rem;
}

/* ---------- TOC sidebar (desktop sticky) ---------- */
@media (min-width: 1200px) {
  .ra-article-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3.5rem;
    max-width: 1150px !important;
  }
  .ra-article-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    border-right: 1px solid rgba(45, 74, 62, 0.06);
    padding-right: 1.5rem;
  }
  
  /* Desktop TOC styling overrides */
  .ra-toc {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .ra-toc__toggle {
    cursor: default !important;
    pointer-events: none !important;
    padding: 0 0 1rem 0 !important;
  }
  .ra-toc__arrow {
    display: none !important;
  }
  .ra-toc__list-wrap {
    padding: 0 !important;
  }
  .ra-toc__list > li > a {
    font-weight: 500 !important;
    color: #4A4A4A !important;
    border-left: 2px solid transparent;
    padding: 0.35rem 0 0.35rem 12px !important;
    transition: all 0.2s ease !important;
    display: block;
    text-decoration: none !important;
  }
  .ra-toc__list > li > a:hover,
  .ra-toc__list > li > a.active {
    color: #C4622D !important;
    text-decoration: none !important;
    border-left-color: #C4622D !important;
    font-weight: 600 !important;
  }
  .ra-toc__sublist li a {
    color: #777777 !important;
    border-left: 2px solid transparent;
    padding: 0.25rem 0 0.25rem 24px !important;
    transition: all 0.2s ease !important;
    display: block;
    text-decoration: none !important;
  }
  .ra-toc__sublist li a:hover,
  .ra-toc__sublist li a.active {
    color: #C4622D !important;
    text-decoration: none !important;
    border-left-color: #C4622D !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 1199px) {
  .ra-article-sidebar {
    margin-bottom: 2rem;
  }
}

/* ---------- Quick Pick cards ---------- */
.ra-quick-pick {
  background: #FFFFFF;
  border: none;
  border-left: 4px solid #8B5E3C;
  border-radius: 4px 12px 12px 4px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(45, 74, 62, 0.03);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.ra-quick-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(45, 74, 62, 0.08);
}
.ra-quick-pick__badge {
  display: inline-block;
  background: #C4622D;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.ra-quick-pick__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #2D4A3E;
  margin-bottom: 0.5rem;
}
.ra-quick-pick__rating {
  color: #C4622D;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.ra-quick-pick__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #C4622D;
  margin-bottom: 0.5rem;
}
.ra-quick-pick__summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4A4A4A;
  margin-bottom: 1rem;
}
.ra-quick-pick__cta {
  display: inline-block;
  background: #C4622D;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.ra-quick-pick__cta:hover {
  background: #A84F23;
}
@media (max-width: 768px) {
  .ra-quick-pick__cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
  }
}

/* ---------- Comparison table ---------- */
.ra-comparison-table {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(45, 74, 62, 0.02);
  border: 1px solid #E8DDD0;
}
.ra-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 600px;
}
.ra-comparison-table th {
  background: #2D4A3E;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.ra-comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E8DDD0;
  color: #2C2C2C;
}
.ra-comparison-table tr:nth-child(even) td {
  background: #FAF6F0;
}
.ra-comparison-table tr:hover td {
  background: #F0EBE2;
}
.ra-comparison-table .ra-winner {
  font-weight: 700;
  color: #C4622D;
}

/* ---------- Affiliate link disclosure ---------- */
.ra-affiliate-disclosure {
  font-size: 0.82rem;
  color: #4A6B5F;
  border-left: 3px solid #2D4A3E;
  background: #EFF4F2;
  padding: 0.5rem 0.85rem;
  border-radius: 0 6px 6px 0;
  margin: 0.5rem 0 1.5rem;
}

/* ---------- Author box ---------- */
.ra-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #FAF6F0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #E8DDD0;
}
.ra-author-box__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ra-author-box__info {
  flex: 1;
}
.ra-author-box__name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #2D4A3E;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.ra-author-box__meta {
  font-size: 0.85rem;
  color: #777;
}

/* ---------- Email CTA ---------- */
.ra-email-cta {
  background: radial-gradient(circle at top right, #3A5F4F, #1A2F25);
  color: #fff;
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 4rem 0 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(26, 47, 37, 0.15);
  position: relative;
  overflow: hidden;
}
.ra-email-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(196, 98, 45, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.ra-email-cta h3 {
  font-family: 'Playfair Display', serif;
  color: #fff !important;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.ra-email-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.ra-email-cta input[type="email"] {
  padding: 0.65rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
  margin-bottom: 0.75rem;
}
.ra-email-cta input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}
.ra-email-cta button,
.ra-email-cta .ra-email-cta__btn {
  display: inline-block;
  background: #C4622D;
  color: #fff;
  border: none;
  padding: 0.65rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ra-email-cta button:hover,
.ra-email-cta .ra-email-cta__btn:hover {
  background: #A84F23;
}

/* ---------- Product images ---------- */
.ra-product-image {
  margin: 1.5rem 0;
  text-align: center;
}
.ra-product-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  background: #fff;
}
.ra-product-image__credit {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.35rem;
  font-style: italic;
}

/* Quick-pick card with image */
.ra-quick-pick--has-image {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.ra-quick-pick__image {
  flex-shrink: 0;
}
.ra-quick-pick__image img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  background: #fff;
}
.ra-quick-pick__content {
  flex: 1;
  min-width: 0;
}
@media (max-width: 480px) {
  .ra-quick-pick--has-image {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ra-quick-pick__image img {
    width: 100px;
    height: 100px;
  }
}

/* ---------- Merch cross-promo ---------- */
.ra-merch-promo {
  background: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 4rem 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(45, 74, 62, 0.03);
  border: 1px solid rgba(232, 221, 208, 0.6);
}
.ra-merch-promo__badge {
  display: inline-block;
  background: #2D4A3E;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.ra-merch-promo h3 {
  font-family: 'Playfair Display', serif;
  color: #2D4A3E;
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}
.ra-merch-promo > p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}
.ra-merch-promo__products {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ra-merch-promo__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: #2C2C2C !important;
  width: 200px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.ra-merch-promo__product:hover {
  transform: translateY(-4px);
}
.ra-merch-promo__product img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border: none;
  border-radius: 12px;
  background: #FAF6F0;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(45, 74, 62, 0.04);
  transition: box-shadow 0.3s ease;
}
.ra-merch-promo__product:hover img {
  box-shadow: 0 8px 24px rgba(45, 74, 62, 0.08);
}
.ra-merch-promo__product-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.ra-merch-promo__product-price {
  color: #C4622D;
  font-weight: 700;
  font-size: 0.95rem;
}
.ra-merch-promo__cta {
  display: inline-block;
  background: #2D4A3E;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.65rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.ra-merch-promo__cta:hover {
  background: #1A2F25;
}
@media (max-width: 480px) {
  .ra-merch-promo {
    padding: 1.5rem 1rem;
  }
  .ra-merch-promo__products {
    flex-direction: column;
    align-items: center;
  }
  .ra-merch-promo__product {
    width: 160px;
  }
  .ra-merch-promo__product img {
    width: 160px;
    height: 160px;
  }
}

/* ---------- Summary box (above-the-fold quick picks) ---------- */
.ra-summary-box {
  border: 2px solid #2D4A3E;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  background: #FAF6F0;
}
.ra-summary-box__header {
  font-family: 'Playfair Display', serif;
  color: #2D4A3E;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid #E8DDD0;
  padding-bottom: 0.5rem;
}
.ra-summary-box__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #F0EBE2;
}
.ra-summary-box__item:last-child {
  border-bottom: none;
}
.ra-summary-box__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #C4622D;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.ra-summary-box__name {
  font-weight: 600;
  color: #2C2C2C;
  font-size: 0.9rem;
}
.ra-summary-box__cta {
  flex-shrink: 0;
  background: #C4622D;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.ra-summary-box__cta:hover {
  background: #A84F23;
}
@media (max-width: 480px) {
  .ra-summary-box__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .ra-summary-box__cta {
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* ---------- Comparison table CTA button ---------- */
.ra-table-cta {
  display: inline-block;
  background: #C4622D;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.ra-table-cta:hover {
  background: #A84F23;
}

/* ---------- Sidebar best-pick widget ---------- */
.ra-sidebar-best-pick {
  background: #FAF6F0;
  border: 2px solid #C4622D;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.ra-sidebar-best-pick__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #C4622D;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.ra-sidebar-best-pick__name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: #2D4A3E;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.ra-sidebar-best-pick__price {
  font-weight: 700;
  color: #C4622D;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.ra-sidebar-best-pick__cta {
  display: block;
  background: #C4622D;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}
.ra-sidebar-best-pick__cta:hover {
  background: #A84F23;
}

/* ---------- Print styles ---------- */
@media print {
  .ra-article-sidebar,
  .ra-email-cta,
  .ra-merch-promo {
    display: none !important;
  }
  .ra-article-wrapper {
    display: block !important;
    max-width: 100% !important;
  }
}

/* ---------- Quick-pick feature bullets (PA-API-sourced) ---------- */
/* Inserted by the inject_product_images pipeline beneath each card's
   summary, just before the CTA. Small green checkmarks on the brand
   dark green; tight rhythm so the card stays compact. */
.ra-quick-pick__features {
  list-style: none;
  margin: 0.5rem 0 0.9rem;
  padding: 0;
}
.ra-quick-pick__features li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4A4A4A;
}
.ra-quick-pick__features li:last-child {
  margin-bottom: 0;
}
.ra-quick-pick__features li::before {
  content: "\2713"; /* ✓ */
  position: absolute;
  left: 0;
  top: 0;
  color: #2D4A3E;
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 480px) {
  .ra-quick-pick__features li {
    font-size: 0.85rem;
    padding-left: 1.2rem;
  }
}

/* ---------- "Sold by Amazon" merchant badge ---------- */
/* Inserted by inject_product_images directly above each card's CTA button
   for quick-pick cards whose registry entry has is_amazon_retail=true.
   Communicates shipping consistency at the decision moment. Items sold by
   3rd-party sellers get no badge (absence = the signal).

   display: flex with width: fit-content makes the pill sit on its own line
   (block-level placement) while remaining content-sized horizontally. The
   .ra-quick-pick__cta sibling below it is inline-block, which would
   otherwise flow alongside an inline-flex badge. */
.ra-quick-pick__merchant-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin: 0.6rem 0 0.5rem;
  padding: 0.2rem 0.6rem;
  background: #EEF4EF;
  border: 1px solid #C6DAC9;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2D4A3E;
  line-height: 1.3;
}
.ra-quick-pick__merchant-badge-mark {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Call to Action Buttons ---------- */
.ra-ct-btn {
  display: inline-block;
  background: #C4622D; /* Rust */
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}
.ra-ct-btn:hover {
  background: #A84F23;
}

.ra-secondary-btn {
  background: #2D4A3E !important; /* Forest Green */
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem !important;
}
.ra-secondary-btn:hover {
  background: #1A2F25 !important;
}

/* ---------- Fast Verdict Callout Banner ---------- */
.ra-fast-verdict {
  background: #FAF6F0;
  border: 2px solid #2D4A3E;
  border-left: 6px solid #C4622D;
  border-radius: 12px;
  padding: 1.75rem;
  margin: 1.75rem 0 2.5rem;
  box-shadow: 0 8px 24px rgba(45, 74, 62, 0.08);
}
.ra-fast-verdict__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ra-fast-verdict__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #C4622D;
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
}
.ra-fast-verdict__score {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2D4A3E;
}
.ra-fast-verdict__score-stars {
  color: #C4622D;
  letter-spacing: 0.1em;
}
.ra-fast-verdict__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: #2D4A3E;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}
.ra-fast-verdict__price-tag {
  color: #8B5E3C;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.ra-fast-verdict__summary {
  font-size: 1.02rem;
  color: #2C2C2C;
  line-height: 1.65;
  margin: 0 0 1.25rem 0;
}
.ra-fast-verdict__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.ra-fast-verdict__spec-item {
  display: flex;
  flex-direction: column;
}
.ra-fast-verdict__spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #8B5E3C;
  margin-bottom: 0.2rem;
}
.ra-fast-verdict__spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2D4A3E;
}
.ra-fast-verdict__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #E8DDD0;
}
.ra-fast-verdict__cta {
  display: inline-block;
  background: #C4622D;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(196, 98, 45, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.ra-fast-verdict__cta:hover {
  background: #A84F23;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196, 98, 45, 0.45);
}
.ra-fast-verdict__meta {
  font-size: 0.85rem;
  color: #666;
}
@media (max-width: 600px) {
  .ra-fast-verdict {
    padding: 1.25rem 1rem;
  }
  .ra-fast-verdict__cta {
    width: 100%;
    display: block;
  }
  .ra-fast-verdict__action {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

