/* Shared styles for DYCO DRIVES blog articles.
   Extracted from the original inline article template so new posts stay
   consistent and lean (one cached stylesheet instead of inline copies). */
:root {
    --accent: #1e40af;
    --accent-light: #3b82f6;
    --green: #059669;
    --text: #0f172a;
    --text-light: #475569;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Header — premium dark treatment (design layer) */
.article-hero {
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
    color: white;
    padding: 4.5rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.article-hero::before {
    content: '';
    position: absolute;
    top: -180px; right: -100px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,.18) 0%, rgba(96,165,250,0) 68%);
    pointer-events: none;
}
.article-hero::after {
    content: '';
    position: absolute;
    bottom: -160px; left: -120px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,211,153,.08) 0%, rgba(52,211,153,0) 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.category-tag {
    display: inline-block;
    background: rgba(96,165,250,0.12);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(96,165,250,0.3);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Main Content */
.article-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article-body {
    background: var(--bg);
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--text-light);
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.highlight {
    background: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    overflow: hidden;
}

table th {
    background: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

table tr:hover {
    background: rgba(30, 64, 175, 0.02);
}

.manufacturer-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.manufacturer-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid var(--accent);
}

.manufacturer-card strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.manufacturer-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pro-con-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.pro {
    color: var(--green);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.con {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Sources Section */
.sources-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.sources-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.sources-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sources-list li {
    color: var(--text-light);
    line-height: 1.6;
}

.sources-list a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* Related Articles */
.related-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.related-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.related-links a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    color: var(--accent);
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background 0.2s;
}

.back-link:hover {
    background: var(--border);
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-body {
        padding: 1.5rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .manufacturer-list {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.85rem;
    }

    table th, table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Inline data-viz charts (added with the China-factor series) */
.article-chart {
    margin: 2rem 0;
}

.article-chart svg {
    width: 100%;
    height: auto;
    display: block;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.25rem;
}

.article-chart figcaption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}

/* ============================================================
   DARK BODY (design layer) — matches the site-wide handoff dark
   theme. Overrides the light article body so the blog reads as
   part of the same dark site. Mirrored into inline-styled
   articles via an injected <style> (marker: dyco-dark-body).
   ============================================================ */
body { background: #0a0a0f !important; color: rgba(255,255,255,.82) !important; }
.article-body { background: #13131f !important; border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 20px 60px rgba(0,0,0,.4) !important; }
.article-body h2 { color: #fff !important; border-bottom-color: rgba(96,165,250,.45) !important; }
.article-body h3 { color: rgba(255,255,255,.92) !important; }
.article-body p, .article-body li, .article-body ul, .article-body ol { color: rgba(255,255,255,.7) !important; }
.article-body strong { color: rgba(255,255,255,.92); }
.article-body a { color: #60a5fa !important; }
.highlight { background: rgba(251,191,36,.18) !important; color: #fde68a !important; }
table { border-color: rgba(255,255,255,.1) !important; }
table th { background: rgba(255,255,255,.04) !important; color: #93c5fd !important; border-bottom-color: rgba(255,255,255,.12) !important; }
table td { color: rgba(255,255,255,.72) !important; border-bottom-color: rgba(255,255,255,.08) !important; }
table tr:hover { background: rgba(96,165,250,.04) !important; }
.manufacturer-card, .pro-con-box { background: rgba(255,255,255,.03) !important; border-left-color: #60a5fa !important; }
.manufacturer-card strong { color: #93c5fd !important; }
.manufacturer-card p { color: rgba(255,255,255,.7) !important; }
.pro { color: #34d399 !important; }
.con { color: #f87171 !important; }
.sources-section, .related-section { border-top-color: rgba(255,255,255,.1) !important; }
.sources-section h3, .related-section h3 { color: rgba(255,255,255,.92) !important; }
.sources-list li { color: rgba(255,255,255,.6) !important; }
.sources-list a, .related-links a { color: #60a5fa !important; }
.back-link { background: rgba(255,255,255,.05) !important; color: #93c5fd !important; }
.back-link:hover { background: rgba(255,255,255,.1) !important; }
.article-chart svg { background: rgba(255,255,255,.02) !important; border-color: rgba(255,255,255,.08) !important; }
.article-chart figcaption { color: rgba(255,255,255,.5) !important; }
/* legacy inline article nav (if present instead of the shared site-nav) */
nav { background: rgba(10,10,15,.72) !important; border-bottom-color: rgba(255,255,255,.06) !important; }
.nav-brand { color: #fff !important; }
.nav-links a { color: rgba(255,255,255,.62) !important; }
.nav-links a:hover { color: #fff !important; }
footer { background: #0a0a0f !important; border-top: 1px solid rgba(255,255,255,.06); }
footer p { color: rgba(255,255,255,.5) !important; }
