/* Premium deep-navy page backdrop (shared site-wide).
   Must stay first: @import is only valid before other rules. */
@import url("/css/premium-backdrop.css");

/* Article Specific Styles */

/* --- Typography & Base --- */
.article-content {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #e2e8f0;
    /* Light gray for dark mode default */
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content h2 {
    font-size: 1.875rem;
    /* 3xl */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #60a5fa;
    /* Blue-400 */
    scroll-margin-top: 100px;
    /* For sticky header offset */
    border-bottom: 1px solid rgba(74, 85, 104, 0.5);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    /* 2xl */
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #93c5fd;
    /* Blue-300 */
    scroll-margin-top: 100px;
}

.article-content h4 {
    font-size: 1.25rem;
    /* xl */
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #cbd5e0;
}

.article-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #94a3b8;
    background-color: rgba(30, 41, 59, 0.3);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* --- Layout Components --- */

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(30, 41, 59, 0.0);
    /* Transparent track */
    z-index: 9999;
    /* Very high z-index */
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    width: 0%;
    transition: width 0.1s ease;
}

/* Table of Contents (Sidebar) */
.toc-container {
    position: sticky;
    top: 6rem;
    /* Adjust based on header height */
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #1e293b;
    /* Slate-800 */
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.toc-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #f8fafc;
    border-bottom: 1px solid #475569;
    padding-bottom: 0.5rem;
}

.toc-nav a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
}

.toc-nav a:hover {
    color: #60a5fa;
    border-left-color: #475569;
}

.toc-nav a.active {
    color: #3b82f6;
    font-weight: 600;
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Key Takeaways / Executive Summary Box */
.key-takeaways,
.executive-summary {
    background-color: rgba(30, 58, 138, 0.2);
    /* Dark blue tint */
    border: 1px solid #1e40af;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.key-takeaways h3,
.executive-summary h3 {
    margin-top: 0;
    color: #60a5fa;
    font-size: 1.25rem;
    border-bottom: none;
}

/* Cards (for financial highlights, etc.) */
.info-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h4 {
    margin-top: 0;
    color: #e2e8f0;
}

/* Tables */
.article-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure it scrolls on mobile */
}

.article-table th {
    background-color: #0f172a;
    color: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #334155;
}

.article-table td {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    color: #cbd5e0;
}

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

.article-table tr:nth-child(even) {
    background-color: rgba(30, 41, 59, 0.5);
}

/* Mobile TOC Button */
.mobile-toc-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background-color: #3b82f6;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
}

.mobile-toc-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 49;
    display: none;
}

.mobile-toc-overlay.open {
    display: block;
}

.mobile-toc-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e293b;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1.5rem;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-toc-drawer.open {
    transform: translateY(0);
}

/* Utility */
.text-highlight {
    color: #60a5fa;
    font-weight: 600;
}



/* --- Hero Stats Cards --- */
.hero-stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-card {
    min-width: 160px;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    /* Slate-900 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.glass-panel {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
}
