/* ==========================================================================
   MASTERFEX EDITORIAL TEMPLATE — VERSION 4 ("EDITORIAL MODERN PORTAL")
   100% Contemporary Typography • Zero Card Drop-Shadows • Multi-Format Cards
   Real Editorial Photography • Exact Brand Palette:
     • Brand Indigo   : #6C5EEC
     • Brand Cerulean : #29ABE2
     • Brand Amber    : #FF9100
   ========================================================================== */

:root,
[data-theme="light"] {
    /* Exact Brand Swatch */
    --brand-indigo: #6C5EEC;
    --brand-indigo-hover: #5747E2;
    --brand-indigo-soft: rgba(108, 94, 236, 0.08);
    --brand-indigo-line: rgba(108, 94, 236, 0.26);

    --brand-cerulean: #29ABE2;
    --brand-cerulean-ink: #0C7FB0;
    --brand-cerulean-soft: rgba(41, 171, 226, 0.09);
    --brand-cerulean-line: rgba(41, 171, 226, 0.28);

    --brand-amber: #FF9100;
    --brand-amber-ink: #C26A00;
    --brand-amber-soft: rgba(255, 145, 0, 0.10);
    --brand-amber-line: rgba(255, 145, 0, 0.30);

    /* Flat Contemporary Surfaces (Zero Drop-Shadows) */
    --bg-page: #F6F8FB;
    --bg-card: #FFFFFF;
    --bg-muted: #EEF2F7;
    --bg-header: rgba(255, 255, 255, 0.94);
    --bg-dark: #080C17;
    --bg-dark-elevated: #10172A;

    /* Crisp Sans Ink Hierarchy */
    --ink-strong: #090E1D;
    --ink-body: #243049;
    --ink-muted: #5A6682;
    --ink-faint: #8894AF;

    /* Architectural Hairline Borders (Replaces Shadows) */
    --line: #E2E7F0;
    --line-strong: #CBD3E1;

    /* 100% Modern Contemporary Fonts (Zero Serifs) */
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* Dynamic Article Comfort Scale */
    --prose-size: 1.065rem;

    /* Modern Clean Radii */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-pill: 999px;
}

[data-theme="dark"] {
    --brand-indigo-soft: rgba(108, 94, 236, 0.16);
    --brand-indigo-line: rgba(108, 94, 236, 0.42);
    --brand-cerulean-ink: #54C6F7;
    --brand-cerulean-soft: rgba(41, 171, 226, 0.15);
    --brand-cerulean-line: rgba(41, 171, 226, 0.38);
    --brand-amber-ink: #FFB34A;
    --brand-amber-soft: rgba(255, 145, 0, 0.15);
    --brand-amber-line: rgba(255, 145, 0, 0.38);

    --bg-page: #070A13;
    --bg-card: #0D1323;
    --bg-muted: #131B30;
    --bg-header: rgba(11, 16, 30, 0.94);
    --bg-dark: #050811;
    --bg-dark-elevated: #0F172B;

    --ink-strong: #F5F7FF;
    --ink-body: #CED6EB;
    --ink-muted: #8E9BB8;
    --ink-faint: #62708E;

    --line: #1B243B;
    --line-strong: #283554;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg-page);
    color: var(--ink-strong);
    font-family: var(--font-sans);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
}

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

button, input, select, textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img, svg {
    display: block;
    max-width: 100%;
}

.v4-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 1024px) {
    .v4-wrap {
        padding: 0 2rem;
    }
}

.v4-hidden {
    display: none !important;
}

/* Photographic Media Wrapper with Graceful Fallback & Smooth Zoom */
.v4-photo {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #10172A 0%, #1C2747 100%);
}

.v4-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. READING PROGRESS BAR & REFINED TOP MARKET UTILITY BAR
   ========================================================================== */
.v4-progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 140;
    pointer-events: none;
}

.v4-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-indigo) 0%, var(--brand-cerulean) 52%, var(--brand-amber) 100%);
    transition: width 0.08s linear;
}

/* Tier 1: Clean Uncluttered Market Strip */
.v4-topbar {
    background: #080C17;
    color: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
}

.v4-topbar__inner {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v4-tickers {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.v4-tickers::-webkit-scrollbar {
    display: none;
}

.v4-tickers__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-amber);
    padding-right: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.v4-tickers__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-amber);
}

.v4-tk {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
}

.v4-tk__name {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.v4-tk__val {
    color: #FFFFFF;
    font-weight: 700;
}

.v4-tk__chg {
    padding: 0.06rem 0.36rem;
    border-radius: 4px;
    font-size: 0.64rem;
    font-weight: 700;
}

.v4-tk__chg--up {
    background: rgba(41, 171, 226, 0.18);
    color: #62D2FF;
}

.v4-tk__chg--down {
    background: rgba(239, 68, 68, 0.22);
    color: #F87171;
}

.v4-tk__chg--indigo {
    background: rgba(108, 94, 236, 0.26);
    color: #B8B0FF;
}

.v4-topbar__right {
    display: none;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.58);
}

@media (min-width: 1024px) {
    .v4-topbar__right {
        display: flex;
    }
}

/* ==========================================================================
   2. REFINED 2-ROW EDITORIAL PORTAL HEADER (CRISP, ARCHITECTURAL, FLAT)
   ========================================================================== */
.v4-masthead {
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
}

/* Signature 3-Color Brand Hairline */
.v4-masthead__brandline {
    height: 3px;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--brand-indigo) 0%,
        var(--brand-indigo) 40%,
        var(--brand-cerulean) 40%,
        var(--brand-cerulean) 78%,
        var(--brand-amber) 78%,
        var(--brand-amber) 100%
    );
}

.v4-masthead__main {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.v4-logo-group {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    text-decoration: none;
}

.v4-logo-col {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
}

.v4-logo-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.v4-logo-img {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.v4-logo-editorial {
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink-strong);
    white-space: nowrap;
}

.v4-logo-editorial em {
    font-style: normal;
    color: var(--brand-indigo);
}

.v4-logo-mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 3.5px;
    padding: 7px 8px;
    border-radius: 10px;
    background: #080C17;
}

.v4-logo-mark span:nth-child(1) {
    width: 5px;
    height: 14px;
    border-radius: 2px;
    background: var(--brand-indigo);
}

.v4-logo-mark span:nth-child(2) {
    width: 5px;
    height: 20px;
    border-radius: 2px;
    background: var(--brand-cerulean);
}

.v4-logo-mark span:nth-child(3) {
    width: 5px;
    height: 11px;
    border-radius: 2px;
    background: var(--brand-amber);
}

.v4-logo-wordmark {
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink-strong);
}

.v4-logo-wordmark em {
    font-style: normal;
    color: var(--brand-indigo);
}

.v4-logo-divider {
    display: none;
    width: 1px;
    height: 22px;
    background: var(--line-strong);
}

.v4-logo-tagline {
    display: none;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ink-muted);
}

@media (min-width: 820px) {
    .v4-logo-divider,
    .v4-logo-tagline {
        display: block;
    }
}

@media (max-width: 640px) {
    .v4-logo-img {
        height: 28px;
        max-width: 125px;
    }
    .v4-logo-editorial {
        font-size: 1.12rem;
    }
}

.v4-masthead__controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v4-search-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    height: 38px;
    padding: 0 0.9rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--bg-page);
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 500;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.v4-search-bar-btn:hover {
    border-color: var(--brand-indigo);
    color: var(--ink-strong);
}

.v4-search-bar-btn kbd {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.1rem 0.38rem;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-faint);
}

@media (max-width: 640px) {
    .v4-search-bar-btn span {
        display: none;
    }
    .v4-search-bar-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .v4-search-bar-btn kbd {
        display: inline-block;
    }
}

.v4-theme-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--bg-page);
    color: var(--ink-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.v4-theme-btn:hover {
    border-color: var(--brand-indigo);
    color: var(--brand-indigo);
}

.v4-subscribe-btn {
    display: none;
    align-items: center;
    gap: 0.45rem;
    height: 38px;
    padding: 0 1.05rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--brand-indigo);
    background: var(--brand-indigo);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 0.16s ease;
}

@media (min-width: 640px) {
    .v4-subscribe-btn {
        display: inline-flex;
    }
}

.v4-subscribe-btn:hover {
    background: var(--brand-indigo-hover);
}

.v4-subscribe-btn__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-amber);
}

.v4-burger-btn {
    display: inline-flex;
}

@media (min-width: 1080px) {
    .v4-burger-btn {
        display: none;
    }
}

/* Sticky Sub-Navigation Row with Animated 2px Underline + Trending Topics */
.v4-subnav {
    position: sticky;
    top: 0;
    z-index: 85;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: none;
}

@media (min-width: 1080px) {
    .v4-subnav {
        display: block;
    }
}

.v4-subnav__inner {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.v4-nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.v4-nav-li {
    height: 100%;
    display: flex;
    align-items: center;
}

.v4-nav-a {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.85rem;
    border: 0;
    background: transparent;
    color: var(--ink-body);
    font-family: var(--font-display);
    font-size: 0.81rem;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.v4-nav-a:hover,
.v4-nav-a.is-active {
    color: var(--brand-indigo);
    border-bottom-color: var(--brand-indigo);
}

/* Mega-Menu with Editorial Photo Spotlight */
.v4-nav-li--mega:hover .v4-megamenu,
.v4-nav-li--mega:focus-within .v4-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v4-megamenu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--brand-indigo);
    border-radius: 0 0 var(--r-md) var(--r-md);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.18s ease;
    z-index: 95;
}

.v4-mega-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-strong);
    padding-bottom: 0.5rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
}

.v4-mega-tree {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.v4-mega-tree a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.6rem;
    border-radius: var(--r-xs);
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--ink-body);
}

.v4-mega-tree a:hover {
    background: var(--brand-indigo-soft);
    color: var(--brand-indigo);
}

.v4-mega-photo-card {
    position: relative;
    border-radius: var(--r-sm);
    overflow: hidden;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    color: #FFFFFF;
}

.v4-mega-photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4-mega-photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 23, 0.15) 0%, rgba(8, 12, 23, 0.9) 100%);
}

/* Right Trending Bar in Subnav */
.v4-trending-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
}

.v4-trending-inline__lbl {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-amber-ink);
}

.v4-trend-tag {
    padding: 0.18rem 0.55rem;
    border-radius: var(--r-pill);
    background: var(--bg-muted);
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.v4-trend-tag:hover {
    background: var(--brand-indigo-soft);
    color: var(--brand-indigo);
}

/* ==========================================================================
   3. COMMON BADGES, AVATARS & SECTION HEADERS (ZERO SHADOWS)
   ========================================================================== */
.v4-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.22rem 0.62rem;
    border-radius: var(--r-xs);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.v4-tag--indigo {
    background: var(--brand-indigo-soft);
    color: var(--brand-indigo);
    border: 1px solid var(--brand-indigo-line);
}

.v4-tag--indigo-solid {
    background: var(--brand-indigo);
    color: #FFFFFF;
}

.v4-tag--cerulean {
    background: var(--brand-cerulean-soft);
    color: var(--brand-cerulean-ink);
    border: 1px solid var(--brand-cerulean-line);
}

.v4-tag--amber {
    background: var(--brand-amber-soft);
    color: var(--brand-amber-ink);
    border: 1px solid var(--brand-amber-line);
}

.v4-tag--amber-solid {
    background: var(--brand-amber);
    color: #080C17;
}

.v4-mono {
    font-family: var(--font-mono);
    font-size: 0.71rem;
    font-variant-numeric: tabular-nums;
}

.v4-author-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.v4-author-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brand-indigo);
    flex-shrink: 0;
}

.v4-section-head {
    margin: 3rem 0 1.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-strong);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.v4-section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 72px;
    height: 2px;
    background: var(--brand-indigo);
}

.v4-section-head__title {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

/* ==========================================================================
   4. MULTI-FORMAT EDITORIAL CARDS (FORMATS A THROUGH H — ZERO SHADOWS!)
   ========================================================================== */

/* --- ZONA 1: HERO ASSIMÉTRICO (FORMATO A + FORMATO B) --- */
.v4-hero-grid {
    margin-top: 1.65rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .v4-hero-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* FORMATO A: Cinematic Photo Scrim Lead Card (7 cols) */
.v4-card-hero-lead {
    grid-column: span 1;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 460px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    color: #FFFFFF;
    cursor: pointer;
    background: #080C17;
}

@media (min-width: 640px) {
    .v4-card-hero-lead {
        padding: 2.35rem;
    }
}

@media (min-width: 1024px) {
    .v4-card-hero-lead {
        grid-column: span 7;
    }
}

.v4-card-hero-lead__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.v4-card-hero-lead:hover .v4-card-hero-lead__img {
    transform: scale(1.035);
}

.v4-card-hero-lead::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 23, 0.25) 0%,
        rgba(8, 12, 23, 0.58) 45%,
        rgba(8, 12, 23, 0.95) 100%
    );
}

.v4-card-hero-lead__top,
.v4-card-hero-lead__bottom {
    position: relative;
    z-index: 2;
}

.v4-card-hero-lead__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.85vw, 2.45rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -0.035em;
    margin: 0 0 0.75rem;
    color: #FFFFFF;
}

.v4-card-hero-lead__deck {
    font-size: 0.94rem;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.25rem;
    max-width: 620px;
}

/* FORMATO B: Right Stack of Horizontal Media-Left Compact Stories (5 cols) */
.v4-hero-side-panel {
    grid-column: span 1;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .v4-hero-side-panel {
        grid-column: span 5;
    }
}

.v4-side-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.25rem;
}

.v4-compact-story {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.v4-compact-story:last-child {
    border-bottom: 0;
    padding-bottom: 0.25rem;
}

.v4-compact-story__thumb {
    width: 108px;
    height: 82px;
    border-radius: var(--r-sm);
}

.v4-compact-story:hover .v4-compact-story__thumb img {
    transform: scale(1.06);
}

.v4-compact-story__title {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin: 0.3rem 0;
    color: var(--ink-strong);
    transition: color 0.15s ease;
}

.v4-compact-story:hover .v4-compact-story__title {
    color: var(--brand-indigo);
}

/* --- ZONA 2: FORMATO C — FAIXA EXPRESS NUMERADA (4 COLUNAS TEXT-FIRST) --- */
.v4-express-strip {
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .v4-express-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1080px) {
    .v4-express-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

.v4-express-item {
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

@media (min-width: 1080px) {
    .v4-express-item {
        border-bottom: 0;
        border-right: 1px solid var(--line);
    }
    .v4-express-item:last-child {
        border-right: 0;
    }
}

.v4-express-item:hover {
    background: var(--bg-muted);
}

.v4-express-num {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-indigo);
    padding-top: 0.1rem;
}

.v4-express-item:nth-child(2) .v4-express-num { color: var(--brand-cerulean); }
.v4-express-item:nth-child(3) .v4-express-num { color: var(--brand-amber); }

.v4-express-title {
    font-family: var(--font-display);
    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.32;
    margin: 0.2rem 0 0.25rem;
    color: var(--ink-strong);
}

/* --- ZONA 3: FORMATO D — BANNER HORIZONTAL PANORÂMICO 50/50 (WIDE SPLIT) --- */
.v4-wide-feature {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    cursor: pointer;
    transition: border-color 0.18s ease;
}

@media (min-width: 900px) {
    .v4-wide-feature {
        grid-template-columns: 1.05fr 1fr;
    }
}

.v4-wide-feature:hover {
    border-color: var(--brand-indigo);
}

.v4-wide-feature__media {
    min-height: 280px;
}

.v4-wide-feature:hover .v4-wide-feature__media img {
    transform: scale(1.04);
}

.v4-wide-feature__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .v4-wide-feature__body {
        padding: 2.25rem 2.5rem;
    }
}

.v4-wide-feature__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin: 0.65rem 0 0.6rem;
    color: var(--ink-strong);
    transition: color 0.16s ease;
}

.v4-wide-feature:hover .v4-wide-feature__title {
    color: var(--brand-indigo);
}

.v4-kpi-strip-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.v4-kpi-pill {
    padding: 0.35rem 0.7rem;
    border-radius: var(--r-xs);
    background: var(--bg-muted);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.v4-kpi-pill strong {
    color: var(--brand-indigo);
}

/* --- ZONA 4: FORMATO E — DUPLA ASSIMÉTRICA (5 COLS + 7 COLS OVERLAY) --- */
.v4-duo-asymmetric {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .v4-duo-asymmetric {
        grid-template-columns: 5fr 7fr;
    }
}

.v4-overlay-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 330px;
    border: 1px solid var(--line);
    padding: 1.65rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF;
    cursor: pointer;
    background: #080C17;
}

.v4-overlay-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.v4-overlay-card:hover img {
    transform: scale(1.045);
}

.v4-overlay-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 23, 0.2) 0%, rgba(8, 12, 23, 0.92) 100%);
}

.v4-overlay-card__top,
.v4-overlay-card__bottom {
    position: relative;
    z-index: 2;
}

.v4-overlay-card__title {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
}

/* --- ZONA 5: RIVER EDITORIAL DE PORTAL + SIDEBAR (FORMATO F, G, H) --- */
.v4-portal-body-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .v4-portal-body-grid {
        grid-template-columns: 8fr 4fr;
    }
}

.v4-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v4-topic-pill {
    padding: 0.38rem 0.85rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--ink-muted);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.v4-topic-pill:hover {
    border-color: var(--brand-indigo);
    color: var(--ink-strong);
}

.v4-topic-pill.is-active {
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
    color: #FFFFFF;
}

/* FORMATO F: Editorial River Row (Text Left + 220x142 Photo Right) */
.v4-river-list {
    display: flex;
    flex-direction: column;
}

.v4-river-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    cursor: pointer;
}

@media (min-width: 640px) {
    .v4-river-card {
        grid-template-columns: minmax(0, 1fr) 225px;
    }
}

.v4-river-card__photo {
    width: 100%;
    height: 146px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
}

.v4-river-card:hover .v4-river-card__photo img {
    transform: scale(1.05);
}

.v4-river-card__title {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0.45rem 0 0.45rem;
    color: var(--ink-strong);
    transition: color 0.15s ease;
}

.v4-river-card:hover .v4-river-card__title {
    color: var(--brand-indigo);
}

.v4-river-card__excerpt {
    font-size: 0.87rem;
    color: var(--ink-muted);
    margin: 0 0 0.8rem;
    line-height: 1.56;
}

/* FORMATO G: Mid-Stream Thesis / Analyst Quote Card (Breaks Monotony) */
.v4-thesis-break {
    margin: 0.5rem 0;
    padding: 1.45rem 1.6rem;
    border-radius: var(--r-md);
    background: var(--brand-indigo-soft);
    border: 1px solid var(--brand-indigo-line);
    border-left: 4px solid var(--brand-indigo);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: pointer;
}

/* Right Sidebar (Flat Bordered Boxes — Zero Shadows) */
.v4-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .v4-sidebar {
        position: sticky;
        top: 4.2rem;
    }
}

.v4-side-box {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.4rem;
}

.v4-side-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* FORMATO H: Columnist Portrait Cards */
.v4-columnist-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.v4-columnist-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.v4-columnist-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.v4-columnist-row__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-cerulean);
    flex-shrink: 0;
}

.v4-columnist-row__article {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-strong);
    margin: 0.15rem 0 0;
}

.v4-columnist-row:hover .v4-columnist-row__article {
    color: var(--brand-indigo);
}

/* Flat Dark Tax Simulator Widget */
.v4-sim-box {
    background: var(--bg-dark);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--brand-amber);
    border-radius: var(--r-lg);
    padding: 1.45rem;
}

.v4-sim-slider {
    width: 100%;
    accent-color: var(--brand-cerulean);
    cursor: pointer;
}

.v4-sim-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: var(--r-xs);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-size: 0.78rem;
}

/* ==========================================================================
   5. VIEW 2 (`category/show`): ARQUITETURA EDITORIAL JORNALÍSTICA (ANTI E-COMMERCE)
   ========================================================================== */

/* Cabeçalho Editorial Limpo da Editoria */
.v4-cat-hero-header {
    padding: 0.5rem 0 1.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.25rem;
}

.v4-cat-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.v4-cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cat-accent, var(--brand-indigo));
    background: var(--brand-indigo-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.v4-cat-count-tag {
    font-size: 0.74rem;
    color: var(--ink-muted);
}

.v4-cat-main-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--ink-strong);
    margin: 0.35rem 0 0.65rem;
}

.v4-cat-main-deck {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 820px;
    margin: 0 0 1.25rem;
}

/* Tópicos da Editoria (Subcategorias Estilo Abas Jornalísticas) */
.v4-cat-topics-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.v4-cat-topics-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.v4-cat-topics-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.v4-cat-topic-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.85rem;
    border-radius: var(--r-pill);
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-body);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.16s ease;
}

.v4-cat-topic-btn:hover {
    border-color: var(--cat-accent, var(--brand-indigo));
    color: var(--cat-accent, var(--brand-indigo));
    background: var(--bg-page);
    transform: translateY(-1px);
}

.v4-cat-topic-btn.is-active {
    background: var(--cat-accent, var(--brand-indigo));
    border-color: var(--cat-accent, var(--brand-indigo));
    color: #FFFFFF !important;
}

/* Card de Grande Manchete / Lead Story da Editoria */
.v4-cat-lead-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: border-color 0.18s ease;
}

.v4-cat-lead-card:hover {
    border-color: var(--cat-accent, var(--brand-indigo));
}

@media (min-width: 900px) {
    .v4-cat-lead-card {
        grid-template-columns: 1.15fr 1fr;
    }
}

.v4-cat-lead-card__media {
    position: relative;
    min-height: 260px;
    background: linear-gradient(135deg, #10172A 0%, #1C2747 100%);
    overflow: hidden;
}

.v4-cat-lead-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.v4-cat-lead-card:hover .v4-cat-lead-card__media img {
    transform: scale(1.04);
}

.v4-cat-lead-card__body {
    padding: 1.85rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.v4-cat-lead-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.03em;
    color: var(--ink-strong);
    margin: 0.45rem 0 0.65rem;
    transition: color 0.16s ease;
}

.v4-cat-lead-card:hover .v4-cat-lead-card__title {
    color: var(--cat-accent, var(--brand-indigo));
}

.v4-cat-lead-card__deck {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

/* ==========================================================================
   PAGINAÇÃO INTELIGENTE & COMPACTA (V4 SMART PAGINATION)
   ========================================================================== */
.v4-smart-pagination {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.v4-pagination-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--bg-card);
    padding: 0.45rem 0.65rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.v4-pagi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: var(--r-xs);
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-body);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.v4-pagi-btn:hover {
    background: var(--bg-page);
    color: var(--brand-indigo);
    border-color: var(--line);
}

.v4-pagi-btn.is-active {
    background: var(--brand-indigo) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-indigo) !important;
    font-weight: 800;
}

.v4-pagi-btn.is-disabled {
    color: var(--ink-faint);
    pointer-events: none;
    opacity: 0.4;
}

.v4-pagi-btn--prev,
.v4-pagi-btn--next {
    gap: 0.35rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
}

.v4-pagi-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.v4-pagi-dots {
    min-width: 26px;
    text-align: center;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ==========================================================================
   6. VIEW 3 (`#view-article`): PHOTO HERO + 9 FLAT `.blog-slice--*` BLOCKS
   ========================================================================== */
.v4-art-header {
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0 1.65rem;
}

.v4-art-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin: 0.85rem 0 1rem;
    color: var(--ink-strong);
}

.v4-art-deck {
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 1.58;
    color: var(--ink-muted);
    margin: 0 0 1.5rem;
    max-width: 1040px;
}

.v4-tldr-card {
    padding: 1.25rem 1.6rem;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-indigo);
    margin-bottom: 1.5rem;
    max-width: 1040px;
}

.v4-tldr-card ul {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
    font-size: 0.86rem;
    color: var(--ink-body);
    display: grid;
    gap: 0.3rem;
}

.v4-art-toolbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--line);
}

.v4-ctrl-btn {
    padding: 0.36rem 0.72rem;
    border-radius: var(--r-xs);
    border: 1px solid var(--line);
    background: var(--bg-page);
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.v4-ctrl-btn:hover,
.v4-ctrl-btn.is-active {
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
    color: #FFFFFF;
}

.v4-art-cover {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2.5rem;
}

.v4-art-cover__imgwrap {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 540px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    overflow: hidden;
}

.v4-art-layout {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .v4-art-layout:not(.is-focus) {
        grid-template-columns: 290px minmax(0, 1fr);
    }
    .v4-art-layout.is-focus {
        max-width: 880px;
        margin: 0 auto;
    }
    .v4-art-layout.is-focus .v4-toc-col {
        display: none;
    }
}

.v4-toc-col {
    display: none;
}

@media (min-width: 1024px) {
    .v4-toc-col {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: sticky;
        top: 4.2rem;
    }
}

.v4-toc-box {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.2rem;
}

.v4-toc-list {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.v4-toc-a {
    display: block;
    padding: 0.42rem 0.65rem;
    border-radius: var(--r-xs);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.v4-toc-a:hover {
    color: var(--ink-strong);
    background: var(--bg-muted);
}

.v4-toc-a.is-active {
    background: var(--brand-indigo-soft);
    color: var(--brand-indigo);
    font-weight: 700;
}

.v4-article-sheet {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.65rem 1.3rem;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

@media (min-width: 640px) {
    .v4-article-sheet {
        padding: 2.75rem 3.25rem;
    }
}

/* ==========================================================================
   7. FLAT BACKEND-COMPATIBLE `.blog-slice--*` (ZERO SHADOWS, MODERN SANS)
   ========================================================================== */
.blog-article-prose {
    font-family: var(--font-sans);
    font-size: var(--prose-size);
    line-height: 1.8;
    color: var(--ink-body);
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.blog-article-prose pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    background: var(--bg-muted);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
    margin: 1.2rem 0;
    box-sizing: border-box;
}

.blog-article-prose code {
    font-family: var(--font-mono);
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
}

.blog-article-prose .blog-slice {
    margin-bottom: 2.35rem;
    scroll-margin-top: 5rem;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.blog-slice--text,
.blog-slice--metrics,
.blog-slice--pros-cons,
.blog-slice--timeline,
.blog-slice--faq {
    position: relative;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.blog-article-prose p {
    margin: 0 0 1.2rem;
}

.blog-article-prose p:last-child {
    margin-bottom: 0;
}

.v4-lead-p {
    font-size: 1.14em;
    font-weight: 500;
    color: var(--ink-strong);
    line-height: 1.72;
}

.blog-slice__title {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink-strong);
    margin: 0 0 0.9rem;
}

/* Metrics (`blog-slice--metrics`) */
.blog-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.blog-metric-card {
    padding: 1.15rem;
    border-radius: var(--r-md);
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand-indigo);
}

.blog-metric-card:nth-child(2) { border-top-color: var(--brand-cerulean); }
.blog-metric-card:nth-child(3) { border-top-color: var(--brand-amber); }

.blog-metric-card__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.blog-metric-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink-strong);
    margin: 0.2rem 0 0.25rem;
}

.blog-metric-card__delta {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 700;
    background: var(--brand-cerulean-soft);
    color: var(--brand-cerulean-ink);
}

.blog-metric-card__context {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 0.4rem !important;
}

/* ==========================================================================
   RADAR B3 CARDS STRIP ON HOME (INVESTIDOR 10 STYLE)
   ========================================================================== */
.v4-home-b3-radar {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.15rem 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .v4-home-b3-radar {
    background: var(--bg-dark-elevated);
    border-color: rgba(255, 255, 255, 0.08);
}

.v4-b3-radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v4-b3-radar-all-btn {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-cerulean-ink);
    padding: 0.35rem 0.85rem;
    border-radius: var(--r-pill);
    background: var(--bg-page);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.18s ease;
}

.v4-b3-radar-all-btn:hover {
    background: var(--brand-indigo);
    color: #FFFFFF;
    border-color: var(--brand-indigo);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .v4-b3-radar-all-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--brand-cerulean);
}

[data-theme="dark"] .v4-b3-radar-all-btn:hover {
    background: var(--brand-cerulean);
    color: #0F172A;
    border-color: var(--brand-cerulean);
}

.v4-market-row:hover {
    background: rgba(79, 70, 229, 0.03) !important;
}

[data-theme="dark"] .v4-market-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

.v4-market-tab-btn:hover {
    border-color: var(--brand-indigo) !important;
    color: var(--brand-indigo) !important;
}

.v4-market-tab-btn.is-active:hover {
    color: #FFFFFF !important;
}

.v4-market-link-btn:hover {
    background: var(--brand-indigo) !important;
    border-color: var(--brand-indigo) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.v4-b3-radar-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: v4RadarDotPulse 2.4s ease-in-out infinite;
}

@keyframes v4RadarDotPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.35), 0 0 10px rgba(16, 185, 129, 0.4);
        transform: scale(1.06);
    }
}

.v4-b3-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.v4-b3-radar-card {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

[data-theme="dark"] .v4-b3-radar-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.v4-b3-radar-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-cerulean);
}

.v4-b3-radar-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.v4-b3-radar-card__ticker {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ink-strong);
    display: block;
}

.v4-b3-radar-card__name {
    font-size: 0.7rem;
    color: var(--ink-muted);
    display: block;
    margin-top: 0.1rem;
}

.v4-b3-radar-card__delta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
}

.v4-b3-radar-card__delta--pos {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.v4-b3-radar-card__delta--neg {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.v4-b3-radar-card__price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
    margin-bottom: 0.35rem;
}

.v4-b3-radar-card__kpis {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    border-top: 1px dashed var(--line);
    padding-top: 0.35rem;
}

.v4-b3-radar-card__kpis strong {
    color: var(--ink-strong);
}

/* ==========================================================================
   TICKER CARD & FINANCIAL CALCULATOR SLICES (Investidor 10 Style)
   ========================================================================== */
.blog-slice--ticker {
    margin: 2.25rem 0;
}

.blog-ticker-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-cerulean);
    border-radius: var(--r-md);
    padding: 1.35rem 1.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="dark"] .blog-ticker-card {
    background: var(--bg-dark-elevated);
    border-color: rgba(255, 255, 255, 0.08);
}

.blog-ticker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.08);
}

.blog-ticker-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.85rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-ticker-card__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.blog-ticker-card__symbol {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: var(--r-xs);
    background: var(--brand-cerulean);
    color: #FFFFFF;
    letter-spacing: 0.04em;
    display: inline-block;
}

.blog-ticker-card__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-strong);
    margin: 0;
}

.blog-ticker-card__segment {
    font-size: 0.78rem;
    color: var(--ink-muted);
    display: block;
    margin-top: 0.15rem;
}

.blog-ticker-card__badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: var(--r-pill);
    background: var(--brand-indigo-soft);
    color: var(--brand-indigo);
    border: 1px solid var(--brand-indigo-line);
}

.blog-ticker-card__body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 680px) {
    .blog-ticker-card__body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.blog-ticker-card__price-box {
    padding-right: 1.25rem;
    border-right: 1px solid var(--line);
}

@media (max-width: 680px) {
    .blog-ticker-card__price-box {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 0.85rem;
    }
}

.blog-ticker-card__price-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-muted);
    display: block;
}

.blog-ticker-card__price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
    display: block;
    margin: 0.2rem 0;
}

.blog-ticker-card__delta {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

.blog-ticker-card__delta--pos {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.blog-ticker-card__delta--neg {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.blog-ticker-card__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
}

.blog-ticker-kpi {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    padding: 0.55rem 0.75rem;
    text-align: center;
}

[data-theme="dark"] .blog-ticker-kpi {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.blog-ticker-kpi__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    display: block;
}

.blog-ticker-kpi__val {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-strong);
    display: block;
    margin-top: 0.15rem;
}

.blog-ticker-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-ticker-card__cta {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-cerulean-ink);
    text-decoration: none;
    transition: color 0.18s ease;
}

.blog-ticker-card__cta:hover {
    color: var(--brand-indigo);
    text-decoration: underline;
}

.blog-ticker-card__source {
    color: var(--ink-faint);
    font-size: 0.72rem;
}

/* Calculator Slice (`blog-slice--calculator`) */
.blog-slice--calculator {
    margin: 2.5rem 0;
}

.blog-calc-widget {
    background: var(--bg-card);
    border: 1px solid var(--brand-indigo-line);
    border-top: 4px solid var(--brand-indigo);
    border-radius: var(--r-md);
    padding: 1.75rem;
    box-shadow: 0 6px 24px rgba(108, 94, 236, 0.05);
}

[data-theme="dark"] .blog-calc-widget {
    background: var(--bg-dark-elevated);
    border-color: rgba(108, 94, 236, 0.35);
}

.blog-calc-widget__badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-xs);
    background: var(--brand-indigo);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-calc-widget__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink-strong);
    margin: 0.45rem 0 0.25rem;
}

.blog-calc-widget__desc {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0 0 1.35rem;
}

.blog-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

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

.blog-calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.blog-calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.blog-calc-field label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-strong);
    display: flex;
    justify-content: space-between;
}

.blog-calc-field label span.val-display {
    font-family: var(--font-mono);
    color: var(--brand-indigo);
    font-weight: 700;
}

.blog-calc-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--r-xs);
    border: 1px solid var(--line);
    background: var(--bg-page);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--ink-strong);
    outline: none;
    transition: border-color 0.18s ease;
    box-sizing: border-box;
}

.blog-calc-input:focus {
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 3px var(--brand-indigo-soft);
}

.blog-calc-slider {
    width: 100%;
    accent-color: var(--brand-indigo);
    cursor: pointer;
}

.blog-calc-results {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-theme="dark"] .blog-calc-results {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.blog-calc-result-hero {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.blog-calc-result-hero__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    display: block;
}

.blog-calc-result-hero__val {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--brand-indigo);
    letter-spacing: -0.03em;
    display: block;
    margin-top: 0.25rem;
}

.blog-calc-subresults {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.blog-calc-subresult-box {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    padding: 0.65rem 0.85rem;
}

[data-theme="dark"] .blog-calc-subresult-box {
    background: rgba(255, 255, 255, 0.05);
}

.blog-calc-subresult-box__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    display: block;
}

.blog-calc-subresult-box__val {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink-strong);
    display: block;
    margin-top: 0.15rem;
}

.blog-calc-widget__disclaimer {
    font-size: 0.74rem;
    color: var(--ink-faint);
    line-height: 1.45;
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
}

/* Callout (`blog-slice--callout`) */
.blog-slice--callout {
    padding: 1.4rem 1.55rem;
    border-radius: var(--r-md);
    background: var(--brand-indigo-soft);
    border: 1px solid var(--brand-indigo-line);
    border-left: 4px solid var(--brand-indigo);
}

.blog-callout__badge {
    display: inline-block;
    padding: 0.18rem 0.58rem;
    border-radius: var(--r-xs);
    background: var(--brand-indigo);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-callout__highlight {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-indigo);
    margin-bottom: 0.35rem;
}

/* Chart (`blog-slice--chart`) */
.blog-slice--chart {
    margin-left: 0;
    margin-right: 0;
    padding: 1.4rem;
    border-radius: var(--r-md);
    background: var(--bg-page);
    border: 1px solid var(--line);
}

.v4-chart-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.v4-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--r-xs);
    background: var(--bg-card);
    border: 1px solid var(--line);
    gap: 2px;
}

.v4-seg-btn {
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.68rem;
    border-radius: 4px;
}

.v4-seg-btn.is-active {
    background: var(--brand-indigo);
    color: #FFFFFF;
}

.blog-chart-canvas-mount {
    position: relative;
    height: 305px;
    width: 100%;
}

.blog-chart__takeaway {
    margin-top: 0.95rem !important;
    padding: 0.75rem 0.95rem;
    border-radius: var(--r-xs);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-cerulean);
    font-size: 0.84rem;
}

.blog-slice__caption {
    font-family: var(--font-mono);
    font-size: 0.69rem;
    color: var(--ink-faint);
    margin-top: 0.55rem !important;
}

/* Table (`blog-slice--table`) */
.blog-slice--table {
    margin-left: 0;
    margin-right: 0;
}

.blog-table-responsive {
    overflow-x: auto;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
}

.blog-article-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.blog-article-prose thead th {
    background: var(--bg-muted);
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}

.blog-article-prose tbody td {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-body);
}

/* Pros & Cons (`blog-slice--pros-cons`) */
.blog-pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 0.95rem;
}

.blog-pros-box {
    padding: 1.25rem;
    border-radius: var(--r-md);
    background: var(--brand-cerulean-soft);
    border: 1px solid var(--brand-cerulean-line);
    font-size: 0.88rem;
}

.blog-cons-box {
    padding: 1.25rem;
    border-radius: var(--r-md);
    background: var(--brand-amber-soft);
    border: 1px solid var(--brand-amber-line);
    font-size: 0.88rem;
}

.blog-pros-box h4,
.blog-cons-box h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 0.55rem;
}

.blog-pros-box ul,
.blog-cons-box ul {
    margin: 0;
    padding-left: 1.15rem;
}

/* Quote (`blog-slice--quote`) */
.blog-slice--quote {
    margin-left: 0;
    margin-right: 0;
    padding: 1.55rem 1.75rem;
    border-radius: var(--r-md);
    background: var(--bg-dark);
    color: #FFFFFF;
    border-left: 4px solid var(--brand-amber);
}

.blog-slice--quote blockquote {
    margin: 0;
}

.blog-slice--quote blockquote p {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.48;
    color: #FFFFFF;
}

.blog-quote__cite {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--brand-cerulean);
}

/* Timeline (`blog-slice--timeline`) */
.blog-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.blog-timeline__item {
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-md);
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-indigo);
}

.blog-timeline__step {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-indigo);
    text-transform: uppercase;
}

.blog-timeline__item h4 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0.2rem 0;
    color: var(--ink-strong);
}

.blog-timeline__item p {
    font-size: 0.86rem;
    color: var(--ink-muted);
    margin: 0;
}

/* FAQ (`blog-slice--faq`) */
.blog-faq__item {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 0.95rem 1.15rem;
    margin-bottom: 0.55rem;
    background: var(--bg-page);
}

.blog-faq__item[open] {
    border-color: var(--brand-indigo);
    background: var(--bg-card);
}

.blog-faq__item summary {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ink-strong);
    cursor: pointer;
}

.blog-faq__answer {
    padding-top: 0.6rem;
    font-size: 0.87rem;
    color: var(--ink-muted);
}

/* Vault, Disclaimer & Comments (Flat Bordered) */
.v4-vault {
    margin-top: 1.85rem;
    border-radius: var(--r-lg);
    background: var(--bg-dark);
    color: #FFFFFF;
    border: 1px solid rgba(41, 171, 226, 0.35);
    padding: 1.85rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .v4-vault {
        grid-template-columns: 1.2fr 1fr;
    }
}

.v4-dark-input {
    width: 100%;
    padding: 0.68rem 0.9rem;
    border-radius: var(--r-xs);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-size: 0.82rem;
    outline: none;
}

.v4-amber-btn {
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: var(--r-xs);
    border: 0;
    background: var(--brand-amber);
    color: #080C17;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
}

.v4-cvm-box {
    margin-top: 1.4rem;
    padding: 1.1rem 1.3rem;
    border-radius: var(--r-md);
    background: var(--bg-muted);
    border: 1px solid var(--line);
    font-size: 0.76rem;
    color: var(--ink-muted);
}

.v4-comments {
    margin-top: 1.85rem;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 1.75rem;
}

.v4-cmt-card {
    padding: 1.1rem;
    border-radius: var(--r-md);
    background: var(--bg-page);
    border: 1px solid var(--line);
}

.v4-cmt-card--reply {
    margin-left: 1.75rem;
    margin-top: 0.7rem;
    background: var(--brand-indigo-soft);
    border-color: var(--brand-indigo-line);
}

/* ==========================================================================
   8. FOOTER, COMMAND SEARCH, MOBILE DRAWER & PROTOTYPE DOCK
   ========================================================================== */
.v4-footer {
    margin-top: 4.5rem;
    background: #080C17;
    color: rgba(255, 255, 255, 0.75);
    padding: 3.75rem 0 6.5rem;
    border-top: 3px solid var(--brand-indigo);
}

.v4-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
}

@media (min-width: 1024px) {
    .v4-footer__grid {
        grid-template-columns: 3.5fr 2fr 2fr 3.5fr;
    }
}

.v4-modal-bg {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(8, 12, 23, 0.68);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4.5rem 1rem 1rem;
}

.v4-search-box {
    width: 100%;
    max-width: 620px;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    overflow: hidden;
}

.v4-drawer-bg {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(8, 12, 23, 0.68);
    display: flex;
}

.v4-drawer-panel {
    width: 310px;
    max-width: 86vw;
    height: 100%;
    background: var(--bg-card);
    border-right: 1px solid var(--line-strong);
    padding: 1.5rem;
    overflow-y: auto;
}

/* Flat Architectural Prototype Dock */
.v4-dock {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.36rem;
    border-radius: var(--r-pill);
    background: rgba(8, 12, 23, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.v4-dock__lbl {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand-cerulean);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    white-space: nowrap;
}

@media (min-width: 820px) {
    .v4-dock__lbl {
        display: inline-flex;
    }
}

.v4-dock__btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.44rem 0.88rem;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.v4-dock__btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.09);
}

.v4-dock__btn.is-active {
    background: var(--brand-indigo);
    color: #FFFFFF;
}

/* ==========================================================================
   SISTEMA DE NAVEGAÇÃO POR CATEGORIAS (CATEGORY NAVIGATION SYSTEM)
   ========================================================================== */

/* 1. Barra Horizontal de Navegação por Categorias (Category Rail) */
.v4-cat-rail {
    position: relative;
    margin: 1.25rem 0 2rem;
    padding: 0.45rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.v4-cat-rail__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
}

.v4-cat-rail__inner::-webkit-scrollbar {
    height: 4px;
}
.v4-cat-rail__inner::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 4px;
}

.v4-cat-rail__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: var(--r-pill);
    background: var(--bg-page);
    border: 1px solid var(--line);
    color: var(--ink-body);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.v4-cat-rail__item:hover {
    border-color: var(--brand-indigo);
    color: var(--brand-indigo);
    background: var(--bg-card);
}

.v4-cat-rail__item.is-active {
    background: var(--brand-indigo);
    border-color: var(--brand-indigo);
    color: #FFFFFF;
}

.v4-cat-rail__item.is-active .v4-cat-rail__count {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.v4-cat-rail__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v4-cat-rail__count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.42rem;
    border-radius: 10px;
    background: var(--line);
    color: var(--ink-muted);
}

/* 2. Central de Editorias (Category Hub Grid) */
.v4-category-hub {
    margin: 3.5rem 0 3rem;
}

.v4-cat-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 680px) {
    .v4-cat-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1080px) {
    .v4-cat-hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.v4-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--cat-accent, var(--brand-indigo));
    border-radius: var(--r-md);
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.v4-cat-card:hover {
    border-color: var(--cat-accent, var(--brand-indigo));
    transform: translateY(-2px);
}

.v4-cat-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.v4-cat-card__icon-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v4-cat-card__pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cat-accent, var(--brand-indigo));
    flex-shrink: 0;
}

.v4-cat-card__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-strong);
    line-height: 1.25;
}

.v4-cat-card__count {
    color: var(--cat-accent, var(--brand-indigo));
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--bg-page);
    border: 1px solid var(--line);
    white-space: nowrap;
}

.v4-cat-card__desc {
    font-size: 0.83rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}

.v4-cat-card__subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
}

.v4-cat-subpill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: var(--bg-page);
    border: 1px solid var(--line);
    color: var(--ink-body);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.v4-cat-subpill:hover {
    border-color: var(--cat-accent, var(--brand-indigo));
    color: var(--cat-accent, var(--brand-indigo));
}

.v4-cat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--cat-accent, var(--brand-indigo));
    text-decoration: none;
    transition: gap 0.15s ease;
    margin-top: auto;
}

.v4-cat-card__link:hover {
    gap: 0.65rem;
}

/* 3. Seletor de Categorias Irmãs em Páginas de Arquivo / Artigo */
.v4-cat-switcher-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.45rem 0.2rem;
    margin: 1rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.v4-cat-switcher-bar::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   4. NOVO HEADER EDITORIAL INTEGRADO & NAVEGAÇÃO TIPOGRÁFICA INSTITUCIONAL
   ========================================================================== */

/* Header Editorial Container */
.v4-header-editorial {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .v4-header-editorial {
    background: rgba(13, 19, 35, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Ajustes na Barra de Tickers */
.v4-tk-all-link {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-cerulean);
    padding: 0.15rem 0.5rem;
    border-radius: var(--r-xs);
    background: rgba(41, 171, 226, 0.12);
    border: 1px solid rgba(41, 171, 226, 0.25);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
}

.v4-tk-all-link:hover {
    background: var(--brand-cerulean);
    color: #FFFFFF !important;
}

.v4-topbar-theme-btn {
    border: 0;
    background: transparent;
    color: var(--brand-cerulean);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.v4-topbar-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.v4-topbar__sep {
    color: rgba(255, 255, 255, 0.25);
}

/* Masthead Logo Info */
.v4-logo-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.v4-logo-wordmark {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink-strong);
}

.v4-logo-wordmark em {
    font-style: normal;
    color: var(--brand-indigo);
}

.v4-logo-tagline {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: -0.01em;
    display: none;
}

@media (min-width: 768px) {
    .v4-logo-tagline {
        display: block;
    }
}

/* Barra de Navegação Editorial Tipográfica (Row 2) */
.v4-nav-bar {
    border-top: 1px solid var(--line);
    background: var(--bg-card);
    position: relative;
    overflow: visible;
    transition: background 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .v4-nav-bar {
    background: rgba(13, 19, 35, 0.85);
}

.v4-nav-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    gap: 1.25rem;
    position: relative;
    overflow: visible;
}

.v4-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: visible;
}

.v4-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.v4-nav-link {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0 0.85rem;
    color: var(--ink-body);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.v4-nav-link:hover,
.v4-nav-link.is-active {
    color: var(--cat-accent, var(--brand-indigo));
    border-bottom-color: var(--cat-accent, var(--brand-indigo));
}

.v4-nav-chevron-btn {
    border: 0;
    background: transparent;
    padding: 0 0.55rem 0 0.1rem;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-faint);
    transition: color 0.16s ease;
}

.v4-nav-chevron-btn:hover {
    color: var(--cat-accent, var(--brand-indigo));
}

.v4-nav-chevron {
    color: var(--ink-faint);
    transition: transform 0.18s ease;
}

.v4-nav-item.has-dropdown:hover .v4-nav-chevron,
.v4-nav-item.has-dropdown.is-open .v4-nav-chevron {
    transform: rotate(180deg);
}

.v4-nav-link--market {
    color: var(--brand-cerulean-ink);
}

.v4-nav-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

/* Mega Dropdown Editorial */
.v4-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.22);
    padding: 0.85rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 999;
}

/* Ponte invisível para evitar perda de hover */
.v4-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

[data-theme="dark"] .v4-dropdown-menu {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
}

.v4-nav-item.has-dropdown:hover .v4-dropdown-menu,
.v4-nav-item.has-dropdown.is-open .v4-dropdown-menu,
.v4-nav-item.has-dropdown:focus-within .v4-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Alinhamento inteligente para itens próximos da borda direita */
.v4-nav-item:nth-last-child(2) .v4-dropdown-menu,
.v4-nav-item:last-child .v4-dropdown-menu {
    left: auto;
    right: 0;
}

.v4-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem 0.6rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.45rem;
}

.v4-dropdown-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v4-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.v4-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: var(--r-sm);
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.v4-dropdown-link:hover {
    background: var(--bg-page);
    color: var(--brand-indigo);
    padding-left: 0.95rem;
}

.v4-dropdown-count {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--ink-muted);
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    background: var(--line);
}

.v4-dropdown-footer {
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.v4-dropdown-footer-link {
    display: block;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--brand-indigo);
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    border-radius: var(--r-xs);
    transition: background 0.12s ease;
}

.v4-dropdown-footer-link:hover {
    background: var(--brand-indigo-soft);
}

/* Meta Links na Barra de Navegação */
.v4-nav-bar__meta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-muted);
    flex-shrink: 0;
}

@media (min-width: 960px) {
    .v4-nav-bar__meta {
        display: flex;
    }
}

.v4-nav-meta-link {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.v4-nav-meta-link:hover {
    color: var(--brand-indigo);
}

.v4-nav-meta-sep {
    color: var(--line-strong);
}

/* ==========================================================================
   SIDEBAR INTELIGENTE NA HOME & WIDGETS DE MERCADO
   ========================================================================== */

/* Widget de Radar B3 na Sidebar */
.v4-sidebar-b3-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.v4-sidebar-b3-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: var(--r-sm);
    background: var(--bg-page);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.v4-sidebar-b3-row:hover {
    border-color: var(--brand-indigo);
    transform: translateX(2px);
    background: var(--bg-card);
}

.v4-sidebar-b3-ticker {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--ink-strong);
    display: block;
}

.v4-sidebar-b3-name {
    font-size: 0.7rem;
    color: var(--ink-muted);
    display: block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-sidebar-b3-price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--ink-strong);
    text-align: right;
    display: block;
}

.v4-sidebar-b3-delta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    display: inline-block;
}

.v4-sidebar-b3-delta--pos {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

[data-theme="dark"] .v4-sidebar-b3-delta--pos {
    background: rgba(16, 185, 129, 0.22);
    color: #34D399;
}

.v4-sidebar-b3-delta--neg {
    background: rgba(239, 68, 68, 0.14);
    color: #DC2626;
}

[data-theme="dark"] .v4-sidebar-b3-delta--neg {
    background: rgba(239, 68, 68, 0.22);
    color: #F87171;
}

.v4-sidebar-b3-kpis {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-faint);
    display: flex;
    gap: 0.6rem;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--line);
}

.v4-sidebar-b3-kpis strong {
    color: var(--ink-strong);
}

/* Box de Newsletter na Sidebar */
.v4-sidebar-newsletter {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-page) 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.4rem;
}

.v4-sidebar-newsletter__badge {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-indigo);
    background: var(--brand-indigo-soft);
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.65rem;
}

.v4-sidebar-newsletter__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-strong);
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.v4-sidebar-newsletter__desc {
    font-size: 0.8rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0 0 0.95rem;
}

/* Compatibilidade com versões legadas */
.v4-top-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.44rem 0.85rem;
    border-radius: var(--r-pill);
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-body);
    font-family: var(--font-display);
    font-size: 0.79rem;
    font-weight: 700;
    text-decoration: none;
}


/* ==========================================================================
   V4 LIVE SYNC BANNER & REAL-TIME BEACON (STATUS EM TEMPO REAL)
   ========================================================================== */
.v4-live-sync-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.15rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 45%, var(--bg-card) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-left: 4px solid #10B981;
    border-radius: var(--r-md);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
    animation: v4LivePulseGlow 3.6s ease-in-out infinite;
    transition: all 0.25s ease;
}

[data-theme="dark"] .v4-live-sync-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.06) 50%, var(--bg-card) 100%);
    border-color: rgba(16, 185, 129, 0.38);
    border-left-color: #10B981;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.v4-live-sync-banner:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.2), 0 0 0 2px rgba(16, 185, 129, 0.15);
}

@keyframes v4LivePulseGlow {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08), 0 0 0 0 rgba(16, 185, 129, 0.18);
    }
    50% {
        box-shadow: 0 6px 22px rgba(16, 185, 129, 0.18), 0 0 0 3px rgba(16, 185, 129, 0.24);
    }
}

.v4-live-sync-banner__left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.v4-live-sync-banner__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Pulsing radar beacon (ícone vivo) */
.v4-live-sync-beacon {
    position: relative;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v4-live-sync-beacon__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
    z-index: 2;
}

.v4-live-sync-beacon__ping {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.55);
    animation: v4LiveBeaconRipple 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes v4LiveBeaconRipple {
    0% {
        transform: scale(0.5);
        opacity: 0.95;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Badge AO VIVO */
.v4-live-sync-tag {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #047857;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.18rem 0.55rem;
    border-radius: var(--r-pill);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

[data-theme="dark"] .v4-live-sync-tag {
    color: #34D399;
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(52, 211, 153, 0.45);
}

/* Texto de atualização */
.v4-live-sync-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-strong);
    line-height: 1.4;
}

.v4-live-sync-text strong {
    color: #047857;
    font-weight: 800;
}

[data-theme="dark"] .v4-live-sync-text strong {
    color: #34D399;
}

.v4-live-sync-rel {
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Lado direito: info & botão de refresh */
.v4-live-sync-info {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-faint);
}

.v4-live-sync-icon {
    color: #10B981;
    flex-shrink: 0;
}

.v4-live-sync-refresh {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.32);
    padding: 0.22rem 0.65rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.18s ease;
}

.v4-live-sync-refresh:hover {
    background: #10B981;
    color: #FFFFFF !important;
    border-color: #10B981;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

[data-theme="dark"] .v4-live-sync-refresh {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .v4-live-sync-refresh:hover {
    background: #10B981;
    color: #FFFFFF !important;
}

/* Pill badge para home / cabeçalhos */
.v4-live-sync-badge-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #047857;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 0.18rem 0.6rem;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    animation: v4LivePulseGlow 3.6s ease-in-out infinite;
    transition: all 0.2s ease;
}

[data-theme="dark"] .v4-live-sync-badge-pill {
    color: #34D399;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.35);
}

@media (max-width: 768px) {
    .v4-live-sync-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.75rem 1rem;
    }
    .v4-live-sync-banner__right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================================
   11. EDITORIAL ARTICLE REFINEMENTS (AUTHORS, TOC, TABLES, CVM)
   ========================================================================== */

.v4-author-initials-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-indigo), #4f46e5);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(108, 94, 236, 0.25);
}

.v4-author-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-indigo), #3730a3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: 0 4px 14px rgba(108, 94, 236, 0.3);
}

/* Mobile Collapsible TOC */
.v4-mobile-toc {
    display: block;
    margin: 1.25rem 0 2rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

@media (min-width: 1024px) {
    .v4-mobile-toc {
        display: none !important;
    }
}

.v4-mobile-toc[open] {
    border-color: var(--brand-indigo);
}

.v4-mobile-toc__summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.15rem;
    cursor: pointer;
    background: var(--bg-card);
    font-family: var(--font-display);
    user-select: none;
}

.v4-mobile-toc__summary::-webkit-details-marker {
    display: none;
}

.v4-mobile-toc__chevron {
    font-size: 0.85rem;
    color: var(--ink-muted);
    transition: transform 0.2s ease;
}

.v4-mobile-toc[open] .v4-mobile-toc__chevron {
    transform: rotate(180deg);
}

.v4-mobile-toc__nav {
    border-top: 1px solid var(--line);
    padding: 0.65rem 0.85rem;
    background: var(--bg-page);
    max-height: 320px;
    overflow-y: auto;
}

.v4-mobile-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.v4-mobile-toc__link {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--r-xs);
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--ink-body);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.15s ease;
}

.v4-mobile-toc__link:hover,
.v4-mobile-toc__link:focus {
    background: var(--bg-card);
    color: var(--brand-indigo);
}

/* CVM Compliance Seal */
.v4-cvm-seal {
    margin: 2.5rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-muted);
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink-faint);
    border-radius: var(--r-md);
}

.v4-cvm-seal__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-xs);
    background: var(--bg-card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Financial Data Tables Polishing */
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.blog-table thead th {
    background: var(--bg-muted);
    color: var(--ink-strong);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
    padding: 0.85rem 1.15rem;
    border-bottom: 2px solid var(--line-strong);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.blog-table tbody tr {
    transition: background 0.15s ease;
}

.blog-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .blog-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.blog-table tbody tr:hover {
    background: var(--bg-muted);
}

.blog-table tbody td {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--line);
    color: var(--ink-body);
    line-height: 1.5;
}

.blog-table tfoot td {
    padding: 0.75rem 1.15rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-faint);
    font-style: italic;
    background: var(--bg-page);
}

/* FAQ Details Enhancement */
.blog-faq__item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink-strong);
    padding: 0.25rem 0;
    user-select: none;
    transition: color 0.15s ease;
}

.blog-faq__item summary:hover {
    color: var(--brand-indigo);
}

.blog-faq__answer {
    padding-top: 0.85rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--ink-body);
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
}
