/*
Theme Name: Affiliate Platform
Theme URI: https://example.com/
Author: Project Team
Description: Custom theme for the affiliate publishing platform.
Version: 0.8.2
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: affiliate-platform
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;520;650;760;800;850&display=swap');

:root {
    --color-bg: #f6f6f6;
    --color-surface: #ffffff;
    --color-surface-muted: #eeeeee;
    --color-text: #1f1f1f;
    --color-muted: #7a7a7a;
    --color-border: #e6e6e6;
    --color-chip: #eeeeee;
    --color-accent: #222222;
    --color-accent-dark: #222222;
    --color-ink: #222222;
    --color-success: #2f7d4f;
    --color-warning: #8a6f2a;
    --font-heading: "Manrope", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow-card: 0 18px 60px rgba(16, 17, 20, .08);
    --shadow-hover: 0 24px 80px rgba(16, 17, 20, .14);
    --container: 1180px;
    --wide: 1320px;
    --article: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--color-text);
    background:
        linear-gradient(90deg, rgba(31,31,31,.035) 1px, transparent 1px) 0 0 / 96px 96px,
        var(--color-bg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent-dark); text-underline-offset: 4px; }
h1, h2, h3 {
    margin: 0 0 16px;
    color: var(--color-text);
    font-family: var(--font-heading);
    line-height: .96;
    letter-spacing: 0;
}
h1 { font-size: clamp(44px, 6.1vw, 86px); }
h2 { font-size: clamp(30px, 3.8vw, 54px); }
h3 { font-size: clamp(22px, 2.1vw, 31px); }
p { margin: 0 0 16px; }

.site-shell { width: min(100% - 40px, var(--wide)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(16,17,20,.1);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
}
.site-header__inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--color-text);
    text-decoration: none;
}
.brand-mark__number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    box-shadow: inset -4px -4px 0 rgba(255,255,255,.18);
}
.brand-mark__name { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.site-nav ul { display: flex; justify-content: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.site-nav a, .footer-nav a, .mobile-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 760;
    text-decoration: none;
}
.site-nav a:hover, .footer-nav a:hover { background: var(--color-surface-muted); }
.site-search input, .search-form input[type="search"] {
    width: 220px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 11px 15px;
    background: rgba(255,255,255,.76);
    font: inherit;
}
.search-submit { display: none; }
.header-cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--color-text);
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
}
.mobile-nav { display: none; }

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 86px 0 74px;
}
.hero-editorial {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(90deg, rgba(31,31,31,.035) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    color: var(--color-text);
}
.hero-editorial::after {
    content: "10";
    position: absolute;
    right: max(20px, calc((100vw - var(--wide)) / 2));
    bottom: -34px;
    color: rgba(31,31,31,.055);
    font-family: var(--font-heading);
    font-size: clamp(160px, 23vw, 330px);
    font-weight: 850;
    line-height: .82;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 46px;
    align-items: end;
}
.hero__copy { max-width: 840px; }
.hero h1 { color: var(--color-text); text-wrap: balance; max-width: 960px; }
.hero p { max-width: 720px; color: var(--color-muted); font-size: clamp(19px, 2vw, 25px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-scorecard {
    position: relative;
    padding: 28px;
    border: 1px solid var(--color-text);
    border-radius: 0;
    background: var(--color-surface);
    box-shadow: 0 18px 50px rgba(31,31,31,.08);
}
.hero-scorecard__number {
    display: block;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 86px;
    font-weight: 800;
    line-height: .85;
}
.hero-scorecard strong { display: block; margin-top: 14px; font-family: var(--font-heading); font-size: 24px; line-height: 1.08; }
.hero-scorecard div { display: flex; justify-content: space-between; align-items: end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.hero-scorecard b { font-family: var(--font-heading); font-size: 36px; color: var(--color-text); }

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--color-text);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text);
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.button-accent { border-color: var(--color-accent); background: var(--color-accent); color: #ffffff; }
.button-light { border-color: var(--color-text); color: var(--color-text); background: rgba(255,255,255,.46); }
.button-large { min-height: 56px; padding-inline: 24px; font-size: 17px; }
.text-link { font-weight: 850; text-decoration: none; }
.text-link::after { content: " ->"; }

.section, .content-area { padding: 68px 0; }
.section-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2 { max-width: 850px; }
.eyebrow, .card-meta {
    color: var(--color-accent-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.lead { max-width: 900px; color: var(--color-muted); font-size: clamp(20px, 2vw, 27px); line-height: 1.42; }

.featured-story {
    display: grid;
    grid-template-columns: minmax(300px,.82fr) minmax(360px,1.18fr);
    overflow: hidden;
    border: 1px solid var(--color-text);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: var(--shadow-card);
}
.featured-story__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-story__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,5vw,58px); }
.featured-story strong { margin: 10px 0 14px; font-family: var(--font-heading); font-size: clamp(32px,4.7vw,62px); line-height: .98; }
.featured-story span:last-child { max-width: 680px; color: var(--color-muted); font-size: 19px; }

.pick-grid, .card-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.pick-grid article {
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}
.pick-grid span, .rank-badge {
    display: inline-grid;
    min-width: 54px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: var(--color-text);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
}
.pick-grid strong { display: block; margin: 24px 0 10px; font-family: var(--font-heading); font-size: 28px; line-height: 1.05; }
.pick-grid p { color: var(--color-muted); }

.content-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}
.listing-card, .product-card { display: flex; min-height: 100%; flex-direction: column; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.listing-card:hover, .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.listing-card__image, .product-card__image, .listing-card__visual, .product-card__visual { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-muted); }
.listing-card__image img, .product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.listing-card__visual,
.product-card__visual {
    position: relative;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(31,31,31,.08), transparent 42%),
        linear-gradient(90deg, rgba(17,24,39,.08) 1px, transparent 1px) 0 0 / 34px 34px,
        var(--color-surface-muted);
    color: var(--color-text);
    text-decoration: none;
}
.listing-card__visual span,
.product-card__visual span {
    position: absolute;
    left: 20px;
    bottom: 10px;
    color: rgba(16,17,20,.16);
    font-family: var(--font-heading);
    font-size: clamp(70px, 9vw, 130px);
    font-weight: 800;
    line-height: .8;
}
.listing-card__visual strong,
.product-card__visual strong {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
}
.listing-card:hover img, .product-card:hover img { transform: scale(1.035); }
.listing-card > div, .product-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--color-muted); }
.card-meta span + span::before { content: "/"; margin-right: 8px; color: var(--color-border); }
.listing-card h2, .product-card h2 { font-size: clamp(24px,2.2vw,31px); }
.listing-card h2 a, .product-card h2 a { color: var(--color-text); text-decoration: none; }
.listing-card p, .product-card p { color: var(--color-muted); }
.listing-card .text-link { margin-top: auto; }
.product-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.score-badge {
    display: inline-grid;
    min-width: 58px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: #e8f7ed;
    color: var(--color-success);
    font-family: var(--font-heading);
    font-weight: 800;
}
.product-card__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }

.editorial-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    background: transparent;
}
.editorial-band > div {
    padding: clamp(24px,3vw,36px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.editorial-band strong { display: block; margin-bottom: 10px; font-family: var(--font-heading); font-size: 24px; line-height: 1.05; }
.editorial-band span { color: var(--color-muted); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: var(--color-muted); font-size: 14px; }
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.single-affiliate_article .content-area > .breadcrumbs,
.single-affiliate_product .content-area > .breadcrumbs { max-width: var(--article); margin-left: auto; margin-right: auto; }
.archive-header { max-width: 980px; margin-bottom: 30px; }
.archive-hero {
    padding: clamp(28px,5vw,48px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.76);
    box-shadow: var(--shadow-card);
}
.archive-hero--commerce { border-color: var(--color-border); }
.archive-controls { display: flex; gap: 12px; align-items: end; margin: 0 0 28px; padding: 15px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(255,255,255,.72); }
.archive-controls label { display: grid; gap: 5px; font-weight: 850; }
.archive-controls select { min-width: 220px; padding: 11px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #ffffff; font: inherit; }

.article-layout, .product-layout { max-width: var(--article); margin: 0 auto; }
.article-hero { margin-bottom: 34px; }
.article-kicker, .trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; color: var(--color-accent-dark); font-size: 13px; font-weight: 850; }
.article-kicker span, .trust-row span { padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); }
.trust-row { margin-top: 24px; color: var(--color-muted); }
.article-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.article-metrics__views,
.article-metrics button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 760;
}
.article-metrics b {
    color: var(--color-text);
    font-weight: 850;
}
.article-metrics svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.article-metrics button {
    cursor: pointer;
}
.article-metrics button:hover:not(:disabled) {
    border-color: var(--color-text);
    color: var(--color-text);
}
.article-metrics button[aria-pressed="true"] {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #ffffff;
}
.article-metrics button[aria-pressed="true"] b {
    color: #ffffff;
}
.article-metrics button:disabled {
    cursor: default;
    opacity: .78;
}
.article-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(30px,4vw,54px); align-items: end; }
.article-hero h1 { max-width: 900px; font-size: clamp(42px,4.5vw,72px); line-height: 1; text-wrap: balance; }
.article-hero figure, .product-verdict-hero figure { margin: 0; }
.article-hero img, .product-verdict-hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); object-fit: cover; }
.article-hero img { aspect-ratio: 4 / 3; }
.article-verdict-board,
.product-visual-board {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border: 1px solid var(--color-text);
    background:
        linear-gradient(135deg, rgba(31,31,31,.08), transparent 46%),
        linear-gradient(90deg, rgba(17,24,39,.08) 1px, transparent 1px) 0 0 / 38px 38px,
        var(--color-surface);
    box-shadow: var(--shadow-card);
}
.article-verdict-board span,
.product-visual-board span {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: clamp(86px, 10vw, 150px);
    font-weight: 800;
    line-height: .8;
}
.article-verdict-board strong,
.product-visual-board strong {
    margin-top: 22px;
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1.08;
}
.article-verdict-board p { max-width: 420px; color: var(--color-muted); }
.article-cover-art {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border: 1px solid var(--color-text);
    background:
        radial-gradient(circle at 76% 18%, rgba(31,31,31,.09), transparent 25%),
        radial-gradient(circle at 10% 80%, rgba(122,122,122,.12), transparent 28%),
        linear-gradient(90deg, rgba(31,31,31,.06) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(135deg, #ffffff 0%, #efefef 100%);
    box-shadow: var(--shadow-card);
}
.article-cover-art::before {
    content: "";
    position: absolute;
    inset: auto -46px -56px auto;
    width: 230px;
    height: 230px;
    border: 36px solid rgba(17,24,39,.09);
    border-radius: 50%;
}
.article-cover-art::after {
    content: "";
    position: absolute;
    top: 84px;
    right: 24px;
    width: 112px;
    height: 150px;
    border-radius: 28px;
    background: var(--color-text);
    box-shadow: -54px 44px 0 #cfcfcf, -108px 84px 0 var(--color-surface-muted);
    transform: rotate(8deg);
}
.article-cover-art__top {
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.article-cover-art__number {
    position: absolute;
    left: 24px;
    top: 58px;
    z-index: 1;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: clamp(82px, 10vw, 132px);
    font-weight: 850;
    line-height: .8;
}
.article-cover-art__cards {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    display: grid;
    gap: 8px;
}
.article-cover-art__cards span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--color-text);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}
.article-cover-art strong,
.article-cover-art p {
    display: none;
}
.article-body-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.article-sidebar { position: sticky; top: 98px; display: grid; gap: 14px; }
.sidebar-card { display: grid; gap: 9px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-card); }
.sidebar-card strong { font-family: var(--font-heading); }
.sidebar-card a { color: var(--color-muted); text-decoration: none; }
.sidebar-card--accent { background: var(--color-ink); color: #ffffff; }
.sidebar-card--accent p { color: rgba(255,255,255,.76); }
.entry-content { width: 100%; padding: clamp(32px,4vw,56px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); font-size: clamp(18px,1.22vw,20px); line-height: 1.76; box-shadow: var(--shadow-card); }
.entry-content > * { max-width: 900px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 34px; }

.product-verdict-hero { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(360px,1.1fr); gap: 34px; align-items: center; margin-bottom: 32px; }
.product-verdict-hero__content { padding: clamp(24px,4vw,42px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.product-score-panel { display: grid; gap: 14px; margin: 24px 0; padding: 20px; border-radius: var(--radius-md); background: var(--color-ink); color: #ffffff; }
.product-score-panel div { display: flex; justify-content: space-between; align-items: end; }
.product-score-panel span { color: rgba(255,255,255,.68); font-weight: 850; }
.product-score-panel strong { color: #ffffff; font-family: var(--font-heading); font-size: 56px; line-height: .85; }
.product-score-panel p { color: rgba(255,255,255,.78); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 32px; }
.quick-facts div { padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.quick-facts span { display: block; color: var(--color-muted); font-size: 13px; font-weight: 850; }
.quick-facts strong { font-family: var(--font-heading); }

.cta-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin: 28px 0;
    padding: clamp(20px,2.4vw,28px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 16px 44px rgba(31,31,31,.06);
}
.cta-box__content { min-width: 0; }
.cta-box__label {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--color-chip, #eeeeee);
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.cta-box h2 { margin-bottom: 8px; color: var(--color-text); font-size: clamp(22px,2.2vw,30px); line-height: 1.08; }
.cta-box p { max-width: 620px; margin-bottom: 0; color: var(--color-muted); font-size: 16px; line-height: 1.55; }
.cta-box .button { white-space: nowrap; }
.comparison-table, .faq-list, .related-grid, .pros-cons { margin-top: 42px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 15px; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { background: var(--color-surface-muted); font-weight: 850; }
.faq-list details { margin: 10px 0; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.faq-list summary { cursor: pointer; font-weight: 850; }
.pros-cons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pros-cons section { padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.pros-cons h2 { font-size: 28px; }
.mobile-sticky-cta { display: none; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); text-align: center; text-decoration: none; }
.empty-state { max-width: 820px; padding: clamp(30px,5vw,56px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }

.site-footer { margin-top: 70px; background: var(--color-ink); color: #ffffff; }
.site-footer__inner { display: grid; grid-template-columns: minmax(260px,.9fr) minmax(520px,1.5fr) auto; gap: 34px; align-items: start; padding: 48px 0; }
.brand-mark--footer .brand-mark__number { background: #ffffff; color: var(--color-ink); }
.brand-mark--footer .brand-mark__name { color: #ffffff; }
.footer-brand p { max-width: 360px; margin-top: 14px; color: rgba(255,255,255,.72); }
.footer-nav--columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.footer-nav--columns div { display: grid; gap: 8px; }
.footer-nav strong { margin-bottom: 6px; font-family: var(--font-heading); }
.footer-nav a { justify-content: flex-start; min-height: auto; padding: 0; color: rgba(255,255,255,.76); border-radius: 0; }
.footer-copy { color: rgba(255,255,255,.55); white-space: nowrap; }

@media (max-width: 1120px) {
    .hero__inner, .featured-story, .article-hero__grid, .product-verdict-hero { grid-template-columns: 1fr; }
    .hero-scorecard { max-width: 420px; }
    .card-grid, .product-grid, .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-body-grid { grid-template-columns: 1fr; }
    .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    h1 { font-size: 42px; }
    .site-shell { width: min(100% - 28px, var(--wide)); }
    .site-header__inner { grid-template-columns: 1fr auto; min-height: 68px; }
    .site-nav, .site-search, .header-cta { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav summary { cursor: pointer; font-weight: 850; }
    .mobile-nav nav { position: absolute; top: 64px; right: 14px; display: grid; min-width: 250px; gap: 10px; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-hover); }
    .mobile-nav input[type="search"] { width: 100%; }
    .hero { min-height: 620px; padding: 64px 0 44px; }
    .section, .content-area { padding: 44px 0; }
    .section-heading { display: block; }
    .card-grid, .product-grid, .pick-grid, .editorial-band, .quick-facts, .pros-cons, .cta-box, .article-sidebar, .footer-nav--columns { grid-template-columns: 1fr; }
    .archive-controls { flex-direction: column; align-items: stretch; }
    .entry-content { padding: 24px; }
    .entry-content > * { max-width: none; }
    .mobile-sticky-cta { position: sticky; bottom: 14px; z-index: 40; display: flex; justify-content: center; width: min(100% - 28px, 420px); min-height: 54px; align-items: center; margin: 26px auto 0; border-radius: 999px; background: var(--color-accent); color: #ffffff; font-weight: 850; text-decoration: none; box-shadow: var(--shadow-hover); }
}

@media (max-width: 560px) {
    body { font-size: 15px; }
    .brand-mark__number { width: 42px; height: 42px; font-size: 19px; }
    .brand-mark__name { font-size: 20px; }
    .hero p, .lead { font-size: 18px; }
    .hero__actions, .product-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .featured-story__body, .archive-hero, .product-verdict-hero__content { padding: 24px; }
    .listing-card > div, .product-card__body { padding: 19px; }
}
