/**
 * Estilos base dos widgets no frontend.
 *
 * Deliberadamente contido: define estrutura (grid, espaçamento, proporções)
 * e deixa tipografia e cores para o tema herdar sempre que possível. O CSS
 * gerado por página, vindo dos controles, entra depois deste arquivo e vence
 * quando o usuário definiu algo explicitamente.
 */

.wpep-content {
    --wpep-gap: 24px;
    --wpep-radius: 8px;
    --wpep-accent: currentColor;
    --wpep-muted: rgba(0, 0, 0, .6);
    --wpep-border: rgba(0, 0, 0, .12);
    --wpep-surface: rgba(0, 0, 0, .03);
}

.wpep-content > .wpep-el + .wpep-el {
    margin-top: var(--wpep-gap);
}

/* ══════════ LAYOUT ══════════ */

.wpep-section {
    position: relative;
}

.wpep-section-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wpep-gap);
    width: 100%;
    margin-inline: auto;
}

.wpep-layout-boxed  { max-width: 1140px; }
.wpep-layout-narrow { max-width: 720px; }
.wpep-layout-full   { max-width: none; }

.wpep-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}

.wpep-column > .wpep-el + .wpep-el {
    margin-top: 16px;
}

/* Colunas empilham no celular — regra que evita layout quebrado por padrão */
@media (max-width: 767px) {
    .wpep-section-inner {
        flex-direction: column;
    }
    .wpep-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Visibilidade responsiva */

@media (min-width: 1025px) {
    .wpep-hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .wpep-hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
    .wpep-hide-mobile { display: none !important; }
}

/* ══════════ TEXTO ══════════ */

.wpep-heading {
    margin-block: 0 .4em;
}

.wpep-text > *:first-child { margin-top: 0; }
.wpep-text > *:last-child  { margin-bottom: 0; }

.wpep-has-dropcap > p:first-of-type::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: .82;
    font-weight: 700;
    margin: .04em .1em 0 0;
}

/* ══════════ BOTÕES ══════════ */

.wpep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--wpep-radius);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}

.wpep-btn:hover { transform: translateY(-1px); }
.wpep-btn:active { transform: translateY(0); }

.wpep-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.wpep-btn-primary {
    background: #4f46e5;
    color: #fff;
}

.wpep-btn-primary:hover { background: #4338ca; color: #fff; }

.wpep-btn-secondary {
    background: var(--wpep-surface);
    color: inherit;
    border-color: var(--wpep-border);
}

.wpep-btn-outline {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.wpep-btn-ghost {
    background: transparent;
    color: inherit;
}

.wpep-btn-ghost:hover { background: var(--wpep-surface); }

.wpep-btn-sm { padding: 8px 16px; font-size: .875em; }
.wpep-btn-lg { padding: 15px 32px; font-size: 1.05em; }

.wpep-btn-block { display: flex; width: 100%; }

/* ══════════ LISTAS ══════════ */

.wpep-list { margin: 0; padding-left: 1.4em; }

.wpep-list-none { list-style: none; padding-left: 0; }

.wpep-list-check,
.wpep-list-arrow {
    list-style: none;
    padding-left: 0;
}

.wpep-list-check li,
.wpep-list-arrow li {
    position: relative;
    padding-left: 1.7em;
}

.wpep-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #16a34a;
}

.wpep-list-arrow li::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: .6;
}

/* ══════════ DIVISOR / ESPAÇADOR ══════════ */

.wpep-divider {
    border: 0;
    border-top: 1px solid var(--wpep-border);
    margin-inline: auto;
}

.wpep-divider-dashed { border-top-style: dashed; }
.wpep-divider-dotted { border-top-style: dotted; }
.wpep-divider-double { border-top-style: double; border-top-width: 3px; }

.wpep-divider-stars {
    text-align: center;
    letter-spacing: .8em;
    opacity: .4;
    border: 0;
}

.wpep-spacer { width: 100%; }

/* ══════════ IMAGEM ══════════ */

.wpep-image,
.wpep-el img {
    max-width: 100%;
    height: auto;
}

.wpep-image { display: block; }

figure.wpep-image,
.wpep-el figure {
    margin: 0;
}

.wpep-image-caption,
.wpep-video-caption {
    margin-top: 8px;
    font-size: .875em;
    color: var(--wpep-muted);
    line-height: 1.5;
}

.wpep-align-center { text-align: center; }
.wpep-align-center img { margin-inline: auto; }
.wpep-align-right  { text-align: right; }
.wpep-align-right img { margin-left: auto; }

/* ══════════ GALERIA ══════════ */

.wpep-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wpep-gallery-item { margin: 0; }

.wpep-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--wpep-radius);
    display: block;
}

.wpep-gallery-item figcaption {
    margin-top: 6px;
    font-size: .8125em;
    color: var(--wpep-muted);
}

@media (max-width: 767px) {
    .wpep-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══════════ VÍDEO ══════════ */

.wpep-video-frame {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--wpep-radius);
    overflow: hidden;
}

.wpep-ratio-16-9 { aspect-ratio: 16 / 9; }
.wpep-ratio-4-3  { aspect-ratio: 4 / 3; }
.wpep-ratio-1-1  { aspect-ratio: 1 / 1; }
.wpep-ratio-21-9 { aspect-ratio: 21 / 9; }

.wpep-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Fachada: capa clicável que só carrega o player no clique */

.wpep-video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    display: block;
}

.wpep-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
    transition: opacity .2s;
}

.wpep-video-facade:hover .wpep-video-poster { opacity: 1; }

.wpep-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, .75);
    border-radius: 12px;
    transition: background .2s;
}

.wpep-video-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}

.wpep-video-facade:hover .wpep-video-play { background: #e62117; }

.wpep-video-facade:focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: -3px;
}

/* ══════════ HERO ══════════ */

.wpep-hero {
    position: relative;
    overflow: hidden;
}

.wpep-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpep-hero-mode-side {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.wpep-hero-mode-side .wpep-hero-media,
.wpep-hero-mode-side .wpep-hero-text { flex: 1 1 0; min-width: 0; }

.wpep-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wpep-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpep-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
}

.wpep-hero-title  { margin: 0; }
.wpep-hero-kicker {
    margin: 0;
    font-size: .8125em;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .75;
}

.wpep-hero-subtitle {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.6;
    opacity: .85;
}

.wpep-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 0;
}

.wpep-align-center .wpep-hero-actions,
.wpep-hero-text[style*="center"] .wpep-hero-actions { justify-content: center; }

.wpep-hero-image { border-radius: var(--wpep-radius); }

@media (max-width: 767px) {
    .wpep-hero-mode-side { flex-direction: column; gap: 24px; }
}

/* ══════════ CABEÇALHO DE ARTIGO ══════════ */

.wpep-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .875em;
    color: var(--wpep-muted);
}

.wpep-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.wpep-author-avatar {
    border-radius: 50%;
    width: 26px;
    height: 26px;
}

.wpep-meta-sep { opacity: .5; }

.wpep-article-meta a { color: inherit; }

/* ══════════ CITAÇÃO ══════════ */

.wpep-quote {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.6;
}

.wpep-quote p { margin: 0; }

.wpep-quote-border {
    padding-left: 20px;
    border-left: 4px solid var(--wpep-accent);
}

.wpep-quote-quote {
    position: relative;
    padding-top: 32px;
    text-align: center;
}

.wpep-quote-quote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4em;
    line-height: 1;
    opacity: .18;
}

.wpep-quote-card {
    padding: 24px;
    background: var(--wpep-surface);
    border-radius: var(--wpep-radius);
}

.wpep-quote-caption {
    margin-top: 12px;
    font-size: .8125em;
    color: var(--wpep-muted);
    font-style: normal;
}

.wpep-quote-caption cite { font-style: normal; }

/* ══════════ DESTAQUE ══════════ */

.wpep-callout {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-left: 4px solid;
    border-radius: var(--wpep-radius);
    background: var(--wpep-surface);
}

.wpep-callout-info    { border-left-color: #3b82f6; background: rgba(59, 130, 246, .08); }
.wpep-callout-success { border-left-color: #16a34a; background: rgba(22, 163, 74, .08); }
.wpep-callout-warning { border-left-color: #d97706; background: rgba(217, 119, 6, .08); }
.wpep-callout-danger  { border-left-color: #dc2626; background: rgba(220, 38, 38, .08); }
.wpep-callout-tip     { border-left-color: #8b5cf6; background: rgba(139, 92, 246, .08); }

.wpep-callout-icon { font-size: 1.15em; line-height: 1.5; flex-shrink: 0; }

.wpep-callout-body { flex: 1; min-width: 0; }
.wpep-callout-body > *:first-child { margin-top: 0; }
.wpep-callout-body > *:last-child  { margin-bottom: 0; }

.wpep-callout-title { margin: 0 0 4px; }

/* ══════════ CARTÕES ══════════ */

.wpep-cards-heading { margin-top: 0; }

.wpep-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wpep-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    overflow: hidden;
    background: var(--wpep-surface);
    transition: transform .18s, box-shadow .18s;
}

.wpep-card-linked:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.wpep-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.wpep-card-body { padding: 18px; flex: 1; }

.wpep-card-title { margin: 0 0 8px; font-size: 1.1em; }
.wpep-card-desc  { margin: 0; color: var(--wpep-muted); line-height: 1.55; }
.wpep-card-cta   { margin: 12px 0 0; font-weight: 600; }

/* Cartão inteiro clicável mantendo um único link real */
.wpep-card-linked .wpep-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.wpep-card-title a { text-decoration: none; color: inherit; }

@media (max-width: 900px) {
    .wpep-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ══════════ FAQ ══════════ */

.wpep-faq-heading { margin-top: 0; }

.wpep-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpep-faq-item {
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    overflow: hidden;
}

.wpep-faq-question {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.wpep-faq-question::-webkit-details-marker { display: none; }

.wpep-faq-question::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    line-height: 1;
    opacity: .5;
    transition: transform .2s;
}

.wpep-faq-item[open] .wpep-faq-question::after {
    content: "−";
}

.wpep-faq-question:hover { background: var(--wpep-surface); }

.wpep-faq-question:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

.wpep-faq-answer {
    padding: 0 18px 16px;
}

.wpep-faq-answer > *:first-child { margin-top: 0; }
.wpep-faq-answer > *:last-child  { margin-bottom: 0; }

/* ══════════ PASSO A PASSO ══════════ */

.wpep-howto-heading { margin-top: 0; }
.wpep-howto-intro   { color: var(--wpep-muted); }

.wpep-howto-steps {
    list-style: none;
    counter-reset: wpep-step;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wpep-howto-step {
    counter-increment: wpep-step;
    position: relative;
    padding-left: 52px;
}

.wpep-howto-step::before {
    content: counter(wpep-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    font-size: .95em;
}

.wpep-howto-step-title { margin: 4px 0 8px; font-size: 1.05em; }

.wpep-howto-step-figure { margin: 12px 0 0; }

.wpep-howto-step-image {
    border-radius: var(--wpep-radius);
    max-width: 100%;
    height: auto;
}

/* ══════════ SUMÁRIO ══════════ */

.wpep-toc {
    padding: 18px 20px;
    background: var(--wpep-surface);
    border-radius: var(--wpep-radius);
    border: 1px solid var(--wpep-border);
}

.wpep-toc-heading {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: .95em;
    cursor: pointer;
}

.wpep-toc-list {
    margin: 0;
    padding-left: 1.3em;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpep-toc-list ul,
.wpep-toc-list ol { padding-left: 1.2em; }

.wpep-toc-level-3 { margin-left: 16px; font-size: .9375em; }
.wpep-toc-level-4 { margin-left: 32px; font-size: .9375em; opacity: .85; }

.wpep-toc a { text-decoration: none; }
.wpep-toc a:hover { text-decoration: underline; }

/* Cabeçalhos alvo de âncora não ficam sob o cabeçalho fixo do tema */
.wpep-content [id] { scroll-margin-top: 90px; }

/* ══════════ TRILHA ══════════ */

.wpep-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .875em;
    color: var(--wpep-muted);
}

.wpep-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wpep-breadcrumb a { color: inherit; text-decoration: none; }
.wpep-breadcrumb a:hover { text-decoration: underline; }

.wpep-breadcrumb-sep { opacity: .5; }

/* ══════════ RELACIONADOS ══════════ */

.wpep-related-heading { margin-top: 0; font-size: 1.1em; }

.wpep-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wpep-related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wpep-related-thumb {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.wpep-related-body { flex: 1; min-width: 0; }

.wpep-related-body a { font-weight: 600; text-decoration: none; }
.wpep-related-body a:hover { text-decoration: underline; }

.wpep-related-desc {
    display: block;
    margin-top: 3px;
    font-size: .875em;
    color: var(--wpep-muted);
    line-height: 1.5;
}

/* ══════════ TABELA ══════════ */

.wpep-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wpep-table-scroll:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.wpep-table {
    width: 100%;
    border-collapse: collapse;
}

.wpep-table caption {
    caption-side: top;
    padding-bottom: 10px;
    font-size: .875em;
    color: var(--wpep-muted);
    text-align: left;
}

.wpep-table th,
.wpep-table td {
    padding: 10px 14px;
    border: 1px solid var(--wpep-border);
    text-align: left;
    vertical-align: top;
}

.wpep-table thead th {
    background: var(--wpep-surface);
    font-weight: 700;
}

.wpep-table-striped tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, .02);
}

/* ══════════ SANFONA E ABAS ══════════ */

.wpep-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpep-accordion-item {
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    overflow: hidden;
}

.wpep-accordion-title {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.wpep-accordion-title::-webkit-details-marker { display: none; }

.wpep-accordion-title::after {
    content: "▾";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .5;
    transition: transform .2s;
}

.wpep-accordion-item[open] .wpep-accordion-title::after {
    transform: translateY(-50%) rotate(180deg);
}

.wpep-accordion-title-inner {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    display: inline;
}

.wpep-accordion-content { padding: 0 18px 16px; }

.wpep-tablist {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--wpep-border);
    overflow-x: auto;
}

.wpep-tab-btn {
    padding: 12px 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: inherit;
    opacity: .65;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, border-color .15s;
}

.wpep-tab-btn:hover { opacity: 1; }

.wpep-tab-btn[aria-selected="true"] {
    opacity: 1;
    border-bottom-color: #4f46e5;
}

.wpep-tab-btn:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

.wpep-tabpanel { padding-top: 18px; }
.wpep-tabpanel > *:first-child { margin-top: 0; }

.wpep-tabs-vertical { display: flex; gap: 24px; }
.wpep-tabs-vertical .wpep-tablist {
    flex-direction: column;
    border-bottom: 0;
    border-right: 2px solid var(--wpep-border);
    flex-shrink: 0;
}
.wpep-tabs-vertical .wpep-tab-btn {
    border-bottom: 0;
    border-right: 2px solid transparent;
    margin-bottom: 0;
    margin-right: -2px;
    text-align: left;
}
.wpep-tabs-vertical .wpep-tab-btn[aria-selected="true"] { border-right-color: #4f46e5; }
.wpep-tabs-vertical .wpep-tabpanel { padding-top: 0; flex: 1; }

@media (max-width: 767px) {
    .wpep-tabs-vertical { flex-direction: column; }
    .wpep-tabs-vertical .wpep-tablist {
        flex-direction: row;
        border-right: 0;
        border-bottom: 2px solid var(--wpep-border);
    }
}

/* ══════════ CTA / NÚMEROS / ÍCONE ══════════ */

.wpep-cta {
    padding: 32px;
    border-radius: var(--wpep-radius);
    background: var(--wpep-surface);
}

.wpep-cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.wpep-cta-body { flex: 1; min-width: 260px; }
.wpep-cta-title { margin: 0 0 8px; }
.wpep-cta-desc  { margin: 0; opacity: .85; line-height: 1.6; }
.wpep-cta-action { margin-top: 16px; }
.wpep-cta-inline .wpep-cta-action { margin-top: 0; }

.wpep-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

.wpep-stat {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.wpep-stat-value {
    margin: 0;
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1.1;
}

.wpep-stat-label {
    font-size: .875em;
    color: var(--wpep-muted);
}

@media (max-width: 600px) {
    .wpep-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wpep-icon-box-top {
    text-align: center;
}

.wpep-icon-box-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.wpep-icon-box-icon {
    display: inline-block;
    font-size: 2em;
    line-height: 1;
    margin-bottom: 10px;
}

.wpep-icon-box-left .wpep-icon-box-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.wpep-icon-box-title { margin: 0 0 6px; }
.wpep-icon-box-desc  { margin: 0; color: var(--wpep-muted); line-height: 1.55; }

/* ══════════ ACESSO RESTRITO ══════════ */

.wpep-access-denied,
.wpep-trial-ended {
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    background: var(--wpep-surface);
    margin-top: 24px;
}

.wpep-access-icon {
    display: block;
    font-size: 2.4em;
    margin-bottom: 10px;
}

.wpep-access-title,
.wpep-trial-title { margin: 0 0 8px; }

.wpep-access-text,
.wpep-trial-message {
    margin: 0 auto 20px;
    max-width: 460px;
    color: var(--wpep-muted);
    line-height: 1.6;
}

.wpep-access-actions,
.wpep-trial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0;
}

/* Prévia gratuita esmaece no fim, sinalizando que há mais conteúdo */
.wpep-free-preview {
    position: relative;
    max-height: 60vh;
    overflow: hidden;
}

.wpep-free-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--wpep-bg, #fff) 92%);
    pointer-events: none;
}

/* ══════════ ANIMAÇÕES ══════════ */

@media (prefers-reduced-motion: no-preference) {
    [data-wpep-anim] {
        opacity: 0;
        transition: opacity .55s ease, transform .55s ease;
    }

    [data-wpep-anim="fade-up"]   { transform: translateY(22px); }
    [data-wpep-anim="fade-down"] { transform: translateY(-22px); }
    [data-wpep-anim="zoom-in"]   { transform: scale(.94); }

    [data-wpep-anim].wpep-in-view {
        opacity: 1;
        transform: none;
    }
}

/* Sem suporte a JS ou com movimento reduzido, o conteúdo aparece normalmente */
@media (prefers-reduced-motion: reduce) {
    [data-wpep-anim] { opacity: 1 !important; transform: none !important; }
}

.no-js [data-wpep-anim] { opacity: 1; transform: none; }

/* ══════════ DEZENAS DE LOTERIA ══════════ */

.wpep-lottery {
    margin: 0;
}

.wpep-lottery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* counter-reset impede que o <ol> herde numeração do tema: o número
       visível é a dezena, não a posição na lista. */
    counter-reset: none;
}

.wpep-lottery-grid > li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    font-size: 1.45rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--wpep-lottery-fg, #052e16);
    background: var(--wpep-lottery-bg, #22c55e);
    list-style: none;
}

.wpep-lottery-grid > li::marker,
.wpep-lottery-grid > li::before {
    content: none;
}

.wpep-lottery-circle  .wpep-lottery-number { border-radius: 50%; }
.wpep-lottery-rounded .wpep-lottery-number { border-radius: 12px; }
.wpep-lottery-square  .wpep-lottery-number { border-radius: 0; }

.wpep-lottery-number.is-highlight {
    background: var(--wpep-lottery-highlight, #f59e0b);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .28);
}

.wpep-lottery-caption {
    margin-top: .75rem;
    font-size: .9rem;
    opacity: .75;
}

@media (max-width: 480px) {
    .wpep-lottery-grid > li {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Bloco de código vindo do parser de markdown */
.wpep-code {
    overflow-x: auto;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: .9rem;
    line-height: 1.6;
}

/* Primeiro parágrafo marcado como linha fina */
.wpep-lead {
    font-size: 1.15em;
    opacity: .9;
}

/* ════════════════════════════════════════════════════════════════════════
   CAMADA DE DESIGN (v1.1)

   Até a 1.0 este arquivo só definia estrutura e deixava tipografia e cores
   para o tema. Em temas sem CSS próprio (Hello Elementor, WP Theme Pro com o
   theme.css desligado) a página saía crua: fonte padrão do navegador, texto
   colado nas bordas, blocos lado a lado. Esta camada torna a página
   autossuficiente. Tudo parte de variáveis — para ajustar à marca do site,
   redefina-as em .wpep-content (ex.: --wpep-accent).
   ════════════════════════════════════════════════════════════════════════ */

.wpep-content {
    --wpep-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --wpep-text: #1f2937;
    --wpep-heading: #0f172a;
    --wpep-muted: #64748b;
    --wpep-border: #e2e8f0;
    --wpep-surface: #f8fafc;
    --wpep-bg: #ffffff;
    --wpep-accent: #15803d;
    --wpep-accent-strong: #166534;
    --wpep-accent-soft: #dcfce7;
    --wpep-link: #0f5fb8;
    --wpep-radius: 12px;
    --wpep-gap: 22px;
    --wpep-measure: 760px;
    --wpep-lottery-bg: #16a34a;
    --wpep-lottery-fg: #ffffff;
    --wpep-lottery-highlight: #f59e0b;

    display: block;
    font-family: var(--wpep-font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--wpep-text);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Seção: filhos diretos empilham; só colunas ficam lado a lado ── */

.wpep-content > .wpep-section { padding: 28px 20px 8px; }
.wpep-content > .wpep-section:last-child { padding-bottom: 40px; }

.wpep-section-inner > .wpep-el:not(.wpep-column) {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
}

.wpep-layout-narrow { max-width: var(--wpep-measure); }

/* O wrapper recebe a mesma classe do componente interno (.wpep-el.wpep-x >
   .wpep-x). Zera o wrapper para o estilo não ser aplicado duas vezes. */
.wpep-el.wpep-callout,
.wpep-el.wpep-related,
.wpep-el.wpep-table,
.wpep-el.wpep-breadcrumb,
.wpep-el.wpep-list,
.wpep-el.wpep-quote,
.wpep-el.wpep-cta,
.wpep-el.wpep-toc {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
    list-style: none;
    font-size: inherit;
}

/* ── Tipografia ── */

.wpep-content h1,
.wpep-content h2,
.wpep-content h3,
.wpep-content h4 {
    font-family: var(--wpep-font);
    color: var(--wpep-heading);
    line-height: 1.25;
    letter-spacing: -.015em;
    font-weight: 750;
    margin: 0;
    text-wrap: balance;
}

.wpep-content h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); }
.wpep-content h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.3rem); }
.wpep-content h4 { font-size: 1.05rem; }

.wpep-el.wpep-heading { margin-top: 14px; }

.wpep-content p { margin: 0 0 1.1em; }
.wpep-content p:last-child { margin-bottom: 0; }
.wpep-content strong { color: var(--wpep-heading); font-weight: 700; }

.wpep-content a { color: var(--wpep-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wpep-content a:hover { text-decoration-thickness: 2px; }
.wpep-text a { text-decoration: underline; }

.wpep-lead { font-size: 1.16em; line-height: 1.65; color: var(--wpep-heading); opacity: 1; }

.wpep-content ul.wpep-list,
.wpep-content ol.wpep-list { margin: 0; padding-left: 1.35em; }
.wpep-content .wpep-list li { margin: 0 0 .5em; padding-left: .2em; }
.wpep-content .wpep-list li::marker { color: var(--wpep-accent); font-weight: 700; }

/* ── Trilha ── */

.wpep-content ol.wpep-breadcrumb { font-size: .8125rem; gap: 4px 6px; }
.wpep-breadcrumb-item:last-child { min-width: 0; }
.wpep-breadcrumb-item [aria-current] {
    display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}

/* ── Hero ── */

.wpep-hero-inner { gap: 14px; }
.wpep-hero-text { display: flex; flex-direction: column; gap: 12px; }

.wpep-hero-kicker {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--wpep-accent-soft);
    color: var(--wpep-accent-strong);
    font-size: .75rem;
    letter-spacing: .08em;
    opacity: 1;
}

.wpep-content .wpep-hero-title {
    font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.6rem);
    line-height: 1.14;
    letter-spacing: -.025em;
    font-weight: 800;
}

.wpep-hero-subtitle { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); line-height: 1.55; color: #475569; opacity: 1; }

.wpep-article-meta {
    padding: 12px 0;
    border-block: 1px solid var(--wpep-border);
    font-size: .875rem;
}

/* ── Dezenas ── */

.wpep-el.wpep-lottery-numbers {
    padding: 22px 18px;
    border: 1px solid var(--wpep-border);
    border-radius: calc(var(--wpep-radius) + 4px);
    background: linear-gradient(180deg, #f0fdf4, #ffffff 70%);
}

.wpep-lottery-grid { justify-content: center; gap: 10px; }

.wpep-lottery-grid > li {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #4ade80, var(--wpep-lottery-bg) 62%, #15803d);
    color: var(--wpep-lottery-fg);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
    box-shadow: 0 3px 8px rgba(22, 101, 52, .28), inset 0 -3px 5px rgba(0, 0, 0, .12);
}

.wpep-lottery-number.is-highlight {
    background: radial-gradient(circle at 32% 28%, #fcd34d, var(--wpep-lottery-highlight) 62%, #b45309);
    box-shadow: 0 3px 8px rgba(180, 83, 9, .3), inset 0 -3px 5px rgba(0, 0, 0, .12);
}

.wpep-lottery-legend {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 14px 0 0 !important; font-size: .8125rem; color: var(--wpep-muted);
}
.wpep-lottery-legend-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--wpep-lottery-highlight); }

.wpep-lottery-caption { margin-top: 12px; text-align: center; font-size: .8125rem; color: var(--wpep-muted); opacity: 1; }

.wpep-volante {
    display: grid;
    grid-template-columns: repeat(var(--wpep-volante-cols, 5), minmax(0, 1fr));
    gap: 6px;
    max-width: calc(var(--wpep-volante-cols, 5) * 52px);
    margin: 18px auto 0;
    padding: 12px;
    border: 1px dashed #bbf7d0;
    border-radius: var(--wpep-radius);
    background: #fff;
}

.wpep-volante-cell {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid var(--wpep-border);
    font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums;
    color: #94a3b8;
    background: var(--wpep-surface);
}
.wpep-volante-cell.is-drawn { background: var(--wpep-lottery-bg); border-color: var(--wpep-lottery-bg); color: #fff; font-weight: 800; }
.wpep-volante-cell.is-highlight { background: var(--wpep-lottery-highlight); border-color: var(--wpep-lottery-highlight); }

/* ── Números do concurso ── */

.wpep-stats-grid { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.wpep-stat {
    padding: 16px 14px;
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    background: var(--wpep-bg);
    gap: 2px;
    min-width: 0;
}

.wpep-stat-value {
    font-size: clamp(1.25rem, 1rem + 1.1vw, 1.7rem);
    font-weight: 800;
    color: var(--wpep-heading);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.wpep-stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Destaque ── */

.wpep-content div.wpep-callout { padding: 16px 18px; border-left-width: 4px; border-radius: var(--wpep-radius); }
.wpep-callout-title { margin: 0 0 4px !important; }

/* ── Tabela ── */

.wpep-table-scroll { border: 1px solid var(--wpep-border); border-radius: var(--wpep-radius); }
.wpep-content table.wpep-table { margin: 0; font-size: .95rem; font-variant-numeric: tabular-nums; }
.wpep-content table.wpep-table caption { padding: 12px 16px 0; font-size: .8125rem; }
.wpep-table th, .wpep-table td { border: 0; border-bottom: 1px solid var(--wpep-border); padding: 12px 16px; }
.wpep-table tbody tr:last-child > * { border-bottom: 0; }
.wpep-table thead th {
    background: var(--wpep-surface); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wpep-muted);
}
.wpep-table tbody th { color: var(--wpep-heading); font-weight: 650; }
.wpep-table td:last-child, .wpep-table thead th:last-child { text-align: right; white-space: nowrap; }
.wpep-table-striped tbody tr:nth-child(even) { background: var(--wpep-surface); }

.wpep-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ── FAQ ── */

.wpep-el.wpep-faq { margin-top: 14px; }
.wpep-faq-heading { margin-bottom: 14px !important; }
.wpep-faq-item { background: var(--wpep-bg); border-radius: var(--wpep-radius); }
.wpep-faq-item[open] { border-color: #bbf7d0; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.wpep-faq-question { padding: 15px 46px 15px 18px; color: var(--wpep-heading); line-height: 1.4; }
.wpep-faq-question::after { color: var(--wpep-accent); opacity: 1; font-weight: 400; }
.wpep-faq-answer { padding: 0 18px 16px; color: var(--wpep-text); font-size: .975rem; }

/* ── Sumário / CTA ── */

.wpep-content nav.wpep-toc, .wpep-content div.wpep-toc { padding: 16px 20px; border-radius: var(--wpep-radius); }
.wpep-content div.wpep-cta { border: 1px solid var(--wpep-border); }
.wpep-btn-primary { background: var(--wpep-accent); }
.wpep-btn-primary:hover { background: var(--wpep-accent-strong); }

/* ── Relacionados ── */

.wpep-el.wpep-related { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--wpep-border); }
.wpep-related-heading { margin-bottom: 12px !important; font-size: .8125rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--wpep-muted) !important; }
.wpep-content ul.wpep-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.wpep-related-item {
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    background: var(--wpep-bg);
    transition: border-color .15s, box-shadow .15s;
}
.wpep-related-item:hover { border-color: #86efac; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.wpep-related-body a { color: var(--wpep-heading); font-size: .95rem; line-height: 1.35; display: block; }

/* ── Moldura do tema nas páginas do editor ──
   Categorias, tags, navegação e comentários são impressos pelo tema, fora do
   .wpep-content. Sem CSS de tema, ficavam colados na borda da janela. */

body.wpep-page .page-content > .post-categories,
body.wpep-page .page-content > .post-tags,
body.wpep-page .post-navigation,
body.wpep-page .comments-area {
    box-sizing: border-box;
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: .875rem;
    line-height: 1.6;
    color: #64748b;
}

body.wpep-page .page-content > .post-categories { padding-top: 22px; border-top: 1px solid #e2e8f0; }
body.wpep-page .post-categories .categories-label,
body.wpep-page .post-tags .tags-label { font-weight: 600; margin-right: 6px; }

body.wpep-page .post-categories a,
body.wpep-page .post-tags a {
    display: inline-block;
    margin: 3px 2px;
    padding: 3px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
}
body.wpep-page .post-categories a:hover,
body.wpep-page .post-tags a:hover { background: #dcfce7; color: #166534; }

body.wpep-page .post-navigation { padding-bottom: 36px; }
body.wpep-page .post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.wpep-page .post-navigation .nav-next { grid-column: 2; text-align: right; }
body.wpep-page .post-navigation a {
    display: block; height: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; color: #0f172a;
}
body.wpep-page .post-navigation a:hover { border-color: #86efac; }
body.wpep-page .post-navigation .nav-subtitle { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
body.wpep-page .post-navigation .nav-title { font-weight: 650; }
body.wpep-page .comments-area { padding-bottom: 40px; }
body.wpep-page .comments-area :is(h2, h3) { font-size: 1.15rem; color: #0f172a; margin: 0 0 8px; }

@media (max-width: 600px) {
    .wpep-content { font-size: 1rem; }
    .wpep-content > .wpep-section { padding: 18px 16px 6px; }
    .wpep-lottery-grid { gap: 7px; }
    .wpep-lottery-grid > li { width: 42px; height: 42px; font-size: 1.02rem; }
    .wpep-el.wpep-lottery-numbers { padding: 18px 10px; }
    .wpep-stats-grid { grid-template-columns: 1fr 1fr; }
    .wpep-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .wpep-table th, .wpep-table td { padding: 10px 12px; }
    .wpep-breadcrumb-item [aria-current] { max-width: 24ch; }
    body.wpep-page .post-navigation .nav-links { grid-template-columns: 1fr; }
    body.wpep-page .post-navigation .nav-next { grid-column: 1; text-align: left; }
}

@media print {
    .wpep-el.wpep-related, body.wpep-page .post-navigation, body.wpep-page .comments-area { display: none; }
}

/* ══════════ NAVEGACAO ENTRE CONCURSOS (lottery_nav) ══════════ */

.wpep-lnav { display: grid; gap: 12px; }
.wpep-lnav-heading { margin: 0; font-size: 1.1em; }
.wpep-lnav-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wpep-lnav-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--wpep-border);
    border-radius: 10px;
    background: var(--wpep-surface);
    color: inherit;
    text-decoration: none;
}
.wpep-lnav-card:hover, .wpep-lnav-card:focus-visible { border-color: currentColor; }
.wpep-lnav-next { text-align: right; }
.wpep-lnav-card.is-empty { visibility: hidden; }
.wpep-lnav-dir { font-size: .8em; color: var(--wpep-muted); }
.wpep-lnav-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.wpep-lnav-date { font-size: .85em; color: var(--wpep-muted); }
.wpep-lnav-links { margin: 0; font-size: .95em; }

@media (max-width: 480px) {
    .wpep-lnav-pair { gap: 8px; }
    .wpep-lnav-card { padding: 10px 11px; }
}

/* Capas e imagens geradas nunca passam da largura disponivel. */
.wpep-content figure.wpep-image img,
img.wpep-generated { max-width: 100%; height: auto; }

/* ════════════════════════════════════════════════════════════════════════
   SUPERFÍCIE DE LEITURA (v1.2.1)

   O artigo era desenhado direto sobre o fundo do site. Com fundos em
   degradê (Fundo e Layout do WP Pro Sidebar Menu, temas coloridos), texto,
   tabelas zebradas e caixas translúcidas se misturavam com o fundo — o
   contraste caía justamente no corpo do texto.

   Agora o post fica numa folha sólida, com borda e sombra, na largura de
   leitura. Vale para posts (páginas de vitrine continuam de ponta a ponta)
   e pode ser ligada em qualquer documento com a classe .wpep-paper.
   Para ajustar à marca, redefina as variáveis em .wpep-content.
   ════════════════════════════════════════════════════════════════════════ */

.wpep-content {
    --wpep-paper: #ffffff;
    --wpep-paper-border: rgba(15, 23, 42, .09);
    --wpep-paper-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 28px 60px -34px rgba(15, 23, 42, .42);
    --wpep-paper-radius: 22px;
    --wpep-paper-pad: clamp(18px, 4.2vw, 56px);
}

body.single article.wpep-content,
.wpep-content.wpep-paper {
    position: relative;
    max-width: calc(var(--wpep-measure) + 2 * var(--wpep-paper-pad));
    margin: clamp(10px, 2.6vw, 30px) auto clamp(16px, 3vw, 30px);
    background: var(--wpep-paper);
    border: 1px solid var(--wpep-paper-border);
    border-radius: var(--wpep-paper-radius);
    box-shadow: var(--wpep-paper-shadow);
    overflow: clip;
}

/* Filete de cor no topo da folha: identidade sem custo de contraste. */
body.single article.wpep-content::before,
.wpep-content.wpep-paper::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--wpep-accent), color-mix(in srgb, var(--wpep-accent) 55%, #facc15));
}

body.single article.wpep-content > .wpep-section,
.wpep-content.wpep-paper > .wpep-section {
    padding-inline: var(--wpep-paper-pad);
}

body.single article.wpep-content > .wpep-section:first-child,
.wpep-content.wpep-paper > .wpep-section:first-child { padding-top: clamp(18px, 3vw, 34px); }

/* Dentro da folha, superfícies "translúcidas" viram cores sólidas legíveis. */
body.single .wpep-content .wpep-table-scroll { background: #fff; }
body.single .wpep-content .wpep-table thead th { background: #f1f5f9; color: #475569; }
body.single .wpep-content .wpep-table-striped tbody tr:nth-child(even) { background: #f8fafc; }
body.single .wpep-content .wpep-faq-item { background: #fff; border: 1px solid var(--wpep-border); }
body.single .wpep-content .wpep-faq-item[open] { background: #fbfdfb; }
body.single .wpep-content .wpep-stat { background: #f8fafc; }
body.single .wpep-content .wpep-lnav-card { background: #f8fafc; }
body.single .wpep-content .wpep-lnav-card:hover { background: #fff; border-color: var(--wpep-accent); box-shadow: 0 8px 22px -14px rgba(15, 23, 42, .4); }
body.single .wpep-content .wpep-related-item { background: #fff; }

/* Imagens com cantos e respiro dentro da folha. */
body.single .wpep-content figure.wpep-image img { border-radius: 14px; box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .5); }
body.single .wpep-content .wpep-image-caption { text-align: center; }

/* Subtítulos com marca de cor, para escanear o texto. */
body.single .wpep-content h2.wpep-heading { position: relative; padding-left: 14px; }
body.single .wpep-content h2.wpep-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 4px;
    background: var(--wpep-accent);
}

/* Tags do tema logo abaixo da folha, alinhadas a ela. */
body.single.wpep-page .page-content > .post-tags {
    max-width: calc(var(--wpep-measure, 760px) + 2 * clamp(18px, 4.2vw, 56px));
    margin: 0 auto 12px;
    padding: 0 6px;
    border: 0;
    background: none;
}

@media (max-width: 600px) {
    .wpep-content { --wpep-paper-radius: 16px; --wpep-paper-pad: 16px; }
    body.single article.wpep-content, .wpep-content.wpep-paper { margin-inline: 6px; }
    body.single .wpep-content h2.wpep-heading { padding-left: 11px; }
}

@media print {
    body.single article.wpep-content, .wpep-content.wpep-paper { border: 0; box-shadow: none; max-width: none; }
    body.single article.wpep-content::before, .wpep-content.wpep-paper::before { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   PRÉVIA DE LEITURA — "VER MAIS" (v1.2.1)

   Conteúdo exclusivo para quem ainda não tem acesso: o começo do próprio
   artigo (mesma folha, mesmos títulos e tabelas), esmaecendo no ponto do
   corte, e o cartão "Ver mais". O botão abre um diálogo pedindo o login
   (ou a assinatura); sem JavaScript, é um link para a página de login.
   ════════════════════════════════════════════════════════════════════════ */

.wpep-free-preview.wpep-teaser-preview { max-height: none; overflow: visible; }

.wpep-section-inner > .wpep-el.wpep-teaser,
.wpep-teaser {
    position: relative;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 6px;
}

/* O fim do texto liberado some aos poucos por baixo do cartão. */
.wpep-teaser-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: clamp(120px, 22vh, 210px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--wpep-paper, #fff) 88%);
    pointer-events: none;
}

.wpep-teaser-card {
    position: relative;
    text-align: center;
    padding: clamp(20px, 3.4vw, 30px) clamp(16px, 3vw, 28px) clamp(18px, 2.6vw, 24px);
    border: 1px solid color-mix(in srgb, var(--wpep-accent, #15803d) 22%, var(--wpep-border, #e2e8f0));
    border-radius: 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--wpep-accent, #15803d) 7%, #fff), #fff 70%);
    box-shadow: 0 22px 48px -32px rgba(15, 23, 42, .5);
}

.wpep-teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fef3c7;
    color: #92400e;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.wpep-content p.wpep-teaser-title {
    margin: 12px 0 4px;
    font-size: clamp(1.2rem, 1rem + .8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--wpep-heading, #0f172a);
}

.wpep-content p.wpep-teaser-text {
    margin: 0 auto 12px;
    max-width: 520px;
    color: var(--wpep-muted, #64748b);
    line-height: 1.6;
    font-size: .98rem;
}

.wpep-content p.wpep-teaser-hint {
    display: inline-block;
    margin: 0 auto 16px;
    max-width: 560px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--wpep-surface, #f8fafc);
    border: 1px dashed var(--wpep-border, #e2e8f0);
    color: var(--wpep-text, #1f2937);
    font-size: .92rem;
    line-height: 1.5;
}

.wpep-btn.wpep-teaser-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: min(260px, 100%);
    padding: 14px 30px;
    font-size: 1.05rem;
    font-weight: 750;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--wpep-accent, #15803d) 80%, transparent);
}
.wpep-btn.wpep-teaser-more svg { animation: wpep-teaser-nudge 1.8s ease-in-out infinite; }
@keyframes wpep-teaser-nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }

.wpep-content p.wpep-teaser-meta {
    margin: 12px 0 0;
    font-size: .8rem;
    color: var(--wpep-muted, #64748b);
}

/* Diálogo de login */
.wpep-teaser-dialog {
    width: min(420px, calc(100vw - 32px));
    max-width: none;
    padding: 30px 24px 22px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #0f172a;
    text-align: center;
    font-family: var(--wpep-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
    box-shadow: 0 36px 90px -24px rgba(15, 23, 42, .6);
}
.wpep-teaser-dialog[open] { animation: wpep-teaser-in .18s ease-out; }
@keyframes wpep-teaser-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.wpep-teaser-dialog::backdrop { background: rgba(15, 23, 42, .58); backdrop-filter: blur(3px); }

.wpep-teaser-x { position: absolute; top: 10px; right: 10px; margin: 0; }
.wpep-teaser-x button {
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: #f1f5f9; color: #475569; font-size: 22px; line-height: 1; cursor: pointer;
}
.wpep-teaser-x button:hover { background: #e2e8f0; }

.wpep-teaser-dialog-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: color-mix(in srgb, var(--wpep-accent, #15803d) 12%, #fff);
    color: var(--wpep-accent, #15803d);
}
.wpep-teaser-dialog-title { margin: 14px 0 6px; font-size: 1.3rem; font-weight: 800; line-height: 1.25; color: #0f172a; }
.wpep-teaser-dialog-text { margin: 0 0 18px; color: #475569; line-height: 1.6; font-size: .98rem; }
.wpep-teaser-dialog-actions { display: flex; flex-direction: column; gap: 10px; }
.wpep-teaser-dialog-actions .wpep-btn { width: 100%; padding: 13px 18px; font-size: 1rem; font-weight: 700; border-radius: 12px; text-decoration: none; }
.wpep-teaser-dialog-actions .wpep-btn-primary { background: var(--wpep-accent, #15803d); color: #fff; }
.wpep-teaser-dialog-actions .wpep-btn-ghost { background: #f1f5f9; color: #0f172a; }
.wpep-teaser-dialog-note { margin: 14px 0 0; font-size: .8rem; color: #64748b; }

/* Quem entrou cai no ponto em que a prévia parou. */
.wpep-continue-anchor { display: block; height: 0; scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
    .wpep-btn.wpep-teaser-more svg, .wpep-teaser-dialog[open] { animation: none; }
}

/* Sumário na prévia: itens da parte fechada levam ao "Ver mais". */
.wpep-toc a.is-locked { opacity: .72; }
.wpep-toc a.is-locked::after { content: " 🔒"; font-size: .8em; }
.wpep-teaser-card { scroll-margin-top: 96px; }
