@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

#esplore-conteudos-catalogo {
    overflow-x: hidden;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.esplore-conteudos-app {
    --esc-bg: #070b13;
    --esc-card: #111827;
    --esc-card-2: #1f2937;
    --esc-text: #f9fafb;
    --esc-muted: #cbd5e1;
    --esc-accent: #3b82f6;
    --esc-border: rgba(255,255,255,.12);
    background: var(--esc-bg);
    color: var(--esc-text);
    border-radius: 0px;
    overflow: hidden;
    min-height: 520px;
    font-family: inherit
}

.esplore-loading,.esplore-empty {
    padding: 32px;
    color: var(--esc-muted);
    text-align: center
}

.esplore-hero {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 48px
}

.esplore-hero-content {
    max-width: 760px
}

.esplore-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #bfdbfe;
    margin-bottom: 12px
}

.esplore-hero h1,.esplore-content-hero h1 {
    font-size: clamp(2rem,5vw,4.5rem);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 800
}

.esplore-hero p,.esplore-content-hero p {
    font-size: 1.1rem;
    color: var(--esc-muted);
    max-width: 720px;
    margin: 0 0 22px
}

.esplore-btn,.esplore-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none!important;
    transition: .2s ease
}

.esplore-btn {
    background: var(--esc-text);
    color: #0f172a!important
}

.esplore-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,.28)
}

.esplore-btn-secondary {
    background: rgba(255,255,255,.1);
    color: var(--esc-text)!important;
    border: 1px solid var(--esc-border)
}

.esplore-catalog-wrap {
    padding: 62px 24px 42px
}

.esplore-filters {
    display: grid;
    grid-template-columns: minmax(220px,1.4fr) repeat(3,minmax(160px,.7fr));
    gap: 12px;
    margin: -54px 0 28px;
    position: relative;
    z-index: 2
}

.esplore-filters input,.esplore-filters select {
    width: 100%;
    border: 1px solid var(--esc-border);
    background: rgba(15,23,42,.92);
    color: var(--esc-text);
    border-radius: 14px;
    padding: 13px 15px;
    outline: none
}

.esplore-filters input::placeholder {
    color: #94a3b8
}

.esplore-row {
    margin: 0 0 34px
}

.esplore-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px
}

.esplore-row-header h2 {
    font-size: 1.35rem;
    margin: 0
}

.esplore-row-header span {
    color: var(--esc-muted);
    font-size: .9rem
}

.esplore-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px,260px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 2px 18px;
    scroll-snap-type: inline mandatory
}

.esplore-carousel::-webkit-scrollbar {
    height: 9px
}

.esplore-carousel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 999px
}

.esplore-content-card {
    scroll-snap-align: start;
    background: transparent
}

.esplore-card-link {
    display: block;
    color: inherit!important;
    text-decoration: none!important
}

.esplore-thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg,#111827,#374151);
    aspect-ratio: 16/9;
    box-shadow: 0 12px 30px rgba(0,0,0,.35)
}

.esplore-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease
}

.esplore-card-link:hover .esplore-thumb img {
    transform: scale(1.045)
}

.esplore-thumb-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem
}

.esplore-type-badge,.esplore-fav {
    position: absolute;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.66);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff
}

.esplore-type-badge {
    left: 10px;
    border-radius: 999px;
    padding: 7px 10px
}

.esplore-fav {
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.25rem
}

.esplore-fav.is-active {
    color: #fb7185
}

.esplore-card-body {
    padding: 11px 2px 0
}

.esplore-card-body h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.esplore-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--esc-muted);
    font-size: .86rem
}

.esplore-card-meta .esplore-card-details {
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 0
}

.esplore-card-meta-placeholder {
    display: inline-block;
    min-height: 1px
}

.esplore-rating {
    color: #facc15;
    letter-spacing: .03em;
    white-space: nowrap
}

.esplore-content-page {
    background: var(--esc-bg)
}

.esplore-content-hero {
    min-height: 430px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 42px
}

.esplore-content-hero-inner {
    max-width: 980px
}

.esplore-back {
    display: inline-block;
    color: #bfdbfe!important;
    text-decoration: none!important;
    margin-bottom: 16px
}

.esplore-category-pills,.esplore-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px
}

.esplore-category-pills span,.esplore-tag-pills span {
    border: 1px solid var(--esc-border);
    background: rgba(15,23,42,.68);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--esc-text);
    font-size: .86rem
}

.esplore-tag-pills span {
    color: #bfdbfe
}

.esplore-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--esc-muted);
    margin: 12px 0 18px
}

.esplore-content-main {
    padding: 28px;
    max-width: 1180px;
    margin: 0 auto
}

.esplore-player {
    background: #020617;
    border: 1px solid var(--esc-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,.32)
}

.esplore-video-player,.esplore-pdf-player,.esplore-ebook-player,.esplore-podcast-embed {
    aspect-ratio: 16/9
}

.esplore-video-player iframe,.esplore-pdf-player iframe,.esplore-ebook-player iframe,.esplore-podcast-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block
}

.esplore-player video {
    width: 100%;
    display: block;
    max-height: 72vh;
    background: #000
}

.esplore-player audio {
    width: 100%;
    padding: 24px
}

.esplore-login-gate,.esplore-landing-placeholder {
    padding: 34px;
    border-radius: 20px;
    background: linear-gradient(135deg,rgba(59,130,246,.16),rgba(15,23,42,.96));
    border: 1px solid var(--esc-border);
    text-align: center
}

.esplore-login-gate h2,.esplore-landing-placeholder h2 {
    margin-top: 0
}

.esplore-auth-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #bfdbfe;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.esplore-login-gate p {
    max-width: 680px;
    margin: 0 auto 22px;
    color: var(--esc-muted)
}

.esplore-auth-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px
}

.esplore-auth-modal[hidden] {
    display: none!important
}

.esplore-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px
}

.esplore-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.78);
    backdrop-filter: blur(10px)
}

.esplore-auth-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 460px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.16);
    background: #0b1220;
    color: var(--esc-text);
    box-shadow: 0 28px 80px rgba(0,0,0,.48);
    padding: 28px
}

.esplore-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer
}

.esplore-auth-dialog h2 {
    margin: 0 42px 8px 0;
    font-size: 1.55rem
}

.esplore-auth-dialog p {
    margin: 0 0 18px;
    color: var(--esc-muted)
}

.esplore-auth-fields {
    display: grid;
    gap: 14px
}

.esplore-auth-fields label {
    display: grid;
    gap: 7px;
    color: #dbeafe;
    font-size: .92rem;
    text-align: left
}

.esplore-auth-fields input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(2,6,23,.78);
    color: #fff;
    padding: 12px 14px;
    outline: none
}

.esplore-auth-fields input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59,130,246,.18)
}

.esplore-auth-message {
    margin: 0 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(248,113,113,.42);
    background: rgba(127,29,29,.26);
    color: #fecaca;
    padding: 10px 12px;
    font-size: .92rem
}

.esplore-auth-message.is-success {
    border-color: rgba(74,222,128,.38);
    background: rgba(20,83,45,.26);
    color: #bbf7d0
}

.esplore-auth-dialog form > .esplore-btn {
    width: 100%;
    margin-top: 18px
}

.esplore-auth-dialog button:disabled {
    opacity: .65;
    cursor: wait
}

.esplore-full-description {
    margin-top: 28px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--esc-border);
    border-radius: 20px;
    padding: 24px;
    color: var(--esc-muted)
}

.esplore-note {
    margin-top: 12px;
    color: var(--esc-muted);
    font-size: .94rem
}

@media (max-width: 900px) {
    .esplore-hero,.esplore-content-hero {
        padding:32px 22px;
        min-height: 360px
    }

    .esplore-filters {
        grid-template-columns: 1fr;
        margin-top: -34px
    }

    .esplore-catalog-wrap {
        padding: 18px
    }

    .esplore-carousel {
        grid-auto-columns: minmax(178px,72vw)
    }

    .esplore-content-main {
        padding: 18px
    }

    .esplore-video-player,.esplore-pdf-player,.esplore-ebook-player,.esplore-podcast-embed {
        aspect-ratio: 4/3
    }

    .esplore-auth-options {
        flex-direction: column;
        align-items: stretch
    }

    .esplore-auth-options .esplore-btn,.esplore-auth-options .esplore-btn-secondary {
        width: 100%
    }

    .esplore-auth-dialog {
        padding: 24px 18px
    }
}

/* v024 banner video/slider */
.esplore-hero {
    position: relative;
    overflow: hidden;
    background: #020617;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 48px
}

.esplore-hero-bg,.esplore-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center
}

.esplore-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.34));
    pointer-events: none
}

.esplore-hero-content {
    position: relative;
    z-index: 2
}

.esplore-hero-slider {
    display: block;
    padding: 0
}

.esplore-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease
}

.esplore-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto
}

.esplore-hero-dots {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 8px
}

.esplore-hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.42);
    cursor: pointer;
    padding: 0
}

.esplore-hero-dots button.is-active {
    background: #fff;
    width: 28px
}

.esplore-content-hero {
    position: relative;
    overflow: hidden;
    background: #020617
}

.esplore-content-hero-bg,.esplore-content-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center
}

.esplore-content-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.90));
    pointer-events: none
}

.esplore-content-hero-inner {
    position: relative;
    z-index: 2
}

.esplore-content-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap
}

.esplore-btn-secondary.is-active,.esplore-fav.is-active {
    color: #fff;
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.4)
}

.esplore-rating-box {
    margin: 28px 0;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.esplore-rating-box p {
    margin: .25rem 0 0;
    opacity: .75
}

.esplore-rating-actions {
    display: flex;
    gap: 4px
}

.esplore-rating-actions button {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.35);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 4px
}

.esplore-rating-actions button:hover,.esplore-rating-actions button.is-active {
    color: #ffd76a
}

.esplore-rating-feedback {
    display: block;
    opacity: .8
}

.esplore-fav {
    z-index: 5
}

@media (max-width: 700px) {
    .esplore-rating-box {
        align-items:flex-start;
        flex-direction: column
    }

    .esplore-rating-actions button {
        font-size: 26px
    }
}

/* v030 PDF/E-book advanced reader and podcast player */
.esplore-reader {
    background: #020617;
    border: 1px solid var(--esc-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(0,0,0,.36)
}

.esplore-reader-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(15,23,42,.96);
    border-bottom: 1px solid var(--esc-border);
    position: sticky;
    top: 0;
    z-index: 3
}

.esplore-reader-btn,.esplore-reader-toolbar .esplore-btn-secondary {
    border: 1px solid var(--esc-border);
    background: rgba(255,255,255,.08);
    color: var(--esc-text)!important;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none!important;
    margin: 0
}

.esplore-reader-btn:hover,.esplore-reader-toolbar .esplore-btn-secondary:hover {
    background: rgba(255,255,255,.16)
}

.esplore-reader-page-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--esc-muted)
}

.esplore-reader-page-control select {
    background: #0f172a;
    color: var(--esc-text);
    border: 1px solid var(--esc-border);
    border-radius: 10px;
    padding: 7px 10px;
    min-width: 74px
}

.esplore-reader-stage {
    min-height: 540px;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: radial-gradient(circle at top,rgba(59,130,246,.12),rgba(2,6,23,1) 48%);
    overflow: auto
}

.esplore-reader-stage canvas {
    display: none;
    max-width: 100%;
    height: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(0,0,0,.48)
}

.esplore-pdf-spinner {
    min-height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    color: #dbeafe;
    font-weight: 700;
    letter-spacing: .01em;
}

.esplore-pdf-spinner[hidden] {
    display: none;
}

.esplore-pdf-spinner-ring {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(147, 197, 253, .28);
    border-top-color: #60a5fa;
    border-right-color: #34d399;
    border-radius: 50%;
    animation: esplore-pdf-spin .8s linear infinite;
}

@keyframes esplore-pdf-spin {
    to { transform: rotate(360deg); }
}

.esplore-reader-stage iframe {
    width: 100%;
    min-height: 74vh;
    border: 0;
    background: #fff;
    border-radius: 8px
}

.esplore-reader-status {
    min-height: 28px;
    padding: 0 16px 14px;
    color: var(--esc-muted);
    font-size: .92rem;
    text-align: center;
    background: #020617
}

.esplore-reader-ebook .esplore-reader-stage {
    background: linear-gradient(135deg,#1f2937,#020617);
    padding: 28px
}

.esplore-reader-ebook .esplore-reader-page-control select {
    background: #fff;
    color: #0b1f5b;
    border-color: #b8c7e6;
}

.esplore-reader-ebook canvas {
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0,0,0,.55), 16px 0 24px rgba(0,0,0,.22);
}

.esplore-reader-infographic .esplore-reader-toolbar {
    justify-content: flex-end
}

.esplore-reader-infographic .esplore-reader-stage {
    min-height: 78vh;
    padding: 0;
    display: block;
    background: #020617
}

.esplore-reader-infographic canvas {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none
}

.esplore-reader-infographic iframe {
    width: 100%;
    min-height: 78vh;
    display: block;
    border-radius: 0;
    background: #fff
}

.esplore-reader:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0
}

.esplore-reader:fullscreen .esplore-reader-stage {
    height: calc(100vh - 92px);
    min-height: 0
}

.esplore-reader:fullscreen canvas {
    max-height: calc(100vh - 130px);
    width: auto
}

.esplore-reader:fullscreen iframe {
    min-height: calc(100vh - 120px)
}

.esplore-reader-infographic:fullscreen .esplore-reader-stage {
    height: calc(100vh - 74px);
    min-height: 0;
    overflow: auto
}

.esplore-reader-infographic:fullscreen iframe {
    min-height: calc(100vh - 74px)
}

.esplore-reader-infographic:fullscreen canvas {
    width: 100%;
    max-height: none;
    height: auto
}

.esplore-audio-player {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg,rgba(59,130,246,.18),rgba(15,23,42,.98))
}

.esplore-audio-cover {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.10);
    font-size: 42px;
    border: 1px solid var(--esc-border)
}

.esplore-audio-info {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.esplore-audio-info strong {
    font-size: 1.15rem
}

.esplore-audio-info span {
    color: var(--esc-muted)
}

.esplore-audio-info audio {
    width: 100%;
    padding: 0;
    background: transparent
}

.esplore-podcast-embed iframe {
    min-height: 220px
}

.esplore-revvo-player iframe {
    min-height: 560px
}

@media (max-width: 700px) {
    .esplore-reader-toolbar {
        align-items:stretch
    }

    .esplore-reader-btn,.esplore-reader-toolbar .esplore-btn-secondary {
        flex: 1 1 auto
    }

    .esplore-reader-page-control {
        width: 100%;
        justify-content: center
    }

    .esplore-reader-stage {
        min-height: 420px;
        padding: 10px
    }

    .esplore-reader-infographic .esplore-reader-stage {
        padding: 0
    }

    .esplore-audio-player {
        grid-template-columns: 1fr
    }

    .esplore-audio-cover {
        width: 76px;
        height: 76px;
        border-radius: 18px
    }

    .esplore-revvo-player iframe {
        min-height: 420px
    }
}

/* v031 catalog refactor: Netflix-like carousel and stable filters */
.esplore-catalog-wrap {
    overflow: hidden
}

.esplore-filters {
    position: relative;
    z-index: 8
}

.esplore-search {
    min-width: 260px
}

.esplore-filter-combo {
    position: relative;
    min-width: 0
}

.esplore-filter-combo-trigger {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--esc-border);
    background: rgba(15,23,42,.92);
    color: var(--esc-text);
    border-radius: 14px;
    padding: 13px 42px 13px 15px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    position: relative
}

.esplore-filter-combo-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.esplore-filter-combo-trigger::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,.72);
    border-bottom: 2px solid rgba(255,255,255,.72);
    transform: rotate(45deg);
    position: absolute;
    right: 16px;
    top: 16px;
    transition: transform .18s ease
}

.esplore-filter-combo.is-open .esplore-filter-combo-trigger::after {
    transform: rotate(225deg);
    top: 20px
}

.esplore-filter-combo-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    border: 1px solid var(--esc-border);
    border-radius: 16px;
    background: #0b1220;
    box-shadow: 0 18px 36px rgba(0,0,0,.36);
    padding: 12px
}

.esplore-filter-combo-panel[hidden] {
    display: none !important
}

.esplore-filter-combo-search {
    margin-bottom: 10px
}

.esplore-filter-combo-options {
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
    padding-right: 2px
}

.esplore-filter-combo-option {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: var(--esc-text);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: .18s ease
}

.esplore-filter-combo-option:hover,
.esplore-filter-combo-option.is-active {
    background: rgba(59,130,246,.18);
    border-color: rgba(147,197,253,.32)
}

.esplore-rows {
    display: block
}

.esplore-row {
    position: relative;
    margin: 0 0 36px;
    overflow: visible
}

.esplore-row-header {
    padding-right: 16px
}

.esplore-carousel-shell {
    position: relative;
    margin-left: -4px;
    margin-right: -4px;
    isolation: isolate;
    overflow: visible
}

.esplore-carousel {
    display: flex!important;
    position: relative;
    z-index: 1;
    grid-auto-flow: unset!important;
    grid-auto-columns: unset!important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    padding: 6px 4px 28px;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.esplore-carousel::-webkit-scrollbar {
    display: none!important;
    width: 0!important;
    height: 0!important
}

.esplore-content-card {
    flex: 0 0 clamp(240px,19.2vw,300px);
    width: clamp(240px,19.2vw,300px);
    max-width: none!important;
    min-width: 0!important;
    scroll-snap-align: start;
    transition: transform .18s ease, filter .18s ease
}

.esplore-card-link:hover .esplore-content-card,.esplore-content-card:hover {
    transform: translateY(-3px)
}

.esplore-thumb {
    border-radius: 18px;
    aspect-ratio: 3/2
}

.esplore-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 40;
    width: 48px;
    height: 48px;
    margin-top: -14px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(.96);
    transition: opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease, visibility .18s ease;
    background: rgba(2,6,23,.74);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0,0,0,.28)
}

.esplore-carousel-shell.has-scroll .esplore-carousel-nav {
    display: flex
}

.esplore-carousel-shell:hover .esplore-carousel-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1)
}

.esplore-carousel-nav:hover {
    background: rgba(15,23,42,.92);
    border-color: rgba(255,255,255,.28)
}

.esplore-carousel-nav:disabled {
    opacity: 0!important;
    visibility: hidden;
    transform: translateY(-50%) scale(.92);
    pointer-events: none
}

.esplore-carousel-prev {
    left: 10px
}

.esplore-carousel-next {
    right: 10px
}

.esplore-carousel-prev::before,.esplore-carousel-next::before {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff
}

.esplore-carousel-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px
}

.esplore-carousel-next::before {
    transform: rotate(45deg);
    margin-right: 4px
}

.esplore-carousel-nav:focus-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    outline: 2px solid rgba(255,255,255,.52);
    outline-offset: 2px
}

.esplore-empty {
    padding: 34px;
    border: 1px solid var(--esc-border);
    border-radius: 22px;
    background: rgba(255,255,255,.05);
    color: var(--esc-muted)
}

@media (max-width: 900px) {
    .esplore-content-card {
        flex-basis: clamp(210px,58vw,280px);
        width: clamp(210px,58vw,280px)
    }

    .esplore-carousel {
        gap: 14px;
        padding-bottom: 24px
    }

    .esplore-carousel-nav {
        display: none!important
    }

    .esplore-search {
        min-width: 0
    }
}

.esplore-user-greeting {
    position: absolute;
    right: 28px;
    top: 24px;
    z-index: 6;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(2,6,23,.56);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(10px)
}

@media(max-width: 700px) {
    .esplore-user-greeting {
        right:14px;
        top: 14px;
        font-size: 13px
    }
}

/* v037 UX refinements */
.esplore-hero-compact {
    min-height: 300px;
    background: radial-gradient(circle at top left,rgba(59,130,246,.32),rgba(2,6,23,1) 55%)
}

.esplore-card-link-wrap {
    height: 100%
}

.esplore-content-card {
    position: relative;
    transform-origin: center bottom
}

.esplore-content-card:hover {
    z-index: 20;
    filter: brightness(1.06)
}

.esplore-content-card:hover .esplore-thumb {
    box-shadow: 0 22px 48px rgba(0,0,0,.58)
}

.esplore-content-card:hover .esplore-card-hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.esplore-card-hover {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 6;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: .2s ease
}

.esplore-card-action {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 9px 10px;
    background: #fff;
    color: #0f172a!important;
    text-align: center;
    text-decoration: none!important;
    font-weight: 800;
    font-size: .86rem;
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    cursor: pointer
}

.esplore-card-action.is-secondary {
    background: rgba(15,23,42,.82);
    color: #fff!important;
    border: 1px solid rgba(255,255,255,.22)
}

.esplore-type-badge {
    gap: 6px;
    font-size: .82rem;
    font-weight: 800;
    max-width: calc(100% - 58px)
}

.esplore-type-badge b {
    font-size: .75rem;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.esplore-type-badge.is-static {
    position: static;
    width: max-content;
    margin-bottom: 12px;
    background: rgba(59,130,246,.16)
}

.esplore-mini-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 5;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(37,99,235,.86);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.18)
}

.esplore-mini-badge-left {
    right: auto;
    left: 10px;
    background: rgba(245,158,11,.9);
    color: #111827
}

.esplore-card-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    overflow: hidden;
    margin: 9px 0 5px
}

.esplore-card-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#60a5fa,#22c55e)
}

.esplore-started-label {
    display: block;
    color: #93c5fd;
    font-size: .78rem;
    line-height: 1.2
}

.esplore-modal[hidden] {
    display: none!important
}

.esplore-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.esplore-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px)
}

.esplore-modal-card {
    position: relative;
    z-index: 2;
    width: min(920px,96vw);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 28px;
    background: #07111f;
    color: #fff;
    box-shadow: 0 32px 90px rgba(0,0,0,.72)
}

.esplore-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer
}

.esplore-modal-media {
    position: relative;
    height: min(360px,42vh);
    background: #020617;
    overflow: hidden
}

.esplore-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.esplore-modal-media-title {
    position: absolute;
    inset: auto 0 0;
    padding: clamp(24px, 5vw, 48px) 26px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.24) 22%, rgba(0,0,0,.82) 100%);
    color: #fff;
    pointer-events: none
}

.esplore-modal-media-title h2 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3.6vw, 2.7rem);
    line-height: 1.08;
    text-shadow: 0 2px 14px rgba(0,0,0,.4)
}

.esplore-modal-body {
    padding: 26px
}

.esplore-modal-body h2 {
    font-size: clamp(1.7rem,4vw,3rem);
    line-height: 1.05;
    margin: 0 0 14px
}

.esplore-modal-body p {
    color: #cbd5e1;
    font-size: 1.02rem;
    max-width: 760px
}

.esplore-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 14px 0 18px;
    color: #cbd5e1
}

.esplore-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px
}

.esplore-modal-open {
    overflow: hidden
}

.esplore-skeleton-row {
    display: flex;
    gap: 18px;
    overflow: hidden;
    padding: 80px 0 28px
}

.esplore-row-loading {
    margin-top: 10px
}

.esplore-loading-panel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--esc-muted);
    font-weight: 700;
    margin-bottom: -42px;
    padding: 12px 0
}

.esplore-spinner {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 3px solid rgba(255,255,255,.18);
    border-top-color: #bfdbfe;
    animation: esploreSpin .8s linear infinite
}

@keyframes esploreSpin {
    to {
        transform: rotate(360deg)
    }
}

.esplore-skeleton-card {
    flex: 0 0 clamp(230px,18.6vw,292px);
    height: 218px;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    padding: 12px;
    position: relative;
    overflow: hidden
}

.esplore-skeleton-card:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.10),transparent);
    transform: translateX(-100%);
    animation: esploreSkeleton 1.25s infinite
}

.esplore-skeleton-card span,.esplore-skeleton-card b,.esplore-skeleton-card i {
    display: block;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    position: relative
}

.esplore-skeleton-card span {
    height: 132px
}

.esplore-skeleton-card b {
    height: 18px;
    margin-top: 14px;
    width: 82%
}

.esplore-skeleton-card i {
    height: 12px;
    margin-top: 10px;
    width: 52%
}

@keyframes esploreSkeleton {
    to {
        transform: translateX(100%)
    }
}

.esplore-reader-toolbar {
    box-shadow: 0 12px 26px rgba(0,0,0,.22)
}

.esplore-reader-page-control strong {
    color: #fff
}

.esplore-reader-status {
    font-weight: 700
}

.esplore-reader-btn[data-reader-fullscreen] {
    background: rgba(59,130,246,.18);
    border-color: rgba(147,197,253,.34)
}

@media(max-width: 900px) {
    .esplore-card-hover {
        display:none
    }

    .esplore-content-card:hover {
        transform: none
    }

    .esplore-type-badge b {
        display: none
    }

    .esplore-mini-badge {
        font-size: .68rem
    }

    .esplore-modal {
        padding: 12px
    }

    .esplore-modal-card {
        border-radius: 20px
    }

    .esplore-modal-body {
        padding: 20px
    }

    .esplore-modal-media {
        height: 240px
    }

    .esplore-modal-media-title {
        padding: 34px 20px 18px
    }

    .esplore-filters {
        gap: 10px
    }

    .esplore-hero-compact {
        min-height: 270px
    }

    .esplore-skeleton-card {
        flex-basis: clamp(190px,54vw,260px)
    }
}

@media(max-width: 560px) {
    .esplore-modal-actions .esplore-btn,.esplore-modal-actions .esplore-btn-secondary {
        width:100%
    }

    .esplore-card-meta {
        align-items: center;
        flex-direction: row;
        gap: 10px
    }

    .esplore-rating {
        font-size: .82rem
    }

    .esplore-reader-toolbar {
        position: relative
    }

    .esplore-reader-btn[data-reader-fullscreen] {
        flex-basis: 100%
    }
}

/* ================================================================
   v0.4.0 â€” Autores nos cards, badges, modal de autor
   ================================================================ */
/* Avatares de autores no card */
.esplore-card-autores {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    margin-top: 10px;
}

.esplore-autor-avatar {
    width: 100%;
    min-height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(99,179,237,.28);
    background: rgba(59,130,246,.14);
    overflow: hidden;
    padding: 6px 10px;
    cursor: pointer;
    transition: border-color .18s, transform .18s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-shrink: 0;
    text-align: left;
}

.esplore-autor-avatar:hover {
    border-color: #60a5fa;
    transform: translateY(-1px);
    z-index: 2;
}

.esplore-autor-avatar-media {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    flex: 0 0 32px;
}

.esplore-autor-avatar img,
.esplore-autor-avatar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esplore-autor-ini {
    color: #93c5fd;
    font-weight: 800;
    font-size: .78rem;
    line-height: 1;
}

.esplore-autor-avatar-name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: #dbeafe;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VersÃ£o no modal de conteÃºdo (com nome visÃ­vel) */
.esplore-card-autores--modal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.esplore-card-autores--modal .esplore-autor-avatar {
    width: auto;
    min-height: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
}

.esplore-card-autores--modal .esplore-autor-avatar img,
.esplore-card-autores--modal .esplore-autor-avatar .esplore-autor-ini {
    width: 38px;
    height: 38px;
}

.esplore-card-autores--modal .esplore-autor-avatar img {
    border-radius: 50%;
    border-color: rgba(99,179,237,.7);
}

.esplore-card-autores--modal .esplore-autor-avatar .esplore-autor-ini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(59,130,246,.22);
}

.esplore-autor-nome {
    display: block;
    font-size: .72rem;
    color: #93c5fd;
    margin-top: 3px;
    text-align: center;
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esplore-modal-autores {
    margin: 14px 0;
}

.esplore-modal-autores strong {
    display: block;
    font-size: .82rem;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Badge de formato no card */
.esplore-formato-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(139,92,246,.22);
    border: 1px solid rgba(167,139,250,.35);
    color: #c4b5fd;
    font-size: .72rem;
    font-weight: 700;
    margin-top: 5px;
    margin-right: 4px;
}

.esplore-thumb-badges {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 20px);
}

.esplore-content-card .esplore-thumb-badges .esplore-mini-badge {
    position: static;
    background: var(--esplore-card-tag-color, #ff5b3f);
    border-color: var(--esplore-card-tag-color, #ff5b3f);
    color: #fff;
}

.esplore-content-card .esplore-thumb-badges .esplore-product-badge {
    background: var(--esplore-card-product-color, #ff5b3f);
    border-color: var(--esplore-card-product-color, #ff5b3f);
}

/* Tempo de leitura no card */
.esplore-tempo-leitura {
    display: inline-block;
    font-size: .72rem;
    color: #94a3b8;
}

.esplore-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: 6px;
}

/* Modal de autor */
.esplore-modal-autor-card {
    width: min(560px, 96vw);
    max-height: 80vh;
    padding: 0;
    overflow: hidden;
}

.esplore-autor-modal-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(7,17,31,1) 60%);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.esplore-autor-modal-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(99,179,237,.55);
    flex-shrink: 0;
}

.esplore-autor-modal-ini {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(59,130,246,.28);
    border: 3px solid rgba(99,179,237,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #93c5fd;
    flex-shrink: 0;
}

.esplore-autor-modal-header h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    line-height: 1.1;
}

.esplore-btn-sm {
    font-size: .82rem;
    padding: 7px 16px;
}

.esplore-autor-modal-desc {
    padding: 20px 28px 28px;
    color: #cbd5e1;
    font-size: .96rem;
    line-height: 1.65;
    overflow-y: auto;
    max-height: 240px;
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 100% !important;
    }
}
.header-content {
    display: none;
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding-right: 0;
    padding-left: 0;
}
/* ================================================================
   v0.4.1 — Layout shell com sidenav + página do autor
   ================================================================ */

/* --- Layout shell ------------------------------------------------ */
.esplore-layout-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.esplore-main-content {
  flex: 1;
  min-width: 0;
  transition: margin-left 0.28s ease;
}

/* --- Sidenav ---------------------------------------------------- */
.esplore-sidenav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 900;
  width: 56px;                   /* colapsado: só ícones */
  background: #020d1c;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(.4,0,.2,1);
}

.esplore-sidenav.is-expanded {
  width: 240px;
}

/* Desloca conteúdo principal */
.has-sidenav .esplore-main-content {
  margin-left: 56px;
  transition: margin-left 0.28s cubic-bezier(.4,0,.2,1);
}
.has-sidenav .esplore-sidenav.is-expanded ~ .esplore-main-content,
.has-sidenav:has(.esplore-sidenav.is-expanded) .esplore-main-content {
  margin-left: 240px;
}

/* Burger */
.esplore-sidenav-burger {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}
.esplore-sidenav-burger:hover {
  background: rgba(255,255,255,.07);
}

.esplore-burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.esplore-burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #94a3b8;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, width 0.2s;
}
.esplore-sidenav.is-expanded .esplore-burger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.esplore-sidenav.is-expanded .esplore-burger-icon span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.esplore-sidenav.is-expanded .esplore-burger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Conteúdo do sidenav (módulo Joomla) */
.esplore-sidenav-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

/* Estilos para o módulo de menu dentro do sidenav */
.esplore-sidenav-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.esplore-sidenav-content li {
  margin: 0;
}

.esplore-sidenav-content a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.esplore-sidenav-content a:hover,
.esplore-sidenav-content a.active,
.esplore-sidenav-content li.active > a {
  background: rgba(59,130,246,.18);
  color: #93c5fd;
}

/* Ícones do menu (span.icon-*) */
.esplore-sidenav-content .menu-icon,
.esplore-sidenav-content [class*="icon-"],
.esplore-sidenav-content .fa {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

/* Texto do item de menu — oculto quando colapsado */
.esplore-sidenav-content .menu-title,
.esplore-sidenav-content a > span:last-child {
  opacity: 1;
  transition: opacity 0.18s;
}
.esplore-sidenav:not(.is-expanded) .esplore-sidenav-content .menu-title,
.esplore-sidenav:not(.is-expanded) .esplore-sidenav-content a > span:last-child {
  opacity: 0;
  pointer-events: none;
}

/* Tooltip ao passar o mouse quando colapsado */
.esplore-sidenav:not(.is-expanded) .esplore-sidenav-content a {
  position: relative;
}
.esplore-sidenav:not(.is-expanded) .esplore-sidenav-content a:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: .82rem;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.12);
  z-index: 9999;
}

/* Mobile: sidenav como drawer por cima */
@media (max-width: 900px), (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .esplore-sidenav {
    transform: translateX(-100%);
    width: 240px;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  }
  .esplore-sidenav.is-expanded {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,.6);
  }
  .has-sidenav .esplore-main-content,
  .has-sidenav:has(.esplore-sidenav.is-expanded) .esplore-main-content {
    margin-left: 0 !important;
  }
  .esplore-sidenav-burger {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 901;
    background: rgba(2,13,28,.85);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
  }
}

/* --- Página do autor --------------------------------------------- */
.esplore-autor-page-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 48px 32px 32px;
  background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(2,6,23,1) 60%);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.esplore-autor-page-foto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99,179,237,.55);
  flex-shrink: 0;
}

.esplore-autor-page-ini {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(59,130,246,.28);
  border: 3px solid rgba(99,179,237,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #93c5fd;
  flex-shrink: 0;
}

.esplore-autor-page-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 12px;
  line-height: 1.1;
  color: #f1f5f9;
}

.esplore-autor-page-desc {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 700px;
}

.esplore-autor-page-items {
  padding: 32px;
}

.esplore-autor-page-items h2 {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0 0 20px;
  font-weight: 600;
}

.esplore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(230px, 18.6vw, 292px), 1fr));
  gap: 20px;
}

.esplore-grid .esplore-content-card {
  flex-basis: auto;
  width: auto;
}

@media (max-width: 700px) {
  .esplore-autor-page-header {
    flex-direction: column;
    padding: 32px 20px 24px;
  }
  .esplore-autor-page-items {
    padding: 20px;
  }
  .esplore-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

/* ================================================================
   v0.4.4 — Sidenav subitens accordion
   ================================================================ */

/* Seta indicadora de submenu */
.esplore-sub-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
  opacity: 0.6;
}
.esplore-sub-arrow::after {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  color: currentColor;
  display: block;
  transition: transform 0.22s ease;
}
.esplore-sidenav:not(.is-expanded) .esplore-sub-arrow {
  display: none;
}
li.esplore-sub-open > a .esplore-sub-arrow::after {
  transform: rotate(90deg);
}

/* Submenu list */
.esplore-sidenav-content .mod-menu__sub,
.esplore-sidenav-content li.parent > ul,
.esplore-sidenav-content li.deeper > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: rgba(0,0,0,.18);
  border-radius: 0 0 10px 10px;
}

/* Itens do submenu */
.esplore-sidenav-content .mod-menu__sub a,
.esplore-sidenav-content li.parent > ul a,
.esplore-sidenav-content li.deeper > ul a {
  padding: 9px 16px 9px 36px;
  font-size: .83rem;
  color: #64748b;
  border-radius: 8px;
  margin: 1px 6px;
  transition: background 0.15s, color 0.15s;
}

.esplore-sidenav-content .mod-menu__sub a:hover,
.esplore-sidenav-content li.parent > ul a:hover,
.esplore-sidenav-content li.parent > ul li.active > a,
.esplore-sidenav-content li.parent > ul li.current > a {
  background: rgba(59,130,246,.12);
  color: #7dd3fc;
}

/* Item pai com submenu aberto — destaque sutil */
.esplore-sidenav-content li.esplore-sub-open > a {
  background: rgba(59,130,246,.14);
  color: #93c5fd;
  border-radius: 10px 10px 0 0;
}

/* Ocultar texto dos subitens quando colapsado */
.esplore-sidenav:not(.is-expanded) .esplore-sidenav-content .mod-menu__sub,
.esplore-sidenav:not(.is-expanded) .esplore-sidenav-content li.parent > ul {
  display: none;
}

/* ================================================================
   v0.4.48 - Tema editorial claro inspirado na identidade Dasa Educa
   ================================================================ */
.esplore-conteudos-app {
  --esc-bg: #ffffff;
  --esc-card: #ffffff;
  --esc-card-2: #f4f7fb;
  --esc-text: #00164f;
  --esc-muted: #5e6c84;
  --esc-accent: #0b43ff;
  --esc-coral: #ff4f3a;
  --esc-sky: #9edfff;
  --esc-border: #dbe3ef;
  background: var(--esc-bg);
  color: var(--esc-text);
}

.esplore-main-content,
.esplore-content-page {
  background: #ffffff;
}

.esplore-catalog-wrap {
  padding: 36px 36px 56px;
}

.esplore-loading,
.esplore-empty {
  color: var(--esc-muted);
}

.esplore-hero {
  min-height: 340px;
  background-color: var(--esc-text);
}

.esplore-hero-slide {
  padding: 40px;
}

.esplore-hero .esplore-hero-content,
.esplore-content-hero .esplore-content-hero-inner {
  color: #ffffff;
}

.esplore-hero h1,
.esplore-content-hero h1 {
  color: #ffffff;
  font-size: 3rem;
}

.esplore-hero p,
.esplore-content-hero p {
  color: rgba(255,255,255,.88);
}

.esplore-eyebrow,
.esplore-back {
  color: var(--esc-sky)!important;
}

.esplore-hero .esplore-btn,
.esplore-content-hero .esplore-btn {
  background: var(--esc-coral);
  color: #ffffff!important;
  border-radius: 5px;
  box-shadow: none;
}

.esplore-hero .esplore-btn:hover,
.esplore-content-hero .esplore-btn:hover {
  background: #e8412f;
  box-shadow: 0 8px 18px rgba(0,22,79,.18);
}

.esplore-hero-dots button {
  background: rgba(255,255,255,.52);
}

.esplore-hero-dots button.is-active {
  background: var(--esc-coral);
}

.esplore-user-greeting {
  background: rgba(0,22,79,.82);
  border-color: rgba(255,255,255,.36);
  color: #ffffff;
}

.esplore-hero-compact {
  min-height: 250px;
  background: #f4f8ff;
  border-bottom: 1px solid var(--esc-border);
}

.esplore-hero-compact .esplore-hero-overlay {
  display: none;
}

.esplore-hero-compact .esplore-hero-content,
.esplore-hero-compact h1 {
  color: var(--esc-text);
}

.esplore-hero-compact p {
  color: var(--esc-muted);
}

.esplore-hero-compact .esplore-eyebrow {
  color: var(--esc-accent)!important;
}

.esplore-btn {
  background: var(--esc-accent);
  color: #ffffff!important;
  border-radius: 5px;
}

.esplore-btn-secondary {
  background: var(--esplore-color-secondary-button-background, #ffffff);
  color: var(--esplore-color-secondary-button-text, var(--esc-text))!important;
  border: 1px solid var(--esplore-color-secondary-button-border, #aebbd0);
  border-radius: 5px;
}

.esplore-btn:hover,
.esplore-btn-secondary:hover {
  box-shadow: 0 7px 18px rgba(0,22,79,.14);
}

.esplore-filters {
  grid-template-columns: minmax(240px,1.35fr) repeat(3,minmax(180px,1fr));
  gap: 12px;
  margin: 0 0 42px;
  padding: 0;
}

.esplore-filters input,
.esplore-filters select,
.esplore-filter-combo-trigger {
  min-height: 48px;
  border: 1px solid #b9c5d7;
  background: #ffffff;
  color: var(--esc-text);
  border-radius: 5px;
  box-shadow: none;
}

.esplore-filters input:hover,
.esplore-filters select:hover,
.esplore-filter-combo-trigger:hover {
  border-color: #7283a0;
}

.esplore-filters input:focus,
.esplore-filters select:focus,
.esplore-filter-combo-trigger:focus-visible {
  border-color: var(--esc-accent);
  box-shadow: 0 0 0 3px rgba(11,67,255,.12);
}

.esplore-filters input::placeholder,
.esplore-filter-combo-search::placeholder {
  color: #68768d;
}

.esplore-filter-combo-trigger::after {
  border-right-color: var(--esc-text);
  border-bottom-color: var(--esc-text);
}

.esplore-filter-combo-panel {
  border-color: var(--esc-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0,22,79,.16);
}

.esplore-filter-combo-option {
  border-radius: 4px;
  background: #ffffff;
  color: var(--esc-text);
}

.esplore-filter-combo-option:hover,
.esplore-filter-combo-option.is-active {
  background: #edf3ff;
  border-color: #b9ccff;
  color: var(--esc-accent);
}

.esplore-row {
  margin-bottom: 48px;
}

.esplore-row-header {
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--esc-border);
}

.esplore-row-header h2 {
  color: var(--esc-text);
  font-size: 1.3rem;
  font-weight: 800;
}

.esplore-row-header span,
.esplore-autor-page-items h2 {
  color: var(--esc-muted);
}

.esplore-carousel {
  gap: 22px;
  padding: 4px 4px 22px;
}

.esplore-content-card {
  flex: 0 0 300px;
  width: 300px;
  filter: none;
  transform: none;
}

.esplore-card-link-wrap {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--esc-border);
  border-radius: 7px;
  background: #ffffff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.esplore-content-card:hover,
.esplore-card-link:hover .esplore-content-card {
  filter: none;
  transform: none;
}

.esplore-content-card:hover .esplore-card-link-wrap {
  border-color: #9ab3ee;
  box-shadow: 0 10px 26px rgba(0,22,79,.12);
}

.esplore-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px 6px 0 0;
  background: #eef3fa;
  box-shadow: none;
}

.esplore-content-card:hover .esplore-thumb {
  box-shadow: none;
}

.esplore-card-link:hover .esplore-thumb img {
  transform: none;
}

.esplore-fav {
  background: rgba(255,255,255,.94);
  border-color: rgba(0,22,79,.18);
  color: var(--esc-text);
  box-shadow: 0 4px 12px rgba(0,22,79,.14);
  backdrop-filter: none;
}

.esplore-fav:hover,
.esplore-fav.is-active {
  background: var(--esc-coral);
  border-color: var(--esc-coral);
  color: #ffffff;
}

.esplore-mini-badge {
  border-radius: 4px;
  background: var(--esc-accent);
  border-color: var(--esc-accent);
}

.esplore-mini-badge-left {
  background: var(--esc-coral);
  border-color: var(--esc-coral);
  color: #ffffff;
}

.esplore-card-body {
  padding: 15px 14px 14px;
}

.esplore-card-body h3 {
  min-height: 2.6em;
  margin-bottom: 10px;
  color: var(--esc-text);
  font-size: .96rem;
  line-height: 1.3;
}

.esplore-card-meta {
  color: var(--esc-muted);
}

.esplore-tempo-leitura {
  color: #65728a;
}

.esplore-card-details {
  gap: 7px 10px;
}

.esplore-rating {
  color: #e09200;
}

.esplore-formato-badge {
  border-radius: 4px;
  background: #eaf7ff;
  border-color: #b7def4;
  color: #005a8d;
}

.esplore-card-autores {
  padding-top: 9px;
  border-top: 1px solid #edf1f6;
}

.esplore-autor-avatar {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: #f5f8fc;
  padding: 5px 7px;
}

.esplore-autor-avatar:hover {
  border-color: transparent;
  background: #edf3ff;
  transform: none;
}

.esplore-autor-avatar-media {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  background: #dfe8f5;
}

.esplore-autor-ini {
  color: var(--esc-accent);
}

.esplore-autor-avatar-name {
  color: var(--esc-text);
  font-size: .75rem;
}

.esplore-card-progress {
  background: #dfe6f1;
}

.esplore-card-progress span {
  background: var(--esc-accent);
}

.esplore-started-label {
  color: #335da8;
}

.esplore-card-hover {
  left: 8px;
  right: 8px;
  bottom: 50px;
}

.esplore-card-action {
  border-radius: 4px;
  background: var(--esc-accent);
  color: #ffffff!important;
  box-shadow: 0 6px 16px rgba(0,22,79,.2);
}

.esplore-card-action.is-secondary {
  background: #ffffff;
  color: var(--esc-text)!important;
  border-color: #c7d1df;
}

.esplore-carousel-nav {
  width: 44px;
  height: 44px;
  border-color: var(--esc-text);
  background: var(--esc-text);
  box-shadow: 0 8px 22px rgba(0,22,79,.24);
  backdrop-filter: none;
}

.esplore-carousel-nav:hover {
  border-color: var(--esc-accent);
  background: var(--esc-accent);
}

.esplore-empty {
  border-color: var(--esc-border);
  border-radius: 6px;
  background: #f7f9fc;
}

.esplore-skeleton-card {
  flex-basis: 300px;
  width: 300px;
  height: 400px;
  border: 1px solid var(--esc-border);
  border-radius: 7px;
  background: #ffffff;
}

.esplore-skeleton-card span,
.esplore-skeleton-card b,
.esplore-skeleton-card i {
  background: #e7ecf3;
}

.esplore-skeleton-card span {
  height: 290px;
}

.esplore-skeleton-card:before {
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);
}

.esplore-loading-panel {
  color: var(--esc-muted);
}

.esplore-spinner {
  border-color: #dce4ef;
  border-top-color: var(--esc-accent);
}

.esplore-modal-card,
.esplore-auth-dialog {
  border-color: var(--esc-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--esc-text);
  box-shadow: 0 28px 70px rgba(0,22,79,.24);
}

.esplore-modal-body p,
.esplore-modal-meta,
.esplore-auth-dialog p {
  color: var(--esc-muted);
}

.esplore-modal-close,
.esplore-auth-close {
  background: var(--esc-text);
  color: #ffffff;
}

.esplore-auth-fields label {
  color: var(--esc-text);
}

.esplore-auth-fields input {
  border-color: #b9c5d7;
  background: #ffffff;
  color: var(--esc-text);
}

.esplore-auth-fields input:focus {
  border-color: var(--esc-accent);
  box-shadow: 0 0 0 3px rgba(11,67,255,.12);
}

.esplore-login-gate,
.esplore-landing-placeholder,
.esplore-full-description,
.esplore-rating-box {
  border-color: var(--esc-border);
  border-radius: 7px;
  background: #f7f9fc;
  color: var(--esc-text);
}

.esplore-auth-eyebrow {
  color: var(--esc-accent);
}

.esplore-rating-actions button {
  color: #c7d0df;
}

.esplore-rating-actions button:hover,
.esplore-rating-actions button.is-active {
  color: #e09200;
}

.esplore-autor-page-header {
  background: #f4f8ff;
  border-bottom-color: var(--esc-border);
}

.esplore-autor-page-info h1 {
  color: var(--esc-text);
}

.esplore-autor-page-desc {
  color: var(--esc-muted);
}

.esplore-autor-page-foto,
.esplore-autor-page-ini {
  border-color: #8fb1ff;
}

.esplore-grid {
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 22px;
}

.esplore-grid .esplore-content-card {
  width: 300px;
}

.esplore-autor-modal-header {
  background: #f4f8ff;
  border-bottom-color: var(--esc-border);
}

.esplore-modal-autores strong,
.esplore-autor-nome {
  color: var(--esc-muted);
}

.esplore-category-pills span,
.esplore-tag-pills span {
  border-color: rgba(255,255,255,.32);
  background: rgba(0,22,79,.62);
  color: #ffffff;
}

.esplore-content-main {
  color: var(--esc-text);
}

.esplore-nam-box {
  margin-top: 30px;
  padding: 32px;
  border-left: 7px solid var(--esplore-color-content-footer-border, var(--esc-coral));
  background: var(--esplore-color-content-footer-background, #00164f);
  color: var(--esplore-color-content-footer-text, #ffffff);
}

.esplore-nam-box h2 {
  max-width: 920px;
  margin: 0;
  color: var(--esplore-color-content-footer-text, #ffffff);
  font-size: 1.65rem;
  line-height: 1.28;
}

.esplore-nam-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 24px;
}

.esplore-nam-contact {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--esplore-color-content-footer-text, #ffffff);
  font-size: 1.08rem;
}

.esplore-nam-contact strong {
  color: var(--esplore-color-content-footer-link, var(--esc-sky));
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.esplore-nam-contact a {
  color: var(--esplore-color-content-footer-link, #ffffff)!important;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.esplore-nam-contact a:hover {
  color: var(--esplore-color-content-footer-link, var(--esc-sky))!important;
}

.esplore-sidenav {
  background: #00164f;
  border-right-color: rgba(255,255,255,.12);
}

.esplore-sidenav-content a:hover,
.esplore-sidenav-content a.active,
.esplore-sidenav-content li.active > a {
  background: rgba(158,223,255,.16);
  color: var(--esc-sky);
}

.esplore-sidenav-content .mod-menu__sub a:hover,
.esplore-sidenav-content li.parent > ul a:hover,
.esplore-sidenav-content li.parent > ul li.active > a,
.esplore-sidenav-content li.parent > ul li.current > a {
  color: var(--esc-sky);
}

/* Reader controls need contrast against the dark reader toolbar. */
.esplore-reader-toolbar .esplore-reader-btn,
.esplore-reader-toolbar .esplore-btn-secondary {
  min-height: 42px;
  background: #ffffff;
  color: #00164f !important;
  border-color: rgba(255,255,255,.86);
  box-shadow: none;
}

.esplore-reader-toolbar .esplore-reader-btn[data-reader-fullscreen] {
  background: #1556c7;
  color: #ffffff !important;
  border-color: #7fb0ff;
}

.esplore-reader-toolbar .esplore-reader-btn:hover,
.esplore-reader-toolbar .esplore-btn-secondary:hover {
  background: #eaf4ff;
  color: #00164f !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.2);
}

.esplore-reader-toolbar .esplore-reader-btn[data-reader-fullscreen]:hover {
  background: #0e439f;
  color: #ffffff !important;
}

/* Keep the favorite action visually separate from the tag list in the hero. */
.esplore-content-hero .esplore-content-actions {
  margin: 22px 0 24px;
}

.esplore-content-hero .esplore-content-actions .esplore-btn-secondary {
  min-height: 44px;
  padding: 10px 18px;
  background: #ffffff;
  color: #00164f !important;
  border-color: #c3d0e3;
  box-shadow: 0 5px 14px rgba(0,16,65,.2);
}

.esplore-content-hero .esplore-content-actions .esplore-btn-secondary:hover {
  background: #eaf4ff;
  color: #00164f !important;
}

.esplore-content-hero .esplore-content-actions .esplore-btn-secondary.is-active {
  background: #e5efff;
  color: #00164f !important;
  border-color: #77a0e8;
}

/* Card tags replace the visual featured label; the featured field still controls its carousel. */
.esplore-content-card .esplore-thumb {
  aspect-ratio: 3 / 2;
}

.esplore-card-loading-spinner {
  display: none;
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, .48);
  border-top-color: var(--esplore-color-secondary, #00a982);
  border-radius: 50%;
  animation: esplore-mobile-spinner-rotate .72s linear infinite;
  pointer-events: none;
}

.esplore-content-card.is-opening {
  pointer-events: none;
  opacity: .82;
}

.esplore-content-card.is-opening .esplore-thumb::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--esplore-color-dark, #102a25) 40%, transparent);
}

.esplore-content-card.is-opening .esplore-card-loading-spinner {
  display: block;
}

.esplore-content-card .esplore-fav {
  left: 10px;
  right: auto;
  line-height: normal;
}

.esplore-content-card {
  flex: 0 0 350px;
  width: 350px;
  filter: none;
  transform: none;
}

.esplore-auth-quick-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--esc-accent);
  background: #f4f8ff;
  color: var(--esc-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.esplore-modal-autor-card {
  width: min(760px, 96vw);
  min-height: 400px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.esplore-modal-autor-card .esplore-autor-modal-header {
  padding: 32px 36px 24px;
}

.esplore-modal-autor-card .esplore-autor-modal-header h2 {
  color: #00164f;
}

.esplore-modal-autor-card .esplore-autor-modal-desc {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: none;
  padding: 28px 36px 36px;
  color: #17233c;
  font-size: 1rem;
  line-height: 1.7;
  overflow-y: auto;
}

/* ================================================================
   Cientifique-se theme and content-type hero controls
   The variables below are populated from Component > Options > Appearance.
   ================================================================ */
.esplore-conteudos-app {
  --esc-bg: var(--esplore-color-background, #f4faf7);
  --esc-card: var(--esplore-color-surface, #ffffff);
  --esc-card-2: var(--esplore-color-background, #f4faf7);
  --esc-text: var(--esplore-color-text, #12221d);
  --esc-muted: var(--esplore-color-muted, #5d746b);
  --esc-accent: var(--esplore-color-primary, #007a5a);
  --esc-coral: var(--esplore-color-secondary, #00a982);
  --esc-sky: var(--esplore-color-secondary, #00a982);
  --esc-border: var(--esplore-color-border, #c8ddd4);
}

/* Scrollbar discreta e consistente nas telas do componente. */
.esplore-conteudos-app,
.esplore-conteudos-app *,
html:has(.esplore-conteudos-app),
body:has(.esplore-conteudos-app) {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--esplore-color-secondary, #00a982) 58%, transparent) transparent;
}

.esplore-conteudos-app::-webkit-scrollbar,
.esplore-conteudos-app *::-webkit-scrollbar,
html:has(.esplore-conteudos-app)::-webkit-scrollbar,
body:has(.esplore-conteudos-app)::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.esplore-conteudos-app::-webkit-scrollbar-track,
.esplore-conteudos-app *::-webkit-scrollbar-track,
html:has(.esplore-conteudos-app)::-webkit-scrollbar-track,
body:has(.esplore-conteudos-app)::-webkit-scrollbar-track {
  background: transparent;
}

.esplore-conteudos-app::-webkit-scrollbar-thumb,
.esplore-conteudos-app *::-webkit-scrollbar-thumb,
html:has(.esplore-conteudos-app)::-webkit-scrollbar-thumb,
body:has(.esplore-conteudos-app)::-webkit-scrollbar-thumb {
  min-height: 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--esplore-color-secondary, #00a982) 58%, transparent);
  background-clip: padding-box;
}

.esplore-conteudos-app::-webkit-scrollbar-thumb:hover,
.esplore-conteudos-app *::-webkit-scrollbar-thumb:hover,
html:has(.esplore-conteudos-app)::-webkit-scrollbar-thumb:hover,
body:has(.esplore-conteudos-app)::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--esplore-color-primary, #007a5a) 78%, transparent);
}

.esplore-main-content,
.esplore-content-page {
  background: var(--esc-bg);
}

.esplore-card-link-wrap,
.esplore-skeleton-card,
.esplore-modal-card,
.esplore-auth-dialog,
.esplore-filter-combo-panel,
.esplore-filter-combo-option,
.esplore-filters input,
.esplore-filters select,
.esplore-filter-combo-trigger,
.esplore-auth-fields input {
  background: var(--esc-card);
  border-color: var(--esc-border);
}

.esplore-thumb,
.esplore-autor-avatar,
.esplore-empty,
.esplore-login-gate,
.esplore-landing-placeholder,
.esplore-full-description,
.esplore-rating-box {
  background: var(--esc-card-2);
}

.esplore-tempo-leitura,
.esplore-started-label,
.esplore-modal-body p,
.esplore-modal-meta,
.esplore-auth-dialog p {
  color: var(--esc-muted);
}

.esplore-formato-badge {
  background: color-mix(in srgb, var(--esc-accent) 10%, var(--esc-card));
  border-color: color-mix(in srgb, var(--esc-accent) 28%, var(--esc-border));
  color: var(--esc-accent);
}

.esplore-btn,
.esplore-card-action,
.esplore-mini-badge,
.esplore-card-progress span {
  background: var(--esc-accent);
}

.esplore-btn:hover,
.esplore-carousel-nav:hover {
  background: var(--esplore-color-dark, #102a25);
}

.esplore-content-card:hover .esplore-card-link-wrap,
.esplore-filters input:focus,
.esplore-filters select:focus,
.esplore-filter-combo-trigger:focus-visible {
  border-color: var(--esc-accent);
}

.esplore-filter-combo-option:hover,
.esplore-filter-combo-option.is-active,
.esplore-autor-avatar:hover {
  background: color-mix(in srgb, var(--esc-accent) 10%, var(--esc-card));
  border-color: color-mix(in srgb, var(--esc-accent) 30%, var(--esc-border));
  color: var(--esc-accent);
}

.esplore-sidenav,
.esplore-carousel-nav {
  background: var(--esplore-color-dark, #102a25);
}

/* The type page keeps both search and all existing filters over the banner. */
.esplore-tipo-hero {
  min-height: 550px;
  /* The filter panels extend past the banner. Keep them clickable above the
     catalog below instead of clipping them at the hero boundary. */
  overflow: visible;
  z-index: 20;
}

.esplore-tipo-hero .esplore-hero-slide {
  padding: 58px clamp(24px, 4vw, 72px) 286px;
  align-items: flex-start;
}

.esplore-tipo-hero:not(.esplore-hero-slider) > .esplore-hero-content {
  align-self: flex-start;
  margin: 58px clamp(24px, 4vw, 72px) 286px;
}

.esplore-tipo-hero .esplore-hero-content {
  max-width: 680px;
}

.esplore-tipo-hero .esplore-hero-content h1 {
  font-size: clamp(2.15rem, 3.6vw, 4rem);
}

.esplore-user-greeting {
  z-index: 7;
  padding: 0;
  background: color-mix(in srgb, var(--esplore-color-dark, #102a25) 82%, transparent);
  border-color: color-mix(in srgb, var(--esplore-color-surface, #fff) 36%, transparent);
  color: var(--esplore-color-surface, #fff);
  overflow: visible;
}

.esplore-user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.esplore-user-menu-chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.esplore-user-greeting.is-open .esplore-user-menu-chevron,
.esplore-user-greeting:hover .esplore-user-menu-chevron,
.esplore-user-greeting:focus-within .esplore-user-menu-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.esplore-user-menu-panel {
  position: absolute;
  /* No gap: the pointer can travel from the greeting to its menu. */
  top: 100%;
  right: 0;
  z-index: 9;
  display: none;
  min-width: 132px;
  padding: 6px;
  border: 1px solid var(--esplore-color-border, #c8ddd4);
  border-radius: 7px;
  background: var(--esplore-color-surface, #fff);
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}

.esplore-user-greeting:hover .esplore-user-menu-panel,
.esplore-user-greeting:focus-within .esplore-user-menu-panel,
.esplore-user-greeting.is-open .esplore-user-menu-panel {
  display: block;
}

.esplore-user-menu-item {
  width: 100%;
  min-height: 38px !important;
  padding: 9px 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--esc-text);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.esplore-user-menu-item:hover,
.esplore-user-menu-item:focus-visible {
  background: color-mix(in srgb, var(--esc-accent) 10%, var(--esc-card));
  color: var(--esc-accent);
}

/* The dialog background is light in the current theme, so the former
   light-red message was unreadable. Keep both feedback states high contrast. */
.esplore-auth-message {
  border-color: var(--esc-border);
  background: color-mix(in srgb, var(--esplore-color-dark, #102a25) 9%, var(--esc-card));
  color: var(--esc-text);
}

.esplore-auth-message.is-success {
  border-color: color-mix(in srgb, var(--esc-accent) 42%, var(--esc-border));
  background: color-mix(in srgb, var(--esc-accent) 12%, var(--esc-card));
  color: var(--esc-text);
}

.esplore-nam-box-custom .esplore-nam-custom-content {
  color: var(--esplore-color-content-footer-text, #fff);
}

.esplore-nam-box-custom .esplore-nam-custom-content > :first-child { margin-top: 0; }
.esplore-nam-box-custom .esplore-nam-custom-content > :last-child { margin-bottom: 0; }
.esplore-nam-box-custom .esplore-nam-custom-content a {
  color: var(--esplore-color-content-footer-link, var(--esplore-color-secondary, #00a982));
  text-decoration-color: currentColor;
}

.esplore-hero-filters {
  position: absolute;
  z-index: 30;
  left: clamp(24px, 4vw, 72px);
  right: clamp(24px, 4vw, 72px);
  bottom: 52px;
}

.esplore-tipo-hero .esplore-filters {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  z-index: 31;
}

.esplore-tipo-hero .esplore-search {
  grid-column: span 3;
}

.esplore-tipo-hero .esplore-filters input,
.esplore-tipo-hero .esplore-filter-combo-trigger {
  min-height: 58px;
  border-color: rgba(255,255,255,.54);
  background: rgba(8, 45, 33, .72);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
}

.esplore-tipo-hero .esplore-filters input::placeholder {
  color: rgba(255,255,255,.8);
}

.esplore-tipo-hero .esplore-filter-combo-trigger::after {
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.esplore-tipo-hero .esplore-filter-combo-panel {
  background: var(--esc-card);
  border-color: var(--esc-border);
}

.esplore-tipo-hero .esplore-filter-combo-option {
  background: var(--esc-card);
  color: var(--esc-text);
}

.esplore-tipo-hero .esplore-hero-dots {
  bottom: 18px;
}

@media (max-width: 1100px) {
  .esplore-tipo-hero { min-height: 550px; }
  .esplore-tipo-hero .esplore-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .esplore-tipo-hero .esplore-search { grid-column: span 3; }
}

@media (max-width: 700px) {
  .esplore-tipo-hero { min-height: 860px; }
  .esplore-tipo-hero .esplore-hero-slide { padding-bottom: 460px; }
  .esplore-tipo-hero:not(.esplore-hero-slider) > .esplore-hero-content { margin-bottom: 460px; }
  .esplore-tipo-hero .esplore-filters { grid-template-columns: 1fr; }
  .esplore-tipo-hero .esplore-search { grid-column: auto; }
  .esplore-hero-filters { bottom: 34px; }
}

@media (max-width: 900px) {
  .esplore-catalog-wrap {
    padding: 24px 18px 40px;
  }

  .esplore-filters {
    grid-template-columns: 1fr;
    margin: 0 0 32px;
  }

  .esplore-content-card {
    flex-basis: 300px;
    width: 300px;
  }

  .esplore-hero,
  .esplore-content-hero {
    min-height: 300px;
  }

  .esplore-hero h1,
  .esplore-content-hero h1 {
    font-size: 2rem;
  }

  .esplore-hero-slide {
    padding: 30px 22px;
  }

  .esplore-nam-box {
    padding: 26px 22px;
  }

  .esplore-modal-autor-card .esplore-autor-modal-header {
    padding: 26px 24px 20px;
  }

  .esplore-modal-autor-card .esplore-autor-modal-desc {
    min-height: 180px;
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .esplore-content-card {
    flex-basis: 300px;
    width: 300px;
  }

  .esplore-card-body {
    padding: 13px 12px;
  }

  .esplore-grid {
    grid-template-columns: repeat(auto-fill, 300px);
    gap: 14px;
  }

  .esplore-grid .esplore-content-card {
    width: 300px;
  }

  .esplore-row-header {
    align-items: flex-start;
  }

  .esplore-nam-box h2 {
    font-size: 1.3rem;
  }

  .esplore-nam-contacts {
    flex-direction: column;
    gap: 12px;
  }

  .esplore-nam-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

/* Keep the type-page banner layout intact after the generic mobile rules. */
@media (max-width: 900px) {
  .esplore-hero.esplore-tipo-hero { min-height: 760px; }
  .esplore-hero.esplore-tipo-hero .esplore-hero-slide { padding: 46px 28px 340px; }
  .esplore-tipo-hero .esplore-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .esplore-tipo-hero .esplore-search { grid-column: span 3; }
}

@media (max-width: 700px) {
  .esplore-hero.esplore-tipo-hero { min-height: 860px; }
  .esplore-hero.esplore-tipo-hero .esplore-hero-slide { padding-bottom: 460px; }
  .esplore-tipo-hero .esplore-filters { grid-template-columns: 1fr; }
  .esplore-tipo-hero .esplore-search { grid-column: auto; }
}

/* Content view: derive reader and hero accents from Component > Appearance. */
.esplore-content-hero .esplore-category-pills span,
.esplore-content-hero .esplore-tag-pills span {
  border-color: color-mix(in srgb, var(--esplore-color-surface, #fff) 42%, transparent);
  background: color-mix(in srgb, var(--esplore-color-dark, #102a25) 82%, transparent);
  color: var(--esplore-color-surface, #fff);
}

.esplore-reader {
  background: var(--esplore-color-dark, #102a25);
  border-color: color-mix(in srgb, var(--esplore-color-secondary, #00a982) 30%, var(--esc-border));
}

.esplore-reader-toolbar,
.esplore-reader-status {
  background: color-mix(in srgb, var(--esplore-color-dark, #102a25) 92%, #000);
}

.esplore-reader-stage,
.esplore-reader-ebook .esplore-reader-stage,
.esplore-reader-infographic .esplore-reader-stage {
  background: color-mix(in srgb, var(--esplore-color-dark, #102a25) 86%, #000);
}

.esplore-reader-toolbar .esplore-reader-btn,
.esplore-reader-toolbar .esplore-btn-secondary {
  background: var(--esplore-color-surface, #fff);
  color: var(--esplore-color-dark, #102a25) !important;
  border-color: color-mix(in srgb, var(--esplore-color-surface, #fff) 86%, transparent);
}

.esplore-reader-toolbar .esplore-reader-btn[data-reader-fullscreen] {
  background: var(--esplore-color-primary, #007a5a);
  color: var(--esplore-color-surface, #fff) !important;
  border-color: var(--esplore-color-secondary, #00a982);
}

.esplore-reader-toolbar .esplore-reader-btn[data-reader-fullscreen]:hover {
  background: var(--esplore-color-secondary, #00a982);
  color: var(--esplore-color-dark, #102a25) !important;
}

.esplore-content-hero .esplore-content-actions .esplore-btn-secondary,
.esplore-content-hero .esplore-content-actions .esplore-btn-secondary.is-active,
.esplore-content-hero .esplore-content-actions .esplore-btn-secondary:hover {
  border-color: color-mix(in srgb, var(--esplore-color-primary, #007a5a) 42%, var(--esc-border));
  background: color-mix(in srgb, var(--esplore-color-primary, #007a5a) 12%, var(--esplore-color-surface, #fff));
  color: var(--esplore-color-dark, #102a25) !important;
}

/* Advanced appearance controls from Component > Options > Appearance. */
.esplore-hero:not(.esplore-tipo-hero) {
  min-height: var(--esplore-hero-min-height, 340px);
}

.esplore-user-menu-toggle {
  color: var(--esplore-color-user-menu-text, inherit);
}

.esplore-back {
  color: var(--esplore-color-back-link, #00a982) !important;
}

.esplore-catalog-wrap .esplore-card-action.is-secondary {
  background: var(--esplore-color-card-secondary-action-background, #fff);
}

.esplore-fav {
  background: color-mix(in srgb, var(--esplore-color-favorite-background, #fff) 94%, transparent);
  border-color: color-mix(in srgb, var(--esplore-color-favorite-border, #00164f) 18%, transparent);
  color: var(--esplore-color-favorite-icon, var(--esc-text));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--esplore-color-favorite-shadow, #00164f) 14%, transparent);
}

.esplore-content-hero .esplore-content-actions .esplore-btn-secondary,
.esplore-content-hero .esplore-content-actions .esplore-btn-secondary.is-active,
.esplore-content-hero .esplore-content-actions .esplore-btn-secondary:hover {
  border-color: var(--esplore-color-content-action-border, #74a596);
  background: var(--esplore-color-content-action-background, #e0f0eb);
  color: var(--esplore-color-content-action-text, #102a25) !important;
}

.esplore-content-hero .esplore-category-pills span,
.esplore-content-hero .esplore-tag-pills span {
  border-color: color-mix(in srgb, var(--esplore-color-hero-pill-border, #fff) 42%, transparent);
  background: color-mix(in srgb, var(--esplore-color-hero-pill-background, #102a25) 82%, transparent);
  color: var(--esplore-color-hero-pill-text, #fff);
}

.esplore-modal-close,
.esplore-auth-close {
  background: var(--esplore-color-modal-close-background, #12221d);
  color: var(--esplore-color-modal-close-text, #fff);
}

/* Mídias complementares exibidas nos cards do catálogo. Os cinco ícones
   permanecem estáveis para explicar os formatos disponíveis; somente a
   aparência muda de acordo com a habilitação no conteúdo. */
.esplore-card-resources {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--esc-border) 72%, transparent);
}

.esplore-card-resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--esc-border);
  border-radius: 10px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.esplore-card-resource svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.esplore-card-resource.is-enabled {
  background: color-mix(in srgb, var(--esc-accent) 13%, var(--esc-card));
  border-color: color-mix(in srgb, var(--esc-accent) 48%, var(--esc-border));
  color: var(--esc-accent);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--esc-accent) 14%, transparent);
}

.esplore-card-resource.is-disabled {
  background: color-mix(in srgb, var(--esc-muted) 5%, var(--esc-card));
  color: color-mix(in srgb, var(--esc-muted) 52%, var(--esc-border));
  opacity: .68;
}

.esplore-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navegação e modais dos recursos complementares na página do conteúdo. */
.esplore-resource-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 10px;
  border: 1px solid var(--esc-border);
  border-radius: 16px;
  background: var(--esc-card);
  box-shadow: 0 8px 24px rgba(16, 42, 37, .06);
}

.esplore-resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--esc-border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--esc-card-2) 54%, var(--esc-card));
  color: var(--esc-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.esplore-resource-button svg,
.esplore-resource-audio-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.esplore-resource-button:hover,
.esplore-resource-button:focus-visible {
  border-color: var(--esc-accent);
  color: var(--esc-accent);
  transform: translateY(-1px);
}

.esplore-resource-button.is-active {
  border-color: var(--esc-accent);
  background: var(--esc-accent);
  color: var(--esplore-color-surface, #fff);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--esc-accent) 28%, transparent);
}

.esplore-resource-modal[hidden] {
  display: none !important;
}

.esplore-resource-modal {
  position: fixed;
  z-index: 100100;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 20px;
}

.esplore-resource-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 15, 11, .84);
  backdrop-filter: blur(7px);
}

.esplore-resource-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1440px, 100%);
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--esplore-color-surface, #fff) 35%, transparent);
  border-radius: 18px;
  overflow: hidden;
  background: var(--esplore-color-dark, #102a25);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.esplore-resource-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 12px 18px 12px 24px;
  background: var(--esplore-color-dark, #102a25);
  color: var(--esplore-color-surface, #fff);
}

.esplore-resource-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.esplore-resource-modal-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--esplore-color-surface, #fff) 40%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--esplore-color-surface, #fff);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.esplore-resource-modal-close:hover,
.esplore-resource-modal-close:focus-visible {
  background: var(--esc-accent);
  border-color: var(--esc-accent);
}

.esplore-resource-modal-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

.esplore-resource-modal-content iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.esplore-mobile-spinner {
  position: fixed;
  z-index: 100200;
  inset: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--esplore-color-dark, #102a25) 26%, transparent);
  pointer-events: none;
}

.esplore-mobile-spinner span {
  width: 42px;
  height: 42px;
  border: 3px solid color-mix(in srgb, var(--esplore-color-surface, #fff) 38%, transparent);
  border-top-color: var(--esplore-color-secondary, #00a982);
  border-radius: 50%;
  animation: esplore-mobile-spinner-rotate .72s linear infinite;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

@keyframes esplore-mobile-spinner-rotate {
  to { transform: rotate(360deg); }
}

@media (pointer: coarse) {
  .esplore-resource-modal [data-reader-fullscreen] { display: none !important; }
}

@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .esplore-resource-modal { padding: 0; }
  .esplore-resource-modal-dialog { width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .esplore-resource-modal-header { display: none; }
  .esplore-resource-modal-content { flex: 1 1 auto; min-height: 0; }
  .esplore-resource-modal-content iframe { flex: 1 1 auto; height: 100%; }
}

.esplore-resource-audio {
  width: min(680px, 100%);
  margin: auto;
  padding: clamp(28px, 5vw, 68px);
  color: var(--esplore-color-surface, #fff);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .78);
}

.esplore-resource-modal-podcast {
  background-image: linear-gradient(90deg, rgba(3, 13, 11, .82), rgba(3, 13, 11, .48)), var(--esplore-podcast-background);
  background-size: cover;
  background-position: center;
}

.esplore-resource-modal-podcast .esplore-resource-audio {
  background: radial-gradient(circle at center, rgba(3, 13, 11, .2), rgba(3, 13, 11, .65));
}

.esplore-resource-audio-icon {
  display: inline-grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: var(--esc-accent);
  color: var(--esplore-color-surface, #fff);
}

.esplore-resource-audio-icon svg {
  width: 36px;
  height: 36px;
}

.esplore-resource-audio h2 { margin: 22px 0 6px; color: inherit; }
.esplore-resource-audio p { margin: 0 0 28px; opacity: .75; }
.esplore-resource-audio audio { width: 100%; }

.esplore-ai-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  width: 100%;
  min-height: 0;
}

.esplore-ai-chat-reader {
  min-height: 0;
  background: #172019;
}

.esplore-ai-chat-reader .esplore-reader {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.esplore-ai-chat-reader .esplore-reader-stage {
  min-height: 0;
  flex: 1 1 auto;
}

.esplore-ai-chat-reader .esplore-reader-stage canvas {
  max-height: none;
}

.esplore-ai-chat-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: var(--esc-card);
  color: var(--esc-text);
}

.esplore-ai-chat-panel > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--esc-border);
}

.esplore-ai-chat-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--esc-accent);
  color: var(--esplore-color-surface, #fff);
}

.esplore-ai-chat-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.esplore-ai-chat-panel h3 { margin: 0; font-size: 1.05rem; }
.esplore-ai-chat-panel header p { margin: 3px 0 0; color: var(--esc-muted); font-size: .83rem; }

.esplore-ai-chat-messages {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
  background: color-mix(in srgb, var(--esc-card-2) 72%, var(--esc-card));
}

.esplore-ai-chat-message {
  max-width: 90%;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: .93rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.esplore-ai-chat-message.is-assistant {
  align-self: flex-start;
  border: 1px solid var(--esc-border);
  background: var(--esc-card);
  color: var(--esc-text);
}

.esplore-ai-chat-message.is-user {
  align-self: flex-end;
  background: var(--esc-accent);
  color: var(--esplore-color-surface, #fff);
}

.esplore-ai-chat-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 14px;
  border-top: 1px solid var(--esc-border);
  background: var(--esc-card);
}

.esplore-ai-chat-form textarea {
  min-height: 46px;
  flex: 1 1 auto;
  resize: vertical;
  border: 1px solid var(--esc-border);
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--esc-card);
  color: var(--esc-text);
  font: inherit;
}

.esplore-ai-chat-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--esc-accent) 44%, transparent); outline-offset: 1px; }
.esplore-ai-chat-form .esplore-btn { min-height: 46px; padding: 10px 14px; }

@media (max-width: 700px) {
  .esplore-resource-navigation { gap: 8px; padding: 8px; }
  .esplore-resource-button { flex: 1 1 calc(50% - 8px); padding: 9px 10px; }
  .esplore-resource-modal { padding: 0; }
  .esplore-resource-modal-dialog { width: 100%; border: 0; border-radius: 0; }
  .esplore-ai-chat-layout { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 45vh) minmax(360px, 1fr); overflow-y: auto; }
  .esplore-ai-chat-panel { min-height: 360px; }
  .esplore-ai-chat-form { align-items: stretch; flex-direction: column; }
  .esplore-ai-chat-form .esplore-btn { width: 100%; }
}

/* Advanced colours for media modals, reader navigation and podcast title. */
.esplore-resource-modal-header h2 {
  color: var(--esplore-color-resource-modal-title, #fff);
}

.esplore-resource-modal-close {
  color: var(--esplore-color-resource-modal-close, #fff);
}

.esplore-reader-toolbar .esplore-reader-btn[data-reader-prev],
.esplore-reader-toolbar .esplore-reader-btn[data-reader-next],
.esplore-reader-toolbar .esplore-reader-btn[data-reader-prev]:hover,
.esplore-reader-toolbar .esplore-reader-btn[data-reader-next]:hover {
  background: var(--esplore-color-reader-navigation-background, #fff);
  border-color: var(--esplore-color-reader-navigation-border, #fff);
  color: var(--esplore-color-reader-navigation-text, #102a25) !important;
}

.esplore-resource-audio h2 {
  color: var(--esplore-color-podcast-title, #fff);
}

/* Navigation and search disclosures are only needed on narrow screens. */
.esplore-filter-toggle,
.esplore-sidenav-mobile-toggle,
.esplore-sidenav-backdrop { display: none; }
.esplore-filter-disclosure { min-width: 0; }
.esplore-content-mobile-navigation { display: none; }
.esplore-catalog-wrap { overflow: visible; }
.esplore-catalog-wrap > .esplore-filter-disclosure { position: relative; z-index: 8; margin-top: -25px; }
.esplore-catalog-wrap > .esplore-filter-disclosure .esplore-filters { margin-top: 0; }

@media (max-width: 900px), (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .esplore-content-mobile-navigation { display: contents; }
  .esplore-sidenav-burger { display: none; }
  .esplore-sidenav-mobile-toggle {
    display: grid;
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    z-index: 903;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--esplore-color-surface, #fff) 30%, transparent);
    border-radius: 10px;
    background: var(--esplore-color-dark, #102a25);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    cursor: pointer;
  }
  .esplore-sidenav-mobile-toggle { color: var(--esc-text) !important; }
  .esplore-sidenav-mobile-toggle .esplore-burger-icon span { background: currentColor !important; }
  .esplore-sidenav-mobile-toggle[aria-expanded="true"] .esplore-burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .esplore-sidenav-mobile-toggle[aria-expanded="true"] .esplore-burger-icon span:nth-child(2) { opacity: 0; }
  .esplore-sidenav-mobile-toggle[aria-expanded="true"] .esplore-burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .esplore-sidenav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 899;
    width: 100%;
    border: 0;
    background: rgba(0,0,0,.58);
  }
  .esplore-sidenav.is-expanded { z-index: 902; }
  .esplore-sidenav.is-expanded .esplore-sidenav-content { padding-top: max(72px, calc(env(safe-area-inset-top) + 60px)); }
  .esplore-sidenav:not(.is-expanded) { visibility: hidden; }
}

@media (max-width: 700px), (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .esplore-catalog-wrap > .esplore-filter-disclosure { margin-top: -34px; margin-bottom: 28px; }
  .esplore-filter-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    border: 1px solid var(--esc-border);
    border-radius: 9px;
    background: var(--esplore-color-dark, #102a25);
    color: var(--esc-text) !important;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }
  .esplore-filter-toggle-icon { display: flex; flex-direction: column; gap: 4px; width: 19px; }
  .esplore-filter-toggle-icon span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor !important; }
  .esplore-filter-disclosure [data-filter-panel][hidden] { display: none !important; }
  .esplore-filter-disclosure.is-open .esplore-filters { margin-top: 12px; }
  .esplore-hero.esplore-tipo-hero { min-height: 550px; }
  .esplore-hero.esplore-tipo-hero .esplore-hero-slide { padding-bottom: 100px; }
  .esplore-tipo-hero:not(.esplore-hero-slider) > .esplore-hero-content { margin-bottom: 100px; }
  .esplore-hero.esplore-tipo-hero.is-filters-open { min-height: 860px; }
  .esplore-hero.esplore-tipo-hero.is-filters-open .esplore-hero-slide { padding-bottom: 460px; }
  .esplore-tipo-hero.is-filters-open:not(.esplore-hero-slider) > .esplore-hero-content { margin-bottom: 460px; }
  .esplore-tipo-hero .esplore-filters { grid-template-columns: minmax(0, 1fr); }
  .esplore-hero-filters { left: 18px; right: 18px; bottom: 34px; }
  .esplore-filters, .esplore-search, .esplore-filter-combo, .esplore-main-content, .esplore-catalog-wrap { min-width: 0; max-width: 100%; }
  .esplore-search { width: 100%; }
  .esplore-conteudo-app .esplore-back {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-left: 64px;
  }
  .esplore-reader-ebook .esplore-reader-toolbar { display: flex; flex-wrap: nowrap; gap: 8px; }
  .esplore-reader-ebook .esplore-reader-toolbar > :not([data-reader-prev]):not([data-reader-next]) { display: none !important; }
  .esplore-reader-ebook .esplore-reader-toolbar [data-reader-prev],
  .esplore-reader-ebook .esplore-reader-toolbar [data-reader-next] { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
  .esplore-reader-toolbar [data-reader-fullscreen] { display: none !important; }
}

@media (max-width: 560px) {
  .esplore-grid { grid-template-columns: minmax(0, 1fr); }
  .esplore-grid .esplore-content-card { width: min(300px, 100%); }
  .esplore-content-card { width: min(300px, 100%); flex-basis: min(300px, calc(100vw - 36px)); }
}

html:has(.esplore-conteudos-app),
body:has(.esplore-conteudos-app) { overflow-x: clip; }

.esplore-studio-landscape-controls[hidden] { display: none !important; }
.esplore-studio-landscape-controls:not([hidden]) { display: none !important; }
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .esplore-studio-landscape-controls:not([hidden]) {
    display: flex !important;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    padding: 6px 12px max(6px, env(safe-area-inset-bottom));
    background: rgba(0,0,0,.88);
  }
  .esplore-studio-landscape-controls button {
    min-width: 52px;
    min-height: 48px;
    border: 1px solid color-mix(in srgb, var(--esc-text) 55%, transparent);
    border-radius: 9px;
    background: var(--esplore-color-dark, #102a25);
    color: var(--esc-text) !important;
    font-size: 1.4rem;
    touch-action: manipulation;
    cursor: pointer;
  }
  .esplore-studio-landscape-controls button:disabled { opacity: .45; }
}

/* No retrato, use apenas os controles nativos do Esplore Studio. */
@media (orientation: portrait) {
  .esplore-studio-landscape-controls:not([hidden]) { display: none !important; }
}

/* Navegação inferior do PDF fora da tela cheia e zoom acessível em fullscreen. */
.esplore-reader-toolbar-bottom {
  position: static;
  top: auto;
  border-top: 1px solid var(--esc-border);
  border-bottom: 0;
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .16);
}

.esplore-reader:fullscreen .esplore-reader-toolbar-bottom {
  display: none !important;
}

.esplore-reader:fullscreen .esplore-reader-stage {
  justify-content: flex-start;
  overflow: auto;
}

.esplore-reader:fullscreen .esplore-reader-stage canvas {
  flex: 0 0 auto;
  max-width: none !important;
  max-height: none !important;
  margin-inline: auto;
}

.esplore-reader [data-reader-zoom-out],
.esplore-reader [data-reader-zoom-in] {
  display: none !important;
}

.esplore-reader:fullscreen [data-reader-zoom-out],
.esplore-reader:fullscreen [data-reader-zoom-in] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.esplore-resource-modal-flashcards {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 36px);
  background: var(--esplore-color-background, #f4faf7);
}

.esplore-flashcards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.esplore-flashcard {
  min-width: 0;
  min-height: 360px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--esplore-color-text, #12221d);
  text-align: left;
  cursor: pointer;
  perspective: 1200px;
  -webkit-tap-highlight-color: transparent;
}

.esplore-flashcard:focus-visible {
  outline: 3px solid var(--esplore-color-secondary, #00a982);
  outline-offset: 3px;
}

.esplore-flashcard-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 360px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.esplore-flashcard.is-flipped .esplore-flashcard-inner {
  transform: rotateY(180deg);
}

.esplore-flashcard-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--esplore-color-border, #c8ddd4);
  border-radius: 18px;
  background: var(--esplore-color-surface, #fff);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  color: var(--esplore-color-text, #12221d);
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-y: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.esplore-flashcard-back {
  transform: rotateY(180deg);
  border-color: color-mix(in srgb, var(--esplore-color-primary, #007a5a) 45%, var(--esplore-color-border, #c8ddd4));
  background: color-mix(in srgb, var(--esplore-color-primary, #007a5a) 9%, var(--esplore-color-surface, #fff));
}

.esplore-flashcard-number {
  color: var(--esplore-color-secondary, #00a982);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.esplore-flashcard-face > span:nth-child(2) {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
}

.esplore-flashcard-face small {
  margin-top: auto;
  color: var(--esplore-color-muted, #5d746b);
  font-size: .82rem;
}

@media (max-width: 700px) {
  .esplore-resource-modal-flashcards { padding: 16px; }
  .esplore-flashcards-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .esplore-flashcards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Player do infográfico: imagem, narração e trilha de fundo do projeto Studio. */
.esplore-resource-modal-infographic { min-height: 0; }
.esplore-infographic-player {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  color: #fff;
  background: #000;
}
.esplore-infographic-stage {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
}
.esplore-infographic-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.esplore-infographic-controls {
  flex: 0 0 auto;
  padding: 12px 18px 16px;
  background: #0b1714;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.esplore-infographic-player audio { display: none; }
.esplore-infographic-seek-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.esplore-infographic-seek-row input { flex: 1 1 auto; min-width: 0; accent-color: var(--esplore-color-secondary, #00a982); }
.esplore-infographic-button-row { display: flex; justify-content: center; gap: 10px; }
.esplore-infographic-button-row button {
  min-width: 46px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: #101820;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.esplore-infographic-button-row button:disabled { opacity: .45; cursor: not-allowed; }
.esplore-infographic-player:fullscreen { width: 100vw; height: 100vh; background: #000; }
.esplore-infographic-player:fullscreen .esplore-infographic-stage { flex: 1 1 auto; }
@media (max-width: 700px) {
  .esplore-infographic-stage { padding: 10px; }
  .esplore-infographic-controls { padding: 10px 12px 12px; }
  .esplore-infographic-seek-row { gap: 8px; font-size: .85rem; }
  .esplore-infographic-button-row button { min-height: 40px; }
}
