/* NetWorthEx Official Design System - Light Theme Only - No Gradients */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter-bold.woff2') format('woff2');
}

:root {
    --bg-white: #ffffff;
    --panel-1: #f7f8fa;
    --panel-2: #eef0f3;
    --border-color: #e3e6eb;
    --text-primary: #111111;
    --text-muted: #5f6b7a;
    --accent-red: #d8221f;
    --accent-green: #107c41;
    --bg-dark: #111111;
    --text-dark-muted: #9aa0a6;
    --font-heading: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Nav */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: var(--panel-1);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    padding: 6px 0;
    color: var(--text-muted);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand-logo .accent {
    color: var(--accent-red);
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
    margin-left: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumb-nav {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 0;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: underline;
}

.breadcrumb-nav span.current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Badges & Indicators */
.badge-kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-red);
    margin-bottom: 6px;
}

.badge-crosschecked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e6f4ea;
    border: 1px solid #ceead6;
    color: #137333;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}

.badge-confidence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--panel-1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
}

.badge-tag {
    display: inline-block;
    background-color: var(--panel-2);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}

/* Byline */
.hero-byline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Social Rows */
.share-follow-container {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    margin: 20px 0;
}

.social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.social-row-label {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-right: 6px;
    letter-spacing: 0.05em;
}

/* Colorful brand pills for Share buttons (CHANGE 5) */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.1s ease, filter 0.1s ease;
}

.btn-share:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.btn-share-x {
    background-color: #000000;
    color: #ffffff !important;
}

.btn-share-fb {
    background-color: #1877F2;
    color: #ffffff !important;
}

.btn-share-wa {
    background-color: #25D366;
    color: #ffffff !important;
}

.btn-share-pin {
    background-color: #E60023;
    color: #ffffff !important;
}

.btn-share-reddit {
    background-color: #FF4500;
    color: #ffffff !important;
}

.btn-share-tg {
    background-color: #229ED9;
    color: #ffffff !important;
}

.btn-share-copy {
    background-color: #5f6b7a;
    color: #ffffff !important;
}

/* Answer Box (Clean White Box with Red Left Border) */
.answer-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.answer-box h2 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.answer-box p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

/* Key Takeaways Standalone Card (CHANGE 4: distinct #f7f8fa panel with red accent heading bar) */
.key-takeaways-standalone-card {
    background-color: #f7f8fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.takeaways-header-bar {
    background-color: var(--accent-red);
    padding: 10px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.takeaways-header-bar h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.takeaways-content {
    padding: 18px 22px;
}

.takeaways-content ul {
    list-style: square;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    margin: 0;
    color: var(--text-primary);
}

/* Table of Contents */
.toc-box {
    background-color: var(--panel-1);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }
}

.toc-grid a {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.toc-grid a:hover {
    color: var(--accent-red);
}

/* Featured D-4 Image */
.featured-image-container {
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--bg-white);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-caption {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    background-color: var(--panel-1);
}

/* Quick Facts Box */
.quick-facts-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 30px;
}

.quick-facts-box h3 {
    font-size: 22px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .quick-facts-grid {
        grid-template-columns: 1fr;
    }
}

.quick-fact-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--panel-2);
    padding-bottom: 6px;
}

.quick-fact-label {
    color: var(--text-muted);
    font-weight: 500;
}

.quick-fact-value {
    font-weight: 700;
    text-align: right;
    color: var(--text-primary);
}

/* Live Countdown Timers */
.countdown-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .countdown-container {
        grid-template-columns: 1fr;
    }
}

.countdown-card {
    background-color: var(--panel-1);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-red);
    padding: 16px 20px;
    border-radius: 4px;
}

.countdown-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.countdown-digits {
    display: flex;
    gap: 10px;
    align-items: center;
}

.countdown-unit {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    text-align: center;
    border-radius: 3px;
    min-width: 50px;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.countdown-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--panel-1);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: var(--panel-1);
}

/* Deep Sections & Panels */
.section-block {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--panel-2);
    padding-bottom: 8px;
}

.panel {
    background-color: var(--panel-1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.entity-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
}

.entity-card h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

/* YouTube Click-to-Play Facade */
.yt-facade {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000000;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.yt-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.15s ease;
}

.yt-facade:hover .yt-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-play-btn::after {
    content: "";
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #ffffff;
}

/* Accordion FAQ */
.faq-accordion {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: var(--panel-1);
}

.faq-answer {
    padding: 0 20px 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Sidebar Styles */
.sticky-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background-color: var(--panel-1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--panel-2);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.sidebar-search-input:focus {
    border-color: var(--accent-red);
}

/* Dark 4-Column Footer */
.site-footer-dark {
    background-color: var(--bg-dark);
    color: var(--text-dark-muted);
    padding: 60px 0 30px 0;
    margin-top: 60px;
    font-size: 14px;
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .footer-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid-4 {
        grid-template-columns: 1fr;
    }
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-dark-muted);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Utility buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 3px;
    border: 1px solid var(--accent-red);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--panel-1);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--panel-2);
}

/* Citations & Modals */
.citation-box {
    background-color: var(--panel-1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.citation-code {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 10px;
}

/* ==========================================================================
   ADVERTISING & MONETIZATION (10 SLOTS - ZERO CLS - PURE LIGHT THEME)
   ========================================================================== */
.ad-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fafbfc;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    margin: 24px 0;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.ad-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* Fixed container heights to eliminate Cumulative Layout Shift (CLS) */
.ad-slot-1 { min-height: 100px; width: 100%; }
.ad-slot-2 { min-height: 120px; width: 100%; }
.ad-slot-3 { min-height: 260px; width: 100%; }
.ad-slot-4 { min-height: 260px; width: 100%; }
.ad-slot-5 { min-height: 260px; width: 100%; }
.ad-slot-6 { min-height: 260px; width: 100%; }
.ad-slot-7 { min-height: 260px; width: 100%; }
.ad-slot-8 { min-height: 260px; width: 100%; }
.ad-slot-9 { min-height: 260px; width: 100%; }

/* Slot 10: Sticky Dismissible Anchor Banner */
.ad-slot-10-anchor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    min-height: 70px;
}

.ad-anchor-dismiss {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #eef0f3;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.15s;
}

.ad-anchor-dismiss:hover {
    background-color: #e3e6eb;
}

/* ==========================================================================
   COOKIE BANNER (CONSENT MODE V2)
   ========================================================================== */
.cookie-consent-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 440px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 20px;
    z-index: 99999;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

/* ==========================================================================
   PROMPT-09: CHANGE 1 & CHANGE 2 - PRO NET WORTH OF THE DAY & MOTION TOKENS
   ========================================================================== */

/* Net Worth of the Day Card (Change 1) */
.nw-day-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 768px) {
    .nw-day-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .nw-day-audit-micro {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Verified Pulse Indicator */
.nw-verified-pulse {
    position: relative;
}
.nw-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green, #107c41);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.nw-pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(16, 124, 65, 0.4);
    animation: nwPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes nwPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Animated Pro Net-Worth Answer Card (Change 2) */
.nw-answer-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--accent-red);
    border-radius: 4px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.nw-answer-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.nw-answer-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.nw-answer-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
}
.nw-answer-figure-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0 8px 0;
}
.nw-answer-figure {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    letter-spacing: -0.02em;
    display: inline-block;
}
.nw-valuation-year-badge {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.nw-local-currency-line {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nw-local-currency-line strong {
    color: var(--text-primary);
}
.nw-answer-paragraph {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    margin: 0;
}

/* Site-Wide Motion Tokens (Change 2) */
.card-hover-lift {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.card-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Micro-Interactions */
.btn-primary, .btn-secondary, .btn-share {
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:active, .btn-secondary:active, .btn-share:active {
    transform: scale(0.97);
}

/* Smooth Accordions and TOC active states */
.toc-box a {
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.toc-box a:hover {
    padding-left: 4px;
    color: var(--accent-red);
}

/* Compare Proportion Bar Animated Fill */
.pro-vs-bar-fill {
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Performance Guardrails: Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-scroll, .nw-answer-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .card-hover-lift:hover {
        transform: none !important;
    }
    .nw-pulse-dot::after {
        animation: none !important;
        display: none !important;
    }
}



/* ===== NETWORTHEX GLOBAL ANIMATIONS & EFFECTS (v20261019c) ===== */

/* Scroll reveal animations */
.nw-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.nw-reveal.nw-visible { opacity: 1; transform: translateY(0); }
.nw-reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.nw-reveal-left.nw-visible { opacity: 1; transform: translateX(0); }
.nw-reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.nw-reveal-right.nw-visible { opacity: 1; transform: translateX(0); }
.nw-reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.55s ease, transform 0.55s ease; }
.nw-reveal-scale.nw-visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.nw-d1 { transition-delay: 0.08s; } .nw-d2 { transition-delay: 0.16s; }
.nw-d3 { transition-delay: 0.24s; } .nw-d4 { transition-delay: 0.32s; }

/* Enhanced cards - global */
.panel, .sidebar-box, .nw-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
a .panel:hover, .panel.hoverable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border-color: var(--accent-red);
}

/* Sidebar items hover */
.sidebar-item { transition: background-color 0.25s ease, padding-left 0.25s ease; border-radius: 4px; }
.sidebar-item:hover { background-color: var(--panel-1); padding-left: 10px; }

/* Buttons - smooth */
.btn-primary, .btn-secondary {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(216,34,31,0.3); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.btn-primary:active, .btn-secondary:active { transform: translateY(0); }

/* Images - subtle zoom on hover */
.nw-img-zoom { overflow: hidden; }
.nw-img-zoom img { transition: transform 0.4s ease; }
.nw-img-zoom:hover img { transform: scale(1.05); }

/* Nav links underline animation */
.nav-links a { position: relative; transition: color 0.25s ease; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background-color: var(--accent-red); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Table rows hover */
table tbody tr { transition: background-color 0.2s ease; }
table tbody tr:hover { background-color: var(--panel-1); }

/* Badge pulse */
.badge-crosschecked { transition: transform 0.2s ease; }
.badge-crosschecked:hover { transform: scale(1.05); }

/* Hero entrance */
@keyframes nwHeroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.nw-hero-anim { animation: nwHeroIn 0.7s ease-out; }

/* Smooth page fade */
@keyframes nwPageIn { from { opacity: 0; } to { opacity: 1; } }
main { animation: nwPageIn 0.4s ease-out; }

/* Count-up numbers */
.nw-count { font-variant-numeric: tabular-nums; }

/* FAQ accordion smooth */
.faq-answer { transition: max-height 0.35s ease, opacity 0.3s ease; }

/* Infographic hover glow */
img[src*="infographic"] { transition: transform 0.3s ease, box-shadow 0.3s ease; }
img[src*="infographic"]:hover { transform: scale(1.01); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

/* Mobile: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .nw-reveal, .nw-reveal-left, .nw-reveal-right, .nw-reveal-scale { opacity: 1; transform: none; transition: none; }
    main, .nw-hero-anim { animation: none; }
}

/* ===== MOBILE ARTICLE FIXES (v20261019d) ===== */
@media (max-width: 768px) {
    /* Article title - prevent vertical text */
    article h1, .article-content h1, main h1 {
        font-size: 32px !important;
        line-height: 1.15 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    /* Ensure main content comes before sidebar on mobile */
    .dossier-layout { display: flex; flex-direction: column; }
    .dossier-main { order: 1; width: 100%; }
    .dossier-sidebar, .sticky-sidebar { order: 2; width: 100%; }
    /* Tables scroll horizontally */
    .table-wrapper, table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Answer box padding */
    .nw-answer-card { padding: 16px !important; margin: 0 -4px 20px -4px; }
    /* Infographic full width */
    img[src*="infographic"] { width: 100%; height: auto; }
    /* D-4 image responsive */
    img[src*="/d4/"] { width: 100%; height: auto; }
    /* Prevent horizontal overflow */
    body, main, .container { overflow-x: hidden; max-width: 100vw; }
    /* Sidebar boxes full width */
    .sidebar-box { margin-bottom: 16px; }
    /* Share buttons wrap */
    .share-buttons { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    article h1, .article-content h1, main h1 { font-size: 28px !important; }
    h2 { font-size: 22px !important; }
}

/* ===== MOBILE GRID STACK FIX (v20261019e) ===== */
@media (max-width: 900px) {
    /* Article main + sidebar grid -> stack */
    main .container > div[style*="grid-template-columns: minmax(0, 2.3fr)"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    main .container > div[style*="grid-template-columns: minmax(0, 2.3fr)"] > aside.sticky-sidebar {
        order: 2;
    }
    main .container > div[style*="grid-template-columns: minmax(0, 2.3fr)"] > div:first-child {
        order: 1;
        min-width: 0;
    }
}

/* ===== nwex-mobile-nav (2026-10-27) ===== */
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:10px;flex-direction:column;justify-content:center;gap:5px}
.nav-toggle span{display:block;width:26px;height:3px;background-color:#111111;border-radius:2px;transition:transform .25s ease,opacity .25s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
@media (max-width:900px){
  .nav-toggle{display:inline-flex}
  .header-inner{flex-wrap:wrap}
  .nav-links{display:none;width:100%;flex-direction:column;align-items:stretch;gap:0;padding:6px 0 2px}
  .nav-links.open{display:flex}
  .nav-links a{padding:12px 2px;border-top:1px solid #e3e6eb;font-size:17px}
  .nav-links a::after{display:none}
}
/* ===== nwex-reveal-fix (2026-10-27): reveal classes never got their activation class from any script, so sections stayed invisible ===== */
.nw-reveal,.nw-reveal-left,.nw-reveal-right{opacity:1 !important;transform:none !important}
/* ===== nwex-pagination-fix (2026-10-27) ===== */
.w-5{width:1.25rem}
.h-5{height:1.25rem}
nav[aria-label="Pagination Navigation"]{display:flex;flex-direction:column;align-items:center;gap:10px;margin:26px 0}
nav[aria-label="Pagination Navigation"] svg{width:20px;height:20px;flex:none}
nav[aria-label="Pagination Navigation"]>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
nav[aria-label="Pagination Navigation"] a,nav[aria-label="Pagination Navigation"] [aria-current="page"]{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid #e3e6eb;border-radius:4px;background:#ffffff;font-size:14px;font-weight:600;color:#111111;text-decoration:none}
nav[aria-label="Pagination Navigation"] [aria-current="page"]{background:#d8221f;border-color:#d8221f;color:#ffffff}
nav[aria-label="Pagination Navigation"] p{font-size:13px;color:#5f6b7a;margin:0}
/* ===== nwex-mobile-grids (2026-10-27) ===== */
@media (max-width: 768px) {
    div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns: repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
}