:root {
    --bg: #0c1117;
    --bg-card: #131d24;
    --bg-card-hover: #1a2a33;
    --text: #d4e0e6;
    --text-muted: #7a9aaa;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16,185,129,0.15);
    --border: #1c2e38;
    --heading-color: #f0fdf4;
    --radius: 6px;
    --max-w: 900px;
    --sidebar-w: 26em;
    --font: 'DM Sans', sans-serif;
    --font-heading: 'Plus Jakarta Sans', serif;
    --hover-brightness: 1.2;
}
/* Template B: Editorial — adapted from HTML5 UP (CC BY 3.0)
   CSS variables for color/font integration with Fabrika generator */



/* === Reset === */
*, *:before, *:after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13pt; font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* === Typography === */
a { color: var(--accent); text-decoration: none; border-bottom: dotted 1px; transition: color 0.2s, border-color 0.2s; }
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
strong, b { color: var(--heading-color); font-weight: 600; }
em, i { font-style: italic; }
p { margin: 0 0 2em 0; }

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 1em 0;
}
h1 { font-size: 2.5em; line-height: 1.3; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.1em; }

blockquote {
    border-left: solid 3px var(--border);
    font-style: italic;
    margin: 0 0 2em 0;
    padding: 0.5em 0 0.5em 2em;
}

hr { border: 0; border-bottom: solid 1px var(--border); margin: 2em 0; }
hr.major { margin: 3em 0; }

/* === Layout: Wrapper === */
#wrapper {
    display: flex;
    flex-direction: row-reverse;
    min-height: 100vh;
}

/* === Main Content === */
#main { flex-grow: 1; flex-shrink: 1; width: 100%; }
#main > .inner {
    padding: 0 6em 0.1em 6em;
    margin: 0 auto;
    max-width: var(--max-w);
}
#main > .inner > section {
    padding: 4em 0 3em 0;
    border-top: solid 2px var(--border);
}
#main > .inner > section:first-of-type { border-top: 0 !important; }

/* === Sidebar === */
#sidebar {
    flex-grow: 0;
    flex-shrink: 0;
    background-color: var(--bg-card);
    font-size: 0.9em;
    position: relative;
    width: var(--sidebar-w);
    transition: margin-left 0.5s ease, box-shadow 0.5s ease;
}
#sidebar > .inner {
    padding: 2.2em;
    position: relative;
    width: var(--sidebar-w);
}
#sidebar > .inner > * {
    border-bottom: none;
    margin: 0 0 1.5em 0;
    padding: 0;
}
#sidebar > .inner > *:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
#sidebar h2 { font-size: 1.4em; }
#sidebar .toggle {
    display: block;
    height: 7.5em;
    left: var(--sidebar-w);
    line-height: 7.5em;
    position: absolute;
    text-align: center;
    top: 0;
    width: 6em;
    z-index: 100;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    outline: 0;
    overflow: hidden;
    text-indent: -15em;
    white-space: nowrap;
}
#sidebar.inactive { margin-left: calc(var(--sidebar-w) * -1); }

/* === Header (top bar) === */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2em 0;
}
#header .logo { font-size: 1.2em; font-weight: 600; color: var(--heading-color); text-decoration: none; border: 0; }
#header .logo strong { color: var(--heading-color); }
#header .icons { list-style: none; display: flex; gap: 0.75em; }
#header .icons a { color: var(--text-muted); border: 0; }
#header .icons a:hover { color: var(--accent); }

/* === Banner (Hero) === */
#banner {
    display: flex;
    align-items: center;
    gap: 3em;
    padding: 4em 0;
}
#banner .content { flex: 1; }
#banner .content h1 { margin-bottom: 0.5em; }
#banner .image { flex-shrink: 0; }
#banner .image img { max-width: 350px; border-radius: var(--radius); }

/* === Buttons === */
.button, input[type="submit"], input[type="reset"], input[type="button"] {
    display: inline-block;
    padding: 0.75em 2em;
    background: transparent;
    border: solid 2px var(--heading-color);
    border-radius: var(--radius);
    color: var(--heading-color) !important;
    font-family: var(--font);
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.button:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent) !important; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.big { font-size: 0.9em; padding: 1em 2.5em; }

/* === Features grid (homepage) === */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.features article { display: flex; gap: 1.5em; }
.features .icon { flex-shrink: 0; width: 3em; height: 3em; border-radius: var(--radius); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2em; }

/* === Posts grid === */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; }
.posts article .image img { width: 100%; border-radius: var(--radius); }
.posts article h3 { margin: 1em 0 0.5em 0; }

/* === Mini-posts (sidebar) === */
.mini-posts article { display: flex; gap: 1em; align-items: flex-start; margin-bottom: 1.5em; }
.mini-posts article .image img { width: 60px; border-radius: var(--radius); }

/* === Content page (articles) === */
.article-content { line-height: 1.75; }
.article-content h2 { margin: 2em 0 1em 0; padding-bottom: 0.5em; border-bottom: solid 2px var(--border); }
.article-content h3 { margin: 1.5em 0 0.75em 0; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1em 0; display: block; }
.article-content .image.main img, .article-content .image.featured img { width: 100%; height: auto; object-fit: contain; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.article-content table th { background: var(--bg-card); font-weight: 600; color: var(--heading-color); }
.article-content table th, .article-content table td { padding: 0.75em 1em; border: solid 1px var(--border); text-align: left; }
/* Prevent any image squishing — always preserve aspect ratio */
img { max-width: 100%; height: auto; }

/* === FAQ === */
.faq-item { border-bottom: solid 1px var(--border); padding: 1em 0; }
.faq-item strong { color: var(--heading-color); display: block; margin-bottom: 0.5em; }

/* === CTA === */
.cta-block {
    background: var(--accent-glow);
    border: solid 2px var(--accent);
    border-radius: var(--radius);
    padding: 2em;
    text-align: center;
    margin: 2em 0;
}
.cta-block .button { margin-top: 1em; }

/* === Footer === */
#footer {
    background: var(--bg-card);
    padding: 4em 0 2em 0;
    border-top: solid 2px var(--border);
}
#footer .inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 6em;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3em; }
.footer-grid h3 { font-size: 1em; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul li { padding: 0.35em 0; }
.footer-grid ul li a { color: var(--text); border-bottom: 0; }
.footer-grid ul li a:hover { color: var(--accent); }
.copyright { text-align: center; margin-top: 3em; font-size: 0.85em; color: var(--text-muted); }

/* === Navigation menu (sidebar) === */
nav#menu ul { list-style: none; padding: 0; }
nav#menu ul li a {
    display: block;
    padding: 0.5em 0;
    color: var(--heading-color);
    font-weight: 600;
    border-bottom: 0;
    transition: color 0.2s;
}
nav#menu ul li a:hover { color: var(--accent); }
nav#menu ul li a.active { color: var(--accent); border-left: 3px solid var(--accent); padding-left: 1em; }
/* Grouped nav labels */
nav#menu ul li.nav-group-label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 1.2em 0 0.3em;
    border-bottom: none;
}

/* === Fix sidebar section spacing === */
#sidebar > .inner > section {
    border-bottom: none;
    margin: 0 0 1.5em 0;
    padding: 0;
}
#sidebar > .inner > section.alt {
    background: var(--bg-card-hover);
    border: none !important;
    border-bottom: none !important;
    margin: 0 0 1.5em 0;
    padding: 0.8em;
    border-radius: var(--radius);
}
#sidebar > .inner > section.alt::after,
#sidebar > .inner > section.alt::before {
    display: none !important;
}

/* === Search === */
#search input[type="text"] {
    width: 100%;
    padding: 0.75em 1em;
    border: solid 1px var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9em;
    background: var(--bg);
    color: var(--text);
}
#search input[type="text"]:focus { border-color: var(--accent); outline: none; }

/* === Header layout === */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5em 0;
}
#header .logo img { height: 36px; display: block; }

/* Desktop: hide mobile elements, show desktop */
.mobile-only { display: none !important; }
.desktop-only { display: inline-block !important; }

/* Mobile logo — fixed height matching hamburger */
.mobile-logo-img { height: 28px !important; width: auto; display: block; }

/* === Mobile floating CTA === */
.mobile-cta-fixed {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    text-align: center;
}
.mobile-cta-btn {
    display: block;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}
.mobile-cta-btn:hover { background: var(--accent-hover); border-bottom: none; }

/* === Spacing: related articles → footer === */
.related-articles { margin-bottom: 3em; }
.site-footer { margin-top: 3em; }

/* === Sidebar toggle button (header) === */
.sidebar-toggle {
    display: none; /* hidden on desktop — sidebar always visible */
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    color: var(--heading-color);
    cursor: pointer;
    line-height: 0;
}
.sidebar-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* === Sidebar close button === */
.sidebar-close {
    display: none; /* hidden on desktop */
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10001;
    line-height: 1;
}
.sidebar-close:hover { color: var(--accent); }

/* === Sidebar brand === */
.sidebar-brand { text-align: center; padding: 0.5em 0; }
.sidebar-brand a { border-bottom: none !important; }
.sidebar-brand img { max-height: 40px; }

/* === Sidebar risk warning === */
.sidebar-risk {
    font-size: 0.7em;
    color: var(--text-muted);
    line-height: 1.4;
    padding: 1em 0 0.5em;
    margin-top: 1.5em;
    border: none !important;
}
/* Remove border from element before risk warning */
.sidebar-risk ~ *, * + .sidebar-risk { border-top: none !important; }
nav#menu { border-bottom: none !important; }

/* Fix sidebar inner overflow — borders should not exceed width */
#sidebar > .inner > * {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

/* === Sidebar CTA === */
.sidebar-cta { text-align: center; padding: 1em 0; }
.sidebar-cta .button { width: 100%; }

/* === Sidebar scrollable nav === */
#sidebar > .inner {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
nav#menu ul {
    max-height: none; /* desktop: show all */
}

/* === Responsive === */

/* Large desktop */
@media screen and (max-width: 1680px) {
    body { font-size: 11pt; }
    #main > .inner { padding: 0 5em 0.1em 5em; }
    #sidebar { width: 24em; }
    #sidebar > .inner { width: 24em; padding: 1.7em; }
}

/* Tablet / small desktop — sidebar becomes overlay */
@media screen and (max-width: 1280px) {
    body { font-size: 10pt; }
    #main > .inner { padding: 0 4em 0.1em 4em; }

    /* Swap desktop/mobile elements */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    a.mobile-only, button.mobile-only, span.mobile-only { display: inline-block !important; }

    /* Show hamburger button + mobile floating CTA */
    .sidebar-toggle { display: inline-block; }
    .sidebar-close { display: block; }
    .mobile-cta-fixed { display: block; }

    /* Add bottom padding for floating CTA */
    body { padding-bottom: 70px; }

    /* Sidebar: hidden by default, slides in from left */
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 280px;
        z-index: 10000;
        transform: translateX(-100%);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: none;
    }
    #sidebar > .inner {
        width: 280px;
        height: 100%;
        padding: 3em 1.5em 1.5em 1.5em;
    }
    #sidebar.active {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    }

    /* Wrapper doesn't shift — sidebar overlays */
    #wrapper {
        flex-direction: column;
    }

    /* Overlay backdrop when sidebar open */
    #wrapper.sidebar-visible::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }
}

/* Mobile */
@media screen and (max-width: 736px) {
    #main > .inner { padding: 0 1.5em 0.1em 1.5em; }
    #banner { flex-direction: column; }
    .features { grid-template-columns: 1fr; }
    .posts { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.75em; }
    h2 { font-size: 1.35em; }

    #sidebar { width: 260px; }
    #sidebar > .inner { width: 260px; padding: 3em 1.2em 1.2em 1.2em; }

    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .related-grid { grid-template-columns: 1fr; }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    #main > .inner { padding: 0 1em 0.1em 1em; }
    h1 { font-size: 1.5em; }
    .button.big { padding: 0.75em 1.5em; font-size: 0.8em; }
}


/* === Fabrika components === */

/* CTA */
.cta-button {
    display:inline-block; padding:14px 32px;
    background:#10b981; color:#fff !important;
    border-radius:6px; font-weight:600; text-decoration:none;
    transition:all 0.3s;
}
.cta-button:hover { background:#059669; transform:translateY(-1px); }
.cta-block {
    background:rgba(16,185,129,0.08); border:1px solid rgba(16,185,129,0.2);
    border-radius:6px; padding:28px; margin:32px 0; text-align:center;
}
/* Inline banner */
.inline-banner { margin:24px 0; text-align:center; }
.inline-banner img { max-width:100%; border-radius:6px; cursor:pointer; }
/* Sidebar banner */
.sidebar-banner { margin:20px 0; text-align:center; }
.sidebar-banner img { max-width:100%; border-radius:6px; cursor:pointer; }
/* Sticky bottom banner */
.sticky-bottom-banner {
    position:fixed; bottom:0; left:0; right:0; z-index:9999;
    background:#131d24; border-top:1px solid #1c2e38;
    padding:8px 16px; text-align:center; display:flex; align-items:center; justify-content:center; gap:12px;
}
.sticky-bottom-banner img { max-height:60px; cursor:pointer; }
.sticky-bottom-banner .close-btn {
    position:absolute; right:12px; top:50%; transform:translateY(-50%);
    background:none; border:none; color:#d4e0e6; font-size:20px; cursor:pointer;
}
/* Scroll to top */
.scroll-top {
    position:fixed; bottom:24px; right:24px; width:40px; height:40px;
    background:#10b981; color:#fff; border:none; border-radius:50%;
    font-size:18px; cursor:pointer; display:none; z-index:9998;
    align-items:center; justify-content:center;
}
/* Breadcrumb */
.breadcrumb { padding:12px 0; font-size:13px; color:#7a9aaa; }
.breadcrumb a { color:#7a9aaa; text-decoration:none; }
.breadcrumb a:hover { color:#10b981; }
/* Author box */
.author-box {
    display:flex; gap:16px; padding:24px; margin:32px 0;
    background:#131d24; border-radius:6px; border:1px solid #1c2e38;
}
.author-box-avatar {
    width:56px; height:56px; border-radius:50%;
    background:rgba(16,185,129,0.15); display:flex; align-items:center; justify-content:center;
    font-size:20px; font-weight:700; color:#10b981; flex-shrink:0;
}
/* Related articles */
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:16px 0; }
.related-card {
    background:#131d24; border:1px solid #1c2e38; border-radius:6px;
    padding:16px; transition:all 0.2s;
}
.related-card:hover { border-color:#10b981; }
.related-card h4 { font-size:14px; margin:0 0 6px; }
.related-card p { font-size:12px; color:#7a9aaa; margin:0; }
.related-card a { color:#f0fdf4; text-decoration:none; }
/* Search overlay */
.search-overlay {
    position:fixed; top:0; left:0; right:0; bottom:0;
    background:rgba(0,0,0,0.8); z-index:99999; display:none;
    align-items:flex-start; justify-content:center; padding-top:15vh;
}
.search-box {
    background:#131d24; border-radius:6px; padding:24px;
    width:90%; max-width:600px; border:1px solid #1c2e38;
}
.search-box input {
    width:100%; padding:12px 16px; border:1px solid #1c2e38;
    border-radius:6px; font-size:16px; background:#0c1117; color:#d4e0e6;
}
/* Popup */
.popup-overlay {
    position:fixed; top:0; left:0; right:0; bottom:0;
    background:rgba(0,0,0,0.7); z-index:99998; display:none;
    align-items:center; justify-content:center;
}
.popup-box {
    background:#131d24; border-radius:6px; padding:32px;
    max-width:400px; text-align:center; border:1px solid #1c2e38;
}
/* Article meta + share */
.article-meta { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:13px; color:var(--text-muted); margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.meta-sep { opacity:0.4; }
.meta-author strong { color:var(--text); }
.share-buttons { margin-left:auto; display:flex; gap:4px; align-items:center; }
.share-buttons .share-btn { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--bg-card); border:1px solid var(--border); color:var(--text-muted); text-decoration:none; transition:.2s; padding:0; font-weight:normal; }
.share-buttons .share-btn:hover { border-color:var(--accent); color:var(--accent); transform:scale(1.1); opacity:1; }
.share-buttons .share-fb:hover { color:#1877f2; } .share-buttons .share-tg:hover { color:#26a5e4; } .share-buttons .share-wa:hover { color:#25d366; }
/* News cards */
.news-card { padding:16px 0; border-bottom:1px solid var(--border); }
.news-card h3 { font-size:1.1rem; margin:0 0 4px; } .news-card h3 a { color:var(--heading-color); text-decoration:none; } .news-card h3 a:hover { color:var(--accent); }
@media(max-width:768px) {
    .related-grid { grid-template-columns:1fr; }
    .author-box { flex-direction:column; text-align:center; }
    .share-buttons { margin-left:0; margin-top:6px; }
}
/* ── Hub Dashboard (shared) ── */
.dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}
.dash-stat{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-align:center}
.dash-stat-value{font-size:28px;font-weight:800;color:var(--heading-color);font-family:var(--font-heading);line-height:1}
.dash-stat-label{font-size:12px;color:var(--text-muted);margin-top:6px;text-transform:uppercase;letter-spacing:1px}
.dash-sections{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:24px 0}
.dash-section-card{display:flex;align-items:center;gap:16px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-decoration:none;color:inherit;transition:all 0.2s;min-width:0;overflow:hidden}
.dash-section-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.dash-section-icon{font-size:32px;flex-shrink:0;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:var(--bg-card-hover,var(--bg-card));border-radius:var(--radius)}
.dash-section-info{flex:1;min-width:0}
.dash-section-info h3{font-size:16px;color:var(--heading-color);margin:0 0 4px;font-family:var(--font-heading)}
.dash-section-info p{font-size:12px;color:var(--text-muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-section-signal{font-size:12px;font-family:monospace;margin-top:6px;font-weight:600}
.dash-section-signal.sig-up{color:#10b981}.dash-section-signal.sig-down{color:#ef4444}.dash-section-signal.sig-neutral{color:#f59e0b}
.dash-section-signal span{padding:1px 6px;border-radius:3px;font-size:10px;margin-left:4px}
.sig-up span{background:rgba(16,185,129,0.15)}.sig-down span{background:rgba(239,68,68,0.15)}.sig-neutral span{background:rgba(245,158,11,0.15)}
.dash-section-meta{text-align:center;flex-shrink:0}.dash-section-count{display:block;font-size:22px;font-weight:700;color:var(--accent)}.dash-section-meta{font-size:11px;color:var(--text-muted)}
.dash-posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:16px 0 32px}
.dash-post-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-decoration:none;color:inherit;transition:all 0.2s;display:flex;flex-direction:column}
.dash-post-card:hover{border-color:var(--accent);transform:translateY(-2px)}
.dash-post-card h3{font-size:14px;color:var(--heading-color);margin:8px 0;font-family:var(--font-heading);line-height:1.4}
.dash-post-tag{font-size:11px;color:var(--accent);font-weight:600;text-transform:uppercase;letter-spacing:0.5px}
.dash-post-meta{font-size:12px;color:var(--text-muted);margin-top:auto;padding-top:8px}
.dash-signals-hero{margin:24px 0;padding:20px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius)}
.signal-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.signal-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-align:center;transition:border-color 0.2s}
.signal-card:hover{border-color:var(--accent)}
.signal-card.sig-buy{border-left:3px solid #10b981}.signal-card.sig-sell{border-left:3px solid #ef4444}.signal-card.sig-hold{border-left:3px solid #f59e0b}
.sig-pair{font-family:monospace;font-weight:700;font-size:15px;color:var(--heading-color);margin-bottom:4px}
.sig-dir{font-size:11px;font-weight:700;padding:2px 8px;border-radius:4px;display:inline-block;margin-bottom:6px}
.sig-buy .sig-dir{background:rgba(16,185,129,0.15);color:#10b981}.sig-sell .sig-dir{background:rgba(239,68,68,0.15);color:#ef4444}.sig-hold .sig-dir{background:rgba(245,158,11,0.15);color:#f59e0b}
.sig-price{font-family:monospace;font-size:13px;color:var(--text-muted);margin-bottom:4px}
.sig-level{font-size:11px;display:inline-block;padding:1px 6px;border-radius:3px;margin:2px}
.sig-tp{background:rgba(16,185,129,0.1);color:#6ee7b7}.sig-sl{background:rgba(239,68,68,0.1);color:#fca5a5}
.sig-strength{font-size:12px;color:var(--text-muted);margin-top:4px;letter-spacing:2px}
.dash-gauge{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin:16px 0}
.dash-gauge-label{font-size:13px;color:var(--text-muted);margin-bottom:8px}
.dash-gauge-bar{height:8px;background:var(--border);border-radius:4px;overflow:hidden;margin-bottom:8px}
.dash-gauge-fill{height:100%;border-radius:4px;transition:width 0.5s}
.dash-gauge-value{font-size:20px;font-weight:700;font-family:var(--font-heading)}
.dash-calendar{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin:16px 0}
.dash-calendar h3{font-size:14px;color:var(--heading-color);margin:0 0 12px}
.dash-cal-item{display:flex;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px;align-items:center}
.dash-cal-item:last-child{border-bottom:none}
.cal-time{font-family:monospace;color:var(--text-muted);flex-shrink:0;width:50px}
.cal-high .cal-title{color:var(--heading-color);font-weight:600}
.hub-post-page-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--text-muted);margin:8px 0 24px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.hub-post-angle{background:var(--bg-card);padding:2px 8px;border-radius:4px;font-weight:600}
.hub-post-author{font-weight:500}.hub-post-date{opacity:0.7}.hub-post-source{opacity:0.5;font-size:11px}
@media(max-width:768px){
.dash-stats{grid-template-columns:repeat(2,1fr)}
.dash-sections{grid-template-columns:1fr}
.signal-cards-grid{grid-template-columns:repeat(2,1fr)}
.dash-posts-grid{grid-template-columns:1fr}
.dash-section-card{padding:14px;gap:12px}
.dash-section-icon{width:40px;height:40px;font-size:24px}
.dash-section-info{min-width:0;overflow:hidden}
.dash-section-info h3{font-size:14px;word-break:break-word}
.dash-section-info p{white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.dash-section-meta{flex-shrink:0}
}
/* === Sidebar brand logo (above search) === */
.sidebar-brand { text-align:center; }
.sidebar-logo-link { display:inline-block; border:none!important; border-bottom:none!important; text-decoration:none!important; box-shadow:none!important; }
.sidebar-logo-link:hover, .sidebar-logo-link:focus { border:none!important; border-bottom:none!important; text-decoration:none!important; box-shadow:none!important; }
.sidebar-logo-img { height:auto!important; max-height:50px!important; width:auto!important; display:inline-block; border:none!important; }
/* === Mobile header always visible (fixed) — works for both classic (.site-header) and editorial (#header) === */
@media(max-width:768px) {
  .site-header, #main > .inner > #header { position:fixed!important; top:0; left:0; right:0; z-index:100; background:#131d24; border-bottom:1px solid #1c2e38; padding:12px 16px!important; margin:0!important; display:flex!important; align-items:center; justify-content:space-between; }
  body { padding-top:64px!important; }
  /* Neutralize any pre-existing offsets in editorial to avoid double-padding */
  #main > .inner { padding-top:0!important; }
  #main > .inner > #header { margin-bottom:0!important; }
  /* Space first content block so it doesn't sit under the fixed header */
  #main > .inner > section:first-of-type, #main > .inner > .hero, #main > .inner > .breadcrumb { padding-top:20px!important; }
}
/* === Hub-related icon card (for sibling sub-hub cards) === */
.related-articles.hub-related .related-card-img.hub-icon { display:flex; align-items:center; justify-content:center; background:#131d24; height:100px; font-size:40px; }
/* === Sidebar nav sub-sections === */
#menu .nav-sub { list-style:none; padding:4px 0; margin:0 0 0 24px; border-left:2px solid #1c2e38; }
#menu .nav-sub li { margin:0; }
#menu .nav-sub a { font-size:13px; padding:4px 0 4px 14px; display:block; color:#d4e0e6; border-radius:4px; }
#menu .nav-sub a:hover { color:#10b981; }
#menu .nav-sub a.active { color:#10b981; font-weight:600; }

/* === Sidebar: sticky on desktop + pin risk warning to bottom via flex column === */
@media(min-width:1281px) {
  #sidebar { position:sticky!important; top:0; align-self:flex-start; height:100vh!important; overflow:hidden!important; }
  /* Override editorial's overflow-y:auto on .inner */
  #sidebar > .inner { display:flex!important; flex-direction:column!important; height:100vh!important; gap:0; overflow:hidden!important; scrollbar-width:none!important; -ms-overflow-style:none!important; }
  #sidebar > .inner::-webkit-scrollbar { width:0!important; height:0!important; display:none!important; }
  #sidebar nav#menu { flex:1; overflow-y:auto; min-height:0; scrollbar-width:none!important; -ms-overflow-style:none!important; }
  #sidebar nav#menu::-webkit-scrollbar { width:0!important; height:0!important; display:none!important; }
  .sidebar-risk { margin-top:auto; padding-top:1em; flex-shrink:0; font-size:11px; line-height:1.4; }
  /* Hide duplicate logo in main content header (keep only sidebar logo) */
  #main > .inner > #header .logo { display:none!important; }
}

/* === Nav: kill editorial's border-left-on-active + force consistent left alignment === */
/* Nuclear reset of editorial's nav styles */
#sidebar nav#menu ul, #sidebar nav#menu ul li { list-style:none!important; padding:0!important; margin:0!important; border:none!important; }
#sidebar nav#menu ul li a, #sidebar nav#menu ul li a.active { border:none!important; border-left:none!important; border-bottom:none!important; padding-left:12px!important; }

/* Top-level items (flat links + group summaries) — shared left alignment */
#sidebar #menu > ul > li > a { display:block; padding:9px 12px!important; font-size:14px; color:#d4e0e6!important; text-decoration:none!important; border-radius:6px; font-weight:500; transition:background .1s,color .1s; }
#sidebar #menu > ul > li > a:hover { background:rgba(16,185,129,0.08)!important; color:#10b981!important; }
#sidebar #menu > ul > li > a.active { color:#10b981!important; font-weight:600; }

/* Group accordion */
.nav-group-details { border-radius:6px; }
.nav-group-summary { display:flex!important; align-items:center; gap:10px; padding:9px 12px!important; cursor:pointer; list-style:none; user-select:none; font-weight:500; font-size:14px; color:#d4e0e6!important; border-radius:6px; transition:background .1s,color .1s; }
.nav-group-summary::-webkit-details-marker { display:none!important; }
.nav-group-summary::marker { content:''!important; }
.nav-group-summary:hover { background:rgba(16,185,129,0.08)!important; color:#10b981!important; }
.nav-group-label-text { flex:1; }
.nav-group-count { font-size:11px; font-weight:500; color:#d4e0e6; opacity:0.5; padding:0 4px; }
.nav-group-caret { font-size:10px; color:#d4e0e6; opacity:0.4; transition:transform .2s ease; line-height:1; }
.nav-group-details[open] .nav-group-caret { transform:rotate(180deg); }
/* Sub-items at SAME left position as top-level (12px) — user wanted flush left alignment */
.nav-group-items { list-style:none!important; padding:2px 0 6px 0!important; margin:0!important; }
.nav-group-items li { margin:0!important; border:none!important; }
.nav-group-items a, .nav-group-items a.active { display:block; padding:6px 12px!important; padding-left:12px!important; font-size:13px; color:#d4e0e6!important; opacity:0.85; text-decoration:none!important; border-radius:4px; border:none!important; border-left:none!important; border-bottom:none!important; transition:background .1s,color .1s,opacity .1s; }
.nav-group-items a:hover { background:rgba(16,185,129,0.08)!important; color:#10b981!important; opacity:1; }
.nav-group-items a.active { color:#10b981!important; opacity:1; font-weight:600; }
