:root {
    --ms-forest: var(--microsite-accent, #16853e);
    --ms-water: var(--microsite-secondary, #c51f35);
    --ms-sun: var(--microsite-highlight, #ef3340);
    --ms-ink: #17241b;
    --ms-muted: #5e6c61;
    --ms-paper: #f4f6ef;
    --ms-white: #fff;
    --ms-line: rgba(25, 71, 39, .14);
    --ms-shadow: 0 22px 60px rgba(21, 55, 30, .12);
}

.ms-context-edit {
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

@media (max-width: 575.98px) {
    .ms-header .ms-context-edit {
        width: 2.25rem;
        height: 2.25rem;
        overflow: hidden;
        padding-inline: .55rem;
        color: transparent;
    }

    .ms-header .ms-context-edit span {
        color: var(--microsite-accent);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ms-paper);
    color: var(--ms-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
img { max-width: 100%; }
a { text-underline-offset: .2em; }
.ms-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.ms-main { flex: 1; }
.ms-content { width: min(1220px, 100%); margin: 0 auto; padding: 3rem 1.5rem; }

.ms-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(14, 48, 27, .96);
    box-shadow: 0 8px 30px rgba(23, 55, 31, .06);
    backdrop-filter: blur(16px);
}
.ms-header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--ms-forest) 0 55%, var(--ms-water) 55% 78%, var(--ms-sun) 78%);
}
.ms-header-inner {
    width: min(1480px, 100%);
    min-height: 76px;
    margin: auto;
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.ms-brand { color: var(--ms-white); font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.ms-brand img { width: auto; max-width: 245px; max-height: 50px; object-fit: contain; }
.ms-brand-name { max-width: 300px; font-size: 1rem; line-height: 1.2; }
.ms-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--ms-white);
    font-size: 1.25rem;
}
.ms-navigation { min-width: 0; flex: 1 1 auto; }
.ms-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: .18rem; list-style: none; margin: 0; padding: 0; }
.ms-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .48rem .58rem;
    border-radius: 999px;
    color: rgba(255,255,255,.88);
    font-size: .82rem;
    font-weight: 720;
    letter-spacing: .015em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.ms-nav a:hover, .ms-nav a:focus-visible, .ms-nav a[aria-current="page"] { color: #ffe1a3; background: rgba(255,255,255,.1); transform: translateY(-1px); }
.ms-nav .ms-nav-external::after { content: "↗"; margin-left: .3rem; color: #80d6dc; font-size: .78rem; }
.ms-language-switcher {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}
.ms-language-switcher a,
.ms-language-switcher span {
    display: grid;
    min-width: 34px;
    min-height: 32px;
    place-items: center;
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    line-height: 1;
    text-decoration: none;
}
.ms-language-switcher a:hover,
.ms-language-switcher a:focus-visible { color: #fff; background: rgba(255,255,255,.13); }
.ms-language-switcher span { background: var(--ms-water); color: #fff; }

.ms-hero {
    min-height: clamp(580px, 78vh, 820px);
    position: relative;
    display: grid;
    place-items: end start;
    isolation: isolate;
    overflow: hidden;
    background-color: #183b24;
    background-image: var(--ms-hero, linear-gradient(135deg, #173a22, #2d6b42 55%, #0b7580));
    background-size: cover;
    background-position: center;
    color: var(--ms-white);
}
.ms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 23, 12, .9) 0%, rgba(7, 23, 12, .63) 48%, rgba(7, 23, 12, .14) 100%),
        linear-gradient(0deg, rgba(7, 23, 12, .45), transparent 55%);
}
.ms-hero::after {
    content: "";
    position: absolute;
    width: min(46vw, 620px);
    aspect-ratio: 1;
    right: -12%;
    bottom: -42%;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.03);
}
.ms-hero-inner { width: min(1220px, 100%); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) 1.5rem clamp(4rem, 8vw, 7rem); }
.ms-eyebrow { margin: 0 0 .85rem; color: #d9f1d8; font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ms-title { max-width: 880px; margin: 0 0 1.25rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.7rem); font-weight: 700; letter-spacing: -.045em; line-height: .94; text-wrap: balance; }
.ms-lead { max-width: 720px; margin: 0; color: rgba(255,255,255,.88); font-size: clamp(1.1rem, 2vw, 1.42rem); line-height: 1.5; }
.ms-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.ms-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 999px; background: var(--ms-forest); color: var(--ms-white); font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.ms-button:hover { color: var(--ms-white); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(10, 45, 20, .2); }
.ms-button--sun { background: var(--ms-sun); color: var(--ms-white); }
.ms-button--ghost { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.ms-button--outline { border-color: rgba(255,255,255,.65); background: transparent; color: var(--ms-white); }

.ms-stat-strip { position: relative; z-index: 4; width: min(1120px, calc(100% - 3rem)); margin: -2.1rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--ms-line); border-radius: 1.25rem; background: var(--ms-white); box-shadow: var(--ms-shadow); }
.ms-stat { padding: 1.35rem 1.5rem; text-align: center; }
.ms-stat + .ms-stat { border-left: 1px solid var(--ms-line); }
.ms-stat strong { display: block; color: var(--ms-forest); font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1; }
.ms-stat span { display: block; margin-top: .4rem; color: var(--ms-muted); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.ms-section { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; }
.ms-home-modules { display: flex; flex-direction: column; }
.ms-section--white { background: var(--ms-white); }
.ms-section--tint { background: linear-gradient(135deg, rgba(22,133,62,.08), rgba(8,127,140,.07)); }
.ms-section--dark { background: #15331f; color: var(--ms-white); }
.ms-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.ms-section-heading--compact { margin-bottom: 1.35rem; }
.ms-section-count { margin: 0; color: var(--ms-muted); font-weight: 700; }
.ms-section-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.025em; line-height: 1.08; }
.ms-section-kicker { margin: 0 0 .5rem; color: var(--ms-water); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.ms-section-action, .ms-text-link { color: var(--ms-forest); font-weight: 750; text-decoration: none; }
.ms-section-action:hover, .ms-text-link:hover { color: var(--ms-water); }

.ms-editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ms-editorial-grid .details-page-content { position: relative; min-height: 250px; margin: 0 !important; padding: clamp(1.7rem, 4vw, 3rem); overflow: hidden; border: 1px solid var(--ms-line); border-radius: 1.25rem; background: var(--ms-white); }
.ms-editorial-grid .details-page-content::after { content: ""; position: absolute; width: 150px; height: 150px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--ms-forest); opacity: .1; }
.ms-editorial-grid .details-page-content:nth-child(2)::after { background: var(--ms-water); opacity: .14; }
.ms-editorial-grid .details-page-content:nth-child(3)::after { background: var(--ms-sun); opacity: .18; }
.ms-editorial-grid .details-page-content:nth-child(4) { background: #173822; color: var(--ms-white); }
.ms-editorial-grid .details-page-content:nth-child(4)::after { background: var(--ms-sun); opacity: .35; }
.ms-editorial-grid h3 { position: relative; z-index: 1; margin: 0 0 1rem; font-family: Georgia, serif; font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
.ms-editorial-grid p, .ms-editorial-grid ul { position: relative; z-index: 1; }
.ms-editorial-grid a { color: var(--ms-forest); font-weight: 750; }
.ms-editorial-grid .details-page-content:nth-child(4) a { color: #f8ca77; }
.ms-editorial-grid + .line-break, .ms-editorial-grid .line-break { display: none; }

.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ms-grid--news { row-gap: 2rem; }
.ms-card { position: relative; height: 100%; overflow: hidden; border: 1px solid var(--ms-line); border-radius: 1.2rem; background: var(--ms-white); box-shadow: 0 14px 40px rgba(21, 55, 30, .08); transition: transform .2s ease, box-shadow .2s ease; }
.ms-card:hover { transform: translateY(-5px); box-shadow: var(--ms-shadow); }
.ms-card-media { display: block; overflow: hidden; background: #dfe9dc; }
.ms-card-media > a { display: block; width: 100%; height: 100%; }
.ms-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.ms-card:hover img { transform: scale(1.035); }
.ms-card-placeholder { min-height: 210px; display: grid; place-items: center; background: linear-gradient(135deg, #1c5030, var(--ms-water)); color: rgba(255,255,255,.78); font-family: Georgia, serif; font-size: 1.8rem; }
.ms-card-body { padding: 1.35rem; }
.ms-card-body h2, .ms-card-body h3 { margin: .35rem 0 .7rem; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.25; }
.ms-card-body h2 a, .ms-card-body h3 a, .ms-card > a { color: inherit; text-decoration: none; }
.ms-card-body h2 a::after, .ms-card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ms-card-body a:not(h2 a, h3 a), .ms-card button { position: relative; z-index: 2; }
.ms-card-body h2, .ms-card-body h3, .ms-section-title, .ms-member-heading h1, .ms-album-overlay strong { overflow-wrap: anywhere; text-wrap: balance; }
.ms-card-body p { color: var(--ms-muted); }
.ms-card-meta { margin: 0; color: var(--ms-water) !important; font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ms-event-card { border-top: 5px solid var(--ms-sun); }
.ms-event-date { display: inline-flex; padding: .3rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--ms-sun) 14%, transparent); color: var(--ms-water); font-size: .78rem; font-weight: 800; }
.ms-event-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.ms-event-status { color: var(--ms-muted); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ms-event-cover { width: 100%; max-height: 620px; margin-bottom: 2rem; border-radius: 1.25rem; object-fit: cover; box-shadow: var(--ms-shadow); }
.ms-section-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.ms-carousel-controls { display: flex; gap: .45rem; }
.ms-carousel-controls button { width: 44px; height: 44px; border: 1px solid var(--ms-line); border-radius: 50%; background: var(--ms-white); color: var(--ms-forest); font-size: 1.25rem; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.ms-carousel-controls button:hover:not(:disabled) { transform: translateY(-2px); background: var(--ms-forest); color: var(--ms-white); }
.ms-carousel-controls button:disabled { cursor: default; opacity: .34; }
.ms-content-carousel { display: flex; gap: 1.25rem; padding: .3rem .15rem 1.5rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-color: var(--ms-forest) rgba(22,133,62,.12); scrollbar-width: thin; }
.ms-content-carousel:focus-visible { outline: 3px solid color-mix(in srgb, var(--ms-forest) 38%, transparent); outline-offset: 4px; border-radius: 1rem; }
.ms-content-carousel-item { flex: 0 0 min(370px, 84vw); scroll-snap-align: start; }
.ms-photo-carousel { gap: .85rem; }
.ms-photo-carousel-item { position: relative; flex-basis: min(310px, 78vw); overflow: hidden; border-radius: 1rem; background: #dfe9dc; box-shadow: 0 14px 40px rgba(21,55,30,.08); }
.ms-photo-carousel-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.ms-photo-carousel-item:hover img { transform: scale(1.04); filter: saturate(1.08); }
.ms-event-carousel-item .ms-card-media { min-height: 220px; }
.ms-event-carousel-item .ms-card-placeholder { height: 100%; }

.ms-filter-bar { margin: 0 0 1.25rem; padding: 1.15rem; display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(150px, .7fr)) auto; align-items: end; gap: .85rem; border: 1px solid var(--ms-line); border-radius: 1.15rem; background: var(--ms-white); box-shadow: 0 14px 38px rgba(21,55,30,.06); }
.ms-filter-bar label { min-width: 0; display: grid; gap: .35rem; }
.ms-filter-bar label > span { color: var(--ms-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ms-filter-bar input, .ms-filter-bar select { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid rgba(25,71,39,.22); border-radius: .72rem; background: #fbfcf9; color: var(--ms-ink); font: inherit; }
.ms-filter-bar input:focus, .ms-filter-bar select:focus { outline: 3px solid rgba(22,133,62,.15); border-color: var(--ms-forest); }
.ms-filter-actions { display: flex; align-items: center; gap: .7rem; }
.ms-filter-actions .ms-button { border: 0; cursor: pointer; }
.ms-filter-actions > a { color: var(--ms-water); font-size: .86rem; font-weight: 750; }
.ms-result-summary { margin: 0 0 1.35rem; display: flex; align-items: center; gap: .75rem; color: var(--ms-muted); }
.ms-result-summary strong { color: var(--ms-forest); }

.ms-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.ms-gallery a, .ms-gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: .85rem; background: #dfe9dc; cursor: zoom-in; touch-action: pan-y; }
.ms-gallery a:nth-child(5n + 1), .ms-gallery-item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.ms-gallery img { width: 100%; height: 100%; min-height: 180px; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.ms-gallery a:hover img, .ms-gallery-item:hover img, .ms-gallery-item:focus-visible img { transform: scale(1.04); filter: saturate(1.08); }
.ms-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4,14,8,.96); color: #fff; }
.ms-lightbox::backdrop { background: rgba(4,14,8,.9); }
.ms-lightbox-stage { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 76px minmax(0,1fr) 76px; align-items: center; }
.ms-lightbox figure { min-width: 0; max-width: 1500px; max-height: 100vh; margin: auto; padding: 2rem 1rem; display: grid; gap: .75rem; justify-items: center; touch-action: pan-y; }
.ms-lightbox figure img { display: block; max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: .5rem; }
.ms-lightbox figcaption { width: 100%; display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.76); font-size: .9rem; }
.ms-lightbox-close, .ms-lightbox-nav { position: relative; z-index: 3; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.ms-lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.ms-lightbox-nav { width: 54px; height: 72px; margin: auto; border-radius: 999px; font-size: 2.6rem; line-height: 1; }
.ms-lightbox-close:hover, .ms-lightbox-nav:hover { background: var(--ms-forest); }
body.ms-lightbox-open { overflow: hidden; }

.ms-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.ms-album-card { position: relative; min-height: 320px; overflow: hidden; border-radius: 1.1rem; background: #21482c; box-shadow: var(--ms-shadow); }
.ms-album-card > .ms-album-media { position: relative; display: block; width: 100%; height: 100%; color: var(--ms-white); text-decoration: none; }
.ms-album-card img { width: 100%; min-height: 320px; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.ms-album-card:hover img { transform: scale(1.04); }
.ms-album-overlay { position: absolute; inset: auto 0 0; padding: 3rem 1.3rem 1.3rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; background: linear-gradient(transparent, rgba(4,19,8,.9)); }
.ms-album-overlay strong { font-family: Georgia, serif; font-size: 1.35rem; }
.ms-album-overlay strong, .ms-album-overlay span > small { display: block; }
.ms-album-overlay span > small { margin-top: .25rem; color: rgba(255,255,255,.76); }
.ms-album-overlay small { white-space: nowrap; }
.ms-album-overlay a { color: var(--ms-white); text-decoration: none; }
.ms-album-overlay .ms-album-owner { display: inline-flex; min-height: 34px; align-items: center; color: rgba(255,255,255,.82); font-weight: 700; }
.ms-album-overlay .ms-album-owner:hover { color: #fff; text-decoration: underline; }
.ms-album-person-link { color: var(--ms-forest); font-weight: 800; }

.ms-member-hero { position: relative; isolation: isolate; overflow: hidden; background-color: #173822; background-image: var(--ms-member-cover, linear-gradient(120deg, #143820, #267046 66%, var(--ms-water))); background-size: cover; background-position: center 38%; color: var(--ms-white); }
.ms-member-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,28,14,.94), rgba(7,28,14,.62) 58%, rgba(7,28,14,.28)); }
.ms-member-hero-inner { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.ms-member-back { display: inline-flex; margin-bottom: 2rem; color: rgba(255,255,255,.82); font-weight: 750; text-decoration: none; }
.ms-member-back:hover { color: #fff; }
.ms-member-identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(1.25rem, 3vw, 2.5rem); }
.ms-member-avatar { width: clamp(130px, 17vw, 210px); height: clamp(130px, 17vw, 210px); border: 5px solid rgba(255,255,255,.9); border-radius: 50%; object-fit: cover; box-shadow: 0 20px 55px rgba(0,0,0,.28); }
.ms-member-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.04em; line-height: .96; }
.ms-member-role { margin: .9rem 0 0; font-size: 1.15rem; font-weight: 750; }
.ms-member-discipline { margin: .25rem 0 0; color: rgba(255,255,255,.74); }
.ms-member-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.ms-profile-nav { position: sticky; top: 88px; z-index: 30; border-bottom: 1px solid var(--ms-line); background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(21,55,30,.06); backdrop-filter: blur(14px); }
.ms-profile-nav ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: .7rem 0; list-style: none; }
.ms-profile-nav a { display: inline-flex; min-height: 42px; padding: .6rem 1rem; align-items: center; border-radius: 999px; color: var(--ms-ink); font-weight: 800; text-decoration: none; }
.ms-profile-nav a:hover, .ms-profile-nav a[aria-current="page"] { background: var(--ms-forest); color: var(--ms-white); }
.ms-member-content { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.ms-member-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 1.5rem; align-items: start; }
.ms-profile-panel, .ms-profile-sidebar { border: 1px solid var(--ms-line); border-radius: 1.2rem; background: var(--ms-white); box-shadow: 0 14px 40px rgba(21,55,30,.07); }
.ms-profile-panel { padding: clamp(1.5rem, 4vw, 3rem); }
.ms-profile-panel h2 { margin: 0 0 1.2rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); }
.ms-profile-bio { font-size: 1.04rem; }
.ms-profile-sidebar { overflow: hidden; }
.ms-profile-sidebar > div { display: grid; gap: .3rem; padding: 1.05rem 1.25rem; }
.ms-profile-sidebar > div + div { border-top: 1px solid var(--ms-line); }
.ms-profile-sidebar strong { color: var(--ms-muted); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; }
.ms-profile-sidebar a { color: var(--ms-forest); font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.ms-member-card-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--ms-line); }
.ms-member-card-links a { color: var(--ms-forest); font-size: .86rem; font-weight: 800; text-decoration: none; }

.ms-empty-state { display: grid; gap: .35rem; padding: 2rem; border: 1px dashed rgba(22,133,62,.4); border-radius: 1.1rem; background: rgba(255,255,255,.65); }
.ms-empty-state strong { color: var(--ms-forest); font-family: Georgia, serif; font-size: 1.3rem; }
.ms-empty-state span { color: var(--ms-muted); }

.ms-partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.ms-partners a { min-width: 180px; min-height: 100px; padding: 1rem; display: grid; place-items: center; border: 1px solid var(--ms-line); border-radius: 1rem; background: var(--ms-white); color: var(--ms-ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.ms-partners a:hover { transform: translateY(-3px); border-color: var(--ms-forest); }
.ms-partners img { width: 150px; height: 70px; object-fit: contain; filter: grayscale(1); opacity: .76; transition: filter .2s ease, opacity .2s ease; }
.ms-partners a:hover img { filter: none; opacity: 1; }

.ms-page-hero { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; overflow: hidden; background: linear-gradient(120deg, #153820, #1d6840 62%, var(--ms-water)); color: var(--ms-white); }
.ms-page-hero::after { content: ""; position: absolute; width: 420px; aspect-ratio: 1; right: -100px; top: -220px; border: 70px solid rgba(255,255,255,.05); border-radius: 50%; }
.ms-page-hero--news { background: linear-gradient(120deg, #14381f, #28643a 58%, #8c651e); }
.ms-page-hero--gallery { background: linear-gradient(120deg, #102d1b, #0b6b70 58%, #d48c29); }
.ms-page-hero--events { background: linear-gradient(120deg, #102d1b, #22723d 56%, var(--ms-water)); }
.ms-page-hero h1 { max-width: 850px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 6vw, 5.5rem); letter-spacing: -.04em; line-height: .98; }
.ms-page-hero p:last-child { max-width: 680px; margin: 1.15rem 0 0; color: rgba(255,255,255,.82); font-size: 1.15rem; }
.ms-page-body { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.ms-page-body > h1 { margin-bottom: 2rem; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.ms-page-body .details-page-content { margin: 0 0 1rem !important; padding: clamp(1.5rem, 4vw, 2.7rem); border: 1px solid var(--ms-line); border-radius: 1.1rem; background: var(--ms-white); }
.ms-page-body .details-page-content h3 { font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.ms-page-body .line-break { display: none; }
.ms-page-body li + li { margin-top: .45rem; }

.ms-pdf { margin: 2rem 0; overflow: hidden; border: 1px solid var(--ms-line); border-radius: 1rem; background: var(--ms-white); }
.ms-pdf iframe { display: block; width: 100%; height: min(75vh, 880px); border: 0; }
.ms-pdf-fallback { padding: 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.grid-pagination-nav { margin-top: 2.75rem; padding-top: 1.4rem; gap: 1rem; border-top: 1px solid var(--ms-line); }
.grid-pagination-nav .prev-next-btn { min-width: 118px; }
.grid-pagination-nav .prev-next-btn:last-child { display: flex; justify-content: flex-end; }
.grid-pagination-nav .page-nav-link { min-height: 42px; padding: .55rem .85rem; display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--ms-line); border-radius: 999px; background: var(--ms-white); color: var(--ms-forest); font-weight: 750; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.grid-pagination-nav .page-nav-link:hover { transform: translateY(-2px); border-color: var(--ms-forest); box-shadow: 0 8px 22px rgba(21, 55, 30, .1); }
.grid-pagination-nav .page-nav-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; }
.grid-pagination-nav .page-nav-icon svg { width: 100%; height: 100%; }
.grid-pagination-nav .pagination { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.grid-pagination-nav .pagination li { list-style: none; }
.grid-pagination-nav .pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ms-line); border-radius: 50%; background: var(--ms-white); color: var(--ms-ink); font-size: .83rem; font-weight: 800; text-decoration: none; transition: color .18s ease, background .18s ease, transform .18s ease; }
.grid-pagination-nav .pagination a:hover { color: var(--ms-forest); transform: translateY(-2px); }
.grid-pagination-nav .pagination .active a { border-color: var(--ms-forest); background: var(--ms-forest); color: var(--ms-white); }
.grid-pagination-nav .pagination .pagination-ellipsis { width: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--ms-muted); font-weight: 700; }

.ms-footer { padding: 3.5rem 1.5rem 1.5rem; background: #102a19; color: rgba(255,255,255,.8); }
.ms-footer-inner { width: min(1220px, 100%); margin: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.ms-footer-brand { margin: 0 0 .75rem; color: var(--ms-white); font-family: Georgia, serif; font-size: 1.45rem; }
.ms-footer-tagline { max-width: 520px; margin: 0; }
.ms-footer-nav { display: flex; align-content: start; justify-content: flex-end; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; margin: 0; padding: 0; }
.ms-footer-nav a { color: rgba(255,255,255,.82); text-decoration: none; }
.ms-footer-nav a:hover { color: #f8ca77; }
.ms-footer-bottom { width: min(1220px, 100%); margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.58); font-size: .83rem; }

.ms-shell :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #f4bd55; outline-offset: 3px; }
.ms-button, .ms-nav a, .ms-footer-nav a, .ms-member-card-links a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 1220px) {
    .ms-header-inner { min-height: 72px; }
    .ms-nav-toggle { display: inline-grid; place-items: center; }
    .ms-navigation { position: absolute; top: calc(100% + 1px); left: 1rem; right: 1rem; display: none; padding: 1rem; border: 1px solid var(--ms-line); border-radius: 0 0 1rem 1rem; background: rgba(250,252,247,.99); box-shadow: var(--ms-shadow); }
    .ms-navigation.is-open { display: block; }
    .ms-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ms-nav a { width: 100%; color: #354139; }
    .ms-nav a:hover, .ms-nav a:focus-visible, .ms-nav a[aria-current="page"] { color: var(--ms-forest); background: rgba(22,133,62,.09); }
    .ms-language-switcher { margin-left: auto; }
    .ms-profile-nav { top: 72px; }
    .ms-member-identity { grid-template-columns: auto 1fr; }
    .ms-member-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .ms-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ms-filter-search { grid-column: span 2; }
}

@media (max-width: 850px) {
    .ms-grid, .ms-album-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ms-gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ms-footer-inner { grid-template-columns: 1fr; }
    .ms-footer-nav { justify-content: flex-start; }
    .ms-member-layout { grid-template-columns: 1fr; }
    .ms-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ms-filter-search { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .ms-content { padding-left: 1rem; padding-right: 1rem; }
    .ms-header-inner { padding-left: 1rem; padding-right: 1rem; }
    .ms-brand img { max-width: 230px; max-height: 48px; }
    .ms-brand-name { max-width: 220px; font-size: .9rem; }
    .ms-language-switcher a, .ms-language-switcher span { min-width: 31px; min-height: 30px; font-size: .68rem; }
    .ms-nav { grid-template-columns: 1fr; }
    .ms-hero { min-height: 610px; }
    .ms-stat-strip { grid-template-columns: 1fr; margin-top: -1.3rem; }
    .ms-stat { padding: 1rem; }
    .ms-stat + .ms-stat { border-top: 1px solid var(--ms-line); border-left: 0; }
    .ms-editorial-grid, .ms-grid, .ms-album-grid { grid-template-columns: 1fr; }
    .ms-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ms-gallery a:nth-child(5n + 1), .ms-gallery-item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 1; }
    .ms-lightbox-stage { grid-template-columns: 48px minmax(0,1fr) 48px; }
    .ms-lightbox-nav { width: 42px; height: 58px; font-size: 2rem; }
    .ms-lightbox figure { padding: 4rem .35rem 1rem; }
    .ms-section-heading { align-items: start; flex-direction: column; }
    .ms-section-tools { width: 100%; justify-content: space-between; }
    .ms-filter-bar { grid-template-columns: 1fr; }
    .ms-filter-search { grid-column: auto; }
    .ms-filter-actions { justify-content: space-between; }
    .ms-pdf iframe { height: 65vh; }
    .grid-pagination-nav { justify-content: center !important; }
    .grid-pagination-nav .prev-next-btn { min-width: auto; }
    .grid-pagination-nav .page-nav-link span:not(.page-nav-icon) { display: none; }
    .grid-pagination-nav .pagination { order: 3; width: 100%; }
    .ms-member-identity { grid-template-columns: 1fr; align-items: start; }
    .ms-member-avatar { width: 132px; height: 132px; }
    .ms-member-actions { grid-column: auto; }
    .ms-profile-nav ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .8rem; }
    .ms-profile-nav li { flex: 0 0 auto; }
    .ms-content-carousel-item { flex-basis: min(340px, calc(100vw - 2.4rem)); }
    .ms-photo-carousel-item { flex-basis: min(310px, calc(100vw - 2.4rem)); }
}

@media (max-width: 420px) {
    .ms-header-inner { gap: .45rem; padding-left: .65rem; padding-right: .65rem; }
    .ms-brand { min-width: 0; flex: 1 1 auto; }
    .ms-brand img { max-width: min(150px, 100%); max-height: 42px; }
    .ms-nav-toggle { width: 40px; height: 40px; flex: 0 0 40px; }
    .ms-language-switcher { margin-left: 0; gap: .1rem; padding: .15rem; }
    .ms-language-switcher a, .ms-language-switcher span { min-width: 28px; min-height: 28px; font-size: .63rem; }
}

@media (max-width: 340px) {
    .ms-content, .ms-header-inner { padding-left: .75rem; padding-right: .75rem; }
    .ms-brand img { max-width: 180px; }
    .ms-page-hero h1, .ms-member-heading h1 { font-size: 2.25rem; }
    .ms-filter-actions { align-items: stretch; flex-direction: column; }
    .ms-carousel-controls button { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: .5rem;
    background: #000;
}

.youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ms-gallery-controls {
    margin: 0 0 2rem;
}

.ms-gallery-controls .card {
    border-radius: 1rem;
}

.ms-album-topics {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .75rem 1rem 1rem;
}

.ms-album-topics a {
    border: 1px solid rgba(25, 65, 45, .2);
    border-radius: 999px;
    color: inherit;
    font-size: .78rem;
    padding: .25rem .6rem;
    text-decoration: none;
}

.ms-album-topics a:hover,
.ms-album-topics a:focus-visible {
    background: rgba(25, 65, 45, .1);
}
