/* ============================================================
   Adaptive Gear Guide — Shared Article Stylesheet
   Link from any article with:
     <link rel="stylesheet" href="article-styles.css">
   Includes the .disclaimer-bar (every AGG article uses one
   between </header> and <div class="article-wrap">).
   FAQ uses addEventListener only — no inline onclick on buttons.
   ============================================================ */

:root {
  --forest: #1e3a2f;
  --sage: #4a7c59;
  --sage-light: #e8f2ec;
  --earth: #f5f0e8;
  --gold: #c8883a;
  --text: #1c1c1c;
  --muted: #5c6170;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--text); background: #fff; line-height: 1.7; }
h1, h2, h3, h4 { font-family: 'Libre Baskerville', Georgia, serif; line-height: 1.25; }
a { color: var(--sage); text-decoration: underline; }
a:hover { color: var(--forest); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.site-nav { background: var(--forest); padding: 0.9rem 0; position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--sage); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav-logo { font-family: 'Libre Baskerville', serif; font-size: 1.25rem; font-weight: 700; color: #fff; text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { color: #d4e8da; text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 0.45rem 0.85rem; border-radius: 4px; transition: background 0.15s; }
.nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-cta { background: var(--gold) !important; color: #fff !important; border-radius: 5px !important; padding: 0.5rem 1.1rem !important; font-weight: 700 !important; }
.nav-cta:hover { background: #b07330 !important; }

/* Header */
.article-header { background: linear-gradient(135deg, var(--forest) 0%, #2d5a42 100%); color: #fff; padding: 3.5rem 0 3rem; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.article-kicker { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #a8d4b8; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.article-h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; margin-bottom: 14px; }
.article-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.65; margin-bottom: 18px; max-width: 660px; }
.article-meta { font-size: 0.82rem; color: rgba(255,255,255,0.5); display: flex; gap: 20px; flex-wrap: wrap; }

/* Disclaimer bar (required between </header> and .article-wrap) */
.disclaimer-bar { background: #fff3cd; border-left: 4px solid var(--gold); padding: 0.75rem 1.5rem; font-size: 0.85rem; color: #664d03; }
.disclaimer-bar-inner { max-width: 1100px; margin: 0 auto; }

/* Layout + body */
.article-wrap { max-width: 1120px; margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.article-body h2 { font-size: 1.55rem; color: var(--forest); margin: 2.5rem 0 0.9rem; }
.article-body h3 { font-size: 1.15rem; color: var(--forest); margin: 1.8rem 0 0.65rem; }
.article-body p { font-size: 1rem; line-height: 1.75; margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.article-body li { font-size: 1rem; line-height: 1.7; margin-bottom: 0.45rem; }
.article-body strong { color: var(--forest); }

/* Callouts + disclosure */
.callout { background: var(--sage-light); border-left: 4px solid var(--sage); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem; }
.callout strong { color: var(--forest); }
.warning-callout { background: #fff8ed; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem; }
.warning-callout strong { color: var(--forest); }
.affiliate-note { background: var(--earth); border: 1px solid #ddd7ce; border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.75rem; font-size: 0.82rem; color: var(--muted); }

/* Comparison table */
.comparison-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border-radius: 8px; border: 1px solid #dde8e2; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 540px; }
.comparison-table th { background: var(--forest); color: #fff; padding: 12px 14px; text-align: left; font-weight: 700; }
.comparison-table td { padding: 11px 14px; border-bottom: 1px solid #e8f0ec; vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #f5faf7; }
.comparison-table .top-row td { background: rgba(74,124,89,0.08); font-weight: 600; }

/* Product card */
.product-card { border: 1px solid #dde8e2; border-radius: 12px; overflow: hidden; margin: 2rem 0; }
.product-card-header { background: var(--earth); padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid #dde8e2; }
.product-rank { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.product-name { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; color: var(--forest); }
.product-sub { font-size: 0.85rem; color: var(--muted); }
.product-score { background: var(--forest); color: #fff; font-family: 'Libre Baskerville', serif; font-size: 1.05rem; font-weight: 700; padding: 6px 14px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
.product-body { padding: 1.5rem; }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1rem 0 1.25rem; }
.pros h4, .cons h4 { font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.pros h4 { color: #2d7a3a; }
.cons h4 { color: #c0392b; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li, .cons li { font-size: 0.88rem; line-height: 1.5; margin-bottom: 5px; padding-left: 16px; position: relative; }
.pros li::before { content: '✓'; position: absolute; left: 0; color: #2d7a3a; font-weight: 700; }
.cons li::before { content: '✗'; position: absolute; left: 0; color: #c0392b; font-weight: 700; }

.who-for { background: var(--sage-light); border-radius: 6px; padding: 0.75rem 1rem; font-size: 0.88rem; margin-bottom: 1rem; }
.who-for strong { color: var(--forest); }
.product-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #e8f0ec; flex-wrap: wrap; }
.price-tag { font-family: 'Libre Baskerville', serif; font-size: 1.4rem; font-weight: 700; color: var(--forest); }
.price-tag span { font-size: 0.82rem; font-weight: 400; font-family: 'Source Sans 3', sans-serif; color: var(--muted); }
.btn-buy { background: var(--sage); color: #fff; padding: 0.7rem 1.5rem; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: background 0.15s; display: inline-block; }
.btn-buy:hover { background: var(--forest); color: #fff; text-decoration: none; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #b07330; }

/* FAQ */
.faq-list { border-top: 1px solid #dde8e2; margin: 0.5rem 0; }
.faq-item { border-bottom: 1px solid #dde8e2; }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; text-align: left; padding: 1.1rem 0; font-family: 'Libre Baskerville', serif; font-size: 1rem; font-weight: 700; color: var(--forest); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.faq-question:hover { color: var(--sage); }
.faq-icon { font-size: 18px; transition: transform 0.2s; flex-shrink: 0; color: var(--gold); }
.faq-answer { display: none; padding: 0 0 1.1rem; font-size: 0.94rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Verdict + related */
.verdict-box { background: var(--forest); color: #fff; border-radius: 12px; padding: 2rem; margin: 2.25rem 0; }
.verdict-box h3 { font-size: 1.35rem; color: #fff; margin-bottom: 0.9rem; }
.verdict-box p { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 0.75rem; }
.verdict-box p:last-of-type { margin-bottom: 1.25rem; }
.related-guides { background: var(--earth); border: 1px solid #ddd7ce; border-radius: 10px; padding: 1.5rem 1.75rem; margin: 2rem 0; }
.related-guides h4 { font-size: 1rem; color: var(--forest); margin-bottom: 0.9rem; }
.related-guides ul { list-style: none; padding: 0; }
.related-guides li { margin-bottom: 0.65rem; padding-left: 1.1rem; position: relative; font-size: 0.94rem; }
.related-guides li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.related-guides a { color: var(--sage); font-weight: 600; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--earth); border: 1px solid #ddd7ce; border-radius: 10px; padding: 1.35rem; margin-bottom: 1.35rem; }
.sidebar-card h4 { font-size: 0.88rem; color: var(--forest); margin-bottom: 0.9rem; padding-bottom: 0.65rem; border-bottom: 1px solid #ddd7ce; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0.55rem; }
.toc-list a { font-size: 0.82rem; color: var(--sage); text-decoration: none; display: block; }
.toc-list a:hover { color: var(--forest); }
.picks-list { list-style: none; padding: 0; }
.pick-item { padding: 0.7rem 0; border-bottom: 1px solid #ddd7ce; }
.pick-item:last-child { border-bottom: none; }
.pick-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.pick-name { font-size: 0.85rem; font-weight: 600; color: var(--forest); margin: 2px 0; line-height: 1.3; }
.pick-price { font-size: 0.8rem; color: var(--muted); }
.pick-link { font-size: 0.78rem; color: var(--sage); font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--forest); color: #a8c8b2; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand h3 { font-family: 'Libre Baskerville', serif; font-size: 1.15rem; color: #fff; margin-bottom: 0.5rem; }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; }
.footer-col h4 { font-family: 'Libre Baskerville', serif; font-size: 0.85rem; color: #fff; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: #a8c8b2; text-decoration: none; font-size: 0.88rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.affiliate-disclosure { background: rgba(255,255,255,0.05); border-left: 3px solid var(--gold); padding: 0.9rem 1.1rem; border-radius: 0 6px 6px 0; font-size: 0.82rem; color: #8aac96; line-height: 1.6; margin-bottom: 1rem; }
.footer-legal { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* Responsive */
@media (max-width: 900px) { .article-wrap { grid-template-columns: 1fr; } .sidebar { position: static; } }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; } .pros-cons { grid-template-columns: 1fr; } }
