:root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --ink: #111827;
    --muted: #4b5563;
    --border: #e5e7eb;
    --accent: #d97706;
    --accent-dark: #b45309;
    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Top Disclosure Strip */
.disclosure-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    padding: 8px 0;
    text-align: center;
}
.disclosure-bar a { color: var(--ink); font-weight: 500; }

/* Magazine Masthead */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.96);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}
.main-nav { display: flex; gap: 22px; overflow-x: auto; }
.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--accent); }

/* Hero Editorial Grid */
.hero-magazine {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 36px;
    padding: 40px 0;
    border-bottom: 2px solid var(--ink);
}
.cat-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    text-decoration: none;
    margin-bottom: 10px;
}
.hero-lead h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.12;
    margin: 0 0 16px;
}
.hero-lead h1 a, .stack-card h3 a, .card h3 a { color: var(--ink); text-decoration: none; }
.hero-lead h1 a:hover, .stack-card h3 a:hover, .card h3 a:hover { color: var(--accent-dark); }
.hero-stack { border-left: 1px solid var(--border); padding-left: 32px; }
.stack-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.stack-card { padding: 14px 0; border-bottom: 1px solid var(--border); }
.stack-card:last-child { border-bottom: none; }
.stack-card h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0; line-height: 1.3; }

/* Cards Grid */
.latest-section { padding: 44px 0; }
.section-header h2 { font-family: var(--serif); font-size: 1.85rem; margin-bottom: 24px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.card h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.card-meta { font-size: 13px; color: var(--muted); }

/* Article Layout + Sticky Sidebar */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 48px;
    padding: 40px 0 64px;
}
.article-title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.15; margin: 12px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.verified-pill { background: #ecfdf5; color: #065f46; padding: 2px 10px; border-radius: 99px; font-weight: 600; font-size: 12px; }

.quick-answer-box {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
}
.qa-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dark); margin-bottom: 6px; }
.quick-answer-box p { margin: 0; font-weight: 500; }

.article-body h2 { font-family: var(--serif); font-size: 1.75rem; margin-top: 2.2em; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 12px; text-align: left; }
.article-body th { background: var(--surface); }

.btn-affiliate, .btn-primary {
    display: inline-block;
    background: var(--ink);
    color: #fff !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn-affiliate:hover, .btn-primary:hover { background: var(--accent-dark); }

/* Sidebar Widgets */
.sidebar { position: sticky; top: 92px; align-self: start; }
.widget { border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 24px; background: var(--bg); }
.widget-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; color: var(--muted); }
.toc-list, .sidebar-links { list-style: none; padding: 0; margin: 0; }
.toc-list li, .sidebar-links li { margin-bottom: 10px; font-size: 14px; }
.toc-list a, .sidebar-links a { color: var(--ink); text-decoration: none; }
.toc-list a:hover, .sidebar-links a:hover { color: var(--accent-dark); }
.newsletter-widget { background: var(--surface); }
.newsletter-widget input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px; }

/* FAQ Accordion */
.faq-section { margin-top: 48px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.faq-item summary { font-weight: 700; cursor: pointer; }

/* Footer */
.site-footer { background: var(--ink); color: #d1d5db; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #374151; }
.footer-brand { font-family: var(--serif); font-size: 26px; color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: #9ca3af; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; font-size: 13px; color: #9ca3af; }

@media (max-width: 900px) {
    .hero-magazine, .content-with-sidebar, .footer-grid { grid-template-columns: 1fr; }
    .hero-stack { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
    .sidebar { position: static; }
}