:root {
    --bg: #f6f7f8;
    --surface: #ffffff;
    --surface-2: #fbfbfc;
    --border: #e4e7eb;
    --border-strong: #d4d9df;

    --text: #15181d;
    --text-soft: #4d5663;
    --text-muted: #7a8594;

    --accent: #537fc5;
    --accent-dark: #294d87;
    --accent-soft: #eaf1fb;

    --headline: #101317;
    --footer: #0f1722;

    --shadow-sm: 0 8px 20px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 18px 40px rgba(16, 24, 40, 0.08);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;

    --container: 1360px;
    --container-article: 1480px;
    --transition: 0.22s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    padding: 26px 0 56px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.container-article {
    width: min(var(--container-article), calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-topbar {
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.header-topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.topbar-separator {
    color: #b5bfcb;
}

.topbar-text {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.topbar-right a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: color var(--transition);
}

.topbar-right a:hover {
    color: var(--headline);
}

.header-main {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.brand-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 6px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-family: Arial, sans-serif;
    font-size: clamp(2.2rem, 3.8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--headline);
    line-height: 0.92;
}

.brand-subtitle {
    margin-top: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.nav-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 58px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-bar-inner::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    white-space: nowrap;
    padding: 6px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-soft);
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -17px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--headline);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* =========================
   HOME GENERAL
========================= */
.home-page {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.top-ads,
.bottom-ads,
.article-bottom-ads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.top-ad-card,
.bottom-ad-card,
.sidebar-ad-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.top-ad-card img,
.bottom-ad-card img,
.sidebar-ad-card img,
.article-bottom-ads img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ad-link-placeholder {
    min-height: 120px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f7f9fc, #eef3f9);
    color: var(--text-soft);
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

/* =========================
   HERO
========================= */
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) 350px;
    gap: 34px;
    align-items: start;
}

.hero-layout-full {
    grid-template-columns: 1fr;
}

.hero-main,
.hero-sidebar {
    min-width: 0;
}

.headline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.headline-image-link {
    display: block;
    overflow: hidden;
}


.headline-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.headline-card:hover .headline-image {
    transform: scale(1.02);
}



.headline-content {
    padding: 18px 24px 20px;
    border-top: 1px solid var(--border);
}

.chip,
.mini-chip,
.tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #d5ddea;
    background: #f7faff;
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip {
    margin-bottom: 16px;
}

.mini-chip {
    margin-bottom: 10px;
}

.headline-title {
    
    font-family: Arial, sans-serif;
    font-size: clamp(2.8rem, 4vw, 4.6rem);
    line-height: 0.92;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--headline);
    margin-bottom: 14px;
}

.headline-title a,
.news-card-title a,
.featured-mini-content h3 a,
.related-news-body h3 a {
    transition: color var(--transition);
}

.headline-title a:hover,
.news-card-title a:hover,
.featured-mini-content h3 a:hover,
.related-news-body h3 a:hover {
    color: var(--accent-dark);
}

.headline-summary {
    max-width: 900px;
    font-size: 1.02rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.meta-row,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.meta-row.small {
    margin-top: 14px;
    font-size: 0.72rem;
}

/* =========================
   SIDEBAR
========================= */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 22px;
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title-row h2 {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--headline);
    letter-spacing: -0.03em;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-mini-card {
    display: grid;
    grid-template-columns: 98px 1fr;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.featured-mini-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.featured-mini-image-wrap {
    display: block;
}

.featured-mini-image {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: var(--radius-xs);
}

.featured-mini-content h3 {
    font-family: Arial, sans-serif;
    font-size: 1.42rem;
    line-height: 0.95;
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.featured-mini-content p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.sidebar-empty {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* =========================
   SECTION HEADINGS
========================= */
.section-heading,
.article-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading h2,
.article-section-heading h2,
.article-subsection-title,
.simple-page-card h1,
.editor-header-card h1,
.editor-card-head h2 {
    font-family: Arial, sans-serif;
    color: var(--headline);
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(2rem, 2.5vw, 2.9rem);
    line-height: 0.98;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
}

/* =========================
   RECENT NEWS GRID
========================= */
.recent-section {
    padding-top: 4px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #d2d9e4;
}

.news-card-image-link {
    display: block;
    overflow: hidden;
}

.news-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.03);
}

.news-card-body {
    padding: 18px 18px 22px;
}

.news-card-title {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 0.94;
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.news-card-summary {
    font-size: 0.96rem;
    color: var(--text-soft);
    line-height: 1.68;
}

/* =========================
   EMPTY
========================= */
.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    padding: 34px;
}

.empty-state h2 {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--headline);
}

.empty-state p {
    color: var(--text-soft);
}

/* =========================
   IMAGE FALLBACK
========================= */
.image-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f1f4f8, #e8edf4);
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.image-fallback.mini {
    height: 84px;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
}

.image-fallback.card {
    height: 230px;
    font-size: 0.78rem;
}

.headline-card .image-fallback {
    height: 320px;
    font-size: 0.86rem;
}

/* =========================
   SIMPLE PAGE
========================= */
.simple-page {
    padding-top: 10px;
}

.simple-page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 36px;
}

.simple-page-card h1 {
    font-size: clamp(2.4rem, 3.5vw, 3.5rem);
    line-height: 0.95;
    margin-bottom: 10px;
}

.simple-lead {
    color: var(--text-soft);
    margin-bottom: 28px;
    font-size: 1.02rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 22px;
}

.contact-item.full {
    grid-column: 1 / -1;
}

.contact-item h3 {
    margin-bottom: 8px;
    color: var(--headline);
    font-size: 1rem;
}

.contact-item p {
    color: var(--text-soft);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    margin-top: 40px;
    background: var(--footer);
    color: rgba(255, 255, 255, 0.94);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 30px;
    padding: 42px 0 28px;
}

.footer-col h4 {
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 12px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.72);
    max-width: 440px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list li,
.footer-list a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

/* =========================
   ARTICLE DETAIL
========================= */
.article-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 340px;
    gap: 30px;
    align-items: start;
}

.article-layout-full {
    grid-template-columns: 1fr;
}

.article-main-card {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}

.article-header {
    padding: 34px 36px 24px;
}

.article-title {
    font-family: Arial, sans-serif;
    font-size: clamp(3rem, 4vw, 4.7rem);
    line-height: 0.92;
    font-weight: 700;
    color: var(--headline);
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.article-summary {
    font-size: 1.05rem;
    line-height: 1.82;
    color: var(--text-soft);
    max-width: 980px;
}

.article-featured-media {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #f5f7fa;
}

.article-featured-image {
    width: 100%;
    max-width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
}

.article-media-block,
.article-gallery-section,
.article-tags-section,
.article-references-section,
.related-news-section {
    padding: 18px 36px 28px;
}

.article-subsection-title,
.article-section-heading h2 {
    font-size: 2rem;
    line-height: 0.98;
    margin-bottom: 14px;
}

.article-video-card,
.external-video-link-card,
.gallery-card,
.reference-item,
.related-news-card,
.editor-card,
.editor-header-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

.article-video-card,
.external-video-link-card {
    padding: 16px;
}

.article-video {
    width: 100%;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #edf2f7;
}

.article-caption,
.gallery-caption {
    padding-top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-body {
    padding: 30px 36px 10px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.95;
}

.article-body p {
    margin-bottom: 1.35em;
}

.article-body strong {
    color: var(--headline);
}

.external-video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    transition: background var(--transition), transform var(--transition);
}

.external-video-link:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* GALERÍA */
.article-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    padding: 14px;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.references-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reference-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    transition: border-color var(--transition), transform var(--transition);
}

.reference-item:hover {
    border-color: #cfd6e0;
    transform: translateY(-2px);
}

.reference-title {
    color: var(--headline);
    font-weight: 700;
}

.reference-url {
    color: var(--text-muted);
    font-size: 0.88rem;
    word-break: break-word;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-sidebar .sidebar-ad-card img,
.article-sidebar .sidebar-ad-card video {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    background: #edf2f7;
}

/* RELACIONADAS */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.related-news-card {
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.related-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.related-news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-news-body {
    padding: 16px;
}

.related-news-body h3 {
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 0.95;
    margin-bottom: 10px;
    color: var(--headline);
    letter-spacing: -0.025em;
}

.related-news-body p {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.58;
}

/* =========================
   PAGINACIÓN
========================= */
.pagination-wrap {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-soft);
    font-weight: 800;
    transition: all var(--transition);
}

.page-btn:hover {
    border-color: #cfd7e2;
    color: var(--headline);
}

.page-btn.active {
    background: var(--headline);
    color: #fff;
    border-color: var(--headline);
}

/* =========================
   EDITORIAL / PANEL
========================= */
.editor-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.editor-header-card,
.editor-card {
    padding: 24px;
}

.editor-header-card h1 {
    font-size: clamp(2.3rem, 3vw, 3.2rem);
    margin-bottom: 10px;
    line-height: 0.95;
}

.editor-header-card p {
    color: var(--text-soft);
    font-size: 1rem;
}

.editor-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-message {
    border-radius: 10px;
    padding: 14px 16px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: #fff;
}

.editor-message.success {
    background: #eef9f0;
    border-color: #c8e3cd;
    color: #1a6a3d;
}

.editor-message.error {
    background: #fff1f1;
    border-color: #ebc7c7;
    color: #8d2727;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.editor-card-head {
    margin-bottom: 18px;
}

.editor-card-head h2 {
    font-size: 2rem;
    line-height: 1;
}

.editor-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.editor-form-news .editor-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.editor-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-field-full {
    grid-column: 1 / -1;
}

.editor-field label {
    color: var(--headline);
    font-weight: 700;
    font-size: 0.95rem;
}

.editor-input,
.editor-select,
.editor-textarea,
.editor-multiselect,
.editor-file {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    padding: 14px 16px;
    font-size: 0.96rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.editor-textarea {
    resize: vertical;
    min-height: 110px;
}

.editor-multiselect {
    min-height: 150px;
}

.editor-input:focus,
.editor-select:focus,
.editor-textarea:focus,
.editor-multiselect:focus,
.editor-file:focus {
    border-color: #b7c7df;
    box-shadow: 0 0 0 4px rgba(83, 127, 197, 0.1);
}

.editor-help {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.editor-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    padding-top: 8px;
}

.editor-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--headline);
    font-weight: 700;
}

.editor-check input {
    width: 18px;
    height: 18px;
}

.editor-btn {
    align-self: flex-start;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    background: var(--headline);
    color: #fff;
    font-weight: 800;
    font-size: 0.94rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.editor-btn:hover {
    background: #1c2430;
    transform: translateY(-1px);
}

.editor-btn-big {
    margin-top: 8px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1280px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1.55fr) 320px;
    }

    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .headline-image,
    .headline-card .image-fallback {
        height: 400px;
    }
}

@media (max-width: 900px) {
    .editor-grid,
    .editor-form-news .editor-form-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .editor-field-full,
    .contact-item.full {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .container,
    .container-article {
        width: min(var(--container), calc(100% - 24px));
    }

    .site-main {
        padding: 18px 0 34px;
    }

    .header-topbar-inner {
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
        min-height: auto;
    }

    .topbar-left,
    .topbar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-main {
        min-height: 88px;
        padding: 16px 0;
    }

    .brand {
        gap: 12px;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .brand-name {
        font-size: 2.2rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.13em;
    }

    .nav-bar-inner {
        justify-content: flex-start;
        gap: 22px;
        min-height: 52px;
    }

    .headline-image,
    .headline-card .image-fallback {
        height: 280px;
    }

    .headline-content {
        padding: 22px 18px 24px;
    }

    .headline-title {
        font-size: 2.35rem;
    }

    .headline-summary {
        font-size: 0.98rem;
    }

    .featured-mini-card {
        grid-template-columns: 88px 1fr;
    }

    .featured-mini-image,
    .image-fallback.mini {
        height: 78px;
    }

    .news-grid,
    .article-gallery-grid,
    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image,
    .image-fallback.card {
        height: 220px;
    }

    .section-heading h2,
    .article-section-heading h2,
    .article-subsection-title {
        font-size: 2rem;
    }

    .simple-page-card,
    .sidebar-panel,
    .editor-header-card,
    .editor-card {
        padding: 20px 18px;
    }

    .article-header,
    .article-body,
    .article-media-block,
    .article-gallery-section,
    .article-tags-section,
    .article-references-section,
    .related-news-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .article-title {
        font-size: 2.45rem;
    }

    .article-summary {
        font-size: 1rem;
    }

    .article-featured-image {
        max-height: 320px;
    }

    .article-video {
        max-height: 320px;
    }

    .gallery-image,
    .related-news-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .brand {
        flex-direction: column;
        text-align: center;
    }

    .brand-copy {
        align-items: center;
    }

    .brand-name {
        font-size: 1.95rem;
    }

    .nav-link {
        font-size: 0.86rem;
    }

    .headline-title {
        font-size: 2rem;
    }

    .news-card-title {
        font-size: 1.7rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .headline-image,
    .headline-card .image-fallback {
        height: 230px;
    }

    .news-card-image,
    .image-fallback.card {
        height: 200px;
    }

    .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.86rem;
    }
}