:root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-alt: #f1f5f9;
    --ink: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --accent: #d97706;
    --accent-dark: #b45309;
    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.68;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 22px; }

/* Top Disclosure Strip */
.disclosure-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    padding: 7px 0;
    text-align: center;
}
.disclosure-bar a { color: var(--ink); font-weight: 600; text-underline-offset: 2px; }

/* Magazine Masthead */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.97);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 68px;
    padding: 10px 0;
    gap: 16px;
}
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.main-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent-dark); }

/* Header Search Bar */
.header-search {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 3px 6px 3px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.header-search:focus-within {
    background: #ffffff;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.header-search input {
    border: none;
    background: transparent;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--ink);
    width: 165px;
    outline: none;
    padding: 4px 0;
}
.header-search input::placeholder {
    color: #94a3b8;
}
.header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--ink);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.header-search button:hover {
    background: var(--accent-dark);
}

/* Search Results Page Inline Form */
.page-search-form {
    display: flex;
    gap: 10px;
    max-width: 540px;
    margin-top: 18px;
}
.page-search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--sans);
    outline: none;
}
.page-search-form input:focus {
    border-color: var(--ink);
}

/* Editorial Breadcrumbs */
.breadcrumbs {
    margin: 18px 0 12px;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #94a3b8;
}
.breadcrumb-item a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}
.breadcrumb-item span[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

/* Category Archive Header */
.category-header {
    padding: 8px 0 24px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--ink);
}
.category-header h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin: 0 0 10px;
    line-height: 1.15;
}
.category-header p {
    color: var(--muted);
    max-width: 680px;
    margin: 0;
}

/* Hero Editorial Grid */
.hero-magazine {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 36px;
    padding: 36px 0 42px;
    border-bottom: 2px solid var(--ink);
}
.hero-img-wrap {
    display: block;
    margin-bottom: 18px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1200 / 520;
    object-fit: cover;
}
.cat-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    text-decoration: none;
    margin-bottom: 8px;
}
.hero-lead h1 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    line-height: 1.13;
    margin: 0 0 14px;
}
.hero-lead h1 a, .stack-card h3 a, .card h3 a, .card h2 a { color: var(--ink); text-decoration: none; }
.hero-lead h1 a:hover, .stack-card h3 a:hover, .card h3 a:hover, .card h2 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: 14px; }
.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 0 6px; 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(290px, 1fr)); gap: 24px; }
.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06); }
.card-img-link {
    display: block;
    margin: -20px -20px 16px -20px;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.card-thumb {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1200 / 520;
    object-fit: cover;
}
.card h2, .card h3 { font-family: var(--serif); font-size: 1.32rem; line-height: 1.25; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.card-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* Two-Column Layout — Sidebar Scrolls Naturally With Page */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 44px;
    padding: 16px 0 64px;
    align-items: start;
}
.content-with-sidebar .breadcrumbs {
    margin-top: 8px;
}
.article-title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.14; margin: 10px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.editorial-byline { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); transition: color 0.15s ease, border-color 0.15s ease; }
.editorial-byline:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.verified-pill { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 2px 10px; border-radius: 99px; font-weight: 600; font-size: 12px; }

/* Top Hero Figure on Article Pages */
.article-hero-figure {
    margin: 0 0 26px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.article-hero-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1200 / 520;
    object-fit: cover;
}

.quick-answer-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 32px;
}
.qa-label { font-size: 11.5px; 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; color: var(--ink); }

.article-body h2 { font-family: var(--serif); font-size: 1.72rem; margin-top: 2.2em; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.5em; color: var(--ink); }

/* Comparison Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 14.5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.article-body th, .article-body td {
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}
.article-body th {
    background: var(--surface);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover td { background: #fafafa; }

/* Slimline, Sleek Affiliate & UI Buttons */
.btn-affiliate, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--ink);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid var(--ink);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.btn-affiliate:hover, .btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}
.article-body td .btn-affiliate {
    padding: 6px 13px;
    font-size: 12.5px;
    border-radius: 5px;
}
.btn-full { width: 100%; }

/* =========================================================
   MODERN EDITORIAL SIDEBAR (Scrolls Naturally With Page)
   ========================================================= */
aside.sidebar {
    position: static !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

aside.sidebar .widget {
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #0f172a !important;
    border-radius: 12px !important;
    padding: 22px !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

aside.sidebar .toc-widget {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 48px) !important;
    border-top-color: #d97706 !important;
}

aside.sidebar .widget-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

aside.sidebar .widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
    flex-shrink: 0;
}

aside.sidebar .widget-title {
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0;
    color: #0f172a;
}

/* Numbered Table of Contents */
aside.sidebar .toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: toc-counter;
}

aside.sidebar .toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 10px;
    font-size: 13.5px;
    line-height: 1.42;
}

aside.sidebar .toc-list li:last-child {
    margin-bottom: 0;
}

aside.sidebar .toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 6px;
    margin: 0 -6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

aside.sidebar .toc-list a::before {
    content: counter(toc-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
    transition: all 0.15s ease;
}

aside.sidebar .toc-list a:hover {
    color: #b45309;
    background: #fffbeb;
}

aside.sidebar .toc-list a:hover::before {
    background: #d97706;
    color: #ffffff;
}

/* Latest Guides List */
aside.sidebar .sidebar-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

aside.sidebar .sidebar-links li {
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.4;
}

aside.sidebar .sidebar-links li:first-child { padding-top: 0; }
aside.sidebar .sidebar-links li:last-child { border-bottom: none; padding-bottom: 0; }

aside.sidebar .sidebar-cat {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b45309;
    margin-bottom: 3px;
}

aside.sidebar .sidebar-links a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.15s ease, transform 0.15s ease;
}

aside.sidebar .sidebar-links a:hover {
    color: #b45309;
    transform: translateX(2px);
}

/* Topic Pills */
aside.sidebar .sidebar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

aside.sidebar .topic-pill {
    display: inline-block;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.15s ease;
}

aside.sidebar .topic-pill:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}

/* Dark Luxury Newsletter Card */
aside.sidebar .newsletter-widget {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
    color: #f8fafc !important;
    border: none !important;
    border-top: 3px solid #f59e0b !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14) !important;
}

aside.sidebar .newsletter-eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #fbbf24;
    margin-bottom: 6px;
}

aside.sidebar .newsletter-widget h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #ffffff;
}

aside.sidebar .newsletter-widget p {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0 0 16px;
    line-height: 1.55;
}

aside.sidebar .newsletter-widget input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    border-radius: 7px;
    margin-bottom: 10px;
    font-size: 13.5px;
    outline: none;
}

aside.sidebar .newsletter-widget input:focus {
    border-color: #f59e0b;
}

aside.sidebar .newsletter-widget input::placeholder {
    color: #94a3b8;
}

aside.sidebar .newsletter-widget .btn-primary {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 7px;
    font-weight: 700;
}

aside.sidebar .newsletter-widget .btn-primary:hover {
    background: #b45309 !important;
    border-color: #b45309 !important;
}

.success-msg { color: #34d399 !important; font-weight: 600; margin: 0; }

/* FAQ Accordion */
.faq-section { margin-top: 48px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; background: var(--bg); }
.faq-item summary { font-weight: 700; cursor: pointer; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; 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 #1e293b; }
.footer-brand { font-family: var(--serif); font-size: 26px; color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 13px; 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: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; font-size: 13px; color: #94a3b8; }

@media (max-width: 1080px) {
    .header-search input { width: 130px; }
}
@media (max-width: 960px) {
    .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; }
}
@media (max-width: 768px) {
    .header-search { width: 100%; order: 3; }
    .header-search input { width: 100%; }
}