/* ================================================================
   EasyContador Blog — Stylesheet
   Referência visual: easycontador.com.br
   Tipografia: Inter
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Reset & tokens ──────────────────────────────────────────── */
.cmcr-blog *,
.cmcr-blog *::before,
.cmcr-blog *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cmcr-blog {
    --cmcr-accent:       #0EA5E9;
    --cmcr-accent-dark:  color-mix(in srgb, var(--cmcr-accent) 82%, #000);
    --cmcr-accent-light: color-mix(in srgb, var(--cmcr-accent) 12%, #fff);
    --cmcr-teal:         #2DD4BF;
    --cmcr-blue:         #2563EB;
    --cmcr-violet:       #6366F1;
    --cmcr-fg:           #0F1729;
    --cmcr-fg-muted:     #64748B;
    --cmcr-bg:           #ffffff;
    --cmcr-bg-surface:   #F8FAFC;
    --cmcr-page-bg:      #ffffff;
    --cmcr-border:       #E5E7EB;
    --cmcr-radius-sm:    4px;
    --cmcr-radius-md:    8px;
    --cmcr-radius-lg:    10px;
    --cmcr-gap:          24px;
    --cmcr-section-v:    56px;
    --font-display:      'Inter', system-ui, sans-serif;
    --font-body:         'Inter', system-ui, sans-serif;

    font-family: var(--font-body);
    color: var(--cmcr-fg);
    background: var(--cmcr-page-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto 48px;
    border-radius: 0;
    padding: 0;
    border: 0;
    box-shadow: none;

    max-width: 1180px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: max(-50vw + 16px, -590px);
    margin-right: max(-50vw + 16px, -590px);
}

/* Mantém a proporção interna do layout (hero/cards/footer) */
.cmcr-blog > .cmcr-header,
.cmcr-blog > .cmcr-hero,
.cmcr-blog > .cmcr-grid-section,
.cmcr-blog > .cmcr-empty,
.cmcr-post-wrap {
    width: min(1120px, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
}

/* Rodapé: largura total e estilo em blog.css (bloco .cmcr-footer) */

/* Evita que o tema comprima o shortcode em colunas estreitas */
.entry-content .cmcr-blog,
.wp-block-post-content .cmcr-blog,
.post-content .cmcr-blog,
.site-main .cmcr-blog {
    display: block !important;
    width: min(1180px, calc(100vw - 32px)) !important;
    max-width: 1180px !important;
    margin-top: 0 !important;
    margin-bottom: 48px !important;
    margin-left: max(-50vw + 16px, -590px) !important;
    margin-right: max(-50vw + 16px, -590px) !important;
    left: 50% !important;
    right: 50% !important;
    position: relative !important;
}

body.cmcr-standalone-front,
body.cmcr-standalone-single {
    margin: 0;
    background: #ffffff;
}

body.cmcr-standalone-front .cmcr-blog {
    padding-top: 0;
}

/* ── Header do blog com logo ─────────────────────────────────── */
.cmcr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    margin: 0 0 34px;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--cmcr-bg);
    border-bottom: 1px solid var(--cmcr-border);
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(15, 23, 41, .04);
}

.cmcr-header__logo img {
    height: 44px;
    width: auto;
    display: block;
}

.cmcr-header__portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    border: 0;
    background: var(--cmcr-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.cmcr-header__portal:hover {
    background: #1D4ED8;
    color: #fff;
}

.cmcr-header__nav {
    display: flex;
    align-items: center;
    gap: 4px 12px;
    flex-wrap: wrap;
}

.cmcr-header__nav a {
    padding: 6px 4px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--cmcr-fg-muted);
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.cmcr-header__nav a:hover {
    background: transparent;
    color: var(--cmcr-fg);
}

.cmcr-header__nav a.active {
    background: transparent;
    color: var(--cmcr-fg);
    font-weight: 600;
    border-bottom-color: var(--cmcr-accent);
}

/* ── Badge de categoria (rótulo editorial, estilo iClinic) ───── */
.cmcr-badge {
    display: inline-block;
    padding: 0 0 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    color: var(--cmcr-accent);
    transition: opacity .2s;
    margin-bottom: 0;
    border-bottom: 0;
}
.cmcr-badge:hover {
    opacity: .8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Meta (autor · data · leitura) ───────────────────────────── */
.cmcr-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.82);
    margin-top: 16px;
}
.cmcr-meta--card {
    color: var(--cmcr-fg-muted);
    margin-top: 12px;
}
.cmcr-meta__author { font-weight: 500; }
.cmcr-meta__sep    { opacity: .5; }

/* ── HERO BANNER ─────────────────────────────────────────────── */
.cmcr-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--cmcr-radius-md);
    margin-bottom: var(--cmcr-section-v);
    border: 1px solid var(--cmcr-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    min-height: clamp(380px, 52vh, 560px);
}

.cmcr-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 6s ease;
}
.cmcr-hero:hover .cmcr-hero__bg {
    transform: scale(1);
}

/* Fallback: neutro editorial quando não há imagem */
.cmcr-hero__bg--gradient {
    background:
        radial-gradient(circle at 72% 36%, rgba(45, 212, 191, .35), transparent 26%),
        linear-gradient(135deg, #0EA5E9 0%, #2563EB 52%, #6366F1 100%) !important;
}

.cmcr-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 42%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

.cmcr-hero__deco {
    display: none;
}

.cmcr-hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 4vw, 48px);
    max-width: 720px;
}

.cmcr-hero__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4.2vw, 44px);
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0;
}
.cmcr-hero__title a {
    color: inherit;
    text-decoration: none;
}
.cmcr-hero__title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cmcr-hero__subtitle {
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.6;
    color: rgba(255,255,255,.88);
    max-width: 560px;
    font-weight: 400;
}

.cmcr-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 12px 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, #0EA5E9 0%, #2563EB 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0;
    transition: background .2s, opacity .2s;
}
.cmcr-hero__cta:hover {
    background: linear-gradient(90deg, #0284C7 0%, #1D4ED8 100%);
    opacity: 1;
}
.cmcr-hero__cta svg {
    transition: transform .2s;
}
.cmcr-hero__cta:hover svg {
    transform: translateX(4px);
}

/* ── SEÇÃO GRID ──────────────────────────────────────────────── */
.cmcr-grid-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 0 2px;
    flex-wrap: wrap;
}

/* ── Footer institucional (faixa escura, estilo editorial) ─────── */
.cmcr-footer {
    --cmcr-footer-bg:      #0F1729;
    --cmcr-footer-bg-bar:  #0B1220;
    --cmcr-footer-fg:      #e8edf4;
    --cmcr-footer-muted:   #94a3b8;
    --cmcr-footer-border:  rgba(255, 255, 255, 0.08);

    background: var(--cmcr-footer-bg);
    color: var(--cmcr-footer-fg);
    margin-top: 80px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    /* Full-bleed dentro de .entry-content: não combine left:50% com margin vw */
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.cmcr-footer__inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 20px 36px;
}

.cmcr-footer__top {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--cmcr-footer-border);
}

.cmcr-footer__brand {
    line-height: 0;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
}

.cmcr-footer__logo {
    width: auto;
    height: 52px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.cmcr-footer__text {
    max-width: 640px;
    margin: 0;
    color: var(--cmcr-footer-muted);
    font-size: 14px;
    line-height: 1.75;
}

.cmcr-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
    padding: 0 0 32px;
    border: 0;
}

.cmcr-footer__grid h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.45);
}

.cmcr-footer__grid a {
    display: block;
    font-size: 14px;
    line-height: 1.85;
    color: var(--cmcr-footer-fg);
    text-decoration: none;
    opacity: 0.88;
    transition: opacity 0.2s, color 0.2s;
}

.cmcr-footer__grid a:hover {
    opacity: 1;
    color: #fff;
}

.cmcr-social-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.cmcr-social-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cmcr-accent);
    opacity: 0.95;
    flex-shrink: 0;
}

.cmcr-social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cmcr-footer__copy {
    margin: 0;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--cmcr-footer-border);
    background: var(--cmcr-footer-bg-bar);
    font-size: 12px;
    color: var(--cmcr-footer-muted);
    text-align: center;
    letter-spacing: 0;
}

.cmcr-grid-section__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--cmcr-fg);
    letter-spacing: 0;
}
.cmcr-grid-section__line {
    flex: 1;
    height: 1px;
    background: var(--cmcr-border);
    border-radius: 0;
    min-width: 40px;
}

/* ── GRADE DE CARDS ──────────────────────────────────────────── */
.cmcr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cmcr-gap);
}

/* ── CARD ────────────────────────────────────────────────────── */
.cmcr-card {
    display: flex;
    flex-direction: column;
    background: var(--cmcr-bg);
    border: 1px solid var(--cmcr-border);
    border-radius: var(--cmcr-radius-md);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.cmcr-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    transform: none;
    border-color: color-mix(in srgb, var(--cmcr-accent) 28%, var(--cmcr-border));
}

.cmcr-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--cmcr-bg-surface);
}
.cmcr-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.cmcr-card:hover .cmcr-card__img {
    transform: scale(1.05);
}

.cmcr-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.cmcr-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--cmcr-fg);
    letter-spacing: 0;
}
.cmcr-card__title a {
    color: inherit;
    text-decoration: none;
}
.cmcr-card__title a:hover {
    color: var(--cmcr-accent);
}

.cmcr-post-wrap {
    margin-bottom: 84px;
}
body.cmcr-standalone-single .cmcr-post-wrap {
    margin-bottom: 36px;
}
.cmcr-post-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.15;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0;
}
.cmcr-post-meta {
    color: var(--cmcr-fg-muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.cmcr-post-thumb {
    max-width: 800px;
    margin: 0 auto 24px;
}
.cmcr-post-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--cmcr-radius-md);
    margin: 0 auto;
}
.cmcr-post-content {
    font-size: 17px;
    line-height: 1.8;
}
.cmcr-post-content p,
.cmcr-post-content ul,
.cmcr-post-content ol,
.cmcr-post-content h2,
.cmcr-post-content h3 {
    margin-bottom: 1em;
}

.cmcr-author-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 28px;
    align-items: start;
    margin: 44px 0 0;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(99, 102, 241, .12);
}
.cmcr-author-card__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #0F1729;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}
.cmcr-author-card__avatar-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.cmcr-author-card__eyebrow {
    color: #8B5E83;
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 2px;
}
.cmcr-author-card__name {
    color: var(--cmcr-fg);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 4px;
    letter-spacing: 0;
}
.cmcr-author-card__role,
.cmcr-author-card__bio {
    color: #5E6680;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 6px;
}
.cmcr-author-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: #8B5E83;
    font-size: 14px;
    line-height: 1.4;
    margin: 8px 0 0;
}
.cmcr-author-card__links a {
    color: var(--cmcr-accent);
    text-decoration: none;
    font-weight: 600;
}
.cmcr-author-card__links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cmcr-card__excerpt {
    font-size: 14px;
    color: var(--cmcr-fg-muted);
    line-height: 1.65;
    flex: 1;
}

/* ── PAGINAÇÃO ───────────────────────────────────────────────── */
.cmcr-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--cmcr-border);
}
.cmcr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--cmcr-radius-sm);
    border: 1px solid var(--cmcr-border);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--cmcr-fg-muted);
    transition: all .2s;
}
.cmcr-pagination .page-numbers:hover,
.cmcr-pagination .page-numbers.current {
    background: var(--cmcr-accent);
    border-color: var(--cmcr-accent);
    color: #fff;
}

/* ── Estado vazio ────────────────────────────────────────────── */
.cmcr-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--cmcr-fg-muted);
    font-size: 16px;
}

/* ── RESPONSIVIDADE ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .cmcr-grid { grid-template-columns: repeat(2, 1fr); }
    .cmcr-blog {
        width: calc(100vw - 18px);
        margin-top: 10px;
        margin-bottom: 26px;
        padding: 0;
        margin-left: calc(-50vw + 9px);
        margin-right: calc(-50vw + 9px);
    }
    .entry-content .cmcr-blog,
    .wp-block-post-content .cmcr-blog,
    .post-content .cmcr-blog,
    .site-main .cmcr-blog {
        width: calc(100vw - 18px) !important;
        margin-top: 10px !important;
        margin-bottom: 26px !important;
        margin-left: calc(-50vw + 9px) !important;
        margin-right: calc(-50vw + 9px) !important;
    }
    .cmcr-header {
        padding-bottom: 20px;
        margin-bottom: 24px;
    }
    .cmcr-header__logo img { height: 44px; }
    .cmcr-header__nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }
    .cmcr-header__nav a { white-space: nowrap; }
    .cmcr-hero { min-height: 360px !important; }

    .cmcr-footer__top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cmcr-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
    }
}

@media (max-width: 620px) {
    .cmcr-blog {
        --cmcr-section-v: 48px;
        --cmcr-gap: 20px;
        width: calc(100vw - 12px);
        margin-top: 0;
        margin-bottom: 20px;
        padding: 0;
        margin-left: calc(-50vw + 6px);
        margin-right: calc(-50vw + 6px);
        border-radius: 0;
    }
    .cmcr-blog > .cmcr-header,
    .cmcr-blog > .cmcr-hero,
    .cmcr-blog > .cmcr-grid-section,
    .cmcr-blog > .cmcr-empty,
    .cmcr-post-wrap {
        width: calc(100% - 12px);
    }
    .cmcr-footer {
        width: 100vw;
        max-width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
    .entry-content .cmcr-blog,
    .wp-block-post-content .cmcr-blog,
    .post-content .cmcr-blog,
    .site-main .cmcr-blog {
        width: calc(100vw - 12px) !important;
        margin-top: 6px !important;
        margin-bottom: 20px !important;
        margin-left: calc(-50vw + 6px) !important;
        margin-right: calc(-50vw + 6px) !important;
    }
    .cmcr-hero {
        border-radius: var(--cmcr-radius-md);
        min-height: 320px !important;
    }
    .cmcr-hero__content { padding: 26px 18px; }
    .cmcr-hero__title   { font-size: 28px; }
    .cmcr-hero__subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.55;
    }
    .cmcr-hero__cta     { padding: 11px 20px; font-size: 13px; }
    .cmcr-hero__deco    { display: none; }
    .cmcr-grid          { grid-template-columns: 1fr; }
    .cmcr-grid-section__title { font-size: 18px; white-space: normal; }
    .cmcr-header        { padding-bottom: 16px; margin-bottom: 18px; }
    .cmcr-header__logo img { height: 36px; }
    .cmcr-card__body { padding: 18px; }
    .cmcr-card__title { font-size: 22px; }
    .cmcr-post-title { font-size: 34px; }
    .cmcr-post-content { font-size: 16px; }
    .cmcr-author-card {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }
    .cmcr-author-card__avatar,
    .cmcr-author-card__avatar-img {
        width: 64px;
        height: 64px;
    }
    .cmcr-author-card__name {
        font-size: 21px;
    }
    .cmcr-footer {
        margin-top: 48px;
    }
    .cmcr-footer__inner {
        padding: 32px 16px 28px;
    }
    .cmcr-footer__top {
        grid-template-columns: 1fr;
        margin-bottom: 28px;
        padding-bottom: 24px;
    }
    .cmcr-footer__logo {
        height: 42px;
        max-width: 180px;
    }
    .cmcr-footer__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-bottom: 24px;
    }
}

/* ================================================================
   ADDITIONS — All-Posts view, Category filter, Cluster cards
================================================================ */

/* ── "Ver todos" link alongside section header ─────────────── */
.cmcr-grid-section__all {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--cmcr-accent);
    text-decoration: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: opacity .2s;
}
.cmcr-grid-section__all:hover {
    background: transparent;
    color: var(--cmcr-accent);
    opacity: .85;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── ALL-POSTS hero banner (sem imagem) ─────────────────────── */
.cmcr-allposts-hero {
    background: var(--cmcr-bg);
    border: 1px solid var(--cmcr-border);
    border-radius: var(--cmcr-radius-md);
    padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.cmcr-allposts-hero::after {
    display: none;
}
.cmcr-allposts-hero__content {
    position: relative;
    z-index: 1;
}
.cmcr-allposts-hero__back {
    display: inline-block;
    color: var(--cmcr-fg-muted);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color .2s;
}
.cmcr-allposts-hero__back:hover { color: var(--cmcr-fg); }
.cmcr-allposts-hero__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    color: var(--cmcr-fg);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 0;
}
.cmcr-allposts-hero__desc {
    color: var(--cmcr-fg-muted);
    font-size: 15px;
}

/* ── FILTER PILLS ────────────────────────────────────────────── */
.cmcr-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--cmcr-border);
}
.cmcr-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--cmcr-radius-sm);
    border: 1px solid var(--cmcr-border);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--cmcr-fg-muted);
    background: var(--cmcr-bg);
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.cmcr-filter-pill:hover {
    border-color: var(--cmcr-fg-muted);
    color: var(--cmcr-fg);
    background: var(--cmcr-bg-surface);
}
.cmcr-filter-pill--active {
    background: var(--cmcr-accent);
    border-color: var(--cmcr-accent);
    color: #fff;
}
.cmcr-filter-pill--active:hover {
    background: var(--cmcr-accent-dark);
    border-color: var(--cmcr-accent-dark);
    color: #fff;
}
.cmcr-filter-pill__count {
    font-size: 11px;
    font-weight: 600;
    background: rgba(0,0,0,.1);
    padding: 1px 6px;
    border-radius: 999px;
}
.cmcr-filter-pill--active .cmcr-filter-pill__count {
    background: rgba(255,255,255,.25);
}

/* ── GRID 4 COLUNAS (all-posts) ──────────────────────────────── */
.cmcr-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

/* ── CATEGORY CARDS (bottom of page) ────────────────────────── */
.cmcr-categories-section {
    margin-top: var(--cmcr-section-v);
    margin-bottom: var(--cmcr-section-v);
}
.cmcr-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    margin-top: 28px;
}
.cmcr-cat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: var(--cmcr-radius-md);
    border: 1px solid var(--cmcr-border);
    background: var(--cmcr-bg);
    text-decoration: none;
    color: var(--cmcr-fg);
    transition: box-shadow .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.cmcr-cat-card::before {
    display: none;
}
.cmcr-cat-card:hover,
.cmcr-cat-card--active {
    border-color: var(--cmcr-accent);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    transform: none;
    background: var(--cmcr-bg);
}
.cmcr-cat-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--cmcr-fg);
}
.cmcr-cat-card__count {
    font-size: 12px;
    color: var(--cmcr-fg-muted);
}
.cmcr-cat-card__arrow {
    margin-top: 8px;
    font-size: 16px;
    color: var(--cmcr-accent);
    opacity: 0;
    transition: opacity .2s, transform .2s;
    align-self: flex-end;
}
.cmcr-cat-card:hover .cmcr-cat-card__arrow,
.cmcr-cat-card--active .cmcr-cat-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ── CLUSTER sections spacing ────────────────────────────────── */
.cmcr-cluster-section {
    margin-top: calc(var(--cmcr-section-v) * 1.2);
}

/* ── Responsive updates ──────────────────────────────────────── */
@media (max-width: 1100px) {
    .cmcr-grid--4col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .cmcr-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .cmcr-cat-grid   { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 620px) {
    .cmcr-grid--4col      { grid-template-columns: 1fr; }
    .cmcr-allposts-hero   { padding: 28px 18px; }
    .cmcr-filter-bar      { gap: 6px; }
    .cmcr-filter-pill     { font-size: 12px; padding: 6px 12px; }
    .cmcr-cat-grid        { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cmcr-cat-card        { padding: 14px 14px; }
}

/* ── Artigo singular (template standalone) ─ */
body.cmcr-standalone-single .cmcr-blog--single-naked {
    padding-top: 20px;
    padding-bottom: 16px;
}
.cmcr-single-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto 28px;
    padding: 0 4px 16px;
    border-bottom: 1px solid var(--cmcr-border);
}
.cmcr-single-nav__home {
    line-height: 0;
}
.cmcr-single-nav__home img {
    height: 36px;
    width: auto;
    display: block;
}
.cmcr-single-nav__back {
    font-size: 14px;
    font-weight: 600;
    color: var(--cmcr-accent);
    text-decoration: none;
}
.cmcr-single-nav__back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
