/* ========================================================================
   bestcamsites2026.com — Wirecutter-style review site
   Mobile-first, vanilla CSS, no frameworks. ~12KB minified.
   ======================================================================== */

/* === CSS Reset (modern minimal) === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: #0a4d8c; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #c8102e; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* === CSS Variables === */
:root {
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-text-faint: #888;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f7f5;
    --color-bg-card: #ffffff;
    --color-border: #e5e5e0;
    --color-border-strong: #c8c8c0;
    --color-link: #0a4d8c;
    --color-accent: #c8102e;
    --color-accent-soft: #fff0f3;
    --color-success: #1a7a3a;
    --color-warn: #b07000;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    --radius: 6px;
    --max-width: 720px;
    --max-width-wide: 1100px;
}

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* === Age Gate Modal === */
.age-gate {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.age-gate-box {
    background: #fff;
    max-width: 460px;
    width: 100%;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}
.age-gate-box h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.age-gate-box p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.age-gate-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.age-gate-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s;
}
.age-gate-btn-yes {
    background: var(--color-accent);
    color: #fff;
}
.age-gate-btn-yes:hover { background: #a00d24; color: #fff; }
.age-gate-btn-no {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.age-gate-btn-no:hover { background: var(--color-border); color: var(--color-text); }

/* === Top Disclosure Bar === */
.disclosure-bar {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}
.disclosure-bar a { color: var(--color-text-muted); }

/* === Header === */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1.25rem;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}
.site-logo {
    font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--color-text); text-decoration: none;
    display: flex; align-items: center; gap: 0.4rem;
}
.site-logo:hover { color: var(--color-text); }
.site-logo-mark {
    width: 28px; height: 28px;
    background: var(--color-accent); color: #fff;
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 800;
}
.site-nav { display: none; }
.site-nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 4px;
}
.site-nav-toggle svg { width: 22px; height: 22px; stroke: var(--color-text); stroke-width: 2; }

@media (min-width: 768px) {
    .site-nav { display: flex; gap: 1.75rem; align-items: center; }
    .site-nav a {
        text-decoration: none; color: var(--color-text); font-size: 0.95rem; font-weight: 500;
        padding: 0.4rem 0;
    }
    .site-nav a:hover { color: var(--color-accent); }
    .site-nav-toggle { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block; padding: 0.75rem 0;
    color: var(--color-text); text-decoration: none; font-weight: 500;
    border-bottom: 1px solid var(--color-bg-alt);
}
.mobile-menu a:last-child { border-bottom: none; }

/* === Hero / Breadcrumbs === */
.breadcrumbs {
    padding: 1rem 0 0.25rem;
    font-size: 0.85rem; color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs span { margin: 0 0.5rem; color: var(--color-text-faint); }

/* === Article Header === */
.article-header { padding: 1rem 0 2rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; }
.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    font-weight: 800;
}
.article-meta {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.88rem; color: var(--color-text-muted);
    flex-wrap: wrap;
}
.article-meta-author { display: flex; align-items: center; gap: 0.5rem; }
.article-meta-author-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #4a5fd6, #c8102e);
    color: #fff; font-weight: 700; font-size: 0.78rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.article-meta strong { color: var(--color-text); font-weight: 600; }
.article-meta-divider { color: var(--color-border-strong); }

/* === Article Content === */
.article-content { padding-bottom: 3rem; }
.article-content > * { margin-bottom: 1.25rem; }
.article-content h2 {
    font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem;
    font-weight: 700; letter-spacing: -0.01em;
    padding-top: 0.5rem;
}
.article-content h3 {
    font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem;
    font-weight: 700;
}
.article-content h4 {
    font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.5rem;
    font-weight: 600;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.6; }

/* === BLUF / Lede === */
.lede {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--color-text);
    border-left: 3px solid var(--color-accent);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin-bottom: 2rem;
    background: var(--color-bg-alt);
    border-radius: 0 4px 4px 0;
    padding: 1rem 1.25rem;
}
.lede strong { font-weight: 700; }

/* === Comparison Table === */
.compare-table-wrap {
    overflow-x: auto;
    margin: 2rem -0.5rem;
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.compare-table thead { background: var(--color-bg-alt); }
.compare-table th, .compare-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.compare-table th {
    font-weight: 600; font-size: 0.82rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--color-text-muted);
}
.compare-table tbody tr:hover { background: var(--color-bg-alt); }
.compare-table .platform-name { font-weight: 700; }
.compare-table .badge {
    display: inline-block; padding: 2px 8px; border-radius: 12px;
    font-size: 0.72rem; font-weight: 600;
    background: var(--color-bg-alt); color: var(--color-text-muted);
}
.compare-table .badge-best {
    background: var(--color-accent); color: #fff;
}
.compare-table .rank-1 { background: var(--color-accent-soft); }

/* === Review Card === */
.review-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
}
.review-card.is-top {
    border-color: var(--color-accent);
    border-width: 2px;
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, #fff 0%, #fffafb 100%);
}
.review-card-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.review-card-title {
    display: flex; align-items: baseline; gap: 0.6rem;
}
.review-rank {
    font-size: 1.4rem; font-weight: 800; color: var(--color-accent);
    background: var(--color-accent-soft);
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; flex-shrink: 0;
}
.review-card-name {
    font-size: 1.35rem; font-weight: 700; margin: 0;
    line-height: 1.2;
}
.review-card-tagline {
    color: var(--color-text-muted); font-size: 0.92rem;
    margin-top: 0.2rem;
}
.review-cta {
    background: var(--color-accent);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.15s;
}
.review-cta:hover { background: #a00d24; color: #fff; }
.review-cta-secondary {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
}
.review-cta-secondary:hover { background: var(--color-bg-alt); color: var(--color-text); }
.review-rating {
    display: flex; align-items: center; gap: 0.3rem;
    margin-bottom: 0.75rem;
}
.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
.review-rating-num {
    font-weight: 700; color: var(--color-text);
    font-size: 0.95rem;
}
.review-rating-label {
    color: var(--color-text-muted); font-size: 0.85rem;
}
.review-card-body p {
    color: var(--color-text); line-height: 1.6;
    margin-bottom: 0.85rem;
}
.review-keyfacts {
    background: var(--color-bg-alt);
    padding: 0.85rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.review-keyfacts dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem 1rem;
}
@media (min-width: 600px) { .review-keyfacts dl { grid-template-columns: max-content 1fr; } }
.review-keyfacts dt {
    font-weight: 600; color: var(--color-text-muted);
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.review-keyfacts dd { color: var(--color-text); margin-left: 0; }
.pros-cons {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
    margin: 1rem 0;
}
@media (min-width: 600px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros, .cons {
    padding: 1rem; border-radius: 6px;
}
.pros { background: #f0f9f3; border-left: 3px solid var(--color-success); }
.cons { background: #fff8ec; border-left: 3px solid var(--color-warn); }
.pros h4, .cons h4 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.pros h4 { color: var(--color-success); }
.cons h4 { color: var(--color-warn); }
.pros ul, .cons ul {
    margin: 0; padding-left: 1.2rem; font-size: 0.92rem;
}
.pros li, .cons li { margin-bottom: 0.3rem; line-height: 1.5; }

/* === Methodology Box === */
.methodology {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.methodology h3 {
    margin-top: 0 !important;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.methodology p { font-size: 0.94rem; color: var(--color-text-muted); }

/* === FAQ Accordion === */
.faq-list { margin: 1.5rem 0; }
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}
.faq-q {
    width: 100%; text-align: left;
    padding: 1rem 0;
    font-size: 1.05rem; font-weight: 600;
    color: var(--color-text);
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.faq-q::after {
    content: "+";
    font-size: 1.5rem; font-weight: 400; color: var(--color-text-muted);
    transition: transform 0.2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
    padding: 0 0 1.25rem;
    color: var(--color-text); line-height: 1.65;
}
.faq-a p { margin-bottom: 0.75rem; }

/* === Author Bio === */
.author-bio {
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    padding: 1.5rem 0;
    margin: 3rem 0 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start;
}
.author-bio-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #4a5fd6, #c8102e);
    color: #fff; font-weight: 700; font-size: 1.4rem;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.author-bio-text { flex: 1; }
.author-bio-name {
    font-weight: 700; font-size: 1.05rem; margin-bottom: 0.2rem;
}
.author-bio-title {
    font-size: 0.88rem; color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.author-bio-desc {
    font-size: 0.92rem; color: var(--color-text); line-height: 1.55;
}

/* === Footer === */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 2.5rem 0 1.5rem;
    font-size: 0.92rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand-mark {
    font-size: 1.2rem; font-weight: 800;
    color: #fff; margin-bottom: 0.5rem;
}
.footer-brand-tagline {
    color: #999; font-size: 0.9rem; margin-bottom: 1rem;
    line-height: 1.5;
}
.footer-col h4 {
    color: #fff; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 0.75rem; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    color: #ccc; text-decoration: none; font-size: 0.9rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #888; font-size: 0.82rem;
    max-width: var(--max-width-wide);
    margin-left: auto; margin-right: auto;
    padding-left: 1.25rem; padding-right: 1.25rem;
}
.footer-bottom a { color: #999; }

/* === Disclosures Box (in articles) === */
.affiliate-disclosure {
    background: #fffaeb;
    border: 1px solid #f0d68a;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #6b4f00;
}
.affiliate-disclosure strong { color: #4a3500; }

/* === Cards (homepage) === */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}
@media (min-width: 600px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card a { color: inherit; text-decoration: none; }
.card-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f0f0ec, #e0e0d8);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-faint);
    font-size: 0.85rem;
}
.card-body { padding: 1rem 1.15rem 1.25rem; }
.card-tag {
    display: inline-block;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    padding: 2px 8px; border-radius: 4px;
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1.1rem; font-weight: 700;
    line-height: 1.3; margin-bottom: 0.5rem;
}
.card-excerpt {
    color: var(--color-text-muted); font-size: 0.9rem;
    line-height: 1.5;
}

/* === Hero (homepage only) === */
.hero {
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800; letter-spacing: -0.02em;
    line-height: 1.1; margin-bottom: 1rem;
    max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero p {
    font-size: 1.1rem; color: var(--color-text-muted);
    max-width: 600px; margin: 0 auto 1.5rem;
}
.hero-trust {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--color-bg-alt);
    padding: 0.4rem 1rem; border-radius: 100px;
    font-size: 0.85rem; color: var(--color-text-muted);
}

/* === Sections === */
.section {
    padding: 1rem 0 2.5rem;
}
.section-title {
    font-size: 1.5rem; font-weight: 700;
    margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.section-subtitle {
    color: var(--color-text-muted); font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* === Utilities === */
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.small { font-size: 0.88rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

/* === Print === */
@media print {
    .site-header, .site-footer, .age-gate, .disclosure-bar { display: none; }
    body { font-size: 12pt; }
    a { text-decoration: none; color: #000; }
}
