/* FinTrade AI Admin Dashboard Stylesheet */
:root {
    --bg-main: #0a0b0d;
    --bg-card: #12141a;
    --bg-input: #0b0d12;
    --border-color: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #8c9ba5;
    --text-muted: #4e5d6c;
    
    --accent-cyan: #00f0ff;
    --accent-blue: #0072ff;
    --accent-gold: #ffb700;
    --accent-green: #00e676;
    --accent-red: #ff3d00;
    
    --font-stack: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    overflow-x: hidden;
}

/* Layout */
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: rgba(18, 20, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-logo h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.btn-logout {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Panels */
.dashboard-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.stories-panel {
    width: 320px;
    min-width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background-color: rgba(18, 20, 26, 0.3);
}

.stories-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.stories-header h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-select {
    flex: 1;
    min-width: 80px;
    padding: 6px;
    font-family: var(--font-stack);
    font-size: 12px;
    color: var(--text-primary);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
}

.stories-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.story-card {
    padding: 14px;
    margin-bottom: 10px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.story-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.story-card.active {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 240, 255, 0.03);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.importance-pill {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

.importance-pill.critical {
    color: var(--accent-red);
    background: rgba(255, 61, 0, 0.1);
    border: 1px solid rgba(255, 61, 0, 0.2);
}

.importance-pill.medium {
    color: var(--accent-gold);
    background: rgba(255, 183, 0, 0.1);
    border: 1px solid rgba(255, 183, 0, 0.2);
}

.importance-pill.low {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-count {
    font-size: 11px;
    color: var(--text-secondary);
}

.story-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.story-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Workspace panel */
.workspace-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-main);
}

.workspace-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.workspace-empty svg {
    margin-bottom: 16px;
    opacity: 0.2;
}

.workspace-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.workspace-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.workspace-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.workspace-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.tab-nav {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    background-color: rgba(18, 20, 26, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 14px 20px;
    font-family: var(--font-stack);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.tab-panes {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Research Pane styling */
.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.research-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.research-card h4 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
}

.facts-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.facts-list li {
    margin-bottom: 10px;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-box {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.macro-box {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 13px;
}

.warning-card {
    background: rgba(255, 183, 0, 0.05);
    border: 1px solid rgba(255, 183, 0, 0.15);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.warning-icon {
    color: var(--accent-gold);
    font-weight: bold;
}

.warning-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Editor Pane styling */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.article-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.article-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-secondary);
}

.article-status-dot.active {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.editor-field {
    margin-bottom: 20px;
}

.editor-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.editor-field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-stack);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
}

.editor-field textarea {
    width: 100%;
    height: 350px;
    padding: 16px;
    font-family: var(--font-stack);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.left-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.right-actions {
    display: flex;
    gap: 12px;
}

.version-select {
    padding: 8px 12px;
    font-family: var(--font-stack);
    font-size: 13px;
    color: var(--text-primary);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
}

.btn {
    padding: 10px 18px;
    font-family: var(--font-stack);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-success {
    color: #ffffff;
    background-color: var(--accent-green);
}

.btn-success:hover {
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Fact Pane styling */
.fact-checklist-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.fact-checklist-table th, .fact-checklist-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.fact-checklist-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.fact-checklist-table td {
    font-size: 14px;
}

.status-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-inline.verified {
    color: var(--accent-green);
}

.status-badge-inline.unverified {
    color: var(--accent-gold);
}

.tooltip-container {
    position: relative;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    padding: 10px 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 9, 12, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-box {
    width: 400px;
    padding: 32px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

.loading-box h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.loading-steps {
    text-align: left;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.loading-step-status {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.loading-step.active .loading-step-status {
    background-color: var(--accent-cyan);
    animation: pulse 1.5s infinite;
}

.loading-step.completed .loading-step-status {
    background-color: var(--accent-green);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* SVG Chart Line */
.svg-chart-container {
    width: 100%;
    height: 180px;
    margin-top: 12px;
}

.chart-line {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2;
}

.chart-axis {
    stroke: var(--text-muted);
    stroke-width: 1;
}

.chart-text {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: var(--font-stack);
}

/* ==========================================================================
   PUBLIC HOMEPAGE & GLOBAL ARTICLE READER TYPOGRAPHY (Medium/Substack/Bloomberg)
   ========================================================================== */

/* Public Body & Header */
.public-body, .reader-body {
    background-color: #0b0f19;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.public-nav, .reader-header {
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container, .reader-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

/* Hero Featured Story */
.public-main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.hero-section {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-image-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card:hover .hero-banner-img {
    transform: scale(1.03);
}

.category-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.hero-content {
    padding: 36px 36px 36px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meta-row {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #f8fafc;
    margin: 0 0 16px 0;
}

.hero-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.btn-hero-read {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

/* Articles Grid */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.pub-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.pub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
}

.pub-card-image {
    height: 180px;
    overflow: hidden;
}

.pub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pub-card-category {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pub-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
    margin: 0 0 10px 0;
}

.pub-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.read-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

/* GLOBAL PUBLIC ARTICLE READER TYPOGRAPHY (18px Medium/Substack Style) */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #38bdf8;
    width: 0%;
    z-index: 2000;
    transition: width 0.1s;
}

.article-reader-wrapper {
    background: #ffffff;
    color: #1e293b;
    padding: 60px 24px;
    min-height: calc(100vh - 120px);
}

.article-container {
    max-width: 760px;
    margin: 0 auto;
}

.article-meta-header {
    margin-bottom: 32px;
}

.article-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 16px 0 24px 0;
    letter-spacing: -0.5px;
}

.author-byline-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.author-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.pub-date {
    font-size: 13px;
    color: #64748b;
}

.hero-image-container {
    margin: 32px 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Global 18px Body Typography */
.article-body-content {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    line-height: 1.75;
    color: #334155;
}

.article-body-content p {
    margin-bottom: 24px;
}

.article-body-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 44px 0 18px 0;
    line-height: 1.3;
}

.article-body-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin: 36px 0 14px 0;
}

.article-body-content ul, .article-body-content ol {
    margin: 0 0 28px 0;
    padding-left: 24px;
}

.article-body-content li {
    margin-bottom: 10px;
}

.article-body-content blockquote {
    border-left: 4px solid #0284c7;
    padding: 12px 20px;
    margin: 28px 0;
    background: #f0f9ff;
    font-style: italic;
    color: #0369a1;
}

/* Responsive, Modern Financial Data Tables */
.article-body-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
}

.article-body-content thead {
    background: #f8fafc;
}

.article-body-content th {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e293b;
    border-bottom: 2px solid #cbd5e1;
    text-align: left;
}

.article-body-content td {
    padding: 13px 18px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    line-height: 1.5;
}

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

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

.article-body-content tbody tr:hover td {
    background: #f0f9ff;
    transition: background 0.15s ease;
}

.article-disclaimer-box {
    margin-top: 50px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    font-family: 'Outfit', sans-serif;
}

.article-disclaimer-box h4 {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-size: 14px;
}

.fact-citation-pill {
    display: none !important;
}

/* Premium Glassmorphic TL;DR Card */
.tldr-glass-card {
    background: rgba(240, 249, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 12px;
    padding: 24px;
    margin: 36px 0;
    box-shadow: 0 4px 24px rgba(2, 132, 199, 0.03);
}

.tldr-glass-card h2 {
    margin-top: 0 !important;
    font-size: 20px !important;
    color: #0369a1 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tldr-glass-card h2::before {
    content: "💡";
    font-size: 18px;
}

.tldr-glass-card ul {
    margin-bottom: 0 !important;
    padding-left: 20px !important;
}

.tldr-glass-card li {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #0c4a6e;
    margin-bottom: 8px;
}

.tldr-glass-card li:last-child {
    margin-bottom: 0;
}

/* Premium Editorial Dropcap (Large Starting Letter) */
.article-body-content > p:first-of-type::first-letter {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    float: left;
    line-height: 44px;
    padding-right: 10px;
    padding-top: 4px;
    color: #0f172a;
}

/* Lead Paragraph Styling */
.article-body-content > p:nth-of-type(2) {
    font-size: 20px;
    line-height: 1.7;
    color: #1e293b;
    font-weight: 300;
}

/* Premium Financial Data Tables */
.article-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
}

.article-body-content th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
}

.article-body-content td {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 16px;
    color: #334155;
}

.article-body-content tr:hover td {
    background: #f8fafc;
}

.public-footer {
    background: #090d16;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
}

/* Original sources section at bottom of reader */
.original-sources-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px dashed #e2e8f0;
}

.original-sources-section h4 {
    margin: 0 0 16px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}

.sources-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.source-link-item {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid rgba(2, 132, 199, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.source-link-item:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
}

/* Styled Investment Thesis Card */
.investment-thesis-card {
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    border-radius: 4px 12px 12px 4px;
    padding: 24px;
    margin: 36px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01);
}

.investment-thesis-card h3 {
    margin-top: 0 !important;
    font-size: 18px !important;
    color: #0f172a !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 16px !important;
}

.investment-thesis-card ul {
    margin-bottom: 0 !important;
    padding-left: 20px !important;
}

.investment-thesis-card li {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 8px;
}

.investment-thesis-card li:last-child {
    margin-bottom: 0;
}

/* Styled Blog Interactive Chart Card */
.blog-chart-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 28px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    height: 280px;
    max-width: 650px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.blog-chart-card canvas {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 240px !important;
}

/* Styled Mermaid.js Diagrams */
.mermaid-diagram-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 24px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    max-width: 480px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mermaid-diagram-container .mermaid,
.mermaid {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.mermaid-diagram-container svg,
.mermaid svg,
.article-body-content svg {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 440px !important;
    width: 100% !important;
    height: auto !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Category & Action Row */
.category-tag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-tag-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-actions-right {
    display: flex;
    align-items: center;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    color: #0284c7;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-download-pdf:hover {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.btn-download-pdf:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.pdf-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(2, 132, 199, 0.2);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* PDF & Print Layout Optimizations */
@media print {
    .reader-header,
    .public-footer,
    .article-footer-nav,
    .btn-download-pdf,
    .reading-progress-bar {
        display: none !important;
    }
    
    .article-reader-wrapper {
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .article-container {
        max-width: 100% !important;
    }
    
    table,
    .blog-chart-card,
    .mermaid-diagram-container,
    .investment-thesis-card,
    .article-disclaimer-box,
    .original-sources-section,
    .tradingview-chart-container,
    .verdict-box,
    .compliance-card,
    blockquote,
    .faq-section {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}




