:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #141a24;
    --muted: #667085;
    --border: #e6e9ef;
    --primary: #c4170c;
    --primary-dark: #98180f;
    --primary-soft: #fff1ef;
    --dark: #101828;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fbfbfd 0%, #f4f6fb 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.topbar {
    min-height: 74px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.desktop-only-search {
    display: flex;
}

.header-search-inline {
    flex: 0 1 290px;
    width: 290px;
    min-width: 0;
    padding: 0;
}

.header-search-inline input {
    min-height: 42px;
    padding: 0 14px;
}

.header-search-inline button {
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
}

.header-search-form {
    margin: 0;
    flex-wrap: nowrap;
}

.header-search-inline input {
    flex: 1 1 auto;
    min-width: 0;
}

.header-search-inline button,
.topbar-login {
    flex: 0 0 auto;
}

.site-brand {
    min-width: 0;
}

.menu-button,
.sidebar-close {
    border: 0;
    cursor: pointer;
}

.menu-button {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--surface-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
}

.menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark);
}

.site-brand {
    justify-self: center;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary-dark);
}

.topbar-login,
.button-primary,
.button-light,
.button-secondary,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.topbar-login,
.button-primary {
    padding: 0 16px;
    border: 1px solid #f1beb9;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.topbar-login:hover,
.button-primary:hover {
    background: #ffe4df;
}

.button-light {
    padding: 0 18px;
    background: #fff;
    color: var(--dark);
}

.button-secondary {
    padding: 0 18px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--dark);
}

.desktop-nav,
.category-pills {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.desktop-nav {
    padding: 0 0 12px;
}

.desktop-nav a {
    padding: 6px 0;
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
}

.category-pills {
    padding: 0 0 16px;
}

.category-pills a,
.sidebar-link.is-active,
.category-pills a.is-active {
    border-radius: 999px;
}

.category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: #344054;
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-pills a.is-active {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(320px, 84vw);
    background: #fff;
    box-shadow: 26px 0 60px rgba(15, 23, 42, 0.22);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
}

body.menu-open .site-sidebar {
    transform: translateX(0);
}

.site-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: 0.24s ease;
}

body.menu-open .site-overlay {
    opacity: 1;
    visibility: visible;
}

.sidebar-head {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.04em;
}

.sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--dark);
    font-size: 1.6rem;
    line-height: 1;
}

.sidebar-nav {
    padding: 16px 18px 24px;
    overflow-y: auto;
}

.sidebar-group + .sidebar-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.sidebar-title,
.section-label,
.mini-tag,
.auto-tag {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 800;
}

.sidebar-title {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--text);
    font-weight: 700;
}

.sidebar-link:hover,
.desktop-nav a:hover,
.site-brand:hover,
.news-body h3 a:hover,
.hero-content h1 a:hover,
.related-card h3 a:hover,
.breadcrumb-line a:hover {
    color: var(--primary);
}

.sidebar-link:hover {
    background: #f8fafc;
}

.sidebar-link.is-active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.site-main {
    padding: 28px 0 50px;
}

.notice,
.panel-box,
.hero-card,
.empty-state,
.category-context,
.editorial-band,
.article-card-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.notice {
    padding: 16px 18px;
    margin-bottom: 18px;
}

.notice-error {
    color: #8f140e;
    background: #fff5f4;
    border-color: #f5c7c2;
}

.category-context,
.empty-state {
    padding: 28px;
    margin-bottom: 22px;
}

.category-context h1,
.empty-state h1 {
    margin: 12px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.category-context p,
.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.empty-state .button-primary,
.article-empty .button-primary {
    margin-top: 18px;
}

.hero-home {
    margin-bottom: 24px;
}

.hero-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    min-height: 440px;
}

.hero-media,
.hero-media img {
    width: 100%;
    height: 100%;
}

.hero-media {
    min-height: 440px;
    background: linear-gradient(135deg, #dfe5ee, #cfd6e1);
}

.hero-media img,
.news-thumb-horizontal img,
.news-thumb-vertical img,
.news-grid-media img,
.article-cover-figure img,
.article-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #fff 0%, #fff7f6 100%);
}

.hero-content h1 {
    margin: 14px 0 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-content p,
.news-body p,
.related-card p,
.article-summary,
.article-rich-text,
.article-caption {
    color: #475467;
    line-height: 1.75;
}

.meta-line {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.meta-space {
    margin-bottom: 22px;
}

.section-label,
.mini-tag,
.auto-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.74rem;
}

.section-label,
.mini-tag {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.section-label-dark {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.auto-tag {
    background: #eef2ff;
    color: #3730a3;
}

.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 22px;
    margin-bottom: 24px;
    align-items: start;
}

.panel-box {
    padding: 22px;
}

.panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 10px 0 0;
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.news-stack,
.highlight-stack,
.related-stack {
    display: grid;
    gap: 16px;
}

.news-item-horizontal,
.news-item-vertical,
.news-card-grid,
.related-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.news-item-horizontal {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.news-thumb-horizontal,
.news-thumb-vertical,
.news-grid-media {
    display: block;
    background: #e7ebf3;
}

.news-thumb-horizontal {
    min-height: 100%;
}

.news-thumb-vertical {
    aspect-ratio: 16 / 10;
}

.news-grid-media {
    aspect-ratio: 16 / 9;
}

.news-body,
.related-card {
    padding: 18px;
}

.news-body h3,
.related-card h3 {
    margin: 12px 0 10px;
    font-size: 1.18rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.empty-inline,
.placeholder-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-inline {
    min-height: 160px;
    border: 1px dashed #d5dae3;
    border-radius: var(--radius-md);
    padding: 18px;
    color: var(--muted);
    background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
}

.placeholder-card-media {
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: 20px;
    font-weight: 700;
    color: #475467;
    background: linear-gradient(135deg, #e7ebf3, #d5dce8);
}

.placeholder-small {
    min-height: 180px;
}

.placeholder-side {
    min-height: 230px;
}

.placeholder-grid {
    min-height: 210px;
}

.panel-grid {
    margin-bottom: 24px;
}

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

.news-card-grid {
    display: flex;
    flex-direction: column;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.page-link {
    min-width: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
}

.page-link.is-current,
.page-link:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.editorial-band {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: linear-gradient(135deg, #141a24 0%, #1f2937 100%);
    color: #fff;
}

.editorial-band h2 {
    margin: 12px 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.editorial-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

.breadcrumb-line a {
    color: var(--primary);
    font-weight: 700;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
}

.article-card-main {
    padding: 28px;
}

.article-title-main {
    margin: 14px 0 12px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.article-summary {
    font-size: 1.06rem;
    margin-bottom: 10px;
}

.article-cover-figure,
.article-block-media {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 20px;
}

.article-cover-figure img {
    max-height: 520px;
}

.article-content-flow {
    display: grid;
    gap: 24px;
}

.article-rich-text {
    font-size: 1.08rem;
}

.article-caption {
    margin-top: 10px;
    font-size: 0.92rem;
}

.video-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 20px;
    background: #0f172a;
}

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

.sticky-box {
    position: sticky;
    top: 96px;
}

.related-card + .related-card {
    margin-top: 0;
}

.article-empty {
    text-align: center;
}

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

@media (max-width: 1280px) {
    .header-search-inline {
        flex-basis: 240px;
        width: 240px;
    }
}

@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .desktop-only-search {
        display: none;
    }

    .hero-card,
    .home-columns,
    .article-layout,
    .editorial-band {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: unset;
    }

    .hero-media {
        min-height: 320px;
    }

    .sticky-box {
        position: static;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(calc(100% - 20px), var(--container));
    }

    .site-main {
        padding-top: 20px;
    }

    .topbar {
        min-height: 68px;
        grid-template-columns: 48px 1fr auto;
        gap: 10px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .site-brand {
        font-size: 1.22rem;
    }

    .topbar-login,
    .button-primary,
    .button-light,
    .button-secondary,
    .page-link {
        min-height: 40px;
    }

    .topbar-login {
        padding: 0 12px;
    }

    .category-context,
    .empty-state,
    .panel-box,
    .article-card-main,
    .editorial-band,
    .hero-content {
        padding: 20px;
    }

    .hero-media,
    .placeholder-card-media {
        min-height: 240px;
    }

    .hero-content h1,
    .article-title-main {
        font-size: 1.95rem;
    }

    .news-item-horizontal,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-thumb-horizontal {
        min-height: 210px;
    }

    .news-thumb-vertical,
    .news-grid-media {
        aspect-ratio: 16 / 10;
    }

    .article-rich-text {
        font-size: 1rem;
    }

    .category-pills {
        padding-bottom: 14px;
    }
}

.header-search-form,
.sidebar-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search-form {
    padding: 0 0 16px;
}

.header-search-form input,
.sidebar-search-form input {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    padding: 0 16px;
    outline: none;
}

.header-search-form input:focus,
.sidebar-search-form input:focus {
    border-color: #f0b4ad;
    box-shadow: 0 0 0 4px rgba(196, 23, 12, 0.08);
}

.header-search-form button,
.sidebar-search-form button {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    background: var(--dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.header-search-form-large input {
    min-height: 52px;
}

.header-search-form-large button {
    min-height: 52px;
}

.sidebar-search-wrap {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.panel-head-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.search-hero {
    margin-bottom: 22px;
}

.search-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.search-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.search-suggestions {
    margin-bottom: 22px;
}

.search-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-chip-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 700;
}

.search-results-list {
    display: grid;
    gap: 18px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.search-result-media {
    min-height: 100%;
    background: #eef2f6;
}

.search-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-body {
    padding: 18px 20px;
}

.search-result-body h3 {
    margin: 12px 0 10px;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.search-result-body p {
    margin: 0 0 14px;
    color: var(--muted);
}

@media (max-width: 991px) {
    .header-search-form {
        padding-bottom: 14px;
    }

    .panel-head-between {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .header-search-form,
    .sidebar-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search-form button,
    .sidebar-search-form button {
        width: 100%;
    }

    .search-result-card {
        grid-template-columns: 1fr;
    }

    .search-result-media {
        min-height: 220px;
    }
}

.comments-section {
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.comment-form-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-label-lite {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.comment-input,
.comment-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    color: #0f172a;
}

.comment-textarea {
    resize: vertical;
}

.comment-form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.comment-help {
    color: #64748b;
    font-size: 0.92rem;
}

.comment-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.comment-alert-success {
    background: #dcfce7;
    color: #166534;
}

.comment-alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.comments-list {
    display: grid;
    gap: 16px;
}

.comment-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}

.comment-card p {
    margin: 0;
    color: #334155;
    line-height: 1.75;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.92rem;
}

.static-page-card {
    max-width: 860px;
    margin-inline: auto;
}

.static-page-content .article-rich-text {
    font-size: 1.05rem;
}

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

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Etapa 9 - autores */
.author-link-inline { color: #b00020; text-decoration: none; font-weight: 600; }
.author-link-inline:hover { text-decoration: underline; }
.author-hero { display: grid; grid-template-columns: 88px 1fr; gap: 1.25rem; align-items: center; }
.author-avatar { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, #7a0014, #c1121f); color: #fff; }
.author-hero-body h1 { margin: 0.25rem 0 0.5rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.author-hero-body p { margin: 0 0 0.75rem; color: #5c6670; }
.author-meta-grid { display: flex; flex-wrap: wrap; gap: 0.85rem 1.5rem; color: #1d2329; }
@media (max-width: 768px) { .author-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }


/* Etapa 11 - galeria pública */
.article-block-gallery {
    margin: 0;
}

.article-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.article-gallery-item {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.article-gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767.98px) {
    .article-gallery-grid {
        grid-template-columns: 1fr;
    }

    .article-gallery-item img {
        height: 220px;
    }
}

/* Etapa 13 - destaques editoriais configuráveis */
.editorial-highlights {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin: 0 0 28px;
}

.editorial-head {
    grid-column: 1 / -1;
    align-items: center;
}

.editorial-highlights-side,
.editorial-highlights-bottom {
    display: grid;
    gap: 18px;
}

.editorial-highlights-bottom {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-slot-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.editorial-slot-card--bottom {
    grid-template-columns: minmax(0, 1fr);
}

.editorial-slot-media {
    display: block;
    min-height: 100%;
}

.editorial-slot-media img,
.editorial-slot-media .placeholder-card-media {
    width: 100%;
    height: 100%;
    min-height: 158px;
    object-fit: cover;
}

.editorial-slot-body {
    padding: 18px 18px 18px 0;
}

.editorial-slot-body h3 {
    margin: 10px 0 10px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.editorial-slot-body h3 a {
    color: #0f172a;
    text-decoration: none;
}

.editorial-slot-body p {
    margin: 0 0 12px;
    color: #475569;
}

.editorial-slot-card--small .editorial-slot-media img,
.editorial-slot-card--small .editorial-slot-media .placeholder-card-media {
    min-height: 128px;
}

.editorial-slot-card--small .editorial-slot-body h3 {
    font-size: 1rem;
}

.editorial-slot-card--large .editorial-slot-media img,
.editorial-slot-card--large .editorial-slot-media .placeholder-card-media {
    min-height: 204px;
}

.editorial-slot-card--large .editorial-slot-body h3 {
    font-size: 1.25rem;
}

.editorial-slot-card--bottom .editorial-slot-media img,
.editorial-slot-card--bottom .editorial-slot-media .placeholder-card-media {
    min-height: 210px;
}

.editorial-slot-card--bottom .editorial-slot-body {
    padding: 18px;
}

@media (max-width: 1100px) {
    .editorial-highlights {
        grid-template-columns: 1fr;
    }

    .editorial-highlights-side,
    .editorial-highlights-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editorial-slot-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .editorial-slot-body {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .editorial-highlights-side,
    .editorial-highlights-bottom {
        grid-template-columns: 1fr;
    }
}

.feed-pin-card {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 22px;
  padding: 18px;
  background: #fff8ef;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 24px;
}

.feed-pin-media {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  background: #f6f0e7;
}

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

.feed-pin-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-pin-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #111827;
  color: #fff;
}

.feed-pin-body h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.feed-pin-body p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .feed-pin-card {
    grid-template-columns: 1fr;
  }

  .feed-pin-media {
    min-height: 200px;
  }
}

.article-tags-wrap,
.related-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags-wrap {
  margin: -4px 0 8px;
}

.related-tags-inline {
  margin: 2px 0 2px;
}

.mini-tag-soft {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #dbe4ee;
}

.tag-hero-box .author-avatar {
  background: linear-gradient(135deg, #111827, #334155);
  color: #fff;
}

.author-hero--rich{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:flex-start}
.author-hero-media{display:flex;align-items:center;justify-content:center}
.author-hero-avatar-image{width:112px;height:112px;border-radius:50%;object-fit:cover;display:block;box-shadow:0 18px 30px rgba(15,23,42,.15)}
.author-hero-role{font-weight:600;color:#334155}
.author-bio-text{margin:12px 0 0;line-height:1.8;color:#334155}
.author-bio-text--muted{color:#64748b}
@media (max-width: 767px){
  .author-hero--rich{grid-template-columns:1fr;text-align:center}
  .author-hero-media{justify-content:center}
  .author-meta-grid{justify-items:center}
}

.preview-page-wrap {
    padding-top: 1.5rem;
}

.preview-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.preview-admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preview-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-left: 0.75rem;
    font-size: 0.85rem;
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.most-read-section {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.most-read-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.most-read-card {
    position: relative;
    padding: 1.1rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.most-read-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0.65rem 0;
}

.most-read-card p {
    margin: 0 0 0.75rem;
    color: #475569;
}

.most-read-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

@media (max-width: 768px) {
    .preview-admin-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Hotfix v28: mantém a busca do topo fora do mobile e deixa a busca apenas dentro do menu hambúrguer. */
@media (max-width: 991px) {
    .topbar .desktop-only-search,
    .topbar .header-search-inline,
    .topbar-actions .header-search-form {
        display: none !important;
    }

    .topbar {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .site-brand {
        justify-self: start;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        min-width: auto;
    }
}
