:root {
    color-scheme: light;
    --bg: #edf3f8;
    --bg-soft: #f8fbfe;
    --surface: #ffffff;
    --surface-alt: #f4f8fb;
    --surface-soft: #e9f0f7;
    --ink: #13273f;
    --ink-soft: #35506d;
    --ink-muted: #617893;
    --brand: #184f8f;
    --brand-deep: #0f2f59;
    --brand-mid: #3a74b6;
    --accent: #d89a39;
    --accent-deep: #ba7a1f;
    --line: rgba(19, 39, 63, 0.12);
    --line-strong: rgba(19, 39, 63, 0.18);
    --shadow-soft: 0 18px 40px rgba(12, 32, 57, 0.08);
    --shadow-strong: 0 26px 62px rgba(12, 32, 57, 0.14);
    --focus-ring: 0 0 0 3px rgba(58, 116, 182, 0.2);
    --container: 90rem;
    --section-space: clamp(0.85rem, 1.7vw, 1.4rem);
    --shell-space: clamp(0.95rem, 1.5vw, 1.35rem);
    --header-height: 4.35rem;
    --radius-sm: 0.2rem;
    --radius-md: 0.26rem;
    --radius-lg: 0.34rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(24, 79, 143, 0.09), transparent 30%),
        linear-gradient(180deg, #f8fbfe 0%, var(--bg) 46%, #f9fbfd 100%);
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

body.menu-open {
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 80;
    padding: 0.85rem 1rem;
    background: var(--brand-deep);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transform: translateY(-220%);
    transition: transform 160ms ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.anchor-target {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 0 1.4rem;
    background: linear-gradient(180deg, rgba(244, 248, 252, 0.96) 0%, rgba(244, 248, 252, 0.76) 100%);
    backdrop-filter: blur(12px);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
    width: min(100%, var(--container));
    margin: 0 auto;
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-height);
    padding: 0.52rem 0;
    border-bottom: 1px solid rgba(19, 39, 63, 0.12);
}

.site-brand,
.site-footer__brand {
    display: inline-flex;
    align-items: center;
}

.site-brand img {
    width: clamp(8.1rem, 10vw, 9.8rem);
    height: auto;
    object-fit: contain;
}

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

.site-navigation__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.72rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation a,
.utility-link,
.button,
.link-arrow,
.site-footer__nav-links a,
.breadcrumb a {
    text-decoration: none;
}

.site-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation a.is-current,
.site-navigation a[aria-current="location"],
.site-navigation a[aria-current="page"] {
    color: var(--brand);
    border-color: rgba(24, 79, 143, 0.35);
}

.site-actions {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
}

.utility-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.72rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.34rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-deep);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.utility-link:hover,
.utility-link:focus-visible,
.button:hover,
.button:focus-visible {
    box-shadow: 0 12px 24px rgba(12, 32, 57, 0.08);
}

.utility-link--accent,
.button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
}

.button--secondary,
.button--ghost,
.button--ghost-light {
    background: transparent;
}

.button--secondary,
.button--ghost {
    border-color: rgba(19, 39, 63, 0.18);
}

.button--ghost {
    color: var(--brand-deep);
}

.button--ghost-light {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible {
    background: rgba(24, 79, 143, 0.05);
}

.button--ghost-light:hover,
.button--ghost-light:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.62);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button-row--stack {
    flex-direction: column;
    align-items: flex-start;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 700;
}

.link-arrow::after {
    content: '\2192';
    font-size: 1.1em;
}

.link-arrow--light {
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid rgba(19, 39, 63, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.2rem auto;
    background: var(--brand-deep);
    transition: transform 160ms ease, opacity 160ms ease;
}

.site-main {
    padding-bottom: 4.5rem;
}

.section {
    padding: 0 1.75rem;
}

.section + .section {
    padding-top: var(--section-space);
}

.section__inner {
    position: relative;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 1.2rem;
}

.eyebrow,
.feature-card__eyebrow,
.split-panel__eyebrow,
.internal-hero__aside-eyebrow,
.site-footer__nav-title,
.story-card__tag,
.news-card__tag {
    margin: 0;
    color: var(--brand);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
.site-footer__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.section-heading h2,
.page-bridge h2 {
    margin-top: 0.7rem;
    font-size: clamp(1.55rem, 2.1vw, 2.18rem);
    line-height: 1.08;
}

p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.62;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
}

.breadcrumb,
.breadcrumb a,
.breadcrumb span {
    color: inherit;
}
.home-hero,
.internal-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    isolation: isolate;
}

.home-hero {
    min-height: clamp(32rem, 74vh, 40rem);
    margin: 0 auto;
}

.internal-hero {
    min-height: clamp(19rem, 44vh, 24.5rem);
    margin: 0 auto;
}

.home-hero__media,
.home-hero__overlay,
.internal-hero__media,
.internal-hero__overlay {
    position: absolute;
    inset: 0;
}

.home-hero__media img,
.internal-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    object-position: center top;
}

.home-hero__overlay {
    background: linear-gradient(90deg, rgba(8, 27, 52, 0.62) 0%, rgba(8, 27, 52, 0.34) 48%, rgba(8, 27, 52, 0.12) 100%);
}

.internal-hero__overlay {
    background: linear-gradient(90deg, rgba(9, 30, 56, 0.72) 0%, rgba(9, 30, 56, 0.5) 48%, rgba(9, 30, 56, 0.22) 100%);
}

.home-hero__layout,
.internal-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    min-height: inherit;
    padding: clamp(4.25rem, 7vw, 5.6rem) clamp(1.75rem, 3vw, 2.8rem) clamp(1.55rem, 3vw, 2.2rem);
}

.home-hero__layout {
    align-items: center;
}

.internal-hero__layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(17rem, 0.84fr);
    align-items: end;
}

.home-hero__copy {
    width: min(100%, 40rem);
    transform: translateY(clamp(-1.4rem, -2vw, -0.6rem));
}

.home-hero h1,
.home-hero__lead,
.internal-hero h1,
.internal-hero__lead,
.internal-hero__aside,
.internal-hero__aside p,
.internal-hero__aside-eyebrow {
    color: #fff;
}

.home-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.45rem, 4.6vw, 4rem);
    line-height: 0.96;
}

.internal-hero h1 {
    max-width: 14ch;
    font-size: clamp(1.72rem, 2.45vw, 2.45rem);
    line-height: 1.02;
}

.home-hero__lead,
.internal-hero__lead {
    max-width: 36rem;
    margin-top: 0.82rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.95);
}

.home-hero__actions {
    margin-top: 1.4rem;
}

.internal-hero__aside {
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.internal-hero__aside p + .button-row {
    margin-top: 1rem;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) {
    --internal-page-container: 88rem;
    --internal-page-inline: clamp(1rem, 2.8vw, 2.2rem);
    --internal-section-space: clamp(3rem, 5vw, 4.65rem);
    --internal-hero-height: clamp(300px, 28vw, 360px);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main > .section {
    padding: var(--internal-section-space) 0;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main > .section + .section {
    padding-top: var(--internal-section-space);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main > .section > .section__inner,
:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero__layout {
    width: min(calc(100% - (var(--internal-page-inline) * 2)), var(--internal-page-container));
    margin: 0 auto;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero {
    height: var(--internal-hero-height);
    min-height: var(--internal-hero-height);
    max-height: var(--internal-hero-height);
    overflow: hidden;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero__overlay {
    background: linear-gradient(90deg, rgba(8, 27, 52, 0.78) 0%, rgba(8, 27, 52, 0.56) 48%, rgba(8, 27, 52, 0.26) 100%);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero__copy {
    display: grid;
    align-content: center;
    gap: clamp(0.85rem, 1.5vw, 1.15rem);
    width: min(100%, 38.75rem);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.01;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero__lead {
    max-width: 38.75rem;
    margin: 0;
    font-size: clamp(1rem, 1.18vw, 1.08rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero__copy .button-row {
    margin-top: 0.2rem;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .button {
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
    border-radius: 0.35rem;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    box-shadow: none;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .button:hover,
:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .button:focus-visible {
    box-shadow: 0 12px 24px rgba(12, 32, 57, 0.1);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .button--secondary,
:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .button--ghost {
    border-color: rgba(19, 39, 63, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-deep);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .button--ghost-light {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .module-shell,
:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .page-bridge,
:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .split-showcase {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

@media (max-width: 960px) {
    :is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) {
        --internal-hero-height: 300px;
        --internal-page-inline: 1rem;
        --internal-section-space: clamp(2.6rem, 6vw, 3.4rem);
    }
}

@media (max-width: 640px) {
    :is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) {
        --internal-hero-height: clamp(320px, 94vw, 360px);
    }

    :is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .internal-hero__copy {
        width: 100%;
    }
}

.module-shell,
.split-showcase,
.page-bridge {
    padding: var(--shell-space);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow-soft);
}

.module-shell--soft {
    background: linear-gradient(180deg, rgba(244, 248, 251, 0.98) 0%, rgba(234, 242, 249, 0.92) 100%);
}

.module-shell--dark {
    background: linear-gradient(135deg, #12365f 0%, #184f8f 54%, #2f6fb3 100%);
    border-color: transparent;
    box-shadow: var(--shadow-strong);
}

.module-shell--dark .section-heading h2,
.module-shell--dark .eyebrow,
.module-shell--dark p,
.module-shell--dark h3,
.module-shell--dark .link-arrow {
    color: #fff;
}

.home-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 0.95rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.home-section-head__copy,
.home-impact__intro p,
.home-contact__copy,
.page-context__copy p + p,
.contact-visual__copy p + p {
    margin-top: 0.8rem;
}

.feature-grid,
.tile-grid,
.dark-panel-grid,
.split-showcase__grid,
.stack-grid,
.news-layout,
.story-grid,
.contact-layout,
.page-context__layout,
.home-impact {
    display: grid;
    gap: 1rem;
}

.feature-grid--home {
    grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 1fr));
}

.tile-grid--areas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile-grid--three,
.dark-panel-grid,
.story-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-impact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.news-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.news-layout__side,
.contact-layout__stack {
    display: grid;
    gap: 1rem;
}

.page-context__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.split-showcase__grid,
.contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.tile-card,
.dark-panel,
.split-panel,
.stack-card,
.news-card,
.story-card,
.page-bridge,
.contact-form-visual {
    min-height: 100%;
}

.feature-card,
.tile-card,
.dark-panel,
.split-panel,
.stack-card,
.news-card,
.story-card,
.contact-form-visual {
    padding: 1rem 0.95rem;
    border-radius: var(--radius-md);
}

.feature-card,
.tile-card,
.stack-card,
.news-card,
.story-card,
.contact-form-visual {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
}

.feature-card--lead,
.split-panel--dark,
.dark-panel {
    background: linear-gradient(160deg, rgba(17, 51, 90, 0.94) 0%, rgba(24, 79, 143, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.16);
}

.feature-card--lead h3,
.feature-card--lead p,
.feature-card--lead .feature-card__eyebrow,
.split-panel--dark h3,
.split-panel--dark p,
.split-panel--dark .split-panel__eyebrow,
.dark-panel h3,
.dark-panel p {
    color: #fff;
}

.story-card--light {
    background: rgba(255, 255, 255, 0.72);
}

.feature-card h3,
.tile-card h3,
.dark-panel h3,
.split-panel h3,
.stack-card h3,
.news-card h3,
.story-card h3 {
    margin-top: 0.65rem;
    font-size: 1rem;
    line-height: 1.15;
}

.tile-card--compact h3,
.story-card__tag + h3 {
    font-size: 1rem;
}

.feature-card p,
.tile-card p,
.dark-panel p,
.split-panel p,
.stack-card p,
.news-card p,
.story-card p {
    margin-top: 0.75rem;
}

.news-card__tag,
.story-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 0.3rem;
    background: rgba(24, 79, 143, 0.1);
}

.news-card--lead {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Editorial image normalization by public context */
.editorial-media-frame,
.feature-card__media,
.news-card__media,
.article-card__media,
.home-spotlight-card__media,
.home-news-mini__media,
.article-detail__figure {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24, 79, 143, 0.12) 0%, rgba(24, 79, 143, 0.04) 100%);
}
.editorial-media-frame > img,
.feature-card__media img,
.news-card__media img,
.article-card__media img,
.home-spotlight-card__media img,
.home-news-mini__media img,
.article-detail__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.feature-card__media,
.news-card__media,
.article-card__media,
.home-news-mini__media {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.feature-card__media,
.news-card__media,
.editorial-media-frame--news-lead,
.editorial-media-frame--news-mini {
    aspect-ratio: 16 / 10;
}

.home-editorial-card__body,
.news-card__body,
.home-preview-state {
    display: grid;
    gap: 0.7rem;
}

.news-card__tag--link {
    text-decoration: none;
}

.news-card__tag--link:hover,
.news-card__tag--link:focus-visible {
    color: var(--brand-deep);
}

.news-layout--single {
    grid-template-columns: 1fr;
}
.split-panel {
    background: linear-gradient(180deg, rgba(243, 247, 251, 0.98) 0%, rgba(233, 241, 248, 0.94) 100%);
    border: 1px solid var(--line);
}

.home-news__cta {
    justify-self: end;
    align-self: end;
}

.page-bridge {
    display: grid;
    gap: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8fc 100%);
}



.contact-visual {
    display: grid;
    gap: 1rem;
}

.contact-form-visual {
    display: grid;
    gap: 0.9rem;
    background: linear-gradient(180deg, rgba(19, 39, 63, 0.04) 0%, rgba(19, 39, 63, 0.08) 100%);
}

.contact-field {
    display: grid;
    gap: 0.35rem;
}

.contact-field label {
    color: var(--brand-deep);
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.24rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.contact-field textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.page-la-fundacion .page-context__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.page-centro-de-ideas .story-grid--three,
.page-noticias-novedades .story-grid--three {
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.85fr));
    grid-auto-rows: minmax(12.5rem, auto);
}

.page-centro-de-ideas .story-grid--three > :first-child,
.page-noticias-novedades .story-grid--three > :first-child {
    grid-row: span 2;
}

.page-programas-proyectos .page-context__layout,
.page-comunidad .page-context__layout {
    grid-template-columns: 1fr;
}

.page-programas-proyectos .page-showcase {
    background: linear-gradient(135deg, rgba(18, 54, 95, 0.97) 0%, rgba(24, 79, 143, 0.92) 100%);
    border-color: transparent;
    box-shadow: var(--shadow-strong);
}

.page-programas-proyectos .page-showcase .eyebrow,
.page-programas-proyectos .page-showcase h2,
.page-programas-proyectos .page-showcase h3,
.page-programas-proyectos .page-showcase p,
.page-programas-proyectos .page-showcase .story-card__tag,
.page-programas-proyectos .page-showcase .button {
    color: #fff;
}

.page-programas-proyectos .page-showcase .story-card,
.page-programas-proyectos .page-showcase .button--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.page-comunidad .tile-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-impacto .page-context__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.page-impacto .tile-grid--three {
    grid-template-columns: 1fr;
}

.page-contacto .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
    .site-header {
        padding-inline: 1rem;
    }

    .site-header__inner,
    .site-footer__inner,
    .page-context__layout,
    .home-section-head,
    .home-impact,
    .news-layout,
    .split-showcase__grid,
    .contact-layout,
    .internal-hero__layout {
        grid-template-columns: 1fr;
    }

    .feature-grid--home,
    .tile-grid--areas,
    .tile-grid--four,
    .tile-grid--three,
    .dark-panel-grid,
    .story-grid--three,
    .story-grid--two,
    .page-comunidad .tile-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-news__cta {
        justify-self: start;
    }

    .site-footer__nav-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-centro-de-ideas .story-grid--three > :first-child,
    .page-noticias-novedades .story-grid--three > :first-child {
        grid-row: auto;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 4rem;
    }

    html {
        scroll-padding-top: calc(var(--header-height) + 0.65rem);
    }

    .site-header {
        padding: 0 0.85rem;
    }

    .site-header__inner {
        grid-template-columns: auto auto;
        gap: 0.75rem;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-navigation,
    .site-actions {
        display: none;
    }

    .site-header__inner.menu-active .site-navigation,
    .site-header__inner.menu-active .site-actions {
        display: grid;
        grid-column: 1 / -1;
    }

    .site-header__inner.menu-active .site-navigation {
        padding-top: 0.45rem;
    }

    .site-header__inner.menu-active .site-navigation__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-header__inner.menu-active .site-actions {
        gap: 0.45rem;
        padding-top: 0.25rem;
    }

    .site-header__inner.menu-active .menu-toggle span:nth-child(1) {
        transform: translateY(0.4rem) rotate(45deg);
    }

    .site-header__inner.menu-active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header__inner.menu-active .menu-toggle span:nth-child(3) {
        transform: translateY(-0.4rem) rotate(-45deg);
    }

    .section,
    .site-footer {
        padding-inline: 0.85rem;
    }

    .home-hero,
    .internal-hero {
        border-radius: 0;
    }

    .home-hero__layout,
    .internal-hero__layout {
        padding: 4.2rem 1.05rem 1rem;
    }

    .home-hero h1 {
        max-width: none;
        font-size: clamp(2.2rem, 9vw, 3.05rem);
    }

    .internal-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.15rem);
    }

    .feature-grid--home,
    .tile-grid--areas,
    .tile-grid--four,
    .tile-grid--three,
    .dark-panel-grid,
    .story-grid--three,
    .story-grid--two,
    .page-comunidad .tile-grid--four,
    .site-footer__nav-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .utility-link,
    .button {
        width: 100%;
    }

    .button-row,
    .button-row--stack {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__lead,
    .internal-hero__lead,
    p {
        line-height: 1.58;
    }

    .section-heading h2,
    .page-bridge h2 {
        font-size: clamp(1.4rem, 6.7vw, 1.9rem);
    }
}
.article-listing-shell,
.article-detail-shell {
    display: grid;
    gap: 1rem;
}

.article-listing-grid,
.article-fact-card__items {
    display: grid;
    gap: 1rem;
}

.article-card,
.article-detail__panel,
.article-detail__body,
.article-video-shell,
.article-state,
.article-gallery-shell {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.article-card {
    display: grid;
    grid-template-columns: minmax(15rem, 0.82fr) minmax(0, 1fr);
    overflow: hidden;
}

.article-card__media,
.editorial-media-frame--listing {
    min-height: 100%;
    aspect-ratio: 16 / 11;
}

.article-detail__figure,
.editorial-media-frame--detail {
    aspect-ratio: 16 / 9;
    max-height: min(42rem, 70vh);
}

.article-author-card__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__content,
.article-detail__panel,
.article-detail__body,
.article-video-shell,
.article-state,
.article-gallery-shell {
    padding: 1rem;
}

.article-card__content {
    display: grid;
    align-content: start;
    gap: 0.7rem;
}

.article-card h3,
.article-detail__panel h3,
.article-detail__panel h2,
.article-state h3 {
    font-size: 1.14rem;
    line-height: 1.14;
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible {
    color: var(--brand);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.article-meta--stack {
    display: grid;
}

.article-meta__item {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.38rem 0.62rem;
    background: rgba(19, 39, 63, 0.05);
    border: 1px solid rgba(19, 39, 63, 0.08);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.article-meta__item--accent {
    background: rgba(24, 79, 143, 0.1);
    color: var(--brand);
}

.article-state {
    gap: 0.7rem;
    box-shadow: var(--shadow-soft);
}

.article-state h2 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.article-detail__lead {
    display: grid;
    gap: 1rem;
}

.article-detail__lead--with-media {
    grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.75fr);
    align-items: start;
}

.article-detail__lead-aside {
    min-width: 0;
}

.article-detail__figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.article-detail__panel--editorial {
    display: grid;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
}

.article-detail__panel-eyebrow,
.article-detail__subhead {
    margin: 0;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-detail__panel--editorial h2 {
    margin-top: -0.35rem;
}

.article-detail__nav {
    align-items: stretch;
}

.article-detail__author-block {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
}

.article-detail__inline-link,
.article-fact-card__link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.article-detail__inline-link:hover,
.article-detail__inline-link:focus-visible,
.article-fact-card__link:hover,
.article-fact-card__link:focus-visible {
    color: var(--brand-deep);
    text-decoration: underline;
}

.article-detail__body {
    box-shadow: var(--shadow-soft);
}

.article-detail__body--full {
    width: 100%;
}

.article-rich-text {
    display: grid;
    gap: 0.95rem;
}

.article-rich-text h2,
.article-rich-text h3,
.article-rich-text h4,
.article-rich-text h5,
.article-rich-text h6 {
    margin-top: 0.25rem;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.article-rich-text p,
.article-rich-text li,
.article-author-card__copy p,
.article-fact-card__items p {
    color: var(--ink-soft);
}

.article-rich-text ul,
.article-rich-text ol,
.article-fact-card__items {
    margin: 0;
    padding-left: 1.2rem;
}

.article-rich-text blockquote {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(24, 79, 143, 0.25);
    color: var(--ink);
}

.article-rich-text a {
    color: var(--brand);
    font-weight: 700;
}

.article-author-card__content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.article-author-card__avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    border: 1px solid rgba(19, 39, 63, 0.08);
}

.article-author-card__copy,
.article-video-shell {
    display: grid;
    gap: 0.7rem;
}

.article-author-card__name {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}

.article-fact-card__items {
    padding-left: 0;
}

.article-fact-card__items--compact {
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
}

.article-ai-note {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(24, 79, 143, 0.16);
    background: rgba(24, 79, 143, 0.06);
    color: var(--brand-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

.article-video-shell {
    box-shadow: var(--shadow-soft);
}

.article-video-frame {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #0f2f59;
}

.article-video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.page-articulo-detalle .internal-hero__media img {
    object-position: center center;
}

.page-articulo-detalle .internal-hero__layout--article {
    grid-template-columns: 1fr;
    align-items: center;
    padding-top: clamp(4rem, 7vw, 5rem);
    padding-bottom: clamp(2.5rem, 4vw, 3.2rem);
}

.page-articulo-detalle .internal-hero__copy {
    max-width: 48rem;
}

.page-articulo-detalle .internal-hero h1 {
    max-width: 18ch;
}

@media (max-width: 700px) {
    .article-card,
    .article-detail__lead--with-media {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .article-author-card__content {
        grid-template-columns: 1fr;
    }

    .article-author-card__avatar {
        width: 4rem;
        height: 4rem;
    }

    .article-detail__nav {
        align-items: stretch;
    }
}

.article-gallery-shell {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.article-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.article-gallery-card {
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.article-gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.article-gallery-card figcaption {
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.cms-section__layout {
    display: grid;
    gap: 1rem;
    align-items: center;
}

.cms-section__layout--media {
    grid-template-columns: minmax(0, 1.08fr) minmax(15rem, 0.92fr);
}

.cms-section__layout--media-reverse .cms-section__media {
    order: -1;
}

.cms-section__copy {
    display: grid;
    gap: 0.95rem;
}

.cms-section__excerpt {
    font-size: 1rem;
    color: var(--ink);
}

.cms-section__body {
    display: grid;
    gap: 0.95rem;
}

.cms-section__media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(24, 79, 143, 0.12) 0%, rgba(24, 79, 143, 0.04) 100%);
    box-shadow: var(--shadow-soft);
}

.cms-section__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (max-width: 700px) {
    .cms-section__layout--media {
        grid-template-columns: 1fr;
    }

    .cms-section__layout--media-reverse .cms-section__media {
        order: 0;
    }
}
.article-meta__link,
.article-fact-card__link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.article-meta__link:hover,
.article-meta__link:focus-visible,
.article-fact-card__link:hover,
.article-fact-card__link:focus-visible {
    color: var(--brand);
    text-decoration: underline;
}

.archive-summary-shell,
.article-related-shell {
    display: grid;
    gap: 1rem;
}

.archive-summary__copy {
    display: grid;
    gap: 0.7rem;
}

.archive-author-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.archive-author-card__avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.96);
}

.archive-author-card__copy {
    display: grid;
    gap: 0.75rem;
}

.archive-author-card__copy h3 {
    font-size: 1.2rem;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.article-card--compact {
    grid-template-columns: 1fr;
}

.article-card--compact .article-card__media,
.article-card--compact .editorial-media-frame--listing {
    aspect-ratio: 16 / 10;
}

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

@media (max-width: 560px) {
    .archive-author-card {
        grid-template-columns: 1fr;
    }

    .archive-author-card__avatar {
        width: 5rem;
        height: 5rem;
    }
}
.contact-form {
    gap: 1rem;
}

.contact-notice {
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink-soft);
}

.contact-notice--success {
    border-color: rgba(21, 115, 71, 0.18);
    background: rgba(21, 115, 71, 0.08);
    color: #165936;
}

.contact-notice--warning {
    border-color: rgba(154, 103, 0, 0.18);
    background: rgba(154, 103, 0, 0.08);
    color: #7a5300;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-field__error {
    color: #a33f00;
    font-size: 0.88rem;
    line-height: 1.45;
}

.home-hero {
    min-height: clamp(33rem, 75vh, 41rem);
}

.home-hero__layout {
    padding-top: clamp(3.6rem, 6vw, 4.7rem);
    padding-bottom: clamp(2.8rem, 5vw, 3.8rem);
}

.home-hero__copy {
    width: min(100%, 40rem);
}

.home-portal {
    margin-top: clamp(-1.35rem, -2vw, -0.45rem);
    position: relative;
    z-index: 2;
}

.home-portal__shell,
.home-news-shell,
.home-contact-band__shell {
    padding: clamp(1.15rem, 2.2vw, 1.7rem);
}

.home-portal__shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(247, 250, 253, 0.97) 100%);
    box-shadow: 0 24px 58px rgba(12, 32, 57, 0.12);
}

.home-portal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(19.5rem, 0.78fr);
    gap: clamp(1rem, 1.8vw, 1.35rem);
    align-items: stretch;
}

.home-spotlight,
.home-quick-access,
.home-news-shell,
.home-contact-band__shell,
.home-spotlight-card,
.home-quick-card,
.home-news-mini {
    display: grid;
    gap: 1rem;
}

.home-spotlight,
.home-quick-access {
    align-content: start;
}

.home-spotlight {
    grid-template-rows: auto 1fr auto;
    height: 100%;
    gap: 0.9rem;
}

.home-spotlight__head,
.home-quick-access__head,
.home-news-shell__head,
.home-contact-band__copy,
.home-news-preview__side {
    display: grid;
    gap: 0.55rem;
}

.home-spotlight-card,
.home-quick-access,
.home-news-mini {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-md);
}

.home-spotlight-card,
.home-news-shell,
.home-contact-band__shell--firm {
    box-shadow: var(--shadow-soft);
}

.home-spotlight__head {
    max-width: 42rem;
}

.home-spotlight__head h3 {
    font-size: clamp(1.55rem, 2.4vw, 2.08rem);
    line-height: 1.04;
}

.home-quick-access__head h3,
.home-news-shell__head .section-heading h2,
.home-contact-band__copy h2 {
    margin-top: 0;
    font-size: clamp(1.28rem, 1.8vw, 1.68rem);
    line-height: 1.08;
}

.home-spotlight-card__media {
    display: block;
    overflow: hidden;
    min-height: 100%;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(24, 79, 143, 0.12) 0%, rgba(24, 79, 143, 0.04) 100%);
}

.home-spotlight-card {
    grid-template-columns: minmax(0, 1.16fr) minmax(18rem, 0.84fr);
    min-height: clamp(20rem, 34vw, 24rem);
    gap: 0;
    height: 100%;
    overflow: hidden;
    border-color: rgba(19, 39, 63, 0.16);
    box-shadow: 0 22px 54px rgba(12, 32, 57, 0.14);
}

.editorial-media-frame--spotlight {
    min-height: 100%;
}
.home-spotlight-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.home-spotlight-card__body,
.home-quick-access__grid,
.home-news-preview {
    display: grid;
    gap: 1rem;
}

.home-spotlight-card__body {
    padding: 1.25rem 1.3rem;
    align-content: start;
    gap: 0.7rem;
}

.home-spotlight-card__body h4 {
    font-size: clamp(1.32rem, 1.95vw, 1.62rem);
    line-height: 1.08;
}

.home-spotlight-card__body p,
.home-contact-band__copy p,
.home-news-shell__copy {
    max-width: 42rem;
}

.home-spotlight__actions {
    margin-top: auto;
}

.home-quick-access {
    padding: 1rem 1rem 0.95rem;
    background: linear-gradient(180deg, rgba(244, 248, 251, 0.99) 0%, rgba(237, 244, 249, 0.96) 100%);
    align-content: start;
    gap: 0.7rem;
}

.home-quick-access__head p,
.home-quick-access__head h3,
.home-quick-access__head > p:last-child {
    max-width: 20rem;
}

.home-quick-access__grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.home-quick-card {
    min-height: 100%;
    gap: 0.28rem;
    padding: 0.58rem 0 0.68rem;
    border-top: 1px solid var(--line);
}

.home-quick-access__grid > .home-quick-card:first-child {
    padding-top: 0;
    border-top: 0;
}

.home-quick-card__eyebrow {
    margin: 0;
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-quick-card h4,
.home-news-mini h4 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.14;
}

.home-quick-card p,
.home-news-mini p {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.42;
}

.home-quick-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-quick-card .link-arrow,
.home-news-mini .link-arrow {
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.home-news-shell {
    gap: 1rem;
}

.home-news-shell__head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem 1rem;
    align-items: end;
}

.home-news-shell__copy {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.93rem;
    max-width: 40rem;
}

.home-news-shell__cta {
    justify-self: end;
}

.home-news-preview {
    grid-template-columns: minmax(0, 1.18fr) minmax(15rem, 0.82fr);
    gap: 0.95rem 1rem;
    align-items: start;
}

.home-news-preview--single {
    grid-template-columns: 1fr;
    max-width: 34rem;
}

.home-news-preview__side {
    align-content: start;
}

.home-news-mini {
    gap: 0.55rem;
    padding: 0.85rem 0.95rem;
}
.home-news-mini__media {
    aspect-ratio: 16 / 10;
    margin-bottom: 0.05rem;
}

.home-preview-state {
    max-width: 42rem;
}

.home-preview-state--editorial,
.home-preview-state--news {
    padding: 0.95rem 1rem;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 248, 251, 0.96) 100%);
    box-shadow: none;
}

.home-preview-state--news {
    max-width: 33rem;
    gap: 0.55rem;
}

.home-preview-state h3,
.home-preview-state h4 {
    font-size: clamp(1.02rem, 1.3vw, 1.16rem);
    line-height: 1.18;
}

.home-contact-band__shell {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.75rem;
}

.home-contact-band__shell--firm {
    background: linear-gradient(135deg, rgba(18, 54, 95, 0.06) 0%, rgba(255, 255, 255, 0.99) 40%, rgba(243, 248, 252, 0.96) 100%);
    border-top: 4px solid rgba(24, 79, 143, 0.36);
}

.home-contact-band__copy {
    max-width: 32rem;
}

.home-contact-band__actions {
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .home-portal {
        margin-top: clamp(-0.55rem, -1vw, -0.2rem);
    }

    .home-portal__grid,
    .home-news-preview,
    .home-contact-band__shell,
    .home-news-shell__head,
    .home-spotlight-card {
        grid-template-columns: 1fr;
    }

    .home-spotlight-card {
        min-height: auto;
    }

    .home-spotlight-card__media {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .editorial-media-frame--spotlight {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .home-quick-access__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
    }

    .home-quick-access__grid > .home-quick-card {
        padding-top: 0;
        border-top: 0;
    }

    .home-news-shell__cta,
    .home-contact-band__actions {
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .home-portal {
        margin-top: 0;
    }

    .home-hero__copy {
        transform: translateY(-0.45rem);
    }

    .home-hero__layout {
        padding-top: 3.7rem;
        padding-bottom: 1.7rem;
    }

    .home-portal__shell,
    .home-news-shell,
    .home-contact-band__shell {
        padding: 1rem;
    }

    .home-quick-access__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-quick-access__grid > .home-quick-card {
        padding-top: 0.72rem;
        border-top: 1px solid var(--line);
    }

    .home-quick-access__grid > .home-quick-card:first-child {
        padding-top: 0;
        border-top: 0;
    }
}

.page-articulo-detalle .internal-hero--article-fixed {
    min-height: clamp(14.5rem, 32vh, 18.5rem);
    background:
        radial-gradient(circle at top right, rgba(216, 154, 57, 0.14), transparent 26%),
        linear-gradient(135deg, #0d2748 0%, #12365f 52%, #184f8f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-articulo-detalle .internal-hero--article-fixed::before,
.page-articulo-detalle .internal-hero--article-fixed::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-articulo-detalle .internal-hero--article-fixed::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 2px, transparent 2px, transparent 14px);
    opacity: 0.55;
}

.page-articulo-detalle .internal-hero--article-fixed::after {
    background: linear-gradient(90deg, rgba(7, 20, 39, 0.08) 0%, rgba(7, 20, 39, 0) 58%);
}

.page-articulo-detalle .internal-hero__layout--article {
    grid-template-columns: 1fr;
    align-items: center;
    padding-top: clamp(4rem, 7vw, 5rem);
    padding-bottom: clamp(2rem, 4vw, 2.8rem);
}

.page-articulo-detalle .internal-hero--article-fixed .internal-hero__copy {
    display: grid;
    gap: 0.7rem;
    max-width: 54rem;
}

.page-articulo-detalle .internal-hero--article-fixed .breadcrumb {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.page-articulo-detalle .internal-hero--article-fixed h1 {
    max-width: 20ch;
    font-size: clamp(1.95rem, 3vw, 2.9rem);
    line-height: 1.02;
}

.page-articulo-detalle .internal-hero--article-fixed .internal-hero__lead {
    max-width: 44rem;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.92);
}

.article-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    color: #f4cf92;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.article-hero__meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.article-detail-shell {
    gap: clamp(1rem, 2vw, 1.35rem);
}

.article-detail__lead {
    gap: clamp(1rem, 2vw, 1.25rem);
}

.article-detail__lead--with-media {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.72fr);
}

.article-detail__lead:not(.article-detail__lead--with-media) .article-detail__lead-aside {
    width: min(100%, 29rem);
}

.article-detail__figure {
    background: linear-gradient(180deg, rgba(24, 79, 143, 0.1) 0%, rgba(24, 79, 143, 0.03) 100%);
}

@media (max-width: 820px) {
    .page-articulo-detalle .internal-hero--article-fixed {
        min-height: clamp(13rem, 28vh, 16rem);
    }

    .page-articulo-detalle .internal-hero__layout--article {
        padding-top: 3.8rem;
        padding-bottom: 1.6rem;
    }

    .page-articulo-detalle .internal-hero--article-fixed h1 {
        max-width: none;
        font-size: clamp(1.75rem, 7vw, 2.3rem);
    }
}

@media (max-width: 560px) {
    .article-hero__meta {
        flex-direction: column;
        align-items: stretch;
    }

    .article-hero__meta-item {
        width: 100%;
        justify-content: flex-start;
    }

    .page-articulo-detalle .internal-hero--article-fixed .internal-hero__lead {
        max-width: none;
    }
}

/* Stage 041 article hero start */
.page-articulo-detalle .internal-hero--article-fixed {
    min-height: clamp(12.2rem, 24vh, 14.8rem);
}

.page-articulo-detalle .internal-hero__layout--article {
    padding-top: clamp(3.1rem, 5vw, 3.85rem);
    padding-bottom: clamp(1.35rem, 2.8vw, 1.85rem);
}

.page-articulo-detalle .internal-hero--article-fixed .internal-hero__copy {
    gap: 0.72rem;
    max-width: 46rem;
}

.page-articulo-detalle .internal-hero--article-fixed h1 {
    max-width: 24ch;
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
}

.page-articulo-detalle .internal-hero--article-fixed .internal-hero__lead {
    max-width: 42rem;
    font-size: 0.95rem;
}

.article-hero__meta {
    gap: 0.45rem;
}

.article-hero__meta-item {
    min-height: 1.85rem;
    padding: 0.34rem 0.58rem;
    font-size: 0.74rem;
}

.article-rich-text table,
.cms-section__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.article-rich-text th,
.article-rich-text td,
.cms-section__body th,
.cms-section__body td {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line-strong);
    vertical-align: top;
}

.article-rich-text th,
.cms-section__body th {
    text-align: left;
    color: var(--ink);
    background: rgba(24, 79, 143, 0.08);
}

.article-rich-text .is-text-left,
.cms-section__body .is-text-left {
    text-align: left;
}

.article-rich-text .is-text-center,
.cms-section__body .is-text-center {
    text-align: center;
}

.article-rich-text .is-text-right,
.cms-section__body .is-text-right {
    text-align: right;
}

.article-rich-text .is-text-justify,
.cms-section__body .is-text-justify {
    text-align: justify;
}

@media (max-width: 820px) {
    .page-articulo-detalle .internal-hero--article-fixed {
        min-height: clamp(11.4rem, 22vh, 13.2rem);
    }

    .page-articulo-detalle .internal-hero__layout--article {
        padding-top: 3.2rem;
        padding-bottom: 1.3rem;
    }
}
/* Stage 041 article hero end */

/* Stage 042 editorial archive start */
.home-spotlight__module {
    display: grid;
    gap: 1rem;
}

.home-spotlight-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.home-spotlight-brief {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
}

.home-spotlight-brief h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
}

.home-spotlight-brief p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.editorial-archive {
    display: grid;
    gap: 1rem;
}

.editorial-archive__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.editorial-archive__grid--news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card--feature {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.85fr);
}

.article-card--feature .article-card__media,
.article-card--feature .editorial-media-frame--listing {
    aspect-ratio: 16 / 10;
}

.article-card--feature h3 {
    font-size: clamp(1.28rem, 1.9vw, 1.55rem);
}

.article-card--stack {
    grid-template-columns: 1fr;
}

.article-card--stack .article-card__media,
.article-card--stack .editorial-media-frame--listing {
    aspect-ratio: 16 / 10;
}

@media (max-width: 700px) {
    .home-spotlight-rail,
    .editorial-archive__grid,
    .editorial-archive__grid--news,
    .article-card--feature {
        grid-template-columns: 1fr;
    }
}
/* Stage 042 editorial archive end */

/* Stage 043 visual refinement start */
.home-portal__shell {
    padding: clamp(1rem, 1.7vw, 1.3rem);
}

.home-portal__grid {
    grid-template-columns: minmax(0, 1.52fr) minmax(17rem, 0.72fr);
    gap: clamp(1.1rem, 1.9vw, 1.5rem);
}

.home-spotlight {
    gap: 0.78rem;
}

.home-spotlight__head {
    max-width: 38rem;
    gap: 0.45rem;
}

.home-spotlight__head h3 {
    font-size: clamp(1.42rem, 2vw, 1.86rem);
}

.home-spotlight__module {
    gap: 0.9rem;
}

.home-spotlight-card__body {
    gap: 0.72rem;
    padding: 1rem 1.05rem;
}

.home-spotlight-card__body p,
.home-spotlight-brief p,
.home-news-mini p,
.article-card--feature .article-card__content > p,
.article-card--stack .article-card__content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.home-spotlight-card__body p {
    -webkit-line-clamp: 3;
}

.home-spotlight-rail {
    gap: 1rem;
}

.home-spotlight-brief {
    gap: 0.58rem;
    min-height: 100%;
    padding: 0.95rem 1rem 1rem;
    box-shadow: 0 10px 22px rgba(12, 32, 57, 0.06);
}

.home-spotlight-brief p {
    -webkit-line-clamp: 3;
}

.home-quick-access {
    padding: 0.95rem 1rem 1rem;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98) 0%, rgba(240, 246, 250, 0.96) 100%);
}

.home-quick-access__head {
    gap: 0.4rem;
}

.home-quick-access__head > p:last-child {
    max-width: none;
    font-size: 0.92rem;
}

.home-quick-access__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-quick-card {
    gap: 0.35rem;
    padding: 0.8rem 0.85rem 0.88rem;
    border: 1px solid rgba(24, 79, 143, 0.1);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
}

.home-quick-access__grid > .home-quick-card:first-child {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(24, 79, 143, 0.1);
}

.home-quick-card h4 {
    font-size: 0.94rem;
    line-height: 1.18;
}

.home-quick-card__excerpt {
    -webkit-line-clamp: 3;
}

.home-news-shell {
    gap: 1.1rem;
}

.home-news-shell__head {
    align-items: center;
}

.home-news-preview {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem 1rem;
}

.home-news-preview__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.home-news-preview__side > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.home-news-mini {
    gap: 0.45rem;
    min-height: 100%;
    padding: 0.85rem 0.9rem 0.95rem;
}

.home-news-mini p {
    -webkit-line-clamp: 3;
}

.home-contact-band__shell--firm {
    position: relative;
    overflow: hidden;
    gap: 1rem 1.25rem;
    background: linear-gradient(130deg, rgba(13, 39, 72, 0.06) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(232, 241, 248, 0.98) 100%);
    border: 1px solid rgba(24, 79, 143, 0.12);
    border-top-width: 4px;
}

.home-contact-band__shell--firm::after {
    content: '';
    position: absolute;
    inset: auto -2rem -2rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 79, 143, 0.12) 0%, rgba(24, 79, 143, 0) 72%);
    pointer-events: none;
}

.home-contact-band__copy {
    gap: 0.4rem;
    max-width: 34rem;
}

.home-contact-band__copy p:last-child {
    font-size: 0.98rem;
}

.home-contact-band__actions .button {
    box-shadow: 0 12px 24px rgba(12, 32, 57, 0.1);
}

.editorial-archive {
    gap: 1.2rem;
}

.editorial-archive__grid,
.editorial-archive__grid--news,
.editorial-archive__grid--centro {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}

.editorial-archive__grid--centro {
    grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
}

.article-card--feature {
    grid-template-columns: minmax(0, 1.22fr) minmax(17rem, 0.78fr);
}

.article-card--feature .article-card__content,
.article-card--stack .article-card__content {
    gap: 0.72rem;
}

.article-card--feature .article-card__content > p {
    -webkit-line-clamp: 4;
}

.article-card--stack {
    min-height: 100%;
}

.article-card--stack .article-card__content > p {
    -webkit-line-clamp: 3;
}

.page-bridge {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.99) 0%, rgba(242, 247, 251, 0.98) 100%);
    box-shadow: var(--shadow-soft);
}

.page-bridge p {
    margin: 0;
    max-width: 36rem;
}

@media (max-width: 700px) {
    .home-news-preview__side,
    .editorial-archive__grid--centro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-quick-access__grid,
    .home-news-preview__side,
    .editorial-archive__grid,
    .editorial-archive__grid--news,
    .editorial-archive__grid--centro,
    .page-bridge {
        grid-template-columns: 1fr;
    }

    .home-news-preview__side > :last-child:nth-child(odd) {
        grid-column: auto;
    }

    .home-quick-card,
    .home-contact-band__shell--firm {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}
/* Stage 043 visual refinement end */

/* Stage 044 final visual refinement start */
.home-portal__shell,
.home-news-shell,
.home-contact-band__shell {
    padding: clamp(1rem, 1.9vw, 1.45rem);
}

.home-portal__grid {
    grid-template-columns: minmax(0, 1.58fr) minmax(17rem, 0.68fr);
    gap: clamp(1.15rem, 1.9vw, 1.45rem);
}

.home-spotlight {
    gap: 0.7rem;
}

.home-spotlight__head {
    max-width: 36rem;
    gap: 0.45rem;
}

.home-spotlight__head > p:last-child,
.home-news-shell__copy {
    max-width: 34rem;
    font-size: 0.92rem;
}

.home-spotlight__module {
    gap: 0.9rem;
}

.home-spotlight-card {
    grid-template-columns: minmax(0, 1.22fr) minmax(17rem, 0.78fr);
    min-height: clamp(17.4rem, 29vw, 20rem);
}

.home-spotlight-card__body {
    padding: 1.05rem 1.15rem;
    gap: 0.75rem;
}

.home-spotlight-card__body h4 {
    font-size: clamp(1.24rem, 1.7vw, 1.48rem);
}

.home-spotlight-rail {
    gap: 0.9rem;
}

.home-spotlight-brief {
    align-content: start;
    gap: 0.6rem;
    padding: 1rem 1.05rem;
}

.home-spotlight-brief p,
.home-news-mini p,
.article-card--stack .article-card__content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.home-spotlight-brief p {
    -webkit-line-clamp: 2;
}

.home-quick-access {
    padding: 0.95rem 1rem 1rem;
    gap: 0.8rem;
}

.home-quick-access__head {
    gap: 0.45rem;
}

.home-quick-access__head > p:last-child {
    font-size: 0.9rem;
}

.home-quick-access__grid {
    gap: 0.7rem;
}

.home-quick-card {
    gap: 0.32rem;
    padding: 0.78rem 0.82rem 0.85rem;
}

.home-quick-card__excerpt {
    -webkit-line-clamp: 2;
}

.home-news-shell {
    gap: 0.95rem;
}

.home-news-shell__head {
    gap: 0.6rem 1rem;
    align-items: end;
}

.home-news-preview {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    gap: 0.9rem 1rem;
    align-items: stretch;
}

.news-card--lead {
    min-height: 100%;
}

.news-card--lead .news-card__body {
    gap: 0.65rem;
    padding: 1.05rem 1.1rem;
}

.home-news-preview__side {
    gap: 0.75rem;
}

.home-news-mini {
    gap: 0.42rem;
    padding: 0.8rem 0.86rem 0.9rem;
}

.home-news-mini p {
    -webkit-line-clamp: 2;
}

.home-contact-band__shell--firm {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.1rem 1.2rem;
    border-top-width: 5px;
    background: linear-gradient(138deg, rgba(12, 34, 63, 0.07) 0%, rgba(255, 255, 255, 0.985) 44%, rgba(231, 241, 248, 0.985) 100%);
    box-shadow: 0 22px 48px rgba(12, 32, 57, 0.12);
}

.home-contact-band__copy {
    max-width: 30rem;
    gap: 0.32rem;
}

.home-contact-band__copy p:last-child {
    max-width: 30rem;
    font-size: 0.94rem;
}

.home-contact-band__actions {
    align-self: center;
}

.home-contact-band__actions .button {
    min-width: 12.5rem;
    justify-content: center;
}

.article-listing-shell__head {
    align-items: end;
    gap: 0.9rem 1.2rem;
}

.article-listing-shell__count {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.editorial-archive {
    gap: 1rem;
}

.editorial-archive--centro .article-card--feature,
.editorial-archive--news .article-card--feature {
    grid-template-columns: minmax(0, 1.32fr) minmax(18rem, 0.74fr);
}

.editorial-archive--centro .article-card--feature .article-card__content,
.editorial-archive--news .article-card--feature .article-card__content {
    padding: 1.15rem 1.2rem;
    gap: 0.68rem;
}

.editorial-archive--centro .article-card--feature h3,
.editorial-archive--news .article-card--feature h3 {
    font-size: clamp(1.34rem, 1.9vw, 1.64rem);
}

.editorial-archive--centro .article-card--feature .article-card__content > p,
.editorial-archive--news .article-card--feature .article-card__content > p {
    -webkit-line-clamp: 3;
}

.article-card--stack .article-card__content {
    gap: 0.66rem;
}

.article-card--stack .article-card__content > p {
    -webkit-line-clamp: 2;
}

.page-bridge {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.95rem 1.4rem;
    padding: 1.05rem 1.15rem;
}

.page-bridge h2 {
    max-width: 18ch;
}

.page-bridge p {
    max-width: 34rem;
    font-size: 0.94rem;
}

@media (min-width: 1081px) {
    .editorial-archive__grid--centro,
    .editorial-archive__grid--news {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .editorial-archive__grid--centro > .article-card,
    .editorial-archive__grid--news > .article-card {
        grid-column: span 4;
    }

}

@media (max-width: 700px) {
    .home-portal__grid,
    .home-news-preview,
    .home-contact-band__shell--firm,
    .article-listing-shell__head,
    .page-bridge {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .home-news-shell__head {
        grid-template-columns: 1fr;
    }

    .article-listing-shell__count {
        justify-self: start;
    }
}
/* Stage 044 final visual refinement end */

/* Stage 047A home + contacto rescue start */
.home-centro-access {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(24, 79, 143, 0.12);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(245, 249, 252, 0.99) 0%, rgba(236, 244, 249, 0.97) 100%);
    box-shadow: var(--shadow-soft);
}

.home-centro-access__head,
.home-centro-access__list,
.home-contact-band__intro,
.home-contact-band__topics,
.home-contact-band__form,
.home-contact-band__form-copy,
.article-listing-shell__filter-bar {
    display: grid;
    gap: 0.75rem;
}

.home-centro-access__head {
    gap: 0.45rem;
}

.home-centro-access__head > p:last-child {
    margin: 0;
    max-width: 20rem;
    font-size: 0.92rem;
}

.home-centro-access__list {
    gap: 0.72rem;
}

.home-centro-topic {
    display: grid;
    gap: 0.18rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid rgba(24, 79, 143, 0.12);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.94);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-centro-topic:hover,
.home-centro-topic:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(24, 79, 143, 0.28);
    box-shadow: 0 14px 28px rgba(12, 32, 57, 0.08);
}

.home-centro-topic__name {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.18;
    color: var(--ink);
}

.home-centro-topic__meta {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.home-centro-access__actions {
    margin-top: auto;
}

.home-news-rotator {
    --news-cards-per-view: 4;
    display: grid;
    gap: 0.9rem;
}

.home-news-rotator__controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.home-news-rotator__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(24, 79, 143, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand);
    box-shadow: 0 12px 24px rgba(12, 32, 57, 0.08);
    cursor: pointer;
}

.home-news-rotator__control:hover,
.home-news-rotator__control:focus-visible {
    border-color: rgba(24, 79, 143, 0.34);
}

.home-news-rotator__control:disabled {
    opacity: 0.45;
    cursor: default;
    box-shadow: none;
}

.home-news-rotator__viewport {
    overflow: hidden;
}

.home-news-rotator__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--news-cards-per-view) - 1) * 0.95rem) / var(--news-cards-per-view));
    gap: 0.95rem;
    transition: transform 360ms ease;
    will-change: transform;
}

.home-news-slide {
    min-width: 0;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid rgba(19, 39, 63, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.home-news-slide__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(24, 79, 143, 0.12) 0%, rgba(24, 79, 143, 0.04) 100%);
}

.home-news-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-slide__media.is-empty {
    display: grid;
    place-items: center;
}

.home-news-slide__placeholder {
    padding: 1rem;
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.home-news-slide__body {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 0.95rem 1rem 1rem;
}

.home-news-slide__tag {
    margin: 0;
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-news-slide__body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.16;
}

.home-news-slide__body h3 a {
    color: inherit;
    text-decoration: none;
}

.home-news-slide__body h3 a:hover,
.home-news-slide__body h3 a:focus-visible {
    color: var(--brand);
}

.home-news-slide__body > p:last-of-type {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-contact-band__shell--form {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 1.15rem 1.35rem;
    padding: 1.15rem 1.2rem;
    border-top-width: 5px;
    background: linear-gradient(138deg, rgba(12, 34, 63, 0.07) 0%, rgba(255, 255, 255, 0.985) 44%, rgba(231, 241, 248, 0.985) 100%);
    box-shadow: 0 22px 48px rgba(12, 32, 57, 0.12);
}

.home-contact-band__intro {
    align-content: start;
    gap: 1rem;
}

.home-contact-band__copy {
    max-width: 32rem;
}

.home-contact-band__copy p:last-child,
.home-contact-band__form-copy p {
    margin: 0;
    font-size: 0.95rem;
}

.home-contact-band__topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-contact-topic {
    display: grid;
    gap: 0.28rem;
    min-height: 100%;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(24, 79, 143, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
}

.home-contact-topic h3 {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.18;
}

.home-contact-topic p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-contact-band__form {
    align-content: start;
}

.contact-form--home {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(19, 39, 63, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.contact-form--home .button {
    width: 100%;
    justify-content: center;
}

.article-listing-shell__filter-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem 1rem;
    margin-bottom: 0.2rem;
}

.article-listing-shell__filter-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 700px) {
    .home-news-rotator {
        --news-cards-per-view: 2;
    }

    .home-contact-band__shell--form,
    .home-contact-band__topics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .home-portal__grid,
    .article-listing-shell__filter-bar {
        grid-template-columns: 1fr;
    }

    .home-news-rotator__controls {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .home-news-rotator {
        --news-cards-per-view: 1;
    }

    .home-news-rotator__track {
        gap: 0.7rem;
    }

    .home-contact-band__shell--form,
    .contact-form--home {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
/* Stage 047A home + contacto rescue end */

/* Stage 047B public refinement start */

.home-centro-access--compact {
    gap: 0.8rem;
    padding: 0.95rem 1rem 1rem;
}

.home-centro-access--compact .home-centro-access__head > p:last-child {
    max-width: none;
    font-size: 0.88rem;
}

.home-centro-access--compact .home-centro-access__list {
    gap: 0.58rem;
}

.home-centro-topic {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem 0.8rem;
    padding: 0.72rem 0.8rem;
}

.home-centro-topic__copy {
    display: grid;
    gap: 0.18rem;
}

.home-centro-topic__helper {
    color: var(--ink-soft);
    font-size: 0.81rem;
    line-height: 1.35;
}

.home-centro-topic__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.16rem 0.46rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
}

.home-centro-access__footer {
    margin-top: auto;
}

.article-listing-shell--centro,
.article-listing-shell--education,
.education-reserve {
    gap: 1.15rem;
}

.centro-archive-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.centro-category-chip,
.public-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.46rem 0.82rem;
    border: 1px solid rgba(24, 79, 143, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.centro-category-chip span {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
}

.centro-category-chip:hover,
.centro-category-chip:focus-visible,
.public-pagination__link:hover,
.public-pagination__link:focus-visible {
    border-color: rgba(24, 79, 143, 0.3);
    color: var(--brand);
}

.centro-category-chip.is-active,
.public-pagination__link.is-current {
    border-color: transparent;
    background: var(--brand);
    color: #fff;
}

.centro-category-chip.is-active span,
.public-pagination__link.is-current {
    color: #fff;
}

.centro-archive-grid,
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.centro-archive-grid .article-card,
.education-grid .article-card {
    min-height: 100%;
}

.centro-archive-grid .article-card__media,
.centro-archive-grid .editorial-media-frame--listing,
.education-grid .article-card__media,
.education-grid .editorial-media-frame--listing {
    aspect-ratio: 16 / 10;
}

.centro-archive-grid .article-card__media img,
.education-grid .article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.centro-archive-grid .article-card__content,
.education-grid .article-card__content {
    gap: 0.7rem;
}

.centro-archive-grid .article-card__content > p,
.education-grid .article-card__content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.public-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.2rem;
}

.education-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
    gap: 1rem;
    align-items: stretch;
}

.education-feature .article-card--feature {
    min-height: 100%;
}

.education-feature .article-card--feature .article-card__media,
.education-feature .article-card--feature .editorial-media-frame--listing {
    min-height: 100%;
}

.education-feature__aside {
    display: grid;
    gap: 0.7rem;
}

.education-feature__aside h3,
.education-grid h3 {
    margin: 0;
}

.education-feature__aside h3 a,
.education-grid h3 a {
    color: inherit;
    text-decoration: none;
}

.education-feature__aside h3 a:hover,
.education-feature__aside h3 a:focus-visible,
.education-grid h3 a:hover,
.education-grid h3 a:focus-visible {
    color: var(--brand);
}

.education-feature__date,
.education-reserve__lead {
    margin: 0;
    color: var(--ink-soft);
}

@media (max-width: 700px) {
    .education-feature {
        grid-template-columns: 1fr;
    }

    .centro-archive-grid,
    .education-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .centro-archive-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .centro-archive-nav,
    .public-pagination {
        justify-content: flex-start;
    }
}
/* Stage 047B public refinement end */

/* Stage 049B education structured module start */
.education-structured-shell,
.education-agreements-shell {
    gap: 1rem;
}

.education-entry-card .article-card__content,
.education-mini-card,
.education-agreement-card {
    gap: 0.68rem;
}

.education-entry-card--feature .article-card__content {
    padding: 1.1rem 1.15rem;
}

.education-entry-card--feature h3 {
    font-size: clamp(1.3rem, 1.9vw, 1.58rem);
}

.education-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.education-entry-meta span,
.education-agreement-card__institution {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
}

.education-entry-copy {
    color: var(--ink-soft);
    line-height: 1.62;
}

.education-entry-copy > *:first-child {
    margin-top: 0;
}

.education-entry-copy > *:last-child {
    margin-bottom: 0;
}

.education-entry-copy p + p,
.education-entry-copy ul + p,
.education-entry-copy p + ul {
    margin-top: 0.8rem;
}

.education-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.education-entry-grid .article-card {
    min-height: 100%;
}

.education-entry-grid .article-card__media,
.education-entry-grid .editorial-media-frame--listing {
    aspect-ratio: 16 / 10;
}

.education-entry-grid .article-card__content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.education-mini-card .story-card__tag,
.education-agreement-card .story-card__tag {
    width: fit-content;
}

.education-agreement-grid {
    align-items: stretch;
}

.education-agreement-card {
    min-height: 100%;
}

.page-programas-proyectos .education-agreements-shell {
    background: linear-gradient(180deg, rgba(245, 249, 252, 0.98) 0%, rgba(236, 243, 249, 0.96) 100%);
}

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

@media (max-width: 820px) {
    .education-entry-grid {
        grid-template-columns: 1fr;
    }
}
/* Stage 049B education structured module end */
/* Stage 049C education public refinement start */

.page-programas-proyectos .education-structured-shell,
.page-programas-proyectos .education-resource-shell,
.page-programas-proyectos .education-agreements-shell {
    gap: 1rem;
}

.education-course-flow,
.education-course-grid,
.education-resource-grid,
.education-resource-intro {
    display: grid;
    gap: 1rem;
}

.education-course-flow {
    align-items: start;
}

.education-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.education-mini-card {
    display: grid;
    align-content: start;
    min-height: 100%;
}

.education-feature {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
    align-items: start;
}

.education-feature > *,
.education-course-flow > *,
.education-resource-grid > * {
    min-width: 0;
}

.education-feature .article-card--feature,
.education-course-flow .article-card--feature {
    min-height: 100%;
    align-items: stretch;
}

.education-feature .article-card--feature .article-card__media,
.education-feature .article-card--feature .editorial-media-frame--listing,
.education-course-flow .article-card--feature .article-card__media,
.education-course-flow .article-card--feature .editorial-media-frame--listing {
    min-height: clamp(16rem, 27vw, 21.5rem);
    aspect-ratio: auto;
}

.education-feature .article-card--feature .article-card__media img,
.education-course-flow .article-card--feature .article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-resource-intro {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
    align-items: start;
}

.education-resource-note {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98) 0%, rgba(239, 245, 250, 0.96) 100%);
}

.education-resource-note p:last-child {
    margin: 0;
}

.education-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.education-resource-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.education-resource-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
}

.education-resource-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-resource-card__media--empty {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(24, 79, 143, 0.12) 0%, rgba(24, 79, 143, 0.04) 100%);
}

.education-resource-card__media--empty span {
    padding: 0.9rem;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.education-resource-card__body {
    display: grid;
    align-content: start;
    gap: 0.72rem;
    padding: 1rem;
}

.education-resource-card__actions {
    margin-top: auto;
}

.education-resource-empty {
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98) 0%, rgba(238, 244, 249, 0.96) 100%);
}

@media (max-width: 700px) {
    .page-programas-proyectos .internal-hero--education .internal-hero__layout--education,
    .education-feature,
    .education-resource-intro {
        grid-template-columns: 1fr;
    }

    .education-course-grid,
    .education-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .education-feature .article-card--feature .article-card__media,
    .education-feature .article-card--feature .editorial-media-frame--listing,
    .education-course-flow .article-card--feature .article-card__media,
    .education-course-flow .article-card--feature .editorial-media-frame--listing {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 820px) {
    .education-course-grid,
    .education-resource-grid {
        grid-template-columns: 1fr;
    }

    .page-programas-proyectos .internal-hero--education .internal-hero__copy--education {
        max-width: none;
    }
}
/* Stage 049C education public refinement end */

/* Stage 052 home refinement start */
.public-band {
    padding-inline: 0;
    padding-block: clamp(2.6rem, 5vw, 4rem);
}

.public-band + .public-band {
    padding-top: 0;
}

.public-band__inner {
    width: min(calc(100% - 3.5rem), var(--container));
    margin: 0 auto;
}

.public-band--surface {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(246, 250, 253, 0.97) 100%);
}

.public-band--alt {
    background: linear-gradient(180deg, rgba(246, 249, 252, 0.98) 0%, rgba(238, 244, 249, 0.95) 100%);
}

.public-band--contact {
    background: linear-gradient(180deg, rgba(228, 239, 248, 0.96) 0%, rgba(216, 232, 245, 0.92) 100%);
}


.home-portal {
    margin-top: 0;
}

.home-section-head--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-centro-shell,
.home-news-shell,
.home-education-shell,
.home-quick-access,
.home-contact-band__shell {
    display: grid;
    gap: 1.35rem;
}

.home-centro-shell {
    grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 0.72fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.home-centro-shell__main,
.home-centro-grid,
.home-centro-secondary-grid,
.home-centro-nav,
.home-education-layout,
.home-quick-access__grid,
.site-footer__sitemap-grid {
    display: grid;
    gap: 1rem;
}

.home-centro-grid {
    align-items: start;
}

.home-centro-lead,
.home-education-course,
.home-education-reading,
.home-centro-secondary-card,
.home-quick-card {
    min-width: 0;
}

.home-centro-lead__media,
.home-education-course__media,
.home-education-reading__media,
.home-centro-secondary-card__media {
    aspect-ratio: 16 / 10;
}

.home-centro-lead__media img,
.home-education-course__media img,
.home-education-reading__media img,
.home-centro-secondary-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-centro-secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.home-centro-secondary-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid rgba(19, 39, 63, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.home-centro-secondary-card__body,
.home-education-reading__body,
.home-news-slide__body,
.home-quick-card {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.home-centro-secondary-card__body,
.home-education-reading__body,
.home-news-slide__body {
    padding: 1rem;
}

.home-centro-nav {
    align-content: start;
    height: fit-content;
    padding: 1.1rem;
    border: 1px solid rgba(19, 39, 63, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.home-centro-nav__head {
    margin-bottom: 0.25rem;
}

.home-centro-nav__head h3 {
    margin-top: 0;
    font-size: 1.18rem;
}

.home-centro-nav__list {
    display: grid;
    gap: 0.65rem;
}

.home-centro-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(19, 39, 63, 0.1);
    border-radius: 0.9rem;
    background: rgba(248, 251, 254, 0.95);
    color: var(--ink);
    text-decoration: none;
}

.home-centro-nav__item:hover,
.home-centro-nav__item:focus-visible {
    border-color: rgba(24, 79, 143, 0.26);
}

.home-centro-nav__label {
    font-weight: 600;
    line-height: 1.35;
}

.home-centro-nav__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.12);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 800;
}

.home-quick-access__grid {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.home-quick-card {
    padding: 1rem;
    border: 1px solid rgba(19, 39, 63, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.home-news-shell,
.home-contact-band__shell,
.home-education-shell {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-news-rotator {
    --news-cards-per-view: 4;
}

.home-news-rotator__viewport {
    overflow: hidden;
}

.home-news-rotator__track {
    align-items: stretch;
}

.home-news-slide {
    height: 100%;
}

.home-news-slide__media {
    aspect-ratio: 16 / 10;
}

.home-news-slide h3,
.home-centro-secondary-card h3,
.home-education-reading h3,
.home-quick-card h3 {
    font-size: 1.08rem;
    line-height: 1.18;
}

.home-education-layout {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    align-items: stretch;
}

.home-education-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.home-education-reading {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid rgba(19, 39, 63, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.home-contact-band__shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(1.2rem, 2vw, 2rem);
}

.home-contact-band__intro {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.home-contact-band__logo {
    display: inline-flex;
    width: min(12rem, 100%);
}

.home-contact-band__logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.home-contact-band__copy h2 {
    margin-bottom: 0.75rem;
}

.home-contact-band__form {
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(19, 39, 63, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(12, 32, 57, 0.1);
}

@media (max-width: 700px) {
    .home-centro-shell,
    .home-contact-band__shell,
    .home-education-layout {
        grid-template-columns: 1fr 1fr;
    }

    .home-centro-shell {
        grid-template-columns: 1fr;
    }

    .home-centro-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-news-rotator {
        --news-cards-per-view: 2;
    }
}

@media (max-width: 820px) {
    .public-band__inner,
    .page-home .public-band__inner {
        width: min(calc(100% - 2rem), var(--container));
    }

    .home-contact-band__shell,
    .home-education-layout,
    .home-centro-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .home-news-rotator {
        --news-cards-per-view: 1;
    }
}
/* Stage 052 home refinement end */
/* Stage 053A final home polish start */
.page-home .public-band {
    padding-block: clamp(2.35rem, 4vw, 3.4rem);
}

.page-home .public-band__inner {
    width: min(calc(100% - 3.75rem), var(--container));
}

.page-home .home-section-head--split {
    gap: 0.75rem 1rem;
}

.page-home .home-centro-shell,
.page-home .home-news-shell,
.page-home .home-education-shell,
.page-home .home-contact-band__shell {
    gap: 1rem;
}

.page-home .home-centro-shell {
    grid-template-columns: minmax(0, 1.78fr) minmax(14.25rem, 0.62fr);
    gap: clamp(0.85rem, 1.8vw, 1.25rem);
}

.page-home .home-centro-shell__main,
.page-home .home-centro-grid,
.page-home .home-centro-secondary-grid,
.page-home .home-centro-nav,
.page-home .home-news-rotator,
.page-home .home-education-layout,
.page-home .site-footer__sitemap-grid {
    gap: 0.7rem;
}

.page-home .home-centro-lead,
.page-home .home-centro-secondary-card,
.page-home .home-news-slide,
.page-home .home-education-course,
.page-home .home-education-reading,
.page-home .home-contact-band__form {
    box-shadow: 0 14px 28px rgba(12, 32, 57, 0.08);
}

.page-home .home-centro-secondary-card__body,
.page-home .home-news-slide__body,
.page-home .home-education-reading__body {
    padding: 0.9rem 0.95rem 0.95rem;
}

.page-home .home-centro-nav {
    align-self: start;
    gap: 0.7rem;
    padding: 0.95rem;
}

.page-home .home-centro-nav__head {
    margin-bottom: 0;
}

.page-home .home-centro-nav__head h3 {
    font-size: 1.08rem;
}

.page-home .home-centro-nav__list {
    gap: 0.5rem;
}

.page-home .home-centro-nav__item {
    padding: 0.65rem 0.75rem;
    align-items: start;
}

.page-home .home-centro-nav__count {
    margin-top: 0.1rem;
}

.page-home .home-centro-lead h3 a,
.page-home .home-centro-secondary-card h3 a,
.page-home .home-news-slide__body h3 a,
.page-home .home-education-reading__body h3 a,
.page-home .home-centro-lead h3 a:visited,
.page-home .home-centro-secondary-card h3 a:visited,
.page-home .home-news-slide__body h3 a:visited,
.page-home .home-education-reading__body h3 a:visited {
    color: var(--ink);
    text-decoration: none;
}

.page-home .home-centro-lead h3 a:hover,
.page-home .home-centro-lead h3 a:focus-visible,
.page-home .home-centro-secondary-card h3 a:hover,
.page-home .home-centro-secondary-card h3 a:focus-visible,
.page-home .home-news-slide__body h3 a:hover,
.page-home .home-news-slide__body h3 a:focus-visible,
.page-home .home-education-reading__body h3 a:hover,
.page-home .home-education-reading__body h3 a:focus-visible {
    color: var(--brand);
    text-decoration: none;
}

.page-home .link-arrow,
.page-home .link-arrow:visited {
    color: var(--brand);
    text-decoration: none;
}

.page-home .home-news-shell {
    gap: 0.7rem;
}

.page-home .home-news-rotator {
    gap: 0.55rem;
}

.page-home .home-news-rotator__controls {
    gap: 0.45rem;
    justify-content: flex-end;
}

.page-home .home-news-rotator__control {
    width: 2.6rem;
    height: 2.6rem;
    border-color: rgba(13, 54, 102, 0.15);
    background: linear-gradient(180deg, rgba(18, 74, 135, 0.96) 0%, rgba(14, 58, 109, 0.96) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(12, 32, 57, 0.12);
}

.page-home .home-news-rotator__control:hover {
    border-color: rgba(18, 74, 135, 0.4);
    background: linear-gradient(180deg, rgba(23, 88, 158, 1) 0%, rgba(18, 74, 135, 0.98) 100%);
}

.page-home .home-news-rotator__control:focus-visible {
    outline: 3px solid rgba(255, 210, 140, 0.85);
    outline-offset: 2px;
    border-color: rgba(255, 210, 140, 0.55);
}

.page-home .home-news-rotator__control:disabled {
    background: rgba(208, 219, 233, 0.9);
    border-color: rgba(208, 219, 233, 0.9);
    color: rgba(18, 55, 95, 0.55);
    box-shadow: none;
    opacity: 1;
}

.page-home .home-news-slide {
    min-height: 100%;
}

.page-home .home-news-slide__body {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 0.6rem;
}

.page-home .home-news-slide__body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.page-home .home-news-slide__body > p:last-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: calc(1.62em * 3);
}

.page-home .home-news-slide__body .link-arrow {
    margin-top: auto;
}

.page-home .home-education-shell {
    gap: 0.9rem;
}

.page-home .home-education-layout {
    grid-template-columns: minmax(0, 1.68fr) minmax(17rem, 0.92fr);
    align-items: start;
    gap: 1rem;
}

.page-home .home-education-layout--single {
    justify-items: start;
}

.page-home .home-education-layout--single .home-education-course,
.page-home .home-education-layout--single .home-education-reading {
    width: min(100%, 54rem);
}

.page-home .home-education-layout--single .home-education-course__media {
    max-height: 15rem;
}

.page-home .home-education-layout--single .home-education-reading {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    max-height: 15rem;
}

.page-home .home-education-layout--single .home-education-reading__media {
    aspect-ratio: auto;
    min-height: 100%;
    max-height: 15rem;
}

.page-home .home-education-layout--single .home-education-reading__media img {
    height: 100%;
}

.page-home .home-education-layout--single .home-education-reading__body {
    align-content: center;
    padding: 0.95rem 1rem;
}

.page-home .home-education-reading__body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.page-home .home-education-reading__body > p:last-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.page-home .home-contact-band__shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.65rem);
}

.page-home .home-contact-band__intro {
    align-content: center;
    justify-content: center;
    gap: 0.9rem;
}

.page-home .home-contact-band__copy {
    max-width: 30rem;
}

.page-home .home-contact-band__copy p:last-child {
    font-size: 0.97rem;
}

.page-home .home-contact-band__form {
    display: grid;
    align-content: center;
    min-height: 100%;
}

.site-footer {
    padding: 0;
    background: linear-gradient(135deg, #10355c 0%, #184f8f 56%, #1f5f9f 100%);
    border-top: 1px solid rgba(216, 154, 57, 0.58);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 28%) minmax(0, 72%);
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.65rem, 3vw, 2.35rem) clamp(1rem, 2.8vw, 2.2rem);
    background: transparent;
    box-shadow: none;
    align-items: start;
}

.site-footer__intro {
    display: grid;
    align-content: start;
    justify-items: start;
}

.site-footer__brand img {
    width: clamp(9.5rem, 12vw, 12rem);
}

.site-footer__title,
.site-footer__copy {
    display: none;
}

.site-footer__nav,
.site-footer__nav--sitemap {
    display: grid;
    gap: 0.95rem;
    align-content: start;
}

.site-footer__nav-title {
    color: rgba(255, 232, 188, 0.82);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
}

.site-footer__sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
    align-items: start;
}

.site-footer__group {
    display: grid;
    gap: 0.7rem;
}

.site-footer__group-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #fff;
}

.site-footer__nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.42rem;
}

.site-footer__nav-links a,
.site-footer__nav-links a:visited {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    line-height: 1.45;
}

.site-footer__nav-links a:hover,
.site-footer__nav-links a:focus-visible,
.site-footer__nav-links a[aria-current="page"] {
    color: #ffd28c;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 980px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .page-home .home-centro-shell,
    .page-home .home-education-layout {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        justify-items: center;
        text-align: center;
    }

    .site-footer__intro {
        justify-items: center;
    }

    .site-footer__nav--sitemap {
        width: 100%;
    }

    .site-footer__group,
    .site-footer__nav-links {
        justify-items: center;
    }
}

@media (max-width: 820px) {
    .page-home .public-band__inner {
        width: min(calc(100% - 2rem), var(--container));
    }

    .page-home .home-centro-secondary-grid,
    .page-home .home-contact-band__shell,
    .page-home .home-education-layout,
    .page-home .home-education-layout--single .home-education-reading {
        grid-template-columns: 1fr;
    }

    .page-home .home-education-layout--single .home-education-reading {
        max-height: none;
    }

    .page-home .home-education-layout--single .home-education-reading__media {
        max-height: 12.75rem;
    }
}

@media (max-width: 480px) {
    .site-footer__sitemap-grid {
        grid-template-columns: 1fr;
    }
}
}

@media (max-width: 680px) {
    .page-home .home-news-rotator__controls {
        justify-content: flex-start;
    }
}
/* Stage 053A final home polish end */
/* Stage 053B structural home, contact and admin article UX start */
.page-home .home-editorial-row {
    display: grid;
    grid-template-columns: minmax(0, 1.82fr) minmax(17.5rem, 0.92fr);
    gap: clamp(1rem, 2vw, 1.35rem);
    align-items: start;
}

.page-home .home-editorial-row--news-only,
.page-home .home-editorial-row--education-only {
    grid-template-columns: 1fr;
}

.page-home .home-editorial-row__column,
.page-home .home-editorial-row__column--news,
.page-home .home-editorial-row__column--education {
    min-width: 0;
    display: grid;
    align-content: start;
}

.page-home .home-news-shell--row,
.page-home .home-education-shell--feature {
    gap: 0.7rem;
}

.page-home .home-news-rotator--row {
    --news-cards-per-view: 3;
}

.page-home .home-education-feature-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(19, 39, 63, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(12, 32, 57, 0.08);
}

.page-home .home-education-feature-card__media {
    display: block;
    aspect-ratio: 16 / 10;
}

.page-home .home-education-feature-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-home .home-education-feature-card__body {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: 0.95rem 1rem 1rem;
}

.page-home .home-education-feature-card__body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.18;
}

.page-home .home-education-feature-card__body h3 a,
.page-home .home-education-feature-card__body h3 a:visited {
    color: var(--ink);
    text-decoration: none;
}

.page-home .home-education-feature-card__body h3 a:hover,
.page-home .home-education-feature-card__body h3 a:focus-visible {
    color: var(--brand);
}

.page-home .home-education-feature-card__body h3,
.page-home .home-education-feature-card__body > p:first-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.page-home .home-education-feature-card__body h3 {
    -webkit-line-clamp: 3;
}

.page-home .home-education-feature-card__body > p:last-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.page-home .education-entry-meta--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.83rem;
}

.page-home .education-entry-meta--compact span {
    padding: 0.26rem 0.5rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand-deep);
}

.page-home .home-editorial-row--education-only .home-education-feature-card {
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
    grid-template-rows: 1fr;
}

.page-home .home-editorial-row--education-only .home-education-feature-card__media {
    aspect-ratio: auto;
    min-height: 100%;
}

.page-home .public-band--contact {
    background: linear-gradient(180deg, rgba(224, 238, 248, 0.98) 0%, rgba(214, 231, 244, 0.94) 100%);
}

.page-home .home-contact-band__shell {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    align-items: stretch;
    gap: clamp(1.2rem, 2.2vw, 2rem);
}

.page-home .home-contact-band__intro {
    align-content: center;
    gap: 1.15rem;
}

.page-home .home-contact-band__copy {
    display: grid;
    gap: 0.7rem;
    max-width: 34rem;
}

.page-home .home-contact-band__copy h2 {
    margin-bottom: 0.1rem;
}

.page-home .home-contact-band__copy p {
    max-width: 32rem;
}

.page-home .home-contact-band__brand {
    display: grid;
    justify-items: center;
    gap: 0.95rem;
}

.page-home .home-contact-band__divider {
    display: block;
    width: min(100%, 16rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(24, 79, 143, 0) 0%, rgba(24, 79, 143, 0.28) 50%, rgba(24, 79, 143, 0) 100%);
}

.page-home .home-contact-band__logo {
    width: min(100%, 10.75rem);
    margin: 0 auto;
}

.page-home .home-contact-band__form {
    padding: clamp(1.1rem, 2vw, 1.45rem);
    border-radius: 0.42rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 38px rgba(12, 32, 57, 0.1);
}

.page-home .home-contact-band__form .contact-form {
    gap: 0.7rem;
}

.page-home .home-contact-band__form .contact-field textarea {
    min-height: 9rem;
}

@media (max-width: 980px) {
    .page-home .home-editorial-row {
        grid-template-columns: 1fr;
    }

    .page-home .home-news-rotator--row {
        --news-cards-per-view: 2;
    }

    .page-home .home-education-feature-card,
    .page-home .home-editorial-row--education-only .home-education-feature-card {
        grid-template-columns: minmax(10.75rem, 13rem) minmax(0, 1fr);
        grid-template-rows: 1fr;
        max-width: min(100%, 46rem);
    }

    .page-home .home-education-feature-card__media,
    .page-home .home-editorial-row--education-only .home-education-feature-card__media {
        aspect-ratio: auto;
        min-height: 100%;
        max-height: 13.75rem;
    }
}

@media (max-width: 820px) {
    .page-home .home-contact-band__shell {
        grid-template-columns: 1fr;
    }

    .page-home .home-contact-band__intro {
        justify-items: center;
        text-align: center;
    }

    .page-home .home-contact-band__copy p {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .page-home .home-news-rotator--row {
        --news-cards-per-view: 1;
    }

    .page-home .home-education-feature-card,
    .page-home .home-editorial-row--education-only .home-education-feature-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-width: none;
    }

    .page-home .home-education-feature-card__media,
    .page-home .home-editorial-row--education-only .home-education-feature-card__media {
        aspect-ratio: 16 / 10;
        min-height: 0;
        max-height: 13rem;
    }
}
/* Stage 053B structural home, contact and admin article UX end */

/* Stage 055 home, education and course detail start */
.page-home .home-centro-band { display: grid; gap: 1rem; }

.page-home .home-news-band,
.page-home .home-education-band { display: grid; gap: 1rem; }
.page-home .home-education-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.page-home .home-education-grid--single { grid-template-columns: minmax(0, 22rem); justify-content: start; }
.page-home .home-education-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid rgba(19, 39, 63, 0.12); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-soft); }
.page-home .home-education-card__media { aspect-ratio: 16 / 9; display: block; }
.page-home .home-education-card__media img { width: 100%; height: 100%; object-fit: cover; }
.page-home .home-education-card__body { display: grid; align-content: start; gap: 0.75rem; padding: 1rem; }
.page-home .home-education-card__body h3 { margin: 0; }
.page-home .home-education-card__body h3 a { color: var(--ink); text-decoration: none; }
.page-home .home-education-card__body h3 a:hover,
.page-home .home-education-card__body h3 a:focus-visible { color: var(--brand); }
.page-programas-proyectos .education-page-intro { gap: 0.75rem; }
.page-programas-proyectos .education-course-grid--listing,
.page-programas-proyectos .education-resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; align-items: stretch; }
.page-programas-proyectos .education-course-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-soft); }
.page-programas-proyectos .education-course-card__media { display: block; aspect-ratio: 16 / 9; }
.page-programas-proyectos .education-course-card__media img { width: 100%; height: 100%; object-fit: cover; }
.page-programas-proyectos .education-course-card__body { display: grid; align-content: start; gap: 0.75rem; padding: 1rem; }
.page-programas-proyectos .education-course-card__body h3 { margin: 0; }
.page-programas-proyectos .education-course-card__body h3 a { color: var(--ink); text-decoration: none; }
.page-programas-proyectos .education-course-card__status { background: rgba(214, 157, 57, 0.15); color: #7a5211; }
.page-programas-proyectos .education-course-card__date { margin: 0; color: var(--ink-soft); }
.page-programas-proyectos .education-empty-state { padding: 1rem 1.05rem; }
.page-curso-detalle .course-detail-shell { gap: 1rem; }
.page-curso-detalle .course-detail__actions { display: grid; gap: 0.75rem; margin-top: 1rem; }
.page-curso-detalle .course-detail__note { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) {
    .page-home .home-education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .page-home .home-education-grid,
    .page-programas-proyectos .education-course-grid--listing,
    .page-programas-proyectos .education-resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-home .home-education-grid--single { grid-template-columns: 1fr; }
}
/* Stage 055 home, education and course detail end */@media (max-width: 1100px) {
    .page-home .home-news-rotator { --news-cards-per-view: 2; }
}
@media (max-width: 640px) {
    .page-home .home-news-rotator { --news-cards-per-view: 1; }
}
/* Stage 056A editor, home and image system start */
.admin-form__field--rich-editor {
    min-width: 0;
}

.editorial-media-frame--contained,
.editorial-media-frame--contained > img {
    background: linear-gradient(180deg, rgba(243, 245, 248, 0.98) 0%, rgba(234, 239, 245, 0.98) 100%);
}

.editorial-media-frame--contained > img,
.editorial-media-frame--contained img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.page-home .home-card-carousel {
    display: grid;
    gap: 0.75rem;
    --cards-per-view: 1;
}

.page-home .home-card-carousel__controls {
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
}

.page-home .home-card-carousel__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(13, 54, 102, 0.15);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(18, 74, 135, 0.96) 0%, rgba(14, 58, 109, 0.96) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(12, 32, 57, 0.12);
}

.page-home .home-card-carousel__control:hover {
    border-color: rgba(18, 74, 135, 0.4);
    background: linear-gradient(180deg, rgba(23, 88, 158, 1) 0%, rgba(18, 74, 135, 0.98) 100%);
}

.page-home .home-card-carousel__control:focus-visible {
    outline: 3px solid rgba(255, 210, 140, 0.85);
    outline-offset: 2px;
    border-color: rgba(255, 210, 140, 0.55);
}

.page-home .home-card-carousel__control:disabled {
    background: rgba(208, 219, 233, 0.9);
    border-color: rgba(208, 219, 233, 0.9);
    color: rgba(18, 55, 95, 0.55);
    box-shadow: none;
    opacity: 1;
}

.page-home .home-card-carousel__viewport {
    overflow: hidden;
}

.page-home .home-card-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--cards-per-view) - 1) * 1rem) / var(--cards-per-view));
    gap: 1rem;
    align-items: stretch;
    transition: transform 360ms ease;
    will-change: transform;
}

.page-home .home-card-carousel__slide {
    min-width: 0;
    min-height: 100%;
}

.page-home .home-news-rotator {
    --cards-per-view: 4;
}

.page-home .home-education-carousel {
    --cards-per-view: 3;
}

.page-home .home-education-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(19, 39, 63, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.page-home .home-education-card__media {
    display: block;
    aspect-ratio: 16 / 9;
}

.page-home .home-education-card--article .home-education-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-home .home-education-card__body {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding: 1rem;
}

.page-home .home-education-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.page-home .home-education-card__body h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.18;
}

.page-home .home-education-card__body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.page-home .home-education-card__body h3 a:hover,
.page-home .home-education-card__body h3 a:focus-visible {
    color: var(--brand);
}

.page-home .home-education-card__body > p:first-of-type {
    -webkit-line-clamp: 3;
}

.page-programas-proyectos .education-course-card,
.page-programas-proyectos .education-resource-card,
.page-programas-proyectos .education-agreement-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.page-programas-proyectos .education-course-card__media,
.page-programas-proyectos .education-resource-card__media,
.page-programas-proyectos .education-agreement-card__media,
.page-curso-detalle .course-detail__figure {
    display: block;
    aspect-ratio: 16 / 9;
}

.page-programas-proyectos .education-course-card__media img,
.page-programas-proyectos .education-resource-card__media img,
.page-programas-proyectos .education-agreement-card__media img,
.page-curso-detalle .course-detail__figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .page-home .home-card-carousel__track {
        transition: none;
    }
}

@media (max-width: 1180px) {
    .page-home .home-news-rotator,
    .page-home .home-education-carousel {
        --cards-per-view: 2;
    }
}

@media (max-width: 640px) {
    .page-home .home-news-rotator,
    .page-home .home-education-carousel {
        --cards-per-view: 1;
    }

    .page-home .home-card-carousel__controls {
        justify-content: flex-start;
    }
}
/* Stage 056A editor, home and image system end */

/* Stage 056A final overrides */
.page-home .home-education-card--course .home-education-card__media img,
.page-programas-proyectos .education-course-card__media img,
.page-programas-proyectos .education-resource-card__media img,
.page-programas-proyectos .education-agreement-card__media img {
    object-fit: contain;
    background: linear-gradient(180deg, rgba(243, 245, 248, 0.98) 0%, rgba(234, 239, 245, 0.98) 100%);
}

/* Stage 057 home centro, educacion y comunidad start */
.page-home .home-centro-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: clamp(1rem, 2vw, 1.35rem);
    align-items: stretch;
}

.page-home .home-centro-editorial,
.page-home .home-centro-nav {
    min-width: 0;
}

.page-home .home-centro-editorial {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.page-home .home-centro-lead,
.page-home .home-centro-lead__content,
.page-home .home-centro-secondary-grid,
.page-home .home-centro-secondary-card,
.page-home .home-centro-secondary-card__body,
.page-home .home-centro-nav__item-copy,
.page-home .home-centro-myth-preview,
.page-home .home-centro-myth-preview__body {
    min-width: 0;
}

.page-home .home-centro-lead {
    grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.96fr);
    align-items: start;
}

.page-home .home-centro-lead__media,
.page-home .home-centro-myth-preview__media {
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.page-home .home-centro-secondary-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
}

.page-home .home-centro-lead__media img,
.page-home .home-centro-secondary-card__media img,
.page-home .home-centro-myth-preview__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-home .home-centro-lead__content {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.page-home .home-centro-lead__content h3,
.page-home .home-centro-secondary-card__body h3,
.page-home .home-centro-myth-preview__body h4,
.page-home .home-centro-lead__content > p,
.page-home .home-centro-secondary-card__body > p,
.page-home .home-centro-myth-preview__body > p:last-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.page-home .home-centro-lead__content h3 {
    font-size: clamp(1.34rem, 1.85vw, 1.6rem);
    line-height: 1.14;
    -webkit-line-clamp: 3;
}

.page-home .home-centro-lead__content > p {
    -webkit-line-clamp: 4;
}

.page-home .home-centro-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.page-home .home-centro-secondary-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
}

.page-home .home-centro-secondary-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    gap: 0.65rem;
    padding: 1rem;
}

.page-home .home-centro-secondary-card__body h3 {
    font-size: 1rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
}

.page-home .home-centro-secondary-card__body > p {
    -webkit-line-clamp: 3;
}

.page-home .home-centro-secondary-card__body .link-arrow {
    margin-top: auto;
}

.page-home .home-centro-nav {
    display: grid;
    align-content: start;
    align-self: stretch;
    height: auto;
    gap: 0.74rem;
    padding: 1.1rem 1.1rem 0.4rem;
}

.page-home .home-centro-nav__head,
.page-home .home-centro-nav__list,
.page-home .home-centro-nav__footer {
    margin: 0;
}

.page-home .home-centro-nav__list,
.page-home .home-centro-nav__footer,
.page-home .home-centro-myth-preview,
.page-home .home-centro-myth-preview__body {
    display: grid;
    align-content: start;
    gap: 0.58rem;
}

.page-home .home-centro-nav__item {
    align-items: center;
    justify-content: flex-start;
}

.page-home .home-centro-nav__item-copy {
    display: block;
}

.page-home .home-centro-nav__count {
    flex-shrink: 0;
    margin-left: auto;
}

.page-home .home-centro-myth-preview {
    width: 100%;
    padding-top: 0.42rem;
    border-top: 1px solid rgba(19, 39, 63, 0.1);
}

.page-home .home-centro-myth-preview__body {
    gap: 0.34rem;
}

.page-home .home-centro-myth-preview__date,
.page-comunidad .community-update {
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.page-home .home-centro-myth-preview__body h4 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
}

.page-home .home-centro-myth-preview__body > p:last-of-type {
    -webkit-line-clamp: 2;
}

.page-home .home-centro-myth-preview__body h4 a {
    color: var(--ink);
    text-decoration: none;
}

.page-home .home-centro-myth-preview__body h4 a:hover,
.page-home .home-centro-myth-preview__body h4 a:focus-visible {
    color: var(--brand);
}

.page-home .home-centro-myth-preview__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.page-comunidad .site-main > .section {
    padding-top: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.page-comunidad .internal-hero + .section {
    padding-top: clamp(2rem, 4vw, 2.5rem);
}

.page-comunidad .page-context--community-intro,
.page-comunidad .community-membership-shell,
.page-comunidad .community-process-shell,
.page-comunidad .community-forum-shell {
    display: grid;
    gap: 1rem;
}

.page-comunidad .community-section-heading {
    display: grid;
    gap: 0.45rem;
}

.page-comunidad .community-intro-card,
.page-comunidad .community-forum-card {
    display: grid;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    border: 1px solid rgba(19, 39, 63, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(12, 32, 57, 0.08);
}

.page-comunidad .community-intro-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 2rem 2.25rem;
}

.page-comunidad .community-intro-card__symbol {
    flex: 0 0 auto;
}

.page-comunidad .community-intro-card__symbol-circle {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand);
}

.page-comunidad .community-intro-card__body {
    display: grid;
    gap: 0.8rem;
}

.page-comunidad .community-intro-card__body h2,
.page-comunidad .community-process-head h2,
.page-comunidad .community-forum-card__body h2 {
    margin: 0;
    color: var(--brand-deep);
}

.page-comunidad .community-intro-card__body h2 {
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    line-height: 1.12;
}

.page-comunidad .community-intro-card__body p,
.page-comunidad .community-process-intro,
.page-comunidad .community-step p,
.page-comunidad .community-forum-card__body p {
    margin: 0;
    color: var(--ink-soft);
}

.page-comunidad .community-people-icon {
    position: relative;
    display: block;
    width: 3.8rem;
    height: 3rem;
    color: currentColor;
}

.page-comunidad .community-people-icon__figure {
    position: absolute;
    bottom: 0;
    display: grid;
    justify-items: center;
    gap: 0.16rem;
}

.page-comunidad .community-people-icon__figure--left {
    left: 0.1rem;
    transform: scale(0.84);
    transform-origin: bottom left;
}

.page-comunidad .community-people-icon__figure--center {
    left: 50%;
    transform: translateX(-50%);
}

.page-comunidad .community-people-icon__figure--right {
    right: 0.1rem;
    transform: scale(0.84);
    transform-origin: bottom right;
}

.page-comunidad .community-people-icon__head {
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 999px;
    background: currentColor;
}

.page-comunidad .community-people-icon__body {
    width: 1.12rem;
    height: 1.12rem;
    border-radius: 0.72rem 0.72rem 0.38rem 0.38rem;
    background: currentColor;
}

.page-comunidad .community-membership-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.page-comunidad .community-role-card,
.page-comunidad .community-step {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.page-comunidad .community-role-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.05rem;
    padding: 1.35rem 1.1rem 1.2rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 253, 0.98) 100%);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-comunidad .community-role-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 0.28rem;
    background: linear-gradient(90deg, rgba(216, 154, 57, 0.92) 0%, rgba(255, 224, 164, 0.72) 100%);
}

.page-comunidad .community-role-card:hover,
.page-comunidad .community-role-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(24, 79, 143, 0.24);
    box-shadow: 0 18px 34px rgba(12, 32, 57, 0.12);
}

.page-comunidad .community-role-card:focus-within {
    outline: 3px solid rgba(24, 79, 143, 0.14);
    outline-offset: 3px;
}

.page-comunidad .community-role-card__icon-shell {
    display: flex;
    justify-content: center;
    width: 100%;
}

.page-comunidad .community-role-card__icon-medallion {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9.1rem;
    height: 9.1rem;
    padding: 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(216, 154, 57, 0.28);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 68%, rgba(232, 239, 247, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 15px 30px rgba(12, 32, 57, 0.1);
}

.page-comunidad .community-role-card__icon-medallion img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.page-comunidad .community-role-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.page-comunidad .community-role-card__head {
    display: grid;
    gap: 0.6rem;
    justify-items: center;
}

.page-comunidad .community-role-card__head h3,
.page-comunidad .community-step h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.18;
}

.page-comunidad .community-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(24, 79, 143, 0.1);
    color: var(--brand);
}

.page-comunidad .community-process-shell {
    gap: 1rem;
}

.page-comunidad .community-process-head {
    display: grid;
    gap: 0.55rem;
}

.page-comunidad .community-process-head h2 {
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

.page-comunidad .community-process-intro {
    max-width: 42rem;
}

.page-comunidad .community-process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.page-comunidad .community-process-grid::before {
    content: '';
    position: absolute;
    top: 1.58rem;
    left: calc(12.5% + 2rem);
    right: calc(12.5% + 2rem);
    border-top: 2px dotted rgba(58, 116, 182, 0.34);
    pointer-events: none;
}

.page-comunidad .community-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    justify-items: center;
    align-content: start;
    gap: 0.8rem;
    min-height: 100%;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    background: rgba(255, 255, 255, 0.98);
    text-align: center;
}

.page-comunidad .community-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.14);
    color: var(--brand);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.page-comunidad .community-step__icon {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand);
}

.page-comunidad .community-step__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.page-comunidad .community-step__icon .community-people-icon {
    width: 2.45rem;
    height: 1.95rem;
}

.page-comunidad .community-step__actions {
    justify-content: center;
    margin-top: auto;
}

.page-comunidad .community-button--institutional {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.9rem;
    padding: 0.78rem 1.12rem;
    border: 1px solid rgba(15, 47, 89, 0.14);
    border-radius: 0.35rem;
    background: linear-gradient(135deg, #184f8f 0%, #12375f 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(12, 32, 57, 0.12);
}

.page-comunidad .community-button--institutional:hover,
.page-comunidad .community-button--institutional:focus-visible {
    background: linear-gradient(135deg, #1e5c9f 0%, #16446f 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(12, 32, 57, 0.16);
}

.page-comunidad .community-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-comunidad .community-button__icon svg {
    width: 1rem;
    height: 1rem;
}

.page-comunidad .community-forum-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(244, 249, 253, 0.98) 100%);
}

.page-comunidad .community-forum-card__media {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
}

.page-comunidad .community-forum-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-comunidad .community-forum-card__body {
    display: grid;
    gap: 0.7rem;
}

.page-comunidad .community-forum-card__body h2 {
    font-size: clamp(1.45rem, 2.3vw, 1.8rem);
}

.page-comunidad .community-forum-card__actions {
    display: grid;
    align-items: center;
    justify-items: end;
}

.page-comunidad .community-forum-card__button {
    white-space: nowrap;
}

.page-comunidad .community-forum-card__button[aria-disabled='true'] {
    opacity: 1;
    cursor: not-allowed;
}

@media (max-width: 1180px) {
    .page-home .home-centro-layout {
        grid-template-columns: minmax(0, 1.64fr) minmax(16rem, 0.84fr);
    }

    .page-home .home-centro-lead {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.92fr);
    }

    .page-comunidad .community-membership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .page-home .home-centro-lead {
        grid-template-columns: 1fr;
    }

    .page-comunidad .community-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-comunidad .community-process-grid::before {
        display: none;
    }
}

@media (max-width: 860px) {
    .page-home .home-centro-layout {
        grid-template-columns: 1fr;
    }

    .page-home .home-centro-nav {
        height: auto;
    }

    .page-home .home-centro-secondary-grid,
    .page-comunidad .community-membership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-comunidad .community-intro-card,
    .page-comunidad .community-forum-card {
        grid-template-columns: 1fr;
    }

    .page-comunidad .community-intro-card__symbol,
    .page-comunidad .community-forum-card__media,
    .page-comunidad .community-forum-card__actions {
        justify-self: center;
    }

    .page-comunidad .community-forum-card__actions {
        width: 100%;
        justify-items: center;
    }
}

@media (max-width: 700px) {
    .page-home .home-centro-secondary-grid,
    .page-comunidad .community-membership-grid,
    .page-comunidad .community-process-grid {
        grid-template-columns: 1fr;
    }

    .page-comunidad .community-intro-card {
        padding: 1.5rem;
    }

    .page-comunidad .community-forum-card {
        padding: 1.25rem;
    }

    .page-comunidad .community-role-card {
        padding-inline: 1.1rem;
    }

    .page-comunidad .community-role-card__icon-medallion {
        width: 8.2rem;
        height: 8.2rem;
    }

    .page-comunidad .community-forum-card__button {
        width: 100%;
        white-space: normal;
    }
}/* Stage 057 home centro, educacion y comunidad end */
/* Stage 056B social links start */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-home .home-contact-band__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.page-home .home-contact-social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 79, 143, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(12, 32, 57, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-home .home-contact-social-link:hover,
.page-home .home-contact-social-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(12, 32, 57, 0.12);
    border-color: rgba(24, 79, 143, 0.32);
}

.page-home .home-contact-social-link img {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 820px) {
    .page-home .home-contact-band__social {
        justify-content: center;
    }
}
/* Stage 056B social links end */





.page-solicitud-miembro .membership-application-shell,
.page-solicitud-miembro .membership-form-shell,
.page-terminos-participacion .membership-terms-shell {
    display: grid;
    gap: 1.5rem;
}

.membership-form-step[hidden],
[data-membership-applicant-section][hidden],
[data-membership-interest-other-field][hidden],
[data-membership-organization-type-other-field][hidden] {
    display: none !important;
}

.membership-steps__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.membership-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(20, 58, 90, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.membership-steps__item.is-active { border-color: #184f8f; background: rgba(24, 79, 143, 0.08); }
.membership-steps__item.is-completed { border-color: rgba(24, 79, 143, 0.28); }
.membership-steps__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.12);
    color: #184f8f;
    font-weight: 700;
}

.membership-form-section,
.membership-terms-toc,
.membership-terms-content {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 40px -36px rgba(15, 45, 73, 0.35);
}

.membership-form-grid,
.membership-category-grid,
.membership-checkbox-grid,
.membership-form-consent-list,
.membership-interest-grid,
.membership-form-actions,
.participation-terms-list,
.membership-terms-content,
.membership-terms-clause,
.membership-form-subsection { display: grid; gap: 1rem; }

.membership-form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.membership-form__field { display: grid; gap: 0.45rem; }
.membership-form__field--full { grid-column: 1 / -1; }
.membership-form__field input,
.membership-form__field select,
.membership-form__field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(20, 58, 90, 0.16);
    border-radius: 0.9rem;
    background: #fff;
}
.membership-form-actions { grid-template-columns: repeat(2, max-content); justify-content: space-between; align-items: center; }
.membership-step-alert[hidden] { display: none !important; }
.membership-field-error { display: none; color: #a12626; font-size: 0.9rem; }
.membership-field-error.is-visible { display: block; }
.membership-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.membership-category-card,
.membership-interest-card,
.membership-consent-card,
.participation-terms-card {
    display: block;
    min-height: 100%;
    cursor: pointer;
}
.membership-category-card__input,
.membership-interest-card__input { position: absolute; opacity: 0; pointer-events: none; }
.membership-category-card__body,
.membership-interest-card__body {
    display: grid;
    gap: 0.45rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.16);
    border-radius: 1rem;
    background: #fff;
}
.membership-category-card__indicator,
.membership-interest-card__indicator {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(24, 79, 143, 0.28);
    border-radius: 999px;
}
.membership-category-card__input:checked + .membership-category-card__body,
.membership-interest-card__input:checked + .membership-interest-card__body {
    border-color: #184f8f;
    background: rgba(24, 79, 143, 0.08);
}
.membership-category-card__input:checked + .membership-category-card__body .membership-category-card__indicator,
.membership-interest-card__input:checked + .membership-interest-card__body .membership-interest-card__indicator { background: #184f8f; border-color: #184f8f; }
.membership-category-card:focus-within .membership-category-card__body,
.membership-interest-card:focus-within .membership-interest-card__body { box-shadow: var(--focus-ring); }
.membership-interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.participation-terms-card {
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.14);
    border-radius: 1rem;
    background: #fff;
}
.participation-terms-card__badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(24, 79, 143, 0.12);
    color: #184f8f;
}
.participation-terms-card__content { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; line-height: 1.72; }
.participation-terms-card--optional { opacity: 0.84; }
.participation-terms-card__link { font-weight: 700; text-decoration: none; color: #184f8f; }
.participation-terms-card__link:hover,
.participation-terms-card__link:focus-visible { text-decoration: underline; }
.membership-success-card { display: grid; gap: 0.9rem; max-width: 44rem; }
.membership-terms-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; }
.membership-terms-shell { width: min(100%, 57.5rem); margin: 0 auto; }
.membership-terms-toc { width: min(100%, 57.5rem); margin: 0 auto; }
.membership-terms-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1rem; padding-left: 1.25rem; }
.membership-terms-toc a { color: var(--brand-deep); text-decoration: none; }
.membership-terms-toc a:hover,
.membership-terms-toc a:focus-visible { color: var(--brand); text-decoration: underline; }
.membership-terms-content { max-width: 57.5rem; margin: 0 auto; font-size: 1rem; line-height: 1.72; }
.membership-terms-content p,
.membership-terms-content li { margin: 0; }
.membership-terms-clause-back { margin-top: 0.25rem; font-size: 0.92rem; }

@media (max-width: 900px) {
    .membership-form-grid--two,
    .membership-category-grid,
    .membership-interest-grid,
    .membership-steps__list,
    .membership-terms-toc ol { grid-template-columns: 1fr; }
    .membership-form-actions { grid-template-columns: 1fr; }
}
/* Stage 066A.2 membership final closure start */
:is(.page-solicitud-miembro, .page-terminos-participacion) {
    --internal-page-container: 88rem;
    --internal-page-inline: clamp(1rem, 2.8vw, 2.2rem);
    --internal-section-space: clamp(3rem, 5vw, 4.65rem);
    --internal-hero-height: clamp(300px, 28vw, 360px);
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .site-main > .section {
    padding: var(--internal-section-space) 0;
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .site-main > .section + .section {
    padding-top: var(--internal-section-space);
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .site-main > .section > .section__inner,
:is(.page-solicitud-miembro, .page-terminos-participacion) .internal-hero__layout {
    width: min(calc(100% - (var(--internal-page-inline) * 2)), var(--internal-page-container));
    margin: 0 auto;
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .internal-hero {
    height: var(--internal-hero-height);
    min-height: var(--internal-hero-height);
    max-height: var(--internal-hero-height);
    overflow: hidden;
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .internal-hero__overlay {
    background: linear-gradient(90deg, rgba(8, 27, 52, 0.78) 0%, rgba(8, 27, 52, 0.56) 48%, rgba(8, 27, 52, 0.26) 100%);
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .internal-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .internal-hero__copy {
    display: grid;
    align-content: center;
    gap: clamp(0.85rem, 1.5vw, 1.15rem);
    width: min(100%, 38.75rem);
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .internal-hero h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.01;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

:is(.page-solicitud-miembro, .page-terminos-participacion) .internal-hero__lead {
    max-width: 38.75rem;
    margin: 0;
    font-size: clamp(1rem, 1.18vw, 1.08rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.page-solicitud-miembro .membership-form-shell,
.page-terminos-participacion .membership-terms-shell {
    display: grid;
    gap: 1.25rem;
}

.page-solicitud-miembro .membership-application-shell,
.page-terminos-participacion .membership-terms-shell {
    width: 100%;
    max-width: none;
}

.membership-prelude-card,
.membership-success-card,
.membership-form-section,
.membership-terms-toc,
.membership-terms-content,
.membership-terms-appendix {
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 40px -36px rgba(15, 45, 73, 0.35);
}

.membership-prelude-card {
    display: grid;
    gap: 0.7rem;
    padding-block: 0.95rem;
}

.membership-form-alert {
    display: grid;
    gap: 0.35rem;
}

.membership-form-alert h3 {
    font-size: 1.05rem;
}

.membership-form-step[hidden],
[data-membership-applicant-section][hidden],
[data-membership-interest-other-field][hidden],
[data-membership-organization-type-other-field][hidden] {
    display: none !important;
}

.membership-field-error {
    display: block;
    color: #a12626;
    font-size: 0.9rem;
}

.membership-field-error:empty {
    display: none;
}

.membership-field-help {
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.membership-field-counter {
    justify-self: end;
    color: var(--ink-muted);
    font-size: 0.84rem;
}

.membership-field-counter.is-invalid {
    color: #a12626;
}

.membership-steps__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.membership-steps__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(20, 58, 90, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.membership-steps__item.is-active { border-color: #184f8f; background: rgba(24, 79, 143, 0.08); }
.membership-steps__item.is-completed { border-color: rgba(24, 79, 143, 0.28); }
.membership-steps__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.12);
    color: #184f8f;
    font-weight: 700;
}

.membership-form-grid,
.membership-category-grid,
.membership-interest-grid,
.membership-form-actions,
.participation-terms-list,
.membership-terms-content {
    display: grid;
    gap: 1rem;
}

.membership-form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.membership-form__field { display: grid; gap: 0.45rem; }
.membership-form__field--full { grid-column: 1 / -1; }
.membership-form__field input,
.membership-form__field select,
.membership-form__field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(20, 58, 90, 0.16);
    border-radius: 0.9rem;
    background: #fff;
}

.membership-form-actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
    align-items: center;
}

.membership-form-actions__spacer {
    width: 1px;
    height: 1px;
}

.membership-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.membership-category-card,
.membership-interest-card {
    position: relative;
    display: block;
    min-height: 100%;
    cursor: pointer;
}

.membership-category-card__input,
.membership-interest-card__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.membership-category-card__panel,
.membership-interest-card__panel {
    display: grid;
    gap: 0.75rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.16);
    border-radius: 1rem;
    background: #fff;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.membership-category-card__input:checked + .membership-category-card__panel,
.membership-interest-card__input:checked + .membership-interest-card__panel {
    border-color: #184f8f;
    background: rgba(24, 79, 143, 0.08);
}

.membership-category-card:focus-within .membership-category-card__panel,
.membership-interest-card:focus-within .membership-interest-card__panel {
    box-shadow: var(--focus-ring);
}

.membership-category-card__radio,
.membership-interest-card__checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(24, 79, 143, 0.32);
    background: #fff;
}

.membership-category-card__radio {
    border-radius: 999px;
}

.membership-interest-card__checkbox {
    border-radius: 0.28rem;
}

.membership-category-card__radio::after,
.membership-interest-card__checkbox::after {
    content: '';
    position: absolute;
    opacity: 0;
    transition: transform 160ms ease, opacity 160ms ease;
}

.membership-category-card__radio::after {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #184f8f;
    transform: scale(0.4);
}

.membership-interest-card__checkbox::after {
    width: 0.32rem;
    height: 0.62rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-0.08rem) rotate(45deg) scale(0.75);
}

.membership-category-card__input:checked + .membership-category-card__panel .membership-category-card__radio {
    border-color: #184f8f;
}

.membership-category-card__input:checked + .membership-category-card__panel .membership-category-card__radio::after {
    opacity: 1;
    transform: scale(1);
}

.membership-interest-card__input:checked + .membership-interest-card__panel .membership-interest-card__checkbox {
    border-color: #184f8f;
    background: #184f8f;
}

.membership-interest-card__input:checked + .membership-interest-card__panel .membership-interest-card__checkbox::after {
    opacity: 1;
    transform: translateY(-0.08rem) rotate(45deg) scale(1);
}

.membership-category-card__icon-frame {
    display: grid;
    place-items: center;
    width: clamp(5.25rem, 8vw, 6.5rem);
    height: clamp(5.25rem, 8vw, 6.5rem);
    padding: 0.55rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 1rem;
    background: rgba(248, 251, 254, 0.9);
}

.membership-category-card__icon-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.membership-category-card__content,
.membership-interest-card__label {
    display: grid;
    gap: 0.45rem;
}

.membership-interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.participation-terms-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.14);
    border-radius: 1rem;
    background: #fff;
}

.participation-terms-card__badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(24, 79, 143, 0.12);
    color: #184f8f;
}

.participation-terms-card__content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
}

.participation-terms-card__content input {
    margin-top: 0.2rem;
}

.participation-terms-card__text {
    line-height: 1.72;
}

.participation-terms-card--optional {
    opacity: 0.86;
}

.participation-terms-card__link {
    display: inline-flex;
    margin-top: 0.55rem;
    font-weight: 700;
    text-decoration: none;
    color: #184f8f;
}

.participation-terms-card__link:hover,
.participation-terms-card__link:focus-visible {
    text-decoration: underline;
}

.page-terminos-participacion .membership-terms-shell {
    gap: 1rem;
}

.membership-terms-head {
    display: grid;
    gap: 0.55rem;
}

.membership-terms-updated {
    font-weight: 700;
}

.membership-terms-toc {
    display: grid;
    gap: 0.85rem;
}

.membership-terms-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    padding-left: 1.25rem;
    margin: 0;
}

.membership-terms-toc a {
    color: var(--brand-deep);
    text-decoration: none;
}

.membership-terms-toc a:hover,
.membership-terms-toc a:focus-visible {
    color: var(--brand);
    text-decoration: none;
}

.membership-terms-content {
    max-width: 57.5rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.72;
}

.membership-terms-clause,
.membership-terms-appendix {
    display: grid;
    gap: 0.85rem;
}

.membership-terms-clause-back {
    margin-top: 0.15rem;
    font-size: 0.92rem;
}

.membership-terms-clause-back a {
    color: var(--brand);
    text-decoration: none;
}

.membership-terms-clause-back a:hover,
.membership-terms-clause-back a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 960px) {
    :is(.page-solicitud-miembro, .page-terminos-participacion) {
        --internal-hero-height: 300px;
        --internal-page-inline: 1rem;
        --internal-section-space: clamp(2.6rem, 6vw, 3.4rem);
    }
}

@media (max-width: 900px) {
    .membership-form-grid--two,
    .membership-category-grid,
    .membership-interest-grid,
    .membership-steps__list,
    .membership-terms-toc ol {
        grid-template-columns: 1fr;
    }

    .membership-form-actions {
        grid-template-columns: 1fr;
    }

    .membership-form-actions__spacer {
        display: none;
    }
}
/* Stage 066A.2 membership final closure end */

/* Stage 066A.5 public membership modal start */
body.membership-modal-open {
    overflow: hidden;
}

.membership-terms-actions {
    display: flex;
    justify-content: flex-start;
}

.participation-terms-card__link {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.membership-terms-modal[hidden] {
    display: none !important;
}

.membership-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.membership-terms-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 29, 53, 0.58);
}

.membership-terms-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(100%, 62rem);
    max-height: min(90vh, 56rem);
    border: 1px solid rgba(20, 58, 90, 0.16);
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 32px 70px rgba(12, 32, 57, 0.22);
}

.membership-terms-modal__header,
.membership-terms-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.membership-terms-modal__header {
    border-bottom: 1px solid rgba(20, 58, 90, 0.12);
}

.membership-terms-modal__footer {
    justify-content: flex-end;
    border-top: 1px solid rgba(20, 58, 90, 0.12);
    background: rgba(248, 251, 254, 0.96);
}

.membership-terms-modal__body {
    overflow: auto;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.membership-terms-modal__body .membership-terms-toc,
.membership-terms-modal__body .membership-terms-content,
.membership-terms-modal__body .membership-terms-appendix {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.membership-terms-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(20, 58, 90, 0.16);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-deep);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.membership-terms-modal__close:hover,
.membership-terms-modal__close:focus-visible {
    background: rgba(24, 79, 143, 0.06);
}

@media (max-width: 900px) {
    .membership-terms-modal {
        padding: 0.75rem;
    }

    .membership-terms-modal__header,
    .membership-terms-modal__footer {
        padding: 0.9rem 1rem;
    }

    .membership-terms-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .membership-terms-actions {
        width: 100%;
    }

    .membership-terms-actions .button {
        width: 100%;
    }
}
/* Stage 066A.5 public membership modal end */

/* Stage 066A.6 friendly URLs and community spacing start */
.page-comunidad .site-main,
.page-solicitud-miembro .site-main,
.page-terminos-participacion .site-main {
    padding-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.page-comunidad .site-main > .section,
.page-solicitud-miembro .site-main > .section,
.page-terminos-participacion .site-main > .section {
    padding-top: clamp(0.75rem, 1.4vw, 1rem);
    padding-bottom: clamp(0.75rem, 1.4vw, 1rem);
}

.page-comunidad .internal-hero + .section,
.page-solicitud-miembro .internal-hero + .section,
.page-terminos-participacion .internal-hero + .section {
    padding-top: clamp(2rem, 3vw, 2.75rem);
}

.page-comunidad .site-main > .section + .section,
.page-solicitud-miembro .site-main > .section + .section,
.page-terminos-participacion .site-main > .section + .section {
    padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
}

.page-comunidad .page-context--community-intro,
.page-comunidad .community-membership-shell,
.page-comunidad .community-process-shell,
.page-comunidad .community-forum-shell,
.page-solicitud-miembro .membership-application-shell,
.page-terminos-participacion .membership-terms-shell {
    gap: clamp(1rem, 2vw, 1.5rem);
}

.page-comunidad .community-intro-card,
.page-comunidad .community-forum-card,
.page-comunidad .community-role-card,
.page-comunidad .community-step,
.page-solicitud-miembro .membership-form-section,
.page-solicitud-miembro .membership-success-card,
.page-terminos-participacion .membership-terms-toc,
.page-terminos-participacion .membership-terms-content,
.page-terminos-participacion .membership-terms-appendix {
    padding: clamp(1rem, 2vw, 1.75rem);
}

.page-comunidad .community-membership-grid,
.page-comunidad .community-process-grid {
    gap: clamp(1rem, 1.8vw, 1.5rem);
}

.page-solicitud-miembro .membership-application-shell {
    width: min(100%, 70rem);
    margin-inline: auto;
}

.page-solicitud-miembro .membership-form {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.page-solicitud-miembro .membership-form-step {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.page-solicitud-miembro .section-heading {
    margin-bottom: 0;
}

.page-solicitud-miembro .membership-compact-note {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: rgba(24, 79, 143, 0.08);
    color: var(--brand-deep);
    box-shadow: none;
}

.page-solicitud-miembro .membership-compact-note strong {
    font-weight: 800;
}

.page-solicitud-miembro .membership-compact-note span {
    color: var(--ink-soft);
}

.page-solicitud-miembro .membership-application-shell--success {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.page-solicitud-miembro .membership-success-card {
    width: min(100%, 46rem);
    margin-inline: auto;
    gap: 0.85rem;
    justify-items: center;
    text-align: center;
}

.page-solicitud-miembro .membership-success-card__reference {
    color: var(--brand-deep);
}

.page-solicitud-miembro .membership-success-card__actions {
    display: flex;
    justify-content: center;
}

@media (max-width: 700px) {
    .page-solicitud-miembro .membership-compact-note {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
/* Stage 066A.6 friendly URLs and community spacing end */

/* Stage 066C member forum access start */
.page-member-access {
    background: linear-gradient(180deg, #f7fafd 0%, #edf3f8 100%);
}

.page-member-access .site-main {
    padding: 0;
}

.page-member-access .member-access-layout {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(0.9rem, 2vw, 1.25rem);
}

.page-member-access .member-access-header,
.page-member-access .member-access-footer {
    width: min(100%, 52rem);
    margin: 0 auto;
}

.page-member-access .member-access-header {
    padding-top: 0.15rem;
}

.page-member-access .member-access-brand {
    display: inline-flex;
    align-items: center;
}

.page-member-access .member-access-brand img {
    width: clamp(8.25rem, 20vw, 10.5rem);
    height: auto;
    object-fit: contain;
}

.page-member-access .member-access-main,
.page-member-access .member-access-section {
    padding: 0;
}

.page-member-access .member-access-shell {
    width: min(100%, 42.5rem);
    margin: 0 auto;
}

.page-member-access .member-access-shell--wide {
    width: min(100%, 51rem);
}

.page-member-access .member-access-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 2.6vw, 1.85rem);
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(20, 58, 90, 0.12);
    box-shadow: 0 20px 46px rgba(12, 32, 57, 0.09);
}

.page-member-access .member-access-card--forum {
    gap: 0.95rem;
}

.page-member-access .member-access-card__heading {
    display: grid;
    gap: 0.45rem;
}

.page-member-access .member-access-card__heading h1 {
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    line-height: 1.05;
}

.page-member-access .member-access-card__heading p {
    max-width: 36rem;
    margin: 0;
}

.page-member-access .member-access-eyebrow {
    margin: 0;
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-member-access .member-access-account-box,
.page-member-access .member-access-note,
.page-member-access .member-access-summary-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98) 0%, rgba(240, 246, 251, 0.96) 100%);
}

.page-member-access .member-access-security-note {
    color: var(--brand-deep);
    font-size: 0.92rem;
}

.page-member-access .member-access-form {
    display: grid;
    gap: 1rem;
}

.page-member-access .member-access-password {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    border: 1px solid rgba(20, 58, 90, 0.16);
    border-radius: 0.9rem;
    background: #fff;
    overflow: hidden;
}

.page-member-access .member-access-password:focus-within {
    border-color: var(--brand);
    box-shadow: var(--focus-ring);
}

.page-member-access .member-access-password input {
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.page-member-access .member-access-password input:focus-visible {
    box-shadow: none;
}

.page-member-access .member-access-password-toggle {
    padding: 0 0.95rem;
    border: 0;
    border-left: 1px solid rgba(20, 58, 90, 0.12);
    background: rgba(24, 79, 143, 0.06);
    color: var(--brand-deep);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.page-member-access .member-access-password-toggle:hover,
.page-member-access .member-access-password-toggle:focus-visible {
    background: rgba(24, 79, 143, 0.12);
}

.page-member-access .member-access-form-actions,
.page-member-access .member-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.page-member-access .member-access-links {
    display: grid;
    gap: 0.65rem;
}

.page-member-access .member-access-links--single {
    padding-top: 0.2rem;
}

.page-member-access .member-access-link,
.page-member-access .member-access-footer a {
    width: fit-content;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.page-member-access .member-access-link:hover,
.page-member-access .member-access-link:focus-visible,
.page-member-access .member-access-footer a:hover,
.page-member-access .member-access-footer a:focus-visible {
    text-decoration: underline;
}

.page-member-access .member-access-forum-greeting,
.page-member-access .member-access-forum-status,
.page-member-access .member-access-forum-note {
    margin: 0;
}

.page-member-access .member-access-summary-card {
    gap: 0.85rem;
}

.page-member-access .member-access-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin: 0;
}

.page-member-access .member-access-summary-grid div {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(20, 58, 90, 0.12);
}

.page-member-access .member-access-summary-grid div:nth-child(-n + 3) {
    padding-top: 0;
    border-top: 0;
}

.page-member-access .member-access-summary-grid dt {
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-member-access .member-access-summary-grid dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.5;
}

.page-member-access .member-access-inline-form {
    margin: 0;
}

.page-member-access .member-access-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding-bottom: 0.4rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.page-member-access .member-access-footer p {
    margin: 0;
}

@media (max-width: 700px) {
    .page-member-access .member-access-layout {
        gap: 1rem;
        padding: 0.85rem;
    }

    .page-member-access .member-access-header,
    .page-member-access .member-access-footer,
    .page-member-access .member-access-shell,
    .page-member-access .member-access-shell--wide {
        width: 100%;
    }

    .page-member-access .member-access-form-actions,
    .page-member-access .member-access-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-member-access .member-access-form-actions .button,
    .page-member-access .member-access-actions .button,
    .page-member-access .member-access-inline-form,
    .page-member-access .member-access-inline-form .button {
        width: 100%;
        justify-content: center;
    }

    .page-member-access .member-access-summary-grid {
        grid-template-columns: 1fr;
    }

    .page-member-access .member-access-summary-grid div {
        padding-top: 0.75rem;
        border-top: 1px solid rgba(20, 58, 90, 0.12);
    }

    .page-member-access .member-access-summary-grid div:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .page-member-access .member-access-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Stage 066C member forum access end */

.page-member-access .member-forum-home,
.page-member-access .member-forum-category-page,
.page-member-access .member-forum-topic-page {
    gap: 1.1rem;
}

.page-member-access .member-forum-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.95rem;
}

.page-member-access .member-forum-breadcrumb a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.page-member-access .member-forum-category-grid,
.page-member-access .member-forum-topic-list,
.page-member-access .member-forum-report-list,
.page-member-access .member-forum-replies {
    display: grid;
    gap: 1rem;
}

.page-member-access .member-forum-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-member-access .member-forum-category-card,
.page-member-access .member-forum-topic-card,
.page-member-access .member-forum-reply-card,
.page-member-access .member-forum-report-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98) 0%, rgba(242, 247, 251, 0.96) 100%);
}

.page-member-access .member-forum-category-card--gold {
    background: linear-gradient(180deg, rgba(255, 249, 236, 0.98) 0%, rgba(251, 244, 226, 0.96) 100%);
}

.page-member-access .member-forum-category-card__head,
.page-member-access .member-forum-topic-card__head,
.page-member-access .member-forum-report-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.page-member-access .member-forum-category-card__head h2,
.page-member-access .member-forum-topic-card__head h2,
.page-member-access .member-forum-replies h2,
.page-member-access .member-forum-reply-editor h2 {
    margin: 0;
    font-size: 1.2rem;
}

.page-member-access .member-forum-category-card p,
.page-member-access .member-forum-topic-card p,
.page-member-access .member-forum-report-card p,
.page-member-access .member-forum-reply-card p {
    margin: 0;
}

.page-member-access .member-forum-category-card__count,
.page-member-access .member-forum-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(20, 58, 90, 0.08);
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.page-member-access .member-forum-topic-card__meta,
.page-member-access .member-forum-reply-card__meta,
.page-member-access .member-forum-category-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.page-member-access .member-forum-topic-card__head h2 a {
    color: var(--ink);
    text-decoration: none;
}

.page-member-access .member-forum-topic-card__head h2 a:hover,
.page-member-access .member-forum-topic-card__head h2 a:focus-visible {
    color: var(--brand);
    text-decoration: underline;
}

.page-member-access .member-forum-topic-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.page-member-access .member-forum-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-member-access .member-forum-filters .member-access-link.is-current {
    text-decoration: underline;
}

.page-member-access .member-forum-topic-body,
.page-member-access .member-forum-reply-card__body {
    display: grid;
    gap: 0.65rem;
    line-height: 1.7;
}

.page-member-access .member-forum-topic-body__content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.page-member-access .member-forum-topic-body__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.page-member-access .member-forum-topic-body__meta {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.page-member-access .member-forum-moderation {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    background: rgba(247, 250, 253, 0.92);
}

.page-member-access .member-forum-moderation summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--brand-deep);
}

.page-member-access .member-forum-moderation__body,
.page-member-access .member-forum-moderation__form {
    display: grid;
    gap: 0.75rem;
}

.page-member-access .member-forum-moderation__body {
    margin-top: 0.85rem;
}

.page-member-access .member-forum-moderation__form select,
.page-member-access .member-forum-moderation__form input,
.page-member-access .member-forum-reply-editor textarea {
    width: 100%;
}

.page-member-access .member-forum-report-card__head {
    align-items: center;
}

.page-member-access .member-forum-report-card form {
    display: grid;
    gap: 0.9rem;
}

.page-member-access .member-forum-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 820px) {
    .page-member-access .member-forum-category-grid {
        grid-template-columns: 1fr;
    }
}
/* Stage 066D.1 member forum visual refinement */
.page-member-access-forum .member-forum-container {
    width: calc(100% - 2rem);
    max-width: 1440px;
    margin-inline: auto;
}

.page-member-access-forum .member-access-section {
    padding: 2.35rem 0 2.65rem;
}

.page-member-access-forum .member-access-card--forum {
    gap: 1.25rem;
    padding: clamp(1.5rem, 2.4vw, 2rem);
}

.page-member-access-forum .member-access-card__heading h1 {
    font-size: clamp(1.95rem, 3vw, 2.65rem);
    line-height: 1.08;
}

.page-member-access-forum .member-access-card__heading p {
    max-width: 48rem;
}

.page-member-access-forum .member-access-forum-greeting {
    color: var(--brand-deep);
    font-size: 1.05rem;
    font-weight: 800;
}

.page-member-access-forum .member-access-summary-card {
    padding: 1rem 1.15rem;
}

.page-member-access-forum .member-access-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-member-access-forum .member-access-summary-grid div {
    padding: 0 0 0 1rem;
    border-top: 0;
    border-left: 1px solid rgba(20, 58, 90, 0.12);
}

.page-member-access-forum .member-access-summary-grid div:first-child {
    padding-left: 0;
    border-left: 0;
}

.page-member-access-forum .member-forum-rules-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(24, 79, 143, 0.14);
    border-radius: 0.75rem;
    background: rgba(240, 247, 252, 0.92);
    box-shadow: 0 12px 26px rgba(12, 32, 57, 0.06);
}

.page-member-access-forum .member-forum-rules-notice__content {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
}

.page-member-access-forum .member-forum-rules-notice__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(24, 79, 143, 0.12);
    color: var(--brand-deep);
    font-weight: 900;
}

.page-member-access-forum .member-forum-rules-notice h2,
.page-member-access-forum .member-forum-rule-section h2 {
    margin: 0;
    color: var(--brand-deep);
    font-size: 1.05rem;
}

.page-member-access-forum .member-forum-rules-notice p,
.page-member-access-forum .member-forum-rules-inline-note {
    margin: 0;
}

.page-member-access-forum .member-forum-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-member-access-forum .member-forum-category-card {
    align-content: start;
    gap: 0.95rem;
    min-width: 0;
    padding: 1.1rem;
    border-radius: 0.75rem;
    border-color: rgba(20, 58, 90, 0.14);
    background: rgba(248, 251, 254, 0.98);
    box-shadow: 0 14px 30px rgba(12, 32, 57, 0.07);
}

.page-member-access-forum .member-forum-category-card--gold {
    background: linear-gradient(180deg, rgba(255, 249, 236, 0.98) 0%, rgba(251, 244, 226, 0.96) 100%);
}

.page-member-access-forum .member-forum-category-card__head h2,
.page-member-access-forum .member-forum-topic-card__head h2 {
    overflow-wrap: anywhere;
    word-break: normal;
}

.page-member-access-forum .member-forum-category-card__meta {
    margin-top: auto;
}

.page-member-access-forum .member-forum-rules-list {
    display: grid;
    gap: 1rem;
}

.page-member-access-forum .member-forum-rule-section {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 0.75rem;
    background: rgba(248, 251, 254, 0.98);
}

.page-member-access-forum .member-forum-rule-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
}

.page-member-access-forum .member-forum-rule-section p {
    margin: 0.35rem 0 0;
    line-height: 1.7;
}

.page-member-access-forum .member-forum-bottom-actions {
    padding-top: 0.25rem;
}

.page-member-access-forum .member-forum-filters,
.page-member-access-forum .member-forum-pagination,
.page-member-access-forum .member-access-actions,
.page-member-access-forum .member-access-form-actions {
    min-width: 0;
}

@media (max-width: 980px) {
    .page-member-access-forum .member-forum-container {
        width: calc(100% - 2rem);
    }

    .page-member-access-forum .member-forum-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .page-member-access-forum .member-access-layout {
        padding-inline: 0;
    }

    .page-member-access-forum .member-forum-container {
        width: calc(100% - 1rem);
    }

    .page-member-access-forum .member-access-section {
        padding: 1.5rem 0 1.85rem;
    }

    .page-member-access-forum .member-forum-rules-notice,
    .page-member-access-forum .member-access-summary-grid {
        grid-template-columns: 1fr;
    }

    .page-member-access-forum .member-forum-rules-notice {
        display: grid;
        align-items: stretch;
    }

    .page-member-access-forum .member-access-summary-grid div {
        padding: 0.75rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(20, 58, 90, 0.12);
    }

    .page-member-access-forum .member-access-summary-grid div:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .page-member-access-forum .member-forum-category-grid,
    .page-member-access-forum .member-forum-rule-section {
        grid-template-columns: 1fr;
    }
}
/* Stage 066D.1 member forum visual refinement end */
/* Stage 066D.2 private forum header and final width */
.page-member-access-forum .member-access-layout {
    gap: 0;
    padding: 0;
}

.page-member-access-forum .member-forum-container {
    width: calc(100% - 2rem);
    max-width: 1440px;
    margin-inline: auto;
}

.member-forum-header {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid rgba(20, 58, 90, 0.12);
    box-shadow: 0 12px 28px rgba(12, 32, 57, 0.07);
}

.member-forum-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto minmax(15rem, 1fr);
    align-items: center;
    gap: 1rem;
    width: calc(100% - 2rem);
    max-width: 1440px;
    margin-inline: auto;
    padding: 0.85rem 0;
}

.member-forum-header__brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
}

.member-forum-header__brand img {
    width: clamp(8rem, 13vw, 10.25rem);
    height: auto;
    object-fit: contain;
}

.member-forum-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.member-forum-header__nav-link,
.member-forum-header__menu-link {
    color: var(--brand-deep);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.member-forum-header__nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.65rem;
    border-bottom: 2px solid transparent;
}

.member-forum-header__nav-link.is-active {
    background: rgba(24, 79, 143, 0.07);
    border-bottom-color: var(--accent-gold, #d9a441);
}

.member-forum-header__nav-link.is-disabled,
.member-forum-header__menu-link.is-disabled {
    color: var(--ink-soft);
    cursor: not-allowed;
}

.member-forum-header__account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 0;
}

.member-forum-header__avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
    background: var(--brand-deep);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.member-forum-header__identity {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.member-forum-header__identity strong,
.member-forum-header__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-forum-header__identity strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.member-forum-header__identity small {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.member-forum-header__menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(20, 58, 90, 0.14);
    border-radius: 0.65rem;
    background: #fff;
    color: var(--brand-deep);
    cursor: pointer;
}

.member-forum-header__menu-button:hover,
.member-forum-header__menu-button:focus-visible,
.member-forum-header__brand:focus-visible,
.member-forum-header__nav-link:focus-visible,
.member-forum-header__menu-link:focus-visible {
    outline: 3px solid rgba(24, 79, 143, 0.22);
    outline-offset: 2px;
}

.member-forum-header__menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(18rem, 100%);
    padding: 0.45rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(12, 32, 57, 0.14);
}

.member-forum-header__mobile-nav,
.member-forum-header__menu-actions {
    display: grid;
    gap: 0.2rem;
}

.member-forum-header__mobile-nav {
    display: none;
    padding-bottom: 0.35rem;
}

.member-forum-header__menu-link {
    display: flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.55rem;
}

.member-forum-header__menu-link.is-active {
    background: rgba(24, 79, 143, 0.07);
}

.member-forum-header__logout-form {
    margin: 0;
}

.member-forum-header__logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.member-forum-header__menu-actions hr {
    width: 100%;
    height: 1px;
    margin: 0.25rem 0;
    border: 0;
    background: rgba(20, 58, 90, 0.12);
}

.page-member-access-forum .member-forum-category-card {
    padding: 1.25rem;
}
@media (min-width: 1320px) {
    .page-member-access-forum .member-forum-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 980px) and (max-width: 1319px) {
    .page-member-access-forum .member-forum-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 680px) and (max-width: 979px) {
    .page-member-access-forum .member-forum-container,
    .member-forum-header__inner {
        width: calc(100% - 1.5rem);
    }

    .page-member-access-forum .member-forum-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .member-forum-header__inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .member-forum-header__nav {
        display: none;
    }

    .member-forum-header__account {
        min-width: 0;
    }

    .member-forum-header__identity {
        flex: 1 1 auto;
    }

    .member-forum-header__mobile-nav {
        display: grid;
    }

    .member-forum-header__menu {
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media (max-width: 679px) {
    .page-member-access-forum .member-forum-container,
    .member-forum-header__inner {
        width: calc(100% - 1rem);
    }

    .page-member-access-forum .member-forum-category-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .page-member-access-forum .member-forum-category-card {
        padding: 1rem;
    }

    .member-forum-header__identity small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-forum-header__menu,
    .member-forum-header__nav-link,
    .member-forum-header__menu-link {
        transition: none;
    }
}

/* Stage 066E member forum profile start */
.member-forum-header__avatar img,
.member-forum-profile-summary__avatar img,
.member-forum-public-profile__avatar img,
.member-forum-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.member-forum-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
    gap: 1.35rem;
    align-items: start;
}

.member-forum-profile-summary,
.member-forum-profile-section,
.member-forum-public-profile .member-forum-profile-section {
    display: grid;
    gap: 0.85rem;
    padding: 1.25rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(12, 32, 57, 0.06);
}

.member-forum-profile-summary {
    justify-items: center;
    text-align: center;
}

.member-forum-profile-summary__avatar,
.member-forum-public-profile__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: var(--brand-deep);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.member-forum-profile-summary h2,
.member-forum-profile-section h2,
.member-forum-public-profile h1,
.member-forum-public-profile h2 {
    margin: 0;
    color: var(--brand-deep);
}

.member-forum-profile-summary p,
.member-forum-profile-section p,
.member-forum-public-profile p {
    margin: 0;
}

.member-forum-profile-forms,
.member-forum-profile-section__inner,
.member-forum-profile-avatar-form {
    display: grid;
    gap: 1rem;
}

.member-access-inline-form {
    margin-top: -0.25rem;
}

.member-forum-public-profile__head {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.member-forum-author-line {
    display: flex;
    min-width: 0;
    gap: 0.7rem;
    align-items: center;
}

.member-forum-author-line--topic {
    margin-top: 0.65rem;
}

.member-forum-author-avatar-link {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 50%;
    text-decoration: none;
}

.member-forum-author-avatar-link:focus-visible {
    outline: 3px solid rgba(24, 79, 143, 0.22);
    outline-offset: 3px;
}

.member-forum-author-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: var(--brand-deep);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
}

.member-forum-author-line__body {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.member-forum-author-line__body a {
    color: var(--brand-deep);
    font-weight: 850;
    text-decoration: none;
}

.member-forum-author-line__body a:hover,
.member-forum-author-line__body a:focus-visible {
    text-decoration: underline;
}

.member-forum-author-line__body span,
.member-forum-author-facts,
.member-forum-reply-signature {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.member-forum-author-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0;
}

.member-forum-author-facts div {
    display: grid;
    gap: 0.1rem;
}

.member-forum-author-facts dt {
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.member-forum-author-facts dd {
    margin: 0;
    color: var(--ink);
}

.member-forum-reply-signature {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(20, 58, 90, 0.13);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .member-forum-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .member-forum-profile-summary__avatar,
    .member-forum-public-profile__avatar {
        width: 6.25rem;
        height: 6.25rem;
        font-size: 1.55rem;
    }

    .member-forum-public-profile__head {
        align-items: flex-start;
    }
}
/* Stage 066E member forum profile end */
/* Stage 066D.2 private forum header and final width end */

/* Stage 066F member activity start */
.member-forum-activity-page {
    display: grid;
    gap: 1.25rem;
}

.member-forum-activity-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    border-bottom: 1px solid rgba(20, 58, 90, 0.12);
}

.member-forum-activity-tab {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 2px solid transparent;
    color: var(--brand-deep);
    font-weight: 850;
    text-decoration: none;
}

.member-forum-activity-tab.is-active {
    border-bottom-color: var(--accent-gold, #d9a441);
    background: rgba(24, 79, 143, 0.06);
    border-radius: 0.65rem 0.65rem 0 0;
}

.member-forum-activity-tab:focus-visible {
    outline: 3px solid rgba(24, 79, 143, 0.22);
    outline-offset: 2px;
}

.member-forum-activity-filters {
    display: grid;
    grid-template-columns: minmax(12rem, 1.4fr) minmax(11rem, 1fr) minmax(9rem, 0.8fr) minmax(8rem, 0.7fr) auto;
    gap: 0.85rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 14px;
    background: rgba(246, 249, 252, 0.92);
}

.member-forum-activity-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.member-forum-activity-list {
    display: grid;
    gap: 0.85rem;
}

.member-forum-activity-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, auto) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(12, 32, 57, 0.06);
}

.member-forum-activity-card__main {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
}

.member-forum-activity-card__category {
    margin: 0;
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.member-forum-activity-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.member-forum-activity-card h2 a {
    color: inherit;
    text-decoration: none;
}

.member-forum-activity-card h2 a:hover,
.member-forum-activity-card h2 a:focus-visible {
    color: var(--brand-deep);
    text-decoration: underline;
}

.member-forum-activity-card__excerpt,
.member-forum-activity-card__meta,
.member-forum-activity-card__summary {
    color: var(--ink-soft);
}

.member-forum-activity-card__excerpt {
    margin: 0;
    line-height: 1.55;
}

.member-forum-activity-card__meta,
.member-forum-activity-card__summary,
.member-forum-activity-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    align-items: center;
}

.member-forum-activity-card__summary {
    justify-content: flex-start;
    font-weight: 750;
}

.member-forum-activity-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(20, 58, 90, 0.14);
    border-radius: 999px;
    background: rgba(24, 79, 143, 0.07);
    color: var(--brand-deep);
    font-size: 0.86rem;
    font-weight: 850;
}

.member-forum-activity-card__actions {
    justify-content: flex-end;
}

@media (max-width: 1080px) {
    .member-forum-activity-filters,
    .member-forum-activity-card {
        grid-template-columns: 1fr 1fr;
    }

    .member-forum-activity-card__main,
    .member-forum-activity-card__actions {
        grid-column: 1 / -1;
    }

    .member-forum-activity-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .member-forum-activity-filters,
    .member-forum-activity-card {
        grid-template-columns: 1fr;
    }

    .member-forum-activity-filters__actions,
    .member-forum-activity-card__actions {
        align-items: stretch;
    }

    .member-forum-activity-filters__actions .button,
    .member-forum-activity-card__actions .button {
        width: 100%;
        justify-content: center;
    }
}
/* Stage 066F member activity end */


/* Stage 066G forum subscriptions and notifications start */
.member-forum-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    background: var(--accent-gold, #d9a441);
    color: var(--brand-deep, #123a5a);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.member-forum-topic-actions,
.member-forum-notifications-toolbar,
.member-forum-notification-card,
.member-forum-notification-card__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.member-forum-follow-form {
    margin-inline-end: auto;
}

.member-forum-notifications-page,
.member-forum-notification-list,
.member-forum-notification-filters,
.member-forum-notification-size,
.member-forum-notification-card__body,
.member-forum-notification-card__title,
.member-forum-notification-preferences {
    min-width: 0;
}

.member-forum-notifications-toolbar {
    justify-content: space-between;
    padding: 0.95rem;
    border: 1px solid rgba(20, 58, 90, 0.1);
    border-radius: 0.95rem;
    background: rgba(232, 239, 247, 0.55);
}

.member-forum-notification-filters {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.member-forum-notification-size {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.member-forum-notification-list {
    display: grid;
    gap: 0.85rem;
    margin-block: 1rem;
}

.member-forum-notification-card {
    justify-content: space-between;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(20, 58, 90, 0.12);
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(12, 32, 57, 0.06);
}

.member-forum-notification-card.is-unread {
    border-inline-start: 4px solid var(--accent-gold, #d9a441);
    background: rgba(232, 239, 247, 0.38);
}

.member-forum-notification-card__body {
    display: grid;
    gap: 0.35rem;
    flex: 1 1 26rem;
}

.member-forum-notification-card__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.member-forum-notification-card__title h2 {
    margin: 0;
    color: var(--brand-deep, #123a5a);
    font-size: 1.05rem;
}

.member-forum-notification-card__body p,
.member-forum-notification-card__body time {
    margin: 0;
}

.member-forum-notification-card__body time {
    color: var(--ink-soft, #5b6875);
    font-size: 0.88rem;
    font-weight: 700;
}

.member-forum-notification-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(217, 164, 65, 0.45);
    border-radius: 999px;
    background: rgba(217, 164, 65, 0.12);
    color: var(--brand-deep, #123a5a);
    font-size: 0.76rem;
    font-weight: 900;
}

.member-forum-notification-card__actions {
    justify-content: flex-end;
    flex: 0 1 18rem;
}

.member-forum-notification-preferences .member-access-form {
    gap: 0.8rem;
}

@media (max-width: 679px) {
    .member-forum-notifications-toolbar,
    .member-forum-notification-size,
    .member-forum-notification-card,
    .member-forum-notification-card__actions {
        align-items: stretch;
    }

    .member-forum-notification-card__actions,
    .member-forum-notification-card__actions .button,
    .member-forum-notification-card__actions form,
    .member-forum-notifications-toolbar .button,
    .member-forum-notifications-toolbar form {
        width: 100%;
    }
}
/* Stage 066G forum subscriptions and notifications end */

/* Stage 067 home headers and institutional pages start */
.page-home .home-card-carousel { gap: 0.9rem; }
.page-home .home-section-head--carousel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-home .home-section-head--carousel .section-heading { margin: 0; }
.page-home .home-section-head__actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem; flex-wrap: nowrap; }
.page-home .home-section-head__actions .home-card-carousel__controls { display: flex; flex: 0 0 auto; gap: 0.45rem; justify-content: flex-end; }
.page-home .home-section-head__actions .button { flex: 0 1 auto; white-space: nowrap; }
.page-la-fundacion .internal-hero__media img { object-position: center 54%; }
.page-cooperacion .internal-hero__media img { object-position: center 48%; }
.page-la-fundacion .internal-hero h1, .page-cooperacion .internal-hero h1 { display: block; max-width: min(100%, 18ch); overflow: visible; -webkit-line-clamp: unset; }
.page-la-fundacion .foundation-introduction__layout, .page-cooperacion .cooperation-introduction__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.page-la-fundacion .foundation-introduction__copy, .page-cooperacion .cooperation-introduction__copy { display: grid; gap: 1rem; max-width: 44rem; font-size: 1.06rem; line-height: 1.65; }
.page-la-fundacion .foundation-introduction__copy p, .page-cooperacion .cooperation-introduction__copy p, .page-la-fundacion .foundation-mission__copy p, .page-la-fundacion .foundation-progress__layout > p, .page-cooperacion .cooperation-approach__layout > p { margin: 0; }
.page-la-fundacion .foundation-mission { background: linear-gradient(135deg, rgba(13, 54, 102, 0.98), rgba(24, 79, 143, 0.94)); }
.page-la-fundacion .foundation-mission__layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; color: #fff; }
.page-la-fundacion .foundation-mission .eyebrow, .page-la-fundacion .foundation-mission h2 { color: #fff; }
.page-la-fundacion .foundation-mission__copy { display: grid; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem); border-inline-start: 2px solid rgba(255, 210, 140, 0.9); color: rgba(255, 255, 255, 0.94); font-size: 1.05rem; line-height: 1.65; }
.page-la-fundacion .foundation-values .tile-grid, .page-cooperacion .cooperation-areas .story-grid { margin-top: 1.5rem; }
.page-la-fundacion .foundation-values .tile-card { display: grid; align-content: start; gap: 0.8rem; padding: clamp(1.2rem, 2vw, 1.7rem); border-top: 3px solid var(--accent-gold, #d9a441); }
.page-la-fundacion .foundation-values .tile-card h3, .page-cooperacion .cooperation-areas .story-card h3 { margin: 0; color: var(--brand-deep); }
.page-la-fundacion .foundation-values .tile-card p, .page-cooperacion .cooperation-areas .story-card p { margin: 0; line-height: 1.58; }
.page-la-fundacion .foundation-progress { background: rgba(24, 79, 143, 0.06); border-block: 1px solid rgba(13, 54, 102, 0.1); }
.page-la-fundacion .foundation-progress__layout, .page-cooperacion .cooperation-approach__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.page-la-fundacion .foundation-progress__layout > p { padding-inline-start: clamp(1.25rem, 3vw, 2.5rem); border-inline-start: 1px solid rgba(13, 54, 102, 0.22); line-height: 1.65; }
.page-la-fundacion .foundation-invitation__inner, .page-cooperacion .cooperation-invitation__inner { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(135deg, #f5f9fd, #e8f0f8); border: 1px solid rgba(13, 54, 102, 0.13); }
.page-la-fundacion .foundation-invitation__inner > div:first-child, .page-cooperacion .cooperation-invitation__inner > div:first-child { max-width: 49rem; }
.page-la-fundacion .foundation-invitation__inner h2, .page-cooperacion .cooperation-invitation__inner h2 { margin-bottom: 0.65rem; }
.page-la-fundacion .foundation-invitation__inner p:last-child, .page-cooperacion .cooperation-invitation__inner p:last-child { margin-bottom: 0; line-height: 1.6; }
.page-cooperacion .cooperation-introduction { border-bottom: 1px solid rgba(13, 54, 102, 0.12); }
.page-cooperacion .cooperation-areas .story-card { min-height: 0; padding: clamp(1.25rem, 2vw, 1.75rem); border-top: 3px solid var(--brand, #184f8f); box-shadow: none; }
.page-cooperacion .cooperation-approach { background: var(--brand-deep, #123a5a); color: #fff; }
.page-cooperacion .cooperation-approach .eyebrow, .page-cooperacion .cooperation-approach h2 { color: #fff; }
.page-cooperacion .cooperation-approach__layout > p { padding: 1.2rem 0 1.2rem clamp(1.25rem, 3vw, 2.5rem); border-inline-start: 2px solid rgba(255, 210, 140, 0.9); color: rgba(255, 255, 255, 0.92); line-height: 1.65; }
@media (max-width: 700px) {
    .page-home .home-section-head--carousel { align-items: flex-start; flex-wrap: wrap; }
    .page-home .home-section-head__actions { width: 100%; justify-content: flex-start; }
    .page-home .home-section-head__actions .home-card-carousel__controls { justify-content: flex-start; }
    .page-la-fundacion .internal-hero__media img { object-position: 58% center; }
    .page-cooperacion .internal-hero__media img { object-position: 58% center; }
    .page-la-fundacion .internal-hero h1, .page-cooperacion .internal-hero h1 { max-width: 100%; font-size: clamp(2rem, 9vw, 2.7rem); }
    .page-la-fundacion .foundation-introduction__layout, .page-la-fundacion .foundation-mission__layout, .page-la-fundacion .foundation-progress__layout, .page-cooperacion .cooperation-introduction__layout, .page-cooperacion .cooperation-approach__layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .page-la-fundacion .foundation-progress__layout > p, .page-cooperacion .cooperation-approach__layout > p { padding: 1rem 0 0; border-inline-start: 0; border-top: 1px solid currentColor; }
    .page-la-fundacion .foundation-invitation__inner, .page-cooperacion .cooperation-invitation__inner { display: grid; align-items: start; }
}
@media (max-width: 430px) {
    .page-home .home-section-head__actions { gap: 0.45rem; }
    .page-home .home-section-head__actions .button { min-height: 2.6rem; padding-inline: 0.8rem; font-size: 0.85rem; }
    .page-home .home-card-carousel__control { width: 2.35rem; height: 2.35rem; }
}
/* Stage 067 home headers and institutional pages end */
/* Stage 067.1 final institutional visual adjustments start */
.page-la-fundacion .foundation-mission { padding-top: clamp(2.25rem, 4vw, 3.4rem); padding-bottom: clamp(2.25rem, 4vw, 3.4rem); }
.page-la-fundacion .foundation-mission :is(.eyebrow, h2, h3, p) { color: #f7fbff; }
.page-la-fundacion .foundation-mission__copy { border-inline-start-color: rgba(235, 246, 255, 0.78); color: #f7fbff; }
.page-la-fundacion .foundation-introduction__copy p { color: #314b64; }
.page-la-fundacion .foundation-progress__layout > p { color: #314b64; }
.page-la-fundacion .foundation-values { padding-top: clamp(2.35rem, 4vw, 3.45rem); }
.page-la-fundacion .foundation-invitation { padding-top: clamp(2.35rem, 4vw, 3.35rem); padding-bottom: clamp(2.35rem, 4vw, 3.35rem); }
.page-la-fundacion .foundation-invitation__inner { padding: clamp(1.3rem, 3vw, 2.25rem); }
.page-cooperacion .cooperation-introduction { padding-bottom: clamp(2.35rem, 4vw, 3.35rem); }
.page-cooperacion .cooperation-areas { padding-top: clamp(2.35rem, 4vw, 3.35rem); }
.page-cooperacion .cooperation-invitation__inner { border-color: rgba(13, 54, 102, 0.24); background: linear-gradient(135deg, #f8fbfe, #e6f0fa); box-shadow: 0 12px 26px rgba(12, 32, 57, 0.06); }
@media (max-width: 700px) {
    .page-la-fundacion .foundation-mission__copy { border-inline-start: 0; border-top: 2px solid rgba(235, 246, 255, 0.72); }
}
/* Stage 067.1 final institutional visual adjustments end */
/* Stage 069: compact private-forum search controls. */
.member-forum-header__search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.member-forum-header__search input {
    width: 100%;
    min-width: 8rem;
    padding: 0.42rem 0.55rem;
    border: 1px solid rgba(20, 58, 90, 0.2);
    border-radius: 0.55rem;
    color: var(--ink);
}

.member-forum-header__search button {
    flex: 0 0 auto;
    padding: 0.42rem 0.6rem;
    border: 1px solid var(--brand-deep);
    border-radius: 0.55rem;
    background: var(--brand-deep);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.member-forum-reply-card__permalink {
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 800;
}

@media (min-width: 900px) {
    .member-forum-header__inner {
        grid-template-columns: auto minmax(0, 1fr) minmax(11rem, 0.5fr) auto;
    }
}

@media (max-width: 899px) {
    .member-forum-header__search {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* Stage 072 public image and spacing normalization start */
:root {
    --public-space-compact: 0.7rem;
    --public-space-block: 1rem;
    --public-space-section: clamp(1.7rem, 3vw, 2.65rem);
    --public-space-hero-after: clamp(1.9rem, 3.2vw, 2.7rem);
    --public-space-closing: clamp(2rem, 3.2vw, 3.25rem);
}

.section-heading__support {
    max-width: 42rem;
    margin-top: 0.55rem;
    font-size: 0.96rem;
    line-height: 1.55;
}

/* A listing frame controls the visual height; the stored source remains untouched. */
.editorial-media-frame--listing,
.article-card__media,
.home-news-slide__media,
.home-news-mini__media,
.editorial-media-frame--news-lead,
.editorial-media-frame--news-mini {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: start;
}

.page-centro-de-ideas .centro-archive-grid .article-card__media,
.page-centro-de-ideas .centro-archive-grid .editorial-media-frame--listing,
.page-noticias-novedades .editorial-archive__grid--news .article-card__media,
.page-noticias-novedades .editorial-archive__grid--news .editorial-media-frame--listing,
.editorial-archive--news .article-card--feature .article-card__media,
.editorial-archive--news .article-card--feature .editorial-media-frame--listing,
.article-card--compact .article-card__media,
.article-card--compact .editorial-media-frame--listing,
.education-grid .article-card__media,
.education-grid .editorial-media-frame--listing,
.education-entry-grid .article-card__media,
.education-entry-grid .editorial-media-frame--listing {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: start;
}

.editorial-media-frame--listing > img,
.article-card__media img,
.home-news-slide__media img,
.home-news-mini__media img,
.editorial-media-frame--news-lead img,
.editorial-media-frame--news-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* The thematic preview keeps its existing content and navigator, but no longer
   inherits the minimum height of a full card/grid row. */
.page-home .home-centro-myth-preview__media {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
}

.page-home .home-centro-lead__media,
.page-home .home-centro-secondary-card__media,
.page-home .home-centro-myth-preview__media {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: start;
}

.page-home .home-centro-myth-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page-home .home-news-slide__media {
    aspect-ratio: 16 / 9;
}

/* Stage 077 article lead alignment start */
.article-detail__lead--with-media {
    align-items: stretch;
}

.article-detail__lead-aside {
    display: flex;
    min-height: 0;
}

.article-detail__figure {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
}

.article-detail__panel--editorial {
    flex: 1 1 auto;
}

@media (max-width: 700px) {
    .article-detail__lead--with-media {
        align-items: start;
    }

    .article-detail__lead-aside {
        display: block;
    }

    .article-detail__figure {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .article-detail__panel--editorial {
        height: auto;
    }
}
/* Stage 077 article lead alignment end */

/* Shared public vertical rhythm. Internal pages previously combined large
   local paddings with the shared section rule, doubling the perceived gaps. */
:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main {
    padding-bottom: var(--public-space-closing);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main > .section {
    padding-top: var(--public-space-section);
    padding-bottom: var(--public-space-section);
}

:is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main > .internal-hero + .section {
    padding-top: var(--public-space-hero-after);
}

.page-home .site-main {
    padding-bottom: var(--public-space-closing);
}

.page-home .public-band {
    padding-block: var(--public-space-section);
}

.page-home .public-band + .public-band {
    padding-top: 0;
}

/* Equivalent archive cards always begin at the grid origin. */
@media (min-width: 1081px) {
    .editorial-archive__grid--news > .article-card,
    .editorial-archive__grid--centro > .article-card {
        grid-column: span 4;
    }
}

@media (max-width: 820px) {
    .editorial-archive--centro .article-card--feature,
    .editorial-archive--news .article-card--feature {
        grid-template-columns: 1fr;
    }

    :is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main > .section {
        padding-top: clamp(1.45rem, 4.5vw, 2rem);
        padding-bottom: clamp(1.45rem, 4.5vw, 2rem);
    }

    :is(.page-la-fundacion, .page-centro-de-ideas, .page-programas-proyectos, .page-comunidad, .page-cooperacion, .page-impacto, .page-noticias-novedades, .page-contacto) .site-main > .internal-hero + .section {
        padding-top: clamp(1.75rem, 5vw, 2.3rem);
    }
}

@media (max-width: 560px) {
    .section-heading__support {
        font-size: 0.92rem;
    }
}
/* Stage 072 public image and spacing normalization end */

/* Stage 073 virtual didactic resources start */
.page-programas-proyectos .education-resource-grid--didactic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-programas-proyectos .education-resource-grid--didactic > .didactic-resource-card {
    min-width: 0;
}

.page-programas-proyectos .didactic-resource-card .education-resource-card__media,
.page-programas-proyectos .didactic-resource-card .education-resource-card__media img {
    aspect-ratio: 16 / 9;
}

.page-programas-proyectos .didactic-resource-card .education-resource-card__media {
    min-height: 0;
    height: auto;
}

.page-programas-proyectos .didactic-resource-card .education-resource-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-programas-proyectos .didactic-resource-card .education-resource-card__body h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.16;
}

.page-programas-proyectos .didactic-resource-card .education-resource-card__body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.page-programas-proyectos .didactic-resource-card .education-resource-card__body h3 a:hover,
.page-programas-proyectos .didactic-resource-card .education-resource-card__body h3 a:focus-visible {
    color: var(--brand);
}

.page-programas-proyectos .education-resource-introduction {
    max-width: 48rem;
    margin-top: 0.72rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.page-recurso-didactico .internal-hero--didactic-resource {
    height: auto;
    min-height: clamp(22rem, 36vw, 28rem);
    max-height: none;
}

.page-recurso-didactico .internal-hero--didactic-resource .internal-hero__layout {
    height: auto;
    min-height: inherit;
    padding-top: clamp(3.1rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.page-recurso-didactico .internal-hero--didactic-resource .internal-hero__copy {
    width: min(100%, 52rem);
    max-width: 52rem;
    gap: clamp(0.75rem, 1.6vw, 1.1rem);
}

.page-recurso-didactico .internal-hero--didactic-resource h1 {
    max-width: 27ch;
    font-size: clamp(2rem, 3.35vw, 3.2rem);
    line-height: 1.05;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.page-recurso-didactico .internal-hero--didactic-resource .internal-hero__lead {
    max-width: 48rem;
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.55;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.didactic-resource-detail {
    display: grid;
    gap: var(--public-space-block);
}

.didactic-resource-detail__overview {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(17rem, 0.78fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}

.didactic-resource-detail__figure {
    min-width: 0;
    width: 100%;
    max-height: min(32rem, 42vw);
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.didactic-resource-detail__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.didactic-resource-detail__figure--empty {
    display: grid;
    place-items: center;
    padding: 1rem;
    color: var(--brand);
    font-weight: 800;
    text-align: center;
}

.didactic-resource-detail__summary {
    display: grid;
    gap: 0.75rem;
    max-width: 30rem;
}

.didactic-resource-detail__summary h2,
.didactic-resource-detail__summary p,
.didactic-resource-detail__narrative h2,
.didactic-resource-detail__fact h2,
.didactic-resource-detail__fact p,
.didactic-resource-detail__institutional h2,
.didactic-resource-detail__institutional p {
    margin-top: 0;
}

.didactic-resource-detail__summary > :last-child,
.didactic-resource-detail__fact > :last-child,
.didactic-resource-detail__institutional > div > :last-child {
    margin-bottom: 0;
}

.didactic-resource-detail__summary h2 {
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    line-height: 1.08;
}

.didactic-resource-detail__lead {
    font-size: 1rem;
    line-height: 1.65;
}

.didactic-resource-detail__narrative {
    width: min(100%, 49rem);
    padding-top: var(--public-space-block);
}

.didactic-resource-detail__narrative h2 {
    margin-bottom: 1rem;
}

.didactic-resource-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-top: var(--public-space-block);
}

.didactic-resource-detail__fact {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.35rem);
    border-top: 3px solid var(--brand-mid);
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98) 0%, rgba(239, 245, 250, 0.96) 100%);
}

.didactic-resource-detail__fact h2 {
    font-size: 1.05rem;
    line-height: 1.2;
}

.didactic-resource-detail__fact p {
    color: var(--ink-soft);
}

.didactic-resource-detail__institutional {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    margin-top: var(--public-space-block);
    padding: clamp(1.25rem, 2.8vw, 1.85rem);
    background: linear-gradient(180deg, #123a68 0%, #184f8f 100%);
    color: #fff;
}

.didactic-resource-detail__institutional h2,
.didactic-resource-detail__institutional p,
.didactic-resource-detail__institutional li {
    color: rgba(255, 255, 255, 0.94);
}

.didactic-resource-detail__institutional h2 {
    margin-bottom: 0.7rem;
}

.didactic-resource-detail__institutional .eyebrow {
    color: #fff;
}

.didactic-resource-detail__institutional .button--secondary {
    border-color: #fff;
    background: #fff;
    color: var(--brand-deep);
}

.didactic-resource-detail__institutional .button--secondary:hover,
.didactic-resource-detail__institutional .button--secondary:focus-visible {
    background: #f1f6fb;
    color: var(--brand-deep);
}

.didactic-resource-detail__adaptations {
    display: grid;
    gap: 0.38rem;
    margin: 1rem 0 0;
    padding-left: 1.15rem;
}

.didactic-resource-detail__institutional strong {
    color: #fff;
}

@media (max-width: 960px) {
    .page-programas-proyectos .education-resource-grid--didactic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .didactic-resource-detail__overview,
    .didactic-resource-detail__institutional {
        grid-template-columns: 1fr;
    }

    .didactic-resource-detail__figure {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .page-programas-proyectos .education-resource-grid--didactic,
    .didactic-resource-detail__facts {
        grid-template-columns: 1fr;
    }
}
/* Stage 073 virtual didactic resources end */
