@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #11141a;
    --bg-card: rgba(20, 24, 33, 0.6);
    --accent: #ff9900;
    --accent-glow: rgba(255, 153, 0, 0.15);
    --accent-hover: #ffb84d;
    --text-primary: #f0f3f6;
    --text-secondary: #a3b3c6;
    --text-muted: #627285;
    --border-color: rgba(255, 153, 0, 0.12);
    --border-hover: rgba(255, 153, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Glassmorphism Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #ff5500 100%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tag {
    font-size: 0.75rem;
    background: rgba(255, 153, 0, 0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 153, 0, 0.08);
    border: 1px solid rgba(255, 153, 0, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 32px;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.module-card.featured::before {
    background: linear-gradient(to right, var(--accent), #ff5500);
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    background: rgba(24, 28, 38, 0.8);
}

.module-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.module-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge-easy {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.badge-medium {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.badge-hard {
    background: rgba(255, 153, 0, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.module-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.module-card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.module-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.module-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.module-card:hover .module-btn {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.module-btn i {
    transition: var(--transition);
}

.module-btn:hover i {
    transform: translateX(4px);
}

/* Amazon Affiliate Card Section */
.amazon-affiliate-card {
    border-top: 3px solid var(--accent);
    background: linear-gradient(145deg, rgba(255, 153, 0, 0.03) 0%, rgba(17, 20, 26, 0.9) 100%);
    padding: 24px;
    border-radius: 16px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 40px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 153, 0, 0.15);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.card-header-flex h2 {
    margin: 0;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-promo {
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent);
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.amazon-desc {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.amz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.amz-item-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 153, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    height: 100%;
}

.amz-item-card:hover {
    background: rgba(255, 153, 0, 0.04);
    border-color: rgba(255, 153, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.15);
}

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

.amz-icon-box {
    background: rgba(255, 153, 0, 0.08);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    border: 1px solid rgba(255, 153, 0, 0.15);
}

.amz-item-card strong {
    color: var(--accent);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
}

.amz-item-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
}

.amz-action-text {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* Footer Section */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--bg-secondary);
}

.footer-links {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .amz-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Selector Dropdown */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 153, 0, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 140px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.lang-dropdown a {
    color: var(--text-secondary);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: rgba(255, 153, 0, 0.08);
    color: var(--accent);
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.lang-selector:hover .lang-dropdown {
    display: block;
}

/* Tools Selector Dropdown */
.tools-selector {
    position: relative;
    display: inline-block;
    margin-right: 12px;
}

.tools-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.tools-btn:hover {
    background: rgba(255, 153, 0, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.tools-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.tools-dropdown a {
    color: var(--text-secondary);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.tools-dropdown a:last-child {
    border-bottom: none;
}

.tools-dropdown a:hover {
    background: rgba(255, 153, 0, 0.08);
    color: var(--accent);
}

.tools-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.tools-selector:hover .tools-dropdown {
    display: block;
}

/* Course List Preview in Module Cards */
.course-list-preview {
    margin-top: 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

.course-list-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-list-preview li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-list-preview i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Mobile Click Fallbacks */
.lang-selector.show-dropdown .lang-dropdown,
.tools-selector.show-dropdown .tools-dropdown {
    display: block;
}

/* Global Link Resets to Prevent Browser Default Blue/Purple Colors */
a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:visited {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

/* Sidebar and Article Double-Column Layout */
.article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 32px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(20, 24, 33, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    color: var(--accent);
    background: rgba(255, 153, 0, 0.05);
}

.sidebar-menu a.active {
    color: var(--accent);
    font-weight: 600;
    background: rgba(255, 153, 0, 0.08);
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
}

.article-content {
    background: rgba(20, 24, 33, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Responsive sidebar */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sidebar {
        position: static;
        width: 100%;
    }
}


/* =========================================================
   GugoPro Academy 2026 knowledge-tree interface
   ========================================================= */
:root {
  --bg-primary: #080b12;
  --bg-secondary: #0d121b;
  --bg-card: rgba(17, 24, 36, .72);
  --bg-elevated: #121b29;
  --line: rgba(160, 181, 210, .14);
  --line-bright: rgba(160, 181, 210, .26);
  --orange: #ff9f43;
  --orange-bright: #ffc15b;
  --blue: #76a7ff;
  --mint: #5cdbbd;
  --violet: #ad9bff;
  --copy: #edf3fb;
  --copy-soft: #a8b6c9;
  --copy-muted: #718096;
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, .42);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--bg-primary); color: var(--copy); font-family: 'DM Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
h1, h2, h3, h4, .logo-text, .section-kicker, .eyebrow, .console-label { font-family: 'Space Grotesk', 'Outfit', sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.site-header { padding: 15px 24px; background: rgba(8, 11, 18, .82); border-bottom: 1px solid var(--line); }
.site-header .nav-container { max-width: 1240px; }
.nav-container { gap: 28px; }
.logo { gap: 12px; }
.logo-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--orange), #ff653e); box-shadow: 0 8px 24px rgba(255, 159, 67, .22); }
.logo-copy { display: flex; align-items: center; gap: 8px; }
.logo-text { font-size: 1.18rem; letter-spacing: -.04em; color: var(--copy); background: none; -webkit-text-fill-color: initial; }
.logo-tag { font-family: 'Space Grotesk', sans-serif; color: var(--orange); background: rgba(255, 159, 67, .1); border: 1px solid rgba(255, 159, 67, .25); border-radius: 99px; padding: 4px 8px; font-size: .65rem; letter-spacing: .1em; }
.primary-nav { display: flex; gap: 26px; margin-left: auto; }
.primary-nav a, .support-link { color: var(--copy-soft); text-decoration: none; font-size: .88rem; transition: color .2s var(--ease); }
.primary-nav a:hover, .support-link:hover { color: var(--orange-bright); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.support-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; }
.support-link i { color: var(--orange); }
.lang-btn { padding: 9px 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--copy-soft); border-radius: 10px; }
.lang-btn i:last-child { font-size: .68rem; }
.mobile-nav-toggle { display: none; background: transparent; border: 0; color: var(--copy); font-size: 1.1rem; }

.hero-shell { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-shell::before { content: ''; position: absolute; inset: 0; opacity: .45; pointer-events: none; background-image: linear-gradient(rgba(121, 153, 197, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(121, 153, 197, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.hero-shell::after { content: ''; position: absolute; right: 6%; top: 22%; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 159, 67, .12), transparent 65%); filter: blur(4px); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; max-width: 1240px; min-height: 590px; padding: 92px 24px 96px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 8%; align-items: center; }
.hero-copy { max-width: 690px; }
.eyebrow, .section-kicker, .sponsor-eyebrow { color: var(--orange); letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 23px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,159,67,.1); }
.hero-copy h1 { margin: 0; max-width: 720px; font-size: clamp(2.9rem, 5vw, 5.2rem); line-height: 1.04; letter-spacing: -.07em; font-weight: 600; }
.hero-copy h1 strong { display: block; color: var(--orange); font-weight: 600; }
.hero-lede { max-width: 620px; color: var(--copy-soft); font-size: 1.08rem; line-height: 1.8; margin: 27px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 10px; border-radius: 11px; padding: 13px 18px; text-decoration: none; font-weight: 700; font-size: .9rem; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #1b1108; box-shadow: 0 12px 30px rgba(255,159,67,.16); }
.button-primary:hover { background: var(--orange-bright); color: #1b1108; }
.button-ghost, .button-outline-light { border: 1px solid var(--line-bright); color: var(--copy); background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: rgba(255,159,67,.55); color: var(--orange-bright); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; color: var(--copy-muted); font-size: .77rem; margin-top: 31px; }
.hero-proof i { color: var(--mint); margin-right: 5px; }
.hero-console { position: relative; border: 1px solid rgba(255, 177, 94, .26); background: linear-gradient(145deg, rgba(22, 30, 44, .85), rgba(9, 13, 21, .78)); border-radius: 22px; padding: 27px; box-shadow: var(--shadow-deep); transform: rotate(1.3deg); }
.hero-console::before { content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.console-top, .console-footer { display: flex; align-items: center; justify-content: space-between; color: var(--copy-muted); font-size: .7rem; letter-spacing: .1em; }
.console-label { color: var(--copy-soft); }
.console-live { color: var(--mint); }
.console-title { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; line-height: 1.12; letter-spacing: -.05em; margin: 58px 0 45px; }
.console-title span { color: var(--orange); }
.console-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.track-line { position: absolute; left: 10%; right: 10%; top: 17px; height: 1px; background: linear-gradient(90deg, var(--orange), rgba(255,159,67,.12)); }
.track-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 11px; color: var(--copy-muted); font-size: .68rem; }
.track-step span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--line-bright); background: var(--bg-secondary); font-weight: 700; }
.track-step.is-current { color: var(--copy); }
.track-step.is-current span { background: var(--orange); color: #1b1108; border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255,159,67,.12); }
.console-footer { margin-top: 58px; padding-top: 17px; border-top: 1px solid var(--line); letter-spacing: 0; }
.console-footer span:last-child { color: var(--orange); }

.container { max-width: 1240px; }
.section-block { padding-top: 100px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading-row h2 { margin: 9px 0 10px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -.06em; }
.section-heading-row p { max-width: 690px; margin: 0; color: var(--copy-soft); font-size: .95rem; }
.section-heading-row.compact { align-items: end; }
.section-link { flex: 0 0 auto; color: var(--orange); text-decoration: none; font-weight: 700; font-size: .88rem; }
.section-link:hover { color: var(--orange-bright); }
.tree-count { display: flex; align-items: baseline; gap: 8px; border-left: 1px solid var(--line-bright); padding-left: 20px; color: var(--copy-muted); white-space: nowrap; }
.tree-count strong { color: var(--orange); font-family: 'Space Grotesk'; font-size: 2.3rem; letter-spacing: -.08em; }
.tree-count span { font-size: .75rem; }
.tree-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.search-box { min-width: min(360px, 100%); display: flex; align-items: center; gap: 10px; padding: 12px 13px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 11px; color: var(--copy-muted); }
.search-box:focus-within { border-color: rgba(255,159,67,.6); box-shadow: 0 0 0 3px rgba(255,159,67,.08); }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--copy); outline: 0; font-size: .86rem; }
.search-box input::placeholder { color: var(--copy-muted); }
kbd { color: var(--copy-muted); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: .68rem; }
.tree-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { border: 1px solid var(--line); background: transparent; color: var(--copy-muted); border-radius: 99px; padding: 9px 11px; cursor: pointer; font-size: .76rem; transition: all .2s var(--ease); }
.filter-chip span { color: var(--copy-muted); margin-left: 4px; }
.filter-chip:hover, .filter-chip.is-active { border-color: rgba(255,159,67,.5); color: var(--orange-bright); background: rgba(255,159,67,.08); }
.knowledge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.knowledge-card { --card-accent: var(--orange); position: relative; min-height: 292px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(20,29,43,.76), rgba(11,16,25,.84)); overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.knowledge-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--card-accent); opacity: .85; }
.knowledge-card::after { content: ''; position: absolute; width: 130px; height: 130px; right: -60px; top: -62px; background: var(--card-accent); opacity: .06; border-radius: 50%; filter: blur(6px); }
.knowledge-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--card-accent), white 10%); background: linear-gradient(145deg, rgba(27,38,55,.9), rgba(12,18,28,.92)); }
.card-index { position: absolute; right: 18px; top: 18px; font-family: 'Space Grotesk'; font-size: .68rem; color: var(--copy-muted); }
.card-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--card-accent), transparent 86%); color: var(--card-accent); border: 1px solid color-mix(in srgb, var(--card-accent), transparent 70%); margin-bottom: 21px; }
.card-topline { display: flex; justify-content: space-between; gap: 8px; color: var(--card-accent); font-size: .66rem; letter-spacing: .08em; font-weight: 700; }
.card-status { color: var(--copy-muted); letter-spacing: .06em; font-size: .59rem; }
.knowledge-card h3 { margin: 10px 0 8px; font-size: 1.15rem; letter-spacing: -.04em; }
.knowledge-card p { min-height: 70px; margin: 0; color: var(--copy-soft); font-size: .82rem; line-height: 1.65; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0 17px; }
.topic-tags span { padding: 4px 7px; border-radius: 5px; color: var(--copy-muted); background: rgba(255,255,255,.045); font-size: .64rem; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: var(--card-accent); font-weight: 700; font-size: .76rem; text-decoration: none; }
.text-link i { transition: transform .2s var(--ease); }
.text-link:hover { color: var(--card-accent); }
.text-link:hover i { transform: translateX(4px); }
.tone-orange { --card-accent: #ff9f43; }.tone-blue { --card-accent: #76a7ff; }.tone-violet { --card-accent: #ad9bff; }.tone-cyan { --card-accent: #5cdbbd; }.tone-green { --card-accent: #86d98e; }.tone-yellow { --card-accent: #e8cf72; }.tone-gold { --card-accent: #ffbf5b; }.tone-red { --card-accent: #ff887a; }.tone-pink { --card-accent: #f39ac8; }.tone-purple { --card-accent: #ba9aff; }.tone-indigo { --card-accent: #8fa8ff; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-bright); border-radius: 16px; color: var(--copy-muted); }.empty-state i { color: var(--orange); font-size: 1.6rem; }.empty-state h3 { margin: 14px 0 5px; color: var(--copy); }.empty-state p { margin: 0; font-size: .86rem; }

.tool-preview-section { border-top: 1px solid var(--line); margin-top: 105px; }
.tool-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.tool-feature-card { min-height: 300px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,24,36,.6); text-decoration: none; transition: all .25s var(--ease); }
.tool-feature-card:hover { transform: translateY(-4px); border-color: rgba(118,167,255,.5); background: rgba(22,34,53,.75); }.featured-tool { border-color: rgba(255,159,67,.4); background: linear-gradient(155deg, rgba(64,42,24,.4), rgba(17,24,36,.7)); }.featured-tool:hover { border-color: var(--orange); }
.feature-number { color: var(--copy-muted); font-family: 'Space Grotesk'; font-size: .67rem; }.feature-icon { width: 39px; height: 39px; display: grid; place-items: center; margin: 33px 0 18px; border-radius: 10px; background: rgba(118,167,255,.1); color: var(--blue); }.featured-tool .feature-icon { background: rgba(255,159,67,.1); color: var(--orange); }
.feature-label { color: var(--copy-muted); font-size: .68rem; letter-spacing: .1em; }.tool-feature-card h3 { margin: 8px 0 10px; font-size: 1.1rem; letter-spacing: -.04em; }.tool-feature-card p { margin: 0; color: var(--copy-soft); font-size: .82rem; line-height: 1.65; }.feature-cta { margin-top: auto; padding-top: 20px; color: var(--orange); font-size: .77rem; font-weight: 700; }.feature-cta i { margin-left: 4px; }

.reading-section { border-top: 1px solid var(--line); margin-top: 105px; }
.reading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.reading-card { display: flex; flex-direction: column; min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(20,29,43,.7), rgba(10,15,23,.85)); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }.reading-card:hover { transform: translateY(-3px); border-color: rgba(255,159,67,.46); }.reading-mark { color: var(--orange); font-family: 'Space Grotesk'; font-size: .65rem; letter-spacing: .1em; }.reading-card h3 { margin: 24px 0 10px; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.04em; }.reading-card p { margin: 0; color: var(--copy-soft); font-size: .82rem; line-height: 1.65; }.reading-card span { margin-top: auto; padding-top: 20px; color: var(--orange); font-size: .76rem; font-weight: 700; }

.sponsor-stack { padding-top: 105px; padding-bottom: 92px; }
.sponsor-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 13px; }.tradingview-cta, .support-cta { min-height: 300px; padding: 29px; border-radius: 18px; }.tradingview-cta { background: linear-gradient(135deg, #12334b, #0d1b2b 70%); border: 1px solid rgba(118,167,255,.35); }.support-cta { background: linear-gradient(135deg, #3a2a1d, #191620 72%); border: 1px solid rgba(255,159,67,.33); }.sponsor-eyebrow { color: var(--copy-muted); }.tradingview-cta .sponsor-eyebrow { color: var(--blue); }.support-cta .sponsor-eyebrow { color: var(--orange); }.tradingview-cta h2, .support-cta h2 { max-width: 460px; margin: 23px 0 10px; font-size: 1.65rem; letter-spacing: -.06em; }.tradingview-cta p, .support-cta p { max-width: 520px; color: var(--copy-soft); font-size: .86rem; line-height: 1.65; }.button-light { margin-top: 13px; color: #09131d; background: var(--blue); }.button-light:hover { color: #09131d; background: #a6c7ff; }.button-outline-light { margin-top: 13px; color: var(--orange-bright); border-color: rgba(255,159,67,.4); }.button-outline-light:hover { color: #1b1108; background: var(--orange); }.tradingview-cta small, .support-cta small { display: block; margin-top: 15px; color: var(--copy-muted); font-size: .68rem; }
.amazon-hub { margin-top: 13px; padding: 29px; border: 1px solid rgba(255,159,67,.25); border-radius: 18px; background: linear-gradient(145deg, rgba(30,27,25,.8), rgba(14,18,27,.85)); }.hub-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }.hub-head h2 { margin: 10px 0 0; font-size: 1.55rem; letter-spacing: -.05em; }.affiliate-note { color: var(--copy-muted); font-size: .7rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; }.amazon-hub > p { max-width: 720px; color: var(--copy-soft); font-size: .84rem; line-height: 1.6; }.amazon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 25px; }.amazon-grid a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }.amazon-grid a:hover { border-color: rgba(255,159,67,.55); background: rgba(255,159,67,.06); }.book-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--orange); background: rgba(255,159,67,.1); border-radius: 8px; }.amazon-grid strong, .amazon-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.amazon-grid strong { color: var(--copy); font-size: .75rem; }.amazon-grid small { color: var(--copy-muted); font-size: .64rem; margin-top: 3px; }.amazon-grid a > i { margin-left: auto; color: var(--copy-muted); font-size: .7rem; }
.site-footer { padding: 46px 24px 23px; background: #0a0e16; border-top: 1px solid var(--line); }.footer-inner { max-width: 1240px; display: flex; justify-content: space-between; gap: 60px; margin: 0 auto; }.footer-brand p { max-width: 220px; color: var(--copy-muted); font-size: .77rem; margin-top: 14px; }.footer-nav { display: flex; gap: clamp(35px, 8vw, 100px); }.footer-nav div { display: flex; flex-direction: column; gap: 9px; }.footer-nav strong { color: var(--copy); font-size: .74rem; margin-bottom: 4px; }.footer-nav a { color: var(--copy-muted); text-decoration: none; font-size: .74rem; }.footer-nav a:hover { color: var(--orange); }.footer-bottom { max-width: 1240px; display: flex; justify-content: space-between; gap: 20px; margin: 40px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--copy-muted); font-size: .68rem; }

/* Guide article pages */
.guide-page main { max-width: 1240px; padding-top: 55px; }.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }.guide-sidebar { position: sticky; top: 90px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: rgba(15,22,33,.7); }.guide-sidebar .section-kicker { margin-bottom: 14px; }.guide-sidebar a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--copy-muted); font-size: .78rem; text-decoration: none; }.guide-sidebar a:hover, .guide-sidebar a.active { color: var(--orange); background: rgba(255,159,67,.08); }.guide-content { min-width: 0; }.guide-hero { padding: 35px 38px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(26,35,51,.85), rgba(12,17,26,.9)); }.guide-hero h1 { max-width: 800px; margin: 14px 0; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.06; letter-spacing: -.065em; }.guide-hero p { max-width: 760px; margin: 0; color: var(--copy-soft); line-height: 1.75; }.guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }.guide-meta span { color: var(--copy-muted); border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; font-size: .68rem; }.guide-body { padding: 34px 38px; border: 1px solid var(--line); border-radius: 19px; margin-top: 13px; background: rgba(14,20,30,.62); }.guide-body h2 { margin: 30px 0 12px; font-size: 1.45rem; letter-spacing: -.045em; }.guide-body h2:first-child { margin-top: 0; }.guide-body h3 { margin: 22px 0 8px; font-size: 1rem; }.guide-body p { color: var(--copy-soft); line-height: 1.8; font-size: .9rem; }.guide-body ul { padding-left: 20px; color: var(--copy-soft); line-height: 1.8; font-size: .88rem; }.guide-body li::marker { color: var(--orange); }.guide-callout { margin: 22px 0; padding: 16px 18px; border-left: 2px solid var(--orange); background: rgba(255,159,67,.06); color: var(--copy-soft); font-size: .86rem; line-height: 1.7; }.guide-table { width: 100%; border-collapse: collapse; margin: 17px 0 25px; font-size: .82rem; }.guide-table th, .guide-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }.guide-table th { color: var(--orange); font-weight: 700; }.guide-table td { color: var(--copy-soft); }.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding: 20px; border: 1px solid rgba(118,167,255,.3); border-radius: 15px; background: rgba(30,63,92,.28); }.guide-cta h3 { margin: 0 0 6px; color: var(--copy); }.guide-cta p { margin: 0; font-size: .78rem; }.guide-cta a { flex: 0 0 auto; }.guide-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }.guide-tools a { color: var(--orange); font-size: .76rem; border: 1px solid rgba(255,159,67,.32); border-radius: 8px; padding: 8px 10px; text-decoration: none; }.guide-tools a:hover { background: rgba(255,159,67,.1); }

/* New tool workbench */
.tools-page main { padding-top: 55px; }.tools-hero { max-width: 800px; margin-bottom: 34px; }.tools-hero h1 { margin: 14px 0; font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.07em; line-height: 1.04; }.tools-hero p { color: var(--copy-soft); line-height: 1.75; }.tool-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); margin-bottom: 13px; }.tool-tabs button { flex: 1 0 auto; border: 0; border-radius: 8px; padding: 10px 11px; background: transparent; color: var(--copy-muted); cursor: pointer; font-size: .76rem; }.tool-tabs button:hover, .tool-tabs button.active { color: #17100a; background: var(--orange); }.advanced-tool-panel { display: none; padding: 30px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(20,29,43,.76), rgba(11,16,25,.88)); }.advanced-tool-panel.active { display: block; animation: tool-in .25s var(--ease); }.advanced-tool-panel h2 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -.05em; }.tool-note { color: var(--copy-muted); font-size: .8rem; line-height: 1.65; }.tool-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 23px 0; }.tool-form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--copy-soft); font-size: .75rem; }.tool-form-grid input, .tool-form-grid select { width: 100%; padding: 11px 12px; color: var(--copy); background: rgba(5,9,15,.72); border: 1px solid var(--line-bright); border-radius: 9px; }.tool-form-grid input:focus, .tool-form-grid select:focus { border-color: var(--orange); outline: 0; }.tool-calc-button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 0; border-radius: 9px; background: var(--orange); color: #1b1108; font-weight: 700; cursor: pointer; }.tool-calc-button:hover { background: var(--orange-bright); }.tool-result { min-height: 50px; margin-top: 18px; padding: 15px; border: 1px solid rgba(92,219,189,.25); border-radius: 10px; background: rgba(92,219,189,.06); color: var(--mint); font-size: .86rem; line-height: 1.7; }.tool-warning { border-color: rgba(255,136,122,.3); background: rgba(255,136,122,.06); color: #ffaaa0; }.tool-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }.tool-detail-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }.tool-detail-card h3 { margin: 0 0 8px; font-size: .95rem; }.tool-detail-card p { margin: 0; color: var(--copy-muted); font-size: .78rem; line-height: 1.7; }.tool-disclaimer { margin-top: 20px; color: var(--copy-muted); font-size: .7rem; line-height: 1.6; }
@keyframes tool-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1040px) { .knowledge-grid, .tool-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.amazon-grid { grid-template-columns: repeat(2, 1fr); }.hero-grid { gap: 5%; }.primary-nav { gap: 15px; } }
@media (max-width: 820px) { .primary-nav { display: none; }.mobile-nav-toggle { display: block; }.nav-actions { margin-left: auto; }.hero-grid { grid-template-columns: 1fr; padding-top: 65px; }.hero-console { max-width: 600px; width: 100%; transform: none; }.knowledge-grid, .tool-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.tree-toolbar { align-items: stretch; flex-direction: column; }.search-box { width: 100%; }.sponsor-grid, .guide-layout { grid-template-columns: 1fr; }.guide-sidebar { position: static; }.guide-sidebar a { display: inline-block; }.tool-form-grid { grid-template-columns: repeat(2, 1fr); }.footer-inner { flex-direction: column; gap: 28px; } }
@media (max-width: 560px) { .site-header { padding: 12px 16px; }.logo-tag { display: none; }.support-link span { display: none; }.support-link { padding: 9px 10px; }.hero-grid { padding: 55px 18px 70px; }.hero-copy h1 { font-size: 2.85rem; }.hero-lede { font-size: .94rem; }.hero-proof { gap: 10px; flex-direction: column; }.hero-console { padding: 21px; }.console-title { font-size: 1.65rem; margin: 45px 0 35px; }.console-footer { margin-top: 42px; }.section-block, .sponsor-stack { padding-top: 72px; }.section-heading-row { align-items: start; flex-direction: column; }.tree-count { border-left: 0; padding-left: 0; }.knowledge-grid, .tool-feature-grid, .reading-grid, .amazon-grid { grid-template-columns: 1fr; }.knowledge-card { min-height: 260px; }.sponsor-grid { grid-template-columns: 1fr; }.tradingview-cta, .support-cta, .amazon-hub { padding: 22px; }.hub-head { flex-direction: column; }.footer-nav { flex-wrap: wrap; gap: 26px; }.footer-bottom { flex-direction: column; margin-top: 28px; }.guide-page main, .tools-page main { padding-top: 30px; }.guide-hero, .guide-body, .advanced-tool-panel { padding: 23px 19px; }.guide-hero h1, .tools-hero h1 { font-size: 2.4rem; }.guide-cta { align-items: start; flex-direction: column; }.tool-form-grid, .tool-detail-grid { grid-template-columns: 1fr; }.api-key-row { flex-direction: column; } }

@media (max-width: 820px) {
  .primary-nav.is-open { position: absolute; top: 68px; left: 16px; right: 16px; display: flex; flex-direction: column; gap: 0; padding: 8px; border: 1px solid var(--line-bright); border-radius: 12px; background: rgba(13,18,27,.98); box-shadow: var(--shadow-deep); }
  .primary-nav.is-open a { padding: 11px 12px; border-radius: 8px; }
  .site-header .nav-container { position: relative; }
}

/* Shared resource CTA injected into legacy article and tool pages */
.resource-strip { max-width: 1200px; margin: 28px auto 0; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid rgba(118,167,255,.3); border-radius: 15px; background: linear-gradient(135deg, rgba(30,63,92,.28), rgba(17,24,36,.65)); }
.resource-strip h2 { margin: 8px 0 4px; color: var(--text-primary, #edf3fb); font-family: 'Space Grotesk', 'Outfit', sans-serif; font-size: 1.2rem; letter-spacing: -.04em; }
.resource-strip p { margin: 0; color: var(--text-secondary, #a8b6c9); font-size: .8rem; line-height: 1.6; }
.resource-strip .button { flex: 0 0 auto; }
@media (max-width: 620px) { .resource-strip { margin-left: 16px; margin-right: 16px; align-items: flex-start; flex-direction: column; } }

/* 2026 deep-content layout fixes: compact global header and non-sticky article hero */
.site-header, body > header { padding: 9px 20px; min-height: 58px; }
.site-header .logo-icon, body > header .logo-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 1rem; }
.site-header .logo-text, body > header .logo-text { font-size: 1.15rem; }
.site-header .primary-nav, body > header nav { gap: 18px; }
.site-header .nav-actions, body > header .nav-actions { gap: 10px; }
.guide-content > header.guide-hero { position: relative; top: auto; z-index: auto; backdrop-filter: none; -webkit-backdrop-filter: none; }
.guide-hero { padding: clamp(24px, 4vw, 42px) clamp(20px, 4vw, 48px); }
.guide-hero h1 { font-size: clamp(2rem, 3.8vw, 3.55rem); line-height: 1.08; max-width: 900px; }
.hero-shell { padding-top: clamp(54px, 7vw, 84px); padding-bottom: clamp(58px, 8vw, 92px); min-height: auto; }
.hero-copy h1 { font-size: clamp(2.35rem, 5.4vw, 4.75rem); line-height: 1.02; max-width: 800px; }
.hero-copy p { max-width: 660px; font-size: clamp(.95rem, 1.2vw, 1.08rem); }
.guide-body { max-width: 980px; }
.guide-body section { margin-bottom: 34px; }
.guide-body section h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); margin-bottom: 12px; }
.guide-body p { font-size: 1rem; line-height: 1.9; }
.guide-table { width: 100%; min-width: 640px; }
.guide-table-wrap { overflow-x: auto; }
.guide-references { border-top: 1px solid var(--line, rgba(255,255,255,.1)); padding-top: 28px; }
.guide-references li { margin: 8px 0; }
.guide-sidebar-tool { color: var(--orange, #ff9f43); margin-top: 10px; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }

/* Standalone R:R calculator */
.rr-main { max-width: 1180px; margin: 0 auto; padding: 26px 22px 72px; }
.rr-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--text-muted, #718096); font-size: .78rem; margin-bottom: 22px; }
.rr-breadcrumb a { color: var(--text-secondary, #a8b6c9); }
.rr-breadcrumb a:hover { color: var(--orange, #ff9f43); }
.rr-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 20px; background: linear-gradient(135deg, rgba(255,159,67,.11), rgba(15,22,33,.92) 45%, rgba(20,38,53,.75)); }
.rr-hero h1 { margin: 10px 0 12px; max-width: 740px; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.055em; }
.rr-hero p { max-width: 720px; color: var(--text-secondary, #a8b6c9); line-height: 1.8; }
.rr-hero-mark { display: grid; place-items: center; width: 150px; height: 150px; flex: 0 0 auto; border: 1px solid rgba(255,159,67,.45); border-radius: 50%; background: rgba(255,159,67,.08); box-shadow: 0 0 50px rgba(255,159,67,.14); }
.rr-hero-mark span { color: var(--orange, #ff9f43); font: 700 2.8rem/1 'Space Grotesk', sans-serif; }
.rr-hero-mark small { color: var(--text-muted, #718096); margin-top: -36px; font-size: .67rem; }
.rr-tool-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; margin-top: 20px; }
.rr-form-card, .rr-result-card, .rr-method { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 16px; background: rgba(15,22,33,.8); padding: clamp(22px, 3vw, 34px); }
.rr-form-card h2, .rr-result-card h2 { margin: 7px 0 8px; font-size: 1.55rem; }
.rr-help { color: var(--text-secondary, #a8b6c9); font-size: .86rem; line-height: 1.7; margin-bottom: 22px; }
.rr-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rr-input-grid label { display: grid; gap: 7px; color: var(--text-secondary, #a8b6c9); font-size: .82rem; }
.rr-input-grid input { width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; padding: 12px 13px; color: var(--text-primary, #edf3fb); background: rgba(255,255,255,.045); font: inherit; outline: none; }
.rr-input-grid input:focus { border-color: var(--orange, #ff9f43); box-shadow: 0 0 0 3px rgba(255,159,67,.12); }
.rr-form-note { display: flex; gap: 9px; margin-top: 22px; color: var(--text-muted, #718096); font-size: .76rem; line-height: 1.6; }
.rr-form-note i { color: var(--orange, #ff9f43); margin-top: 3px; }
.rr-direction { display: inline-flex; border: 1px solid rgba(86,220,189,.28); border-radius: 999px; padding: 6px 10px; color: #74e4c8; font-size: .76rem; margin: 8px 0 18px; }
.rr-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.rr-stat-grid > div { padding: 14px; border-radius: 11px; background: rgba(255,255,255,.045); }
.rr-stat-grid span { display: block; color: var(--text-muted, #718096); font-size: .72rem; margin-bottom: 7px; }
.rr-stat-grid strong { color: var(--text-primary, #edf3fb); font: 600 1.18rem/1.2 'Space Grotesk', sans-serif; }
.rr-result-message { min-height: 64px; margin-top: 18px; padding: 13px 15px; color: var(--text-secondary, #a8b6c9); border: 1px solid rgba(255,159,67,.2); border-radius: 10px; background: rgba(255,159,67,.06); font-size: .8rem; line-height: 1.65; }
.rr-method { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; }
.rr-method h2 { font-size: 1.3rem; margin: 8px 0; }
.rr-method p { color: var(--text-secondary, #a8b6c9); font-size: .86rem; line-height: 1.8; max-width: 760px; }
.rr-method code { color: var(--orange, #ff9f43); }
@media (max-width: 780px) { .rr-hero { align-items: flex-start; flex-direction: column; } .rr-hero-mark { width: 96px; height: 96px; } .rr-hero-mark span { font-size: 1.8rem; } .rr-hero-mark small { margin-top: -23px; } .rr-tool-shell { grid-template-columns: 1fr; } .rr-method { align-items: flex-start; flex-direction: column; } }
@media (max-width: 520px) { .site-header, body > header { padding: 8px 14px; } .site-header .primary-nav, body > header nav { display: none; } .rr-main { padding-left: 14px; padding-right: 14px; } .rr-input-grid, .rr-stat-grid { grid-template-columns: 1fr; } .rr-hero { padding: 24px 20px; } .rr-hero h1 { font-size: 2.2rem; } }

/* Legal and editorial pages */
.legal-main { max-width: 980px; margin: 0 auto; padding: 42px 22px 76px; }
.legal-card { padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 18px; background: linear-gradient(145deg, rgba(17,26,39,.92), rgba(10,15,23,.8)); }
.legal-card h1 { margin: 10px 0 15px; font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.05em; }
.legal-card h2 { margin: 34px 0 10px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.legal-card p { color: var(--text-secondary, #a8b6c9); font-size: .96rem; line-height: 1.9; }
.legal-lead { max-width: 780px; color: var(--text-primary, #edf3fb) !important; font-size: 1.08rem !important; }
.legal-updated { color: var(--orange, #ff9f43) !important; font-size: .78rem !important; margin-top: 16px; }
.legal-card code { color: var(--orange, #ff9f43); background: rgba(255,159,67,.08); padding: 2px 5px; border-radius: 4px; }
.legal-card a { color: var(--orange, #ffb15c); text-decoration: underline; text-underline-offset: 3px; }
.legal-card li { color: var(--text-secondary, #a8b6c9); line-height: 1.8; margin: 7px 0; }
.legal-sources { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.about-principles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.about-principles > div { padding: 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); }
.about-principles strong { color: var(--text-primary, #edf3fb); }
.about-principles p { margin-top: 7px; font-size: .86rem; line-height: 1.7; }
@media (max-width: 560px) { .legal-main { padding-left: 14px; padding-right: 14px; } .about-principles { grid-template-columns: 1fr; } }

/* Live R:R market map */
.rr-chart-page .rr-main { max-width: 1240px; }
.rr-chart-hero { margin-bottom: 14px; }
.rr-chart-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.rr-market-toolbar { display: flex; gap: 20px; justify-content: space-between; align-items: end; margin: 20px 0 14px; padding: 18px 20px; background: rgba(13, 24, 37, .9); border: 1px solid var(--line); border-radius: 15px; }
.rr-search-wrap { position: relative; flex: 1; min-width: 0; }
.rr-search-wrap > label, .rr-market-settings label { display: block; color: var(--copy-muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.rr-search-line { display: flex; gap: 9px; align-items: center; }
.rr-search-line > i { color: var(--orange); margin-left: 12px; margin-right: -31px; z-index: 1; pointer-events: none; }
.rr-search-line input { flex: 1; min-width: 0; padding: 12px 14px 12px 34px; border-radius: 9px; border: 1px solid rgba(171, 200, 232, .18); color: var(--copy); background: rgba(255,255,255,.045); outline: 0; font: inherit; }
.rr-search-line input:focus { border-color: rgba(255, 159, 67, .8); box-shadow: 0 0 0 3px rgba(255,159,67,.09); }
.rr-search-line .button { white-space: nowrap; margin: 0; }
.rr-suggestions { display: none; position: absolute; z-index: 20; left: 0; right: 112px; top: 70px; background: #111e2e; border: 1px solid rgba(171, 200, 232, .24); border-radius: 10px; box-shadow: 0 18px 45px rgba(0,0,0,.35); overflow: hidden; }
.rr-suggestions.is-visible { display: block; }
.rr-suggestions button { display: flex; width: 100%; gap: 12px; align-items: center; padding: 10px 13px; background: transparent; color: var(--copy); border: 0; text-align: left; font: inherit; }
.rr-suggestions button:hover, .rr-suggestions button:focus { background: rgba(255,159,67,.11); outline: 0; }
.rr-suggestions b { min-width: 78px; color: var(--orange-bright); font-family: 'Space Grotesk', sans-serif; }
.rr-suggestions span { color: var(--copy-soft); font-size: .8rem; }
.rr-market-settings { min-width: 190px; }
.rr-market-settings select { width: 100%; display: block; padding: 11px 12px; border: 1px solid rgba(171, 200, 232, .18); border-radius: 9px; background: #111e2e; color: var(--copy); font: inherit; }
.rr-data-source { display: flex; gap: 7px; align-items: center; margin-top: 10px; color: var(--copy-muted); font-size: .7rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #68d7ac; box-shadow: 0 0 0 4px rgba(104,215,172,.1); }
.rr-chart-shell { position: relative; overflow: hidden; padding: 19px 20px 13px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,31,48,.98), rgba(10,20,31,.96)); }
.rr-chart-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; position: relative; z-index: 5; }
.rr-chart-head h2 { margin: 7px 0 0; font-size: 1.65rem; letter-spacing: -.04em; }
.rr-chart-head h2 small { margin-left: 6px; color: var(--copy-muted); font-size: .72rem; font-family: 'DM Sans', sans-serif; letter-spacing: 0; font-weight: 400; }
.rr-chart-legend { display: flex; gap: 12px; color: var(--copy-muted); font-size: .7rem; }
.rr-chart-legend span::before { content: ''; display: inline-block; width: 18px; border-top: 2px solid currentColor; margin: 0 5px 3px 0; }
.rr-chart-legend .legend-entry { color: #7ed6b0; }.rr-chart-legend .legend-stop { color: #f56f62; }.rr-chart-legend .legend-target { color: #ffb25f; }
.rr-chart-canvas { height: 430px; margin-top: 5px; }
.rr-chart-empty { position: absolute; inset: 74px 20px 35px; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--copy-muted); background: rgba(8, 16, 26, .73); border-radius: 10px; text-align: center; }
.rr-chart-empty.is-visible { display: flex; }
.rr-chart-empty i { color: var(--orange); font-size: 1.8rem; }
.rr-chart-empty strong { color: var(--copy); font-size: 1rem; }
.rr-chart-empty span { max-width: 440px; font-size: .75rem; line-height: 1.6; }
.rr-chart-caption { margin: 3px 0 0; color: var(--copy-muted); font-size: .7rem; line-height: 1.55; }
.rr-chart-caption i { color: var(--orange); margin-right: 5px; }
.rr-chart-labels, .rr-chart-zones { position: absolute; pointer-events: none; left: 20px; right: 76px; top: 74px; height: 430px; z-index: 3; }
.rr-zone { position: absolute; left: 0; right: 0; opacity: .1; border-top: 1px dashed; border-bottom: 1px dashed; }
.rr-zone-profit { background: #56d19e; border-color: #7ed6b0; }.rr-zone-loss { background: #f56f62; border-color: #f56f62; }
.rr-drag-line { position: absolute; left: 0; right: 0; height: 24px; transform: translateY(-50%); display: flex; align-items: center; pointer-events: auto; cursor: ns-resize; touch-action: none; }
.rr-line-dash { border-top: 2px dashed var(--marker-color); flex: 1; opacity: .9; }
.rr-marker-label { min-width: 82px; padding: 4px 7px; border: 1px solid var(--marker-color); color: var(--marker-color); background: rgba(9, 18, 28, .95); border-radius: 5px; font: 600 .65rem 'DM Sans', sans-serif; text-align: left; cursor: ns-resize; }
.rr-marker-label b { font-family: 'Space Grotesk', sans-serif; float: right; margin-left: 5px; }
.rr-analysis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.rr-analysis-grid .rr-form-card, .rr-analysis-grid .rr-result-card { min-height: 0; }
.rr-input-grid label > span { display: block; margin-bottom: 6px; color: var(--copy-soft); font-size: .72rem; }
.rr-input-grid .entry-label { color: #7ed6b0; }.rr-input-grid .stop-label { color: #f56f62; }.rr-input-grid .target-label { color: #ffb25f; }
.rr-support-resistance { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: center; margin-top: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13, 24, 37, .85); }
.rr-support-resistance h2 { margin: 7px 0 8px; font-size: 1.55rem; }.rr-support-resistance p { color: var(--copy-soft); font-size: .82rem; line-height: 1.65; }
.rr-level-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.level-card { min-height: 112px; padding: 14px; border: 1px solid rgba(171, 200, 232, .15); border-radius: 11px; background: rgba(255,255,255,.035); }.level-card span { display: block; color: var(--copy-muted); font-size: .68rem; }.level-card strong { display: block; margin: 10px 0 12px; color: var(--copy); font: 700 1.3rem 'Space Grotesk', sans-serif; }.level-card button { padding: 5px 8px; border: 1px solid currentColor; border-radius: 5px; background: transparent; font: inherit; font-size: .66rem; cursor: pointer; }.support-level { color: #7ed6b0; }.resistance-level { color: #ffb25f; }.volatility-level { color: #a9b6c8; }.volatility-level small { display: block; color: var(--copy-muted); font-size: .64rem; line-height: 1.4; }
.tool-resource-strip { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 14px; }.resource-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13, 24, 37, .82); }.resource-tradingview { background: linear-gradient(135deg, rgba(20, 56, 77, .9), rgba(13, 26, 40, .95)); border-color: rgba(118,167,255,.32); }.resource-card h3 { margin: 8px 0; font-size: 1.1rem; }.resource-card p { color: var(--copy-soft); font-size: .78rem; line-height: 1.65; max-width: 600px; }.resource-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 13px; }.resource-links a { color: var(--orange-bright); font-size: .75rem; }
.rr-chart-page .tool-disclaimer { margin: 15px 0 0; }
body.is-dragging-price, body.is-dragging-price * { cursor: ns-resize !important; user-select: none; }
@media (max-width: 820px) { .rr-market-toolbar, .rr-support-resistance { grid-template-columns: 1fr; display: grid; align-items: stretch; }.rr-market-settings { min-width: 0; }.rr-chart-canvas { height: 360px; }.rr-chart-labels, .rr-chart-zones { height: 360px; top: 74px; right: 66px; }.tool-resource-strip { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rr-chart-hero h1 { font-size: 2.15rem; }.rr-market-toolbar { padding: 14px; }.rr-search-line { flex-wrap: wrap; }.rr-search-line input { min-width: calc(100% - 45px); }.rr-search-line .button { width: 100%; }.rr-suggestions { right: 0; top: 108px; }.rr-chart-shell { padding: 15px 12px 11px; }.rr-chart-head { align-items: start; flex-direction: column; gap: 8px; }.rr-chart-canvas { height: 300px; }.rr-chart-labels, .rr-chart-zones { left: 12px; right: 54px; top: 102px; height: 300px; }.rr-marker-label { min-width: 67px; font-size: .58rem; }.rr-marker-label b { display: block; float: none; margin: 2px 0 0; }.rr-level-cards { grid-template-columns: 1fr; }.rr-support-resistance, .resource-card { padding: 17px; } }

/* Advanced market tools */
.market-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 24px; }
.market-tool-card { position: relative; display: flex; min-height: 230px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(16,31,48,.94), rgba(11,20,31,.96)); color: var(--copy); text-decoration: none; overflow: hidden; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.market-tool-card::after { content: ''; position: absolute; width: 140px; height: 140px; right: -52px; top: -52px; border-radius: 50%; border: 1px solid rgba(126, 214, 176, .14); }
.market-tool-card:hover { transform: translateY(-3px); border-color: rgba(255,159,67,.52); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.featured-market-tool { border-color: rgba(255,159,67,.44); background: linear-gradient(145deg, rgba(54,38,26,.95), rgba(14,27,40,.96)); }
.tool-card-kicker { color: var(--orange); font: 600 .65rem 'Space Grotesk', sans-serif; letter-spacing: .12em; }.market-tool-card h2 { margin: 22px 0 9px; font-size: 1.25rem; letter-spacing: -.04em; }.market-tool-card p { color: var(--copy-soft); font-size: .79rem; line-height: 1.7; }.market-tool-action { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 18px; color: var(--orange-bright); font-size: .75rem; }.market-tool-action i { transition: transform .2s ease; }.market-tool-card:hover .market-tool-action i { transform: translateX(3px); }
.advanced-tool-main { max-width: 1240px; margin: 0 auto; padding: 22px 24px 70px; }.advanced-tool-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; min-height: 300px; padding: 38px 42px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 85% 30%, rgba(96, 177, 255, .14), transparent 28%), linear-gradient(135deg, rgba(46,37,29,.8), rgba(13, 28, 42, .95)); }.advanced-tool-hero h1 { margin: 13px 0 12px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.08em; }.advanced-tool-hero p { max-width: 620px; color: var(--copy-soft); font-size: .88rem; line-height: 1.75; }.advanced-hero-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: end; width: 180px; height: 180px; border: 1px solid rgba(255,159,67,.45); border-radius: 50%; color: var(--orange-bright); box-shadow: inset 0 0 40px rgba(255,159,67,.07); }.advanced-hero-mark span { font: 700 2rem 'Space Grotesk', sans-serif; }.advanced-hero-mark small { margin-top: 4px; color: var(--copy-muted); font-size: .68rem; }
.advanced-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }.advanced-input-card, .advanced-result-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 24, 37, .9); }.advanced-input-card h2, .advanced-result-card h2 { margin: 9px 0 17px; font-size: 1.45rem; letter-spacing: -.04em; }.advanced-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.advanced-form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--copy-soft); font-size: .72rem; }.advanced-form-grid input, .advanced-form-grid select { width: 100%; padding: 12px; border: 1px solid rgba(171, 200, 232, .18); border-radius: 8px; background: rgba(255,255,255,.045); color: var(--copy); outline: 0; font: inherit; }.advanced-form-grid input:focus, .advanced-form-grid select:focus { border-color: rgba(255,159,67,.7); box-shadow: 0 0 0 3px rgba(255,159,67,.08); }.toggle-row { display: flex; gap: 9px; align-items: center; margin-top: 18px; color: var(--copy-soft); font-size: .75rem; }.toggle-row input { accent-color: var(--orange); }.advanced-note, .chart-footnote { margin-top: 16px; color: var(--copy-muted); font-size: .7rem; line-height: 1.6; }.advanced-note i { color: var(--orange); margin-right: 5px; }.advanced-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.advanced-stat-grid > div { padding: 15px; border-radius: 9px; background: rgba(255,255,255,.045); }.advanced-stat-grid span { display: block; color: var(--copy-muted); font-size: .66rem; }.advanced-stat-grid strong { display: block; margin-top: 8px; color: var(--copy); font: 700 1.1rem 'Space Grotesk', sans-serif; }.advanced-status { margin-top: 15px; padding: 11px 13px; border-left: 2px solid var(--orange); color: var(--copy-soft); background: rgba(255,159,67,.06); font-size: .73rem; line-height: 1.55; }
.svg-chart-card { margin-top: 14px; padding: 23px 25px 17px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(16,31,48,.96), rgba(10,20,31,.98)); }.chart-card-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }.chart-card-head h2 { margin: 8px 0 13px; font-size: 1.35rem; }.svg-legend { display: flex; gap: 14px; color: var(--copy-muted); font-size: .7rem; }.svg-legend span::before { content: ''; display: inline-block; width: 18px; margin: 0 5px 3px 0; border-top: 2px solid currentColor; }.svg-legend-reinvest, .svg-legend-grid { color: #7ed6b0; }.svg-legend-cash { color: #ffb25f; }.svg-legend-path { color: #7ba9ff; }.scenario-svg { display: block; width: 100%; height: auto; min-height: 250px; margin-top: 2px; overflow: visible; }.svg-grid-lines line { stroke: rgba(171,200,232,.12); stroke-width: 1; }.svg-axis-label { fill: #71839a; font: 10px 'DM Sans', sans-serif; }.scenario-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }.scenario-path-reinvest { stroke: #7ed6b0; }.scenario-path-cash { stroke: #ffb25f; stroke-dasharray: 7 5; }.dot-reinvest { fill: #7ed6b0; }.dot-cash { fill: #ffb25f; }.grid-path { fill: none; stroke: #7ba9ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }.grid-equity-path { fill: none; stroke: #7ed6b0; stroke-width: 2; stroke-dasharray: 6 5; opacity: .85; }.grid-lines line { stroke: rgba(255,178,95,.28); stroke-width: 1; }.grid-level-marker { fill: #ffb25f; }
.tool-explain-grid, .grid-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13,24,37,.72); }.tool-explain-grid h2, .grid-method-grid h2 { margin: 8px 0; font-size: 1.35rem; }.tool-explain-grid p, .grid-method-grid p { color: var(--copy-soft); font-size: .8rem; line-height: 1.75; }.checklist-card { display: flex; flex-direction: column; gap: 9px; padding: 15px; border-left: 2px solid var(--orange); background: rgba(255,159,67,.05); }.checklist-card strong { color: var(--orange-bright); font-size: .78rem; }.checklist-card span { color: var(--copy-soft); font-size: .73rem; }.checklist-card span::before { content: '✓'; margin-right: 7px; color: #7ed6b0; }
@media (max-width: 900px) { .market-tool-grid { grid-template-columns: 1fr; }.advanced-tool-hero { grid-template-columns: 1fr; }.advanced-hero-mark { justify-self: start; width: 130px; height: 130px; }.advanced-tool-grid, .tool-explain-grid, .grid-method-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .advanced-tool-main { padding: 18px 16px 55px; }.advanced-tool-hero { min-height: 0; padding: 25px 21px; }.advanced-tool-hero h1 { font-size: 2.25rem; }.advanced-input-card, .advanced-result-card, .svg-chart-card { padding: 18px; }.advanced-form-grid { grid-template-columns: 1fr; }.chart-card-head { align-items: start; flex-direction: column; gap: 3px; }.scenario-svg { min-height: 210px; }.tool-explain-grid, .grid-method-grid { padding: 18px; } }

.rr-tv-widget { display: none; position: relative; height: 430px; margin-top: 5px; overflow: hidden; border-radius: 10px; background: #131722; }.rr-tv-widget.is-visible { display: block; }.rr-chart-canvas.is-fallback-hidden { display: none; }.rr-tv-widget iframe { width: 100%; height: 100%; border: 0; }.rr-tv-fallback-note { display: flex; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #9ca8ba; text-align: center; }.rr-tv-fallback-note i { color: #ffb25f; font-size: 1.8rem; }.rr-tv-fallback-note strong { color: #eef3fb; font-size: 1rem; }.rr-tv-fallback-note span { font-size: .74rem; }
@media (max-width: 820px) { .rr-tv-widget { height: 360px; } }
@media (max-width: 560px) { .rr-tv-widget { height: 300px; } }

/* Native chart workstations: price lines live in the chart coordinate system. */
.rr-native-chart-frame,
.grid-live-chart-shell { position: relative; overflow: hidden; }
.rr-native-chart-frame { min-height: 456px; border: 1px solid rgba(173, 205, 211, 0.13); border-radius: 18px; background: #07131d; }
.rr-chart-canvas,
.grid-native-chart { width: 100%; height: 456px; min-height: 456px; background: #07131d; }
.rr-chart-canvas.is-fallback-hidden,
.grid-native-chart.is-fallback-hidden { visibility: hidden; }
.rr-chart-canvas table,
.grid-native-chart table { font-family: "DM Sans", sans-serif; }
.rr-tv-widget,
.grid-tv-widget { display: none; position: absolute; inset: 0; min-height: 456px; background: #07131d; z-index: 2; }
.rr-tv-widget.is-visible,
.grid-tv-widget.is-visible { display: block; }
.rr-tv-widget iframe,
.grid-tv-widget iframe { display: block; border: 0; width: 100%; height: 456px; min-height: 456px; }
.rr-tv-fallback-note,
.grid-tv-fallback-note { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 7px 11px; color: #d5e4e5; background: rgba(7, 19, 29, 0.88); border: 1px solid rgba(255, 178, 95, 0.34); border-radius: 8px; font-size: 0.72rem; pointer-events: none; }
.rr-tv-fallback-note i,
.grid-tv-fallback-note i { color: var(--accent-orange, #ffb25f); }
.rr-tv-fallback-note strong,
.grid-tv-fallback-note strong { color: #ffcf83; font-weight: 600; }
.rr-tv-fallback-note span,
.grid-tv-fallback-note span { color: #9fb5bb; }
.rr-native-chart-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 2px 0; color: #9fb5bb; font-size: 0.78rem; }
.rr-native-chart-note span:first-child { color: #7ed6b0; }
.rr-native-chart-note span:nth-child(2) { color: #ffb25f; }
.text-button { border: 0; background: transparent; color: #d3e2e4; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: #ffb25f; }
body.is-dragging-price { cursor: ns-resize; user-select: none; }
.rr-result-card.is-invalid { border-color: rgba(245, 111, 98, 0.65); }

.grid-live-main { max-width: 1240px; }
.grid-live-market-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; padding: 13px 16px; border: 1px solid rgba(173, 205, 211, 0.14); border-radius: 14px; background: rgba(12, 31, 42, 0.86); }
.grid-live-symbol { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.grid-live-symbol strong { color: #f4f8f6; font-family: "Space Grotesk", sans-serif; letter-spacing: 0.03em; }
.grid-live-symbol > span:not(.live-dot) { color: #ffcf83; font-variant-numeric: tabular-nums; }
.grid-live-symbol small { color: #83a0a6; }
.grid-live-market-bar label { display: flex; align-items: center; gap: 9px; color: #a6bbc0; font-size: 0.78rem; }
.grid-live-market-bar select { min-width: 125px; }
.grid-live-market-bar .button { white-space: nowrap; }
.grid-live-chart-shell { padding: 18px; border: 1px solid rgba(173, 205, 211, 0.14); border-radius: 18px; background: #07131d; }
.grid-live-chart-shell .chart-card-head { position: relative; z-index: 1; }
.grid-live-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: #9fb5bb; font-size: 0.75rem; }
.grid-live-legend span::before { content: ""; display: inline-block; width: 22px; margin: 0 6px 3px 0; border-top: 2px solid currentColor; vertical-align: middle; }
.grid-buy-key { color: #5fd3a0; }
.grid-sell-key { color: #f56f62; }
.grid-protection-key { color: #f3c969; }
.grid-live-input-output { margin-top: 18px; }
.grid-live-input-output .advanced-input-card,
.grid-live-input-output .advanced-result-card { min-height: 100%; }
.grid-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-live-explain { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: stretch; margin: 22px 0; padding: 22px; border: 1px solid rgba(173, 205, 211, 0.14); border-radius: 16px; background: rgba(12, 31, 42, 0.7); }
.grid-live-explain h2 { margin: 6px 0 10px; }
.grid-live-explain p { max-width: 760px; color: #a6bbc0; line-height: 1.85; }
.grid-live-explain .checklist-card { align-self: stretch; }
@media (max-width: 760px) {
  .rr-native-chart-frame, .rr-chart-canvas, .grid-native-chart, .rr-tv-widget, .grid-tv-widget, .rr-tv-widget iframe, .grid-tv-widget iframe { min-height: 380px; height: 380px; }
  .rr-native-chart-note { align-items: flex-start; flex-direction: column; gap: 7px; }
  .grid-live-market-bar { align-items: stretch; flex-direction: column; }
  .grid-live-market-bar label { justify-content: space-between; }
  .grid-live-market-bar select { flex: 1; }
  .grid-live-market-bar .button { width: 100%; }
  .grid-live-chart-shell { padding: 12px; }
  .grid-live-legend { margin-top: 10px; }
  .grid-stat-grid { grid-template-columns: 1fr; }
  .grid-live-explain { grid-template-columns: 1fr; padding: 17px; }
  .rr-tv-fallback-note, .grid-tv-fallback-note { align-items: flex-start; flex-wrap: wrap; }
}

/* Native R:R market scanner and bidirectional guide launches */
.rr-scanner-shell{margin:28px 0;padding:30px;background:linear-gradient(135deg,rgba(10,31,43,.96),rgba(7,19,29,.98));border:1px solid rgba(126,214,176,.22);border-radius:20px;box-shadow:0 18px 45px rgba(0,0,0,.16)}
.rr-scanner-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.rr-scanner-head h2{margin:6px 0 8px}.rr-scanner-head p{max-width:760px;margin:0;color:var(--text-secondary);line-height:1.75}.rr-scanner-summary{display:grid;place-items:center;min-width:96px;padding:14px 18px;border:1px solid rgba(126,214,176,.3);border-radius:14px;background:rgba(126,214,176,.08);text-align:center}.rr-scanner-summary strong{font:700 1.8rem 'Space Grotesk',sans-serif;color:#7ed6b0}.rr-scanner-summary span{font-size:.78rem;color:var(--text-secondary)}
.rr-scanner-controls{display:grid;grid-template-columns:minmax(0,1.8fr) repeat(3,minmax(120px,.6fr)) auto;align-items:end;gap:12px;margin-bottom:18px}.rr-scanner-controls label{display:flex;flex-direction:column;gap:7px;color:var(--text-secondary);font-size:.82rem}.rr-scanner-controls input,.rr-scanner-controls select{width:100%;box-sizing:border-box;background:rgba(255,255,255,.045);border:1px solid var(--border-color);border-radius:9px;color:var(--text-primary);padding:10px 11px}.rr-scanner-controls input:focus,.rr-scanner-controls select:focus{outline:none;border-color:#7ed6b0;box-shadow:0 0 0 3px rgba(126,214,176,.11)}.rr-scanner-controls .button{height:42px;white-space:nowrap}
.rr-scanner-filters{display:flex;flex-wrap:wrap;gap:8px}.rr-scanner-filter{border:1px solid var(--border-color);background:rgba(255,255,255,.035);color:var(--text-secondary);border-radius:999px;padding:10px 13px;font-size:.82rem;transition:var(--transition)}.rr-scanner-filter:hover,.rr-scanner-filter.is-active{background:rgba(126,214,176,.14);border-color:rgba(126,214,176,.5);color:#aef1d0}.rr-scanner-filter:active,.rr-scanner-load:active{transform:scale(.97)}
.rr-scanner-progress{margin:8px 0 18px}.rr-scanner-progress[hidden]{display:none}.rr-scanner-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;color:var(--text-secondary);font-size:.82rem}.rr-scanner-progress-meta strong{color:#7ed6b0}.rr-scanner-progress-track{height:6px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08)}.rr-scanner-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7ed6b0,#ffb25f);transition:width .2s ease-out}
.rr-scanner-table-wrap{overflow-x:auto;border:1px solid rgba(176,202,208,.16);border-radius:13px}.rr-scanner-table{width:100%;min-width:930px;border-collapse:collapse}.rr-scanner-table th{padding:13px 12px;text-align:left;color:var(--text-secondary);font-size:.76rem;font-weight:600;letter-spacing:.03em;background:rgba(255,255,255,.035);white-space:nowrap}.rr-scanner-table td{padding:14px 12px;border-top:1px solid rgba(176,202,208,.1);color:var(--text-primary);font-size:.86rem;white-space:nowrap}.rr-scanner-row{cursor:pointer;transition:background .16s ease}.rr-scanner-row:hover{background:rgba(126,214,176,.07)}.rr-scanner-symbol{display:flex;flex-direction:column;gap:3px;border:0;padding:0;background:transparent;color:var(--text-primary);text-align:left}.rr-scanner-symbol strong{font-family:'Space Grotesk',sans-serif;color:#fff}.rr-scanner-symbol span{font-size:.75rem;color:var(--text-secondary)}.rr-scanner-market{display:inline-flex;padding:4px 8px;border:1px solid rgba(176,202,208,.22);border-radius:999px;color:#b8d6dd;font-size:.72rem}.rr-scanner-low{color:#f58b80!important}.rr-scanner-high{color:#7ed6b0!important}.rr-scanner-table td small{display:block;margin-top:3px;color:var(--text-secondary);font-size:.7rem}.rr-scanner-rr{color:#ffb25f;font:700 1rem 'Space Grotesk',sans-serif}.rr-scanner-rr.is-opportunity{color:#7ed6b0}.rr-scanner-status{display:inline-block;margin-right:8px;padding:4px 7px;border-radius:5px;font-size:.72rem}.rr-scanner-status.is-opportunity{background:rgba(126,214,176,.13);color:#9cebc5}.rr-scanner-status.is-support{background:rgba(95,211,160,.1);color:#7ed6b0}.rr-scanner-status.is-resistance{background:rgba(255,178,95,.12);color:#ffbf78}.rr-scanner-status.is-neutral{background:rgba(176,202,208,.1);color:#b8d6dd}.rr-scanner-load{border:1px solid rgba(255,178,95,.38);background:rgba(255,178,95,.08);border-radius:6px;padding:5px 8px;color:#ffbf78;font-size:.72rem}.rr-scanner-empty{text-align:center!important;padding:30px!important;color:var(--text-secondary)!important}.rr-scanner-note{margin:15px 0 0;color:var(--text-secondary);font-size:.78rem;line-height:1.65}
.guide-tool-launch,.tool-guide-link-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0;padding:25px 26px;border:1px solid rgba(255,178,95,.28);border-radius:17px;background:linear-gradient(135deg,rgba(255,178,95,.1),rgba(126,214,176,.06))}.guide-tool-launch-copy{max-width:560px}.guide-tool-launch h2,.tool-guide-link-card h2{margin:6px 0 8px}.guide-tool-launch p,.tool-guide-link-card p{margin:0;color:var(--text-secondary);line-height:1.7}.guide-tool-launch-grid{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:10px;min-width:330px}.guide-tool-card{display:flex;flex-direction:column;gap:5px;padding:13px;border:1px solid rgba(176,202,208,.18);border-radius:11px;background:rgba(7,19,29,.55);color:var(--text-primary);text-decoration:none;transition:transform .18s ease-out,border-color .18s ease-out,background .18s ease-out}.guide-tool-card:hover{transform:translateY(-2px);border-color:rgba(126,214,176,.55);background:rgba(126,214,176,.08)}.guide-tool-card i{color:#ffb25f}.guide-tool-card strong{font-size:.82rem}.guide-tool-card span{color:var(--text-secondary);font-size:.71rem}.guide-tool-card.is-primary{border-color:rgba(126,214,176,.4);background:rgba(126,214,176,.1)}.tool-guide-link-card{margin-top:28px}.tool-guide-link-card>div{max-width:680px}.tool-guide-link-card .button{white-space:nowrap}
@media(max-width:980px){.rr-scanner-controls{grid-template-columns:1fr 1fr}.rr-scanner-filters{grid-column:1/-1}.rr-scanner-controls .button{justify-self:start}.guide-tool-launch,.tool-guide-link-card{align-items:flex-start;flex-direction:column}.guide-tool-launch-grid{width:100%;min-width:0}.tool-guide-link-card .button{align-self:flex-start}}
@media(max-width:600px){.rr-scanner-shell{padding:20px 14px;border-radius:15px}.rr-scanner-head{flex-direction:column}.rr-scanner-summary{min-width:80px}.rr-scanner-controls{grid-template-columns:1fr}.rr-scanner-filters{grid-column:auto}.rr-scanner-controls .button{width:100%;justify-self:stretch}.guide-tool-launch,.tool-guide-link-card{padding:20px}.guide-tool-launch-grid{grid-template-columns:1fr}.tool-guide-link-card .button{width:100%;text-align:center}}

.market-tool-guide-link{display:block;margin-top:10px;color:#aee9cf;font-size:.74rem;letter-spacing:.02em;opacity:.86}.market-tool-card:hover .market-tool-guide-link{opacity:1;color:#ffbf78}


/* Compact HUD workstations: controls stay above the chart and collapse without overflow. */
.rr-hud-page .rr-main,
.grid-hud-page .advanced-tool-main { max-width: 1280px; }
.rr-hud-intro,
.grid-hud-intro { display:flex; align-items:center; justify-content:space-between; gap:22px; margin:0 0 12px; padding:20px 24px; border:1px solid rgba(173,205,211,.15); border-radius:16px; background:linear-gradient(135deg,rgba(20,42,57,.96),rgba(10,20,31,.96)); }
.rr-hud-intro h1,
.grid-hud-intro h1 { margin:8px 0 7px; font-size:clamp(1.65rem,3.2vw,2.8rem); line-height:1.05; letter-spacing:-.065em; }
.rr-hud-intro p,
.grid-hud-intro p { max-width:760px; margin:0; color:var(--copy-soft); font-size:.78rem; line-height:1.65; }
.rr-hud-badge { display:grid; place-items:center; flex:0 0 auto; min-width:100px; height:78px; border:1px solid rgba(255,178,95,.36); border-radius:15px; background:rgba(255,178,95,.08); }
.rr-hud-badge strong { color:#ffcf83; font:700 1.7rem/1 'Space Grotesk',sans-serif; }
.rr-hud-badge span { color:var(--copy-muted); font-size:.62rem; }
.rr-hud-panel,
.grid-hud-panel { position:relative; z-index:8; display:grid; gap:10px; padding:13px 14px 11px; border:1px solid rgba(126,214,176,.25); border-radius:15px; background:linear-gradient(135deg,rgba(11,34,45,.98),rgba(7,19,29,.98)); box-shadow:0 16px 36px rgba(0,0,0,.15); }
.rr-hud-market-row,
.grid-hud-market-row { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; }
.rr-hud-search { flex:1 1 420px; min-width:180px; }
.rr-hud-search > label { display:block; margin:0 0 5px; color:var(--copy-muted); font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; }
.rr-hud-search .rr-search-line { max-width:620px; }
.rr-hud-search .rr-search-line input { padding-top:9px; padding-bottom:9px; }
.rr-hud-stream-state { display:flex; align-items:flex-end; flex-direction:column; gap:2px; color:var(--copy-soft); font-size:.7rem; text-align:right; }
.rr-hud-stream-state small { color:var(--copy-muted); font-size:.62rem; }
.rr-hud-capsules { display:grid; grid-template-columns:1.15fr repeat(3,1fr) 1.1fr; gap:8px; }
.rr-hud-capsule { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:8px; min-height:50px; padding:7px 10px; border:1px solid rgba(176,202,208,.16); border-radius:10px; background:rgba(255,255,255,.045); }
.rr-hud-capsule span { color:var(--copy-muted); font-size:.62rem; white-space:nowrap; }
.rr-hud-capsule strong { color:#f4f8f6; font:700 1.12rem/1 'Space Grotesk',sans-serif; font-variant-numeric:tabular-nums; white-space:nowrap; }
.rr-hud-capsule.live { border-color:rgba(104,215,172,.34); background:rgba(104,215,172,.09); }
.rr-hud-capsule.live strong { color:#9cebc5; }
.rr-hud-capsule.entry { border-color:rgba(126,214,176,.28); }
.rr-hud-capsule.stop { border-color:rgba(245,111,98,.28); }
.rr-hud-capsule.target { border-color:rgba(255,178,95,.3); }
.rr-hud-capsule.ratio { border-color:rgba(255,178,95,.58); background:rgba(255,178,95,.11); }
.rr-hud-capsule.ratio strong { color:#ffcf83; font-size:1.4rem; }
.rr-hud-capsule input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#f4f8f6; font:600 .98rem 'Space Grotesk',sans-serif; text-align:right; font-variant-numeric:tabular-nums; }
.rr-hud-capsule input:focus { color:#ffcf83; }
.rr-hud-control-row { display:grid; grid-template-columns:minmax(310px,1.6fr) 112px 150px 152px auto; align-items:center; gap:8px; }
.rr-timeframe-group { display:flex; align-items:center; gap:4px; min-width:0; }
.hud-control-label { margin-right:3px; color:var(--copy-muted); font-size:.62rem; text-transform:uppercase; }
.rr-timeframe-group button { min-width:37px; padding:7px 8px; border:1px solid rgba(176,202,208,.16); border-radius:7px; color:var(--copy-soft); background:rgba(255,255,255,.035); font:600 .7rem 'Space Grotesk',sans-serif; }
.rr-timeframe-group button:hover,
.rr-timeframe-group button.is-active { border-color:rgba(255,178,95,.65); color:#ffcf83; background:rgba(255,178,95,.13); }
.hud-hidden-select { display:none; }
.rr-hud-field { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:7px; color:var(--copy-muted); font-size:.62rem; }
.rr-hud-field input { width:92px; min-width:0; padding:8px 8px; border:1px solid rgba(176,202,208,.18); border-radius:7px; background:rgba(255,255,255,.045); color:var(--copy); outline:0; font:600 .78rem 'Space Grotesk',sans-serif; text-align:right; }
.rr-hud-field.capital input { width:112px; }
.rr-hud-field input:focus { border-color:#ffb25f; box-shadow:0 0 0 3px rgba(255,178,95,.1); }
.rr-hud-position { display:flex; min-width:120px; align-items:flex-end; flex-direction:column; gap:2px; padding-left:10px; border-left:1px solid rgba(176,202,208,.13); }
.rr-hud-position span { color:var(--copy-muted); font-size:.61rem; }
.rr-hud-position strong { color:#9cebc5; font:700 1rem 'Space Grotesk',sans-serif; }
.rr-hud-position small { color:var(--copy-muted); font-size:.6rem; }
.hud-ghost-button { padding:8px 10px; border:1px solid rgba(255,178,95,.32); border-radius:7px; color:#ffbf78; background:rgba(255,178,95,.06); font:600 .7rem 'DM Sans',sans-serif; white-space:nowrap; }
.hud-ghost-button:hover { border-color:#ffb25f; background:rgba(255,178,95,.13); }
.rr-hud-status-row { display:flex; align-items:center; gap:12px; min-width:0; color:var(--copy-muted); font-size:.64rem; }
.rr-hud-status-row > span { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rr-hud-status-row > span:first-child { color:#9cebc5; font-weight:600; }
.rr-hud-status-row > span:last-child { margin-left:auto; color:#83a0a6; }
.rr-hud-panel.is-invalid { border-color:rgba(245,111,98,.65); }
.rr-hud-panel.is-stream-connected .live-dot,
.grid-hud-panel.is-stream-connected .live-dot { background:#7ed6b0; box-shadow:0 0 0 4px rgba(126,214,176,.13),0 0 15px rgba(126,214,176,.6); }
.rr-hud-chart-shell { margin-top:12px; }
.rr-hud-chart-shell .rr-native-chart-frame { min-height:470px; }
.rr-hud-chart-shell .rr-chart-canvas { height:470px; min-height:470px; }
.rr-hud-chart-shell .rr-tv-widget,
.rr-hud-chart-shell .rr-tv-widget iframe { min-height:470px; height:470px; }

.grid-hud-intro { margin-bottom:12px; }
.grid-hud-mark { width:104px; height:78px; border-radius:15px; }
.grid-hud-mark span { font-size:1.45rem; }
.grid-hud-mark small { margin-top:0; }
.grid-hud-panel { border-color:rgba(123,169,255,.26); }
.grid-hud-market-row { min-height:29px; }
.grid-live-symbol { display:flex; min-width:0; align-items:center; flex-wrap:wrap; gap:9px; }
.grid-live-symbol strong { color:#f4f8f6; font-family:'Space Grotesk',sans-serif; letter-spacing:.03em; }
.grid-live-symbol b { color:#ffcf83; font:700 1.1rem 'Space Grotesk',sans-serif; font-variant-numeric:tabular-nums; }
.grid-live-symbol > span:not(.live-dot) { color:#9cebc5; font-size:.72rem; font-variant-numeric:tabular-nums; }
.grid-live-symbol small { color:#83a0a6; font-size:.64rem; }
.grid-hud-connection { display:flex; align-items:flex-end; flex-direction:column; gap:2px; color:#9cebc5; font-size:.65rem; text-align:right; }
.grid-hud-connection span:last-child { color:#83a0a6; }
.grid-hud-control-row { display:grid; grid-template-columns:92px minmax(118px,1fr) minmax(118px,1fr) 92px 92px minmax(125px,1fr) auto; align-items:end; gap:8px; }
.grid-hud-control-row.secondary { grid-template-columns:repeat(3,minmax(110px,160px)) auto 1fr; align-items:center; padding-top:2px; border-top:1px solid rgba(176,202,208,.1); }
.grid-hud-field { display:flex; min-width:0; flex-direction:column; gap:4px; color:#83a0a6; font-size:.6rem; }
.grid-hud-field input,
.grid-hud-field select { width:100%; box-sizing:border-box; padding:8px 8px; border:1px solid rgba(176,202,208,.18); border-radius:7px; background:rgba(255,255,255,.045); color:#e8f1ef; outline:0; font:600 .76rem 'Space Grotesk',sans-serif; font-variant-numeric:tabular-nums; }
.grid-hud-field input:focus,
.grid-hud-field select:focus { border-color:#7ba9ff; box-shadow:0 0 0 3px rgba(123,169,255,.1); }
.grid-hud-field.timeframe select,
.grid-hud-field.mode select { color:#bcd4ff; }
.grid-hud-tip { color:#83a0a6; font-size:.64rem; }
.grid-hud-tip i { color:#ffcf83; margin-right:4px; }
.grid-hud-chart-shell { margin-top:12px; padding:14px; }
.grid-hud-chart-shell .grid-native-chart,
.grid-hud-chart-shell .grid-tv-widget,
.grid-hud-chart-shell .grid-tv-widget iframe { height:470px; min-height:470px; }
.grid-hud-result { margin-top:12px; padding:18px 20px; }
.grid-result-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.grid-result-heading h2 { margin:5px 0 3px; }
.grid-result-heading p { margin:0 0 12px; color:var(--copy-soft); font-size:.72rem; }
.grid-result-heading > span { padding:5px 8px; border:1px solid rgba(255,178,95,.3); border-radius:999px; color:#ffcf83; background:rgba(255,178,95,.08); font-size:.64rem; white-space:nowrap; }
.grid-hud-result .advanced-stat-grid > div { padding:11px 12px; }
.grid-hud-result .advanced-stat-grid strong { margin-top:5px; font-size:1rem; }

@media (max-width:980px) {
  .rr-hud-capsules { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .rr-hud-control-row { grid-template-columns:1fr 1fr; }
  .rr-timeframe-group { grid-column:1/-1; }
  .rr-hud-position { border-left:0; padding-left:0; align-items:flex-start; }
  .grid-hud-control-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .grid-hud-control-row .hud-action { width:100%; }
  .grid-hud-control-row.secondary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .grid-hud-control-row.secondary .hud-ghost-button { width:100%; }
  .grid-hud-tip { grid-column:1/-1; }
}
@media (max-width:720px) {
  .rr-hud-intro, .grid-hud-intro { align-items:flex-start; flex-direction:column; padding:16px 18px; }
  .rr-hud-badge, .grid-hud-mark { width:86px; height:56px; min-width:86px; }
  .rr-hud-market-row, .grid-hud-market-row { align-items:flex-start; flex-direction:column; }
  .rr-hud-stream-state, .grid-hud-connection { align-items:flex-start; text-align:left; }
  .rr-hud-capsules { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rr-hud-capsule.ratio { grid-column:1/-1; }
  .rr-hud-control-row { grid-template-columns:1fr 1fr; }
  .rr-hud-status-row { align-items:flex-start; flex-direction:column; gap:4px; }
  .rr-hud-status-row > span:last-child { margin-left:0; }
  .grid-hud-control-row, .grid-hud-control-row.secondary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-hud-control-row .hud-action, .grid-hud-control-row.secondary .hud-ghost-button { grid-column:1/-1; }
  .grid-hud-tip { grid-column:1/-1; }
  .grid-hud-result { padding:16px 14px; }
  .grid-result-heading { align-items:flex-start; flex-direction:column; gap:4px; }
}
@media (max-width:520px) {
  .rr-hud-intro h1, .grid-hud-intro h1 { font-size:1.8rem; }
  .rr-hud-panel, .grid-hud-panel { padding:11px; }
  .rr-hud-capsules { grid-template-columns:1fr; }
  .rr-hud-capsule.ratio { grid-column:auto; }
  .rr-hud-control-row, .grid-hud-control-row, .grid-hud-control-row.secondary { grid-template-columns:1fr; }
  .rr-timeframe-group, .rr-hud-field, .rr-hud-position, .grid-hud-control-row .hud-action, .grid-hud-control-row.secondary .hud-ghost-button, .grid-hud-tip { grid-column:auto; }
  .rr-timeframe-group { flex-wrap:wrap; }
  .rr-hud-field, .rr-hud-position { align-items:flex-start; }
  .rr-hud-field input, .rr-hud-field.capital input { width:100%; text-align:left; }
  .rr-hud-chart-shell .rr-native-chart-frame, .rr-hud-chart-shell .rr-chart-canvas, .rr-hud-chart-shell .rr-tv-widget, .rr-hud-chart-shell .rr-tv-widget iframe, .grid-hud-chart-shell .grid-native-chart, .grid-hud-chart-shell .grid-tv-widget, .grid-hud-chart-shell .grid-tv-widget iframe { height:350px; min-height:350px; }
}

.hud-mirror-value { display:none !important; }


/* Compact HUD refinement: readable controls, no decorative chart-header gap. */
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.rr-hud-panel,
.grid-hud-panel { gap:8px; padding:10px 12px 9px; }
.rr-hud-market-row,
.grid-hud-market-row { display:grid; grid-template-columns:minmax(160px,180px) minmax(240px,1fr) auto; align-items:end; gap:10px; }
.rr-quick-symbol,
.grid-quick-symbol { display:flex; min-width:0; flex:0 0 180px; flex-direction:column; gap:4px; }
.rr-quick-symbol > span,
.grid-quick-symbol > span,
.rr-hud-search > label,
.rr-hud-field > span,
.grid-hud-field > span { color:var(--copy-soft); font-size:.88rem; font-weight:600; letter-spacing:0; text-transform:none; }
.rr-quick-symbol select,
.grid-quick-symbol select { width:100%; min-width:0; box-sizing:border-box; padding:9px 10px; border:1px solid rgba(255,178,95,.35); border-radius:8px; background:#1a1f2c !important; color:#fff !important; color-scheme:dark; outline:0; font:600 1rem 'Space Grotesk',sans-serif; font-variant-numeric:tabular-nums; }
.rr-page select,
.grid-hud-page select { background-color:#1a1f2c !important; color:#fff !important; color-scheme:dark; }
.rr-page select option,
.grid-hud-page select option { background:#141824 !important; color:#f8fafc !important; }
.rr-page select option:checked,
.grid-hud-page select option:checked { background:#243149 !important; color:#fff !important; }
.rr-quick-symbol select:focus,
.grid-quick-symbol select:focus { border-color:#ffb25f; box-shadow:0 0 0 3px rgba(255,178,95,.12); }
.rr-hud-search { min-width:0; }
.rr-hud-search .rr-search-line { width:fit-content; max-width:100%; }
.rr-hud-search .rr-search-line input { flex:1 1 180px; width:180px; max-width:180px; min-width:140px; min-height:41px; padding:8px 10px 8px 36px; font-size:1rem; }
.rr-hud-search .rr-search-line .button { flex:0 0 62px; width:62px; min-height:41px; padding-left:10px; padding-right:10px; font-size:.92rem; }
.rr-hud-stream-state { min-width:168px; font-size:.78rem; }
.rr-hud-stream-state small { font-size:.72rem; }
.rr-hud-capsule { min-height:54px; padding:7px 11px; }
.rr-hud-capsule span { font-size:.86rem; font-weight:600; }
.rr-hud-capsule strong { font-size:1.24rem; }
.rr-hud-capsule.ratio strong { font-size:1.75rem; letter-spacing:-.04em; }
.rr-hud-capsule input { min-height:32px; font-size:1.12rem; font-weight:700; }
.rr-hud-control-row { grid-template-columns:minmax(320px,1.7fr) 128px 168px 166px auto; gap:8px; }
.hud-control-label { font-size:.88rem; font-weight:600; }
.rr-timeframe-group { gap:5px; }
.rr-timeframe-group button { min-width:43px; padding:8px 9px; font-size:.88rem; font-weight:700; }
.rr-hud-field { gap:8px; font-size:.88rem; }
.rr-hud-field input { width:104px; padding:9px 9px; font-size:1rem; font-weight:700; }
.rr-hud-field.capital input { width:132px; }
.rr-hud-position span { font-size:.86rem; font-weight:600; }
.rr-hud-position strong { font-size:1.24rem; }
.rr-hud-position small { font-size:.72rem; }
.hud-ghost-button { padding:9px 11px; font-size:.86rem; font-weight:700; }
.rr-hud-status-row { font-size:.78rem; }
.rr-hud-chart-shell { margin-top:3px; padding:0 8px 10px; border:0; border-radius:0; background:transparent; }
.rr-hud-chart-shell .rr-native-chart-frame { border-radius:10px; }
.grid-live-symbol { gap:8px; }
.grid-live-symbol strong { font-size:1rem; }
.grid-live-symbol b { font-size:1.24rem; }
.grid-live-symbol > span:not(.live-dot) { font-size:.86rem; }
.grid-live-symbol small { font-size:.76rem; }
.grid-hud-connection { min-width:168px; font-size:.78rem; }
.grid-hud-connection span:last-child { font-size:.72rem; }
.grid-hud-control-row { grid-template-columns:104px minmax(135px,1fr) minmax(135px,1fr) 100px 100px minmax(145px,1fr) auto; gap:8px; }
.grid-hud-control-row.secondary { grid-template-columns:repeat(3,minmax(130px,170px)) auto 1fr; }
.grid-hud-field { gap:4px; font-size:.88rem; }
.grid-hud-field input,
.grid-hud-field select { min-height:41px; padding:9px 10px; font-size:1rem; font-weight:700; }
.grid-hud-tip { font-size:.78rem; }
.grid-hud-chart-shell { margin-top:3px; padding:0 8px 10px; border:0; border-radius:0; background:transparent; }
.grid-hud-chart-shell .chart-footnote { margin:6px 0 0; font-size:.76rem; }

@media (max-width:980px) {
  .rr-hud-market-row,
  .grid-hud-market-row { grid-template-columns:minmax(145px,.55fr) minmax(220px,1fr) auto; }
  .rr-hud-control-row { grid-template-columns:1fr 1fr; }
  .rr-timeframe-group { grid-column:1/-1; }
  .grid-hud-control-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .grid-hud-control-row.secondary { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .rr-hud-market-row,
  .grid-hud-market-row { grid-template-columns:1fr; align-items:stretch; }
  .rr-quick-symbol,
  .grid-quick-symbol { width:100%; }
  .rr-hud-stream-state,
  .grid-hud-connection { min-width:0; align-items:flex-start; text-align:left; }
  .rr-hud-capsule span { font-size:.9rem; }
  .rr-hud-capsule input { font-size:1.08rem; }
  .grid-hud-control-row,
  .grid-hud-control-row.secondary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .rr-hud-search .rr-search-line { width:100%; }
  .rr-hud-search .rr-search-line input { flex:1 1 auto; width:100%; max-width:none; min-width:0; padding-left:36px; }
  .rr-hud-search .rr-search-line .button { flex:1 1 100%; width:100%; max-width:none; }
}
@media (max-width:520px) {
  .rr-hud-panel,
  .grid-hud-panel { padding:9px; }
  .rr-hud-capsule { min-height:52px; }
  .rr-hud-capsule.ratio strong { font-size:1.6rem; }
  .rr-hud-field input,
  .rr-hud-field.capital input,
  .grid-hud-field input,
  .grid-hud-field select { width:100%; }
  .grid-hud-chart-shell,
  .rr-hud-chart-shell { padding-left:0; padding-right:0; }
}


/* Autocomplete upgrade: floating, keyboard-friendly market suggestions. */
.rr-hud-search,
.grid-hud-search { position:relative; min-width:0; }
.grid-hud-search .rr-search-line { width:fit-content; max-width:100%; }
.grid-hud-search .rr-search-line input { flex:1 1 210px; width:210px; max-width:210px; min-width:150px; min-height:41px; padding:8px 10px 8px 36px; font-size:1rem; }
.grid-hud-search .rr-search-line .button { flex:0 0 62px; width:62px; min-height:41px; padding-left:10px; padding-right:10px; font-size:.92rem; }
.grid-hud-market-row { grid-template-columns:minmax(160px,180px) minmax(280px,1fr) minmax(220px,1.15fr) auto; }
.rr-hud-search .rr-suggestions,
.grid-hud-search .rr-suggestions { top:calc(100% + 6px); left:0; right:auto; width:min(430px, calc(100vw - 32px)); z-index:100; background:#1a1f2c !important; border-color:rgba(255,178,95,.42); }
.rr-hud-search .rr-suggestions button,
.grid-hud-search .rr-suggestions button { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:54px; padding:9px 12px; background:#141824 !important; color:#f8fafc !important; }
.rr-hud-search .rr-suggestions button:hover,
.rr-hud-search .rr-suggestions button:focus,
.rr-hud-search .rr-suggestions button.is-active,
.grid-hud-search .rr-suggestions button:hover,
.grid-hud-search .rr-suggestions button:focus,
.grid-hud-search .rr-suggestions button.is-active { background:#243149 !important; color:#fff !important; }
.rr-suggestion-main { display:flex; min-width:0; align-items:baseline; gap:8px; }
.rr-suggestion-main b { min-width:auto; color:#ffcf83; font:700 .94rem 'Space Grotesk',sans-serif; }
.rr-suggestion-main em { overflow:hidden; color:#f8fafc; font-size:.88rem; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.rr-suggestion-market { display:flex; flex:0 0 auto; align-items:flex-end; flex-direction:column; color:#9cebc5 !important; font-size:.75rem !important; font-weight:700; text-align:right; white-space:nowrap; }
.rr-suggestion-market small { margin-top:2px; color:#a8b8c4; font-size:.68rem; font-weight:500; }
.rr-suggestion-market.tw { color:#9fc4ff !important; }
.rr-suggestion-market.us { color:#ffcf83 !important; }
.rr-suggestion-market.global { color:#c9b6ff !important; }
.rr-suggestion-market.forex { color:#8fd7ff !important; }
.rr-suggestions-empty { padding:14px; color:#f8fafc; font-size:.86rem; }
.rr-page select optgroup,
.grid-hud-page select optgroup { background:#141824 !important; color:#f8fafc !important; font-weight:700; }
.rr-symbol-search::placeholder,
.grid-symbol-search::placeholder { color:#a8b8c4; }
@media (max-width:980px) {
  .grid-hud-market-row { grid-template-columns:minmax(145px,.55fr) minmax(210px,1fr) minmax(200px,1fr) auto; }
}
@media (max-width:720px) {
  .grid-hud-search .rr-search-line { width:100%; }
  .grid-hud-search .rr-search-line input { flex:1 1 auto; width:100%; max-width:none; min-width:0; padding-left:36px; }
  .grid-hud-search .rr-search-line .button { flex:1 1 100%; width:100%; max-width:none; }
  .rr-hud-search .rr-suggestions,
  .grid-hud-search .rr-suggestions { width:100%; max-width:100%; }
}

@media (max-width:720px) {
  .rr-hud-market-row,
  .grid-hud-market-row { grid-template-columns:1fr; align-items:stretch; }
}


/* Local-only watchlist controls: the manager floats above the HUD without shifting the chart. */
.rr-hud-market-row,
.grid-hud-market-row { overflow:visible; }
.rr-hud-market-row { grid-template-columns:minmax(160px,180px) minmax(220px,1fr) auto minmax(168px,auto); }
.grid-hud-market-row { grid-template-columns:minmax(160px,180px) minmax(240px,1fr) auto minmax(220px,1.15fr) auto; }
.watchlist-wrap { position:relative; z-index:120; min-width:0; }
.watchlist-actions { display:flex; align-items:center; justify-content:flex-start; gap:6px; min-width:0; }
.watchlist-action { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:41px; padding:8px 9px; }
.watchlist-action i { color:#ffcf83; }
.watchlist-action b { display:inline-grid; min-width:20px; height:20px; place-items:center; padding:0 5px; border-radius:999px; color:#07131d; background:#ffcf83; font:700 .72rem/1 'Space Grotesk',sans-serif; }
.watchlist-panel { position:absolute; top:calc(100% + 8px); right:0; width:min(380px,calc(100vw - 28px)); padding:14px; border:1px solid rgba(255,178,95,.42); border-radius:12px; background:#1a1f2c; box-shadow:0 18px 42px rgba(0,0,0,.38); color:#f8fafc; }
.watchlist-panel[hidden] { display:none; }
.watchlist-panel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.watchlist-panel-head strong { color:#ffcf83; font:700 .98rem 'Space Grotesk',sans-serif; }
.watchlist-close { display:grid; width:28px; height:28px; place-items:center; padding:0; border:1px solid rgba(248,250,252,.22); border-radius:7px; color:#f8fafc; background:#141824; font-size:1.12rem; line-height:1; }
.watchlist-close:hover { border-color:#ffb25f; color:#ffcf83; }
.watchlist-panel > p { margin:8px 0 10px; color:#b8c7d1; font-size:.76rem; line-height:1.55; }
.watchlist-items { display:grid; gap:6px; max-height:250px; overflow:auto; }
.watchlist-item { display:flex; align-items:center; justify-content:space-between; gap:9px; padding:8px 9px; border:1px solid rgba(176,202,208,.16); border-radius:8px; background:#141824; }
.watchlist-item-copy { display:flex; min-width:0; flex-direction:column; gap:2px; }
.watchlist-item-copy strong { color:#ffcf83; font:700 .84rem 'Space Grotesk',sans-serif; }
.watchlist-item-copy span { overflow:hidden; color:#b8c7d1; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.watchlist-item-actions { display:flex; flex:0 0 auto; gap:5px; }
.watchlist-item-actions button,
.watchlist-clear { min-height:29px; padding:5px 8px; border:1px solid rgba(176,202,208,.22); border-radius:6px; color:#f8fafc; background:#1a1f2c; font:600 .72rem 'DM Sans',sans-serif; }
.watchlist-item-actions .watchlist-load { border-color:rgba(126,214,176,.4); color:#9cebc5; }
.watchlist-item-actions .watchlist-remove { border-color:rgba(245,111,98,.35); color:#ffaaa0; }
.watchlist-item-actions button:hover,
.watchlist-clear:hover { border-color:#ffb25f; color:#ffcf83; }
.watchlist-clear { width:100%; margin-top:10px; }
.watchlist-clear:disabled { cursor:not-allowed; opacity:.45; }
.watchlist-empty { margin:0; padding:10px; border:1px dashed rgba(176,202,208,.22); border-radius:7px; color:#b8c7d1; font-size:.76rem; line-height:1.5; }
.watchlist-feedback { display:block; min-height:18px; margin-top:7px; color:#9cebc5; font-size:.72rem; line-height:1.45; }
.watchlist-feedback.is-error { color:#ffaaa0; }
@media (max-width:980px) {
  .rr-hud-market-row { grid-template-columns:minmax(145px,.55fr) minmax(180px,1fr) auto minmax(168px,auto); }
  .grid-hud-market-row { grid-template-columns:minmax(145px,.5fr) minmax(200px,1fr) auto minmax(190px,1fr) auto; }
}
@media (max-width:720px) {
  .rr-hud-market-row,
  .grid-hud-market-row { grid-template-columns:1fr; }
  .watchlist-wrap { width:100%; }
  .watchlist-actions { width:100%; }
  .watchlist-action { flex:1 1 0; }
  .watchlist-panel { left:0; right:auto; width:100%; }
}


/* 2026 single-screen compact finance tools: excludes the dedicated R:R and Grid dashboards. */
.tools-library-page main { padding-top: 20px; padding-bottom: 34px; }
.tools-library-page .tools-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; max-width: none; margin-bottom: 14px; }
.tools-library-page .tools-hero h1 { margin: 6px 0; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.06; }
.tools-library-page .tools-hero p { max-width: 760px; margin: 0; font-size: .9rem; line-height: 1.5; }
.tools-library-page .market-tool-grid { margin: 12px 0 14px; gap: 10px; }
.tools-library-page .market-tool-card { min-height: 154px; padding: 16px; }
.tools-library-page .market-tool-card h2 { margin: 12px 0 7px; font-size: 1.08rem; }
.tools-library-page .market-tool-card p { margin: 0; font-size: .76rem; line-height: 1.5; }
.tools-library-page .market-tool-action { padding-top: 11px; font-size: .75rem; }
.tools-library-page .tool-tabs { gap: 4px; padding: 4px; margin-bottom: 10px; }
.tools-library-page .tool-tabs button { min-height: 38px; padding: 8px 9px; font-size: .8rem; }
.tools-library-page .advanced-tool-panel { padding: 17px; }
.tools-library-page .advanced-tool-panel h2 { margin-bottom: 5px; font-size: 1.22rem; }
.tools-library-page .tool-note { margin: 0; font-size: 14px; line-height: 1.5; }
.tools-library-page .tool-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 13px 0; }
.tools-library-page .tool-form-grid label { gap: 5px; color: var(--copy-soft); font-size: 14px; line-height: 1.25; }
.tools-library-page .tool-form-grid input, .tools-library-page .tool-form-grid select { min-height: 42px; padding: 8px 10px; font-size: 16px; font-weight: 600; }
.tools-library-page .tool-calc-button { min-height: 42px; padding: 9px 13px; font-size: 14px; }
.tools-library-page .tool-result { min-height: 42px; margin-top: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.tools-library-page .tool-detail-grid { gap: 9px; margin-top: 10px; }
.tools-library-page .tool-detail-card { padding: 12px; }
.tools-library-page .tool-detail-card h3 { margin-bottom: 5px; font-size: 14px; }
.tools-library-page .tool-detail-card p { font-size: 13px; line-height: 1.45; }
.tools-library-page .guide-cta { margin-top: 10px; padding: 13px 15px; }
.tools-library-page .guide-cta h3 { font-size: 14px; }
.tools-library-page .guide-cta p { font-size: 13px; }

/* Standalone compound-interest calculator. */
.compact-calculator-page > .hero { padding: 20px 0 !important; }
.compact-calculator-page > .hero h1 { margin: 7px 0 !important; font-size: clamp(1.8rem, 3.6vw, 2.8rem) !important; line-height: 1.08 !important; }
.compact-calculator-page > .hero p { max-width: 760px; margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; }
.compact-calculator-page main.container { padding-top: 14px !important; padding-bottom: 30px; }
.compact-calculator-page .back-btn { margin-bottom: 10px !important; font-size: 14px; }
.compact-calculator-page .tool-container { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr) !important; gap: 14px !important; margin-top: 10px !important; }
.compact-calculator-page .tool-panel { padding: 15px !important; }
.compact-calculator-page .tool-panel h3 { margin-bottom: 10px !important; font-size: 16px !important; }
.compact-calculator-page .calculator-tabs { gap: 4px !important; margin-bottom: 12px !important; padding: 4px !important; }
.compact-calculator-page .tab-btn { min-height: 38px; padding: 8px 4px !important; font-size: 14px !important; }
.compact-calculator-page .input-group { margin-bottom: 10px !important; }
.compact-calculator-page .input-group label { margin-bottom: 5px !important; font-size: 14px !important; }
.compact-calculator-page .input-field-wrapper input[type="number"] { min-height: 42px; padding: 8px 10px !important; font-size: 16px !important; font-weight: 600; }
.compact-calculator-page .input-range { height: 7px; margin-top: 4px; }
.compact-calculator-page .results-panel { gap: 10px !important; }
.compact-calculator-page .answer-box { padding: 12px !important; }
.compact-calculator-page .answer-box span { margin-bottom: 5px; font-size: 14px; }
.compact-calculator-page .answer-box strong { font-size: 1.85rem; }
.compact-calculator-page .summary-cards { gap: 8px !important; }
.compact-calculator-page .summary-card { padding: 12px !important; }
.compact-calculator-page .summary-card span { margin-bottom: 5px; font-size: 13px; }
.compact-calculator-page .summary-card strong { font-size: 1.08rem; }
.compact-calculator-page .chart-card { padding: 14px !important; }
.compact-calculator-page .chart-header { margin-bottom: 8px !important; }
.compact-calculator-page .chart-header h3 { font-size: 16px; }
.compact-calculator-page .chart-legend { gap: 9px; font-size: 13px; }
.compact-calculator-page .chart-wrapper { height: 220px !important; }
.compact-calculator-page main.container > .card { margin-top: 12px !important; padding: 14px !important; }
.compact-calculator-page main.container > .card h3 { margin-top: 0; font-size: 16px; }
.compact-calculator-page main.container > .card p { margin: 7px 0; font-size: 14px; line-height: 1.55; }

/* Standalone ETF DRIP calculator. */
.compact-tool-page .advanced-tool-main { padding: 14px 18px 36px; }
.compact-tool-page .rr-breadcrumb { margin-bottom: 9px; font-size: 13px; }
.compact-tool-page .advanced-tool-hero { min-height: 0; padding: 18px 20px; gap: 16px; }
.compact-tool-page .advanced-tool-hero h1 { margin: 7px 0; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.08; }
.compact-tool-page .advanced-tool-hero p { margin: 0; font-size: 14px; line-height: 1.5; }
.compact-tool-page .advanced-hero-mark { width: 92px; height: 92px; }
.compact-tool-page .advanced-hero-mark span { font-size: 1.4rem; }
.compact-tool-page .advanced-hero-mark small { font-size: 11px; }
.compact-tool-page .advanced-tool-grid { gap: 10px; margin-top: 10px; }
.compact-tool-page .advanced-input-card, .compact-tool-page .advanced-result-card { padding: 15px; }
.compact-tool-page .advanced-input-card h2, .compact-tool-page .advanced-result-card h2 { margin: 6px 0 11px; font-size: 1.18rem; }
.compact-tool-page .section-kicker { font-size: 11px; }
.compact-tool-page .advanced-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.compact-tool-page .advanced-form-grid label { gap: 5px; font-size: 14px; line-height: 1.25; }
.compact-tool-page .advanced-form-grid input, .compact-tool-page .advanced-form-grid select { min-height: 42px; padding: 8px 10px; font-size: 16px; font-weight: 600; }
.compact-tool-page .toggle-row { margin-top: 11px; font-size: 14px; }
.compact-tool-page .advanced-note { margin-top: 9px; font-size: 13px; line-height: 1.45; }
.compact-tool-page .advanced-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.compact-tool-page .advanced-stat-grid > div { padding: 10px; }
.compact-tool-page .advanced-stat-grid span { font-size: 13px; line-height: 1.25; }
.compact-tool-page .advanced-stat-grid strong { margin-top: 5px; font-size: 17px; line-height: 1.2; }
.compact-tool-page .advanced-status { margin-top: 10px; padding: 9px 11px; font-size: 13px; line-height: 1.45; }
.compact-tool-page .svg-chart-card { margin-top: 10px; padding: 14px 15px 11px; }
.compact-tool-page .chart-card-head h2 { margin: 5px 0 8px; font-size: 1.12rem; }
.compact-tool-page .svg-legend { gap: 9px; font-size: 13px; }
.compact-tool-page .scenario-svg { min-height: 190px; }
.compact-tool-page .chart-footnote { margin-top: 7px; font-size: 12px; }
.compact-tool-page .tool-explain-grid { gap: 10px; margin-top: 10px; padding: 15px; }
.compact-tool-page .tool-explain-grid h2 { margin: 5px 0; font-size: 1.15rem; }
.compact-tool-page .tool-explain-grid p, .compact-tool-page .checklist-card span { font-size: 13px; line-height: 1.5; }
.compact-tool-page .tool-guide-link-card { margin-top: 10px; padding: 14px 15px; }
.compact-tool-page .tool-resource-strip { gap: 10px; margin-top: 10px; }
.compact-tool-page .resource-card { padding: 15px; }
.compact-tool-page .resource-card p { font-size: 13px; line-height: 1.5; }
.compact-tool-page .tool-disclaimer { margin-top: 11px; font-size: 12px; }

@media (max-width: 820px) {
  .tools-library-page .tools-hero { grid-template-columns: 1fr; gap: 7px; }
  .tools-library-page .market-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-library-page .market-tool-card { min-height: 132px; padding: 12px; }
  .tools-library-page .market-tool-card h2 { font-size: .95rem; }
  .tools-library-page .market-tool-card p { font-size: .7rem; }
  .tools-library-page .tool-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-tool-page .advanced-tool-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .compact-calculator-page .tool-container { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .tools-library-page main { padding: 14px 12px 26px; }
  .tools-library-page .tools-hero h1 { font-size: 1.9rem; }
  .tools-library-page .tools-hero p { font-size: 14px; }
  .tools-library-page .market-tool-grid { grid-template-columns: 1fr; gap: 7px; }
  .tools-library-page .market-tool-card { min-height: 0; padding: 11px 12px; }
  .tools-library-page .market-tool-card h2 { margin: 7px 0 4px; font-size: 1rem; }
  .tools-library-page .market-tool-card p { display: none; }
  .tools-library-page .market-tool-action { padding-top: 7px; }
  .tools-library-page .tool-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-library-page .tool-tabs button { min-height: 40px; padding: 7px 3px; font-size: 13px; }
  .tools-library-page .advanced-tool-panel { padding: 13px; }
  .tools-library-page .tool-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-library-page .tool-detail-grid { grid-template-columns: 1fr 1fr; }
  .tools-library-page .guide-cta { align-items: flex-start; flex-direction: column; }
  .compact-calculator-page > .hero { padding: 15px 0 !important; }
  .compact-calculator-page > .hero h1 { font-size: 1.85rem !important; }
  .compact-calculator-page > .hero p { font-size: 14px !important; }
  .compact-calculator-page main.container { padding: 11px 14px 26px !important; }
  .compact-calculator-page .tool-container { gap: 9px !important; margin-top: 7px !important; }
  .compact-calculator-page .tool-panel, .compact-calculator-page .chart-card { padding: 12px !important; }
  .compact-calculator-page .calculator-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-calculator-page .input-group { margin-bottom: 8px !important; }
  .compact-calculator-page .chart-wrapper { height: 185px !important; }
  .compact-calculator-page .summary-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compact-calculator-page .summary-card { padding: 9px 6px !important; }
  .compact-calculator-page .summary-card span { font-size: 12px; }
  .compact-calculator-page .summary-card strong { font-size: 14px; }
  .compact-calculator-page main.container > .card { padding: 12px !important; }
  .compact-tool-page .advanced-tool-main { padding: 10px 12px 28px; }
  .compact-tool-page .advanced-tool-hero { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 10px; gap: 6px; }
  .compact-tool-page .advanced-tool-hero h1 { font-size: 1.5rem; line-height: 1.04; }
  .compact-tool-page .advanced-tool-hero h1 br { display: none; }
  .compact-tool-page .advanced-tool-hero p { display: none; }
  .compact-tool-page .advanced-hero-mark { width: 52px; height: 52px; }
  .compact-tool-page .advanced-hero-mark span { font-size: 1.1rem; }
  .compact-tool-page .advanced-hero-mark small { display: none; }
  .compact-tool-page .advanced-tool-grid { grid-template-columns: 1fr; }
  .compact-tool-page .advanced-input-card, .compact-tool-page .advanced-result-card { padding: 10px; }
  .compact-tool-page .advanced-input-card h2, .compact-tool-page .advanced-result-card h2 { margin: 3px 0 7px; font-size: 1.05rem; }
  .compact-tool-page .advanced-note { display: none; }
  .compact-tool-page .advanced-status { display: none; }
  .compact-tool-page .advanced-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .compact-tool-page .advanced-form-grid label { gap: 3px; font-size: 14px; line-height: 1.12; }
  .compact-tool-page .advanced-form-grid input, .compact-tool-page .advanced-form-grid select { min-height: 36px; padding: 5px 6px; font-size: 16px; }
  .compact-tool-page .advanced-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .compact-tool-page .advanced-stat-grid > div { height: 42px; min-height: 0; overflow: hidden; padding: 4px; }
  .compact-tool-page .advanced-stat-grid span { font-size: 10px; line-height: 1.1; }
  .compact-tool-page .advanced-stat-grid strong { margin-top: 2px; font-size: 14px; line-height: 1.05; }
  .compact-tool-page .svg-chart-card { padding: 12px; }
  .compact-tool-page .scenario-svg { min-height: 170px; }
  .compact-tool-page .chart-card-head { align-items: flex-start; flex-direction: column; gap: 0; }
  .compact-tool-page .tool-explain-grid { grid-template-columns: 1fr; padding: 12px; }
  .compact-tool-page .tool-guide-link-card { align-items: flex-start; flex-direction: column; padding: 12px; }
}

@media (max-width: 390px) {
  .tools-library-page .tools-hero h1 { font-size: 1.75rem; }
  .tools-library-page .tool-form-grid { gap: 7px; }
  .tools-library-page .tool-form-grid label { font-size: 14px; }
  .tools-library-page .tool-form-grid input, .tools-library-page .tool-form-grid select { padding-left: 7px; padding-right: 7px; }
  .compact-tool-page .advanced-tool-hero h1 { font-size: 1.65rem; }
  .compact-tool-page .advanced-form-grid { gap: 7px; }
  .compact-tool-page .advanced-form-grid label { font-size: 14px; }
}


/* Final mobile fit for the legacy compound calculator. */
@media (max-width: 820px) {
  .compact-calculator-page > header { box-sizing: border-box; width: 100%; overflow: hidden; }
  .compact-calculator-page > header .nav-container { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 42px; flex-wrap: nowrap; }
  .compact-calculator-page > header .primary-nav, .compact-calculator-page > header .tools-selector { display: none !important; }
  .compact-calculator-page > header .lang-selector { flex: 0 0 auto; width: auto; max-width: 82px; margin-left: auto; overflow: hidden; }
  .compact-calculator-page > header .lang-btn { max-width: 82px; padding: 8px 6px; font-size: 12px; white-space: nowrap; }
}

@media (max-width: 560px) {
  .compact-calculator-page > .hero { display: block !important; box-sizing: border-box; width: 100%; min-height: 0 !important; padding: 12px 14px !important; }
  .compact-calculator-page > .hero .hero-badge { margin: 0 0 6px; font-size: 11px; }
  .compact-calculator-page > .hero h1 { margin: 5px 0 !important; font-size: 1.7rem !important; line-height: 1.08 !important; }
  .compact-calculator-page > .hero p { max-height: 2.8em; overflow: hidden; font-size: 13px !important; line-height: 1.4 !important; }
  .compact-calculator-page .tool-container { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important; align-items: start; gap: 8px !important; }
  .compact-calculator-page .tool-panel { padding: 9px !important; }
  .compact-calculator-page .calculator-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px !important; margin-bottom: 8px !important; padding: 3px !important; }
  .compact-calculator-page .tab-btn { min-height: 34px; padding: 6px 2px !important; font-size: 13px !important; }
  .compact-calculator-page .input-group { margin-bottom: 6px !important; }
  .compact-calculator-page .input-group label { margin-bottom: 3px !important; font-size: 14px !important; }
  .compact-calculator-page .input-field-wrapper input[type="number"] { min-height: 38px; padding: 6px 7px !important; font-size: 16px !important; }
  .compact-calculator-page .input-range { display: none; }
  .compact-calculator-page .results-panel { gap: 6px !important; }
  .compact-calculator-page .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px !important; }
  .compact-calculator-page .summary-card { padding: 7px 5px !important; }
  .compact-calculator-page .summary-card:nth-child(3) { grid-column: 1 / -1; }
  .compact-calculator-page .summary-card span { font-size: 11px; }
  .compact-calculator-page .summary-card strong { font-size: 14px; }
  .compact-calculator-page .chart-card, .compact-calculator-page main.container > .card { display: none; }
}


@media (max-width: 560px) {
  .compact-calculator-page .input-field-wrapper input[type="number"] { box-sizing: border-box; height: 34px; min-height: 34px; padding: 4px 7px !important; font-size: 16px !important; line-height: 1.1; }
}


@media (max-width: 560px) {
  .tools-library-page main { display: flex; flex-direction: column; }
  .tools-library-page .tools-hero { order: 1; }
  .tools-library-page .tool-tabs { order: 2; }
  .tools-library-page .advanced-tool-panel.active { order: 3; }
  .tools-library-page .market-tool-grid { order: 4; }
  .tools-library-page .guide-cta { order: 5; }
  .tools-library-page .tool-disclaimer { order: 6; }
}


@media (max-width: 560px) {
  .tools-library-page .tools-hero p { display: none; }
  .tools-library-page .tools-hero { margin-bottom: 8px; }
  .tools-library-page .tool-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .tools-library-page .tool-tabs button { min-height: 36px; padding: 5px 2px; font-size: 12px; line-height: 1.15; }
  .tools-library-page .advanced-tool-panel { padding: 10px; }
  .tools-library-page .advanced-tool-panel h2 { margin: 0 0 4px; font-size: 1.08rem; }
  .tools-library-page .tool-note { display: none; }
  .tools-library-page .tool-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
  .tools-library-page .tool-form-grid label { gap: 3px; font-size: 14px; line-height: 1.1; }
  .tools-library-page .tool-form-grid input, .tools-library-page .tool-form-grid select { box-sizing: border-box; min-height: 36px; padding: 5px 6px; font-size: 16px; font-weight: 600; }
  .tools-library-page .tool-calc-button { min-height: 36px; padding: 7px 10px; font-size: 14px; }
  .tools-library-page .tool-result { min-height: 0; margin-top: 7px; padding: 8px 9px; font-size: 14px; line-height: 1.35; }
}


/* =========================================================
   Knowledge tree compact density pass · 2026-08-25
   Scoped to the homepage so R:R / Grid HUD and other tools stay unchanged.
   ========================================================= */
.home-page #knowledge-tree {
  max-width: 1180px;
  padding-top: 56px;
}
.home-page #knowledge-tree .section-heading-row {
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.home-page #knowledge-tree .section-heading-row h2 {
  margin: 5px 0 6px;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.12;
}
.home-page #knowledge-tree .section-heading-row p {
  max-width: 700px;
  font-size: .88rem;
  line-height: 1.45;
}
.home-page #knowledge-tree .tree-count {
  gap: 7px;
  padding-left: 14px;
}
.home-page #knowledge-tree .tree-count strong {
  font-size: 1.9rem;
}
.home-page #knowledge-tree .tree-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.home-page #knowledge-tree .search-box {
  width: auto;
  min-width: 0;
  height: 38px;
  padding: 7px 10px;
  gap: 8px;
  box-sizing: border-box;
}
.home-page #knowledge-tree .search-box input {
  font-size: .86rem;
}
.home-page #knowledge-tree .tree-filters {
  min-width: 0;
  justify-content: flex-end;
  gap: 6px;
}
.home-page #knowledge-tree .filter-chip {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--copy-muted);
  background: rgba(255,255,255,.035);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
.home-page #knowledge-tree .filter-chip span {
  margin-left: 3px;
  color: inherit;
}
.home-page #knowledge-tree .filter-chip:not(.is-active):hover,
.home-page #knowledge-tree .filter-chip:not(.is-active):focus-visible {
  border-color: rgba(255,159,67,.58);
  color: #fff;
  background: rgba(255,159,67,.12);
}
.home-page #knowledge-tree .filter-chip.is-active,
.home-page #knowledge-tree .filter-chip.is-active:hover,
.home-page #knowledge-tree .filter-chip.is-active:focus-visible {
  border-color: #f97316;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(249,115,22,.18);
}
.home-page #knowledge-tree .filter-chip.is-active span {
  color: #fff;
}
.home-page #knowledge-tree .filter-chip:focus-visible,
.home-page #knowledge-tree .search-box:focus-within {
  outline: 2px solid rgba(255,193,91,.78);
  outline-offset: 2px;
}
.home-page #knowledge-tree .knowledge-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-page #knowledge-tree .knowledge-card {
  min-height: 0;
  padding: 14px;
  border-radius: 13px;
}
.home-page #knowledge-tree .card-index {
  top: 12px;
  right: 13px;
  font-size: 12px;
}
.home-page #knowledge-tree .card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 9px;
}
.home-page #knowledge-tree .card-topline {
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
}
.home-page #knowledge-tree .card-status {
  font-size: 10px;
}
.home-page #knowledge-tree .knowledge-card h3 {
  margin: 7px 0 5px;
  font-size: 17px;
  line-height: 1.25;
}
.home-page #knowledge-tree .knowledge-card p {
  min-height: 0;
  font-size: 13px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.home-page #knowledge-tree .topic-tags {
  gap: 4px;
  margin: 10px 0 9px;
}
.home-page #knowledge-tree .topic-tags span {
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}
.home-page #knowledge-tree .text-link {
  gap: 6px;
  font-size: 13px;
  line-height: 1.25;
}
.home-page #knowledge-tree .empty-state {
  padding: 28px 16px;
}

@media (max-width: 1040px) {
  .home-page #knowledge-tree .knowledge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-page #knowledge-tree {
    padding-top: 46px;
  }
  .home-page #knowledge-tree .section-heading-row {
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .home-page #knowledge-tree .section-heading-row h2 {
    font-size: 1.75rem;
  }
  .home-page #knowledge-tree .tree-toolbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  .home-page #knowledge-tree .search-box {
    width: 100%;
  }
  .home-page #knowledge-tree .tree-filters {
    justify-content: flex-start;
  }
  .home-page #knowledge-tree .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .home-page #knowledge-tree .knowledge-card {
    padding: 13px;
  }
}

@media (max-width: 390px) {
  .home-page #knowledge-tree {
    padding-top: 40px;
  }
  .home-page #knowledge-tree .section-heading-row h2 {
    font-size: 1.62rem;
  }
  .home-page #knowledge-tree .section-heading-row p {
    font-size: 13px;
    line-height: 1.4;
  }
  .home-page #knowledge-tree .tree-count {
    padding-left: 0;
  }
  .home-page #knowledge-tree .filter-chip {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
  }
  .home-page #knowledge-tree .knowledge-card {
    padding: 12px;
  }
  .home-page #knowledge-tree .card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }
  .home-page #knowledge-tree .card-topline {
    font-size: 11px;
  }
  .home-page #knowledge-tree .card-status {
    font-size: 9px;
  }
  .home-page #knowledge-tree .knowledge-card h3 {
    font-size: 16px;
    line-height: 1.25;
  }
  .home-page #knowledge-tree .knowledge-card p {
    font-size: 13px;
    line-height: 1.35;
  }
  .home-page #knowledge-tree .topic-tags {
    margin-top: 8px;
  }
  .home-page #knowledge-tree .topic-tags span,
  .home-page #knowledge-tree .text-link {
    font-size: 13px;
  }
}


/* =========================================================
   Human-first compact editorial pass · 2026-08-25
   Tightens the homepage and guide pages without touching R:R/Grid HUD logic.
   ========================================================= */
.home-page .hero-shell {
  padding: 0;
}
.home-page .hero-grid {
  min-height: 0;
  padding: 42px 24px 46px;
  gap: 5%;
}
.home-page .hero-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 4.35rem);
  line-height: 1.02;
}
.home-page .eyebrow {
  margin-bottom: 14px;
}
.home-page .hero-lede {
  margin: 18px 0 20px;
  font-size: 1rem;
  line-height: 1.6;
}
.home-page .hero-proof {
  gap: 12px;
  margin-top: 20px;
}
.home-page .hero-console {
  padding: 22px;
  border-radius: 18px;
}
.home-page .console-title {
  margin: 36px 0 30px;
  font-size: 1.8rem;
}
.home-page .console-footer {
  margin-top: 34px;
  padding-top: 13px;
}
.home-page .button-primary,
.home-page .button-primary:hover,
.home-page .filter-chip.is-active,
.home-page .filter-chip.is-active:hover,
.home-page .filter-chip.is-active:focus-visible {
  color: #fff;
}
.home-page .section-block {
  padding-top: 32px;
}
.home-page .section-heading-row {
  margin-bottom: 14px;
}
.home-page .section-heading-row h2 {
  margin: 6px 0 7px;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.12;
}
.home-page .section-heading-row p {
  font-size: .88rem;
  line-height: 1.5;
}
.home-page .tool-preview-section,
.home-page .reading-section {
  margin-top: 30px;
}
.home-page .tool-feature-grid,
.home-page .reading-grid {
  gap: 10px;
}
.home-page .tool-feature-card {
  min-height: 220px;
  padding: 16px;
  border-radius: 13px;
}
.home-page .feature-icon {
  width: 34px;
  height: 34px;
  margin: 20px 0 11px;
  border-radius: 9px;
}
.home-page .tool-feature-card h3 {
  margin: 6px 0 7px;
  font-size: 1rem;
  line-height: 1.25;
}
.home-page .tool-feature-card p {
  font-size: .78rem;
  line-height: 1.48;
}
.home-page .feature-cta {
  padding-top: 12px;
  font-size: .75rem;
}
.home-page .reading-card {
  min-height: 180px;
  padding: 16px;
  border-radius: 13px;
}
.home-page .reading-card h3 {
  margin: 15px 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}
.home-page .reading-card p {
  font-size: .78rem;
  line-height: 1.5;
}
.home-page .reading-card span {
  padding-top: 12px;
  font-size: .75rem;
}
.home-page .sponsor-stack {
  padding-top: 34px;
  padding-bottom: 42px;
}
.home-page .tradingview-cta,
.home-page .support-cta {
  min-height: 220px;
  padding: 20px;
}
.home-page .tradingview-cta h2,
.home-page .support-cta h2 {
  margin: 16px 0 8px;
  font-size: 1.35rem;
}
.home-page .tradingview-cta p,
.home-page .support-cta p {
  font-size: .8rem;
  line-height: 1.5;
}
.home-page .amazon-hub {
  padding: 20px;
}
.home-page .amazon-grid {
  margin-top: 16px;
}

/* Shared guide pages: compact reading shell and unmistakable current topic. */
.guide-page main {
  padding-top: 20px;
  padding-bottom: 42px;
}
.guide-page .guide-layout {
  gap: 16px;
}
.guide-page .guide-sidebar {
  top: 74px;
  padding: 12px;
  border-radius: 13px;
}
.guide-page .guide-sidebar .section-kicker {
  margin-bottom: 8px;
}
.guide-page .guide-sidebar a {
  padding: 6px 8px;
  font-size: .77rem;
  line-height: 1.25;
}
.guide-page .guide-sidebar a.active,
.guide-page .guide-sidebar a[aria-current="page"] {
  box-sizing: border-box;
  padding-left: 5px;
  border-left: 3px solid var(--orange);
  color: #fff;
  background: rgba(255,159,67,.16);
  box-shadow: inset 0 0 0 1px rgba(255,159,67,.22);
  font-weight: 700;
}
.guide-page .guide-hero {
  padding: 22px 26px;
  border-radius: 15px;
}
.guide-page .guide-hero h1 {
  margin: 8px 0 10px;
  max-width: 850px;
  font-size: clamp(1.8rem, 3.1vw, 2.85rem);
  line-height: 1.1;
}
.guide-page .guide-hero p {
  max-width: 780px;
  font-size: .92rem;
  line-height: 1.55;
}
.guide-page .guide-meta {
  gap: 6px;
  margin-top: 14px;
}
.guide-page .guide-meta span {
  padding: 4px 8px;
  font-size: .67rem;
}
.guide-page .guide-body {
  padding: 22px 26px;
  margin-top: 10px;
  border-radius: 15px;
}
.guide-page .guide-body section {
  margin-bottom: 24px;
}
.guide-page .guide-body section h2 {
  margin: 22px 0 8px;
  font-size: 1.28rem;
  line-height: 1.2;
}
.guide-page .guide-body section h2:first-child {
  margin-top: 0;
}
.guide-page .guide-body h3 {
  margin: 17px 0 7px;
  font-size: .96rem;
}
.guide-page .guide-body p {
  font-size: .92rem;
  line-height: 1.65;
}
.guide-page .guide-body ul,
.guide-page .guide-body ol {
  font-size: .88rem;
  line-height: 1.65;
}
.guide-page .guide-callout {
  margin: 16px 0;
  padding: 12px 14px;
  font-size: .84rem;
  line-height: 1.55;
}
.guide-page .guide-table {
  margin: 13px 0 19px;
  font-size: .78rem;
}
.guide-page .guide-table th,
.guide-page .guide-table td {
  padding: 8px 10px;
}
.guide-page .guide-references {
  padding-top: 20px;
}
.guide-page .guide-tool-launch,
.guide-page .tool-guide-link-card {
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 13px;
}
.guide-page .guide-tool-launch h2,
.guide-page .tool-guide-link-card h2 {
  margin: 4px 0 6px;
  font-size: 1.22rem;
}
.guide-page .guide-tool-launch p,
.guide-page .tool-guide-link-card p {
  font-size: .82rem;
  line-height: 1.55;
}
.guide-page .guide-tool-launch-grid {
  min-width: 300px;
  gap: 7px;
}
.guide-page .guide-tool-card {
  gap: 4px;
  padding: 10px;
}
.guide-page .guide-tool-card strong {
  font-size: .78rem;
}
.guide-page .guide-tool-card span {
  font-size: .68rem;
}
.guide-page .guide-tools {
  gap: 6px;
  margin-top: 9px;
}
.guide-page .guide-tools a {
  padding: 6px 8px;
  font-size: .72rem;
}
.guide-page .guide-cta {
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
}
.guide-page .guide-cta p {
  font-size: .76rem;
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .home-page .hero-grid {
    gap: 4%;
  }
}

@media (max-width: 820px) {
  .home-page .hero-grid {
    padding: 32px 18px 36px;
    gap: 22px;
  }
  .home-page .hero-copy h1 {
    font-size: clamp(2.25rem, 7vw, 3.4rem);
  }
  .home-page .hero-console {
    max-width: 600px;
    padding: 19px;
  }
  .home-page .console-title {
    margin: 28px 0 24px;
  }
  .home-page .section-block {
    padding-top: 26px;
  }
  .home-page .tool-preview-section,
  .home-page .reading-section {
    margin-top: 24px;
  }
  .home-page .tool-feature-card {
    min-height: 190px;
    padding: 14px;
  }
  .home-page .reading-card {
    min-height: 165px;
    padding: 14px;
  }
  .guide-page main {
    padding-top: 14px;
    padding-bottom: 32px;
  }
  .guide-page .guide-layout {
    gap: 12px;
  }
  .guide-page .guide-sidebar {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .guide-page .guide-sidebar .section-kicker {
    flex: 0 0 auto;
    margin: 0 4px 0 0;
  }
  .guide-page .guide-sidebar a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 30px;
  }
  .guide-page .guide-hero {
    padding: 18px 20px;
  }
  .guide-page .guide-body {
    padding: 18px 20px;
  }
}

@media (max-width: 560px) {
  .home-page .hero-grid {
    padding: 26px 16px 28px;
    gap: 18px;
  }
  .home-page .hero-copy h1 {
    font-size: 2.28rem;
  }
  .home-page .hero-lede {
    font-size: .92rem;
    line-height: 1.5;
  }
  .home-page .hero-proof {
    gap: 7px;
    margin-top: 14px;
  }
  .home-page .hero-console {
    padding: 16px;
  }
  .home-page .console-title {
    margin: 24px 0 20px;
    font-size: 1.5rem;
  }
  .home-page .console-footer {
    margin-top: 24px;
  }
  .home-page .section-block {
    padding-top: 22px;
  }
  .home-page .tool-preview-section,
  .home-page .reading-section {
    margin-top: 20px;
  }
  .home-page .tool-feature-grid,
  .home-page .reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .tool-feature-card {
    min-height: 174px;
    padding: 12px;
  }
  .home-page .feature-icon {
    margin: 14px 0 8px;
  }
  .home-page .tool-feature-card p,
  .home-page .reading-card p {
    font-size: .74rem;
    line-height: 1.4;
  }
  .home-page .reading-card {
    min-height: 150px;
    padding: 12px;
  }
  .home-page .sponsor-stack {
    padding-top: 24px;
    padding-bottom: 30px;
  }
  .home-page .tradingview-cta,
  .home-page .support-cta,
  .home-page .amazon-hub {
    padding: 16px;
  }
  .guide-page .guide-sidebar {
    padding: 7px;
  }
  .guide-page .guide-sidebar a {
    padding: 5px 7px;
    font-size: .72rem;
  }
  .guide-page .guide-hero {
    padding: 16px;
  }
  .guide-page .guide-hero h1 {
    font-size: 2rem;
    line-height: 1.08;
  }
  .guide-page .guide-hero p {
    font-size: .86rem;
    line-height: 1.5;
  }
  .guide-page .guide-body {
    padding: 16px;
  }
  .guide-page .guide-body section {
    margin-bottom: 18px;
  }
  .guide-page .guide-body section h2 {
    margin: 18px 0 7px;
    font-size: 1.18rem;
  }
  .guide-page .guide-body p {
    font-size: .88rem;
    line-height: 1.58;
  }
  .guide-page .guide-tool-launch,
  .guide-page .tool-guide-link-card {
    padding: 13px;
  }
  .guide-page .guide-tool-launch-grid {
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .button,
  .home-page .knowledge-card,
  .home-page .tool-feature-card,
  .home-page .reading-card,
  .guide-page .guide-tool-card {
    transition: none;
  }
}


/* Mobile readability guard: keep editorial tables inside the viewport. */
@media (max-width: 600px) {
  .guide-page .guide-body {
    overflow-x: hidden;
  }
  .guide-page .guide-table {
    display: table;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    font-size: .72rem;
  }
  .guide-page .guide-table th,
  .guide-page .guide-table td {
    padding: 7px 5px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .home-page .hero-console {
    padding: 14px;
  }
  .home-page .console-title {
    margin: 20px 0 16px;
    font-size: 1.4rem;
  }
  .home-page .console-track {
    gap: 4px;
  }
  .home-page .track-step {
    gap: 7px;
    font-size: .62rem;
  }
  .home-page .track-step span {
    width: 31px;
    height: 31px;
  }
  .home-page .track-line {
    top: 15px;
  }
  .home-page .console-footer {
    margin-top: 18px;
    padding-top: 10px;
  }
}


@media (max-width: 600px) {
  .home-page .hero-grid {
    padding: 20px 16px 22px;
    gap: 12px;
  }
  .home-page .hero-copy h1 {
    font-size: 2.12rem;
  }
  .home-page .hero-lede {
    margin: 13px 0 15px;
    font-size: .88rem;
  }
  .home-page .hero-actions {
    gap: 8px;
  }
  .home-page .hero-actions .button {
    padding: 10px 12px;
    font-size: .78rem;
  }
  .home-page .hero-proof {
    flex-direction: row;
    align-items: center;
    gap: 6px 10px;
    margin-top: 11px;
    font-size: .68rem;
  }
  .home-page .hero-console {
    padding: 11px;
    border-radius: 14px;
  }
  .home-page .console-top,
  .home-page .console-footer {
    font-size: .6rem;
  }
  .home-page .console-title {
    margin: 15px 0 13px;
    font-size: 1.22rem;
  }
  .home-page .track-step {
    gap: 5px;
    font-size: .57rem;
  }
  .home-page .track-step span {
    width: 28px;
    height: 28px;
  }
  .home-page .track-line {
    top: 14px;
  }
  .home-page .console-footer {
    margin-top: 13px;
    padding-top: 8px;
  }
}


/* =========================================================
   Homepage density + stable hero typography pass · 2026-08-25
   Keeps the slogan on two deterministic lines and removes visual jitter.
   ========================================================= */
.home-page .site-header {
  padding: 8px 20px;
}
.home-page .nav-container {
  gap: 18px;
}
.home-page .logo {
  gap: 9px;
}
.home-page .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.home-page .logo-text {
  font-size: 1rem;
}
.home-page .logo-tag {
  padding: 3px 7px;
  font-size: .58rem;
}
.home-page .primary-nav {
  gap: 18px;
}
.home-page .primary-nav a,
.home-page .support-link,
.home-page .lang-btn {
  font-size: .8rem;
}
.home-page .nav-actions {
  gap: 8px;
}
.home-page .support-link,
.home-page .lang-btn {
  padding: 7px 10px;
}
.home-page .hero-grid {
  max-width: 1180px;
  min-height: 0;
  padding: 28px 22px 32px;
  gap: 4%;
}
.home-page .hero-copy {
  max-width: 600px;
}
.home-page .eyebrow {
  margin-bottom: 10px;
  font-size: .64rem;
  line-height: 1.2;
  white-space: nowrap;
}
.home-page .hero-copy h1 {
  min-height: 2.12em;
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.home-page .hero-copy h1 .hero-title-line,
.home-page .hero-copy h1 strong {
  display: block;
  white-space: nowrap;
}
.home-page .hero-copy h1 strong {
  font-size: .9em;
}
.home-page .hero-lede {
  max-width: 560px;
  margin: 12px 0 15px;
  font-size: .9rem;
  line-height: 1.45;
}
.home-page .hero-actions {
  gap: 8px;
}
.home-page .hero-actions .button {
  padding: 9px 13px;
  font-size: .78rem;
  gap: 7px;
}
.home-page .hero-proof {
  gap: 9px;
  margin-top: 13px;
  font-size: .66rem;
  line-height: 1.25;
}
.home-page .hero-console {
  padding: 16px;
  border-radius: 15px;
  transform: none;
}
.home-page .console-top,
.home-page .console-footer {
  font-size: .62rem;
}
.home-page .console-title {
  margin: 22px 0 18px;
  font-size: 1.5rem;
  line-height: 1.1;
}
.home-page .console-track {
  gap: 4px;
}
.home-page .track-step {
  gap: 6px;
  font-size: .62rem;
}
.home-page .track-step span {
  width: 30px;
  height: 30px;
}
.home-page .track-line {
  top: 15px;
}
.home-page .console-footer {
  margin-top: 22px;
  padding-top: 10px;
}

@media (max-width: 820px) {
  .home-page .site-header {
    padding: 7px 14px;
  }
  .home-page .hero-grid {
    padding: 22px 16px 24px;
    gap: 12px;
  }
  .home-page .hero-copy h1 {
    font-size: 1.96rem;
  }
  .home-page .hero-console {
    max-width: 100%;
    padding: 13px;
  }
  .home-page .console-title {
    margin: 17px 0 14px;
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .home-page .site-header {
    padding: 6px 12px;
  }
  .home-page .nav-container {
    gap: 10px;
  }
  .home-page .logo-icon {
    width: 32px;
    height: 32px;
  }
  .home-page .logo-text {
    font-size: .94rem;
  }
  .home-page .hero-grid {
    padding: 18px 14px 20px;
    gap: 10px;
  }
  .home-page .hero-copy h1 {
    min-height: 0;
    font-size: 1.78rem;
  }
  .home-page .hero-lede {
    margin: 10px 0 12px;
    font-size: .82rem;
    line-height: 1.42;
  }
  .home-page .hero-actions {
    gap: 6px;
  }
  .home-page .hero-actions .button {
    padding: 8px 10px;
    font-size: .72rem;
  }
  .home-page .hero-proof {
    gap: 5px 8px;
    margin-top: 10px;
    font-size: .62rem;
  }
  .home-page .hero-console {
    padding: 11px;
    border-radius: 13px;
  }
  .home-page .console-top,
  .home-page .console-footer {
    font-size: .55rem;
  }
  .home-page .console-title {
    margin: 12px 0 11px;
    font-size: 1.1rem;
  }
  .home-page .track-step {
    gap: 4px;
    font-size: .52rem;
  }
  .home-page .track-step span {
    width: 25px;
    height: 25px;
  }
  .home-page .track-line {
    top: 12px;
  }
  .home-page .console-footer {
    margin-top: 11px;
    padding-top: 8px;
  }
}


/* Content architecture: chapter quick-jumps and topic-hub modules */
.guide-page .guide-chapter-nav {
  position: sticky;
  top: 76px;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
  padding: 9px 10px;
  border: 1px solid rgba(255,159,67,.24);
  border-radius: 11px;
  background: rgba(12,18,28,.94);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}
.guide-page .guide-chapter-label {
  flex: 0 0 auto;
  color: var(--orange, #ff9f43);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 7px;
}
.guide-page .guide-chapter-nav a {
  flex: 0 0 auto;
  color: var(--copy-soft, #c2ccda);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: .76rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.guide-page .guide-chapter-nav a:hover,
.guide-page .guide-chapter-nav a:focus-visible {
  color: #fff;
  border-color: rgba(255,159,67,.72);
  background: rgba(255,159,67,.14);
  outline: none;
}
.guide-page .guide-module {
  scroll-margin-top: 94px;
  padding-top: 2px;
}
.guide-page .guide-module + .guide-module {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.guide-page .guide-module > .section-kicker {
  margin-bottom: 8px;
  color: var(--orange, #ff9f43);
}
.guide-page .guide-module h2 {
  max-width: 900px;
  margin-top: 0;
}
.guide-page .guide-checklist-section {
  padding-top: 4px;
}
.guide-page .guide-checklist-section h2 {
  margin-top: 0;
}
@media (max-width: 820px) {
  .guide-page .guide-chapter-nav {
    position: static;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    padding: 7px;
    scrollbar-width: thin;
  }
  .guide-page .guide-chapter-nav a {
    font-size: .72rem;
    white-space: nowrap;
  }
  .guide-page .guide-module + .guide-module {
    margin-top: 24px;
    padding-top: 22px;
  }
}
@media (max-width: 560px) {
  .guide-page .guide-chapter-label {
    font-size: .62rem;
  }
  .guide-page .guide-chapter-nav a {
    padding: 6px 8px;
  }
}

/* The knowledge tree now includes an execution-focused thirteenth topic. */
.home-page .knowledge-card[data-category="strategy"] .card-icon {
  color: #ff887a;
  background: rgba(255,136,122,.12);
}
.home-page .knowledge-card[data-category="strategy"] .text-link,
.home-page .knowledge-card[data-category="strategy"] h3 {
  color: #ff887a;
}
.home-page .knowledge-card[data-category="strategy"] .topic-tags span {
  border-color: rgba(255,136,122,.24);
}
@media (max-width: 560px) {
  .home-page .knowledge-card[data-category="strategy"] .text-link {
    color: #ffaaa0;
  }
}


/* =========================================================
   Content architecture visual modules · 2026-08-25
   Four-module guides, SVG maps, chapter anchors, and tool handoffs.
   ========================================================= */
.guide-topic-hub .guide-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 159, 67, .22);
  border-radius: 12px;
  background: rgba(17, 24, 38, .86);
  position: sticky;
  top: 72px;
  z-index: 8;
  backdrop-filter: blur(14px);
}
.guide-topic-hub .guide-chapter-label {
  color: #ffb56d;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-right: 3px;
  white-space: nowrap;
}
.guide-topic-hub .guide-chapter-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  color: #dbe4ef;
  font-size: .76rem;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.guide-topic-hub .guide-chapter-nav a:hover,
.guide-topic-hub .guide-chapter-nav a:focus-visible {
  border-color: rgba(255, 159, 67, .78);
  color: #fff;
  background: rgba(249, 115, 22, .16);
  outline: none;
}
.guide-topic-hub .guide-module {
  scroll-margin-top: 92px;
  margin: 0 0 22px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(121, 141, 170, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 28, 43, .94), rgba(13, 19, 31, .95));
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}
.guide-topic-hub .guide-module h2 {
  margin: 5px 0 12px;
  max-width: 900px;
  font-size: clamp(1.28rem, 2.1vw, 1.8rem);
  line-height: 1.25;
}
.guide-figure {
  margin: 10px 0 15px;
  padding: 7px;
  border: 1px solid rgba(126, 146, 177, .16);
  border-radius: 12px;
  background: #0b111c;
  overflow: hidden;
}
.guide-figure svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 145px;
}
.guide-figure figcaption {
  margin: 5px 4px 1px;
  color: #8997aa;
  font-size: .7rem;
  line-height: 1.45;
}
.guide-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 146, 177, .14);
}
.guide-inline-cta a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffad5c;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.guide-inline-cta a:hover,
.guide-inline-cta a:focus-visible {
  color: #fff;
}
.guide-inline-cta span {
  color: #8794a6;
  font-size: .72rem;
  text-align: right;
}
.guide-topic-hub .guide-checklist-section {
  padding: 17px 20px;
  border: 1px solid rgba(88, 214, 192, .18);
  border-radius: 14px;
  background: rgba(17, 36, 39, .34);
}
@media (max-width: 700px) {
  .guide-topic-hub .guide-chapter-nav {
    top: 56px;
    gap: 5px;
    margin-bottom: 13px;
    padding: 7px;
  }
  .guide-topic-hub .guide-chapter-label {
    width: 100%;
  }
  .guide-topic-hub .guide-chapter-nav a {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-height: 29px;
    padding: 5px 6px;
    font-size: .69rem;
    text-align: center;
  }
  .guide-topic-hub .guide-module {
    scroll-margin-top: 132px;
    margin-bottom: 14px;
    padding: 13px 12px 12px;
    border-radius: 12px;
  }
  .guide-topic-hub .guide-module h2 {
    margin: 4px 0 9px;
    font-size: 1.14rem;
    line-height: 1.32;
  }
  .guide-figure {
    margin: 8px 0 11px;
    padding: 5px;
  }
  .guide-figure svg {
    min-height: 115px;
  }
  .guide-figure figcaption {
    font-size: .64rem;
  }
  .guide-inline-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding-top: 8px;
  }
  .guide-inline-cta span {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-topic-hub .guide-chapter-nav a {
    transition: none;
  }
}


/* =========================================================
   Long-form knowledge encyclopedia · 2026-08-25
   Article pages intentionally scroll; compact single-screen rules
   remain scoped to .tools-library-page / .compact-* tool pages.
   ========================================================= */
.guide-longform main {
  max-width: 1220px;
  padding-top: 38px;
  padding-bottom: 64px;
}
.guide-longform .guide-layout {
  grid-template-columns: 238px minmax(0, 900px);
  justify-content: center;
  gap: 24px;
}
.guide-longform .guide-sidebar {
  top: 84px;
  padding: 15px;
}
.guide-longform .guide-content {
  min-width: 0;
}
.guide-longform .guide-hero {
  padding: 27px 31px 25px;
}
.guide-longform .guide-hero h1 {
  max-width: 850px;
  margin: 11px 0 12px;
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1.14;
  letter-spacing: -.045em;
}
.guide-longform .guide-hero p {
  max-width: 820px;
  font-size: .98rem;
  line-height: 1.78;
}
.guide-longform .guide-body {
  margin-top: 12px;
  padding: 26px 31px 34px;
  overflow: visible;
}
.guide-longform .guide-chapter-nav {
  position: sticky;
  top: 72px;
  margin: 0 0 25px;
  padding: 9px 10px;
  background: rgba(11, 17, 28, .96);
  border-color: rgba(255, 159, 67, .34);
}
.guide-longform .guide-chapter-label {
  color: #ffb56d;
  font-size: .68rem;
  white-space: nowrap;
}
.guide-longform .guide-chapter-nav a {
  color: #f2f6fb;
  border-color: rgba(255, 255, 255, .16);
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 600;
}
.guide-longform .guide-chapter-nav a:hover,
.guide-longform .guide-chapter-nav a:focus-visible {
  color: #fff;
  background: #f97316;
  border-color: #f97316;
}
.guide-longform .guide-module {
  scroll-margin-top: 108px;
  margin: 0;
  padding: 0 0 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.guide-longform .guide-module + .guide-module {
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, .2);
}
.guide-longform .guide-module > .section-kicker {
  margin-bottom: 9px;
  color: #ff9f43;
  font-size: .7rem;
  letter-spacing: .1em;
}
.guide-longform .guide-module h2 {
  max-width: 850px;
  margin: 0 0 17px;
  font-size: clamp(1.42rem, 2.35vw, 2.05rem);
  line-height: 1.24;
  letter-spacing: -.035em;
}
.guide-longform .guide-prose {
  max-width: 850px;
}
.guide-longform .guide-prose h3 {
  margin: 24px 0 9px;
  color: #f2f6fb;
  font-size: 1.08rem;
  line-height: 1.38;
  letter-spacing: -.015em;
}
.guide-longform .guide-prose h3:first-child {
  margin-top: 0;
}
.guide-longform .guide-prose p {
  margin: 0 0 15px;
  color: #cbd5e1;
  font-size: .98rem;
  line-height: 1.88;
}
.guide-longform .guide-prose p:last-child {
  margin-bottom: 0;
}
.guide-longform .guide-prose code {
  padding: 2px 5px;
  border: 1px solid rgba(126, 214, 176, .25);
  border-radius: 4px;
  color: #b7f2da;
  background: rgba(16, 46, 43, .7);
  font-family: 'Space Grotesk', monospace;
  font-size: .92em;
}
.guide-diagram {
  max-width: 860px;
  margin: 0 0 24px;
  padding: 9px;
  border: 1px solid rgba(126, 146, 177, .22);
  border-radius: 14px;
  background: #0b111c;
  overflow: hidden;
}
.guide-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.guide-diagram figcaption {
  margin: 8px 5px 1px;
  color: #93a4b9;
  font-size: .76rem;
  line-height: 1.55;
}
.guide-longform .guide-table {
  width: 100%;
  min-width: 680px;
  margin: 17px 0 24px;
  font-size: .88rem;
  line-height: 1.6;
}
.guide-longform .guide-table th,
.guide-longform .guide-table td {
  padding: 10px 12px;
}
.guide-longform .guide-callout {
  max-width: 850px;
  margin: 20px 0;
  font-size: .92rem;
  line-height: 1.75;
}
.guide-longform .guide-inline-cta {
  max-width: 850px;
  margin-top: 21px;
  padding: 12px 0 0;
}
.guide-longform .guide-inline-cta a {
  color: #ffb56d;
  font-size: .86rem;
}
.guide-longform .guide-inline-cta a:hover,
.guide-longform .guide-inline-cta a:focus-visible {
  color: #fff;
}
.guide-longform .guide-checklist-section {
  margin-top: 12px;
  padding: 22px 24px;
}
.guide-longform .guide-checklist-section h2,
.guide-longform .guide-references h2 {
  margin-top: 0;
}
@media (max-width: 900px) {
  .guide-longform main {
    padding-top: 24px;
  }
  .guide-longform .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-longform .guide-sidebar {
    position: static;
  }
  .guide-longform .guide-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .guide-longform .guide-sidebar a {
    flex: 1 1 180px;
  }
}
@media (max-width: 700px) {
  .guide-longform .guide-hero,
  .guide-longform .guide-body {
    padding-left: 17px;
    padding-right: 17px;
  }
  .guide-longform .guide-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
  .guide-longform .guide-hero p,
  .guide-longform .guide-prose p {
    font-size: .94rem;
    line-height: 1.82;
  }
  .guide-longform .guide-chapter-nav {
    position: sticky;
    top: 56px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }
  .guide-longform .guide-chapter-label,
  .guide-longform .guide-chapter-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .guide-longform .guide-module {
    scroll-margin-top: 112px;
    padding-bottom: 24px;
  }
  .guide-longform .guide-module + .guide-module {
    padding-top: 25px;
  }
  .guide-longform .guide-module h2 {
    font-size: 1.36rem;
  }
  .guide-longform .guide-prose h3 {
    margin-top: 20px;
    font-size: 1.03rem;
  }
  .guide-diagram {
    margin-bottom: 19px;
    padding: 6px;
  }
  .guide-diagram figcaption {
    font-size: .7rem;
  }
  .guide-longform .guide-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .guide-longform .guide-table {
    min-width: 640px;
    font-size: .82rem;
  }
  .guide-longform .guide-checklist-section {
    padding: 17px 15px;
  }
}


/* =========================================================
   Guide chapter Scrollspy · 2026-08-25
   Active state is deliberately high-contrast: orange surface, white type.
   ========================================================= */
.guide-page .guide-chapter-nav a.active,
.guide-page .guide-chapter-nav a[aria-current="true"],
.guide-page .guide-chapter-nav button.active,
.guide-page .guide-chapter-nav button[aria-current="true"],
.guide-topic-hub .guide-chapter-nav a.active,
.guide-topic-hub .guide-chapter-nav a[aria-current="true"],
.guide-topic-hub .guide-chapter-nav button.active,
.guide-topic-hub .guide-chapter-nav button[aria-current="true"] {
  background-color: #f97316 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: #f97316 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.guide-page .guide-chapter-nav a.active:hover,
.guide-page .guide-chapter-nav a.active:focus-visible,
.guide-page .guide-chapter-nav a[aria-current="true"]:hover,
.guide-page .guide-chapter-nav a[aria-current="true"]:focus-visible,
.guide-topic-hub .guide-chapter-nav a.active:hover,
.guide-topic-hub .guide-chapter-nav a.active:focus-visible,
.guide-topic-hub .guide-chapter-nav a[aria-current="true"]:hover,
.guide-topic-hub .guide-chapter-nav a[aria-current="true"]:focus-visible {
  background-color: #f97316 !important;
  color: #ffffff !important;
  border-color: #f97316 !important;
}
html:has(body.guide-page) {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.guide-page) {
    scroll-behavior: auto;
  }
}


/* Whole knowledge cards are interactive; preserve the nested text link as the canonical destination. */
.home-page .knowledge-card[data-card-link] {
  cursor: pointer;
}
.home-page .knowledge-card[data-card-link]:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .2), 0 14px 28px rgba(0, 0, 0, .2);
}
.home-page .knowledge-card[data-card-link]:active {
  transform: translateY(1px);
}

/* =========================================================
   Converter-style Tools Hub: topic sidebar + full-card grid
   ========================================================= */
.tools-hub-main { max-width: 1320px; padding-top: 18px; padding-bottom: 36px; }
.tools-hub-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; margin-bottom: 16px; }
.tools-hub-hero h1 { margin: 5px 0 7px; font-size: clamp(1.75rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; }
.tools-hub-hero h1 span { color: var(--orange); }
.tools-hub-hero p { max-width: 760px; margin: 0; color: var(--copy-soft); font-size: .86rem; line-height: 1.55; }
.tools-hub-hero-stat { display: grid; min-width: 132px; padding: 12px 15px; border: 1px solid rgba(255,178,95,.28); border-radius: 12px; background: linear-gradient(145deg, rgba(40,31,27,.94), rgba(18,24,32,.96)); text-align: right; }
.tools-hub-hero-stat strong { color: #ffcf83; font: 700 2rem/1 "Space Grotesk", sans-serif; }
.tools-hub-hero-stat span { margin-top: 4px; color: var(--copy); font-size: .76rem; }
.tools-hub-hero-stat small { margin-top: 3px; color: var(--copy-soft); font-size: .68rem; }
.tools-hub-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 15px; }
.tools-hub-sidebar { position: sticky; top: 76px; display: grid; gap: 10px; padding: 13px; border: 1px solid rgba(141,170,185,.19); border-radius: 13px; background: linear-gradient(160deg, rgba(18,29,42,.95), rgba(10,17,27,.97)); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.tools-hub-sidebar-head { display: grid; gap: 4px; padding-bottom: 9px; border-bottom: 1px solid rgba(141,170,185,.15); }
.tools-hub-sidebar-head strong { color: var(--copy); font: 700 .98rem/1.2 "Space Grotesk", sans-serif; }
.tools-hub-sidebar-head small { color: var(--copy-soft); font-size: .7rem; line-height: 1.35; }
.tools-hub-filters { display: grid; gap: 3px; }
.tools-hub-filter { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; color: var(--copy-soft); background: transparent; font: 600 .72rem/1.2 "DM Sans", sans-serif; text-align: left; transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); }
.tools-hub-filter:hover { border-color: rgba(255,178,95,.28); color: var(--copy); background: rgba(255,178,95,.07); }
.tools-hub-filter:active { transform: scale(.98); }
.tools-hub-filter.is-active { border-color: #f97316; color: #fff; background: #f97316; box-shadow: 0 5px 15px rgba(249,115,22,.2); }
.tools-hub-filter b { display: inline-grid; min-width: 21px; height: 19px; place-items: center; padding: 0 4px; border-radius: 999px; color: #dce9f2; background: rgba(147,178,191,.15); font-size: .64rem; }
.tools-hub-filter.is-active b { color: #f97316; background: #fff; }
.tools-hub-guide-link { display: flex; align-items: center; gap: 7px; margin-top: 2px; padding: 8px 7px; border-top: 1px solid rgba(141,170,185,.15); color: #ffcf83; font-size: .7rem; line-height: 1.35; text-decoration: none; }
.tools-hub-guide-link span { flex: 1; }
.tools-hub-guide-link:hover { color: #fff; }
.tools-hub-search-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tools-hub-search { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; min-height: 39px; padding: 0 10px; border: 1px solid rgba(141,170,185,.25); border-radius: 9px; background: rgba(12,21,32,.92); }
.tools-hub-search:focus-within { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.13); }
.tools-hub-search > i { flex: 0 0 auto; color: #ffb25f; font-size: .82rem; }
.tools-hub-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #f8fafc; background: transparent; font: 500 .82rem/1.2 "DM Sans", sans-serif; }
.tools-hub-search input::placeholder { color: #8fa5b4; }
.tools-hub-search kbd { flex: 0 0 auto; padding: 2px 5px; border: 1px solid rgba(141,170,185,.26); border-radius: 4px; color: #9fb2bf; background: #141824; font: 600 .65rem/1 "Space Grotesk", sans-serif; }
#tool-library-summary { flex: 0 0 auto; color: var(--copy-soft); font-size: .7rem; white-space: nowrap; }
.tool-hub-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool-hub-card { position: relative; display: flex; min-width: 0; min-height: 174px; flex-direction: column; gap: 7px; padding: 13px; overflow: hidden; border: 1px solid rgba(141,170,185,.2); border-radius: 11px; color: var(--copy); background: linear-gradient(145deg, rgba(18,31,45,.96), rgba(10,18,28,.98)); font-family: "DM Sans", sans-serif; text-align: left; text-decoration: none; transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
button.tool-hub-card { width: 100%; cursor: pointer; }
.tool-hub-card::after { position: absolute; content: ''; width: 108px; height: 108px; right: -47px; top: -47px; border: 1px solid rgba(255,178,95,.12); border-radius: 50%; pointer-events: none; }
.tool-hub-card:hover { transform: translateY(-2px); border-color: rgba(255,159,67,.62); box-shadow: 0 13px 27px rgba(0,0,0,.2); }
.tool-hub-card:focus-visible { outline: 2px solid #f97316; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(249,115,22,.14); }
.tool-hub-card:active { transform: translateY(0) scale(.99); }
.tool-hub-card-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tool-hub-index { color: #ffcf83; font: 700 .68rem/1 "Space Grotesk", sans-serif; }
.tool-hub-tag { overflow: hidden; color: #9fb8c5; font-size: .63rem; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.tool-hub-card-top > i { display: grid; width: 27px; height: 27px; margin-left: auto; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,178,95,.23); border-radius: 7px; color: #ffb25f; background: rgba(255,178,95,.08); font-size: .78rem; }
.tool-hub-card-kicker { color: #ffb25f; font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.tool-hub-card strong { color: #f8fafc; font: 700 .98rem/1.24 "Space Grotesk", sans-serif; }
.tool-hub-description { display: -webkit-box; overflow: hidden; color: #b9c8d2; font-size: .72rem; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tool-hub-card-action { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; color: #9cebc5; font-size: .7rem; font-weight: 700; }
.tool-hub-card-action i { transition: transform .18s var(--ease); }
.tool-hub-card:hover .tool-hub-card-action i { transform: translateX(3px); }
.tools-hub-empty { grid-column: 1 / -1; margin: 0; padding: 22px 14px; border: 1px dashed rgba(141,170,185,.25); border-radius: 10px; color: var(--copy-soft); text-align: center; font-size: .8rem; }
.tools-hub-workbench { margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(141,170,185,.18); }
.tools-hub-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.tools-hub-section-head h2 { margin: 4px 0 3px; color: var(--copy); font: 700 1.28rem/1.1 "Space Grotesk", sans-serif; }
.tools-hub-section-head p { margin: 0; color: var(--copy-soft); font-size: .74rem; line-height: 1.45; }
.tools-hub-section-head > a { flex: 0 0 auto; color: #ffcf83; font-size: .72rem; text-decoration: none; }
.tools-hub-section-head > a:hover { color: #fff; }
.tools-hub-workbench .advanced-tool-panel { scroll-margin-top: 78px; }
@media (max-width: 980px) {
  .tools-hub-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .tool-hub-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tools-hub-main { padding-top: 12px; }
  .tools-hub-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .tools-hub-hero h1 { font-size: 1.75rem; }
  .tools-hub-hero-stat { min-width: 92px; padding: 9px 10px; }
  .tools-hub-hero-stat strong { font-size: 1.55rem; }
  .tools-hub-layout { grid-template-columns: 1fr; gap: 10px; }
  .tools-hub-sidebar { position: static; }
  .tools-hub-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .tools-hub-filter { min-height: 34px; }
  .tools-hub-guide-link { display: none; }
  .tools-hub-search-row { align-items: stretch; flex-direction: column; gap: 6px; }
  #tool-library-summary { font-size: .68rem; }
  .tools-hub-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 390px) {
  .tools-hub-hero h1 { font-size: 1.55rem; }
  .tools-hub-hero p { display: none; }
  .tools-hub-hero-stat { min-width: 86px; }
  .tool-hub-card-grid { grid-template-columns: 1fr; gap: 8px; }
  .tool-hub-card { min-height: 150px; padding: 12px; }
  .tools-hub-filter { font-size: .68rem; }
  .tools-hub-workbench { margin-top: 12px; padding-top: 12px; }
}

/* Chapter-to-tool inline links: visible without interrupting long-form reading. */
.guide-page .tw-inline-tool-link { color: #ffcf83; font-weight: 700; text-decoration: underline; text-decoration-color: #f97316; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-page .tw-inline-tool-link:hover { color: #fff; text-decoration-color: #fff; }
.guide-page .tw-inline-tool-link:focus-visible { outline: 2px solid #f97316; outline-offset: 3px; border-radius: 3px; }

/* Global public-data tool links for guide chapter closure */
.guide-inline-tool-link{margin:12px 0 0;padding:9px 11px;border-left:3px solid #f97316;border-radius:7px;background:rgba(249,115,22,.08);color:#cbd9df;font-size:13px;line-height:1.55}.guide-inline-tool-link a{color:#ffb25f;font-weight:800;text-decoration:underline;text-underline-offset:3px}.guide-inline-tool-link a:hover,.guide-inline-tool-link a:focus-visible{color:#fff;outline:2px solid #f97316;outline-offset:3px}.guide-practice-card.global-tool-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 2px;padding:14px 16px;border:1px solid rgba(255,178,95,.34);border-radius:10px;background:linear-gradient(135deg,rgba(68,39,20,.82),rgba(27,28,33,.92));box-shadow:0 9px 22px rgba(0,0,0,.16)}.guide-practice-card.global-tool-cta h3{margin:4px 0;color:#fff;font-size:16px}.guide-practice-card.global-tool-cta p{margin:5px 0 0;color:#c5d2d8;font-size:12px;line-height:1.5}.guide-practice-card.global-tool-cta .button{flex:0 0 auto;white-space:nowrap}@media (max-width:600px){.guide-inline-tool-link{font-size:12px;padding:8px 9px}.guide-practice-card.global-tool-cta{display:block;padding:12px}.guide-practice-card.global-tool-cta .button{display:inline-flex;margin-top:10px}}

/* Tools hub dynamic filtering: preserve grid geometry while cards transition out. */
.tool-hub-card {
  transition: opacity .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.tool-hub-card.is-filter-hidden {
  opacity: 0;
  transform: scale(.985);
  pointer-events: none;
}
.tool-hub-card[hidden] { display: none; }
.tools-hub-filter.is-empty,
.tools-hub-filter:disabled {
  cursor: not-allowed;
  opacity: .46;
  color: #718391;
  background: rgba(113,131,145,.04);
}
.tools-hub-filter.is-empty:hover,
.tools-hub-filter:disabled:hover {
  border-color: transparent;
  color: #718391;
  background: rgba(113,131,145,.04);
  transform: none;
}
.tools-hub-filter.is-empty b,
.tools-hub-filter:disabled b {
  color: #8394a0;
  background: rgba(113,131,145,.12);
}
@media (prefers-reduced-motion: reduce) {
  .tool-hub-card { transition: none; }
  .tool-hub-card.is-filter-hidden { transform: none; }
}
