/* Gardening Affiliate Pages — Frontend CSS
   Palette: Forest #2D5016 | Leaf #4A7C2F | Lime #6BAE3E | Amber #D97706 | Cream #FAFAF7 | Slate #374151 */

/* ── Base ── */
.gap-page { font-family: Georgia, 'Times New Roman', serif; color: #374151; line-height: 1.75; max-width: 860px; margin: 0 auto; padding: 0 16px 60px; }
.gap-page h2 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a2e0a; font-size: clamp(20px,3vw,28px); margin: 2.5rem 0 1rem; border-bottom: 2px solid #e8f0e0; padding-bottom: 10px; }
.gap-page h3 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #2D5016; font-size: 17px; margin: 0 0 6px; }
.gap-page p  { margin: 0 0 1rem; }
.gap-page a  { color: #4A7C2F; }
.gap-page a:hover { color: #2D5016; }

/* ── Intro box ── */
.gap-intro-box { background: #f0f5ea; border-left: 4px solid #6BAE3E; border-radius: 0 8px 8px 0; padding: 20px 24px; margin-bottom: 2rem; }
.gap-updated { font-size: 12px; color: #6B7280; margin-bottom: 10px; font-family: sans-serif; }

/* ── Quick pick ── */
.gap-quick-pick { background: #fff; border: 2px solid #6BAE3E; border-radius: 8px; padding: 16px 20px; margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gap-qp-label { font-family: sans-serif; font-size: 12px; font-weight: 700; color: #D97706; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.gap-quick-pick strong { font-size: 15px; color: #1a2e0a; flex: 1; min-width: 160px; }

/* ── Amazon buttons ── */
.gap-btn-amazon { display: inline-block; background: #FF9900; color: #000 !important; font-family: sans-serif; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 4px; text-decoration: none !important; white-space: nowrap; border: 1px solid #E8860A; transition: background .15s; }
.gap-btn-amazon:hover { background: #E8860A; color: #000 !important; }
.gap-btn-lg { font-size: 16px; padding: 14px 28px; }
.gap-btn-sm { display: inline-block; background: #FF9900; color: #000 !important; font-family: sans-serif; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 4px; text-decoration: none !important; }
.gap-btn-sm:hover { background: #E8860A; }

/* ── Product cards ── */
.gap-products-list { display: flex; flex-direction: column; gap: 28px; margin: 0 0 2rem; }
.gap-product-card { border: 1px solid #D1E4BA; border-radius: 10px; overflow: hidden; background: #fff; }
.gap-card-rank { background: #2D5016; color: #fff; font-family: sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 8px 16px; }
.gap-card-inner { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.gap-card-image { border-right: 1px solid #E8F0DA; display: flex; align-items: center; justify-content: center; padding: 20px; background: #fafcf8; min-height: 180px; }
.gap-card-image img { max-width: 160px; max-height: 160px; object-fit: contain; }
.gap-no-image { flex-direction: column; text-align: center; color: #6B7280; font-family: sans-serif; font-size: 13px; }
.gap-no-image span { font-size: 36px; margin-bottom: 8px; }
.gap-no-image a { color: #4A7C2F; text-decoration: none; }
.gap-card-body { padding: 20px 24px; }
.gap-product-title { font-family: sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.gap-product-title a { color: #1a2e0a; text-decoration: none; }
.gap-product-title a:hover { color: #4A7C2F; text-decoration: underline; }
.gap-card-footer { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

/* ── Ratings & price ── */
.gap-rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-family: sans-serif; }
.gap-stars { letter-spacing: 1px; }
.gap-star-full  { color: #F59E0B; }
.gap-star-half  { color: #F59E0B; opacity: .6; }
.gap-star-empty { color: #D1D5DB; }
.gap-rating-num  { font-size: 13px; font-weight: 700; color: #374151; }
.gap-review-count { font-size: 12px; color: #6B7280; }
.gap-price    { background: #ECFDF5; color: #065F46; font-family: sans-serif; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 20px; }
.gap-price-lg { font-family: sans-serif; font-weight: 800; font-size: 22px; color: #B45309; }

/* ── Features list ── */
.gap-features { list-style: none; padding: 0; margin: 0; }
.gap-features li { font-size: 14px; color: #374151; padding: 5px 0 5px 20px; position: relative; border-bottom: 1px solid #F3F4F6; }
.gap-features li:last-child { border: none; }
.gap-features li::before { content: "✓"; color: #6BAE3E; font-weight: 700; position: absolute; left: 0; }

/* ── Buying criteria ── */
.gap-buying-guide { background: #FAFCF8; border: 1px solid #D1E4BA; border-radius: 10px; padding: 28px; margin: 2rem 0; }
.gap-buying-guide h2 { border: none; padding: 0; margin-top: 0; }
.gap-criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.gap-criterion { background: #fff; border: 1px solid #E8F0DA; border-radius: 8px; padding: 18px; display: flex; gap: 12px; }
.gap-criterion-num { width: 28px; height: 28px; background: #2D5016; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: sans-serif; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.gap-criterion h3 { font-size: 15px; margin-bottom: 6px; }
.gap-criterion p  { font-size: 14px; color: #6B7280; margin: 0; }

/* ── Verdict ── */
.gap-verdict { background: #1a2e0a; color: #fff; border-radius: 10px; padding: 32px; margin: 2rem 0; text-align: center; }
.gap-verdict h2 { color: #fff; border: none; padding: 0; margin-top: 0; }
.gap-verdict p  { color: #D1FAE5; max-width: 600px; margin: 0 auto 20px; }

/* ── Comparison table ── */
.gap-comparison-table-wrap { overflow-x: auto; margin: 0 0 2rem; }
.gap-comparison-table { width: 100%; border-collapse: collapse; font-family: sans-serif; font-size: 14px; }
.gap-comparison-table th { background: #2D5016; color: #fff; padding: 12px 16px; text-align: left; }
.gap-comparison-table td { padding: 12px 16px; border-bottom: 1px solid #E8F0DA; vertical-align: middle; }
.gap-comparison-table tr:hover td { background: #f8fcf4; }
.gap-winner-row td { background: #ECFDF5 !important; font-weight: 600; }
.gap-ct-badge { display: block; font-size: 11px; color: #D97706; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.gap-ct-product a { color: #1a2e0a; text-decoration: none; font-weight: 600; }
.gap-ct-product a:hover { color: #4A7C2F; text-decoration: underline; }

/* ── Head-to-head grid ── */
.gap-hth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 2rem; }
.gap-hth-card { border: 1px solid #D1E4BA; border-radius: 10px; padding: 24px; position: relative; background: #fff; }
.gap-hth-winner { border: 2px solid #6BAE3E; background: #f8fcf4; }
.gap-winner-ribbon { position: absolute; top: 12px; right: 12px; background: #6BAE3E; color: #fff; font-family: sans-serif; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.gap-hth-img { width: 100%; max-height: 160px; object-fit: contain; margin-bottom: 16px; }
.gap-hth-medal { font-size: 28px; text-align: center; margin-bottom: 10px; }
.gap-hth-card h3 { font-size: 15px; text-align: center; margin-bottom: 10px; }
.gap-hth-card h3 a { color: #1a2e0a; text-decoration: none; }
.gap-hth-footer { text-align: center; margin-top: 16px; }

/* ── ToC ── */
.gap-toc { background: #fff; border: 1px solid #D1E4BA; border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; display: inline-block; min-width: 200px; }
.gap-toc strong { font-family: sans-serif; font-size: 13px; display: block; margin-bottom: 8px; color: #2D5016; }
.gap-toc ol { margin: 0; padding-left: 20px; }
.gap-toc li { font-family: sans-serif; font-size: 13px; margin-bottom: 4px; }
.gap-toc a { color: #4A7C2F; }

/* ── FAQs ── */
.gap-faqs { margin: 2rem 0; }
.gap-faq-list { border: 1px solid #D1E4BA; border-radius: 10px; overflow: hidden; }
.gap-faq-item { border-bottom: 1px solid #D1E4BA; }
.gap-faq-item:last-child { border: none; }
.gap-faq-q { width: 100%; background: none; border: none; text-align: left; padding: 18px 20px; font-family: sans-serif; font-size: 15px; font-weight: 600; color: #1a2e0a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gap-faq-q:hover { background: #f8fcf4; color: #4A7C2F; }
.gap-faq-icon { font-size: 20px; color: #6BAE3E; flex-shrink: 0; transition: transform .2s; }
.gap-faq-q[aria-expanded="true"] .gap-faq-icon { transform: rotate(45deg); }
.gap-faq-a { padding: 0 20px 18px; }
.gap-faq-a p { font-size: 14px; color: #6B7280; margin: 0; }

/* ── Disclaimer ── */
.gap-disclaimer { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px 20px; margin-top: 2rem; font-family: sans-serif; font-size: 12px; color: #6B7280; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .gap-card-inner { grid-template-columns: 1fr; }
  .gap-card-image { border-right: none; border-bottom: 1px solid #E8F0DA; max-height: 160px; }
  .gap-criteria-grid { grid-template-columns: 1fr; }
  .gap-quick-pick { flex-direction: column; align-items: flex-start; }
}
