.rvei {
    --rvei-navy: #071a2d;
    --rvei-blue: #0d2c4b;
    --rvei-gold: #b89b5e;
    --rvei-ink: #152131;
    --rvei-muted: #667386;
    --rvei-line: #e3e8ee;
    --rvei-bg: #f4f7fa;
    width: 100%;
    color: var(--rvei-ink);
    font-family: var(--font-sans, Inter, Arial, sans-serif);
}

body.page-id-133918,
body.page-id-133918 .page-body,
body.page-id-133918 .single-content {
    background: #fff;
}

body.page-template-default:has(.rvei) .page-header {
    display: none;
}

body:has(.rvei) .page-body {
    font-size: 16px;
    line-height: 1.5;
}

body:has(.rvei) .single-content > p:empty {
    display: none;
}

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

.rvei-hero {
    position: relative;
    display: flex;
    min-height: 220px;
    margin-bottom: 22px;
    padding: 42px;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 20%, rgba(60, 150, 205, .3), transparent 25%),
        linear-gradient(120deg, rgba(7, 26, 45, .98), rgba(8, 43, 72, .95));
    box-shadow: 0 20px 50px rgba(7, 26, 45, .18);
}

.rvei-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .2;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(400px) rotateX(55deg) scale(1.4);
    transform-origin: right bottom;
}

.rvei-hero__copy,
.rvei-update {
    position: relative;
    z-index: 1;
}

.rvei-eyebrow,
.rvei-card-heading span,
.rvei-section-heading span {
    margin: 0 0 8px;
    color: var(--rvei-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rvei-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(38px, 5vw, 64px);
    line-height: .98;
    letter-spacing: -.04em;
}

.rvei-hero__copy > p:last-child {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
}

.rvei-update {
    display: flex;
    min-width: 245px;
    padding: 16px 18px;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(3, 16, 29, .55);
    backdrop-filter: blur(8px);
}

.rvei-update__dot {
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border-radius: 50%;
    background: #3dcc88;
    box-shadow: 0 0 0 5px rgba(61,204,136,.13);
}

.rvei-update strong,
.rvei-update span {
    display: block;
}

.rvei-update strong {
    font-size: 12px;
}

.rvei-update span {
    margin-top: 4px;
    color: rgba(255,255,255,.68);
    font-size: 11px;
}

.rvei-featured {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.rvei-quote-card {
    min-width: 0;
    min-height: 190px;
    padding: 10px 10px 12px;
    color: var(--rvei-ink);
    border: 1px solid var(--rvei-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 43, 68, .07);
    transition: .2s ease;
    overflow: hidden;
}

.rvei-quote-card:hover,
.rvei-quote-card:focus-within {
    border-color: var(--rvei-gold);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(20, 43, 68, .12);
}

.rvei-quote-card > button {
    display: block;
    width: calc(100% - 12px);
    min-height: 32px;
    margin: 5px 6px 0;
    color: var(--rvei-blue);
    border: 1px solid #d9e0e8;
    border-radius: 7px;
    background: #f8fafc;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}

.rvei-quote-card > button:hover,
.rvei-quote-card > button:focus-visible {
    color: #fff;
    border-color: var(--rvei-navy);
    background: var(--rvei-navy);
}

.rvei-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid var(--rvei-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 43, 68, .05);
}

.rvei-tab {
    position: relative;
    min-height: 58px;
    color: var(--rvei-muted);
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rvei-tab span {
    margin-right: 9px;
    font-size: 18px;
}

.rvei-tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    content: "";
    background: transparent;
}

.rvei-tab.is-active {
    color: var(--rvei-ink);
}

.rvei-tab.is-active::after {
    background: var(--rvei-gold);
}

.rvei-chart-card,
.rvei-panel,
.rvei-panorama,
.rvei-widget-card {
    border: 1px solid var(--rvei-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 43, 68, .06);
}

.rvei-chart-card {
    margin-bottom: 16px;
    overflow: hidden;
}

.rvei-card-heading,
.rvei-section-heading {
    display: flex;
    padding: 20px 22px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--rvei-line);
}

.rvei-card-heading h2,
.rvei-section-heading h2 {
    margin: 0;
    color: var(--rvei-ink);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 24px;
}

.rvei-live-pill {
    display: inline-flex;
    padding: 6px 10px;
    align-items: center;
    color: #147447 !important;
    border-radius: 999px;
    background: #e9f8f0;
    font-size: 10px !important;
}

.rvei-chart {
    min-height: 520px;
}

.rvei-panel {
    margin-bottom: 16px;
    overflow: hidden;
}

.rvei-section-heading p {
    margin: 0;
    color: var(--rvei-muted);
    font-size: 12px;
}

.rvei-tv {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.rvei-single-ticker {
    min-height: 138px;
}

.rvei-advanced-chart {
    min-height: 520px;
}

.rvei-tv iframe {
    display: block;
    width: 100% !important;
}

.rvei-skeleton {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    padding: 22px;
    align-items: center;
    color: var(--rvei-muted);
    background: #fff;
    pointer-events: none;
}

.rvei-skeleton span {
    display: block;
    height: 16px;
    margin-bottom: 13px;
    border-radius: 6px;
    background: linear-gradient(100deg, #edf1f5 25%, #f8fafc 45%, #edf1f5 65%);
    background-size: 220% 100%;
    animation: rvei-shimmer 1.4s infinite linear;
}

.rvei-skeleton span:nth-child(1) {
    width: 42%;
}

.rvei-skeleton span:nth-child(2) {
    width: 68%;
    height: 30px;
}

.rvei-skeleton span:nth-child(3) {
    width: 55%;
}

.rvei-skeleton small {
    align-self: end;
    font-size: 11px;
}

.rvei-tv.is-loaded > .rvei-skeleton {
    display: none;
}

.rvei-widget-fallback {
    display: flex;
    min-height: inherit;
    padding: 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: var(--rvei-muted);
    text-align: center;
    background: #f8fafc;
}

.rvei-widget-fallback strong {
    color: var(--rvei-navy);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 18px;
}

.rvei-widget-fallback span {
    font-size: 12px;
}

.rvei-panorama {
    margin-top: 16px;
    padding-bottom: 16px;
    overflow: hidden;
}

.rvei-panorama__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    padding: 16px;
    background: var(--rvei-bg);
}

.rvei-widget-card {
    min-width: 0;
    overflow: hidden;
}

.rvei-widget-card h3 {
    margin: 0;
    padding: 16px 18px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rvei-line);
}

.rvei-widget-card--full {
    grid-column: 1 / -1;
}

.rvei-disclaimer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    margin-top: 16px;
    padding: 17px 20px;
    align-items: center;
    color: var(--rvei-muted);
    border: 1px solid var(--rvei-line);
    border-radius: 12px;
    background: #f8fafc;
}

.rvei-disclaimer > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #aab4c0;
    border-radius: 50%;
    font-weight: 800;
}

.rvei-disclaimer p {
    margin: 0;
    font-size: 11px;
}

.rvei-disclaimer small {
    white-space: nowrap;
}

.rvei-disclaimer small i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #3dcc88;
}

@keyframes rvei-shimmer {
    to { background-position: -200% 0; }
}

@media (max-width: 900px) {
    .rvei-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .rvei-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rvei-panorama__grid {
        grid-template-columns: 1fr;
    }

    .rvei-widget-card--full {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .rvei-hero {
        min-height: 0;
        padding: 28px 20px;
        border-radius: 12px;
    }

    .rvei-hero h1 {
        font-size: 39px;
    }

    .rvei-update {
        width: 100%;
        min-width: 0;
    }

    .rvei-featured {
        grid-template-columns: 1fr;
    }

    .rvei-quote-card {
        min-height: 185px;
    }

    .rvei-tabs {
        padding: 0;
    }

    .rvei-tab {
        min-width: 0;
        padding: 8px 3px;
        font-size: 11px;
    }

    .rvei-tab span {
        display: block;
        margin: 0 0 3px;
    }

    .rvei-card-heading,
    .rvei-section-heading {
        padding: 17px;
        align-items: flex-start;
        flex-direction: column;
    }

    .rvei-chart {
        min-height: 430px;
    }

    .rvei-panorama__grid {
        padding: 10px;
    }

    .rvei-disclaimer {
        grid-template-columns: auto 1fr;
    }

    .rvei-disclaimer small {
        grid-column: 2;
    }
}

/* Conteúdo legível, sidebar editorial e estados finais v1.3 */
body.page-id-133918 #rve-sidebar-portal {
    display: none !important;
}

.rvei-research-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    color: #f2d58d;
    border: 1px solid rgba(216, 191, 122, .48);
    border-radius: 999px;
    background: rgba(3, 16, 29, .36);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1;
    text-transform: uppercase;
}

.rvei-quote-card {
    display: flex;
    min-height: 248px;
    flex-direction: column;
}

.rvei-quote-card__data {
    position: relative;
    z-index: 3;
    padding: 13px 14px 2px;
    background: #fff;
}

.rvei-quote-card__data > strong,
.rvei-quote-card__value,
.rvei-quote-card__change,
.rvei-quote-card__data small {
    display: block;
}

.rvei-quote-card__data > strong {
    margin-bottom: 8px;
    color: var(--rvei-navy);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 15px;
    letter-spacing: .01em;
}

.rvei-quote-card__value {
    color: #111827;
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(25px, 2.2vw, 31px);
    font-weight: 700;
    line-height: 1;
}

.rvei-quote-card__change {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 800;
}

.rvei-quote-card__change.is-positive {
    color: #078850;
}

.rvei-quote-card__change.is-negative {
    color: #d6384a;
}

.rvei-quote-card__data small {
    margin-top: 6px;
    color: #7b8794;
    font-size: 9px;
}

.rvei-sparkline-clip {
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px;
    margin-top: auto;
    overflow: hidden;
}

.rvei-symbol-overview {
    height: 205px !important;
    min-height: 205px !important;
    max-height: 205px !important;
    transform: translateY(-108px);
}

.rvei-symbol-overview iframe {
    height: 205px !important;
    min-height: 205px !important;
    max-height: 205px !important;
}

.rvei-quote-card > button {
    flex: 0 0 auto;
}

.rvei-sidebar {
    position: sticky;
    top: 170px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.rvei-sidebar .rvei-market-news {
    position: static;
}

.rvei-editorial-widgets {
    display: grid;
    gap: 18px;
}

.rvei-editorial-widgets > *,
.rvei-editorial-widgets .sidebar-box,
.rvei-editorial-widgets .rve-widget-card {
    width: 100%;
    margin: 0;
}

.rvei-editorial-widgets .sidebar-box,
.rvei-editorial-widgets .rve-widget-card {
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--rvei-line);
    border-top: 3px solid var(--rvei-gold);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 43, 68, .06);
}

.rvei-editorial-widgets .newsletter-card {
    border-top-color: var(--rvei-gold);
    background: var(--rvei-navy);
}

.rvei-editorial-widgets .rve-widget-card__header {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rvei-editorial-widgets .rve-widget-card__header h2,
.rvei-editorial-widgets .sidebar-title {
    margin: 0;
    color: var(--rvei-navy);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 19px;
}

.rvei-editorial-widgets .rve-widget-card__header a {
    color: var(--rvei-gold);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.rvei-editorial-widgets .rve-event-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rvei-editorial-widgets .rve-event-item + .rve-event-item {
    border-top: 1px solid var(--rvei-line);
}

.rvei-editorial-widgets .rve-event-item a {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 9px;
    padding: 10px 0;
    align-items: start;
    text-decoration: none !important;
}

.rvei-editorial-widgets .rve-event-date strong,
.rvei-editorial-widgets .rve-event-date small {
    display: block;
    text-align: center;
}

.rvei-editorial-widgets .rve-event-date strong {
    color: var(--rvei-gold);
    font-size: 20px;
}

.rvei-editorial-widgets .rve-event-date small {
    font-size: 9px;
}

.rvei-editorial-widgets .rve-event-body strong {
    color: var(--rvei-ink);
    font-size: 11px;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .rvei-sidebar {
        position: static;
    }
}

/* Layout editorial v1.2 */
body.page-id-133918 .page-header,
body.page-template-default:has(.rvei) .page-header {
    display: none !important;
}

body.page-id-133918 .content-layout {
    display: block;
    max-width: 1320px;
}

body.page-id-133918 .content-layout > .sidebar {
    display: none;
}

body.page-id-133918 .page-main,
body.page-id-133918 .page-content,
body.page-id-133918 .single-content {
    width: 100%;
    max-width: none;
}

.rvei-market-hero {
    position: relative;
    margin-bottom: 18px;
    padding: 36px 28px 28px;
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 5%, rgba(39, 124, 185, .38), transparent 28%),
        linear-gradient(120deg, #071a2d, #0b3154);
    box-shadow: 0 20px 50px rgba(7, 26, 45, .18);
}

.rvei-market-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(400px) rotateX(55deg) scale(1.4);
    transform-origin: right bottom;
    pointer-events: none;
}

.rvei-market-hero .rvei-hero {
    position: relative;
    z-index: 1;
    min-height: auto;
    margin-bottom: 22px;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.rvei-market-hero .rvei-hero::after {
    display: none;
}

.rvei-market-hero .rvei-featured {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    gap: 15px;
}

.rvei-quote-card {
    min-height: 242px;
    padding: 7px 7px 9px;
}

.rvei-symbol-overview {
    min-height: 205px;
    border-radius: 9px;
}

.rvei-quote-card > button {
    margin-top: 3px;
}

.rvei-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.rvei-primary {
    min-width: 0;
}

.rvei-card-heading {
    background: linear-gradient(180deg, #fff, #fbfcfd);
}

.rvei-card-heading h2 {
    font-size: 28px;
}

.rvei-chart,
.rvei-advanced-chart {
    height: 620px;
    min-height: 620px;
}

.rvei-advanced-chart > div,
.rvei-advanced-chart .tradingview-widget-container__widget,
.rvei-advanced-chart iframe {
    width: 100% !important;
    height: 620px !important;
    min-height: 620px !important;
}

.rvei-market-news {
    position: sticky;
    top: 170px;
    overflow: hidden;
    border: 1px solid var(--rvei-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 43, 68, .06);
}

.rvei-market-news header {
    padding: 17px 18px 12px;
    border-top: 3px solid var(--rvei-gold);
    border-bottom: 1px solid var(--rvei-line);
}

.rvei-market-news header span {
    display: block;
    margin-bottom: 4px;
    color: var(--rvei-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rvei-market-news h2 {
    margin: 0;
    color: var(--rvei-navy);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 22px;
}

.rvei-market-news ol {
    margin: 0;
    padding: 0 17px;
    list-style: none;
}

.rvei-market-news li {
    border-bottom: 1px solid var(--rvei-line);
}

.rvei-market-news li a {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    padding: 15px 0;
    align-items: start;
    text-decoration: none !important;
}

.rvei-market-news li a > span {
    color: var(--rvei-gold);
    font-family: var(--font-serif, Georgia, serif);
    font-size: 23px;
    line-height: 1;
}

.rvei-market-news li strong {
    color: var(--rvei-ink);
    font-size: 12px;
    line-height: 1.35;
}

.rvei-market-news li a:hover strong {
    color: var(--rvei-gold);
}

.rvei-market-news__more {
    display: block;
    padding: 13px 18px 16px;
    color: var(--rvei-blue) !important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
}

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

    .rvei-market-news {
        position: static;
    }
}

@media (max-width: 620px) {
    .rvei-market-hero {
        padding: 28px 14px 16px;
        border-radius: 12px;
    }

    .rvei-market-hero .rvei-hero {
        padding: 0 6px;
        align-items: flex-start;
        flex-direction: column;
    }

    .rvei-quote-card {
        min-height: 242px;
    }

    .rvei-chart,
    .rvei-advanced-chart {
        min-height: 500px;
    }
}
