/* ============================================================
   Senior Tech Advisor — Shared Article Stylesheet
   Link from any article with:
     <link rel="stylesheet" href="article-styles.css">
   Covers the standard product-review article layout AND the
   plan-card layout (used for service/plan comparison articles).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --sky: #4a90d9;
  --gold: #c8883a;
  --warm: #f7f3ee;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f0ece7;
  --text: #2d3748;
}

body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Disclosure + nav */
.disclosure-bar { background: var(--navy); color: rgba(255,255,255,0.75); font-size: 12px; text-align: center; padding: 8px 20px; }
.site-nav { background: var(--white); border-bottom: 2px solid var(--warm); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--navy); text-decoration: none; }
.nav-logo span { color: var(--sky); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--navy); transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--sky); }
.nav-cta { background: var(--sky); color: var(--white) !important; padding: 8px 20px; border-radius: 6px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--navy) !important; }

/* Header */
.article-header { background: linear-gradient(135deg, var(--navy) 0%, #243358 100%); color: var(--white); padding: 52px 24px 56px; }
.article-header-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }
.article-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(200,136,58,0.15); border: 1px solid rgba(200,136,58,0.3); padding: 4px 12px; border-radius: 4px; margin-bottom: 16px; }
.article-h1 { font-family: 'Fraunces', serif; font-size: clamp(26px, 4vw, 42px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.article-subtitle { font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 24px; max-width: 680px; }
.article-meta { font-size: 13px; color: rgba(255,255,255,0.5); display: flex; gap: 20px; flex-wrap: wrap; }

/* Layout + body */
.article-layout { max-width: 1100px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-body h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--navy); margin: 40px 0 14px; line-height: 1.25; }
.article-body h3 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.article-body p { font-size: 16px; line-height: 1.75; margin-bottom: 18px; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.article-body strong { color: var(--navy); }

/* Callouts + disclosure */
.callout { background: var(--warm); border-left: 4px solid var(--sky); border-radius: 0 8px 8px 0; padding: 18px 20px; margin: 24px 0; font-size: 15px; line-height: 1.65; }
.callout strong { color: var(--navy); }
.warning-callout { background: #fff8ed; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; padding: 18px 20px; margin: 24px 0; font-size: 15px; line-height: 1.65; }
.warning-callout strong { color: var(--navy); }
.affiliate-disclosure { background: #faf8f5; border: 1px solid #e5ded5; border-radius: 8px; padding: 16px 20px; margin-bottom: 32px; font-size: 13px; color: var(--gray); line-height: 1.6; }
.affiliate-disclosure strong { color: var(--text); }

/* Comparison table */
.comparison-table-wrap { overflow-x: auto; margin: 24px 0 32px; border-radius: 10px; border: 1px solid #e5ded5; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.comparison-table th { background: var(--navy); color: var(--white); padding: 14px 16px; text-align: left; font-weight: 600; font-size: 13px; white-space: nowrap; }
.comparison-table td { padding: 13px 16px; border-bottom: 1px solid #f0ece7; vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #faf8f5; }
.comparison-table .winner-row td { background: rgba(74,144,217,0.06); font-weight: 500; }

/* Product review card */
.product-review { border: 1px solid #e5ded5; border-radius: 12px; overflow: hidden; margin: 32px 0; }
.product-review-header { background: var(--warm); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.product-review-meta { display: flex; flex-direction: column; gap: 4px; }
.product-review-rank { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.product-review-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.product-review-price-tag { font-size: 14px; color: var(--gray); }
.product-review-score { background: var(--navy); color: var(--white); font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; padding: 8px 16px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; }
.product-review-body { padding: 24px; }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0 20px; }
.pros h4, .cons h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.pros h4 { color: #16a34a; }
.cons h4 { color: #dc2626; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li, .cons li { font-size: 14px; line-height: 1.5; margin-bottom: 6px; padding-left: 20px; position: relative; }
.pros li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.cons li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

.who-its-for { background: var(--warm); border-radius: 8px; padding: 14px 18px; font-size: 14px; color: var(--text); margin-bottom: 18px; }
.who-its-for strong { color: var(--navy); }
.product-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid #f0ece7; flex-wrap: wrap; }
.product-price-display { font-size: 22px; font-weight: 700; color: var(--navy); }
.product-price-display span { font-size: 13px; font-weight: 400; color: var(--gray); }
.btn-buy { background: var(--sky); color: var(--white); padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; display: inline-block; transition: background 0.2s; text-decoration: none; }
.btn-buy:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #b07530; }

/* Plan-card layout (service/plan comparison articles) */
.plan-card { border: 1px solid #e5ded5; border-radius: 12px; overflow: hidden; margin: 28px 0; }
.plan-card-header { background: var(--warm); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan-rank { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.plan-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.plan-sub { font-size: 14px; color: var(--gray); }
.plan-score { background: var(--navy); color: var(--white); font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; padding: 8px 16px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; }
.plan-body { padding: 24px; }
.plan-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 20px; background: var(--warm); padding: 16px; border-radius: 8px; }
.plan-detail { display: flex; flex-direction: column; gap: 3px; }
.plan-detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); }
.plan-detail-value { font-size: 15px; font-weight: 600; color: var(--navy); }
.plan-cta { padding-top: 16px; border-top: 1px solid #f0ece7; }
.plan-price-big { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.plan-price-note { font-size: 13px; color: var(--gray); margin-bottom: 16px; }

/* FAQ */
.faq-list { border-top: 1px solid #e5ded5; margin: 8px 0; }
.faq-item { border-bottom: 1px solid #e5ded5; }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; text-align: left; padding: 18px 0; font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-question:hover { color: var(--sky); }
.faq-icon { font-size: 20px; transition: transform 0.2s; flex-shrink: 0; color: var(--sky); }
.faq-answer { display: none; padding: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--text); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Bottom line + related */
.bottom-line { background: var(--navy); color: var(--white); border-radius: 12px; padding: 32px; margin: 36px 0; }
.bottom-line h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; margin-bottom: 14px; color: var(--white); }
.bottom-line p { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 12px; }
.bottom-line p:last-of-type { margin-bottom: 20px; }
.more-guides { background: var(--warm); border: 1px solid #d9cfc4; border-radius: 12px; padding: 24px 28px; margin: 32px 0; }
.more-guides h4 { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.more-guides ul { list-style: none; padding: 0; }
.more-guides li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.more-guides li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.more-guides a { font-size: 15px; font-weight: 500; color: var(--sky); }

/* Sidebar */
.sidebar { position: sticky; top: 88px; }
.sidebar-card { background: var(--warm); border: 1px solid #d9cfc4; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.sidebar-card h4 { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; border-bottom: 1px solid #d9cfc4; padding-bottom: 10px; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a { font-size: 13px; color: var(--sky); line-height: 1.4; display: block; padding-left: 4px; border-left: 2px solid transparent; transition: border-color 0.2s; }
.toc-list a:hover { color: var(--navy); border-color: var(--gold); text-decoration: none; }
.quick-picks-list { list-style: none; padding: 0; }
.quick-pick { padding: 12px 0; border-bottom: 1px solid #e5ded5; display: flex; flex-direction: column; gap: 4px; }
.quick-pick:last-child { border-bottom: none; padding-bottom: 0; }
.quick-pick-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.quick-pick-name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.quick-pick-price { font-size: 13px; color: var(--gray); }
.quick-pick a { font-size: 12px; color: var(--sky); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 48px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-brand-desc { font-size: 13px; line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; text-decoration: none; }
.footer-col ul a:hover { color: var(--white); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-bottom { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.4); }

/* Responsive */
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .sidebar { position: static; } .sidebar-card:first-child { display: none; } }
@media (max-width: 768px) { .nav-links { display: none; } .pros-cons { grid-template-columns: 1fr; } .footer-top { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .product-review-header { flex-direction: column; align-items: flex-start; } .plan-card-header { flex-direction: column; align-items: flex-start; } }
