
    :root {
        --primary: #b71c1c;
        --secondary: #c62828;
        --accent: #90a4ae;
        --text: #212121;
        --bg: #ffffff;
        --light-bg: #f5f5f5;
        --font-main: 'Open Sans', sans-serif;
        --font-heading: 'Oswald', sans-serif;
        --card-radius: 4px;
        --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
        --btn-radius: 4px;
        --spacing: 18px;
    }

    * { box-sizing: border-box; }
    body {
        font-family: var(--font-main);
        color: var(--text);
        background-color: var(--bg);
        margin: 0;
        line-height: 1.6;
    }
    h1, h2, h3, h4, h5, h6 {
        font-family: var(--font-heading);
        font-weight: 800;
        line-height: 1.25;
    }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    a { color: var(--primary); text-decoration: none; transition: 0.2s; }
    a:hover { color: var(--accent); }

    /* Header base (detailed style set inline by generate_header) */
    header { position: relative; z-index: 100; }
    nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
    
        nav a { color: var(--text); font-weight: 600; transition: color 0.2s; }
        nav a:hover { color: var(--primary); }

    /* Hero */
    .hero {
        padding: 60px 0;
        background: var(--light-bg);
        margin-bottom: 32px;
        text-align: center;
    }
    .hero h1 { font-size: 2.8rem; margin-bottom: 16px; color: var(--primary); font-family: var(--font-heading); }
    .hero p { font-size: 1.1rem; color: #777; max-width: 640px; margin: 0 auto 28px; }
    .compact-bar {
        padding: 22px 0;
        background: var(--light-bg);
        border-bottom: 3px solid var(--primary);
        margin-bottom: 32px;
    }
    .compact-bar h2 { font-size: 1.6rem; margin: 0 0 4px; color: var(--primary); font-family: var(--font-heading); }
    .compact-bar p { margin: 0; color: #777; font-size: 0.95rem; }

    /* Category pills bar */
    .category-pills {
        display: flex; gap: 10px; flex-wrap: wrap;
        padding: 16px 0; margin-bottom: 32px; border-bottom: 1px solid #eee;
    }
    .category-pill {
        padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.5px;
        background: var(--light-bg); color: var(--primary);
        border: 1px solid var(--primary); transition: 0.2s; white-space: nowrap;
    }
    .category-pill:hover { background: var(--primary); color: #fff; text-decoration: none; }
    .category-pill.active { background: var(--primary); color: #fff; }

    /* Trending strip */
    .trending-strip {
        background: var(--primary); color: #fff;
        padding: 10px 0; font-size: 0.88rem; overflow: hidden;
        margin-bottom: 32px;
    }
    .trending-strip .container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
    .trending-strip strong { margin-right: 8px; white-space: nowrap; }
    .trending-strip a { color: rgba(255,255,255,0.85); margin: 0 6px; }
    .trending-strip a:hover { color: #fff; }

    /* Latest bar */
    .latest-bar {
        background: var(--light-bg); border-top: 3px solid var(--accent);
        padding: 14px 0; margin-top: 40px; font-size: 0.88rem;
    }
    .latest-bar .container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
    .latest-bar strong { white-space: nowrap; margin-right: 6px; color: var(--primary); }

    /* Editor Picks */
    .editor-picks { margin-top: 48px; }
    .editor-picks h2 {
        font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px;
        border-left: 4px solid var(--accent); padding-left: 12px; margin-bottom: 24px;
    }
    .editor-picks .article-grid { grid-template-columns: repeat(3, 1fr); }
    .editor-badge {
        position: absolute; top: 12px; right: 12px;
        background: var(--accent); color: #fff;
        font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
        padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;
    }

    /* Sponsored callout */
    .sponsored-callout {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white; text-align: center;
        padding: 44px 24px; border-radius: 4px;
        margin: 32px 0;
    }
    .sponsored-callout h3 { color: white; font-size: 1.8rem; margin: 0 0 12px; }
    .sponsored-callout p { color: rgba(255,255,255,0.88); margin: 0 0 24px; font-size: 1rem; }
    .sponsored-callout .btn {
        background: white; color: var(--primary);
        font-size: 1.05rem; font-weight: 700; padding: 14px 36px;
    }
    .sponsored-callout .btn:hover { background: var(--light-bg); color: var(--primary); }

    /* Article card — base */
    .article-card {
        background: var(--bg);
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 4px;
        padding: 18px;
        transition: all 0.25s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }
    .article-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }
    .article-category-tag {
        display: inline-block;
        background: var(--light-bg); color: var(--primary);
        font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.6px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
    }
    .article-card h3 { margin: 0 0 10px; font-size: 1.1rem; line-height: 1.4; font-family: var(--font-heading); }
    .article-card p { color: #777; font-size: 0.9rem; margin: 0 0 14px; flex: 1; }

    
        .btn {
            display: inline-block; padding: 10px 22px;
            background: var(--accent); color: #fff;
            border: none; border-radius: 4px;
            font-weight: 600; font-size: 0.95rem; cursor: pointer;
            transition: background 0.2s, transform 0.2s;
        }
        .btn:hover { background: var(--primary); color: #fff; text-decoration: none; transform: translateY(-1px); }
    .btn-outline {
        background: transparent; border: 2px solid var(--primary); color: var(--primary);
        border-radius: 4px; padding: 9px 22px; font-weight: 700;
        transition: background 0.2s, color 0.2s; display: inline-block;
    }
    .btn-outline:hover { background: var(--primary); color: #fff; }

    /* Overlay-image card */
    .card-overlay {
        position: relative; border-radius: 4px; overflow: hidden;
        aspect-ratio: 16/9; display: block;
    }
    .card-overlay img {
        width: 100%; height: 100%; object-fit: cover; display: block;
        transition: transform 0.4s ease;
    }
    .card-overlay:hover img { transform: scale(1.04); }
    .card-overlay-body {
        position: absolute; bottom: 0; left: 0; right: 0;
        padding: 20px 18px 16px;
        background: linear-gradient(transparent, rgba(0,0,0,0.82));
        color: white;
    }
    .card-overlay-body .article-category-tag {
        background: var(--accent); color: #fff; border-radius: 3px;
    }
    .card-overlay-body h3 { color: white; font-size: 1.05rem; margin: 6px 0 0; }
    .card-overlay-body p { color: rgba(255,255,255,0.8); font-size: 0.82rem; margin: 4px 0 0; }

    /* Horizontal-thumb card */
    .card-horizontal {
        display: flex; gap: 16px; align-items: flex-start;
        border-bottom: 1px solid #eee; padding: 18px 0; background: transparent;
        box-shadow: none; border-radius: 0; border: none;
    }
    .card-horizontal:hover { transform: none; background: var(--light-bg); padding-left: 10px; box-shadow: none; }
    .card-horizontal .h-thumb {
        width: 88px; height: 66px; object-fit: cover; border-radius: 4px; flex-shrink: 0;
    }
    .card-horizontal .h-body { flex: 1; }
    .card-horizontal .h-body h3 { font-size: 0.98rem; margin: 0 0 4px; }
    .card-horizontal .h-body p { font-size: 0.82rem; color: #888; margin: 0; }

    /* Numbered-rank card */
    .card-numbered {
        display: flex; gap: 20px; align-items: flex-start;
    }
    .card-rank-num {
        font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--accent);
        font-family: var(--font-heading); min-width: 52px; text-align: center;
        flex-shrink: 0;
    }
    .card-numbered .card-rank-body h3 { font-size: 1.1rem; margin: 0 0 8px; }
    .card-numbered .card-rank-body p { font-size: 0.88rem; color: #777; margin: 0 0 10px; }

    /* Review-score card */
    .card-score-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .card-score-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: -1px; }
    .card-score-verdict { font-size: 0.8rem; color: #888; }

    /* Dark card */
    .card-dark {
        background: var(--light-bg); border-left: 4px solid var(--accent);
        border-top: none; border-right: none; border-bottom: none;
        box-shadow: none;
    }
    .card-dark h3 a { color: var(--text); }
    .card-dark:hover { border-left-color: var(--primary); background: var(--bg); }

    /* Large-image card */
    .card-large-img { padding: 0; overflow: hidden; }
    .card-large-img .card-img {
        width: 100%; height: 200px; object-fit: cover; display: block;
        border-radius: 4px 4px 0 0;
    }
    .card-large-img .card-body { padding: 20px 18px; }

    /* Article page */
    .article-body { max-width: 860px; margin: 0 auto; }
    .article-body h1 { font-size: 2.2rem; margin-bottom: 24px; color: var(--primary); font-family: var(--font-heading); }
    .article-body h2 { font-size: 1.5rem; margin-top: 36px; margin-bottom: 12px; font-family: var(--font-heading); }
    .article-body h3 { font-size: 1.2rem; margin-top: 24px; margin-bottom: 8px; }
    .article-body p { margin: 0 0 18px; line-height: 1.8; }
    .article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 26px; }
    .article-body li { margin-bottom: 6px; }
    .article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
    .article-body table th, .article-body table td { border: 1px solid #ddd; padding: 10px 14px; text-align: left; }
    .article-body table th { background: var(--light-bg); font-weight: 700; }
    .pull-quote {
        border-left: 5px solid var(--accent); margin: 32px 0;
        padding: 16px 28px; font-size: 1.25rem; font-style: italic;
        color: var(--primary); background: var(--light-bg); border-radius: 0 4px 4px 0;
        font-family: var(--font-heading);
    }
    .article-right-sidebar {
        display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: 1100px; margin: 0 auto;
    }
    @media (max-width: 900px) { .article-right-sidebar { grid-template-columns: 1fr; } }
    .article-left-sidebar {
        display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: 1100px; margin: 0 auto;
    }
    @media (max-width: 900px) { .article-left-sidebar { grid-template-columns: 1fr; } }
    .article-sidebar-inner { position: sticky; top: 24px; }
    .article-sidebar-section {
        background: var(--light-bg); border-radius: 4px;
        padding: 20px; margin-bottom: 24px;
    }
    .article-sidebar-section h4 {
        font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.8px;
        color: var(--primary); border-bottom: 2px solid var(--accent);
        padding-bottom: 8px; margin: 0 0 14px;
    }
    .article-toc { list-style: none; padding: 0; margin: 0; }
    .article-toc li { padding: 4px 0; font-size: 0.88rem; border-bottom: 1px solid rgba(0,0,0,0.06); }
    .product-review-box {
        border: 2px solid var(--primary); border-radius: 4px;
        padding: 24px; margin-bottom: 32px;
        display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
    }
    @media (max-width: 600px) { .product-review-box { grid-template-columns: 1fr; } }
    .product-review-box img { width: 120px; height: 120px; object-fit: contain; border-radius: 4px; }
    .product-score-badge {
        display: inline-flex; align-items: center; justify-content: center;
        width: 52px; height: 52px; border-radius: 50%;
        background: var(--accent); color: #fff;
        font-size: 1.2rem; font-weight: 900; font-family: var(--font-heading);
        margin-bottom: 8px;
    }
    .verdict-box {
        border-top: 4px solid var(--accent); background: var(--light-bg);
        border-radius: 0 0 4px 4px; padding: 24px 28px; margin-top: 40px;
    }
    .verdict-box h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--primary); margin: 0 0 10px; }

    /* Sidebar widgets */
    .blog-sidebar { }
    .sidebar-widget { margin-bottom: 30px; }
    .sidebar-widget h4 {
        font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;
        color: var(--primary); border-bottom: 2px solid var(--accent);
        padding-bottom: 8px; margin-bottom: 16px;
    }

    /* Footer base */
    footer { margin-top: 60px; }
    footer a { transition: 0.2s; }

    
    .logo {
        display: inline-block;
        width: 40px;
        height: 40px;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCA1MCA1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIyNSIgZmlsbD0iI2I3MWMxYyIgLz48cmVjdCB4PSIxNSIgeT0iMTUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdHJhbnNmb3JtPSJyb3RhdGUoNDUgMjUgMjUpIiBmaWxsPSIjYzYyODI4IiAvPjxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjUiIGZpbGw9IiM5MGE0YWUiIC8+PC9zdmc+');
        background-size: contain;
        background-repeat: no-repeat;
        margin-right: 10px;
        vertical-align: middle;
    }
    .site-branding {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    .site-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #b71c1c;
        margin: 0;
    }
    
    
        .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
        .article-card:first-child {
            grid-column: span 3; display: grid;
            grid-template-columns: 300px 1fr auto; gap: 0 24px; align-items: start;
        }
        .article-card:first-child .article-card-thumb {
            width: 300px; object-fit: cover; border-radius: 4px;
            margin: 0; grid-row: 1 / span 4; align-self: stretch; height: 100%;
        }
        .article-card:first-child .article-category-tag { grid-column: 2; }
        .article-card:first-child h3 { grid-column: 2; }
        .article-card:first-child p { grid-column: 2; }
        .article-card:first-child .btn { grid-column: 3; align-self: center; white-space: nowrap; }
        @media (max-width: 900px) {
            .article-grid { grid-template-columns: repeat(2, 1fr); }
            .article-card:first-child { grid-column: span 2; grid-template-columns: 220px 1fr; }
            .article-card:first-child .btn { grid-column: 2; }
        }
        @media (max-width: 600px) {
            .article-grid { grid-template-columns: 1fr; }
            .article-card:first-child { grid-column: auto; grid-template-columns: 1fr; }
            .article-card:first-child .article-card-thumb { grid-row: auto; width: 100%; height: 180px; margin: -24px -24px 16px -24px; width: calc(100% + 48px); }
            .article-card:first-child .article-category-tag, .article-card:first-child h3, .article-card:first-child p, .article-card:first-child .btn { grid-column: 1; }
        }
        

    /* Article card thumbnail */
    .article-card-thumb {
        width: calc(100% + 36px);
        height: 185px; object-fit: cover;
        border-radius: 4px 4px 0 0;
        margin: -18px -18px 16px -18px;
        display: block; flex-shrink: 0;
    }

    /* Inline article images */
    .article-img-left { float: left; max-width: 42%; height: auto; border-radius: 4px; margin: 6px 20px 16px 0; display: block; }
    .article-img-right { float: right; max-width: 42%; height: auto; border-radius: 4px; margin: 6px 0 16px 20px; display: block; }
    .article-img-center { display: block; max-width: 80%; height: auto; border-radius: 4px; margin: 20px auto; }
    .article-img-clearfix { clear: both; }

    /* Affiliate CTA box */
    .article-cta {
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: white; padding: 36px 40px; border-radius: 4px; margin: 44px 0; text-align: center;
    }
    .article-cta h3 { color: white; font-size: 1.5rem; margin: 0 0 10px; font-family: var(--font-heading); }
    .article-cta p { color: rgba(255,255,255,0.88); margin: 0 0 22px; font-size: 1rem; }
    .btn-cta {
        background: white; color: var(--primary); font-size: 1.05rem; font-weight: 700;
        padding: 14px 34px; border-radius: 4px; display: inline-block;
        transition: all 0.2s; text-decoration: none;
    }
    .btn-cta:hover { background: var(--light-bg); color: var(--accent); text-decoration: none; transform: translateY(-2px); }

    /* Mid-article inline deal box */
    .inline-deal-box {
        border: 2px solid var(--primary); border-radius: 4px;
        padding: 20px 24px; margin: 32px 0; background: var(--light-bg);
        display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    }
    .inline-deal-box p { margin: 0; font-size: 0.97rem; color: var(--text); flex: 1; }
    .inline-deal-box .btn-inline {
        background: var(--primary); color: white; font-size: 0.92rem; font-weight: 700;
        padding: 10px 22px; border-radius: 4px; text-decoration: none;
        white-space: nowrap; transition: opacity 0.2s;
    }
    .inline-deal-box .btn-inline:hover { opacity: 0.85; text-decoration: none; }
    