﻿:root {
    --navy: #1f2a3a;
    --navy-soft: #2a3649;
    --mint: #8ba79c;
    --mint-dark: #708a80;
    --text-light: #f5f7fb;
    --text-dark: #15202b;
    --line: rgba(255, 255, 255, 0.08);
    --accessibility-font-scale: 0px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: calc(16px + var(--accessibility-font-scale));
    color: var(--text-dark);
    background:
        radial-gradient(circle at top right, rgba(148, 174, 163, 0.22), transparent 25%),
        linear-gradient(180deg, #eef2f1 0%, #e5ece9 100%);
}

.accessibility-tools {
    position: fixed;
    top: 116px;
    right: 18px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 42, 58, 0.14);
    box-shadow: 0 14px 34px rgba(31, 42, 58, 0.18);
}

.accessibility-tools__panel {
    display: flex;
    gap: 8px;
}

.accessibility-tools.is-collapsed .accessibility-tools__panel {
    display: none;
}

.accessibility-tools button {
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    background: #1f313f;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.accessibility-tools__toggle {
    min-width: 128px;
    background: linear-gradient(135deg, #0e7b54, #7fb234) !important;
    box-shadow: 0 8px 18px rgba(14, 123, 84, 0.22);
}

.accessibility-tools button:hover {
    background: #0e7b54;
}

.is-high-contrast body {
    background: #000000 !important;
    color: #ffffff !important;
}

.is-high-contrast a {
    color: #ffe66d !important;
}

.is-high-contrast .site-header,
.is-high-contrast .site-footer,
.is-high-contrast .info-panel,
.is-high-contrast .module-admin-card,
.is-high-contrast .news-list-shell,
.is-high-contrast .communication-panel {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.site-header {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.top-bar {
    min-height: 96px;
    padding: 0 42px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 26px;
    justify-content: flex-start;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: 96px;
    height: auto;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-partner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-partner__logo {
    width: 138px;
    height: auto;
    display: block;
    object-fit: contain;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.nav-item:hover > a,
.nav-item.is-open > a {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(19, 28, 40, 0.16);
    display: grid;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.nav-submenu a {
    color: #223444;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.nav-submenu a:hover {
    background: #e7efeb;
    transform: none;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu,
.nav-item.is-open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.foundation-banner {
    background: linear-gradient(180deg, #94aea3 0%, #7f9b91 100%);
    padding: 26px 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.foundation-banner p {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.32;
    text-transform: uppercase;
}

.site-main {
    padding: 34px 20px 72px;
}

.content-with-sidebar {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.content-with-sidebar__main {
    min-width: 0;
}


.page-placeholder {
    padding: 56px 20px;
    display: flex;
    justify-content: center;
}

.news-home-section,
.news-list-page,
.news-detail-page,
.institutional-page {
    display: flex;
    justify-content: center;
}

.news-home-shell,
.news-list-shell,
.news-detail-shell,
.institutional-shell {
    width: 100%;
}

.site-sidebar {
    position: sticky;
    top: 56px;
    margin-top: 14px;
}

.site-side-menu {
    display: grid;
    gap: 10px;
}

.site-side-menu__link,
.site-side-menu__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(31, 42, 58, 0.08);
    color: #213342;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.site-side-menu__link.is-active,
.site-side-menu__toggle:hover,
.site-side-menu__group.is-open .site-side-menu__toggle {
    background: linear-gradient(135deg, #1f2a3a 0%, #37524e 100%);
    color: #ffffff;
}

.site-side-menu__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.site-side-menu__submenu {
    display: none;
    gap: 8px;
    padding: 10px 0 0 14px;
}

.site-side-menu__group.is-open .site-side-menu__submenu {
    display: grid;
}

.site-side-menu__sublink {
    display: block;
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: #364959;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 24px rgba(31, 42, 58, 0.06);
}

.site-side-menu__sublink.is-active,
.site-side-menu__sublink:hover {
    background: #e4ece8;
    color: #1f313f;
}

.site-sidebar__government-link {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    min-height: 92px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(31, 42, 58, 0.08);
    text-decoration: none;
}

.site-sidebar__government-mark {
    width: 4px;
    min-height: 54px;
    border-radius: 999px;
    background: #1f62c7;
    flex: 0 0 4px;
}

.site-sidebar__government-text {
    color: #1458c8;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-sidebar__government-link:hover .site-sidebar__government-text {
    color: #0d4bac;
}

.section-heading,
.news-page-heading {
    margin-bottom: 22px;
}

.section-heading h1,
.news-page-heading h1 {
    margin: 0 0 10px;
    color: #203142;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
}

.section-heading p:last-child,
.news-page-heading p:last-child {
    margin: 0;
    color: #5d6d78;
    line-height: 1.7;
    max-width: 760px;
}

.news-feature-card,
.news-empty-state,
.news-detail-shell {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 20px 44px rgba(31, 42, 58, 0.1);
}

.news-feature-card {
    padding: 28px;
}

.news-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #eef3f1;
}

.news-carousel__viewport {
    overflow: hidden;
    border-radius: 24px;
}

.news-carousel__track {
    display: flex;
    transition: transform 0.45s ease;
}

.news-slide {
    min-width: 100%;
}

.news-slide__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-slide__media {
    position: relative;
    aspect-ratio: 16 / 8.4;
    background: linear-gradient(135deg, #dbe7e2 0%, #b9cec5 100%);
    overflow: hidden;
}

.news-slide__image,
.news-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-slide__placeholder,
.news-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30534d;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #dbe7e2 0%, #c5d5cf 100%);
}

.news-slide__content {
    padding: 20px 22px 24px;
    background: #ffffff;
}

.news-slide__date,
.news-card__date {
    display: inline-block;
    margin-bottom: 10px;
    color: #648078;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-slide__content h2,
.news-card__content h2 {
    margin: 0;
    color: #213342;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    line-height: 1.2;
}

.news-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 42, 58, 0.48);
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-carousel__nav:hover {
    background: rgba(31, 42, 58, 0.72);
    transform: translateY(-50%) scale(1.02);
}

.news-carousel__nav--prev {
    left: 18px;
}

.news-carousel__nav--next {
    right: 18px;
}

.news-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 0 18px;
    background: #ffffff;
}

.news-carousel__dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #c4d1cc;
    cursor: pointer;
}

.news-carousel__dot.is-active {
    background: #4d6f68;
}

.news-feature-card__divider {
    height: 1px;
    margin: 26px 0 24px;
    background: linear-gradient(90deg, rgba(111, 138, 129, 0) 0%, rgba(111, 138, 129, 0.5) 20%, rgba(111, 138, 129, 0.5) 80%, rgba(111, 138, 129, 0) 100%);
}

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

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


.news-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(31, 42, 58, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 38px rgba(31, 42, 58, 0.14);
}

.news-card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eff4f2;
}

.news-card__content {
    padding: 18px 18px 20px;
}

.news-card__content h2 {
    font-size: 1.18rem;
}

.news-more-row {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.informative-home-section {
    margin-top: 34px;
}

.home-section-divider {
    height: 1px;
    margin: 34px 0;
    background: linear-gradient(90deg, rgba(111, 138, 129, 0) 0%, rgba(111, 138, 129, 0.45) 18%, rgba(111, 138, 129, 0.55) 50%, rgba(111, 138, 129, 0.45) 82%, rgba(111, 138, 129, 0) 100%);
}

.informative-feature-card {
    display: grid;
    gap: 24px;
}

.informative-carousel {
    background: transparent;
    overflow: visible;
}

.informative-slide {
    padding: 4px;
}

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

.informative-home-card,
.informative-list-card,
.informative-gallery__card {
    background: #ffffff;
    border: 1px solid rgba(113, 136, 128, 0.16);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(31, 42, 58, 0.08);
}

.informative-home-card__media,
.informative-list-card__media,
.informative-gallery__media {
    display: block;
    background: #eef4f1;
}

.informative-home-card__media img,
.informative-list-card__media img,
.informative-gallery__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.informative-home-card__media {
    aspect-ratio: 4 / 5;
}

.informative-list-card__media {
    aspect-ratio: 16 / 11;
}

.informative-gallery__media {
    aspect-ratio: 4 / 5;
}

.informative-home-card__content,
.informative-list-card__content {
    padding: 16px;
}

.informative-home-card__content h2,
.informative-list-card__content h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.informative-home-card__content h2 a,
.informative-list-card__content h2 a {
    color: #203142;
    text-decoration: none;
}

.informative-list-card__content p {
    margin: 0 0 16px;
    color: #5d6d78;
    line-height: 1.6;
}

.informative-actions,
.informative-gallery__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.informative-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f2a3a 0%, #36504b 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.informative-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(31, 42, 58, 0.16);
}

.informative-action-button--ghost {
    background: #e5eeea;
    color: #29404f;
}

.informative-list-grid,
.informative-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


.informative-detail-shell__summary {
    margin: 16px 0 0;
    color: #5d6d78;
    line-height: 1.7;
    max-width: 760px;
}

.informative-gallery__actions {
    padding: 16px;
}

.site-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.site-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 34, 43, 0.58);
    backdrop-filter: blur(2px);
}

.site-lightbox__dialog {
    position: relative;
    width: min(1000px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.site-lightbox__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #7a8088;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

.site-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(820px, calc(100vh - 100px));
    overflow: auto;
}

.site-lightbox__image {
    display: block;
    width: auto;
    max-width: min(820px, 100%);
    max-height: calc(100vh - 120px);
    height: auto;
    object-fit: contain;
}

.site-footer {
    margin-top: 56px;
    background:
        linear-gradient(135deg, rgba(30, 58, 92, 0.96) 0%, rgba(17, 34, 56, 0.98) 58%, rgba(15, 25, 41, 1) 100%);
    color: #eef4f3;
    position: relative;
    overflow: hidden;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.site-footer::before {
    top: 150px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(106, 176, 156, 0.18) 0%, rgba(106, 176, 156, 0) 72%);
}

.site-footer::after {
    top: 80px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(89, 140, 205, 0.18) 0%, rgba(89, 140, 205, 0) 70%);
}

.prefooter-strip {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.prefooter-card {
    position: relative;
    padding: 24px 24px 26px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 244, 241, 0.92) 100%);
    color: #1f3343;
    text-decoration: none;
    box-shadow: 0 20px 44px rgba(7, 15, 27, 0.18);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.prefooter-card::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 110px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #95cdb8 0%, #4a7f7a 100%);
}

.prefooter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 54px rgba(7, 15, 27, 0.22);
}

.prefooter-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #678378;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.prefooter-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.45rem;
    font-family: Georgia, "Times New Roman", serif;
}

.prefooter-card p {
    margin: 0;
    color: #526571;
    line-height: 1.7;
}

.site-footer__body {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 26px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(180px, 0.8fr));
    gap: 24px;
}

.site-footer__brand,
.site-footer__contact,
.site-footer__links,
.site-footer__social {
    position: relative;
    padding: 26px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #9b134d 0%, #294f8a 100%);
}

.site-footer__logo-wrap {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.site-footer__logo {
    width: 92px;
    height: auto;
    flex-shrink: 0;
}

.site-footer__kicker {
    margin: 0 0 6px;
    color: #99c3b3;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.site-footer__brand h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.site-footer__subtitle,
.site-footer__summary {
    margin: 0;
    color: rgba(238, 244, 243, 0.82);
    line-height: 1.8;
}

.site-footer__summary {
    margin-top: 14px;
    max-width: 560px;
}

.site-footer__contact h3,
.site-footer__links h3,
.site-footer__social h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-footer__contact p,
.site-footer__links a,
.site-footer__social p {
    margin: 0 0 10px;
    color: rgba(238, 244, 243, 0.86);
}

.site-footer__contact a,
.site-footer__links a {
    color: rgba(238, 244, 243, 0.92);
    text-decoration: none;
}

.site-footer__links {
    display: grid;
    align-content: start;
}

.site-footer__links a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__social-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer__social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 14px 22px rgba(10, 18, 30, 0.18);
}

.site-footer__social-link--whatsapp {
    background: linear-gradient(135deg, #24d366 0%, #128c7e 100%);
}

.site-footer__social-link--instagram {
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 22%, #d62976 55%, #962fbf 78%, #4f5bd5 100%);
}

.site-footer__social-list a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer__social-list a:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.site-footer__social-list svg {
    width: 24px;
    height: 24px;
    display: block;
}


.site-footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}

.site-footer__bottom-links a {
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.site-footer__bottom-links a:hover {
    color: #0e7b54;
}

.site-footer__bottom {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    color: rgba(238, 244, 243, 0.74);
    font-size: 0.92rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a {
    color: #d9ece5;
    text-decoration: none;
}

.foundation-profile {
    display: grid;
    gap: 24px;
}

.foundation-profile__brand {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.foundation-profile__logo {
    width: 100%;
    height: auto;
}

.foundation-profile__eyebrow {
    margin: 0 0 8px;
    color: #6e857b;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.foundation-profile__brand h3 {
    margin: 0 0 10px;
    color: #213342;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.foundation-profile__brand p:last-child {
    margin: 0;
    color: #546873;
    line-height: 1.8;
}

.foundation-profile__data {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(233, 242, 238, 0.96) 0%, rgba(245, 250, 248, 0.96) 100%);
    border: 1px solid rgba(102, 128, 119, 0.14);
}

.foundation-profile__data div {
    color: #213342;
    line-height: 1.7;
}

.foundation-profile__data a {
    color: #2d5b8c;
    text-decoration: none;
}

.foundation-profile__text {
    display: grid;
    gap: 16px;
    padding: 28px 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(102, 128, 119, 0.12);
}

.foundation-profile__text p {
    margin: 0;
    color: #465d69;
    line-height: 1.9;
}

.ombudsman-public-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ombudsman-lead {
    margin: 0 0 18px;
    color: #5d6d78;
    line-height: 1.7;
}

.field-help {
    display: block;
    margin-top: 8px;
    color: #6c7f88;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-field input {
    width: auto;
}

.checkbox-field--card {
    justify-content: center;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(236, 244, 241, 0.92);
    border: 1px solid rgba(103, 131, 120, 0.16);
    white-space: nowrap;
}

.ombudsman-subject-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.ombudsman-subject-field {
    display: block;
}

.admin-form label.is-disabled {
    opacity: 0.6;
}

.ticket-meta-list {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.ticket-meta-list div {
    color: #314655;
    line-height: 1.6;
}

.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ticket-status-badge--open {
    background: rgba(210, 137, 41, 0.14);
    color: #9b5e0e;
}

.ticket-status-badge--answered {
    background: rgba(46, 139, 87, 0.14);
    color: #1d7244;
}

.ticket-status-panel {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(55, 102, 128, 0.14);
    background: linear-gradient(135deg, rgba(239, 247, 244, 0.97), rgba(227, 239, 243, 0.95));
    box-shadow: 0 20px 40px rgba(26, 48, 63, 0.08);
}

.ticket-status-panel--open {
    border-color: rgba(210, 137, 41, 0.22);
    background: linear-gradient(135deg, rgba(255, 246, 232, 0.98), rgba(250, 239, 217, 0.96));
}

.ticket-status-panel--answered {
    border-color: rgba(46, 139, 87, 0.2);
    background: linear-gradient(135deg, rgba(232, 247, 238, 0.98), rgba(224, 241, 231, 0.96));
}

.ticket-status-panel__main {
    display: grid;
    gap: 10px;
}

.ticket-status-panel__main strong {
    font-size: 1.1rem;
    color: #203142;
}

.ticket-status-panel__main p {
    margin: 0;
    color: #4d6170;
    line-height: 1.6;
}

.ticket-status-panel__meta {
    min-width: 240px;
    display: grid;
    gap: 12px;
}

.ticket-status-panel__meta div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.ticket-status-panel__meta strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5f7380;
}

.ticket-status-panel__meta span {
    color: #203142;
    font-weight: 700;
}

.ticket-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-right: 54px;
    margin-bottom: 18px;
}

.ticket-locked-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(242, 246, 248, 0.95);
    border: 1px solid rgba(84, 105, 120, 0.16);
}

.ticket-locked-note strong {
    display: block;
    margin-bottom: 8px;
    color: #203142;
}

.ticket-locked-note p {
    margin: 0;
    color: #546978;
    line-height: 1.7;
}

.ticket-message-box {
    margin-top: 16px;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(236, 244, 241, 0.92);
    border: 1px solid rgba(103, 131, 120, 0.12);
}

.ticket-message-box h4 {
    margin: 0 0 10px;
    color: #203142;
}

.ticket-message-box p {
    margin: 0;
    color: #4c616d;
    line-height: 1.8;
}

.ticket-attachment-list {
    display: grid;
    gap: 10px;
}

.ticket-attachment-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(103, 131, 120, 0.18);
    color: #284f61;
    text-decoration: none;
    font-weight: 700;
}

.ticket-attachment-link small {
    color: #6d818b;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.ticket-attachment-link:hover {
    border-color: rgba(57, 123, 152, 0.35);
    transform: translateY(-1px);
}

.ticket-message-box--response {
    background: rgba(225, 241, 232, 0.96);
}

.ombudsman-ticket-card {
    margin-top: 24px;
}

.ombudsman-ticket-card--modal {
    margin-top: 0;
}

.ombudsman-extra-channel {
    margin-top: 26px;
}

.ombudsman-extra-channel__divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(31, 49, 66, 0.18), rgba(31, 49, 66, 0.04));
    margin-bottom: 22px;
}

.ombudsman-extra-channel__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: center;
}

.ombudsman-extra-channel__content h3 {
    margin: 0 0 10px;
    color: #203142;
}

.ombudsman-extra-channel__content p {
    margin: 0;
    color: #546978;
    line-height: 1.7;
}

.ombudsman-qr-card {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(57, 123, 152, 0.14);
    box-shadow: 0 18px 36px rgba(26, 48, 63, 0.08);
}

.ombudsman-qr-card img {
    width: 100%;
    max-width: 180px;
    display: block;
}

.ombudsman-qr-card span {
    color: #546978;
    font-size: 0.9rem;
    text-align: center;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 27, 35, 0.64);
    backdrop-filter: blur(6px);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(12, 24, 33, 0.28);
}

.admin-modal__header {
    margin-bottom: 18px;
}

.admin-modal__header h3 {
    margin: 6px 0;
}

.admin-modal__header p {
    margin: 0;
    color: #5d6d78;
}

.admin-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #546978;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.site-modal {
    position: fixed;
    inset: 0;
    z-index: 1350;
}

.site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 27, 35, 0.64);
    backdrop-filter: blur(6px);
}

.site-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    padding: 28px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(12, 24, 33, 0.28);
}

.site-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #546978;
    text-decoration: none;
    font-size: 2rem;
    line-height: 1;
}

.news-empty-state--modal {
    margin: 0;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .site-modal,
    .site-modal * {
        visibility: visible !important;
    }

    .site-modal {
        position: static !important;
        inset: auto !important;
    }

    .site-modal__backdrop,
    .site-modal__close,
    .ticket-print-actions {
        display: none !important;
    }

    .site-modal__dialog {
        width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
}

.stats-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.stat-chip {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 26px rgba(31, 42, 58, 0.08);
}

.stat-chip span {
    display: block;
    color: #667987;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-chip strong {
    display: block;
    margin-top: 8px;
    color: #203142;
    font-size: 1.8rem;
}

.admin-form--filters {
    margin-bottom: 20px;
}

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

.form-actions-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.news-more-button,
.news-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.news-more-button {
    background: linear-gradient(135deg, #1f2a3a 0%, #36504b 100%);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(31, 42, 58, 0.18);
}

.news-back-link {
    background: #e5eeea;
    color: #29404f;
}

.news-empty-state {
    padding: 34px;
}

.news-empty-state h2 {
    margin: 0 0 10px;
    color: #203142;
}

.news-empty-state p:last-child {
    margin: 0;
    color: #5d6d78;
    line-height: 1.7;
}

.news-page-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}

.news-detail-shell {
    padding: 34px;
    overflow: hidden;
}

.news-detail-header {
    margin-top: 18px;
    margin-bottom: 24px;
}

.news-detail-header h1 {
    margin: 0 0 12px;
    color: #203142;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.news-detail-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #6a7b85;
    font-weight: 700;
}

.news-detail-body {
    color: #203142;
    line-height: 1.9;
    font-size: 1.04rem;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-detail-body * {
    max-width: 100%;
    box-sizing: border-box;
}

.news-detail-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 18px;
}

.news-detail-body figure {
    margin: 0 0 18px;
}

.news-detail-body .news-inline-figure {
    width: 100%;
    clear: both;
}

.news-detail-body .news-inline-figure--small {
    max-width: 38%;
}

.news-detail-body .news-inline-figure--medium {
    max-width: 64%;
}

.news-detail-body .news-inline-figure--large {
    max-width: 100%;
}

.news-detail-body .news-inline-figure--align-left {
    float: left;
    clear: left;
    margin: 10px 24px 18px 0;
}

.news-detail-body .news-inline-figure--align-center {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

.news-detail-body .news-inline-figure--align-right {
    float: right;
    clear: right;
    margin: 10px 0 18px 24px;
}

.news-detail-body .news-inline-video,
.news-detail-body .news-inline-embed {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 18px;
    background: #0f151c;
    aspect-ratio: 16 / 9;
}

.news-detail-body p,
.news-detail-body ul,
.news-detail-body ol,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body blockquote {
    margin-top: 0;
    margin-bottom: 18px;
}

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

.institutional-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.institutional-brand__logo {
    width: min(180px, 100%);
    height: auto;
    display: block;
}

.institutional-stack {
    display: grid;
    gap: 20px;
}

.institutional-card,
.education-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(31, 42, 58, 0.1);
}

.institutional-card h2,
.education-card h2 {
    margin: 0 0 12px;
    color: #213342;
    font-size: 1.45rem;
}

.institutional-card--stacked {
    width: 100%;
}

.institutional-card p,
.education-card p {
    margin: 0;
    color: #5c6d78;
    line-height: 1.8;
}

.institutional-list {
    margin: 0;
    padding-left: 20px;
    color: #5c6d78;
    line-height: 1.9;
}

.education-card__meta {
    margin-bottom: 12px;
    color: #648078;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-filter {
    margin-bottom: 22px;
}

.education-filter label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 32px rgba(31, 42, 58, 0.08);
    font-weight: 700;
    color: #203142;
}

.education-filter select {
    min-width: 140px;
    border: 1px solid #d3dfe0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f9fbfb;
    color: #203142;
    font-size: 0.98rem;
}

.education-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(31, 42, 58, 0.1);
}

.education-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.education-table thead th {
    padding: 18px 16px;
    background: #222932;
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
}

.education-table td {
    padding: 18px 16px;
    border: 1px solid #dde6e3;
    color: #203142;
    text-align: center;
    line-height: 1.7;
    background: #ffffff;
}

.education-table__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #3c6fcf;
    color: #2f62c1;
    text-decoration: none;
    font-weight: 700;
}

.education-table__button:hover {
    background: #edf3ff;
}

.education-table__empty {
    color: #7d8b95;
    font-weight: 600;
}

.info-page-shell {
    display: grid;
    gap: 24px;
}

.info-panel {
    padding: 28px 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(31, 42, 58, 0.1);
    border: 1px solid #dbe6e2;
}

.info-panel h2 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8e2de;
    color: #203142;
    text-align: center;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.info-panel p {
    margin: 0;
    color: #324655;
    line-height: 1.9;
    font-size: 1.04rem;
}

.info-panel__content {
    color: #203142;
}

.info-panel__content h3,
.info-panel__content h4 {
    margin: 0 0 12px;
    color: #203142;
}

.info-panel__content h3 {
    font-size: 1.95rem;
    text-align: center;
    margin-bottom: 28px;
}

.info-panel__content h4 {
    font-size: 1.35rem;
    margin-top: 32px;
}

.info-panel__content p {
    margin: 0 0 18px;
}

.visit-intro,
.visit-requirement,
.visit-block {
    padding: 22px 24px;
    border-radius: 18px;
    background: #f8fbfa;
    border: 1px solid #dce7e2;
}

.visit-requirement,
.visit-block {
    margin-top: 20px;
}

.visit-block h4,
.visit-requirement h4,
.visit-intro h3 {
    margin-top: 0;
}

.visit-block h4 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d7e2dd;
}

.visit-subblock + .visit-subblock {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #c8d7d0;
}

.visit-subblock h5 {
    margin: 0 0 10px;
    color: #1f313f;
    font-size: 1.06rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.visit-subblock p:last-child,
.visit-intro p:last-child,
.visit-requirement p:last-child {
    margin-bottom: 0;
}

.communication-shell {
    display: grid;
}

.communication-panel {
    padding: 30px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(31, 42, 58, 0.1);
    border: 1px solid #dbe6e2;
}

.communication-panel h2 {
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8e2de;
    color: #203142;
    text-align: center;
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.communication-panel__intro {
    margin: 0 0 26px;
    color: #405462;
    line-height: 1.8;
    font-size: 1.05rem;
}

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

.communication-card {
    padding: 22px 22px 24px;
    border-radius: 20px;
    background: #f8fbfa;
    border: 1px solid #dce7e2;
}

.communication-card h3 {
    margin: 0 0 10px;
    color: #203142;
    font-size: 1.3rem;
}

.communication-card p,
.communication-note p {
    margin: 0;
    color: #334755;
    line-height: 1.8;
}

.communication-phone-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.communication-phone-list a,
.communication-phone-list span,
.communication-mail {
    color: #1f313f;
    font-size: 1.28rem;
    font-weight: 800;
    text-decoration: none;
}

.communication-phone-list a:hover,
.communication-mail:hover {
    color: #0e7b54;
}

.communication-card--wide {
    grid-column: 1 / -1;
}

.communication-link-button,
.communication-social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 13px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.communication-link-button:hover,
.communication-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(31, 42, 58, 0.12);
}

.communication-link-button {
    margin-top: 16px;
    background: #1f313f;
    color: #ffffff;
}

.communication-social {
    margin-top: 16px;
    color: #ffffff;
}

.communication-social--whatsapp {
    background: linear-gradient(135deg, #17b857 0%, #118c44 100%);
}

.communication-social--instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.communication-social__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.communication-social__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.communication-note {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: 18px;
    background: #f3f7f5;
    border: 1px dashed #cfddd7;
}

.communication-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.chaplaincy-story {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.chaplaincy-story__panel,
.chaplaincy-downloads {
    padding: 24px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #dbe6e2;
    box-shadow: 0 18px 38px rgba(31, 42, 58, 0.08);
}

.chaplaincy-story__panel h2,
.chaplaincy-downloads h2 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9e2de;
    color: #203142;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.chaplaincy-story__panel p {
    margin: 0 0 14px;
    color: #334755;
    line-height: 1.85;
}

.chaplaincy-story__panel p:last-child {
    margin-bottom: 0;
}

.chaplaincy-downloads__list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

.chaplaincy-downloads__list li {
    color: #203142;
    line-height: 1.7;
}

.chaplaincy-downloads__list a {
    color: #1f62c7;
    font-weight: 700;
    text-decoration: none;
}

.chaplaincy-downloads__list a:hover {
    text-decoration: underline;
}

.chaplaincy-downloads__list span {
    display: block;
    margin-top: 2px;
    color: #5d6d78;
    font-size: 0.95rem;
}

.info-panel__list {
    margin: 0;
    padding-left: 26px;
    color: #203142;
    line-height: 1.8;
    font-size: 1.02rem;
}

.info-panel__list li + li {
    margin-top: 6px;
}

.site-map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.site-map-grid a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f6fbf9;
    border: 1px solid #dbe6e2;
    color: #203142;
    font-weight: 800;
    text-decoration: none;
}

.site-map-grid a:hover {
    background: #eaf4ef;
    color: #0e7b54;
}

.privacy-text {
    display: grid;
    gap: 16px;
}

.privacy-text p {
    margin: 0;
}

.admin-form--compact {
    margin: 18px 0;
    padding: 18px;
    border-radius: 18px;
    background: #f6fbf9;
    border: 1px solid #dbe6e2;
}

.ticket-status-badge--in_review,
.ticket-status-panel--in_review .ticket-status-badge {
    background: #fff3cd;
    color: #785a00;
}

.ticket-status-badge--forwarded,
.ticket-status-panel--forwarded .ticket-status-badge {
    background: #e7f0ff;
    color: #2658a8;
}

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


.contest-card,
.contest-detail-shell {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 38px rgba(31, 42, 58, 0.1);
}

.contest-card {
    display: block;
    padding: 24px;
    color: #203142;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(31, 42, 58, 0.14);
}

.contest-card__year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e9f1ee;
    color: #46635b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contest-card h2 {
    margin: 14px 0 10px;
    font-size: 1.4rem;
}

.contest-card p {
    margin: 0;
    color: #5b6d78;
    line-height: 1.7;
}

.contest-detail-shell {
    padding: 28px;
}

.resolution-year-block + .resolution-year-block {
    margin-top: 24px;
}

.year-group__title--public {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.resolution-year-block {
    margin-top: 26px;
}

.year-group__title--public {
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.contest-accordion {
    margin-top: 18px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(31, 42, 58, 0.08);
}

.contest-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: #d82f48;
    color: #ffffff;
    font-size: 1.06rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.contest-accordion__summary::-webkit-details-marker {
    display: none;
}

.contest-accordion__icon::before {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
}

.contest-accordion[open] .contest-accordion__icon::before {
    content: "-";
}

.contest-accordion__content {
    padding: 18px 18px 20px;
}

.contest-table-wrap {
    overflow-x: auto;
}

.contest-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.contest-table thead th {
    padding: 14px 12px;
    background: #f0f4f2;
    color: #203142;
    text-align: left;
    border: 1px solid #d7e1dd;
}

.contest-table td {
    padding: 14px 12px;
    border: 1px solid #dfe7e3;
    vertical-align: middle;
    color: #203142;
    background: #ffffff;
}

.contest-table__title {
    color: #1f62c7;
    font-weight: 700;
    text-decoration: none;
}

.contest-table__title:hover {
    text-decoration: underline;
}

.contest-table td p {
    margin: 8px 0 0;
    color: #5d6d78;
    line-height: 1.6;
}

.contest-table__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #239153;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.contest-table__download:hover {
    background: #1d7b46;
}

.document-format {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #213342;
}

.document-format__icon {
    display: inline-flex;
    position: relative;
    width: 20px;
    height: 24px;
    border-radius: 4px;
    background: #6c7a86;
    flex: 0 0 auto;
}

.document-format__icon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.92);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.document-format__label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.document-format--pdf .document-format__icon {
    background: #d43a3a;
}

.document-format--word .document-format__icon {
    background: #2b67c8;
}

.document-format--powerpoint .document-format__icon {
    background: #d86a2f;
}

.document-format--spreadsheet .document-format__icon {
    background: #2f8f53;
}

.document-format--generic .document-format__icon {
    background: #6c7a86;
}

.admin-login-page {
    padding: 56px 20px 72px;
}

.login-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
    gap: 28px;
    align-items: stretch;
}

.login-highlight,
.login-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(31, 42, 58, 0.12);
}

.login-highlight {
    padding: 42px;
    background:
        linear-gradient(135deg, rgba(31, 42, 58, 0.94) 0%, rgba(42, 54, 73, 0.96) 100%);
    color: var(--text-light);
    position: relative;
}

.login-highlight::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148, 174, 163, 0.32) 0%, rgba(148, 174, 163, 0) 70%);
}

.login-kicker {
    margin: 0 0 12px;
    color: #ced9d4;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-highlight h2 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    line-height: 1.08;
}

.login-description {
    max-width: 620px;
    margin: 0;
    color: rgba(245, 247, 251, 0.88);
    font-size: 1.05rem;
    line-height: 1.8;
}

.login-feature-list {
    margin-top: 34px;
    display: grid;
    gap: 14px;
}

.login-feature-item {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.login-feature-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.login-feature-item span {
    color: rgba(245, 247, 251, 0.8);
    line-height: 1.6;
}

.login-card {
    padding: 34px 32px;
    background: rgba(255, 255, 255, 0.96);
    align-self: center;
}

.login-card h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #203142;
}

.login-card-text {
    margin: 0 0 24px;
    color: #566572;
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-help-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.forgot-password-link {
    color: #4c6f69;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: #344656;
    font-size: 0.94rem;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    border: 1px solid #d3dfe0;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 1rem;
    color: #21303c;
    background: #f9fbfb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #7f9b91;
    box-shadow: 0 0 0 4px rgba(127, 155, 145, 0.16);
    background: #ffffff;
}

.login-button {
    margin-top: 6px;
    border: 0;
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1f2a3a 0%, #33455b 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(31, 42, 58, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 32px rgba(31, 42, 58, 0.24);
}

.login-footer-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e3ece8;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #61707b;
    font-size: 0.92rem;
}

.login-footer-note a {
    color: #3a5b57;
    font-weight: 700;
    text-decoration: none;
}

.login-footer-note a:hover {
    text-decoration: underline;
}

.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-alert--error {
    background: #fff1f0;
    border: 1px solid #f0c8c5;
    color: #9d3c33;
}

.form-alert--success {
    background: #edf8f1;
    border: 1px solid #bfdcc7;
    color: #256346;
}

.login-shell--single {
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
}

.placeholder-card {
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(31, 42, 58, 0.08);
}

.placeholder-kicker {
    margin: 0 0 10px;
    color: #5f786f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.placeholder-card h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.placeholder-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #4d5b67;
}

.admin-panel-page {
    padding: 40px 20px 72px;
}

.admin-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.panel-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

.panel-user-card,
.module-list-card,
.module-form-card,
.module-admin-card,
.panel-side-nav {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(31, 42, 58, 0.1);
}

.panel-user-card {
    padding: 24px 22px;
}

.panel-user-card h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #203142;
}

.panel-user-card p:last-child {
    margin: 0;
    color: #60707c;
}

.panel-side-nav {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.panel-side-nav a {
    text-decoration: none;
    color: #29404f;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.panel-side-nav a:hover,
.panel-side-nav a.is-current {
    background: #e5eeea;
    color: #1e303f;
}

.panel-main {
    min-width: 0;
}

.panel-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 28px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(31, 42, 58, 0.96) 0%, rgba(68, 88, 109, 0.96) 100%);
    color: #f6fbff;
    box-shadow: 0 20px 40px rgba(31, 42, 58, 0.16);
}

.panel-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.08;
    font-family: Georgia, "Times New Roman", serif;
}

.panel-hero p:last-child {
    margin: 0;
    color: rgba(246, 251, 255, 0.84);
    line-height: 1.7;
}

.panel-pill,
.panel-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    min-height: 46px;
}

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

.module-admin-card {
    padding: 24px;
    border-top: 6px solid #8aa79b;
}

.module-admin-card__tag {
    margin: 0 0 10px;
    color: #5e726f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.module-admin-card h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #213342;
}

.module-admin-card p {
    margin: 0 0 18px;
    color: #5a6a76;
    line-height: 1.7;
}

.module-admin-card a {
    color: #24414e;
    font-weight: 800;
    text-decoration: none;
}

.module-admin-card a:hover {
    text-decoration: underline;
}

.module-admin-card--blue { border-top-color: #4b7cb4; }
.module-admin-card--green { border-top-color: #5e9d71; }
.module-admin-card--gold { border-top-color: #b38c43; }
.module-admin-card--slate { border-top-color: #6d7f96; }
.module-admin-card--teal { border-top-color: #4f8b86; }
.module-admin-card--violet { border-top-color: #7f6da8; }
.module-admin-card--admin { border-top-color: #203142; }

.module-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 420px);
    gap: 22px;
}

.module-workspace__full {
    grid-column: 1 / -1;
}

.module-workspace--news {
    grid-template-columns: 1fr;
}

.module-list-card,
.module-form-card {
    padding: 24px;
}

.module-list-card--documents {
    padding-top: 22px;
}

.module-form-card--news {
    padding: 28px;
}

.module-list-card--news {
    padding-top: 26px;
}

.workspace-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.workspace-head h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #213342;
}

.workspace-head a,
.workspace-head span {
    color: #647682;
    font-size: 0.92rem;
    font-weight: 700;
}

.module-empty-state {
    padding: 24px;
    border-radius: 20px;
    background: rgba(138, 167, 155, 0.14);
    color: #476058;
    line-height: 1.7;
}

.year-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.year-filter-bar a {
    text-decoration: none;
    color: #29404f;
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(31, 42, 58, 0.08);
}

.year-filter-bar a.is-active {
    background: #dce8e3;
}

.year-group {
    margin-bottom: 24px;
}

.year-group__title {
    margin: 0 0 14px;
    color: #486159;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.type-group__title {
    margin: 12px 0 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #edf4f1;
    color: #445e55;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-item-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-top: 1px solid #e3ebe7;
}

.module-item-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.module-item-row strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.06rem;
    color: #213342;
}

.module-item-row p,
.module-item-row small {
    margin: 0;
    color: #5f6f7b;
    line-height: 1.6;
}

.module-item-main {
    min-width: 0;
}

.module-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.module-item-actions a,
.module-item-actions button {
    border: 0;
    background: #eef4f2;
    color: #29404f;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.module-item-actions button:hover,
.module-item-actions a:hover {
    background: #dfe9e5;
}

.file-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.file-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #eef4f2;
    color: #2d4958;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.file-pill:hover {
    background: #dfe9e5;
}

.admin-accordion {
    margin-top: 16px;
    border: 1px solid #dfe8e4;
    border-radius: 20px;
    background: #fdfefe;
    overflow: hidden;
}

.admin-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    background: #f3f8f6;
    color: #233643;
    font-weight: 800;
}

.admin-accordion__summary::-webkit-details-marker {
    display: none;
}

.admin-accordion__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5d707c;
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-accordion__meta::after {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
    color: #456057;
}

.admin-accordion[open] .admin-accordion__meta::after {
    content: "-";
}

.admin-accordion__content {
    padding: 6px 18px 18px;
}

.admin-accordion__content--stack {
    display: grid;
    gap: 14px;
}

.admin-subaccordion {
    border: 1px solid #e6eeea;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.admin-subaccordion + .admin-subaccordion {
    margin-top: 12px;
}

.admin-subaccordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    background: #fbfdfc;
    color: #435d54;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-subaccordion__summary::-webkit-details-marker {
    display: none;
}

.admin-subaccordion__summary::after {
    content: "+";
    font-size: 1.2rem;
    line-height: 1;
}

.admin-subaccordion[open] .admin-subaccordion__summary::after {
    content: "-";
}

.admin-subaccordion__content {
    padding: 0 16px 14px;
}

.admin-form {
    display: grid;
    gap: 16px;
}

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

.admin-form label {
    display: grid;
    gap: 8px;
    color: #344656;
    font-size: 0.94rem;
    font-weight: 600;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: 1px solid #d3dfe0;
    border-radius: 16px;
    padding: 14px 15px;
    font-size: 1rem;
    color: #21303c;
    background: #f9fbfb;
}

.admin-form textarea {
    resize: vertical;
}

.module-permission-summary {
    display: block;
    margin-top: 8px;
    color: #5d707c;
    line-height: 1.45;
}

.module-permission-fieldset {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #d3dfe0;
    border-radius: 18px;
    background: #f6faf8;
}

.module-permission-fieldset legend {
    padding: 0 8px;
    color: #1f313f;
    font-weight: 900;
}

.module-permission-fieldset p {
    margin: 0;
    color: #5d707c;
    line-height: 1.5;
}

.module-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.module-permission-option {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    padding: 12px;
    border: 1px solid rgba(103, 131, 120, 0.18);
    border-radius: 14px;
    background: #ffffff;
}

.module-permission-option input {
    width: auto;
    margin-top: 4px;
}

.module-permission-option span {
    display: grid;
    gap: 3px;
}

.module-permission-option small {
    color: #6b7b85;
    font-weight: 500;
    line-height: 1.35;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: #7f9b91;
    box-shadow: 0 0 0 4px rgba(127, 155, 145, 0.16);
    background: #ffffff;
}

.rich-editor-block {
    display: grid;
    gap: 10px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dce6e1;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #f6faf8;
}

.editor-toolbar button {
    border: 0;
    background: #eaf1ef;
    color: #29404f;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.editor-surface {
    min-height: 280px;
    border: 1px solid #d3dfe0;
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
    line-height: 1.7;
    color: #203142;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.editor-surface * {
    max-width: 100%;
    box-sizing: border-box;
}

.rich-editor-block--news .editor-surface {
    min-height: 620px;
    padding: 22px 24px;
    border-radius: 0 0 18px 18px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.rich-editor-block--news .editor-toolbar {
    gap: 10px;
}

.rich-editor-block--news .editor-toolbar button {
    padding: 11px 13px;
    font-size: 0.92rem;
}

.news-editor-layout {
    display: block;
}

.news-editor-main {
    display: grid;
    gap: 16px;
}

.news-editor-main--full {
    width: 100%;
}

.news-rich-editor-shell {
    display: grid;
    gap: 10px;
}

.news-rich-textarea {
    min-height: 640px;
    width: 100%;
    border: 1px solid #d3dfe0;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    color: #203142;
    line-height: 1.8;
    font-size: 1rem;
    resize: vertical;
}

.news-editor-help {
    margin: 0;
    color: #4a6170;
    font-size: 0.94rem;
    line-height: 1.6;
}

.tox-tinymce {
    border: 1px solid #d3dfe0 !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(24, 44, 56, 0.08);
}

.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-menubar {
    background: #f6faf8 !important;
}

.tox .tox-edit-area__iframe {
    background: #fff !important;
}

.editor-image-input {
    display: none;
}

.news-inline-figure {
    margin: 24px 0;
    width: 100%;
    display: block;
    clear: both;
}

.news-inline-figure--small {
    max-width: 38%;
}

.news-inline-figure--medium {
    max-width: 64%;
}

.news-inline-figure--large {
    max-width: 100%;
}

.news-inline-figure--align-left {
    float: left;
    clear: left;
    margin: 10px 24px 18px 0;
}

.news-inline-figure--align-center {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

.news-inline-figure--align-right {
    float: right;
    clear: right;
    margin: 10px 0 18px 24px;
}

.news-inline-figure.is-selected {
    outline: 3px solid rgba(127, 155, 145, 0.38);
    outline-offset: 6px;
    border-radius: 16px;
}

.news-inline-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.news-inline-video,
.news-inline-embed {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 12px;
    background: #0f151c;
    aspect-ratio: 16 / 9;
}

.rich-editor-block--news .editor-surface p,
.rich-editor-block--news .editor-surface h2,
.rich-editor-block--news .editor-surface figure,
.rich-editor-block--news .editor-surface ul,
.rich-editor-block--news .editor-surface ol {
    width: 100%;
}

.editor-surface:focus {
    outline: none;
    border-color: #7f9b91;
    box-shadow: 0 0 0 4px rgba(127, 155, 145, 0.16);
}

.editor-textarea-hidden {
    display: none;
}

.attached-files-box {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e4ece8;
}

.attached-files-box h4 {
    margin: 0 0 12px;
    color: #203142;
}

.attached-file-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eef2ef;
}

.attached-file-row:first-of-type {
    border-top: 0;
}

.attached-file-row a {
    color: #2d4958;
    font-weight: 700;
    text-decoration: none;
}

.attached-file-row button {
    border: 0;
    background: #f3e8e8;
    color: #8c3e3e;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 900px) {
    .top-bar {
        padding: 18px 20px;
        grid-template-columns: 1fr;
        align-items: center;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .header-partner {
        justify-content: center;
    }

    .nav-item {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .nav-submenu {
        position: static;
        width: min(420px, 100%);
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: 0 12px 24px rgba(19, 28, 40, 0.12);
    }

    .nav-item:hover .nav-submenu,
    .nav-item:focus-within .nav-submenu,
    .nav-item.is-open .nav-submenu {
        display: grid;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

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

    .login-highlight,
    .login-card {
        padding: 28px 24px;
    }

    .admin-shell,
    .module-workspace,
    .module-card-grid,
    .news-card-grid,
    .news-card-grid--all,
    .institutional-grid,
    .contest-grid,
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .panel-sidebar {
        position: static;
    }

    .site-sidebar {
        position: static;
    }

    .panel-hero,
    .workspace-head,
    .module-item-row,
    .news-page-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .site-main {
        padding: 26px 16px 56px;
    }

    .news-feature-card,
    .news-detail-shell,
    .news-empty-state {
        padding: 22px;
    }

    .education-filter label {
        width: 100%;
        justify-content: space-between;
    }

    .communication-grid {
        grid-template-columns: 1fr;
    }

    .news-carousel__nav {
        width: 44px;
        height: 44px;
    }

}

@media (max-width: 560px) {
    .brand-logo {
        width: 78px;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
    }

    .header-partner__logo {
        width: 104px;
    }

    .main-nav > a,
    .nav-item > a {
        text-align: center;
        width: min(260px, 100%);
    }

    .foundation-banner {
        padding: 22px 14px 24px;
    }

    .section-heading h1,
    .news-page-heading h1,
    .news-detail-header h1 {
        font-size: 1.9rem;
    }

    .news-slide__media,
    .news-card__image-wrap {
        aspect-ratio: 16 / 11;
    }

    .news-slide__content,
    .news-card__content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .news-carousel__nav {
        top: 40%;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .news-carousel__nav--prev {
        left: 10px;
    }

    .news-carousel__nav--next {
        right: 10px;
    }

    .news-inline-figure,
    .news-detail-body .news-inline-figure {
        float: none;
        clear: both;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .education-table {
        min-width: 620px;
    }

    .contest-table {
        min-width: 640px;
    }
}

@media (max-width: 1180px) {
    .prefooter-strip {
        grid-template-columns: 1fr;
    }

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

    .ombudsman-public-layout,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .ombudsman-subject-row,
    .ombudsman-extra-channel__content,
    .ticket-status-panel {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ticket-status-panel__meta {
        min-width: 0;
    }

    .informative-grid-slide,
    .informative-list-grid,
    .informative-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 720px) {
    .site-footer__body,
    .site-footer__bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-footer__bottom {
        padding-bottom: 24px;
    }

    .site-footer__logo-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .foundation-profile__brand {
        grid-template-columns: 1fr;
    }

    .foundation-profile__logo {
        width: 112px;
    }

    .informative-grid-slide,
    .informative-list-grid,
    .informative-gallery {
        grid-template-columns: 1fr;
    }

    .informative-home-card__media,
    .informative-gallery__media {
        aspect-ratio: 16 / 11;
    }

    .informative-actions,
    .informative-gallery__actions {
        flex-direction: column;
    }

    .informative-action-button {
        width: 100%;
    }

    .stats-row,
    .form-actions-inline {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 700px) {
    .accessibility-tools {
        top: auto;
        right: 12px;
        bottom: 14px;
        max-width: calc(100vw - 24px);
    }

    .accessibility-tools:not(.is-collapsed) {
        border-radius: 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .accessibility-tools__panel {
        justify-content: center;
    }

    .module-permission-grid {
        grid-template-columns: 1fr;
    }
}


