/*
Theme Name: StackCapybara v2
Description: Lightweight custom theme for StackCapybara.com - Field Guide / Stack Lab aesthetic.
Author: Antigravity
Version: 0.2.5
*/

:root {
    /* Colors */
    --sc-color-bg-dark: #121416;     /* Lab Charcoal */
    --sc-color-bg-light: #FAFAFA;    /* Editorial Paper */
    --sc-color-accent-green: #2E7D32; /* Warm Operator Green */
    --sc-color-accent-amber: #FFB300; /* Field Guide Amber */
    --sc-color-text-dark: #1A1A1A;
    --sc-color-text-light: #F0F0F0;
    --sc-color-text-dim: #A0A0A0;
    --sc-color-border: #E0E0E0;
    --sc-color-error: #D32F2F;

    /* Typography */
    --sc-font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --sc-font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Spacing */
    --sc-space-xs: 0.25rem;
    --sc-space-s: 0.5rem;
    --sc-space-m: 1.5rem;
    --sc-space-l: 3rem;
    --sc-space-xl: 5rem;

    /* Layout */
    --sc-max-width: 1100px;
    --sc-radius: 4px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--sc-color-bg-light);
    color: var(--sc-color-text-dark);
    font-family: var(--sc-font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sc-font-heading);
    line-height: 1.2;
}
a { color: var(--sc-color-accent-green); text-decoration: none; }
a:hover { text-decoration: underline; }

.sc-container {
    max-width: var(--sc-max-width);
    margin: 0 auto;
    padding: 0 var(--sc-space-m);
}

/* Breadcrumb */
.sc-breadcrumb {
    font-size: 0.75rem;
    color: var(--sc-color-text-dim);
    margin-bottom: var(--sc-space-m);
    letter-spacing: 0.02em;
}
.sc-breadcrumb a { color: var(--sc-color-text-dim); }
.sc-breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* Branded Eyebrow Pill */
.sc-eyebrow-pill {
    display: inline-block;
    background-color: var(--sc-color-accent-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: var(--sc-space-s);
}

/* Tool Hero */
.sc-hero-lab {
    background-color: var(--sc-color-bg-dark);
    color: var(--sc-color-text-light);
    padding: var(--sc-space-m) 0 var(--sc-space-m);
}
.sc-hero-content {
    display: flex;
    flex-direction: column;
}
.sc-hero-meta {
    font-size: 0.9rem;
    color: var(--sc-color-text-dim);
    display: flex;
    align-items: center;
    gap: var(--sc-space-s);
    margin-bottom: var(--sc-space-s);
}
.sc-hero-title {
    font-size: 3rem;
    margin-bottom: var(--sc-space-s);
    letter-spacing: -0.02em;
}
.sc-hero-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--sc-space-m);
}
.sc-hero-meta-secondary {
    font-size: 0.9rem;
    color: var(--sc-color-text-dim);
    display: flex;
    gap: var(--sc-space-s);
    align-items: center;
    flex-wrap: wrap;
}
.sc-nowrap { white-space: nowrap; }

.sc-hero-cta-wrap {
    margin-top: var(--sc-space-m);
}
.sc-btn-primary {
    background-color: var(--sc-color-accent-green);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: var(--sc-radius);
    display: inline-block;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 1.1rem;
    transition: transform 0.1s ease;
}
.sc-btn-primary:hover {
    background-color: #246628;
    transform: translateY(-2px);
}
.sc-disclosure {
    font-size: 13px !important; /* Final hardening */
    color: var(--sc-color-text-dim);
    margin-top: 0.75rem;
    opacity: 0.8;
}

/* Layout Grid */
.sc-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sc-space-l);
    align-items: start;
}

/* Editorial Content Wrapper */
.sc-editorial-wrap {
    background-color: var(--sc-color-bg-light);
    padding: 1rem 0 var(--sc-space-xl);
}

/* Editorial Sections */
.sc-editorial-section {
    margin-bottom: var(--sc-space-l);
}
.sc-editorial-section h2, .sc-editorial-section h3 {
    margin-bottom: var(--sc-space-m);
    color: var(--sc-color-text-dark);
}
.sc-list {
    list-style: none;
}
.sc-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.sc-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--sc-color-accent-green);
    font-weight: bold;
}
.sc-list-pros li::before { content: "✓"; color: #2E7D32; }
.sc-list-cons li::before { content: "×"; color: #D32F2F; }

.sc-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sc-space-m);
}

/* Sidebar Styles */
.sc-sidebar-sticky {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* ~24px gap for clean rhythm */
}
.sc-sidebar-card {
    background: white;
    border: 1px solid var(--sc-color-border);
    padding: var(--sc-space-m);
    border-radius: var(--sc-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sc-sidebar-rating {
    text-align: center;
}
.sc-rating-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sc-color-accent-green);
    line-height: 1;
}
.sc-rating-label {
    font-size: 0.8rem;
    color: var(--sc-color-text-dim);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}
.sc-rating-caption {
    font-size: 0.7rem;
    color: var(--sc-color-text-dim);
    margin-top: 0.5rem;
    display: block;
}
.sc-sidebar-cta .sc-btn-primary {
    width: 100%;
    text-align: center;
}
.sc-sidebar-cta-note {
    font-size: 0.75rem;
    color: var(--sc-color-text-dim);
    margin-top: 0.5rem;
    text-align: center;
}
.sc-sidebar-facts {
    list-style: none;
}
.sc-sidebar-facts li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.sc-sidebar-facts li:last-child { border-bottom: none; }
.sc-sidebar-facts strong { color: var(--sc-color-text-dark); }

/* Responsive */
@media (min-width: 1024px) {
    .sc-layout-grid {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 768px) {
    .sc-hero-title { font-size: 2.2rem; }
    .sc-btn-primary { width: 100%; text-align: center; }
    .sc-pros-cons-grid { grid-template-columns: 1fr; }
    .sc-hero-meta-secondary { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .sc-hero-meta-secondary .sc-separator { display: none; }
    
    .sc-editorial-wrap { padding-top: 1rem; }
    .sc-editorial-section { margin-bottom: 1.5rem; } /* ~24px spacing on mobile */
}


/* ============================================================
   HOMEPAGE COLOR SYSTEM (added: StackCapybara homepage v1)
   ============================================================ */
:root {
    --hp-bg:               #0B1020;
    --hp-surface:          #111827;
    --hp-surface-2:        #162033;
    --hp-card:             #0F172A;
    --hp-text:             #F8FAFC;
    --hp-text-muted:       #94A3B8;
    --hp-border:           rgba(148, 163, 184, 0.18);
    --hp-accent-primary:   #38BDF8;
    --hp-accent-secondary: #22C55E;
    --hp-accent-warm:      #F59E0B;
    --hp-bg-light:         #F8FAFC;
    --hp-text-light:       #0F172A;
}

/* ============================================================
   SITE HEADER / FOOTER BASE
   ============================================================ */
.sc-site-header {
    padding: 1rem 0;
}

.sc-logo {
    font-family: var(--sc-font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.sc-site-footer {
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* ============================================================
   HOMEPAGE DARK SHELL (body.home = front page, show_on_front=posts)
   ============================================================ */
body.home {
    background-color: var(--hp-bg);
    color: var(--hp-text);
}

body.home .sc-site-header {
    background-color: var(--hp-surface);
    border-bottom: 1px solid var(--hp-border);
}

body.home .sc-logo {
    color: var(--hp-text);
}

body.home .sc-site-footer {
    background-color: var(--hp-surface);
    border-top: 1px solid var(--hp-border);
    color: var(--hp-text-muted);
}

/* ============================================================
   HERO
   ============================================================ */
.sc-hp-hero {
    background-color: var(--hp-bg);
    padding: 5rem 0 4rem;
    text-align: center;
}

.sc-hp-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.sc-hp-hero__h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--hp-text);
    margin-bottom: 1.25rem;
}

.sc-hp-hero__sub {
    font-size: 1.15rem;
    color: var(--hp-text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sc-hp-hero__cta-wrap {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.sc-hp-btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: opacity 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.sc-hp-btn--primary {
    background-color: var(--hp-accent-primary);
    color: #0B1020 !important;
}

.sc-hp-btn--secondary {
    background-color: transparent;
    color: var(--hp-text) !important;
    border: 1px solid var(--hp-border);
}

.sc-hp-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.sc-hp-hero__status {
    font-size: 0.8rem;
    color: var(--hp-text-muted);
    opacity: 0.75;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.sc-hp-section {
    padding: 4rem 0;
}

.sc-hp-section--surface  { background-color: var(--hp-surface); }
.sc-hp-section--surface2 { background-color: var(--hp-surface-2); }
.sc-hp-section--dark     { background-color: var(--hp-bg); }

.sc-hp-section--light {
    background-color: var(--hp-bg-light);
    color: var(--hp-text-light);
}

.sc-hp-section__heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--hp-text);
    letter-spacing: -0.02em;
}

.sc-hp-section--light .sc-hp-section__heading {
    color: var(--hp-text-light);
}

/* ============================================================
   CARD GRID
   ============================================================ */
.sc-hp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sc-hp-card-grid--single {
    grid-template-columns: 1fr;
    max-width: 480px;
}

/* ============================================================
   CARDS
   ============================================================ */
.sc-hp-card {
    background-color: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sc-hp-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--hp-accent-primary);
}

.sc-hp-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hp-text);
    line-height: 1.3;
}

.sc-hp-card__desc {
    font-size: 0.9rem;
    color: var(--hp-text-muted);
    line-height: 1.55;
    flex-grow: 1;
}

.sc-hp-card__link {
    font-size: 0.85rem;
    color: var(--hp-accent-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.25rem;
    display: inline-block;
}

.sc-hp-card__link:hover { text-decoration: underline; }

.sc-hp-card__link--muted {
    color: var(--hp-text-muted);
    font-weight: 400;
}

.sc-hp-card--lab {
    border-left: 3px solid var(--hp-accent-warm);
}

.sc-hp-card__lab-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--hp-accent-warm);
    background-color: rgba(245, 158, 11, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
}

/* ============================================================
   EDITORIAL PROMISE
   ============================================================ */
.sc-hp-promise {
    max-width: 560px;
}

.sc-hp-promise__heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--hp-text-light);
}

.sc-hp-promise__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sc-hp-promise__list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.sc-hp-promise__list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--hp-accent-secondary);
    font-weight: 700;
}

/* ============================================================
   HOMEPAGE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .sc-hp-hero {
        padding: 3rem 0 2.5rem;
    }

    .sc-hp-hero__h1 {
        font-size: 2.1rem;
    }

    .sc-hp-hero__sub {
        font-size: 1rem;
    }

    .sc-hp-hero__cta-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .sc-hp-btn {
        width: 100%;
        text-align: center;
    }

    .sc-hp-section {
        padding: 2.5rem 0;
    }

    .sc-hp-card-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   SITE HEADER / NAV (nav polish added: StackCapybara nav v1)
   ============================================================ */
.sc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Light (non-home) header border */
body:not(.home) .sc-site-header {
    background-color: var(--sc-color-bg-light);
    border-bottom: 1px solid var(--sc-color-border);
}

.sc-nav__list {
    list-style: none;
    display: flex;
    gap: 0.15rem;
    flex-wrap: wrap;
    align-items: center;
}

.sc-nav__link {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sc-color-text-dim);
    border-radius: 4px;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.sc-nav__link:hover {
    color: var(--sc-color-text-dark);
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

/* Dark nav overrides (homepage) */
body.home .sc-nav__link {
    color: var(--hp-text-muted);
}

body.home .sc-nav__link:hover {
    color: var(--hp-text);
    background-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

/* ============================================================
   SITE FOOTER NAV
   ============================================================ */
.sc-footer-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin-bottom: 0.75rem;
}

.sc-footer-nav__list a {
    font-size: 0.85rem;
    color: var(--sc-color-text-dim);
    text-decoration: none;
}

.sc-footer-nav__list a:hover {
    text-decoration: underline;
}

.sc-footer-contact {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.sc-footer-contact a {
    color: var(--sc-color-text-dim);
    text-decoration: none;
}

.sc-footer-contact a:hover {
    text-decoration: underline;
}

.sc-footer-copy {
    font-size: 0.8rem;
    color: var(--sc-color-text-dim);
}

/* Dark footer overrides (homepage) */
body.home .sc-footer-nav__list a,
body.home .sc-footer-contact a,
body.home .sc-footer-copy {
    color: var(--hp-text-muted);
}

/* ============================================================
   NAV + FOOTER RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .sc-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .sc-nav__link {
        font-size: 0.82rem;
        padding: 0.25rem 0.5rem;
    }

    .sc-footer-nav__list {
        gap: 0.4rem 1rem;
    }
}


/* ============================================================
   ARTICLE / PAGE TEMPLATES  (added: article polish v1)
   ============================================================ */

/* Page-level main padding */
.sc-main {
    padding: 3rem 0 4rem;
}

/* ---- Article (single post) ---- */
.sc-article-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.sc-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sc-color-border);
}

.sc-article-meta__cat {
    display: inline-block;
    background-color: var(--sc-color-accent-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.sc-article-header__title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--sc-color-text-dark);
    margin-bottom: 0.75rem;
}

.sc-article-meta {
    font-size: 0.82rem;
    color: var(--sc-color-text-dim);
    margin: 0;
}

/* Article body typography */
.sc-article-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sc-color-text-dark);
}

.sc-article-body > * + * {
    margin-top: 1.25rem;
}

.sc-article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sc-color-text-dark);
    margin-top: 2.75rem;
    margin-bottom: 0.75rem;
    padding-top: 0.25rem;
}

.sc-article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sc-color-text-dark);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.sc-article-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sc-color-text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.35rem;
}

.sc-article-body p {
    margin-bottom: 1.25rem;
}

/* Lists in article content get visible bullets/numbers */
.sc-article-body ul,
.sc-article-body ol {
    padding-left: 1.6rem;
    margin-bottom: 1.25rem;
}

.sc-article-body ul {
    list-style: disc;
}

.sc-article-body ol {
    list-style: decimal;
}

.sc-article-body li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

/* Nested lists */
.sc-article-body li > ul,
.sc-article-body li > ol {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.sc-article-body a {
    color: var(--sc-color-accent-green);
    text-decoration: underline;
    text-decoration-color: rgba(46, 125, 50, 0.35);
    text-underline-offset: 2px;
}

.sc-article-body a:hover {
    text-decoration-color: var(--sc-color-accent-green);
}

.sc-article-body strong {
    font-weight: 700;
    color: var(--sc-color-text-dark);
}

.sc-article-body code {
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Fira Mono', Consolas, monospace;
}

.sc-article-body blockquote {
    border-left: 3px solid var(--sc-color-accent-green);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #444;
}

/* Affiliate disclosure block */
.sc-article-body .sc-affiliate-disclosure {
    background-color: #f0f7f0;
    border-left: 3px solid var(--sc-color-accent-green);
    padding: 0.85rem 1rem;
    border-radius: 0 var(--sc-radius) var(--sc-radius) 0;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 1.75rem;
    line-height: 1.55;
}

/* Responsive tables — display:block + overflow-x prevents mobile overflow */
.sc-article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    border: 1px solid var(--sc-color-border);
    border-radius: var(--sc-radius);
    font-size: 0.875rem;
    margin: 1.75rem 0;
    line-height: 1.45;
}

.sc-article-body thead {
    background-color: #f8f9fa;
}

.sc-article-body th {
    padding: 0.65rem 0.9rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sc-color-text-dim);
    border-bottom: 1px solid var(--sc-color-border);
    white-space: nowrap;
}

.sc-article-body td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.sc-article-body tr:last-child td {
    border-bottom: none;
}

.sc-article-body tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* ---- Page template (trust pages) ---- */
.sc-page-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.sc-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--sc-color-border);
}

.sc-page-header__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--sc-color-text-dark);
}

.sc-page-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sc-color-text-dark);
}

.sc-page-body > * + * { margin-top: 1.25rem; }

.sc-page-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.6rem;
    color: var(--sc-color-text-dark);
}

.sc-page-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.4rem;
    color: var(--sc-color-text-dark);
}

.sc-page-body p { margin-bottom: 1.25rem; }

.sc-page-body ul,
.sc-page-body ol {
    padding-left: 1.6rem;
    margin-bottom: 1.25rem;
}

.sc-page-body ul { list-style: disc; }
.sc-page-body ol { list-style: decimal; }
.sc-page-body li { margin-bottom: 0.4rem; }

.sc-page-body a {
    color: var(--sc-color-accent-green);
    text-decoration: underline;
    text-decoration-color: rgba(46, 125, 50, 0.35);
    text-underline-offset: 2px;
}

.sc-page-body a:hover {
    text-decoration-color: var(--sc-color-accent-green);
}

/* ---- Published card status badge ---- */
.sc-hp-card__status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hp-accent-secondary);
}

/* ---- Article responsive ---- */
@media (max-width: 768px) {
    .sc-main { padding: 2rem 0 3rem; }

    .sc-article-header__title { font-size: 1.75rem; }
    .sc-page-header__title    { font-size: 1.6rem; }
    .sc-article-body h2       { font-size: 1.3rem; margin-top: 2rem; }
    .sc-article-body h3       { font-size: 1.05rem; }
    .sc-article-body          { font-size: 0.95rem; }
    .sc-article-body table    { font-size: 0.82rem; }
    .sc-article-body th,
    .sc-article-body td       { padding: 0.5rem 0.65rem; }
}


/* ============================================================
   DARK SHELL — POSTS AND PAGES  (dark article theme v1)
   Uses same palette as body.home so the site feels cohesive.
   ============================================================ */

/* Body background */
body.single,
body.page {
    background-color: var(--hp-bg);
    color: var(--hp-text);
}

/* Header: override the light default set by body:not(.home) */
body.single .sc-site-header,
body.page   .sc-site-header {
    background-color: var(--hp-surface);
    border-bottom: 1px solid var(--hp-border);
}

body.single .sc-logo,
body.page   .sc-logo {
    color: var(--hp-text);
}

/* Nav links */
body.single .sc-nav__link,
body.page   .sc-nav__link {
    color: var(--hp-text-muted);
}

body.single .sc-nav__link:hover,
body.page   .sc-nav__link:hover {
    color: var(--hp-text);
    background-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

/* Footer */
body.single .sc-site-footer,
body.page   .sc-site-footer {
    background-color: var(--hp-surface);
    border-top: 1px solid var(--hp-border);
    color: var(--hp-text-muted);
}

body.single .sc-footer-nav__list a,
body.page   .sc-footer-nav__list a,
body.single .sc-footer-contact a,
body.page   .sc-footer-contact a,
body.single .sc-footer-copy,
body.page   .sc-footer-copy {
    color: var(--hp-text-muted);
}

/* ---- Article content area ---- */

/* Surface card for the article: slightly lifted from body background */
body.single .sc-article-wrap {
    background-color: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 2.5rem;
}

body.single .sc-article-header {
    border-bottom-color: var(--hp-border);
}

body.single .sc-article-meta__cat {
    background-color: var(--hp-accent-primary);
    color: #0B1020;
}

body.single .sc-article-header__title {
    color: var(--hp-text);
}

body.single .sc-article-meta {
    color: var(--hp-text-muted);
}

body.single .sc-article-body {
    color: var(--hp-text);
}

body.single .sc-article-body h2,
body.single .sc-article-body h3,
body.single .sc-article-body h4 {
    color: var(--hp-text);
}

body.single .sc-article-body p {
    color: var(--hp-text);
}

body.single .sc-article-body strong {
    color: var(--hp-text);
}

body.single .sc-article-body a {
    color: var(--hp-accent-primary);
    text-decoration-color: rgba(56, 189, 248, 0.35);
}

body.single .sc-article-body a:hover {
    text-decoration-color: var(--hp-accent-primary);
}

body.single .sc-article-body ul,
body.single .sc-article-body ol {
    color: var(--hp-text);
}

body.single .sc-article-body code {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--hp-accent-primary);
}

body.single .sc-article-body blockquote {
    background-color: var(--hp-card);
    border-left-color: var(--hp-accent-primary);
    color: var(--hp-text-muted);
    font-style: italic;
}

/* Disclosure box: teal-tinted on dark */
body.single .sc-article-body .sc-affiliate-disclosure {
    background-color: rgba(56, 189, 248, 0.07);
    border-left-color: var(--hp-accent-primary);
    color: var(--hp-text-muted);
}

/* Tables on dark */
body.single .sc-article-body table {
    border-color: var(--hp-border);
}

body.single .sc-article-body thead {
    background-color: var(--hp-card);
}

body.single .sc-article-body th {
    color: var(--hp-text-muted);
    border-bottom-color: var(--hp-border);
}

body.single .sc-article-body td {
    color: var(--hp-text);
    border-bottom-color: var(--hp-border);
}

body.single .sc-article-body tr:last-child td {
    border-bottom: none;
}

body.single .sc-article-body tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* ---- Page content area ---- */

/* Surface card for the page content */
body.page .sc-page-wrap {
    background-color: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 2.5rem;
}

body.page .sc-page-header {
    border-bottom-color: var(--hp-border);
}

body.page .sc-page-header__title {
    color: var(--hp-text);
}

body.page .sc-page-body {
    color: var(--hp-text);
}

body.page .sc-page-body h2,
body.page .sc-page-body h3 {
    color: var(--hp-text);
}

body.page .sc-page-body p,
body.page .sc-page-body li {
    color: var(--hp-text);
}

body.page .sc-page-body a {
    color: var(--hp-accent-primary);
    text-decoration-color: rgba(56, 189, 248, 0.35);
}

body.page .sc-page-body a:hover {
    text-decoration-color: var(--hp-accent-primary);
}

/* ---- Dark shell responsive ---- */
@media (max-width: 768px) {
    body.single .sc-article-wrap,
    body.page   .sc-page-wrap {
        padding: 1.5rem 1.25rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
