/* 
    Sirmium Capital - Research Guides Shared Styles
    Shared components for AdvisorOS Research Guides (VCF, USVSST, Bitcoin Recovery, etc.)
*/

:root {
    --guide-bg: #0f172a;
    --guide-card-bg: rgba(2, 6, 23, 0.4);
    --guide-border: rgba(197, 160, 89, 0.2);
    --guide-gold: #c5a059;
    --guide-gold-glow: rgba(197, 160, 89, 0.3);
}

/* ===== SYSTEM STATUS BAR ===== */
.system-status-bar {
    background: #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--font-primary);
    color: var(--white);
    letter-spacing: 1px;
    z-index: 1000;
    position: relative;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    display: inline-block;
}

.system-status-secure {
    opacity: 0.8;
    font-weight: 600;
}

.system-status-sep {
    opacity: 0.4;
    font-size: 0.6rem;
}

.system-status-version {
    color: var(--gold-300);
}

.system-status-node {
    color: #64748b;
}

.status-clock {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ===== NEWS TICKER ===== */
.news-ticker {
    background: #0f172a;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 10000;
    position: relative;
    overflow: hidden;
}

.ticker-live-badge {
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.ticker-scroll-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-scroll-content {
    white-space: nowrap;
}

.ticker-headline {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-date {
    color: var(--gold-300);
    font-weight: 700;
}

.ticker-separator {
    opacity: 0.3;
}

.ticker-updated {
    font-size: 0.7rem;
    color: #64748b;
    opacity: 0.8;
}

.ticker-dismiss {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== HERO SUBPAGE ===== */
.u-hero-subpage.cinematic {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
}

/* Force all hero children to be light on dark */
.u-hero-subpage.cinematic .premium-title,
.u-hero-subpage.cinematic h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.u-hero-subpage.cinematic .article-subtitle {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.u-hero-subpage.cinematic .article-meta {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.u-hero-subpage.cinematic .article-meta-item strong {
    color: #ffffff !important;
}

.u-hero-subpage.cinematic .indicator-badge {
    background: rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.4);
    color: #c5a059;
}

.u-hero-subpage.cinematic .indicator-badge span {
    color: #c5a059;
}

.u-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.2) 0%,
            rgba(15, 23, 42, 0.55) 50%,
            rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

.article-hero-inner {
    max-width: 900px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.u-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--guide-gold);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.u-status-badge .status-dot {
    width: 6px;
    height: 6px;
}

.u-status-badge span:last-child {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--guide-gold);
    text-transform: uppercase;
}

.article-category {
    display: block;
    color: var(--guide-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.u-hero-subpage h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.article-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.article-meta-item strong {
    color: white;
    display: block;
}

/* ===== ARTICLE CONTENT TYPOGRAPHY — PARAGRAPH SPACING ===== */
/* Applied globally to all guide pages for comfortable, inviting reading */
.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #cbd5e1;
    font-size: 1rem;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.3;
}

.article-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.75;
    color: #cbd5e1;
}

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

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content strong {
    color: #fff;
}

.article-content table {
    margin: 1.5rem 0 2rem;
    width: 100%;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.article-content table th {
    color: var(--guide-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.article-content table tr:hover td {
    background: rgba(197, 160, 89, 0.03);
}

/* Ensure paragraphs inside callouts/warnings also have spacing */
.article-callout p,
.article-warning p,
.article-cta p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-callout p:last-child,
.article-warning p:last-child,
.article-cta p:last-child {
    margin-bottom: 0;
}

/* ===== ARTICLE COMPONENTS ===== */
.article-toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.article-toc h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--guide-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.article-toc li {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.article-toc li:hover {
    color: var(--guide-gold);
}

.article-warning {
    background: rgba(197, 160, 89, 0.05);
    border-left: 4px solid var(--guide-gold);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
}

.article-warning-title {
    display: block;
    color: var(--guide-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.article-callout {
    background: rgba(197, 160, 89, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.article-callout h3 {
    color: var(--guide-gold);
    margin-bottom: 1rem;
}

.article-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--guide-gold);
    text-align: center;
    padding: 4rem 2rem;
    line-height: 1.4;
    position: relative;
}

.article-takeaway {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    border-left: 2px solid var(--guide-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* buckets */
.article-buckets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.article-bucket {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.article-bucket-header {
    font-weight: 800;
    text-transform: uppercase;
    color: var(--guide-gold);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.article-bucket-pct {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

/* Case Study Cards */
.article-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.article-case-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-case-card.bad {
    border-top: 4px solid #ef4444;
}

.article-case-card.good {
    border-top: 4px solid #22c55e;
    background: rgba(34, 197, 94, 0.03);
}

.article-case-card h3 {
    margin-bottom: 1.5rem;
}

/* Related Guides */
.article-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: rgba(197, 160, 89, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.related-tag {
    font-size: 0.8rem;
    color: var(--guide-gold);
    text-transform: uppercase;
    font-weight: 600;
}

.related-card h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.related-card h4 a {
    color: inherit;
    text-decoration: none;
}

.related-card p {
    font-size: 0.9rem;
    color: #888;
}

/* CTA Section */
.article-cta {
    margin-top: 4rem;
    padding: 4rem 2rem;
    border-radius: 16px;
    text-align: center;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.article-cta h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-button-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* Author Section */
.article-author {
    margin-top: 5rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.article-author-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Disclaimer */
.article-disclaimer {
    margin-top: 4rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* ===== INTELLIGENCE HUB ===== */
.intelligence-hub {
    padding: 6rem 0;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.intel-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(197, 160, 89, 0.1);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.intel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.intel-status {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 2;
}

.intel-card-content {
    position: relative;
    z-index: 2;
}

.intel-card h3 {
    margin-bottom: 1rem;
}

.intel-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.intel-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--guide-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
}

/* ===== BITCOIN GUIDE SPECIFIC UTILITIES ===== */
.intel-briefing-card {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--gold-300);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.intel-briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.intel-briefing-header h3 {
    margin: 0 !important;
    font-size: 1.1rem;
    color: #fff;
}

.intel-briefing-tag {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--gold-300);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.recovery-assistant {
    background: #0B1120;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.ra-header {
    padding: 20px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ra-header h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

.ra-header p {
    font-size: 9px;
    text-transform: uppercase;
    color: #64748b;
    margin: 2px 0 0 !important;
}

.ra-input-area {
    padding: 12px;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ra-footer-note {
    font-size: 9px;
    text-transform: uppercase;
    color: #64748b;
    margin: 8px 0 0 !important;
    text-align: center;
}

.btc-ytd-widget {
    background: #0f172a;
    border-left: 3px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* ===== SHARED UTILITIES ===== */
.u-letter-spacing-2 {
    letter-spacing: 2px !important;
}

.u-font-size-07 {
    font-size: 0.7rem !important;
}

.u-font-size-08 {
    font-size: 0.8rem !important;
}

.u-font-size-09 {
    font-size: 0.9rem !important;
}

.u-font-size-1-1 {
    font-size: 1.1rem !important;
}

.u-font-size-1-4 {
    font-size: 1.4rem !important;
}

.u-text-uppercase {
    text-transform: uppercase !important;
}

.u-font-weight-600 {
    font-weight: 600 !important;
}

.u-font-weight-700 {
    font-weight: 700 !important;
}

.u-font-weight-800 {
    font-weight: 800 !important;
}

.u-color-gold {
    color: var(--guide-gold) !important;
}

.u-color-gold-300 {
    color: var(--gold-300) !important;
}

.u-color-gray-888 {
    color: #888 !important;
}

.u-color-slate-cbd5e1 {
    color: #cbd5e1 !important;
}

.u-margin-top-05 {
    margin-top: 0.5rem !important;
}

/* Curriculum Navigation */
.curriculum-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.curriculum-item {
    text-decoration: none;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.curriculum-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.curriculum-item.active {
    font-weight: 800;
    color: var(--gold-300, #c5a059);
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Comparison & Info Grids */
.u-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.u-info-card {
    padding: 1.5rem;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.u-info-card h3 {
    color: var(--gold-300, #c5a059) !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

.u-info-card p {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* Savings Examples */
.u-savings-box {
    padding: 1.5rem;
    background: rgba(197, 160, 89, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    margin: 2rem 0;
}

.u-savings-box h4 {
    color: var(--gold-300, #c5a059);
    margin-bottom: 1rem;
}

.u-savings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
}

.u-savings-label {
    font-weight: 700;
}

.u-savings-value.negative {
    color: #ef4444;
}

.u-savings-value.positive {
    color: #22c55e;
}

.u-savings-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quarterly Tax Deadlines */
.u-quarterly-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.u-quarterly-item {
    padding: 1rem;
    background: rgba(197, 160, 89, 0.08);
    border-radius: 6px;
}

.u-quarterly-label {
    font-weight: 800;
    color: var(--gold-300, #c5a059);
    margin: 0;
}

.u-quarterly-date {
    font-size: 0.8rem;
    margin: 0.3rem 0 0 !important;
}


.u-margin-top-1 {
    margin-top: 1rem !important;
}

.u-margin-top-1-5 {
    margin-top: 1.5rem !important;
}

.u-margin-top-2 {
    margin-top: 2rem !important;
}

.u-margin-top-3 {
    margin-top: 3rem !important;
}

.u-margin-top-4 {
    margin-top: 4rem !important;
}

.u-margin-bottom-1 {
    margin-bottom: 1rem !important;
}

.u-margin-bottom-1-5 {
    margin-bottom: 1.5rem !important;
}

.u-margin-bottom-2 {
    margin-bottom: 2rem !important;
}

.u-padding-top-2 {
    padding-top: 2rem !important;
}

.u-border-top-gold-20 {
    border-top: 1px solid rgba(197, 160, 89, 0.2) !important;
}

.u-flex-center-wrap {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.u-no-decoration {
    text-decoration: none !important;
}

.u-underline {
    text-decoration: underline !important;
}

.u-z-index-2 {
    position: relative;
    z-index: 2;
}

/* ===== GLOBAL CTA SECTION ===== */
.global-cta-section {
    padding: 8rem 0;
    position: relative;
}

.global-cta-card {
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.global-cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: white;
}

.global-cta-card p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER UTILITIES ===== */
.footer-logo-img {
    height: 40px;
    margin-bottom: 1rem;
}

/* ===== ARTICLE LAYOUT ===== */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-max-width: 100%; width: auto;) {
    .workspace-grid {
        grid-template-columns: 2fr 1.1fr;
    }

    .sidebar-sticky {
        position: sticky;
        top: 100px;
    }
}

/* ===== RECOVERY ASSISTANT ===== */
.ra-messages {
    padding: 20px;
    max-height: 350px;
    min-height: 200px;
    overflow-y: auto;
}

.ra-msg {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ra-msg-bot {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border-top-left-radius: 0;
}

.ra-msg-user {
    background: rgba(30, 41, 59, 0.4);
    color: #e2e8f0;
    border-top-right-radius: 0;
    margin-left: auto;
    text-align: right;
}

.ra-send-btn {
    position: absolute;
    right: 8px;
    top: 5px;
    background: none;
    border: none;
    color: var(--gold-300);
    cursor: pointer;
}

.ra-input-wrap input {
    width: 100%;
    background: #1e293b;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 40px 10px 12px;
    font-size: 13px;
}

/* ===== BTC MARKET WIDGET ===== */
.btc-ytd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.btc-ytd-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.btc-ytd-stat-value {
    font-size: 1.25rem;
    font-family: var(--font-display);
    color: #fff;
    font-weight: 700;
}

.btc-ytd-stat-sub {
    font-size: 10px;
    margin-top: 4px;
    display: block;
}

.btc-ytd-stat-sub.up {
    color: #10b981;
}

.btc-ytd-stat-sub.down {
    color: #ef4444;
}

.btc-ytd-explainer {
    font-size: 0.85rem;
    color: #94a3b8;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
}

/* ===== ADDITIONAL UTILITIES ===== */
.u-width-60 {
    width: 60% !important;
}

.u-display-none {
    display: none !important;
}

.u-color-green {
    color: #10b981 !important;
}

.u-font-weight-bold {
    font-weight: bold !important;
}

.u-height-40 {
    height: 40px !important;
}

.u-bg-gold-05 {
    background: rgba(197, 160, 89, 0.05) !important;
}

.u-border-left-gold {
    border-left: 2px solid var(--gold-300) !important;
}

.u-width-80 {
    width: 80% !important;
}

/* ===== BITCOIN PAGE LIGHTER OVERLAY ===== */
.hero-btc-image .u-hero-overlay {
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.3) 0%,
            rgba(15, 23, 42, 0.6) 50%,
            rgba(15, 23, 42, 0.92) 100%) !important;
}

/* ===== MOBILE RESPONSIVE — ALL GUIDE SUBPAGES ===== */
@media (max-width: 768px) {

    /* Hero */
    .u-hero-subpage.cinematic {
        padding: 8rem 1.5rem 4rem;
        background-attachment: scroll;
    }

    .u-hero-subpage h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .article-subtitle,
    .u-hero-subtitle {
        font-size: 1rem;
    }

    .u-hero-meta,
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Status Bar & Ticker */
    .system-status-bar {
        padding: 6px 12px;
        font-size: 0.65rem;
    }

    .status-label-muted,
    .system-status-node {
        display: none;
    }

    .news-ticker {
        padding: 8px 12px;
        gap: 10px;
    }

    .ticker-headline {
        font-size: 0.78rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .navbar {
        padding: 0 1rem;
    }

    /* Article Body */
    .article-body {
        padding: 2rem 0;
    }

    .article-body .container {
        padding: 0 1rem;
    }

    .workspace-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .article-content {
        font-size: 0.95rem;
    }

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

    /* Sidebar */
    .article-sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: static !important;
    }

    /* Callouts & Cards */
    .article-callout,
    .intel-briefing-card,
    .article-warning {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    /* Tables */
    .data-table-wrapper {
        overflow-x: auto;
    }

    .data-table-wrapper table {
        min-width: 500px;
    }

    /* Buckets */
    .article-buckets {
        grid-template-columns: 1fr;
    }

    .article-case-grid {
        grid-template-columns: 1fr;
    }

    /* Intel Grid */
    .intel-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intel-card {
        min-height: 280px;
        padding: 1.5rem;
    }

    /* Related / CTA */
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-cta {
        padding: 2.5rem 1.25rem;
    }

    .article-cta h3 {
        font-size: 1.4rem;
    }

    .cta-button-group {
        flex-direction: column;
        align-items: center;
    }

    .cta-button-group .btn {
        width: 100%;
        text-align: center;
        background: var(--gold-300) !important;
        color: var(--navy-900) !important;
        font-weight: 800 !important;
    }

    /* Author */
    .article-author {
        flex-direction: column;
        text-align: center;
    }

    /* Recovery Assistant */
    .recovery-assistant {
        margin-bottom: 1.5rem;
    }

    .ra-messages {
        max-height: 250px;
        min-height: 150px;
    }

    /* BTC Widget */
    .btc-ytd-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Article TOC */
    .article-toc ul {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Intelligence Hub (from guide pages) */
    .intelligence-hub {
        padding: 3rem 0;
    }

    /* Global CTA */
    .global-cta-card {
        padding: 2.5rem 1.5rem !important;
    }

    .global-cta-card h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    /* Targets inline-styled fixed CTA buttons across all guide pages */
    a[style*="position: fixed"][style*="bottom: 2rem"] {
        padding: 0.8rem 1.25rem !important;
        font-size: 0.75rem !important;
        bottom: 1rem !important;
        right: 1rem !important;
        max-width: 180px !important;
        letter-spacing: 0.5px !important;
        gap: 0.4rem !important;
        line-height: 1.3 !important;
        z-index: 12000 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 160, 89, 0.3) !important;
    }

    /* AI Nudge / Explore tools floating elements */
    .ai-nudge,
    [class*="nudge"],
    .explore-tools-card {
        bottom: 4rem !important;
        right: 0.5rem !important;
        max-width: 140px !important;
        font-size: 0.65rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    /* Prevent floating elements stacking on top of each other */
    .chat-bubble,
    .concierge-btn {
        bottom: 0.5rem !important;
        right: 0.5rem !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* Cinematic Hero Layout */
.u-hero-subpage.cinematic {
    background: linear-gradient(135deg, #0f1923 0%, #1a2332 50%, #0d1117 100%);
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
}

/* Centered Article Content */
.article-centered-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
    .u-hero-subpage.cinematic {
        padding: 10rem 2rem 6rem;
    }

    .intel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-buckets {
        grid-template-columns: repeat(2, 1fr);
    }

    .workspace-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== INLINE STYLE REPLACEMENT UTILITIES ===== */
/* These replace the 313 inline styles identified across guide pages */

/* Status Colors for Tables */
.u-status-pass {
    color: #22c55e !important;
    font-weight: 700;
}

.u-status-fail {
    color: #ef4444 !important;
    font-weight: 700;
}

/* Warning/Callout Variants */
.article-warning.success {
    background: rgba(34, 197, 94, 0.05);
    border-left: 4px solid #22c55e;
}

.article-warning.success .article-warning-title {
    color: #22c55e;
}

/* Hero Background Variants */
.u-hero-subpage.cinematic.hero-tax-intel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2d3f5e 100%);
}

.u-hero-subpage.cinematic.hero-usvsst {
    background: linear-gradient(135deg, #0f172a 0%, #1a2332 50%, #0d1117 100%);
}

.u-hero-subpage.cinematic.hero-pension {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1a3a5c 100%);
}

.u-hero-subpage.cinematic.hero-bitcoin {
    background: linear-gradient(135deg, #0f172a 0%, #1a2332 50%, #2d1f0a 100%);
}

.u-hero-subpage.cinematic.hero-tsp {
    background: linear-gradient(135deg, #0f172a 0%, #1a2332 50%, #1a3a2c 100%);
}

/* H1 Subtitle Em */
.article-hero-inner h1 em {
    font-size: 0.7em;
    color: var(--gold-300);
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gold);
    color: var(--navy);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border: 2px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

/* In-Article CTA Box */
.article-cta-inline {
    margin-top: 3rem;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.article-cta-inline h3 {
    color: var(--gold-300);
    font-family: 'Playfair Display', serif;
}

.article-cta-inline .cta-subtitle {
    max-width: 600px;
    margin: 1rem auto;
    color: #94a3b8;
}

.article-cta-inline .cta-fine-print {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 1rem;
}

.article-cta-inline .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Related Intelligence Grid */
.article-related h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-300);
    margin-bottom: 1.5rem;
}

/* Color Inherit Link */
.u-color-inherit {
    color: inherit !important;
}

/* Max Width Constraint */
.u-max-width-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Font Size Utility Extensions */
.u-font-size-075 {
    font-size: 0.75rem !important;
}

/* Slate Color */
.u-color-slate-475 {
    color: #475569 !important;
}

.u-color-slate-94a {
    color: #94a3b8 !important;
}

/* ──────────────────── Spacing Utilities ──────────────────── */
.u-mt-medium { margin-top: 2rem !important; }
.u-mb-small  { margin-bottom: 1rem !important; }

/* ──────────────────── Status Badge Text ──────────────────── */
.status-badge-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ──────────────────── Takeaway List (2-col grid) ──────────────────── */
.takeaway-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

/* ===== DARK-THEME OVERRIDES =====
   blog-article.css sets light-mode colors (.article-content { color: #334155 },
   h2 { color: #1A1C1E }, h3 { color: copper }, etc.) which make text invisible
   on the dark guide backgrounds. These overrides restore correct white-on-dark
   colors with higher specificity. */

body:not(.article-page) .article-content {
    color: #cbd5e1;
}

body:not(.article-page) .article-content h2 {
    color: #fff !important;
    font-family: 'Playfair Display', serif;
}

body:not(.article-page) .article-content h3 {
    color: #e2e8f0 !important;
}

body:not(.article-page) .article-content h4 {
    color: #e2e8f0 !important;
}

body:not(.article-page) .article-content strong {
    color: #fff;
}

body:not(.article-page) .article-content p {
    color: #cbd5e1;
}

body:not(.article-page) .article-content ul,
body:not(.article-page) .article-content ol {
    color: #cbd5e1;
}

body:not(.article-page) .article-content table th {
    color: var(--guide-gold);
}

body:not(.article-page) .article-content table td {
    color: #cbd5e1;
}

body:not(.article-page) .article-content a {
    color: var(--guide-gold);
}

body:not(.article-page) .article-takeaway {
    color: #fff;
    border-left: 2px solid var(--guide-gold);
}

body:not(.article-page) .article-case-card h3 {
    color: #fff;
}

body:not(.article-page) .article-warning-title {
    color: var(--guide-gold);
}

body:not(.article-page) .article-content .article-warning {
    color: #cbd5e1;
}