/* NNEF ecosystem — Figma 6:868. Native blocks; deliberately section-scoped. */
@font-face {
    font-family: "Miras NNEF";
    src: url("../fonts/nnef-ecosystem/inter-tight-variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.miras-nnef-ecosystem {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    container: miras-nnef / inline-size;
    width: 100%;
    max-width: none;
    margin-block: 0 40px;
    padding: 72px 5.555556% 80px;
    overflow: hidden;
    color: #fff;
    background-color: #051b40;
    /* Original exports at their native dimensions, never stretched. */
    background-image:
        url("../images/nnef-ecosystem/ellipse-left-outer.svg"),
        url("../images/nnef-ecosystem/ellipse-left-inner.svg"),
        url("../images/nnef-ecosystem/ellipse-right-small.svg"),
        url("../images/nnef-ecosystem/ellipse-right-large.svg");
    background-repeat: no-repeat;
    background-position: left -299px top 151px, left -298px top 72.4px, right -101px top 396px, right -269px top -2px;
    font-family: "Miras NNEF", "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-wrap: wrap;
}

.miras-nnef-ecosystem *,
.miras-nnef-ecosystem *::before,
.miras-nnef-ecosystem *::after {
    box-sizing: border-box;
}

.miras-nnef-ecosystem :where(h2, h3, p, ul, li, figure, .wp-block-group) {
    min-width: 0;
    max-width: none;
    margin: 0;
    color: inherit;
    font-family: inherit;
    letter-spacing: normal;
    text-wrap: wrap;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 218px;
    align-items: start;
    gap: 40px;
    margin-bottom: 64px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__intro {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #aecfff;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
}

.miras-nnef-ecosystem__eyebrow::before,
.miras-nnef-ecosystem__eyebrow::after {
    content: "";
    flex: 0 0 24px;
    width: 24px;
    height: 2px;
    background: url("../images/nnef-ecosystem/eyebrow-rule.svg") no-repeat center;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__description {
    color: #a2bacf;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

/* Preserve the precise Figma crop of the original, whitespace-bearing PNG. */
.miras-nnef-ecosystem .miras-nnef-ecosystem__logo {
    position: relative;
    width: 218px;
    height: 96px;
    margin-top: 32px;
    overflow: hidden;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__logo img {
    position: absolute;
    inset: -128.12% auto auto -59.35%;
    width: 231.55%;
    height: 371.87%;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: fill;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__card {
    padding: 32px;
    border-radius: 20px;
    background: rgb(11 34 78 / 61%);
    /* The fine inset outline does not alter the reference's 32px spacing. */
    outline: 1px solid rgb(62 110 166 / 30%);
    outline-offset: -1px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__card-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    margin-top: 48px;
    padding: 0;
    list-style: none;
    columns: auto;
}

.miras-nnef-ecosystem__links::before {
    content: "";
    position: absolute;
    inset: -25px 0 auto;
    height: 1px;
    background: url("../images/nnef-ecosystem/card-divider.svg") repeat-x left top;
}

.miras-nnef-ecosystem__card:first-child .miras-nnef-ecosystem__links::before {
    background-image: url("../images/nnef-ecosystem/kindergarten-divider.svg");
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__links > li {
    padding: 0;
    list-style: none;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__links > li::before,
.miras-nnef-ecosystem .miras-nnef-ecosystem__links > li::after {
    content: none;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__links a {
    display: block;
    position: relative;
    align-content: center;
    min-height: 48px;
    padding: 8px 0 8px 48px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 160ms ease-out;
}

.miras-nnef-ecosystem__links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 1px solid rgb(62 110 166 / 30%);
    border-radius: 16px;
    background: #163a6e url("../images/nnef-ecosystem/chevron.svg") no-repeat center;
    transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__links a:hover,
.miras-nnef-ecosystem .miras-nnef-ecosystem__links a:focus-visible {
    color: #aecfff;
}

.miras-nnef-ecosystem__links a:is(:hover, :focus-visible)::before {
    border-color: #aecfff;
    background-color: #24518a;
}

.miras-nnef-ecosystem a:focus-visible {
    outline: 2px solid #aecfff;
    outline-offset: 4px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__social {
    margin: 24px 0 0;
    padding: 32px;
    border-radius: 20px;
    background: rgb(11 34 78 / 61%);
    outline: 1px solid rgb(62 110 166 / 30%);
    outline-offset: -1px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__social-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__social-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__social-description {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__social-description a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgb(174 207 255 / 65%);
    text-underline-offset: 4px;
}

.miras-nnef-ecosystem .miras-nnef-ecosystem__social-description a:is(:hover, :focus-visible) {
    color: #fff;
    text-decoration: underline;
}

.miras-nnef-prose {
    width: 100%;
    max-width: none;
    margin: 0 0 40px;
}

.miras-editorial-content .miras-nnef-prose p {
    width: 100%;
    max-width: none;
    margin: 0;
}

.miras-editorial-content .miras-nnef-prose p + p { margin-top: 20px; }

.miras-nnef-ecosystem ::selection {
    color: #051b40;
    background: #aecfff;
}

/* Container breakpoints work both on the website and inside the block editor. */
@container miras-nnef (max-width: 1100px) {
    .miras-nnef-ecosystem .miras-nnef-ecosystem__header {
        grid-template-columns: minmax(0, 1fr) 174px;
        gap: 24px;
        margin-bottom: 48px;
    }

    .miras-nnef-ecosystem .miras-nnef-ecosystem__title { font-size: 36px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__logo { width: 174px; height: 76.62px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__cards { gap: 18px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__card { padding: 24px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__card-title { font-size: 22px; gap: 12px; }
}

@container miras-nnef (max-width: 900px) {
    .miras-nnef-ecosystem .miras-nnef-ecosystem__cards { grid-template-columns: minmax(0, 1fr); }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__title { font-size: 32px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__header { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__logo { margin-top: 0; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__links { margin-top: 40px; }
    .miras-nnef-ecosystem__links::before { top: -21px; }
}

@container miras-nnef (max-width: 520px) {
    .miras-nnef-ecosystem .miras-nnef-ecosystem__title { font-size: 28px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__description { font-size: 16px; line-height: 1.4; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__card { padding: 20px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__card-title { font-size: 22px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__social { padding: 20px; }
}

@container miras-nnef (max-width: 300px) {
    .miras-nnef-ecosystem .miras-nnef-ecosystem__card { padding: 16px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__card-title { font-size: clamp(18px, 8cqi, 20px); gap: 10px; }
    .miras-nnef-ecosystem .miras-nnef-ecosystem__social { padding: 16px; }
}

@media (max-width: 767px) {
    .miras-nnef-ecosystem { padding: 40px 20px; margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .miras-nnef-ecosystem a,
    .miras-nnef-ecosystem a::before { transition: none; }
}
