:root {
    --bg-primary: #0b0f17;
    --bg-secondary: #151c28;
    --bg-card: #1c2536;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-gold: #f59e0b;
    --border-color: #2d3748;
    --max-width: 1200px;
    --radius: 10px;
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Logo Optimization (CLS Safe) */
.site-header {
    background: rgba(11, 15, 23, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.85rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    max-height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-primary);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
    color: #ffffff !important;
    padding: 0.65rem 1.35rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Breadcrumb */
.breadcrumb {
    padding: 0.9rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(45, 55, 72, 0.4);
    background: #0e131d;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb li + li::before {
    content: "›";
    margin-right: 0.5rem;
    color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, #1e293b, var(--bg-primary));
    padding: 3.2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.status-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.35rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin-bottom: 1.75rem;
}

.meta-bar {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Main Grid & Sidebar */
.main-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2.25rem;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
}

.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.toc-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style: none;
    font-size: 0.88rem;
}

.toc-list li {
    margin-bottom: 0.6rem;
}

.toc-list a {
    color: var(--text-secondary);
    display: block;
}

.toc-list a:hover {
    color: var(--accent-green);
    padding-left: 4px;
}

/* Article Styling */
.article-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
}

h2 {
    font-size: 1.65rem;
    color: #ffffff;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-green);
}

h2:first-of-type {
    margin-top: 0;
}

h3 {
    font-size: 1.28rem;
    color: var(--accent-gold);
    margin: 1.75rem 0 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-align: justify;
}

ul.content-list,
ol.content-list {
    margin: 1rem 0 1.5rem 1.5rem;
}

ul.content-list li,
ol.content-list li {
    margin-bottom: 0.65rem;
}

.alert-box {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-gold);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.75rem 0;
}

.alert-box strong {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.35rem;
}

/* Silo Internal Link Cards */
.silo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}

.silo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
}

.silo-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.silo-card h4 {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.silo-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    text-align: left;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1.75rem 0;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.92rem;
}

th, td {
    padding: 0.95rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #111827;
    color: var(--accent-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* FAQ Items */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: #070a0f;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

@media (max-width: 960px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.85rem;
    }
    .article-content {
        padding: 1.5rem;
    }
}