:root {
    --color-primary: #2f6f47;
    --color-primary-dark: #235337;
    --color-primary-light: #3f8759;
    --color-bg: #f4f8f4;
    --color-surface: #ffffff;
    --color-soft: #e9f1e8;
    --color-border: #d2dfd0;
    --color-text: #203126;
    --color-muted: #33463a;
    --shadow-soft: 0 10px 25px rgba(16, 40, 26, 0.08);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 112.5%;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
}

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

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.section {
    padding: 2.8rem 0;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.8rem;
}

.section-header--left {
    text-align: left;
    margin-left: 0;
}

.section-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.section-header p {
    margin: 0;
    color: var(--color-muted);
}

.topbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.topbar__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.28rem 0;
}

.topbar__contact,
.topbar-menu,
.social-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.topbar__contact a {
    color: inherit;
}

.topbar-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.topbar-menu a {
    color: var(--color-text);
    font-weight: 600;
}

.topbar-menu a:hover {
    color: var(--color-primary-dark);
}

.topbar__social {
    display: flex;
    justify-content: flex-end;
}

.social-links {
    display: flex;
    gap: 0.35rem;
}

.social-links__link {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-links__link:hover {
    transform: translateY(-1px);
    border-color: var(--color-primary-light);
}

.social-links__link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 52px minmax(500px, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 0;
}

.branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.branding__logo img {
    max-height: 72px;
    width: auto;
}

.branding__title {
    display: block;
    color: var(--color-text);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.branding__title-sub {
    display: block;
}

.branding__desc {
    margin: 0.2rem 0 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.4;
}

.primary-nav {
    justify-self: end;
    overflow-x: auto;
}

.primary-nav .menu,
.primary-nav .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav .menu {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.25rem;
}

.primary-nav .menu > .menu-item {
    position: relative;
}

.primary-nav .menu > .menu-item > a {
    display: inline-block;
    padding: 0.58rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 600;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current-menu-ancestor > a {
    color: var(--color-primary-dark);
    background: var(--color-soft);
}

.primary-nav .menu-item-has-children > a {
    padding-right: 1.65rem;
}

.primary-nav .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    margin-left: 0.45rem;
    margin-top: 0.62rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--color-primary-dark);
}

.primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 220px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    padding: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 30;
}

.primary-nav .sub-menu .menu-item + .menu-item {
    margin-top: 0.15rem;
}

.primary-nav .sub-menu a {
    display: block;
    padding: 0.52rem 0.65rem;
    border-radius: 8px;
    color: var(--color-text);
    font-weight: 600;
}

.primary-nav .menu > .menu-item:hover > .sub-menu,
.primary-nav .menu > .menu-item:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle__line {
    width: 18px;
    height: 2px;
    background: var(--color-primary-dark);
}

.submenu-toggle {
    display: none;
}

.home-intro.section {
    padding-top: 1.5rem;
    padding-bottom: 1.15rem;
}

.home-news-and-links.section {
    padding-top: 1.25rem;
    padding-bottom: 2.2rem;
}

.home-values.section {
    padding-top: 0.4rem;
    padding-bottom: 2.6rem;
}

.home-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.92fr);
    gap: 1.1rem;
    align-items: stretch;
}

.home-showcase__left {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    min-width: 0;
}

.home-showcase__media,
.home-showcase__content,
.home-showcase__left {
    min-height: 100%;
}

.home-showcase__media.feature-tile {
    padding: 0.35rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 390px;
}

.home-showcase__panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.985);
    filter: blur(4px);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.home-showcase__panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.home-showcase__image {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
}

.home-showcase__title-art {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.8rem 1rem;
}

.home-showcase__title-art-line {
    display: block;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-showcase__title-art-line--light {
    color: var(--color-text);
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.home-showcase__title-art-line--accent {
    color: var(--color-primary);
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
}

@media (prefers-reduced-motion: reduce) {
    .home-showcase__panel {
        transform: none;
        filter: none;
        transition: opacity 0.2s ease;
    }
}

.home-showcase__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-showcase__title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.home-showcase__text p {
    margin: 0 0 0.9rem;
    color: var(--color-text);
}

.home-showcase__actions {
    margin-top: 0.4rem;
}

.home-showcase__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-showcase__button:hover,
.home-showcase__button:focus {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.home-showcase__schools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-self: stretch;
    align-content: stretch;
    grid-auto-rows: minmax(155px, 1fr);
}

.school-tile {
    min-height: 155px;
    background: #f1f5ef;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.school-tile--link {
    color: var(--color-text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-tile--link:hover,
.school-tile--link:focus {
    color: var(--color-text);
    text-decoration: none;
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
    box-shadow: 0 14px 28px rgba(16, 40, 26, 0.12);
}

.school-tile--accent {
    background: #e4efe2;
    border-color: #b8ceb6;
}

.school-tile h2 {
    margin: 0 0 0.65rem;
    font-size: 1.22rem;
    line-height: 1.25;
}

.school-tile__content p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.home-values__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 2rem;
    align-items: start;
}

.home-values__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1.08;
}

.home-values__text p {
    margin: 0 0 0.9rem;
    color: var(--color-text);
}

.home-values__list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.home-values__list li {
    position: relative;
    padding-left: 1.55rem;
    color: var(--color-text);
}

.home-values__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid var(--color-primary);
    border-radius: 999px;
}

.home-values__list li::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.62rem;
    width: 0.45rem;
    height: 0.22rem;
    border-left: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(-45deg);
}

.home-values__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.home-values__stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 0.85rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.home-values__stat strong {
    display: block;
    color: var(--color-primary);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.home-values__stat span {
    display: block;
    color: var(--color-muted);
    font-size: 0.96rem;
    line-height: 1.35;
}

.home-values__cards {
    display: grid;
    gap: 1.2rem;
}

.home-values__card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
}

.home-values__card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--color-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.home-values__card-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.home-values__card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.home-values__card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.4rem;
    line-height: 1.2;
}

.home-values__card-text p {
    margin: 0;
    color: var(--color-muted);
}

.home-programs.section {
    padding-top: 2.1rem;
    padding-bottom: 3rem;
    background: #eef3ee;
}

.home-programs__header {
    max-width: 760px;
    margin: 0 auto 1.8rem;
    text-align: center;
}

.home-programs__header h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.08;
}

.home-programs__intro p {
    margin: 0;
    color: var(--color-muted);
}

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

.home-programs__grid--seven {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.home-programs__card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
    min-height: 255px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-programs__grid--seven .home-programs__card--wide {
    grid-column: span 4;
}

.home-programs__grid--seven .home-programs__card--compact {
    grid-column: span 3;
    min-height: 225px;
    padding: 1.05rem;
}

.home-programs__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    min-height: 46px;
}

.home-programs__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--color-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex: 0 0 46px;
}

.home-programs__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.home-programs__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.home-programs__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #e7f3e6;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0;
}

.home-programs__card h3 {
    margin: 0 0 0.85rem;
    font-size: 1.28rem;
    line-height: 1.28;
}

.home-programs__text p {
    margin: 0;
    color: var(--color-muted);
}

.feature-tile {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.45rem;
    box-shadow: var(--shadow-soft);
}

.feature-tile h2 {
    margin: 0 0 0.8rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.feature-tile__content p {
    margin: 0 0 0.7rem;
    color: var(--color-text);
}

.feature-tile__list {
    margin: 0;
    padding-left: 1.15rem;
}

.feature-tile__list li {
    margin: 0 0 0.5rem;
}

.two-col-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 1.2rem;
    align-items: start;
}

.section-title {
    margin: 0 0 1rem;
    font-size: 1.55rem;
}

.entry-content .wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    margin: 0 0 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fbfdfb 0%, #f2f7f1 100%);
    box-shadow: var(--shadow-soft);
}

.entry-content .wp-block-file > a:first-child {
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.entry-content .wp-block-file .wp-block-file__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--color-primary-dark);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.entry-content .wp-block-file .wp-block-file__button:hover,
.entry-content .wp-block-file .wp-block-file__button:focus {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.news-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
}

.news-card:last-of-type {
    margin-bottom: 0.5rem;
}

.news-card__media {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-soft);
    height: 96px;
    min-height: 96px;
}

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

.news-card__media img.news-card__fallback-logo {
    object-fit: contain;
    padding: 0.9rem;
    background: var(--color-soft);
}

.news-card__placeholder {
    display: flex;
    height: 96px;
    min-height: 96px;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.news-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    line-height: 1.35;
}

.news-card__meta {
    margin: 0 0 0.5rem;
    color: var(--color-text);
    font-size: 0.92rem;
}

.news-card__excerpt p {
    margin: 0 0 0.5rem;
}

.read-more,
.more-link {
    font-weight: 700;
    color: var(--color-primary-dark);
}

.see-also-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.see-also-list li {
    margin-bottom: 0.65rem;
}

.see-also-list a {
    display: block;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-soft);
    color: var(--color-text);
    font-weight: 600;
}

.see-also-list a:hover {
    border-color: var(--color-primary-light);
    background: #e1ebdf;
}

.pagination-wrap {
    margin-top: 1.2rem;
}

.pagination-wrap .nav-links {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 0.4rem 0.72rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.pagination-wrap .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.content-area .entry-title {
    margin: 0 0 0.8rem;
    line-height: 1.25;
}

.contact-map {
    margin-top: 1.6rem;
}

.contact-map__title {
    margin: 0 0 0.8rem;
    font-size: 1.35rem;
}

.contact-map__embed {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: var(--color-surface);
}

.contact-map__embed iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

.entry-meta {
    color: var(--color-muted);
}

.entry-thumb {
    margin: 1rem 0 1.2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-school-title {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.2;
}

.about-school-intro {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.about-school-content {
    margin-bottom: 1.1rem;
}

.school-accordion__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.school-accordion__item h2 {
    margin: 0;
}

.school-accordion__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 0;
    background: var(--color-soft);
    color: var(--color-text);
    font-size: 1.08rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

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

.school-accordion__trigger[aria-expanded="true"]::after {
    content: "-";
}

.school-accordion__panel {
    padding: 1rem;
    color: var(--color-muted);
    background: #fff;
}

.section-static-header {
    margin-bottom: 0.9rem;
}

.section-static-lead {
    margin-top: 0;
    color: var(--color-muted);
}

.section-static-info {
    margin-bottom: 1.25rem;
}

.section-static-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.section-static-info__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-soft);
    padding: 0.85rem 0.95rem;
}

.section-static-info__item h2 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.section-static-info__item p {
    margin: 0;
    color: var(--color-muted);
}

.section-static-content {
    margin-bottom: 1.2rem;
}

.section-dynamic-posts__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
    background: #f0f5f0;
}

.site-footer__inner {
    padding: 2.1rem 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.site-footer__col h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.site-footer__col p {
    margin: 0.35rem 0;
    color: #33463a;
}

.site-footer a {
    color: var(--color-primary-dark);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--color-primary);
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.45rem;
}

.site-footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 0.8rem 0;
}

.site-footer__bottom p {
    margin: 0;
    color: #31433a;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .topbar__inner {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .topbar-menu,
    .topbar__social {
        justify-content: flex-start;
    }

    .site-header__inner {
        grid-template-columns: 1fr 52px;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .primary-nav {
        grid-column: 1 / -1;
        width: 100%;
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--color-border);
        padding-top: 0.75rem;
        margin-top: 0.4rem;
    }

    .primary-nav .menu > .menu-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.35rem;
    }

    .primary-nav .menu > .menu-item > a {
        width: 100%;
        padding-right: 0.8rem;
    }

    .primary-nav .menu-item-has-children > a::after {
        display: none;
    }

    .submenu-toggle {
        display: inline-flex;
        width: 34px;
        height: 34px;
        margin-top: 0.35rem;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        background: var(--color-surface);
        color: var(--color-primary-dark);
        font-weight: 700;
        cursor: pointer;
    }

    .submenu-toggle[aria-expanded="true"] span {
        transform: rotate(45deg);
    }

    .primary-nav .sub-menu {
        position: static;
        min-width: 0;
        border: 1px solid var(--color-border);
        border-radius: 10px;
        background: #fff;
        box-shadow: none;
        padding: 0.35rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        grid-column: 1 / -1;
    }

    .primary-nav .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .section-static-info__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .home-showcase,
    .home-showcase__schools,
    .home-values__grid,
    .home-values__stats,
    .home-programs__grid,
    .two-col-layout,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .home-showcase__left {
        grid-template-rows: auto auto;
    }

    .home-showcase__media.feature-tile {
        min-height: 280px;
    }

    .home-showcase__title-art {
        max-width: 100%;
        padding: 0.5rem;
    }

    .home-showcase__media {
        order: 1;
    }

    .home-showcase__content {
        order: 2;
    }

    .home-showcase__schools {
        order: 3;
    }

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

    .news-card__media {
        height: 150px;
        min-height: 150px;
    }

    .news-card__placeholder {
        height: 150px;
        min-height: 150px;
    }

    .home-programs__grid--seven {
        grid-template-columns: 1fr;
    }

    .home-programs__grid--seven .home-programs__card--wide,
    .home-programs__grid--seven .home-programs__card--compact {
        grid-column: auto;
        min-height: 0;
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 100%;
    }

    .section {
        padding: 2.2rem 0;
    }

    .home-intro.section {
        padding-top: 1.6rem;
        padding-bottom: 0.9rem;
    }

    .home-news-and-links.section {
        padding-top: 0.9rem;
        padding-bottom: 1.7rem;
    }

    .card,
    .feature-tile {
        padding: 1.15rem;
    }

    .branding__desc {
        display: none;
    }
}

.topbar__social {
    gap: 0.55rem;
    align-items: center;
}

.topbar-accessibility {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
}

.accessibility-btn {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 8px;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.accessibility-btn:hover {
    border-color: var(--color-primary-light);
}

.accessibility-btn[data-dark-theme-toggle][aria-pressed="true"],
.accessibility-btn[data-contrast-toggle][aria-pressed="true"] {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.accessibility-btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.accessibility-btn--trigger {
    width: 42px;
    min-width: 42px;
    height: 42px;
}

.accessibility-btn--icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.accessibility-btn__glyph {
    display: inline-block;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 700;
}

.accessibility-btn__image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.topbar-accessibility__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.topbar-accessibility__panel[hidden] {
    display: none;
}

body.dark-theme {
    --color-primary: #64b87d;
    --color-primary-dark: #d9f2df;
    --color-primary-light: #8bd3a0;
    --color-bg: #111814;
    --color-surface: #18221c;
    --color-soft: #213028;
    --color-border: #365244;
    --color-text: #eef6ef;
    --color-muted: #c6d8ca;
    --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.32);
}

body.dark-theme .site-main {
    background: #101713;
}

body.dark-theme .home-values.section,
body.dark-theme .home-programs.section {
    background: #162019;
}

body.dark-theme .site-footer,
body.dark-theme .site-header,
body.dark-theme .topbar,
body.dark-theme .topbar-accessibility__panel,
body.dark-theme .card,
body.dark-theme .feature-tile,
body.dark-theme .school-accordion__item,
body.dark-theme .section-static-info__item,
body.dark-theme .home-values__card,
body.dark-theme .home-programs__card,
body.dark-theme .home-showcase__visual,
body.dark-theme .home-showcase__content,
body.dark-theme .home-showcase__school-tile {
    background: #18221c;
    color: var(--color-text);
    border-color: var(--color-border);
}

body.dark-theme .content-area,
body.dark-theme .entry-content,
body.dark-theme .entry-content p,
body.dark-theme .entry-content li,
body.dark-theme .entry-content strong,
body.dark-theme .entry-content em,
body.dark-theme .content-area .entry-title,
body.dark-theme .about-school-title,
body.dark-theme .about-school-intro,
body.dark-theme .section-static-lead,
body.dark-theme .section-static-info__item p,
body.dark-theme .section-static-content,
body.dark-theme .section-dynamic-posts__title,
body.dark-theme .news-card__meta,
body.dark-theme .news-card__excerpt,
body.dark-theme .news-card__excerpt p,
body.dark-theme .news-card__title a,
body.dark-theme .school-accordion__trigger,
body.dark-theme .school-accordion__panel,
body.dark-theme .section-static-info__item h2 {
    color: var(--color-text);
}

body.dark-theme .school-accordion__panel {
    background: #18221c;
}

body.dark-theme .entry-content .wp-block-file {
    background: linear-gradient(180deg, #1b271f 0%, #162019 100%);
    border-color: var(--color-border);
}

body.dark-theme .contact-map__embed {
    background: #18221c;
    border-color: var(--color-border);
}

body.dark-theme .entry-content .wp-block-file > a:first-child,
body.dark-theme .entry-content .wp-block-file .wp-block-file__button,
body.dark-theme .content-area a,
body.dark-theme .entry-content a,
body.dark-theme .section-static-content a,
body.dark-theme .read-more,
body.dark-theme .more-link {
    color: #aaf1bc;
}

body.dark-theme .entry-content .wp-block-file .wp-block-file__button {
    background: #2c9a54;
    border-color: #2c9a54;
}

body.dark-theme .entry-content .wp-block-file .wp-block-file__button:hover,
body.dark-theme .entry-content .wp-block-file .wp-block-file__button:focus {
    background: #4ab56d;
    color: #0d1711;
}

body.dark-theme .news-card__media,
body.dark-theme .news-card__media img.news-card__fallback-logo,
body.dark-theme .news-card__placeholder {
    background: #213028;
}

body.dark-theme .news-card {
    border-bottom-color: var(--color-border);
}

body.dark-theme .site-branding,
body.dark-theme .branding__title,
body.dark-theme .branding__title a,
body.dark-theme .branding__subtitle,
body.dark-theme .primary-menu a {
    color: #f1faf2;
}

body.dark-theme .primary-navigation .menu > li > a,
body.dark-theme .primary-navigation .menu-item > a,
body.dark-theme .main-navigation .menu > li > a,
body.dark-theme .main-navigation .menu-item > a,
body.dark-theme .site-header .menu a {
    color: #f1faf2 !important;
}

body.dark-theme .primary-menu a:hover,
body.dark-theme .primary-menu a:focus,
body.dark-theme .primary-menu .current-menu-item > a,
body.dark-theme .primary-menu .current_page_item > a {
    color: #9be3ad;
}

body.dark-theme .primary-navigation .current-menu-item > a,
body.dark-theme .primary-navigation .current_page_item > a,
body.dark-theme .main-navigation .current-menu-item > a,
body.dark-theme .main-navigation .current_page_item > a,
body.dark-theme .site-header .menu a:hover,
body.dark-theme .site-header .menu a:focus {
    color: #9be3ad !important;
}

body.dark-theme .site-footer__bottom,
body.dark-theme .site-footer__bottom p,
body.dark-theme .site-footer__bottom a,
body.dark-theme .site-footer__copyright {
    color: #d7eadb !important;
}

body.dark-theme a {
    color: #9be3ad;
}

body.dark-theme .see-also-list a {
    color: #f4fff4;
}

body.dark-theme .accessibility-btn[data-dark-theme-toggle][aria-pressed="true"],
body.dark-theme .accessibility-btn[data-contrast-toggle][aria-pressed="true"] {
    background: var(--color-primary);
    color: #102016;
    border-color: var(--color-primary);
}

body.high-contrast {
    --color-primary: #0f5b2f;
    --color-primary-dark: #08351b;
    --color-primary-light: #177a42;
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-soft: #f0f5f0;
    --color-border: #000000;
    --color-text: #000000;
    --color-muted: #111111;
}

body.high-contrast a {
    text-decoration: underline;
    color: #003d1f;
}

body.high-contrast .card,
body.high-contrast .feature-tile,
body.high-contrast .school-accordion__item,
body.high-contrast .section-static-info__item,
body.high-contrast .site-header,
body.high-contrast .topbar,
body.high-contrast .site-footer {
    box-shadow: none;
    border-width: 2px;
}

body.high-contrast .topbar-accessibility__panel {
    border-width: 2px;
}

body.high-contrast .home-values.section,
body.high-contrast .home-programs.section {
    background: #ffffff;
}

body.high-contrast .see-also-list a,
body.high-contrast .home-showcase__button,
body.high-contrast .wp-block-file .wp-block-file__button,
body.high-contrast .accessibility-btn {
    border: 2px solid #000000;
}

body.high-contrast.dark-theme {
    --color-primary: #ffffff;
    --color-primary-dark: #ffffff;
    --color-primary-light: #ffffff;
    --color-bg: #000000;
    --color-surface: #000000;
    --color-soft: #101010;
    --color-border: #ffffff;
    --color-text: #ffffff;
    --color-muted: #ffffff;
}

.topbar-menu a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.topbar-menu__img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    flex: 0 0 auto;
}

.topbar-menu__text {
    display: inline-block;
    line-height: 1.1;
}

body.high-contrast .topbar-menu__img {
    filter: contrast(1.15);
}

/* Menu bez rozwijania: podmenu nie jest uzywane w nawigacji glownej */
.primary-nav .sub-menu,
.submenu-toggle {
    display: none !important;
}

.primary-nav .menu-item-has-children > a::after {
    display: none !important;
}

.sections-hub-item .school-accordion__panel {
    display: grid;
    gap: 0.75rem;
}

.sections-hub-item .school-accordion__panel[hidden],
.school-accordion__panel[hidden] {
    display: none !important;
}

.sections-hub-item .school-accordion__panel p {
    margin: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: #133723;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 0 0 8px 8px;
    border: 2px solid #ffffff;
}

.skip-link:focus {
    left: 0.6rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #16653a;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.footer-credit {
    display: inline-block;
    line-height: 1.4;
    white-space: normal;
}

/* PressBook Green inspired palette and header/nav treatment */
:root {
    --color-primary: #2f9448;
    --color-primary-dark: #24733a;
    --color-primary-light: #48aa60;
    --color-bg: #f3f6f3;
    --color-soft: #e3ece3;
    --color-border: #bfd1bf;
    --color-text: #173226;
}

.topbar {
    background: linear-gradient(180deg, #3c9b54 0%, #2d7f44 100%);
    border-bottom: 1px solid #2a7340;
    color: #f3fff6;
}

.topbar__contact,
.topbar__contact a,
.topbar-menu a {
    color: #f3fff6;
}

.topbar-menu a:hover,
.topbar__contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.topbar .accessibility-btn {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: #f7fff8;
}

.topbar .accessibility-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.topbar .topbar-accessibility__panel {
    background: #2d7f44;
    border-color: rgba(255, 255, 255, 0.32);
}

.site-header {
    background: #f8fbf8;
    border-bottom: 1px solid #c8d8c8;
}

.primary-nav {
    background: linear-gradient(180deg, #2f9448 0%, #2a7f40 100%);
    border-radius: 6px;
    padding: 0.16rem 0.3rem;
}

.primary-nav .menu {
    align-items: center;
}

.primary-nav .menu > .menu-item > a {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.58rem 0.72rem;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current-menu-ancestor > a {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.16);
}

.feature-tile,
.card {
    background: #fbfdfb;
}

@media (max-width: 900px) {
    .primary-nav {
        background: transparent;
        border-radius: 0;
        padding: 0;
    }

    .primary-nav .menu > .menu-item > a {
        color: var(--color-text);
        font-weight: 600;
    }

    .primary-nav .menu a:hover,
    .primary-nav .menu .current-menu-item > a,
    .primary-nav .menu .current-menu-ancestor > a {
        color: var(--color-primary-dark);
        background: var(--color-soft);
    }
}

/* Layout fix: top bar + header/menu alignment */
.topbar__inner {
    grid-template-columns: auto 1fr auto;
}

.topbar__links {
    justify-self: start;
}

.topbar__contact {
    justify-content: center;
    text-align: center;
}

.topbar__tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.branding {
    flex: 0 1 auto;
    min-width: 0;
}

.primary-nav {
    margin-left: auto;
    max-width: 100%;
}

.primary-nav .menu {
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .topbar__inner {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .topbar__links,
    .topbar__contact,
    .topbar__tools {
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr 52px;
        gap: 0.8rem;
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .primary-nav {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
        display: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--color-border);
        padding-top: 0.75rem;
        margin-top: 0.4rem;
        white-space: normal;
    }

    .primary-nav .menu > .menu-item > a {
        width: 100%;
        color: var(--color-text);
        font-weight: 600;
    }
}

/* Menu style: clean, no colored bar, large elegant labels */
.primary-nav {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.primary-nav .menu {
    gap: 0.35rem;
}

.primary-nav .menu > .menu-item > a {
    color: #111111 !important;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.7rem;
    border-radius: 0;
    background: transparent !important;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current-menu-ancestor > a {
    color: #111111 !important;
    background: transparent !important;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 1200px) {
    .primary-nav .menu > .menu-item > a {
        font-size: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .primary-nav .menu > .menu-item > a {
        font-size: 1.08rem;
        padding: 0.55rem 0.25rem;
        text-decoration: none;
    }
}

/* See Also visual refresh: strong green panel like reference */
.see-also-column {
    background: #078a41;
    border-color: #056e33;
    color: #ffffff;
}

.see-also-column .section-title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 500;
    margin-bottom: 0.95rem;
    letter-spacing: 0.01em;
}

.see-also-list {
    list-style: disc;
    padding-left: 1.55rem;
}

.see-also-list li {
    margin-bottom: 0.5rem;
    color: #d8ffe9;
}

.see-also-list a {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.45;
    font-size: 1.08rem;
}

.see-also-list a:hover {
    background: transparent;
    border: 0;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.see-also-list a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 920px) {
    .see-also-column .section-title {
        font-size: 2.35rem;
    }

    .see-also-list a {
        font-size: 1.08rem;
    }
}

/* Menu size harmonization with current site scale */
.primary-nav {
    overflow: visible;
}

.primary-nav .menu {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: flex-end;
    gap: 0.2rem 0.45rem;
}

.primary-nav .menu > .menu-item > a {
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.35rem 0.5rem;
    letter-spacing: 0;
}

@media (min-width: 1400px) {
    .primary-nav .menu > .menu-item > a {
        font-size: 1.12rem;
    }
}

@media (max-width: 1200px) {
    .primary-nav .menu > .menu-item > a {
        font-size: 0.98rem;
        padding: 0.34rem 0.38rem;
    }
}

.see-also-column {
    max-width: 430px;
    justify-self: end;
}

.see-also-list a {
    font-size: 1.18rem;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .see-also-column {
        max-width: 100%;
        justify-self: stretch;
    }
}

/* Force single-line desktop menu */
@media (min-width: 1025px) {
    .primary-nav {
        overflow-x: auto;
    }

    .primary-nav .menu {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        justify-content: flex-end;
        gap: 0.2rem;
    }

    .primary-nav .menu > .menu-item > a {
        font-size: 0.95rem;
        padding: 0.35rem 0.42rem;
    }
}



/* ===== Final header/topbar/see-also tuning ===== */
@media (min-width: 1025px) {
    .topbar .topbar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .topbar .topbar__links,
    .topbar .topbar__contact,
    .topbar .topbar__tools {
        flex: 0 0 auto;
        min-width: 0;
    }

    .topbar .topbar__contact {
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 0.6rem 1rem;
        justify-content: center;
    }

    .topbar .topbar__contact li {
        white-space: nowrap;
    }

    .site-header .site-header__inner {
        display: grid;
        grid-template-columns: minmax(300px, 450px) minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
    }

    .site-header .menu-toggle {
        display: none !important;
    }

    .site-header .primary-nav {
        grid-column: 2;
        justify-self: end;
        min-width: 0;
        overflow: visible !important;
    }

    .site-header .primary-nav .menu {
        display: flex;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        justify-content: flex-end;
        gap: 0.22rem;
        width: 100%;
    }

    .site-header .primary-nav .menu > .menu-item > a {
        font-size: 0.98rem !important;
        padding: 0.34rem 0.44rem !important;
    }

    .home-news-and-links .two-col-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-news-and-links .news-column {
        grid-column: 1 / span 2;
    }

    .home-news-and-links .see-also-column {
        grid-column: 3;
        max-width: none !important;
        width: 100%;
    }

    .home-news-and-links .see-also-column .section-title {
        font-size: clamp(1.9rem, 2.8vw, 2.5rem) !important;
        line-height: 1.15;
    }
}

/* Topbar official links as plain icons (no tile frames) */
.topbar .topbar__links .topbar-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.topbar .topbar__links .topbar-menu > li > a {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
}

.topbar .topbar__links .topbar-menu__img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.topbar .topbar__links .topbar-menu__text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* Final homepage/topbar adjustments */
.topbar .topbar__inner {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    gap: 0.65rem;
}

.topbar .topbar-menu {
    gap: 0.45rem;
}

.topbar .topbar__contact {
    gap: 0.35rem 0.8rem;
}

.topbar .topbar__tools {
    gap: 0.32rem;
}

.topbar .social-links {
    gap: 0.3rem;
}

.topbar .social-links__link {
    width: 36px;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

.topbar .social-links__link svg {
    width: 19px;
    height: 19px;
}

.topbar .accessibility-btn--trigger {
    width: 38px;
    min-width: 38px;
    height: 38px;
}

.topbar .topbar__links .topbar-menu__img {
    width: 34px;
    height: 34px;
}

.home-intro .container {
    max-width: 1280px;
}

.home-showcase__media.feature-tile,
.home-showcase__content.feature-tile {
    height: 100%;
}

.wp-block-gallery img,
.blocks-gallery-grid img {
    cursor: zoom-in;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 14, 11, 0.84);
    backdrop-filter: blur(2px);
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1100px);
    max-height: 88vh;
    margin: 4vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
    background: #fff;
}

.gallery-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 19, 0.84);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 19, 0.84);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__nav--prev {
    left: 0.75rem;
}

.gallery-lightbox__nav--next {
    right: 0.75rem;
}

.gallery-lightbox__nav[hidden] {
    display: none;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .topbar .topbar__inner {
        padding-top: 0.28rem;
        padding-bottom: 0.28rem;
    }

    .topbar .social-links__link,
    .topbar .accessibility-btn--trigger {
        width: 38px;
        height: 38px;
    }

    .topbar .topbar__links .topbar-menu__img {
        width: 30px;
        height: 30px;
    }

    .gallery-lightbox__dialog {
        width: min(94vw, 1100px);
        margin: 6vh auto;
    }

    .gallery-lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .gallery-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 1.9rem;
    }

    .gallery-lightbox__nav--prev {
        left: 0.4rem;
    }

    .gallery-lightbox__nav--next {
        right: 0.4rem;
    }
}
