/* W3 Stacks / Authority Engine base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; color: #1a1a1a; background: #fff; line-height: 1.65; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid #e5e7eb; max-width: 1100px; margin: 0 auto; width: 100%; }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: #111; display: flex; align-items: center; }
.brand-logo { display: block; height: 32px; width: auto; }
/* aspect-ratio + explicit w/h on img prevent CLS (layout shift) */
.hero-img { display: block; max-width: 100%; height: auto; margin: 0 auto 20px; border-radius: 8px; aspect-ratio: 16/9; }
nav a { margin-left: 20px; color: #374151; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: #111; }
main { max-width: 780px; margin: 40px auto; padding: 0 20px; }
.hero { text-align: center; padding: 40px 0 32px; }
.hero h1, .hero-h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; color: #111; }
.hero-sub { color: #4b5563; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.featured { margin-top: 40px; }
.featured h2 { font-size: 1.1rem; font-weight: 700; color: #374151; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.featured-card { display: block; padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.featured-card:hover { border-color: #6366f1; box-shadow: 0 2px 8px rgba(99,102,241,0.1); }
.card-title { font-size: 0.9rem; font-weight: 600; color: #111; line-height: 1.4; }
.article-main { padding: 32px 0; }
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.cluster-tag { background: #f3f4f6; color: #374151; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
time { font-size: 0.8rem; color: #6b7280; }
.article-author { font-size: 0.8rem; color: #4b5563; }
.article-author a { color: #4f46e5; text-decoration: none; }
.article-author a:hover { text-decoration: underline; }
article h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
article h2 { font-size: 1.35rem; font-weight: 700; margin: 32px 0 12px; }
article h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; }
article p { margin-bottom: 16px; }
article ul, article ol { padding-left: 24px; margin-bottom: 16px; }
article li { margin-bottom: 6px; }
/* overflow-x on table block prevents horizontal scroll blowout on narrow screens */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
article table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
article th { background: #f9fafb; text-align: left; padding: 10px 12px; border-bottom: 2px solid #e5e7eb; font-weight: 700; }
article td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; }
article blockquote { border-left: 3px solid #6366f1; padding: 12px 20px; color: #374151; font-style: italic; margin: 20px 0; background: #f8f9ff; border-radius: 0 6px 6px 0; }
article a { color: #4f46e5; }
article a:hover { text-decoration: underline; }
.affiliate-cta { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 18px 20px; margin: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.affiliate-cta p { margin: 0; font-size: 0.9rem; color: #1e3a5f; font-weight: 500; }
.affiliate-cta a.cta-btn { display: inline-block; background: #4f46e5; color: #fff; font-weight: 700; font-size: 0.875rem; padding: 9px 20px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.affiliate-cta a.cta-btn:hover { background: #4338ca; }
.verdict-box { background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.verdict-box strong { color: #166534; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.verdict-box p { margin: 6px 0 0; color: #15803d; font-size: 0.9rem; }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { border-bottom: 1px solid #f3f4f6; }
.index-list li a { display: block; padding: 14px 0; color: #111; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.index-list li a:hover { color: #4f46e5; }
.index-list li .tag { font-size: 0.75rem; color: #6b7280; margin-left: 8px; font-weight: 400; }
.site-footer { border-top: 1px solid #e5e7eb; padding: 24px; text-align: center; font-size: 0.8rem; color: #6b7280; margin-top: 60px; }
.site-footer a { color: #6b7280; }
@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 10px; }
  nav a:first-child { margin-left: 0; }
  main { margin: 24px auto; }
  article h1 { font-size: 1.5rem; }
  .hero h1, .hero-h1 { font-size: 1.6rem; }
  .affiliate-cta { flex-direction: column; align-items: flex-start; }
}
