:root{--brand-primary:#2E86AB;--brand-primary-dark:#1B4F72;--brand-accent:#F4A300;--brand-surface-dark:#12181F;--brand-surface-dark2:#1C242E;--brand-cta:#E63946;}
/* Scout Factory Site Styles */
:root {
    --primary: var(--brand-primary);
    --primary-dark: var(--brand-primary-dark);
    --secondary: #0f172a;
    --accent: #06b6d4;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

/* Header live search */
.site-search { position: relative; flex: 1 1 200px; max-width: 330px; }
.site-search input {
    width: 100%; padding: 9px 14px 9px 36px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.13);
    color: #fff; font-size: 0.9rem; outline: none;
    transition: background .15s ease, border-color .15s ease;
}
.site-search input::placeholder { color: rgba(255,255,255,0.6); }
.site-search input:focus { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.55); }
.site-search .search-ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.65); pointer-events: none; font-size: 0.82rem; z-index: 1;
}
.search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 300px;
    background: #fff; border-radius: 12px; box-shadow: 0 16px 44px rgba(0,0,0,0.28);
    z-index: 1300; overflow-y: auto; max-height: 68vh; text-align: left;
}
.search-results a {
    display: flex; gap: 10px; align-items: center; padding: 10px 14px;
    text-decoration: none; border-bottom: 1px solid #f1f5f9; margin: 0;
}
.search-results a:hover, .search-results a.active { background: #eff6ff; }
.search-results .sr-thumb {
    flex-shrink: 0; width: 46px; height: 34px; border-radius: 6px;
    background-color: #e2e8f0; background-size: cover; background-position: center;
}
.search-results .sr-body { min-width: 0; }
.search-results .sr-title {
    display: block; font-weight: 600; color: #0f172a; font-size: 0.88rem;
    line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-results .sr-sub {
    display: block; color: #64748b; font-size: 0.76rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sr-kind {
    display: inline-block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; border-radius: 4px; padding: 1px 6px; margin-right: 7px;
    color: #fff; background: var(--brand-accent); vertical-align: 1px;
}
.sr-kind.news { background: #dc2626; }
.sr-kind.product { background: #16a34a; }
.sr-kind.page { background: #64748b; }
.search-results .sr-all {
    display: block; text-align: center; font-weight: 700; color: var(--brand-accent);
    font-size: 0.85rem; padding: 11px 14px; background: #f8fafc;
}
@media (max-width: 860px) {
    .site-search { order: 3; flex-basis: 100%; max-width: none; margin: 4px 0 2px; }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 90px;
    width: auto;
}

.main-nav a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin-left: 24px;
}

.main-nav a:hover {
    color: var(--brand-primary);
}
.main-nav a.nav-news { color: #f87171; font-weight: 700; }
.main-nav a.nav-news:hover { color: #fca5a5; }
.main-nav a.nav-newsletter {
    background: #FF9900; color: #111; font-weight: 800; padding: 8px 16px;
    border-radius: 999px; white-space: nowrap; font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(255,153,0,0.35);
}
.main-nav a.nav-newsletter:hover { background: #ffb02e; color: #111; }
.main-nav a.nav-newsletter .nl-short { display: none; }
@media (max-width: 1200px) {
    .main-nav a.nav-newsletter .nl-full { display: none; }
    .main-nav a.nav-newsletter .nl-short { display: inline; }
}

/* Dropdown Menu */
.main-nav .nav-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 24px;
}

.main-nav .nav-dropdown-trigger {
    margin-left: 0;
    cursor: pointer;
    padding-bottom: 15px;
    margin-bottom: -15px;
}

.main-nav .nav-dropdown-trigger::after {
    content: '';
    font-size: 0.75em;
}

.main-nav .nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background: #2a2a2a;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
    padding-top: 15px;
}

.main-nav .nav-dropdown-content a {
    display: block;
    padding: 12px 16px;
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 0.95rem;
    background: #3a3a3a;
    border-radius: 6px;
    text-align: left;
}

.main-nav .nav-dropdown-content a:last-child {
    margin-bottom: 0;
}

.main-nav .nav-dropdown-content a:hover {
    background: #4a4a4a;
    color: #ffffff;
}

.main-nav .nav-dropdown:hover .nav-dropdown-content,
.main-nav .nav-dropdown.open .nav-dropdown-content {
    display: block;
}

/* Hero */
.hero {
    padding: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: var(--white);
    border-radius: var(--radius);
    margin: 24px 0;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
}

.hero-banner .hero-content {
    position: relative;
    z-index: 1;
}

/* Editorial hero - full-bleed latest-article image with a strong left-side
   gradient so the headline always reads cleanly regardless of the photo. */
.hero-editorial {
    /* Full-width image hero: the WHOLE photo shows (no crop/zoom); the
       headline sits over a bottom scrim. */
    display: block;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #0b1220;
    min-height: 0;
}

.hero-editorial .hero-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.hero-editorial::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75%;
    background: linear-gradient(to top,
        rgba(8, 12, 24, 0.94) 0%,
        rgba(8, 12, 24, 0.78) 22%,
        rgba(8, 12, 24, 0.35) 55%,
        rgba(8, 12, 24, 0.00) 100%);
    border-radius: var(--radius);
    pointer-events: none;
}

.hero-editorial .hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 760px;
    padding: 40px 48px 36px;
    gap: 16px;
}

@media (max-width: 700px) {
    .hero-editorial .hero-content { padding: 22px 22px 20px; gap: 10px; }
}

.hero-editorial .hero-eyebrow,
.hero-editorial .hero-eyebrow-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    backdrop-filter: blur(6px);
    max-width: 100%;
}

.hero-editorial .hero-eyebrow-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-editorial .eyebrow-pill {
    background: var(--primary, #2563eb);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-editorial .eyebrow-text {
    white-space: normal;
    line-height: 1.35;
}

.hero-editorial .hero-title span {
    font-size: 3.5rem;
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.hero-editorial .tagline {
    font-size: 1.1rem;
    max-width: 520px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    margin: 0;
}

.hero-editorial .hero-actions {
    margin-top: 8px;
}

.hero-editorial .hero-btn.primary {
    background: var(--primary, #2563eb);
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-editorial .hero-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
    .hero-editorial {
        min-height: 380px;
    }
    .hero-editorial .hero-content {
        padding: 36px 24px;
        max-width: 100%;
    }
    .hero-editorial .hero-title span {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }
    .hero-editorial .hero-eyebrow-link {
        align-items: flex-start;
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px 48px;
    width: 100%;
}

.hero-title {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    margin: 0;
}

.hero-title span {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 400px;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 32px 24px;
    }

    .hero-title span {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
    }
}

/* Categories */
.categories {
    margin: 48px 0;
}

.categories h2 {
    margin-bottom: 24px;
}

/* Default Grid - explicit column counts at each breakpoint to avoid
   orphan rows (e.g. 5+1) for any item count divisible by 1, 2, 3 or 6. */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 560px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Default Card Style */
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
    min-width: 0;
}

.category-card .cat-name {
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.cat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cat-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.cat-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Style 1: Gradient Background */
.category-card.cat-gradient {
    background: linear-gradient(135deg, var(--cat-color) 0%, color-mix(in srgb, var(--cat-color) 70%, #000) 100%);
    border: none;
    color: white;
}

.category-card.cat-gradient .cat-name,
.category-card.cat-gradient .cat-count {
    color: white;
}

.category-card.cat-gradient .cat-count {
    opacity: 0.85;
}

.category-card.cat-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Style 2: Horizontal Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--cat-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-pill .cat-icon {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.category-pill .cat-name {
    font-weight: 600;
    color: var(--cat-color);
    margin-bottom: 0;
}

.category-pill .cat-count {
    background: var(--cat-color);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-pill:hover {
    background: var(--cat-color);
    transform: scale(1.05);
}

.category-pill:hover .cat-name {
    color: white;
}

/* Style 3: Image Thumbnails */
.category-card.cat-image {
    position: relative;
    min-height: 140px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: none;
    justify-content: center;
    overflow: hidden;
}

.category-card.cat-image .cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.category-card.cat-image .cat-icon,
.category-card.cat-image .cat-name,
.category-card.cat-image .cat-count {
    position: relative;
    z-index: 1;
    color: white;
}

.category-card.cat-image .cat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.category-card.cat-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Style 4: Coloured Icon Cards */
.category-card.cat-colored {
    background: white;
    border: none;
    box-shadow: var(--shadow);
    padding: 24px;
}

.category-card.cat-colored .cat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    border-radius: 14px;
    font-size: 1.65rem;
    margin-bottom: 14px;
    color: var(--cat-color);
}

.category-card.cat-colored .cat-icon i {
    line-height: 1;
}

.category-card.cat-colored .cat-name {
    color: var(--cat-color);
}

.category-card.cat-colored .cat-count {
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.category-card.cat-colored:hover {
    border: none;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--cat-color) 30%, transparent);
}

/* Style 5: Minimal Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.category-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-tag-btn .cat-icon {
    font-size: 1rem;
    margin-bottom: 0;
}

.category-tag-btn .cat-name {
    color: var(--text);
    margin-bottom: 0;
    font-weight: 500;
}

.category-tag-btn .cat-count {
    color: var(--text-light);
    font-size: 0.8rem;
}

.category-tag-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.category-tag-btn:hover .cat-name,
.category-tag-btn:hover .cat-count,
.category-tag-btn:hover .cat-icon {
    color: white;
}

/* Style 6: Neon Glow */
.category-card.cat-neon {
    background: #0a0a0a;
    border: 1px solid var(--cat-color);
    box-shadow: 0 0 15px color-mix(in srgb, var(--cat-color) 40%, transparent),
                inset 0 0 15px color-mix(in srgb, var(--cat-color) 10%, transparent);
}

.category-card.cat-neon .cat-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 0 8px var(--cat-color));
}

.category-card.cat-neon .cat-name {
    color: var(--cat-color);
    text-shadow: 0 0 10px var(--cat-color);
    font-weight: 700;
}

.category-card.cat-neon .cat-count {
    color: rgba(255,255,255,0.7);
}

.category-card.cat-neon:hover {
    border-color: var(--cat-color);
    box-shadow: 0 0 30px var(--cat-color),
                0 0 60px color-mix(in srgb, var(--cat-color) 50%, transparent),
                inset 0 0 20px color-mix(in srgb, var(--cat-color) 20%, transparent);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .category-pills {
        justify-content: flex-start;
    }

    .category-pill {
        padding: 10px 18px;
    }
}

/* Product Grid */
.products {
    margin: 48px 0;
}

.products h2 {
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 340px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #8b5cf6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-image-wrap {
    position: relative;
    background: #f0f4ff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-card img {
    max-width: 100%;
    max-height: 176px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 14px 16px 16px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.9) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: auto;
}

.product-info .brand {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info .brand::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #a5b4fc;
    border-radius: 50%;
    margin-right: 8px;
}

.view-product-btn {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a5b4fc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.view-product-btn::after {
    content: '>';
    transition: transform 0.2s ease;
}

.product-card:hover .view-product-btn {
    opacity: 1;
    transform: translateX(0);
}

.product-card:hover .view-product-btn::after {
    transform: translateX(3px);
}

.product-info-body {
    margin-top: auto;
}

.product-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-card:hover .product-info h3 {
    color: #a5b4fc;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    width: fit-content;
}

.excerpt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Page */
.product-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    margin: 24px 0;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

.product-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-details h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.product-details .brand {
    color: var(--text-light);
    margin-bottom: 16px;
}

.description {
    margin: 24px 0;
    line-height: 1.8;
}

.features h3 {
    margin-bottom: 12px;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.features li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

@media (max-width: 600px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

.pros, .cons {
    padding: 16px;
    border-radius: 8px;
}

.pros {
    background: #ecfdf5;
}

.cons {
    background: #fef3c7;
}

.pros h4, .cons h4 {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.pros li, .cons li {
    padding: 4px 0;
}

.cta {
    margin: 32px 0 16px;
}

.buy-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.buy-button:hover {
    background: var(--primary-dark);
}

.disclosure-small {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Category Page */
.category-page {
    margin: 24px 0;
}

.category-page h1 {
    margin-bottom: 8px;
}

.category-page .cat-count {
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Disclosure */
.disclosure {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: var(--radius);
    padding: 16px;
    margin: 48px 0;
    font-size: 0.875rem;
    color: var(--text);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer p {
    opacity: 0.8;
    font-size: 0.875rem;
}

.disclosure-footer {
    margin-top: 16px;
    font-size: 0.75rem !important;
    opacity: 0.6 !important;
}

/* About Page */
/* About Banner */
.about-banner {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    margin: 24px 0 0 0;
    color: var(--white);
}

.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
}

.about-banner .hero-content {
    position: relative;
    z-index: 1;
}

.about-banner .tagline {
    color: rgba(255,255,255,0.95);
}

.about-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.about-banner + .about-page {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.about-page h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--secondary);
}

.about-content {
    line-height: 1.8;
    color: var(--text);
}

.about-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--secondary);
}

.about-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
    color: var(--secondary);
}

.about-content p {
    margin-bottom: 16px;
}

.about-content ul, .about-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.about-content li {
    margin-bottom: 8px;
}

.about-content strong {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .about-page {
        padding: 24px;
    }
    .about-page h1 {
        font-size: 1.5rem;
    }
}

/* Latest Article Section (Homepage) */
.latest-article {
    margin: 32px 0;
}

.latest-article h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* Thumbnail Style - Image on left */
.article-card-featured {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.article-card-featured.has-image {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-card-featured .article-thumb {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.article-card-featured .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-featured .article-card-content {
    flex: 1;
}

.article-card-featured .article-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.article-card-featured h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.article-card-featured h3 a {
    color: var(--secondary);
    text-decoration: none;
}

.article-card-featured h3 a:hover {
    color: var(--primary);
}

.article-card-featured p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-card-featured .read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-card-featured .read-more:hover {
    text-decoration: underline;
}

/* Hero Style - images right, text overlay left */
.article-hero-card {
    display: block;
    position: relative;
    text-decoration: none;
    background: #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 280px;
}

.article-hero-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.article-hero-images {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0;
    height: 100%;
    width: 75%;
}

.article-hero-img {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60%;
    background: linear-gradient(to right, #1a1a1a 0%, #1a1a1a 40%, transparent 100%);
    z-index: 1;
}

.article-hero-card .article-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    z-index: 2;
}

.article-hero-card .article-date {
    display: inline-block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.article-hero-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.article-hero-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-hero-card .read-more {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--primary);
    border-radius: 6px;
    transition: background 0.2s;
    width: fit-content;
}

.article-hero-card:hover .read-more {
    background: #c9302c;
}

/* Responsive */
@media (max-width: 768px) {
    .article-card-featured.has-image {
        flex-direction: column;
    }

    .article-card-featured .article-thumb {
        width: 100%;
        height: 200px;
    }

    .article-hero-card {
        height: 400px;
    }

    .article-hero-images {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
    }

    .article-hero-overlay {
        width: 100%;
        height: 60%;
        top: 0;
        bottom: auto;
        background: linear-gradient(to bottom, #1a1a1a 0%, #1a1a1a 50%, transparent 100%);
    }

    .article-hero-card .article-hero-content {
        width: 100%;
        height: auto;
        bottom: auto;
        padding: 24px;
    }

    .article-hero-card h3 {
        font-size: 1.25rem;
    }

    .article-hero-card p {
        font-size: 0.9rem;
    }
}

/* Article Page */
.article-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--secondary);
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-author {
    font-weight: 500;
}

.article-content {
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text);
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 36px 0 16px;
    color: var(--secondary);
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: var(--secondary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.article-content a {
    color: var(--primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}

.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-back {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.btn-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-page {
        padding: 24px;
    }
    .article-header h1 {
        font-size: 1.75rem;
    }
    .article-content {
        font-size: 1rem;
    }
}

/* Articles Listing Page */
.articles-page {

}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: var(--white);
    border-radius: var(--radius);
}

.articles-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.articles-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-list-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-list-date {
    font-size: 0.875rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.article-list-author {
    font-weight: 500;
}

.article-list-item h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-list-item h2 a {
    color: var(--secondary);
    text-decoration: none;
}

.article-list-item h2 a:hover {
    color: var(--primary);
}

.article-list-item p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-list-item .read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-list-item .read-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .articles-header {
        padding: 30px 16px;
    }
    .articles-header h1 {
        font-size: 1.75rem;
    }
    .article-list-item {
        padding: 20px;
    }
    .article-list-item h2 {
        font-size: 1.2rem;
    }
}

/* Modern editorial refresh */
:root {
    --page-max: 1180px;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --ink: #121826;
    --muted: #667085;
    --line: #e6eaf0;
    --brand: var(--brand-primary);
    --brand-2: #00a6a6;
    --accent: #ff7a1a;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.16);
}

body {
    background: #f4f7fb;
    color: var(--ink);
    letter-spacing: 0;
}

.container {
    max-width: var(--page-max);
    padding-left: 22px;
    padding-right: 22px;
}

/* Editorial glass header - dark, sticky, semi-transparent.
   Designed for a light/white logo. If you switch to a dark logo,
   either bump --header-text or revert to the previous light scheme. */
.site-header {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.92), rgba(11, 17, 32, 0.78));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 22px rgba(3, 7, 18, 0.32);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .container {
    min-height: 72px;
}

.logo {
    color: #ffffff;
    font-weight: 800;
}

.logo-img {
    max-height: 46px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.main-nav {
    gap: 4px;
}

.main-nav a,
.nav-dropdown-trigger {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Categories dropdown matches the dark header rather than the harsh
   #2a2a2a card from the legacy theme. */
.main-nav .nav-dropdown-content,
.nav-dropdown-content {
    background: rgba(15, 22, 38, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(3, 7, 18, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 10px;
}

.main-nav .nav-dropdown-content a,
.nav-dropdown-content a {
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    border-radius: 6px;
}

.main-nav .nav-dropdown-content a:hover,
.nav-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.hero {
    min-height: 430px;
    margin: 22px 0 26px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(10,18,32,0.86), rgba(12,35,64,0.72)),
        radial-gradient(circle at 82% 22%, rgba(0,166,166,0.5), transparent 30%),
        radial-gradient(circle at 14% 82%, rgba(255,122,26,0.38), transparent 28%),
        #0b1220;
    overflow: hidden;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
}

.hero-banner::before {
    background: linear-gradient(135deg, rgba(8,15,28,0.86), rgba(8,15,28,0.42));
}

.hero-content {
    max-width: 760px;
    padding: 54px;
    text-align: left;
}

.hero-eyebrow,
.section-kicker {
    color: var(--brand-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 10px 0 14px;
}

.hero-title span {
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 0.96;
    color: #fff;
    text-shadow: none;
    max-width: 850px;
}

.tagline {
    color: rgba(255,255,255,0.88);
    font-size: 1.18rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.hero-btn.primary {
    background: #fff;
    color: #0b1220;
}

.hero-btn.secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.24);
}

.editorial-section,
.categories,
.products,
.trust-strip {
    margin: 34px 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 18px;
    margin-top: 12px;
}

.lead-story,
.story-card {
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lead-story {
    position: relative;
    min-height: 460px;
    display: block;
}

.lead-story img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-story-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,7,18,0.05), rgba(3,7,18,0.82));
}

.lead-story-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px;
    color: #fff;
}

.lead-story-content h2 {
    font-size: clamp(1.85rem, 4vw, 3.25rem);
    line-height: 1.02;
    margin: 8px 0 12px;
    color: #fff;
}

.lead-story-content p {
    max-width: 700px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 18px;
}

.read-more-pill {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.story-stack {
    display: grid;
    gap: 14px;
}

/* DEFAULT story-card style: image-bleed with gradient overlay (option 3).
   Each card is the article's hero image with a soft gradient at the bottom
   and white text on top. Magazine feel. */
.story-card {
    position: relative;
    display: block;
    min-height: 168px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    isolation: isolate;
}

.story-card:hover,
.product-card:hover,
.article-hero-card:hover,
.article-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.story-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.4s ease;
}

.story-card:hover img {
    transform: scale(1.04);
}

.story-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(7, 12, 22, 0.05) 0%,
        rgba(7, 12, 22, 0.55) 55%,
        rgba(7, 12, 22, 0.92) 100%);
    z-index: 1;
}

.story-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px 16px;
    z-index: 2;
    color: #fff;
}

.story-card-body span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.story-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 8px 0 6px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.story-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Top-level styles still need to apply elsewhere too. */
.article-date,
.article-list-date {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* OPT-IN FALLBACK: Option 1 - topic-pill side image, light card.
   To switch back, change <div class="story-stack"> to
   <div class="story-stack cards-pill"> in generate_site.py. */
.story-stack.cards-pill .story-card {
    position: static;
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 140px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    isolation: auto;
    color: inherit;
}

.story-stack.cards-pill .story-card::after {
    content: none;
}

.story-stack.cards-pill .story-card img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
}

.story-stack.cards-pill .story-card-body {
    position: static;
    padding: 14px;
    color: inherit;
}

.story-stack.cards-pill .story-card-body span {
    display: inline-block;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 999px;
    backdrop-filter: none;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.story-stack.cards-pill .story-card h3 {
    font-size: 1rem;
    color: var(--ink);
    text-shadow: none;
    margin: 8px 0 6px;
}

.story-stack.cards-pill .story-card p {
    color: var(--muted);
    text-shadow: none;
    -webkit-line-clamp: 2;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading-row h2,
.categories h2,
.products h2 {
    margin: 4px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.text-link {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.trust-strip div {
    background: #fff;
    padding: 18px;
}

.trust-strip strong,
.trust-strip span {
    display: block;
}

.trust-strip span {
    color: var(--muted);
    margin-top: 4px;
    font-size: 0.92rem;
}

/* Editorial-theme override: explicit column counts so 6 categories fall
   into 6/3/2 layouts cleanly with no orphan row. */
.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 560px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }
}

.category-card,
.category-pill,
.category-tag-btn {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
    min-width: 0;
}

.category-card {
    padding: 18px 14px;
    align-items: center;
    text-align: center;
}

.category-card .cat-name {
    font-size: 0.98rem;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    hyphens: auto;
}

.category-card .cat-count {
    color: var(--muted);
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 18px;
}

.product-card {
    height: auto;
    min-height: 410px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.product-card::before {
    display: none;
}

.product-card .product-image-wrap {
    height: 210px;
    background: #eef2f7;
}

.product-info {
    background: #fff;
    padding: 16px;
    color: var(--ink);
}

.product-info-header {
    margin-bottom: 12px;
}

.product-info .brand {
    color: var(--muted);
}

.product-info .brand::before {
    background: var(--brand-2);
}

.view-product-btn {
    opacity: 1;
    transform: none;
    color: var(--brand);
}

.product-info h3 {
    color: var(--ink);
    font-size: 1rem;
    -webkit-line-clamp: 3;
}

.product-card:hover .product-info h3 {
    color: var(--brand);
}

.product-info .excerpt {
    color: var(--muted);
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
}

.category-tag {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #d7e5ff;
    margin-top: 8px;
}

.article-page,
.about-page,
.article-list-item,
.article-card-featured {
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.article-page {
    /* Matches the homepage --page-max so articles and homepage feel
       like the same publication. The writer's own scoped subtitle
       rules (max-width 820px) keep the readable prose blocks narrower. */
    max-width: var(--page-max);
    margin: 28px auto;
    padding: 52px;
}

.article-header {
    text-align: left;
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.article-content {
    font-size: 1.08rem;
    line-height: 1.85;
}

.article-content h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-top: 46px;
}

.article-content img,
.article-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15,23,42,0.12);
}

.article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.articles-header,
.category-page > h1,
.category-page > .cat-count {
    text-align: left;
}

.articles-header {
    background: #0b1220;
    border-radius: 14px;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.article-list-item {
    padding: 24px;
}

.disclosure {
    background: #fff8ed;
    border-color: #fed7aa;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .site-header .container {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        align-items: flex-start;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 30px;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .lead-story {
        min-height: 390px;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-page {
        padding: 28px 22px;
    }
}

@media (max-width: 560px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        border-radius: 10px;
        min-height: 390px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .lead-story {
        min-height: 420px;
    }

    .lead-story-content {
        padding: 22px;
    }

    .story-stack.cards-pill .story-card {
        grid-template-columns: 96px 1fr;
    }

    .product-grid,
    .category-grid,
    .articles-list {
        grid-template-columns: 1fr;
    }
}

/* Targeted fixes after editorial refresh */
.main-nav .nav-dropdown-trigger::after {
    content: "" !important;
    display: none !important;
}

/* Padded contain only applies to the pill fallback. Default bleed cards
   need cover so the image fills the whole card. */
.story-stack.cards-pill .story-card img {
    object-fit: contain;
    background: #eef2f7;
    padding: 6px;
}

.articles-page .articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.articles-page .article-hero-card {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.articles-page .article-hero-images {
    position: relative;
    inset: auto;
    width: 100%;
    height: 190px;
    display: flex;
    flex-shrink: 0;
    background: #eef2f7;
}

.articles-page .article-hero-img {
    min-width: 0;
}

.articles-page .article-hero-img img {
    object-fit: cover;
}

/* Single hero-image card style — let the wide cinematic hero breathe a
   little taller than the old 3-up strip. */
.articles-page .article-hero-card.hero-single .article-hero-images {
    height: 230px;
}

.articles-page .article-hero-overlay {
    display: none;
}

.articles-page .article-hero-card .article-hero-content {
    position: static;
    width: auto;
    height: auto;
    padding: 20px;
    display: flex;
    flex: 1;
    color: var(--ink);
    background: #fff;
}

.articles-page .article-hero-card .article-date {
    color: var(--muted);
    margin-bottom: 8px;
}

.articles-page .article-hero-card h3 {
    color: var(--ink);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.22;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.articles-page .article-hero-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-page .article-hero-card .read-more {
    margin-top: auto;
    color: #fff;
    background: var(--brand);
    width: fit-content;
}

@media (max-width: 560px) {
    .articles-page .articles-list {
        grid-template-columns: 1fr;
    }

    .articles-page .article-hero-images {
        height: 210px;
    }

    .story-stack.cards-pill .story-card {
        grid-template-columns: 112px 1fr;
    }
}

/* Tasteful article commerce module */
.article-commerce-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 30px 0 34px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf2 0%, #ffffff 74%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.article-commerce-card.compact {
    margin: 22px 0;
}

.article-commerce-copy {
    min-width: 0;
}

.article-commerce-copy .commerce-label {
    display: inline-flex;
    margin-bottom: 6px;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-commerce-copy strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.3;
}

.article-commerce-copy p {
    margin: 6px 0 0 !important;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-commerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #ff9900;
    color: #111827 !important;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(255, 153, 0, 0.24);
}

.article-commerce-button:hover {
    background: var(--brand-cta);
    text-decoration: none !important;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .article-commerce-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .article-commerce-button {
        width: 100%;
    }
}

/* logo 30% bigger, header bar height unchanged */
.logo-img{max-height:104px !important;}
.site-header{padding-top:9px !important;padding-bottom:9px !important;}

/* ===== Homepage revamp: bento categories + editor's picks ===== */
.section-kicker{color:var(--brand-primary);font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:.74rem;display:block;margin-bottom:4px}
.categories,.products{margin:54px 0}
.categories .section-heading-row,.products .section-heading-row,.hubs .section-heading-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px;gap:16px}
.bento{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:150px;gap:14px}
.bento-tile{position:relative;border-radius:16px;overflow:hidden;background-size:cover;background-position:center;background-color:var(--brand-surface-dark);text-decoration:none;display:flex;align-items:flex-end;box-shadow:0 6px 18px rgba(0,0,0,.10);transition:transform .25s ease,box-shadow .25s ease}
.bento-tile.lead{grid-column:span 2;grid-row:span 2}
.bento-tile::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,10,30,.04) 0%,rgba(0,10,30,.38) 55%,rgba(0,8,25,.86) 100%);transition:background .25s}
.bento-tile:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,0,0,.22)}
.bento-tile:hover::before{background:linear-gradient(180deg,rgba(0,60,150,.18) 0%,rgba(0,20,60,.55) 55%,rgba(0,8,25,.9) 100%)}
.bento-cap{position:relative;z-index:1;padding:16px 18px;width:100%;display:flex;flex-direction:column;gap:3px}
.bento-name{color:#fff;font-weight:800;font-size:1.06rem;line-height:1.15;text-shadow:0 2px 8px rgba(0,0,0,.55)}
.bento-tile.lead .bento-name{font-size:1.7rem}
.bento-go{color:rgba(255,255,255,.92);font-size:.82rem;font-weight:700;opacity:0;transform:translateX(-6px);transition:all .25s}
.bento-tile:hover .bento-go{opacity:1;transform:translateX(0)}
@media(max-width:760px){.bento{grid-template-columns:1fr 1fr;grid-auto-rows:124px}.bento-tile.lead{grid-column:span 2;grid-row:span 1}.bento-tile.lead .bento-name{font-size:1.25rem}}
.products .product-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px}
.products .product-card{position:relative;display:block;height:230px;min-height:0;max-height:230px;border-radius:16px;overflow:hidden;background:linear-gradient(160deg,#fbfbfd 0%,#eceff3 100%);border:1px solid rgba(0,0,0,.06);box-shadow:0 6px 18px rgba(0,0,0,.08);transition:transform .25s ease,box-shadow .25s ease;text-decoration:none}
.products .product-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,0,0,.18)}
.products .product-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;padding:16px 16px 46px;transition:transform .4s ease}
.products .product-card:hover img{transform:scale(1.04)}
.products .product-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40%;background:linear-gradient(180deg,rgba(6,9,17,0) 0%,rgba(4,6,12,.45) 40%,rgba(2,3,8,.98) 100%);pointer-events:none}
.pc-overlay{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:10px 16px 14px;display:flex;flex-direction:column;gap:2px}
.pc-brand{color:rgba(255,255,255,.82);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.pc-title{color:#fff;font-size:1.02rem;line-height:1.25;margin:0;text-shadow:0 2px 8px rgba(0,0,0,.5);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-go{color:#fff;font-size:.8rem;font-weight:700;opacity:0;transform:translateX(-6px);transition:all .25s;margin-top:4px}
.products .product-card:hover .pc-go{opacity:1;transform:translateX(0)}
/* categories + editor's-picks dark bands so the white headings read + cards pop */
.categories,.products{background:linear-gradient(135deg,var(--brand-surface-dark) 0%,var(--brand-surface-dark2) 100%);padding:34px 28px;border-radius:20px}
.categories h2,.products h2,.hubs h2{color:#fff}
.categories .section-kicker,.products .section-kicker,.hubs .section-kicker{color:#5eb3ff}
.products .text-link{color:#9fd0ff}
@media(max-width:760px){.categories,.products{padding:24px 16px}}
/* trust strip -> premium feature row (replaces the plain white boxes) */
.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:40px 0;background:transparent;border:none;border-radius:0;overflow:visible}
.trust-strip>div{display:flex;align-items:center;gap:14px;background:linear-gradient(160deg,#ffffff 0%,#f3f6fb 100%);border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:18px 20px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.trust-strip>div>i{flex-shrink:0;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--brand-primary) 0%,var(--brand-primary-dark) 100%);color:#fff;font-size:1.05rem;box-shadow:0 4px 12px rgba(0,132,255,.32)}
.trust-strip strong{display:block;font-size:1rem}
.trust-strip span{display:block;color:var(--muted);margin-top:2px;font-size:.9rem}
@media(max-width:760px){.trust-strip{grid-template-columns:1fr;gap:10px}}
/* category pages reuse the homepage overlay cards */
.category-page .products{margin:18px 0 0}
