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

:root {
    --guide-bg: #020617;
    --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 var(--gold-300);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 999;
    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;
}

.u-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.4) 0%,
            rgba(2, 6, 23, 0.8) 50%,
            #020617 100%);
    z-index: 1;
}

.article-hero-inner {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.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;
}

.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;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.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, #020617 0%, rgba(2, 6, 23, 0.6) 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;
}

.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-width: 1024px) {
    .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;
        -webkit-overflow-scrolling: touch;
    }

    .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;
    }

    /* 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;
    }

    /* ===== FLOATING CTA MOBILE FIX ===== */
    /* Targets inline-styled fixed CTA buttons across all guide pages */
    a[style*="position: fixed"][style*="bottom: 2rem"] {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.65rem !important;
        bottom: 0.75rem !important;
        right: 0.75rem !important;
        max-width: 150px !important;
        letter-spacing: 0.5px !important;
        gap: 0.3rem !important;
        line-height: 1.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;
    }
}

/* 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;
    }
}