:root {
    --final-green: #00877d;
    --final-green-dark: #006f68;
    --final-red: #9d241f;
    --final-red-dark: #7f1c18;
    --final-black: #111111;
    --final-ink: #211917;
    --final-shell: #fffaf1;
    --final-gold: #c9983b;
    --site-primary: #00877d;
    --site-secondary: #006f68;
    --site-background: #f2ebe5;
    --site-footer-background: #b0daf7;
    --site-footer-border: #82bde8;
    --site-footer-text: #102033;
    --site-footer-heading: #7f1c18;
    --site-card-radius: 18px;
    --site-card-shadow-alpha: 0.14;
    --site-card-shadow-hover-alpha: 0.19;
    --site-hero-overlay: 0.72;
    --site-surface-alpha: 0.82;
}

.site-body {
    background: var(--site-background);
    color: var(--final-ink);
}

.site-header {
    display: contents;
}

.site-topbar {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--final-green-dark), var(--final-green));
    border-bottom-color: var(--final-green-dark);
    color: #fff;
}

.site-topbar .social-list a {
    background: rgb(0 0 0 / 0.28);
    color: #fff;
}

/* Icône SVG personnalisée saisie dans l'admin (Réseaux sociaux) : on force
   sa taille à s'aligner sur les icônes intégrées, quels que soient les
   attributs width/height du code collé. */
.stgall-custom-social-icon {
    overflow: hidden;
}

.stgall-custom-social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.site-topbar .utility-nav a {
    border-right-color: rgb(255 255 255 / 0.38);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.08);
}

.main-header-inner {
    min-height: 104px;
    gap: 18px;
    padding-block: 10px;
}

.brand-block {
    min-width: 250px;
    gap: 10px;
}

.brand-logo {
    width: 72px;
    height: 88px;
}

.brand-copy .brand-small {
    font-size: 14px;
}

.brand-copy strong {
    font-size: 22px;
}

.brand-copy span:not(.brand-small) {
    font-size: 15px;
}

.brand-copy em {
    margin-top: 5px;
    font-size: 9px;
}

.primary-nav {
    gap: 18px;
    font-size: 12px;
}

.site-footer {
    background: var(--site-footer-background);
    border-top-color: var(--site-footer-border);
}

.footer-brand,
.footer-col {
    border-right-color: rgb(17 17 17 / 0.18);
}

.footer-brand p,
.footer-col p,
.footer-col a,
.footer-brand-head div,
.footer-brand-head span {
    color: var(--site-footer-text);
}

.footer-col h2,
.footer-brand-head strong,
.footer-contact span {
    color: var(--site-footer-heading);
}

.footer-brand-head em {
    color: #5b4a2f;
}

.footer-social a,
.newsletter-form button {
    background: var(--site-footer-heading);
    color: #fff;
}

.newsletter-form input {
    border-color: rgb(16 32 51 / 0.28);
    background: rgb(255 255 255 / 0.7);
    color: #102033;
}

.newsletter-feedback {
    margin-top: 10px;
    color: #00553d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.newsletter-feedback-error {
    color: var(--site-footer-heading);
}

.notice-board-page {
    padding-block: 64px 86px;
}

.notice-board-hero {
    max-width: 900px;
    margin-bottom: 44px;
}

.notice-board-hero p,
.notice-board-year-heading span {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notice-board-hero h1 {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 0.95;
}

.notice-board-hero span {
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    background: var(--final-gold);
}

.notice-board-hero strong {
    display: block;
    max-width: 760px;
    color: #352a24;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.notice-board-empty {
    border: 1px dashed rgb(0 97 67 / 0.26);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.68);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 20px 46px rgb(31 22 14 / 0.08);
}

.notice-board-empty p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 20px;
    font-weight: 900;
}

.notice-board-empty small {
    display: block;
    margin-top: 8px;
    color: #5f554b;
    font-size: 14px;
}

.notice-board-groups {
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.notice-board-year {
    border-top: 1px solid rgb(213 163 78 / 0.36);
    padding-top: 26px;
}

.notice-board-year-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.notice-board-year-heading h2 {
    margin: 3px 0 0;
    color: var(--final-black);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.notice-board-year-heading p {
    margin: 0;
    border-radius: 999px;
    background: var(--final-green-dark);
    padding: 9px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

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

.notice-card {
    overflow: hidden;
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 36px rgb(31 22 14 / 0.10);
}

.notice-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--final-green-dark), var(--final-red-dark));
}

.notice-card-media img,
.notice-card-placeholder {
    width: 100%;
    height: 100%;
}

.notice-card-media img {
    display: block;
    object-fit: cover;
}

.notice-card-placeholder {
    display: grid;
    place-items: center;
    color: rgb(255 255 255 / 0.88);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    font-weight: 900;
}

.notice-card-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    background: #fff8ec;
    padding: 8px 11px;
    color: var(--final-green-dark);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.16);
}

.notice-card-badge--urgent-information {
    background: var(--final-red-dark);
    color: #fff;
}

.notice-card-badge--service-note {
    background: var(--final-gold);
    color: #1f1712;
}

.notice-card-badge--official-announcement {
    background: var(--final-green-dark);
    color: #fff;
}

.notice-card-body {
    padding: 20px;
}

.notice-card-body time {
    display: block;
    color: #74695e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.notice-card-body h3 {
    margin: 9px 0 0;
    color: var(--final-black);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.25;
}

.notice-card-body p {
    margin: 10px 0 0;
    color: #4f453d;
    font-size: 14px;
    line-height: 1.6;
}

.notice-card-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
}

.notice-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.notice-detail-meta .notice-card-badge,
.notice-detail-meta .annual-program-badge,
.notice-detail-meta .daily-program-badge,
.notice-detail-meta .institute-card-badge,
.notice-detail-meta .liturgy-card-badge,
.notice-detail-meta .sector-card-badge,
.notice-detail-meta .building-card-badge,
.notice-detail-meta span,
.notice-detail-meta time {
    position: static;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.notice-detail-meta span:not(.notice-card-badge):not(.annual-program-badge):not(.daily-program-badge):not(.institute-card-badge):not(.liturgy-card-badge):not(.sector-card-badge):not(.building-card-badge),
.notice-detail-meta time {
    border: 1px solid rgb(0 97 67 / 0.16);
    background: #fff;
    color: #4e443b;
}

.liturgy-page {
    padding-block: 64px 86px;
}

.liturgy-hero {
    max-width: 900px;
    margin-bottom: 44px;
}

.liturgy-hero p,
.liturgy-year-heading span {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.liturgy-hero h1 {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 0.95;
}

.liturgy-hero span {
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    background: var(--final-gold);
}

.liturgy-hero strong {
    display: block;
    max-width: 760px;
    color: #352a24;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.liturgy-empty {
    border: 1px dashed rgb(0 97 67 / 0.26);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.68);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 20px 46px rgb(31 22 14 / 0.08);
}

.liturgy-empty p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 20px;
    font-weight: 900;
}

.liturgy-empty small {
    display: block;
    margin-top: 8px;
    color: #5f554b;
    font-size: 14px;
}

.liturgy-groups {
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.liturgy-year {
    border-top: 1px solid rgb(213 163 78 / 0.36);
    padding-top: 26px;
}

.liturgy-year-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.liturgy-year-heading h2 {
    margin: 3px 0 0;
    color: var(--final-black);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.liturgy-year-heading p {
    margin: 0;
    border-radius: 999px;
    background: var(--final-green-dark);
    padding: 9px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

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

.liturgy-card {
    overflow: hidden;
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 36px rgb(31 22 14 / 0.10);
}

.liturgy-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--final-green-dark), var(--final-red-dark));
}

.liturgy-card-media img,
.liturgy-card-placeholder {
    width: 100%;
    height: 100%;
}

.liturgy-card-media img {
    display: block;
    object-fit: cover;
}

.liturgy-card-placeholder {
    display: grid;
    place-items: center;
    color: rgb(255 255 255 / 0.88);
    font-size: 48px;
    font-weight: 900;
}

.liturgy-card-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.16);
}

.liturgy-card-badge--homily {
    background: var(--final-green-dark);
    color: #fff;
}

.liturgy-card-badge--meditation {
    background: var(--final-gold);
    color: #1f1712;
}

.liturgy-card-badge--monition {
    background: var(--final-red-dark);
    color: #fff;
}

.liturgy-card-body {
    padding: 20px;
}

.liturgy-card-body time {
    display: block;
    color: #74695e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.liturgy-card-body h3 {
    margin: 9px 0 0;
    color: var(--final-black);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.25;
}

.liturgy-card-body p {
    margin: 10px 0 0;
    color: #4f453d;
    font-size: 14px;
    line-height: 1.6;
}

.liturgy-card-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
}

.notice-detail-meta .liturgy-card-badge {
    position: static;
}

.sector-page {
    padding-block: 64px 86px;
}

.sector-hero {
    max-width: 920px;
    margin-bottom: 44px;
}

.sector-hero p,
.sector-year-heading span {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sector-hero h1 {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 0.95;
}

.sector-hero span {
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    background: var(--final-gold);
}

.sector-hero strong {
    display: block;
    max-width: 780px;
    color: #352a24;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.sector-empty {
    border: 1px dashed rgb(0 97 67 / 0.26);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.68);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 20px 46px rgb(31 22 14 / 0.08);
}

.sector-empty p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 20px;
    font-weight: 900;
}

.sector-empty small {
    display: block;
    margin-top: 8px;
    color: #5f554b;
    font-size: 14px;
}

.sector-groups {
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.sector-year {
    border-top: 1px solid rgb(213 163 78 / 0.36);
    padding-top: 26px;
}

.sector-year-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.sector-year-heading h2 {
    margin: 3px 0 0;
    color: var(--final-black);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.sector-year-heading p {
    margin: 0;
    border-radius: 999px;
    background: var(--final-green-dark);
    padding: 9px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

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

.sector-card {
    overflow: hidden;
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 36px rgb(31 22 14 / 0.10);
}

.sector-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--final-green-dark), #c7993d);
}

.sector-card-media img,
.sector-card-placeholder {
    width: 100%;
    height: 100%;
}

.sector-card-media img {
    display: block;
    object-fit: cover;
}

.sector-card-placeholder {
    display: grid;
    place-items: center;
    color: rgb(255 255 255 / 0.9);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    font-weight: 900;
}

.sector-card-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    background: #fff8ec;
    padding: 8px 11px;
    color: var(--final-green-dark);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.16);
}

.sector-card-badge--geographical-entity {
    background: #0e7490;
    color: #fff;
}

.sector-card-badge--pastoral-sector {
    background: var(--final-green-dark);
    color: #fff;
}

.sector-card-badge--mission-area {
    background: var(--final-gold);
    color: #1f1712;
}

.sector-card-badge--partner-institution {
    background: var(--final-red-dark);
    color: #fff;
}

.sector-card-badge--other-entity {
    background: #302821;
    color: #fff;
}

.sector-card-body {
    padding: 20px;
}

.sector-card-body time {
    display: block;
    color: #74695e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sector-card-body h3 {
    margin: 9px 0 0;
    color: var(--final-black);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.25;
}

.sector-card-body p {
    margin: 10px 0 0;
    color: #4f453d;
    font-size: 14px;
    line-height: 1.6;
}

.sector-card-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
}

.notice-detail-meta .sector-card-badge {
    position: static;
}

.building-page {
    padding-block: 64px 86px;
}

.building-hero {
    max-width: 980px;
    margin-bottom: 44px;
}

.building-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.building-hero h1 {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 0.98;
}

.building-hero span {
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    background: var(--final-gold);
}

.building-hero strong {
    display: block;
    max-width: 820px;
    color: #352a24;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.building-empty {
    border: 1px dashed rgb(0 97 67 / 0.26);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.68);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 20px 46px rgb(31 22 14 / 0.08);
}

.building-empty p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 20px;
    font-weight: 900;
}

.building-empty small {
    display: block;
    margin-top: 8px;
    color: #5f554b;
    font-size: 14px;
}

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

.building-card {
    overflow: hidden;
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 36px rgb(31 22 14 / 0.10);
}

.building-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgb(0 82 61 / 0.92), rgb(143 36 31 / 0.86)),
        #0f3f35;
}

.building-card-media img,
.building-card-placeholder {
    width: 100%;
    height: 100%;
}

.building-card-media img {
    display: block;
    object-fit: cover;
    transition: transform 360ms ease, filter 360ms ease;
}

.building-card:hover .building-card-media img,
.building-card:focus-visible .building-card-media img {
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.045);
}

.building-card-placeholder {
    display: grid;
    place-items: center;
    color: rgb(255 255 255 / 0.9);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    font-weight: 900;
}

.building-card-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    background: #fff8ec;
    padding: 8px 11px;
    color: var(--final-green-dark);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.16);
}

.building-card-badge--architectural-heritage {
    background: var(--final-gold);
    color: #1f1712;
}

.building-card-badge--chapel-liturgical-space {
    background: var(--final-green-dark);
    color: #fff;
}

.building-card-badge--academic-building {
    background: #0e7490;
    color: #fff;
}

.building-card-badge--residential-building {
    background: #4338ca;
    color: #fff;
}

.building-card-badge--administrative-infrastructure {
    background: #302821;
    color: #fff;
}

.building-card-badge--community-infrastructure {
    background: #047857;
    color: #fff;
}

.building-card-badge--sports-infrastructure {
    background: #2563eb;
    color: #fff;
}

.building-card-badge--other-infrastructure {
    background: var(--final-red-dark);
    color: #fff;
}

.building-card-body {
    padding: 20px;
}

.building-card-body time {
    display: block;
    color: #74695e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.building-card-body h3 {
    margin: 9px 0 0;
    color: var(--final-black);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.22;
}

.building-card-body p {
    margin: 10px 0 0;
    color: #4f453d;
    font-size: 14px;
    line-height: 1.6;
}

.building-card-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
}

.notice-detail-meta .building-card-badge {
    position: static;
}

.institute-page {
    padding-block: 64px 86px;
}

.institute-hero {
    max-width: 980px;
    margin-bottom: 44px;
}

.institute-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.institute-hero h1 {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 0.98;
}

.institute-hero span {
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    background: var(--final-gold);
}

.institute-hero strong {
    display: block;
    max-width: 820px;
    color: #352a24;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.institute-empty {
    border: 1px dashed rgb(0 97 67 / 0.26);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.68);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 20px 46px rgb(31 22 14 / 0.08);
}

.institute-empty p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 20px;
    font-weight: 900;
}

.institute-empty small {
    display: block;
    margin-top: 8px;
    color: #5f554b;
    font-size: 14px;
}

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

.institute-card {
    overflow: hidden;
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 36px rgb(31 22 14 / 0.10);
}

.institute-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgb(0 82 61 / 0.92), rgb(143 36 31 / 0.86)),
        #0f3f35;
}

.institute-card-media img,
.institute-card-placeholder {
    width: 100%;
    height: 100%;
}

.institute-card-media img {
    display: block;
    object-fit: cover;
    transition: transform 360ms ease, filter 360ms ease;
}

.institute-card:hover .institute-card-media img,
.institute-card:focus-visible .institute-card-media img {
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.045);
}

.institute-card-placeholder {
    display: grid;
    place-items: center;
    color: rgb(255 255 255 / 0.9);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    font-weight: 900;
}

.institute-card-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    background: #fff8ec;
    padding: 8px 11px;
    color: var(--final-green-dark);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.16);
}

.institute-card-badge--general-presentation {
    background: var(--final-gold);
    color: #1f1712;
}

.institute-card-badge--identity-mission {
    background: var(--final-green-dark);
    color: #fff;
}

.institute-card-badge--formation-project {
    background: #0e7490;
    color: #fff;
}

.institute-card-badge--academic-life {
    background: #4338ca;
    color: #fff;
}

.institute-card-badge--spiritual-life {
    background: #047857;
    color: #fff;
}

.institute-card-badge--community-life {
    background: #b45309;
    color: #fff;
}

.institute-card-badge--pastoral-life {
    background: #2563eb;
    color: #fff;
}

.institute-card-badge--admission-orientation {
    background: var(--final-red-dark);
    color: #fff;
}

.institute-card-body {
    padding: 20px;
}

.institute-card-body time {
    display: block;
    color: #74695e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.institute-card-body h3 {
    margin: 9px 0 0;
    color: var(--final-black);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.22;
}

.institute-card-body p {
    margin: 10px 0 0;
    color: #4f453d;
    font-size: 14px;
    line-height: 1.6;
}

.institute-card-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
}

.notice-detail-meta .institute-card-badge {
    position: static;
}

.annual-program-page {
    padding-block: 64px 86px;
}

.annual-program-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: end;
    margin-bottom: 34px;
}

.annual-program-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.annual-program-hero h1 {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 0.98;
}

.annual-program-hero div > span {
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    background: var(--final-gold);
}

.annual-program-hero strong {
    display: block;
    max-width: 800px;
    color: #352a24;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.annual-program-year-card {
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgb(0 111 104 / 0.97), rgb(0 135 125 / 0.86)),
        var(--final-green-dark);
    padding: 26px;
    color: #fff;
    box-shadow: 0 18px 42px rgb(0 97 67 / 0.18);
}

.annual-program-year-card small,
.annual-program-year-card em {
    display: block;
    font-style: normal;
    font-weight: 850;
}

.annual-program-year-card small {
    font-size: 13px;
    opacity: 0.86;
}

.annual-program-year-card strong {
    margin-top: 7px;
    color: #fff;
    font-family: inherit;
    font-size: 34px;
    line-height: 1;
}

.annual-program-year-card em {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.annual-program-theme {
    margin-bottom: 38px;
    border: 1px solid rgb(213 163 78 / 0.42);
    border-radius: 22px;
    background:
        linear-gradient(120deg, rgb(255 255 255 / 0.92), rgb(255 248 236 / 0.86)),
        #fff;
    padding: 28px;
    box-shadow: 0 18px 44px rgb(31 22 14 / 0.08);
}

.annual-program-theme p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.annual-program-theme strong {
    display: block;
    margin-top: 8px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
}

.annual-program-empty {
    border: 1px dashed rgb(0 97 67 / 0.26);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.68);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 20px 46px rgb(31 22 14 / 0.08);
}

.annual-program-empty p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 20px;
    font-weight: 900;
}

.annual-program-empty small {
    display: block;
    margin-top: 8px;
    color: #5f554b;
    font-size: 14px;
}

.annual-program-block + .annual-program-block {
    margin-top: 46px;
}

.annual-program-section-heading {
    display: grid;
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.annual-program-section-heading span {
    height: 2px;
    background: var(--final-gold);
}

.annual-program-section-heading h2 {
    margin: 0;
    color: var(--final-black);
    font-size: 24px;
    font-weight: 950;
    line-height: 1.15;
    text-transform: uppercase;
}

.annual-program-trimesters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.annual-program-other-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.annual-program-card {
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 18px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 16px 36px rgb(31 22 14 / 0.10);
}

.annual-program-card > header {
    margin-bottom: 16px;
}

.annual-program-badge {
    display: inline-flex;
    border-radius: 999px;
    background: #fff8ec;
    padding: 8px 11px;
    color: var(--final-green-dark);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.annual-program-badge--annual-calendar {
    background: #0e7490;
    color: #fff;
}

.annual-program-badge--first-trimester,
.annual-program-badge--second-trimester,
.annual-program-badge--third-trimester {
    background: var(--final-green-dark);
    color: #fff;
}

.annual-program-badge--major-events {
    background: var(--final-gold);
    color: #1f1712;
}

.annual-program-badge--downloadable-documents {
    background: var(--final-red-dark);
    color: #fff;
}

.annual-program-item + .annual-program-item {
    margin-top: 20px;
    border-top: 1px solid rgb(213 163 78 / 0.25);
    padding-top: 20px;
}

.annual-program-item time {
    display: block;
    color: #74695e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.annual-program-item h3 {
    margin: 7px 0 0;
    color: var(--final-black);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.25;
}

.annual-program-item h3 a {
    color: inherit;
    text-decoration: none;
}

.annual-program-item h3 a:hover,
.annual-program-item h3 a:focus-visible {
    color: var(--final-red-dark);
}

.annual-program-item p,
.annual-program-muted {
    margin: 10px 0 0;
    color: #4f453d;
    font-size: 14px;
    line-height: 1.6;
}

.annual-program-muted {
    font-weight: 700;
}

.annual-program-rich {
    margin-top: 12px;
    color: #312720;
    font-size: 14px;
    line-height: 1.7;
}

.annual-program-rich :where(p, ul, ol, table) {
    margin: 0 0 10px;
}

.annual-program-rich :where(ul, ol) {
    padding-left: 20px;
}

.annual-program-rich ul {
    list-style: disc;
}

.annual-program-rich ol {
    list-style: decimal;
}

.annual-program-rich table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    font-size: 13px;
}

.annual-program-rich th,
.annual-program-rich td {
    border: 1px solid rgb(0 97 67 / 0.12);
    padding: 8px;
    vertical-align: top;
}

.annual-program-rich th {
    background: rgb(0 111 104 / 0.08);
    color: var(--final-green-dark);
    font-weight: 900;
}

.annual-program-documents {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.annual-program-documents a {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
    border-radius: 10px;
    background: var(--final-green-dark);
    padding: 10px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.annual-program-documents a:hover,
.annual-program-documents a:focus-visible {
    background: var(--final-red-dark);
}

.annual-program-documents span {
    overflow: hidden;
    max-width: 210px;
    opacity: 0.82;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-detail-meta .annual-program-badge {
    position: static;
}

.daily-program-page {
    padding-block: 64px 86px;
}

.daily-program-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: end;
    margin-bottom: 34px;
}

.daily-program-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.daily-program-hero h1 {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 0.98;
}

.daily-program-hero div > span {
    display: block;
    width: 78px;
    height: 3px;
    margin: 18px 0;
    border-radius: 999px;
    background: var(--final-gold);
}

.daily-program-hero strong {
    display: block;
    max-width: 800px;
    color: #352a24;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.daily-program-year-card {
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgb(0 111 104 / 0.97), rgb(0 135 125 / 0.86)),
        var(--final-green-dark);
    padding: 26px;
    color: #fff;
    box-shadow: 0 18px 42px rgb(0 97 67 / 0.18);
}

.daily-program-year-card small,
.daily-program-year-card em {
    display: block;
    font-style: normal;
    font-weight: 850;
}

.daily-program-year-card small {
    font-size: 13px;
    opacity: 0.86;
}

.daily-program-year-card strong {
    margin-top: 7px;
    color: #fff;
    font-family: inherit;
    font-size: 34px;
    line-height: 1;
}

.daily-program-year-card em {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.daily-program-theme {
    margin-bottom: 38px;
    border: 1px solid rgb(213 163 78 / 0.42);
    border-radius: 22px;
    background:
        linear-gradient(120deg, rgb(255 255 255 / 0.92), rgb(255 248 236 / 0.86)),
        #fff;
    padding: 28px;
    box-shadow: 0 18px 44px rgb(31 22 14 / 0.08);
}

.daily-program-theme p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.daily-program-theme strong {
    display: block;
    margin-top: 8px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
}

.daily-program-empty {
    border: 1px dashed rgb(0 97 67 / 0.26);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.68);
    padding: 56px 24px;
    text-align: center;
    box-shadow: 0 20px 46px rgb(31 22 14 / 0.08);
}

.daily-program-empty--compact {
    padding: 28px 20px;
}

.daily-program-empty p,
.daily-program-pdf-empty p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 20px;
    font-weight: 900;
}

.daily-program-empty small,
.daily-program-pdf-empty small {
    display: block;
    margin-top: 8px;
    color: #5f554b;
    font-size: 14px;
}

.daily-program-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 26px;
    align-items: start;
}

.daily-program-pdf-panel,
.daily-program-card,
.daily-program-documents-block {
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgb(31 22 14 / 0.10);
}

.daily-program-pdf-panel {
    overflow: hidden;
    padding: 20px;
}

.daily-program-section-heading {
    display: grid;
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    text-align: center;
}

.daily-program-section-heading span {
    height: 2px;
    background: var(--final-gold);
}

.daily-program-section-heading h2 {
    margin: 0;
    color: var(--final-black);
    font-size: 23px;
    font-weight: 950;
    line-height: 1.15;
    text-transform: uppercase;
}

.daily-program-pdf-viewer {
    overflow: hidden;
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 14px;
    background: #2b2926;
    aspect-ratio: 4 / 5;
}

.daily-program-pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.daily-program-download-primary {
    display: inline-flex;
    margin-top: 16px;
    border-radius: 10px;
    background: var(--final-green-dark);
    padding: 12px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.daily-program-download-primary:hover,
.daily-program-download-primary:focus-visible {
    background: var(--final-red-dark);
}

.daily-program-pdf-empty {
    border-radius: 14px;
    background: #fff8ec;
    padding: 36px 18px;
    text-align: center;
}

.daily-program-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.daily-program-card {
    padding: 20px;
}

.daily-program-card header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.daily-program-badge {
    display: inline-flex;
    border-radius: 999px;
    background: #fff8ec;
    padding: 8px 11px;
    color: var(--final-green-dark);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.daily-program-badge--typical-schedule {
    background: var(--final-green-dark);
    color: #fff;
}

.daily-program-badge--morning-routine {
    background: var(--final-gold);
    color: #1f1712;
}

.daily-program-badge--prayer-or-oraison {
    background: #4338ca;
    color: #fff;
}

.daily-program-badge--courses {
    background: #0e7490;
    color: #fff;
}

.daily-program-badge--work {
    background: #047857;
    color: #fff;
}

.daily-program-badge--rest {
    background: #302821;
    color: #fff;
}

.daily-program-badge--downloadable-pdf {
    background: var(--final-red-dark);
    color: #fff;
}

.daily-program-card time {
    color: #74695e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.daily-program-card h3 {
    margin: 13px 0 0;
    color: var(--final-black);
    font-size: 21px;
    font-weight: 950;
    line-height: 1.2;
}

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

.daily-program-card h3 a:hover,
.daily-program-card h3 a:focus-visible {
    color: var(--final-red-dark);
}

.daily-program-card p {
    margin: 10px 0 0;
    color: #4f453d;
    font-size: 14px;
    line-height: 1.6;
}

.daily-program-rich {
    margin-top: 14px;
    color: #312720;
    font-size: 14px;
    line-height: 1.7;
}

.daily-program-rich :where(p, ul, ol, table) {
    margin: 0 0 10px;
}

.daily-program-rich :where(ul, ol) {
    padding-left: 20px;
}

.daily-program-rich ul {
    list-style: disc;
}

.daily-program-rich ol {
    list-style: decimal;
}

.daily-program-rich table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    font-size: 13px;
}

.daily-program-rich th,
.daily-program-rich td {
    border: 1px solid rgb(0 97 67 / 0.14);
    padding: 9px;
    vertical-align: top;
}

.daily-program-rich th {
    background: rgb(0 111 104 / 0.08);
    color: var(--final-green-dark);
    font-weight: 900;
}

.daily-program-documents-block {
    margin-top: 38px;
    padding: 20px;
}

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

.daily-program-documents a {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    border-radius: 12px;
    background: var(--final-green-dark);
    padding: 13px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.daily-program-documents a:hover,
.daily-program-documents a:focus-visible {
    background: var(--final-red-dark);
}

.daily-program-documents span {
    overflow: hidden;
    opacity: 0.82;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-detail-meta .daily-program-badge {
    position: static;
}

@media (max-width: 980px) {
    .notice-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .annual-program-hero {
        grid-template-columns: 1fr;
    }

    .daily-program-hero,
    .daily-program-layout {
        grid-template-columns: 1fr;
    }

    .annual-program-trimesters,
    .annual-program-other-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-program-documents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

@media (max-width: 640px) {
    .notice-board-page {
        padding-block: 42px 64px;
    }

    .notice-board-hero strong {
        font-size: 15.5px;
    }

    .notice-board-year-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .notice-board-grid {
        grid-template-columns: 1fr;
    }

    .annual-program-page {
        padding-block: 42px 64px;
    }

    .annual-program-hero strong {
        font-size: 15.5px;
    }

    .annual-program-year-card strong {
        font-size: 28px;
    }

    .annual-program-section-heading {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .annual-program-section-heading span {
        width: 78px;
    }

    .daily-program-page {
        padding-block: 42px 64px;
    }

    .daily-program-hero strong {
        font-size: 15.5px;
    }

    .daily-program-year-card strong {
        font-size: 28px;
    }

    .daily-program-section-heading {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .daily-program-section-heading span {
        width: 78px;
    }

    .daily-program-pdf-viewer {
        aspect-ratio: 3 / 4;
    }

    .daily-program-documents {
        grid-template-columns: 1fr;
    }

    .annual-program-trimesters,
    .annual-program-other-grid {
        grid-template-columns: 1fr;
    }

    .institute-page {
        padding-block: 42px 64px;
    }

    .institute-hero strong {
        font-size: 15.5px;
    }

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

    .liturgy-page {
        padding-block: 42px 64px;
    }

    .liturgy-hero strong {
        font-size: 15.5px;
    }

    .liturgy-year-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .sector-page {
        padding-block: 42px 64px;
    }

    .sector-hero strong {
        font-size: 15.5px;
    }

    .sector-year-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .building-page {
        padding-block: 42px 64px;
    }

    .building-hero strong {
        font-size: 15.5px;
    }

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

.footer-bottom {
    background: var(--final-black);
    color: #fff;
}

.home-front,
.welcome-mission-grid,
.news-grid,
.formation-front-grid,
.publication-grid,
.latest-image-row {
    min-width: 0;
}

.front-card,
.publication-card,
.welcome-card,
.mission-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-card,
.front-card,
.publication-card,
.welcome-card,
.mission-card,
.latest-news-card,
.administration-person-card,
.administration-year-card,
.seminarian-theology-card,
.review-empty {
    position: relative;
    border-radius: var(--site-card-radius);
    box-shadow: 0 18px 42px rgb(20 17 13 / var(--site-card-shadow-alpha));
    transform: translateY(0) scale(1);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease,
        filter 220ms ease;
    will-change: transform;
}

.site-card:hover,
.site-card:focus-within,
.front-card:hover,
.front-card:focus-within,
.publication-card:hover,
.publication-card:focus-within,
.welcome-card:hover,
.welcome-card:focus-within,
.mission-card:hover,
.mission-card:focus-within,
.latest-news-card:hover,
.latest-news-card:focus-within,
.administration-person-card:hover,
.administration-person-card:focus-within,
.administration-year-card:hover,
.administration-year-card:focus-within,
.seminarian-theology-card:hover,
.seminarian-theology-card:focus-within,
.review-empty:hover,
.review-empty:focus-within {
    border-color: rgb(201 153 59 / 0.68);
    box-shadow: 0 26px 62px rgb(20 17 13 / var(--site-card-shadow-hover-alpha));
    transform: translateY(-6px);
}

.site-card:active,
.front-card:active,
.publication-card:active,
.latest-news-card:active,
.seminarian-theology-card:active {
    transform: translateY(-2px) scale(0.992);
}

.site-card img,
.front-card img,
.publication-card img,
.welcome-card img,
.latest-news-card img,
.administration-person-card img,
.seminarian-theology-card img,
.gallery-image-card img {
    transition:
        transform 320ms ease,
        filter 320ms ease;
}

.site-card:hover img,
.site-card:focus-within img,
.front-card:hover img,
.front-card:focus-within img,
.publication-card:hover img,
.publication-card:focus-within img,
.welcome-card:hover img,
.welcome-card:focus-within img,
.latest-news-card:hover img,
.latest-news-card:focus-within img,
.administration-person-card:hover img,
.administration-person-card:focus-within img,
.seminarian-theology-card:hover img,
.seminarian-theology-card:focus-within img,
.gallery-image-card:hover img,
.gallery-image-card:focus-within img {
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.045);
}

.site-card h2 a,
.site-card h3 a,
.front-card .card-link,
.publication-card h4,
.latest-news-card h3 a,
.administration-person-card h3,
.seminarian-theology-card strong {
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-card:hover h2 a,
.site-card:focus-within h2 a,
.site-card:hover h3 a,
.site-card:focus-within h3 a,
.front-card:hover .card-link,
.front-card:focus-within .card-link,
.publication-card:hover h4,
.publication-card:focus-within h4,
.latest-news-card:hover h3 a,
.latest-news-card:focus-within h3 a,
.administration-person-card:hover h3,
.administration-person-card:focus-within h3,
.seminarian-theology-card:hover strong,
.seminarian-theology-card:focus-within strong {
    color: var(--final-red-dark);
}

@media (prefers-reduced-motion: reduce) {
    .site-card,
    .front-card,
    .publication-card,
    .welcome-card,
    .mission-card,
    .latest-news-card,
    .administration-person-card,
    .administration-year-card,
    .seminarian-theology-card,
    .review-empty,
    .site-card img,
    .front-card img,
    .publication-card img,
    .welcome-card img,
    .latest-news-card img,
    .administration-person-card img,
    .seminarian-theology-card img,
    .gallery-image-card img {
        transition: none;
    }

    .site-card:hover,
    .site-card:focus-within,
    .front-card:hover,
    .front-card:focus-within,
    .publication-card:hover,
    .publication-card:focus-within,
    .welcome-card:hover,
    .welcome-card:focus-within,
    .mission-card:hover,
    .mission-card:focus-within,
    .latest-news-card:hover,
    .latest-news-card:focus-within,
    .administration-person-card:hover,
    .administration-person-card:focus-within,
    .administration-year-card:hover,
    .administration-year-card:focus-within,
    .seminarian-theology-card:hover,
    .seminarian-theology-card:focus-within,
    .review-empty:hover,
    .review-empty:focus-within,
    .site-card:hover img,
    .site-card:focus-within img,
    .front-card:hover img,
    .front-card:focus-within img,
    .publication-card:hover img,
    .publication-card:focus-within img,
    .welcome-card:hover img,
    .welcome-card:focus-within img,
    .latest-news-card:hover img,
    .latest-news-card:focus-within img,
    .administration-person-card:hover img,
    .administration-person-card:focus-within img,
    .seminarian-theology-card:hover img,
    .seminarian-theology-card:focus-within img,
    .gallery-image-card:hover img,
    .gallery-image-card:focus-within img {
        transform: none;
    }
}

@media (max-width: 1180px) {
    .main-header-inner {
        min-height: auto;
    }

    .primary-nav {
        flex-wrap: wrap;
        gap: 8px 16px;
    }
}

@media (max-width: 980px) {
    .welcome-mission-grid,
    .publication-grid,
    .news-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .formation-front-grid,
    .latest-image-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .site-container {
        width: min(100% - 28px, 1210px);
    }

    .main-header-inner {
        align-items: flex-start;
        gap: 12px;
    }

    .brand-block {
        min-width: 0;
    }

    .brand-logo {
        width: 58px;
        height: 70px;
    }

    .brand-copy .brand-small {
        font-size: 12px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy span:not(.brand-small) {
        font-size: 13px;
    }

    .primary-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .primary-link {
        white-space: normal;
    }

    .welcome-card,
    .mission-card,
    .publication-card,
    .formation-front-grid,
    .latest-image-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .publication-card {
        padding: 20px;
    }

    .publication-card img {
        width: 112px;
        height: 112px;
    }

    .front-heading {
        font-size: 19px;
        gap: 10px;
    }

    .front-heading::before,
    .front-heading::after {
        width: 44px;
    }
}

.carousel-shade {
    background:
        linear-gradient(90deg, rgb(0 0 0 / var(--site-hero-overlay)) 0%, rgb(0 0 0 / 0.78) 30%, rgb(0 0 0 / 0.56) 50%, rgb(0 0 0 / 0.24) 72%, transparent 92%),
        linear-gradient(180deg, rgb(0 0 0 / 0.14), transparent 42%);
}

.carousel-content h1,
.carousel-content p {
    text-shadow: 0 4px 18px rgb(0 0 0 / 0.42);
}

@media (max-width: 760px) {
    .carousel-shade {
        background:
            linear-gradient(90deg, rgb(0 0 0 / var(--site-hero-overlay)) 0%, rgb(0 0 0 / 0.72) 56%, rgb(0 0 0 / 0.32) 84%, transparent 100%),
            linear-gradient(180deg, rgb(0 0 0 / 0.16), transparent 42%);
    }
}

.primary-nav {
    gap: 22px;
    font-size: 15px;
}

.primary-link {
    font-size: 15px;
    letter-spacing: 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-toggle {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    padding: 10px 14px;
    text-align: left;
}

.dropdown-submenu-toggle span {
    transition: transform 180ms ease;
}

.dropdown-submenu-panel {
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    display: grid;
    min-width: 230px;
    gap: 4px;
    visibility: hidden;
    border: 1px solid rgb(0 97 67 / 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 22px 42px rgb(17 17 17 / 0.16);
    opacity: 0;
    padding: 8px;
    transform: translateX(-6px);
    transition: opacity 160ms ease, transform 180ms ease, visibility 160ms ease;
}

.dropdown-submenu:hover > .dropdown-submenu-panel,
.dropdown-submenu:focus-within > .dropdown-submenu-panel,
.dropdown-submenu.is-open > .dropdown-submenu-panel {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.dropdown-submenu:hover > .dropdown-submenu-toggle span,
.dropdown-submenu:focus-within > .dropdown-submenu-toggle span,
.dropdown-submenu.is-open > .dropdown-submenu-toggle span {
    transform: rotate(-90deg);
}

.dropdown-submenu-toggle:hover,
.dropdown-submenu-toggle:focus {
    background: rgb(0 97 67 / 0.08);
    color: var(--final-green-dark);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 44px;
    place-items: center;
    border: 1px solid rgb(17 17 17 / 0.14);
    border-radius: 9px;
    background: #fff;
    padding: 9px;
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.08);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    border-radius: 999px;
    background: #111;
}

.menu-toggle span + span {
    margin-top: 5px;
}

.administration-page {
    padding-block: 56px 72px;
}

.administration-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 28px;
    align-items: stretch;
    border: 1px solid rgb(0 97 67 / 0.13);
    border-left: 6px solid var(--final-green-dark);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgb(201 153 59 / 0.22), transparent 22%),
        linear-gradient(135deg, #fff, #fffaf1 72%, #f5eee4);
    box-shadow: 0 18px 46px rgb(17 17 17 / 0.09);
    padding: clamp(24px, 4vw, 46px);
}

.administration-eyebrow {
    margin: 0 0 10px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.administration-hero h1 {
    margin: 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.9vw, 34px);
    font-weight: 800;
    line-height: 1.02;
}

.administration-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #2c2926;
    font-size: 17px;
    line-height: 1.75;
}

.administration-year-card {
    display: grid;
    align-content: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at 86% 14%, rgb(255 255 255 / 0.2), transparent 24%),
        linear-gradient(135deg, var(--final-green), var(--final-green-dark));
    color: #fff;
    padding: 28px;
    box-shadow: 0 18px 36px rgb(0 97 67 / 0.22);
}

.administration-year-card span,
.administration-year-card small {
    font-size: 13px;
    font-weight: 800;
    opacity: 0.86;
}

.administration-year-card strong {
    margin-top: 8px;
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
}

.administration-year-card small {
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.administration-year-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.administration-year-tabs a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(0 97 67 / 0.16);
    border-radius: 999px;
    background: #fff;
    color: var(--final-green-dark);
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgb(17 17 17 / 0.06);
}

.administration-year-tabs a:hover,
.administration-year-tabs a.is-active {
    border-color: var(--final-green-dark);
    background: var(--final-green-dark);
    color: #fff;
}

.administration-role-list {
    display: grid;
    gap: 34px;
    margin-top: 34px;
}

.administration-role-section {
    display: grid;
    gap: 18px;
}

.administration-section-heading {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    border-bottom: 1px solid rgb(201 153 59 / 0.42);
    padding-bottom: 14px;
}

.administration-section-heading div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.administration-section-heading span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    background: var(--final-red);
    color: #fff;
    font-weight: 950;
}

.administration-section-heading h2 {
    margin: 0;
    color: #111;
    font-size: clamp(23px, 2.3vw, 34px);
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.administration-section-heading p {
    max-width: 520px;
    margin: 0;
    color: #514943;
    font-size: 14px;
    line-height: 1.55;
}

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

.administration-person-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    border: 1px solid rgb(0 97 67 / 0.12);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 16px 38px rgb(17 17 17 / 0.08);
}

.administration-person-photo {
    width: 118px;
    height: 142px;
    overflow: hidden;
    border: 3px solid rgb(201 153 59 / 0.72);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff8ec, #e7f4ef);
    box-shadow: 0 14px 28px rgb(17 17 17 / 0.10);
}

.administration-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.administration-person-photo span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--final-red-dark);
    font-size: 46px;
    font-weight: 950;
}

.administration-person-content {
    min-width: 0;
}

.administration-person-role {
    display: inline-flex;
    border-radius: 999px;
    background: rgb(0 97 67 / 0.09);
    color: var(--final-green-dark);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.administration-person-card h3 {
    margin: 10px 0 0;
    color: #111;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.16;
}

.administration-person-function {
    margin: 8px 0 0;
    color: var(--final-red-dark);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.administration-person-bio {
    margin: 10px 0 0;
    color: #3b352f;
    font-size: 14px;
    line-height: 1.58;
}

.administration-person-contact {
    display: grid;
    gap: 5px;
    margin-top: 12px;
}

.administration-person-contact a {
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.administration-empty {
    margin-top: 34px;
    border: 1px dashed rgb(0 97 67 / 0.28);
    border-radius: 18px;
    background: #fff;
    color: #3c3630;
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.seminarian-page {
    padding-block: 28px 58px;
}

.seminarian-page .administration-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 18px;
    border-left-width: 5px;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 10px 28px rgb(17 17 17 / 0.06);
}

.seminarian-page .administration-eyebrow {
    margin-bottom: 5px;
    font-size: 12px;
}

.seminarian-page .administration-hero h1 {
    font-size: clamp(30px, 3.1vw, 44px);
}

.seminarian-page .administration-hero p {
    margin-top: 9px;
    font-size: 15px;
    line-height: 1.5;
}

.seminarian-page .administration-year-card {
    min-height: 126px;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 24px rgb(0 97 67 / 0.16);
}

.seminarian-page .administration-year-card span,
.seminarian-page .administration-year-card small {
    font-size: 12px;
}

.seminarian-page .administration-year-card strong {
    margin-top: 6px;
    font-size: 28px;
}

.seminarian-page .administration-year-card small {
    margin-top: 8px;
}

.seminarian-theology-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.seminarian-theology-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    border: 1px solid rgb(201 153 59 / 0.44);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 8%, rgb(0 97 67 / 0.08), transparent 28%),
        linear-gradient(145deg, #fff, #fffaf2 72%, #f4efe6);
    color: #16120f;
    padding: 18px;
    box-shadow: 0 18px 42px rgb(17 17 17 / 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.seminarian-theology-card:hover {
    border-color: var(--final-green-dark);
    box-shadow: 0 22px 52px rgb(0 97 67 / 0.18);
    transform: translateY(-3px);
}

.seminarian-theology-photo {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 3px solid rgb(201 153 59 / 0.7);
    border-radius: 16px;
    background: #fff;
}

.seminarian-theology-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seminarian-theology-copy {
    display: grid;
    gap: 7px;
}

.seminarian-theology-copy small,
.seminarian-detail-head span {
    color: var(--final-green-dark);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.seminarian-theology-copy strong {
    color: var(--final-red-dark);
    font-size: 22px;
    font-weight: 950;
    line-height: 1.15;
}

.seminarian-theology-copy span {
    color: #2d2925;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
}

.seminarian-theology-copy em {
    color: #6d6258;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.seminarian-detail-panel {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.seminarian-back-link {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    border-radius: 999px;
    background: var(--final-green-dark);
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 950;
}

.seminarian-detail-head {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border: 1px solid rgb(201 153 59 / 0.45);
    border-left: 6px solid var(--final-red);
    border-radius: 22px;
    background:
        radial-gradient(circle at 86% 12%, rgb(201 153 59 / 0.16), transparent 24%),
        #fff;
    padding: 22px;
    box-shadow: 0 18px 44px rgb(17 17 17 / 0.08);
}

.seminarian-detail-saint {
    aspect-ratio: 1;
    overflow: hidden;
    border: 4px solid rgb(201 153 59 / 0.76);
    border-radius: 20px;
    background: #fffaf2;
}

.seminarian-detail-saint img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seminarian-detail-head h2 {
    margin: 7px 0 0;
    color: var(--final-red-dark);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
    line-height: 1.08;
}

.seminarian-detail-head p {
    margin: 12px 0 0;
    color: #221d18;
    font-size: 18px;
    font-weight: 850;
}

.seminarian-detail-head small {
    display: block;
    margin-top: 8px;
    color: #62574c;
    font-size: 14px;
    font-weight: 800;
}

.seminarian-table-wrap {
    overflow-x: auto;
    border: 1px solid rgb(0 97 67 / 0.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgb(17 17 17 / 0.07);
}

.seminarian-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.seminarian-table th,
.seminarian-table td {
    border-bottom: 1px solid rgb(0 97 67 / 0.11);
    padding: 15px 18px;
    text-align: left;
}

.seminarian-table th {
    background: #f3efe8;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.seminarian-table td {
    color: #27221d;
    font-size: 15px;
    font-weight: 750;
}

.seminarian-table td:first-child,
.seminarian-table th:first-child {
    width: 74px;
    text-align: center;
}

.seminarian-table tbody tr:last-child td {
    border-bottom: 0;
}

.welcome-mission-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
    gap: 34px;
    align-items: stretch;
}

.welcome-card {
    position: relative;
    grid-template-columns: 164px 1fr;
    gap: 28px;
    align-items: center;
    min-height: 220px;
    border: 1px solid rgb(0 97 67 / 0.1);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 18%, rgb(0 135 125 / 0.12), transparent 26%),
        linear-gradient(135deg, #ffffff, #f7fbf7);
    padding: 30px 34px;
    box-shadow: 0 18px 45px rgb(0 0 0 / 0.08);
}

.welcome-card::after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgb(157 36 31 / 0.08);
}

.welcome-card img {
    position: relative;
    z-index: 1;
    width: 142px;
    height: 142px;
    border: 8px solid #fff;
    border-radius: 999px;
    object-fit: cover;
    object-position: center top;
    background: #f3f7f4;
    padding: 0;
    box-shadow: 0 18px 38px rgb(0 0 0 / 0.16);
}

.welcome-card > div {
    position: relative;
    z-index: 1;
}

.eyebrow-title {
    color: #006143;
    font-size: 15px;
    letter-spacing: 0;
}

.welcome-card h2 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.1;
}

.welcome-card p {
    max-width: 660px;
    font-size: 16px;
    line-height: 1.7;
}

.read-more-link {
    margin-top: 20px;
    color: #006143;
    font-size: 14px;
}

.mission-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 15%, rgb(255 255 255 / 0.18), transparent 28%),
        linear-gradient(135deg, #006143, #003c2b);
    padding: 34px 38px;
    box-shadow: 0 20px 48px rgb(0 73 51 / 0.22);
}

.mission-card::before {
    content: '';
    position: absolute;
    right: -48px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border: 28px solid rgb(255 255 255 / 0.08);
    border-radius: 999px;
}

.mission-icon {
    width: 64px;
    height: 64px;
    background: rgb(255 255 255 / 0.16);
    color: #fff;
    font-size: 34px;
}

.mission-card h2 {
    font-size: 26px;
    line-height: 1.08;
}

.mission-card p {
    max-width: 520px;
    font-size: 16px;
}

.mission-card a {
    min-height: 46px;
    border-radius: 6px;
    background: linear-gradient(180deg, #d99b25, #bf7f18);
    padding-inline: 22px;
    box-shadow: 0 12px 24px rgb(0 0 0 / 0.18);
}

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

@media (max-width: 760px) {
    .main-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .menu-toggle {
        display: grid;
    }

    .primary-nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        padding-top: 8px;
        border-top: 1px solid rgb(17 17 17 / 0.08);
    }

    .main-header.is-menu-open .primary-nav {
        display: grid;
    }

    .welcome-card {
        min-height: 0;
        padding: 24px;
        text-align: center;
        justify-items: center;
    }

    .welcome-card img {
        width: 132px;
        height: 132px;
    }

    .welcome-card h2 {
        font-size: 21px;
    }

    .welcome-card p,
    .mission-card p {
        font-size: 14px;
    }

    .mission-card {
        padding: 28px;
    }

    .mission-card h2 {
        font-size: 22px;
    }
}

.latest-news-section {
    margin-top: 38px;
}

.latest-news-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.latest-news-head h2 {
    margin: 0;
    color: #111;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

.latest-news-head span {
    display: block;
    width: 62px;
    height: 4px;
    margin-top: 18px;
    background: #c9983b;
}

.latest-news-head > a {
    margin-top: 9px;
    color: #9a6b24;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

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

.latest-news-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e0ded9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgb(0 0 0 / 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.latest-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgb(0 0 0 / 0.12);
}

.latest-news-image {
    position: relative;
    display: block;
    height: 188px;
    overflow: hidden;
    background: #ddd;
}

.latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.latest-news-card:hover .latest-news-image img {
    transform: scale(1.04);
}

.latest-news-image span {
    position: absolute;
    left: 18px;
    bottom: -14px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 36px);
    border-radius: 6px;
    background: #071d38;
    padding: 0 15px;
    color: #d9ad5b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.18);
}

.latest-news-body {
    min-height: 158px;
    padding: 31px 22px 22px;
}

.latest-news-body h3 {
    margin: 0 0 22px;
    color: #171717;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.28;
}

.latest-news-body h3 a:hover {
    color: #9d241f;
}

.latest-news-body time {
    color: #767676;
    font-size: 16px;
    font-weight: 500;
}

.latest-news-empty {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px dashed #d8d0c7;
    border-radius: 12px;
    background: #fff;
    padding: 28px;
    color: #555;
    text-align: center;
}

.rector-home-section {
    display: block;
    margin-top: 34px;
}

.rector-welcome-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.9fr);
    gap: 34px;
    align-items: stretch;
}

.rector-home-section .rector-welcome-card {
    width: 100%;
    display: grid;
    grid-template-columns: 178px 1fr;
    gap: 26px;
    min-height: 206px;
    align-items: center;
    border: 1px solid rgb(0 97 67 / 0.08);
    border-radius: 9px;
    background:
        radial-gradient(circle at 10% 18%, rgb(0 135 125 / 0.08), transparent 26%),
        linear-gradient(135deg, #ffffff, #f8fbf8);
    padding: 16px 22px 16px 16px;
    box-shadow: 0 18px 46px rgb(0 0 0 / 0.08);
}

.rector-home-section .rector-welcome-card::after {
    display: none;
}

.rector-home-section .rector-welcome-card img {
    width: 164px;
    height: 164px;
    border: 1px solid rgb(201 153 59 / 0.35);
    border-radius: 999px;
    object-fit: cover;
    object-position: center top;
    background: #fff;
    box-shadow: none;
    filter: saturate(0.98) contrast(0.98);
}

.rector-home-section .eyebrow-title {
    color: #006143;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.rector-home-section .rector-welcome-card h2 {
    margin: 9px 0 10px;
    color: #111;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.12;
}

.rector-home-section .rector-theme {
    display: inline-flex;
    margin: 0 0 12px;
    border-left: 4px solid #d69a2d;
    padding-left: 10px;
    color: #006143;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.rector-home-section .rector-welcome-card p,
.rector-home-section .rector-cms {
    max-width: 760px;
    color: #1e1a18;
    font-size: 16px;
    line-height: 1.52;
}

.rector-home-section .read-more-link {
    display: inline-flex;
    margin-top: 12px;
    color: #006143;
    font-size: 15px;
    font-weight: 900;
}

.rector-home-section .rector-mission-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 206px;
    border-radius: 8px;
    padding: 30px 40px;
    background:
        radial-gradient(circle at 88% 16%, rgb(255 255 255 / 0.12), transparent 28%),
        linear-gradient(135deg, #08703d, #004d2d);
}

.rector-home-section .mission-icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
    color: #fff;
    font-size: 38px;
    line-height: 1;
}

.rector-home-section .mission-icon svg {
    width: 36px;
    height: 36px;
}

.rector-home-section .rector-mission-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
}

.rector-home-section .rector-mission-card p {
    max-width: 430px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.rector-home-section .rector-mission-card a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(180deg, #d8a43d, #c18117);
    padding: 0 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.rector-home-section .rector-mission-card button,
.mission-card button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #d8a43d, #c18117);
    padding: 0 24px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgb(0 0 0 / 0.18);
}

.rector-home-section .rector-mission-card button:hover,
.mission-card button:hover {
    background: linear-gradient(180deg, #e1ad4b, #aa6810);
}

.rector-word-article {
    color: #191411;
}

.rector-article-body {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 18px;
    padding-left: 18px;
    color: #211c18;
    font-size: 18px;
    line-height: 1.82;
}

.rector-article-body::after {
    content: "";
    display: block;
    clear: both;
}

.rector-inline-photo {
    float: left;
    width: min(340px, 42vw);
    margin: 4px 34px 20px 0;
}

.rector-inline-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 4px solid #d5a34e;
    border-radius: 14px;
    background: #fff;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 18px 42px rgb(45 35 20 / 0.18);
}

.donation-modal {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(780px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    margin: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    padding: 0;
    color: #20312a;
    overflow: visible;
    transform: translate(-50%, -50%);
}

.donation-modal::backdrop {
    background:
        linear-gradient(135deg, rgb(3 17 13 / 0.76), rgb(14 45 34 / 0.62)),
        rgb(3 17 13 / 0.72);
    backdrop-filter: blur(7px) saturate(0.92);
}

.donation-modal-card {
    position: relative;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    border: 1px solid rgb(201 153 59 / 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 8%, rgb(201 153 59 / 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fffdf7 62%, #f7f0e5 100%);
    padding: clamp(24px, 4vw, 38px);
    box-shadow:
        0 36px 90px rgb(0 0 0 / 0.38),
        0 8px 26px rgb(0 97 67 / 0.13);
}

.donation-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #edf4f0;
    color: #00442e;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.donation-modal-close:hover {
    background: #d9eadf;
    transform: rotate(90deg);
}

.donation-form {
    color: #26362f;
}

.donation-modal-eyebrow {
    margin: 0 0 4px;
    color: #b57f22;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.donation-form h2 {
    margin: 0 50px 18px 0;
    color: #003f2b;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.12;
}

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

.donation-form label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #26362f;
    font-size: 17px;
    font-weight: 900;
}

.donation-form sup {
    color: #a32020;
    font-size: 14px;
    line-height: 1;
}

.donation-form input,
.donation-form select,
.donation-form textarea {
    width: 100%;
    border: 1px solid #d1d8d4;
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
    color: #17231d;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

.donation-form textarea {
    min-height: 98px;
    resize: vertical;
}

.donation-form input::placeholder,
.donation-form textarea::placeholder {
    color: #7f8983;
    font-weight: 800;
}

.donation-form input:focus,
.donation-form select:focus,
.donation-form textarea:focus {
    border-color: #006143;
    box-shadow: 0 0 0 3px rgb(0 97 67 / 0.12);
}

.donation-form small {
    color: #a32020;
    font-size: 13px;
    font-weight: 700;
}

.donation-message-field,
.donation-submit-row,
.donation-form-success,
.donation-form-error {
    grid-column: 1 / -1;
}

.donation-form-success,
.donation-form-error {
    margin: 0 0 16px;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
}

.donation-form-success {
    background: #e9f7ef;
    color: #006143;
}

.donation-form-error {
    background: #fff0ef;
    color: #8f241f;
}

.donation-submit-row button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #006143, #007958);
    padding: 0 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 32px rgb(0 97 67 / 0.22);
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.donation-submit-row button:hover {
    background: linear-gradient(135deg, #004c35, #006143);
    box-shadow: 0 20px 38px rgb(0 97 67 / 0.28);
    transform: translateY(-2px);
}

.donation-submit-row button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.donation-modal[open] .donation-modal-card {
    animation: donationModalEnter 260ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes donationModalEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 760px) {
    .rector-article-body {
        font-size: 16px;
        line-height: 1.78;
    }

    .rector-inline-photo {
        float: none;
        width: min(100%, 320px);
        margin: 0 auto 24px;
    }

    .donation-modal-card {
        padding: 28px 20px 24px;
    }

    .donation-form h2 {
        margin-right: 44px;
        font-size: 25px;
    }

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

    .donation-form label {
        font-size: 15px;
    }

    .donation-form input,
    .donation-form select,
    .donation-form textarea,
    .donation-submit-row button {
        font-size: 15px;
    }

    .donation-submit-row button {
        width: 100%;
    }
}

.mass-intentions-page {
    padding-block: 26px 72px;
}

.mass-intentions-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.30);
    border-left: 7px solid var(--final-green);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 18%, rgb(0 151 139 / 0.16), transparent 30%),
        linear-gradient(135deg, #fff9ee 0%, #ffffff 56%, #eef9f4 100%);
    padding: clamp(22px, 4vw, 40px);
    box-shadow: 0 24px 64px rgb(33 25 19 / 0.11);
}

.mass-intentions-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.mass-intentions-hero h1 {
    max-width: 720px;
    margin: 7px 0 12px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 950;
    line-height: 1.04;
}

.mass-intentions-hero span {
    display: block;
    max-width: 720px;
    color: #302a24;
    font-size: clamp(15px, 1.65vw, 17px);
    line-height: 1.65;
}

.mass-intentions-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 24px;
    align-items: start;
    margin-top: 28px;
}

.mass-intention-info-card,
.mass-intention-form-card,
.mass-intentions-list-card {
    border: 1px solid rgb(213 163 78 / 0.24);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 52px rgb(33 25 19 / 0.10);
}

.mass-intention-info-card {
    padding: clamp(22px, 3vw, 34px);
}

.mass-intention-info-card h2,
.mass-intentions-list-card h2 {
    margin: 0 0 14px;
    color: var(--final-green-dark);
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 950;
    line-height: 1.15;
}

.mass-intention-info-card p {
    margin: 0 0 18px;
    color: #3c332b;
    font-size: 16px;
    line-height: 1.75;
}

.mass-intention-steps {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
}

.mass-intention-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    border: 1px solid rgb(0 97 67 / 0.10);
    border-radius: 14px;
    background: #fffaf2;
    padding: 14px;
}

.mass-intention-step strong {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: var(--final-green);
    color: #fff;
    font-size: 18px;
}

.mass-intention-step span {
    color: #2b241f;
    font-size: 15px;
    line-height: 1.55;
}

.mass-intention-form-card {
    padding: clamp(22px, 3vw, 34px);
}

.mass-intentions-list-card {
    margin-top: 28px;
    padding: clamp(22px, 3vw, 34px);
}

.mass-intentions-list-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.mass-intentions-list-head p {
    max-width: 720px;
    margin: 0;
    color: #4a4038;
    font-size: 15px;
    line-height: 1.65;
}

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

.mass-intention-card {
    display: grid;
    gap: 14px;
    border: 1px solid rgb(213 163 78 / 0.23);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgb(213 163 78 / 0.10), transparent 34%),
        #fffdf8;
    padding: 18px;
}

.mass-intention-card h3 {
    margin: 0;
    color: var(--final-red-dark);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.25;
}

.mass-intention-card p {
    margin: 0;
    color: #1d1713;
    line-height: 1.7;
}

.mass-intention-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mass-intention-meta span {
    border-radius: 999px;
    background: #f3eadc;
    padding: 7px 10px;
    color: #312820;
    font-size: 12px;
    font-weight: 900;
}

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

.mass-intention-detail-grid div {
    border: 1px solid rgb(0 97 67 / 0.09);
    border-radius: 12px;
    background: #fff;
    padding: 11px;
}

.mass-intention-detail-grid dt {
    color: #716552;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.mass-intention-detail-grid dd {
    margin: 4px 0 0;
    color: #071f19;
    font-size: 14px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.mass-intentions-empty {
    border: 1px dashed rgb(213 163 78 / 0.44);
    border-radius: 16px;
    background: #fffaf2;
    padding: 24px;
    color: #4a4038;
    font-weight: 850;
    text-align: center;
}

.mass-intentions-pagination {
    margin-top: 20px;
}

@media (max-width: 980px) {
    .mass-intentions-layout,
    .mass-intentions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .mass-intentions-list-head {
        display: block;
    }

    .mass-intention-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rector-welcome-layout {
        grid-template-columns: 1fr;
    }

    .rector-home-section .rector-welcome-card {
        grid-template-columns: 160px 1fr;
    }
}

@media (max-width: 760px) {
    .latest-news-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .latest-news-head h2 {
        font-size: 27px;
    }

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

    .latest-news-image {
        height: 205px;
    }

    .rector-home-section .rector-welcome-card {
        grid-template-columns: 1fr;
        padding: 20px;
        text-align: left;
        justify-items: start;
    }

    .rector-home-section .rector-welcome-card img {
        width: 144px;
        height: 144px;
    }

    .rector-home-section .eyebrow-title {
        font-size: 17px;
    }

    .rector-home-section .rector-welcome-card h2 {
        font-size: 20px;
    }

    .rector-home-section .rector-welcome-card p,
    .rector-home-section .rector-cms {
        font-size: 15px;
        line-height: 1.7;
    }

    .rector-home-section .rector-mission-card {
        grid-template-columns: 1fr;
        padding: 26px;
    }
}

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

.review-empty {
    grid-column: 1 / -1;
    border: 1px dashed #d8d0c7;
    border-radius: 16px;
    background: #fff;
    padding: 34px;
    text-align: center;
    box-shadow: 0 14px 34px rgb(0 0 0 / 0.05);
}

.review-empty h3 {
    margin: 0 0 10px;
    color: #004d38;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.review-empty p {
    max-width: 680px;
    margin: 0 auto 18px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.review-empty a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #006143;
    padding: 0 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.latest-images-empty {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px dashed #d8d0c7;
    border-radius: 10px;
    background: #fff;
    padding: 22px;
    color: #4b4038;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

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

@media (max-width: 760px) {
    .main-header {
        box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
    }

    .main-header-inner {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding-block: 10px;
    }

    .menu-toggle {
        position: relative;
        z-index: 3;
        display: flex;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgb(0 97 67 / 0.22);
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff, #fff8ec);
        box-shadow: 0 12px 24px rgb(0 0 0 / 0.12);
        transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        margin: 0;
        background: #006143;
        transition: transform 180ms ease, opacity 160ms ease, background 180ms ease;
    }

    .menu-toggle span + span {
        margin-top: 0;
    }

    .main-header.is-menu-open .menu-toggle {
        background: linear-gradient(180deg, #9d241f, #7f1c18);
        box-shadow: 0 14px 28px rgb(127 28 24 / 0.28);
    }

    .main-header.is-menu-open .menu-toggle span {
        background: #fff;
    }

    .main-header.is-menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .main-header.is-menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.3);
    }

    .main-header.is-menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .primary-nav {
        grid-column: 1 / -1;
        display: grid;
        max-height: 0;
        grid-template-columns: 1fr;
        gap: 10px;
        overflow: hidden;
        margin-top: 0;
        border: 1px solid transparent;
        border-radius: 18px;
        background:
            radial-gradient(circle at 92% 8%, rgb(213 163 78 / 0.18), transparent 24%),
            linear-gradient(145deg, #006143, #003d2d);
        box-shadow: none;
        opacity: 0;
        padding: 0 14px;
        pointer-events: none;
        transform: translateY(-8px);
        transition: max-height 260ms ease, opacity 180ms ease, transform 220ms ease, padding 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    }

    .main-header.is-menu-open .primary-nav {
        max-height: calc(100vh - 122px);
        overflow-y: auto;
        margin-top: 4px;
        border-color: rgb(213 163 78 / 0.38);
        box-shadow: 0 22px 44px rgb(0 61 45 / 0.26);
        opacity: 1;
        padding: 16px 14px;
        pointer-events: auto;
        transform: translateY(0);
    }

    .primary-nav::-webkit-scrollbar {
        width: 6px;
    }

    .primary-nav::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgb(255 255 255 / 0.34);
    }

    .primary-menu {
        display: block;
    }

    .primary-nav > .primary-link,
    .primary-menu > .primary-link {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid rgb(255 255 255 / 0.16);
        border-left: 4px solid #d5a34e;
        border-radius: 12px;
        background: rgb(255 255 255 / 0.95);
        color: #111;
        padding: 0 14px;
        font-size: 15px;
        font-weight: 900;
        text-transform: uppercase;
        white-space: normal;
        box-shadow: 0 10px 22px rgb(0 0 0 / 0.10);
    }

    .primary-nav > .primary-link.is-active,
    .primary-nav > .primary-link:hover,
    .primary-menu > .primary-link:hover,
    .primary-menu:focus-within > .primary-link {
        border-left-color: #9d241f;
        background: #fff8ec;
        color: #7f1c18;
    }

    .primary-menu > .primary-link span {
        display: inline-grid;
        width: 24px;
        height: 24px;
        place-items: center;
        border-radius: 999px;
        background: rgb(0 97 67 / 0.10);
        color: #006143;
        font-size: 13px;
        line-height: 1;
    }

    .dropdown-panel {
        position: static;
        display: grid;
        min-width: 0;
        width: 100%;
        visibility: visible;
        grid-template-columns: 1fr;
        gap: 7px;
        margin: 8px 0 2px;
        border: 1px solid rgb(255 255 255 / 0.16);
        border-radius: 14px;
        background: rgb(0 0 0 / 0.14);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.10);
        opacity: 1;
        padding: 8px;
        transform: none;
    }

    .dropdown-panel a {
        display: flex;
        min-height: 40px;
        align-items: center;
        justify-content: flex-start;
        border-radius: 10px;
        background: rgb(255 255 255 / 0.10);
        color: #fff;
        padding: 9px 12px;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.25;
        text-align: left;
    }

    .dropdown-panel a::before {
        content: "";
        width: 7px;
        height: 7px;
        flex: 0 0 auto;
        margin-right: 10px;
        border-radius: 999px;
        background: #d5a34e;
    }

    .dropdown-panel a:hover,
    .dropdown-panel a:focus {
        background: rgb(255 255 255 / 0.18);
        color: #fff8ec;
    }

    .dropdown-submenu {
        border-radius: 12px;
        background: rgb(255 255 255 / 0.08);
    }

    .dropdown-submenu-toggle {
        min-height: 40px;
        border-radius: 10px;
        color: #fff;
        font-size: 14px;
        font-weight: 900;
        padding: 9px 12px;
        text-transform: none;
    }

    .dropdown-submenu-toggle::before {
        content: "";
        width: 7px;
        height: 7px;
        flex: 0 0 auto;
        margin-right: 10px;
        border-radius: 999px;
        background: #d5a34e;
    }

    .dropdown-submenu-toggle span {
        margin-left: auto;
    }

    .dropdown-submenu-toggle:hover,
    .dropdown-submenu-toggle:focus {
        background: rgb(255 255 255 / 0.18);
        color: #fff8ec;
    }

    .dropdown-submenu-panel {
        position: static;
        display: grid;
        max-height: 0;
        min-width: 0;
        visibility: visible;
        overflow: hidden;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        padding: 0 8px;
        transform: none;
        transition: max-height 220ms ease, padding 180ms ease;
    }

    .dropdown-submenu:hover > .dropdown-submenu-panel,
    .dropdown-submenu:focus-within > .dropdown-submenu-panel {
        max-height: 0;
        padding-block: 0;
    }

    .dropdown-submenu.is-open > .dropdown-submenu-panel {
        max-height: 260px;
        padding-block: 6px 8px;
    }

    .dropdown-submenu.is-open > .dropdown-submenu-toggle span {
        transform: rotate(180deg);
    }

    .dropdown-submenu-panel a {
        min-height: 38px;
        margin-left: 14px;
        border-left: 3px solid #d5a34e;
        background: rgb(255 255 255 / 0.12);
        padding-left: 13px;
    }
}

.rector-home-section {
    width: min(100% - 48px, 1500px);
    margin-top: 52px;
}

.rector-feature {
    position: relative;
    overflow: hidden;
    border: 2px solid rgb(201 153 59 / 0.8);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgb(255 255 255 / 0.96) 0%, rgb(255 255 255 / 0.92) 56%, rgb(255 248 236 / 0.72) 100%),
        radial-gradient(circle at 70% 26%, rgb(201 153 59 / 0.12), transparent 30%),
        #fffaf4;
    padding: clamp(34px, 4vw, 62px);
    box-shadow: 0 22px 64px rgb(43 29 13 / 0.12);
}

.rector-feature::before {
    content: "";
    position: absolute;
    right: 205px;
    top: 205px;
    width: 340px;
    height: 250px;
    background: url("/images/stgall/seminaire-historique.jpg") center / cover no-repeat;
    opacity: 0.045;
    filter: sepia(0.8) saturate(0.4);
}

.rector-soft-figure {
    position: absolute;
    right: -18px;
    top: 62px;
    width: min(26vw, 360px);
    height: min(42vw, 560px);
    opacity: 0.18;
    pointer-events: none;
}

.rector-soft-figure::before,
.rector-soft-figure::after {
    content: "";
    position: absolute;
    border-radius: 48% 52% 42% 58%;
    background: linear-gradient(135deg, rgb(201 153 59 / 0.18), rgb(126 31 28 / 0.04));
}

.rector-soft-figure::before {
    inset: 0 28% 0 8%;
    transform: rotate(11deg);
}

.rector-soft-figure::after {
    right: 0;
    top: 12%;
    width: 62%;
    height: 42%;
    border: 2px solid rgb(201 153 59 / 0.35);
    background: transparent;
    transform: rotate(-18deg);
}

.rector-dot-pattern {
    position: absolute;
    left: 34px;
    top: 114px;
    width: 36px;
    height: 72px;
    opacity: 0.78;
    background-image: radial-gradient(circle, #d9a448 1.6px, transparent 1.8px);
    background-size: 12px 12px;
}

.rector-feature-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(310px, 43%) minmax(0, 1fr);
    gap: clamp(42px, 5vw, 78px);
    align-items: center;
}

.rector-photo-frame {
    position: relative;
    max-width: 560px;
    margin-inline: auto;
    border: 3px solid #d9a448;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff4e5, #f6eee2);
    box-shadow:
        10px 12px 0 #7f1c18,
        0 24px 46px rgb(34 18 8 / 0.16);
}

.rector-photo-frame > img {
    display: block;
    width: 100%;
    aspect-ratio: 1.05;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    object-position: center top;
    filter: saturate(1.02) contrast(0.98);
}

.rector-message {
    position: relative;
    max-width: 760px;
    padding-right: min(10vw, 120px);
}

.rector-kicker {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    color: #ad792d;
}

.rector-kicker-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 3px solid #d5a34e;
    border-radius: 999px;
    color: #c9983b;
    font-size: 30px;
    line-height: 1;
}

.rector-kicker p {
    margin: 0;
    color: #ad792d;
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rector-kicker span:last-child {
    display: block;
    width: 154px;
    height: 4px;
    margin-top: 16px;
    background: linear-gradient(90deg, #d9a448 0 78%, transparent 78% 100%);
}

.rector-kicker span:last-child::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin-left: 132px;
    transform: translateY(-3px);
    border-radius: 999px;
    background: #d9a448;
}

.rector-message h2 {
    margin: 0 0 22px;
    color: #81241f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.1vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.rector-quote-mark {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(100%, 260px);
    margin-bottom: 16px;
    color: #d4a04a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 0.5;
}

.rector-quote-mark::after {
    content: "";
    flex: 1;
    height: 3px;
    background: #d9a448;
}

.rector-message-text,
.rector-message-text p,
.rector-message-text .rector-cms,
.rector-message-text .rector-cms p {
    color: #1c1917;
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.68;
}

.rector-message-text p,
.rector-message-text .rector-cms p {
    margin: 0 0 7px;
}

.rector-signature {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.rector-signature > span {
    color: #245aa9;
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(28px, 3vw, 46px);
    font-style: italic;
    line-height: 1;
    transform: rotate(-8deg);
}

.rector-signature strong {
    display: block;
    color: #7f1c18;
    font-size: 17px;
    font-weight: 900;
}

.rector-signature p {
    margin: 6px 0 0;
    color: #68615c;
    font-size: 16px;
}

.rector-spotlight {
    position: relative;
    overflow: hidden;
    border: 2px solid rgb(213 163 78 / 0.72);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgb(255 255 255 / 0.98) 0%, rgb(255 255 255 / 0.94) 58%, rgb(255 250 240 / 0.84) 100%),
        #fffaf4;
    padding: clamp(30px, 4vw, 60px);
    box-shadow: 0 24px 70px rgb(41 31 18 / 0.12);
}

.rector-spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/stgall/seminaire-historique.jpg") right center / auto 112% no-repeat;
    opacity: 0.055;
    filter: sepia(0.7) saturate(0.45);
    pointer-events: none;
}

.rector-spotlight-pattern {
    position: absolute;
    left: 34px;
    top: 86px;
    width: 42px;
    height: 92px;
    opacity: 0.72;
    background-image: radial-gradient(circle, #d5a34e 1.6px, transparent 1.9px);
    background-size: 12px 12px;
}

.rector-spotlight-bg {
    position: absolute;
    right: -8%;
    bottom: -12%;
    width: 44%;
    height: 82%;
    background: linear-gradient(135deg, transparent 20%, rgb(213 163 78 / 0.08));
    transform: skewX(-9deg);
    pointer-events: none;
}

.rector-spotlight-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 470px) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 78px);
    align-items: center;
}

.rector-portrait-card {
    position: relative;
    overflow: hidden;
    border: 3px solid #d5a34e;
    border-radius: 22px;
    background: #fff8ec;
    box-shadow:
        10px 12px 0 #7e1f1c,
        0 28px 56px rgb(38 22 12 / 0.17);
}

.rector-portrait-card img {
    display: block;
    width: 100%;
    aspect-ratio: 0.92;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.98) contrast(0.98);
}

.rector-spotlight-content {
    max-width: 810px;
}

.rector-spotlight-kicker {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    color: #ad792d;
}

.rector-spotlight-kicker > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid #d5a34e;
    border-radius: 999px;
    color: #c9983b;
    font-size: 27px;
    line-height: 1;
}

.rector-spotlight-kicker p {
    margin: 0;
    color: #ad792d;
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.rector-spotlight-kicker i {
    position: relative;
    display: block;
    width: 132px;
    height: 3px;
    margin-top: 13px;
    background: #d5a34e;
}

.rector-spotlight-kicker i::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d5a34e;
}

.rector-spotlight-content h2 {
    margin: 0 0 18px;
    color: #81241f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 2.55vw, 40px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.rector-spotlight-quote {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(100%, 235px);
    margin-bottom: 12px;
    color: #d5a34e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 0.55;
}

.rector-spotlight-quote::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #d5a34e;
}

.rector-spotlight-text,
.rector-spotlight-text p,
.rector-spotlight-text .rector-cms,
.rector-spotlight-text .rector-cms p {
    color: #171717;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.72;
}

.rector-spotlight-text p,
.rector-spotlight-text .rector-cms p {
    margin: 0 0 8px;
}

.rector-spotlight-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 28px;
}

.rector-spotlight-signature strong {
    display: block;
    color: #7f1c18;
    font-size: 17px;
    font-weight: 900;
}

.rector-spotlight-signature p {
    margin: 5px 0 0;
    color: #5d5751;
    font-size: 15px;
}

.rector-spotlight-signature a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ad2b26, #7f1c18);
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgb(126 31 28 / 0.22);
}

@media (max-width: 1180px) {
    .rector-feature-main {
        grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
        gap: 38px;
    }

    .rector-message {
        padding-right: 0;
    }

    .rector-spotlight-inner {
        grid-template-columns: minmax(270px, 380px) minmax(0, 1fr);
        gap: 34px;
    }

}

@media (max-width: 860px) {
    .rector-home-section {
        width: min(100% - 28px, 1500px);
        margin-top: 34px;
    }

    .rector-feature {
        padding: 28px;
    }

    .rector-feature-main {
        grid-template-columns: 1fr;
    }

    .rector-photo-frame {
        width: min(100%, 420px);
    }

    .rector-message {
        margin-top: 34px;
    }

    .rector-spotlight {
        padding: 28px;
    }

    .rector-spotlight-inner {
        grid-template-columns: 1fr;
    }

    .rector-portrait-card {
        width: min(100%, 430px);
        margin-inline: auto;
    }

    .rector-spotlight-content {
        max-width: none;
    }

    .rector-spotlight-bg,
    .rector-spotlight-pattern {
        display: none;
    }
}

@media (max-width: 560px) {
    .rector-feature {
        border-radius: 16px;
        padding: 22px;
    }

    .rector-dot-pattern,
    .rector-soft-figure,
    .rector-feature::before {
        display: none;
    }

    .rector-photo-frame {
        box-shadow:
            7px 9px 0 #7f1c18,
            0 18px 34px rgb(34 18 8 / 0.14);
    }

    .rector-kicker {
        gap: 14px;
        margin-bottom: 22px;
    }

    .rector-kicker-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .rector-message h2 {
        font-size: 30px;
    }

    .rector-signature {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .rector-spotlight {
        border-radius: 17px;
        padding: 22px;
    }

    .rector-spotlight::before {
        opacity: 0.035;
        background-size: cover;
    }

    .rector-portrait-card {
        border-radius: 18px;
        box-shadow:
            7px 9px 0 #7e1f1c,
            0 18px 34px rgb(38 22 12 / 0.14);
    }

    .rector-spotlight-kicker {
        align-items: flex-start;
        gap: 13px;
    }

    .rector-spotlight-kicker > span {
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .rector-spotlight-kicker i {
        width: 96px;
    }

    .rector-spotlight-content h2 {
        font-size: 29px;
    }

    .rector-spotlight-signature {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 1180px) {
    .administration-people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .administration-hero {
        grid-template-columns: 1fr;
    }

    .administration-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .administration-section-heading p {
        max-width: none;
    }

    .seminarian-detail-head {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .seminarian-page .administration-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .administration-page {
        padding-block: 34px 52px;
    }

    .administration-people-grid {
        grid-template-columns: 1fr;
    }

    .administration-person-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .administration-person-photo {
        width: 96px;
        height: 118px;
        border-radius: 13px;
    }

    .administration-year-card {
        padding: 22px;
    }

    .administration-year-card strong {
        font-size: 28px;
    }

    .seminarian-theology-grid {
        grid-template-columns: 1fr;
    }

    .seminarian-detail-head {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .seminarian-detail-saint {
        max-width: 190px;
    }

    .seminarian-page {
        padding-block: 22px 46px;
    }

    .seminarian-page .administration-hero {
        padding: 16px;
    }

    .seminarian-page .administration-year-card {
        min-height: auto;
        padding: 16px;
    }
}

.site-card,
.front-card,
.publication-card,
.welcome-card,
.latest-news-card,
.administration-person-card,
.administration-year-card,
.seminarian-theology-card,
.review-empty,
.gallery-image-card {
    border-radius: 18px;
    border-color: rgb(201 153 59 / 0.22);
    box-shadow:
        0 18px 42px rgb(17 17 17 / 0.11),
        0 4px 14px rgb(0 97 67 / 0.05);
}

.mission-card {
    border-radius: 18px;
    box-shadow:
        0 22px 52px rgb(0 73 51 / 0.24),
        0 4px 16px rgb(17 17 17 / 0.12);
}

.site-card:hover,
.site-card:focus-within,
.front-card:hover,
.front-card:focus-within,
.publication-card:hover,
.publication-card:focus-within,
.welcome-card:hover,
.welcome-card:focus-within,
.latest-news-card:hover,
.latest-news-card:focus-within,
.administration-person-card:hover,
.administration-person-card:focus-within,
.administration-year-card:hover,
.administration-year-card:focus-within,
.seminarian-theology-card:hover,
.seminarian-theology-card:focus-within,
.review-empty:hover,
.review-empty:focus-within,
.gallery-image-card:hover,
.gallery-image-card:focus-within {
    border-color: rgb(201 153 59 / 0.62);
    box-shadow:
        0 30px 74px rgb(17 17 17 / 0.18),
        0 10px 24px rgb(0 97 67 / 0.10);
}

.mission-card:hover,
.mission-card:focus-within {
    box-shadow:
        0 32px 76px rgb(0 73 51 / 0.30),
        0 10px 26px rgb(17 17 17 / 0.15);
}

@keyframes rectorPageReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rectorPhotoReveal {
    from {
        opacity: 0;
        transform: translateX(-28px) scale(0.96) rotate(-1.5deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0);
    }
}

@keyframes rectorPhotoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.rector-word-article > p,
.rector-word-article > h1 {
    animation: rectorPageReveal 520ms ease both;
}

.rector-word-article > h1 {
    animation-delay: 80ms;
}

.rector-article-body {
    animation: rectorPageReveal 680ms ease 150ms both;
}

.rector-inline-photo {
    animation:
        rectorPhotoReveal 720ms cubic-bezier(.22, 1, .36, 1) 180ms both,
        rectorPhotoFloat 5.8s ease-in-out 1.1s infinite;
}

.rector-inline-photo img {
    transform-origin: center;
    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        filter 280ms ease,
        border-color 280ms ease;
}

.rector-inline-photo:hover {
    animation-play-state: paused;
}

.rector-inline-photo:hover img,
.rector-inline-photo:focus-within img {
    border-color: #e3b65f;
    filter: saturate(1.06) contrast(1.04);
    transform: scale(1.035) rotate(0.6deg);
    box-shadow:
        0 26px 60px rgb(45 35 20 / 0.24),
        0 8px 20px rgb(0 97 67 / 0.10);
}

.rector-article-body p {
    animation: rectorPageReveal 560ms ease both;
}

.rector-article-body p:nth-of-type(1) {
    animation-delay: 220ms;
}

.rector-article-body p:nth-of-type(2) {
    animation-delay: 300ms;
}

.rector-article-body p:nth-of-type(3) {
    animation-delay: 380ms;
}

@media (prefers-reduced-motion: reduce) {
    .rector-word-article > p,
    .rector-word-article > h1,
    .rector-article-body,
    .rector-inline-photo,
    .rector-article-body p {
        animation: none;
    }

    .rector-inline-photo:hover img,
    .rector-inline-photo:focus-within img {
        transform: none;
    }
}

@keyframes sitePageFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes siteHeaderDrop {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes siteCarouselZoom {
    from {
        opacity: 0;
        transform: scale(1.035);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.site-body {
    animation: sitePageFade 420ms ease both;
}

.site-header {
    animation: siteHeaderDrop 520ms cubic-bezier(.22, 1, .36, 1) both;
}

.hero-carousel {
    animation: siteCarouselZoom 780ms ease both;
    overflow: hidden;
}

.site-reveal {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(24px);
    transition:
        opacity 680ms ease,
        filter 680ms ease,
        transform 680ms cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--site-reveal-delay, 0ms);
    will-change: opacity, filter, transform;
}

.site-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.site-reveal-from-left {
    transform: translateX(-30px);
}

.site-reveal-from-right {
    transform: translateX(30px);
}

.site-reveal-scale {
    transform: translateY(18px) scale(0.975);
}

.site-reveal.is-visible.site-reveal-from-left,
.site-reveal.is-visible.site-reveal-from-right,
.site-reveal.is-visible.site-reveal-scale {
    transform: translate(0, 0) scale(1);
}

.hero-carousel .carousel-label,
.hero-carousel .carousel-content h1,
.hero-carousel .carousel-content p,
.hero-carousel .carousel-donate {
    opacity: 0;
    transform: translateX(-24px);
    animation: siteHeaderDrop 680ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-carousel .carousel-label {
    animation-delay: 240ms;
}

.hero-carousel .carousel-content h1 {
    animation-delay: 340ms;
}

.hero-carousel .carousel-content p {
    animation-delay: 440ms;
}

.hero-carousel .carousel-donate {
    animation-delay: 540ms;
}

.front-heading,
.latest-news-head,
.heading-cross {
    transition:
        transform 240ms ease,
        color 240ms ease,
        text-shadow 240ms ease;
}

.front-section:hover .front-heading,
.front-section:focus-within .front-heading,
.front-section:hover .latest-news-head h2,
.front-section:focus-within .latest-news-head h2 {
    color: #8f211d;
    text-shadow: 0 8px 22px rgb(143 33 29 / 0.10);
}

.front-section:hover .heading-cross,
.front-section:focus-within .heading-cross {
    transform: translateY(-2px) scale(1.12);
}

.latest-image-row a {
    transition:
        transform 240ms ease,
        box-shadow 240ms ease,
        filter 240ms ease;
}

.latest-image-row a:hover,
.latest-image-row a:focus-visible {
    filter: saturate(1.08) contrast(1.03);
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 20px 42px rgb(17 17 17 / 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .site-body,
    .site-header,
    .hero-carousel,
    .hero-carousel .carousel-label,
    .hero-carousel .carousel-content h1,
    .hero-carousel .carousel-content p,
    .hero-carousel .carousel-donate {
        animation: none;
    }

    .site-reveal,
    .site-reveal-from-left,
    .site-reveal-from-right,
    .site-reveal-scale {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

    .front-heading,
    .latest-news-head,
    .heading-cross,
    .latest-image-row a,
    .donation-modal-close,
    .donation-submit-row button {
        transition: none;
    }

    .donation-modal[open] .donation-modal-card {
        animation: none;
    }
}

.section-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.section-media-gallery a {
    display: block;
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.34);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgb(28 24 20 / 0.10);
    transition:
        box-shadow 220ms ease,
        transform 220ms ease,
        filter 220ms ease;
}

.section-media-gallery a:hover,
.section-media-gallery a:focus-visible {
    filter: saturate(1.06) contrast(1.03);
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgb(28 24 20 / 0.16);
}

.section-media-gallery img {
    display: block;
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-document-list {
    margin-top: 34px;
    border: 1px solid rgb(0 112 88 / 0.16);
    border-radius: 16px;
    background: linear-gradient(135deg, #fffdf8, #f6fbf7);
    padding: 22px;
    box-shadow: 0 18px 42px rgb(31 22 14 / 0.08);
}

.section-document-list h2 {
    margin: 0 0 14px;
    color: #004934;
    font-size: 18px;
    font-weight: 900;
}

.section-document-list > div {
    display: grid;
    gap: 10px;
}

.section-document-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgb(213 163 78 / 0.25);
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    color: #006f4f;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.section-document-list a:hover,
.section-document-list a:focus-visible {
    border-color: #d5a34e;
    color: #8f241f;
    transform: translateX(3px);
}

.section-document-list a span {
    min-width: 0;
    overflow: hidden;
    color: #6b6259;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .section-document-list a {
        display: block;
    }

    .section-document-list a span {
        display: block;
        margin-top: 4px;
    }
}

.articles-page,
.article-detail-page {
    padding-block: 42px 72px;
}

.articles-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 28px;
    border-left: 6px solid var(--final-green);
    border-radius: 16px;
    background:
        linear-gradient(105deg, rgb(255 250 241 / 0.98) 0%, rgb(255 255 255 / 0.92) 56%, rgb(176 218 247 / 0.24) 100%);
    padding: clamp(18px, 3vw, 34px);
    box-shadow: 0 18px 42px rgb(26 20 14 / 0.09);
}

.articles-hero p,
.article-detail-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.articles-hero h1 {
    margin: 6px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 900;
    line-height: 1;
}

.article-detail-hero h1 {
    margin: 6px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 900;
    line-height: 0.98;
}

.articles-hero > div > span,
.article-detail-hero::after {
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--final-gold);
}

.articles-hero strong {
    display: block;
    max-width: 760px;
    margin-top: 16px;
    color: #1e2721;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.65;
}

.articles-year-card {
    display: flex;
    min-height: 124px;
    flex-direction: column;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--final-green), var(--final-green-dark));
    padding: 20px;
    color: #fff;
    box-shadow: 0 14px 32px rgb(0 112 88 / 0.18);
}

.articles-year-card span,
.articles-year-card small {
    color: rgb(255 255 255 / 0.84);
    font-size: 11.5px;
    font-weight: 700;
}

.articles-year-card strong {
    margin-top: 7px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    line-height: 1;
}

.articles-year-card small {
    margin-top: 10px;
    line-height: 1.45;
}

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

.article-card {
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.24);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgb(33 25 19 / 0.10);
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.article-card:hover,
.article-card:focus-within {
    border-color: rgb(143 36 31 / 0.36);
    transform: translateY(-7px);
    box-shadow: 0 26px 58px rgb(33 25 19 / 0.16);
}

.article-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #efe8dd;
}

.article-card-media img {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease, filter 450ms ease;
}

.article-card:hover .article-card-media img,
.article-card:focus-within .article-card-media img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.045);
}

.article-card-media span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    max-width: calc(100% - 32px);
    border-radius: 7px;
    background: #05233b;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.22);
}

.article-card-body {
    padding: 22px;
}

.article-card-body time,
.article-detail-meta {
    color: #6f675f;
    font-size: 14px;
    font-weight: 700;
}

.article-card-body h2 {
    margin: 12px 0 0;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.28;
}

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

.article-card-body h2 a:hover,
.article-card-body h2 a:focus-visible {
    color: var(--final-red-dark);
}

.article-card-body p {
    margin: 13px 0 0;
    color: #3d3834;
    font-size: 15px;
    line-height: 1.7;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: var(--final-green-dark);
    font-weight: 950;
    text-decoration: none;
}

.article-card-link:hover,
.article-card-link:focus-visible {
    color: var(--final-red-dark);
}

.articles-empty {
    border: 1px dashed rgb(0 112 88 / 0.28);
    border-radius: 16px;
    background: #fff;
    padding: 34px;
    text-align: center;
    box-shadow: 0 16px 38px rgb(31 22 14 / 0.08);
}

.articles-empty p {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 900;
}

.articles-empty small {
    display: block;
    margin-top: 8px;
    color: #6f675f;
    font-weight: 700;
}

.articles-pagination {
    margin-top: 34px;
}

.article-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--final-red-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.article-breadcrumb a:hover,
.article-breadcrumb a:focus-visible {
    color: var(--final-green-dark);
}

.article-detail-hero {
    margin-bottom: 28px;
    border-bottom: 1px solid rgb(213 163 78 / 0.34);
    padding-bottom: 24px;
}

.article-detail-hero h1 {
    max-width: 1040px;
    font-size: clamp(23px, 2.9vw, 34px);
    line-height: 1.06;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.article-detail-meta span,
.article-detail-meta time {
    border: 1px solid rgb(213 163 78 / 0.22);
    border-radius: 999px;
    background: #fff;
    padding: 7px 11px;
}

.article-detail-hero strong {
    display: block;
    max-width: 920px;
    margin-top: 20px;
    color: #2b2723;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
}

.article-detail-content {
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.20);
    border-radius: 18px;
    background: #fffaf1;
    padding: clamp(22px, 4vw, 42px);
    box-shadow: 0 20px 50px rgb(33 25 19 / 0.10);
}

.article-detail-cover {
    float: left;
    width: min(390px, 42vw);
    margin: 0 34px 18px 0;
    overflow: hidden;
    border: 4px solid rgb(213 163 78 / 0.72);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 50px rgb(33 25 19 / 0.18);
}

.article-detail-cover img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease, filter 450ms ease;
}

.article-detail-content:hover .article-detail-cover img {
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.035);
}

.article-detail-body {
    color: #1d1815;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.article-detail-body p,
.article-detail-body ul,
.article-detail-body ol,
.article-detail-body blockquote {
    margin-top: 0;
    margin-bottom: 20px;
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 {
    clear: both;
    margin: 34px 0 14px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
}

.article-detail-body a {
    color: var(--final-green-dark);
    font-weight: 900;
}

.article-detail-body img {
    border-radius: 14px;
    box-shadow: 0 16px 36px rgb(33 25 19 / 0.12);
}

@media (max-width: 960px) {
    .articles-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .articles-page,
    .article-detail-page {
        padding-block: 26px 48px;
    }

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

    .articles-hero {
        border-left-width: 5px;
        padding: 22px;
    }

    .article-detail-cover {
        float: none;
        width: 100%;
        margin: 0 0 22px;
    }

    .article-detail-content {
        padding: 20px;
    }

    .article-detail-body {
        font-size: 16px;
        line-height: 1.8;
    }
}

.publications-page {
    padding-block: 42px 72px;
}

.publications-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
    border-left: 5px solid var(--final-red);
    border-radius: 14px;
    background:
        linear-gradient(105deg, rgb(255 250 241 / 0.98) 0%, rgb(255 255 255 / 0.94) 58%, rgb(0 135 125 / 0.13) 100%);
    padding: clamp(16px, 2.2vw, 24px);
    box-shadow: 0 10px 26px rgb(26 20 14 / 0.07);
}

.publications-page:not(.academic-publication-page) .publications-hero {
    grid-template-columns: 1fr;
}

.publications-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.publications-hero h1 {
    margin: 4px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.9vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.publications-hero > div > span {
    display: block;
    width: 52px;
    height: 2px;
    margin-top: 11px;
    border-radius: 999px;
    background: var(--final-gold);
}

.publications-hero strong {
    display: block;
    max-width: 620px;
    margin-top: 11px;
    color: #38423b;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
}

.publications-year-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--final-green), var(--final-green-dark));
    padding: 15px 18px;
    color: #fff;
    box-shadow: 0 8px 20px rgb(0 112 88 / 0.16);
}

.publications-year-card span,
.publications-year-card small {
    color: rgb(255 255 255 / 0.84);
    font-size: 13px;
    font-weight: 800;
}

.publications-year-card strong {
    margin-top: 4px;
    color: #fff;
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 800;
    line-height: 1.1;
}

.publications-year-card small {
    margin-top: 14px;
    line-height: 1.45;
}

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

.publication-list-card {
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.24);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgb(33 25 19 / 0.10);
}

.publication-list-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #efe8dd;
}

.publication-list-media img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease, filter 450ms ease;
}

.publication-list-card:hover .publication-list-media img,
.publication-list-card:focus-within .publication-list-media img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.045);
}

.publication-list-media span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    max-width: calc(100% - 32px);
    border-radius: 7px;
    background: #05233b;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.22);
}

.publication-list-body {
    padding: 22px;
}

.publication-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6f675f;
    font-size: 13px;
    font-weight: 800;
}

.publication-list-meta time,
.publication-list-meta span {
    border-radius: 999px;
    background: #fff7e8;
    padding: 6px 10px;
}

.publication-list-body h2 {
    margin: 15px 0 0;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.28;
}

.publication-list-body h2 a {
    color: inherit;
    text-decoration: none;
}

.publication-list-body h2 a:hover,
.publication-list-body h2 a:focus-visible {
    color: var(--final-red-dark);
}

.publication-list-body p {
    margin: 13px 0 0;
    color: #3d3834;
    font-size: 15px;
    line-height: 1.7;
}

.publication-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.publication-list-actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 14px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.publication-list-actions a:first-child {
    background: var(--final-green-dark);
    color: #fff;
}

.publication-list-actions a:last-child:not(:first-child) {
    border: 1px solid rgb(213 163 78 / 0.42);
    background: #fffaf1;
}

.publication-list-actions a:hover,
.publication-list-actions a:focus-visible {
    background: var(--final-red-dark);
    color: #fff;
}

.publications-empty {
    border: 1px dashed rgb(0 112 88 / 0.28);
    border-radius: 16px;
    background: #fff;
    padding: 34px;
    text-align: center;
    box-shadow: 0 16px 38px rgb(31 22 14 / 0.08);
}

.publications-empty p {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 900;
}

.publications-empty small {
    display: block;
    margin-top: 8px;
    color: #6f675f;
    font-weight: 700;
}

.publications-pagination {
    margin-top: 34px;
}

@media (max-width: 960px) {
    .publications-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .publications-page {
        padding-block: 26px 48px;
    }

    .publications-hero {
        border-left-width: 4px;
        padding: 16px;
    }

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

.memoirs-page {
    padding-block: 42px 72px;
}

.memoirs-hero {
    margin-bottom: 30px;
    border-left: 7px solid var(--final-green);
    border-radius: 18px;
    background:
        linear-gradient(105deg, rgb(255 250 241 / 0.98) 0%, rgb(255 255 255 / 0.94) 62%, rgb(157 36 31 / 0.10) 100%);
    padding: clamp(22px, 4vw, 44px);
    box-shadow: 0 22px 54px rgb(26 20 14 / 0.10);
}

.memoirs-hero p,
.memoir-detail-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.memoirs-hero h1,
.memoir-detail-hero h1 {
    margin: 10px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.9vw, 34px);
    font-weight: 950;
    line-height: 1.05;
}

.memoirs-hero > div > span {
    display: block;
    width: 62px;
    height: 3px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--final-gold);
}

.memoirs-hero strong {
    display: block;
    max-width: 760px;
    margin-top: 18px;
    color: #2f2924;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.65;
}

.memoirs-table-wrap {
    overflow-x: auto;
    border: 1px solid rgb(213 163 78 / 0.24);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 58px rgb(33 25 19 / 0.12);
}

.memoirs-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.memoirs-table th {
    background: linear-gradient(135deg, var(--final-green-dark), var(--final-green));
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
    padding: 18px 16px;
    text-align: left;
    text-transform: uppercase;
}

.memoirs-table th:first-child {
    border-top-left-radius: 17px;
}

.memoirs-table th:last-child {
    border-top-right-radius: 17px;
}

.memoirs-table td {
    border-bottom: 1px solid rgb(213 163 78 / 0.18);
    color: #211917;
    font-size: 15px;
    line-height: 1.55;
    padding: 18px 16px;
    vertical-align: top;
}

.memoirs-table tbody tr:last-child td {
    border-bottom: 0;
}

.memoirs-table-row {
    cursor: pointer;
    transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.memoirs-table-row:hover,
.memoirs-table-row:focus-visible {
    background: #fff8e9;
    box-shadow: inset 5px 0 0 var(--final-gold);
    outline: none;
    transform: translateY(-1px);
}

.memoirs-table td:first-child {
    color: var(--final-gold);
    font-weight: 950;
}

.memoirs-title-link {
    color: var(--final-red-dark);
    font-weight: 950;
    text-decoration: none;
}

.memoirs-title-link:hover,
.memoirs-title-link:focus-visible {
    color: var(--final-green-dark);
}

.memoirs-pdf-link {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--final-green-dark);
    padding: 0 13px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.memoirs-pdf-link:hover,
.memoirs-pdf-link:focus-visible {
    background: var(--final-red-dark);
    color: #fff;
}

.memoirs-no-pdf {
    color: #8d857b;
    font-weight: 800;
}

.memoirs-empty {
    border: 1px dashed rgb(0 112 88 / 0.28);
    border-radius: 16px;
    background: #fff;
    padding: 34px;
    text-align: center;
    box-shadow: 0 16px 38px rgb(31 22 14 / 0.08);
}

.memoirs-empty p {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 900;
}

.memoirs-empty small {
    display: block;
    margin-top: 8px;
    color: #6f675f;
    font-weight: 700;
}

.memoirs-pagination {
    margin-top: 34px;
}

.memoir-detail-page {
    padding-block: 36px 72px;
}

.memoir-detail-hero {
    margin-bottom: 28px;
    border-bottom: 1px solid rgb(213 163 78 / 0.34);
    padding-bottom: 24px;
}

.memoir-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.memoir-detail-meta span {
    border: 1px solid rgb(213 163 78 / 0.24);
    border-radius: 999px;
    background: #fff;
    padding: 8px 12px;
    color: #2f2924;
    font-size: 14px;
    font-weight: 850;
}

.memoir-detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: 28px;
    align-items: start;
    border: 1px solid rgb(213 163 78 / 0.20);
    border-radius: 18px;
    background: #fffaf1;
    padding: clamp(22px, 4vw, 42px);
    box-shadow: 0 22px 54px rgb(33 25 19 / 0.11);
}

.memoir-detail-summary h2 {
    margin: 0 0 16px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 950;
}

.memoir-rich-content {
    color: #1d1815;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.memoir-rich-content p,
.memoir-rich-content ul,
.memoir-rich-content ol,
.memoir-rich-content blockquote {
    margin-top: 0;
    margin-bottom: 20px;
}

.memoir-rich-content a {
    color: var(--final-green-dark);
    font-weight: 900;
}

.memoir-document-box {
    position: sticky;
    top: 132px;
    border: 1px solid rgb(0 112 88 / 0.18);
    border-radius: 14px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 18px 42px rgb(33 25 19 / 0.10);
}

.memoir-document-box span {
    display: block;
    margin-bottom: 14px;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.memoir-document-box a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 7px;
    background: var(--final-green-dark);
    padding: 0 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.memoir-document-box a + a {
    border: 1px solid rgb(213 163 78 / 0.44);
    background: #fff8e9;
    color: var(--final-red-dark);
}

.memoir-document-box a:hover,
.memoir-document-box a:focus-visible {
    background: var(--final-red-dark);
    color: #fff;
}

.memoir-document-box p {
    color: #6f675f;
    font-weight: 700;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .memoir-detail-panel {
        grid-template-columns: 1fr;
    }

    .memoir-document-box {
        position: static;
    }
}

@media (max-width: 680px) {
    .memoirs-page,
    .memoir-detail-page {
        padding-block: 26px 48px;
    }

    .memoirs-hero {
        border-left-width: 5px;
        padding: 22px;
    }

    .memoirs-table th,
    .memoirs-table td {
        padding: 14px 12px;
    }

    .memoir-rich-content {
        font-size: 16px;
        line-height: 1.8;
    }
}

.history-page {
    padding-block: 34px 74px;
}

.history-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.28);
    border-left: 7px solid var(--final-green);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgb(255 250 241 / 0.98), rgb(255 255 255 / 0.92)),
        radial-gradient(circle at 88% 18%, rgb(0 135 125 / 0.16), transparent 34%);
    padding: clamp(24px, 5vw, 54px);
    box-shadow: 0 22px 58px rgb(33 25 19 / 0.10);
}

.history-hero::after {
    content: "";
    position: absolute;
    right: clamp(18px, 7vw, 92px);
    bottom: -42px;
    width: clamp(120px, 18vw, 230px);
    aspect-ratio: 1;
    border: 28px solid rgb(0 112 88 / 0.08);
    border-radius: 50%;
}

.history-hero p,
.history-archives-heading p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.history-hero h1 {
    margin: 8px 0 10px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.3vw, 38px);
    font-weight: 950;
    line-height: 0.95;
}

.history-hero span {
    display: block;
    max-width: 720px;
    color: #2f2924;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.7;
}

.history-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
    gap: clamp(22px, 4vw, 42px);
    align-items: start;
    margin-top: 34px;
}

.history-main {
    display: grid;
    gap: 22px;
}

.history-card {
    display: grid;
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.22);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgb(33 25 19 / 0.10);
}

.history-card--text-only {
    grid-template-columns: 1fr;
    background:
        radial-gradient(circle at 92% 18%, rgb(0 135 125 / 0.10), transparent 30%),
        linear-gradient(135deg, #fff, #fffaf1);
}

.history-card--text-only .history-card-body {
    min-height: 300px;
    justify-content: center;
    padding: clamp(28px, 5vw, 52px);
}

.history-card--text-only h2 {
    max-width: 820px;
}

.history-card--text-only p {
    max-width: 760px;
}

.history-card:hover,
.history-card:focus-within {
    border-color: rgb(0 112 88 / 0.36);
    box-shadow: 0 24px 62px rgb(33 25 19 / 0.15);
}

.history-card-media {
    display: block;
    min-height: 245px;
    background: #f3eee6;
}

.history-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 4vw, 34px);
}

.history-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.history-card-meta span,
.history-card-badge,
.history-card-badge--foundation-story,
.history-card-badge--timeline,
.history-card-badge--infrastructure-evolution,
.history-card-badge--emeritus-formators {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgb(213 163 78 / 0.32);
    border-radius: 999px;
    background: #fff8e9;
    padding: 0 12px;
    color: var(--final-red-dark);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.history-card-meta time {
    color: #74695f;
    font-size: 13px;
    font-weight: 800;
}

.history-card h2 {
    margin: 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 950;
    line-height: 1.08;
}

.history-card h2 a {
    color: inherit;
    text-decoration: none;
}

.history-card h2 a:hover,
.history-card h2 a:focus-visible {
    color: var(--final-green-dark);
}

.history-card p {
    margin: 14px 0 0;
    color: #342c26;
    font-size: 16px;
    line-height: 1.75;
}

.history-card-link,
.history-back-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--final-green-dark);
    font-weight: 950;
    text-decoration: none;
}

.history-card-link:hover,
.history-card-link:focus-visible,
.history-back-link:hover,
.history-back-link:focus-visible {
    color: var(--final-red-dark);
}

.history-empty,
.history-archives-empty {
    border: 1px dashed rgb(0 112 88 / 0.28);
    border-radius: 16px;
    background: #fff;
    padding: 28px;
    color: #655d55;
    box-shadow: 0 16px 38px rgb(31 22 14 / 0.08);
}

.history-empty strong {
    display: block;
    color: var(--final-red-dark);
    font-size: 20px;
    font-weight: 950;
}

.history-empty span {
    display: block;
    margin-top: 8px;
}

.history-archives {
    position: sticky;
    top: 132px;
    display: grid;
    gap: 10px;
}

.history-archives-heading {
    border: 1px solid rgb(0 112 88 / 0.16);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #fff8e9);
    padding: 13px 15px;
    box-shadow: 0 8px 20px rgb(33 25 19 / 0.06);
}

.history-archives-heading h2 {
    margin: 3px 0 5px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.history-archives-heading span {
    display: block;
    color: #5f554c;
    font-size: 12.5px;
    line-height: 1.45;
}

.history-year-card {
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.22);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgb(33 25 19 / 0.07);
}

/* Le bandeau vert est le bouton d'ouverture : <summary> natif, donc il
   répond au clic comme au clavier, sans JavaScript. */
.history-year-card-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
    background: linear-gradient(135deg, var(--final-green-dark), var(--final-green));
    padding: 10px 13px;
    color: #fff;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.history-year-card-top::-webkit-details-marker {
    display: none;
}

.history-year-card-top::marker {
    content: '';
}

.history-year-card-top:hover {
    filter: brightness(1.06);
}

.history-year-card-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.history-year-card-label,
.history-year-card-top small {
    grid-column: 1;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.86;
}

.history-year-card-top strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.history-year-card-chevron {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.history-year-card[open] > .history-year-card-top .history-year-card-chevron {
    transform: rotate(-135deg);
}

.history-rubric-list {
    display: grid;
    gap: 5px;
    padding: 9px;
}

.history-rubric-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgb(0 112 88 / 0.12);
    border-radius: 8px;
    background: #fffaf1;
    padding: 7px 10px;
    color: #2b241f;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.history-rubric-list a:hover,
.history-rubric-list a:focus-visible {
    border-color: rgb(0 112 88 / 0.36);
    background: #eef8f4;
    color: var(--final-green-dark);
    transform: translateX(4px);
}

.history-rubric-list a.is-active,
.history-rubric-list a[aria-current="page"] {
    border-color: rgb(213 163 78 / 0.60);
    background: #eef8f4;
    color: var(--final-green-dark);
}

.history-rubric-list strong {
    display: inline-flex;
    min-width: 21px;
    min-height: 21px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--final-red-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.history-year-card--active {
    border-color: rgb(0 112 88 / 0.38);
    box-shadow: 0 24px 60px rgb(0 78 55 / 0.16);
}

.history-archive-page {
    padding-block: 34px 78px;
}

.history-archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.30);
    border-left: 7px solid var(--final-green);
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 12%, rgb(0 135 125 / 0.16), transparent 30%),
        linear-gradient(135deg, #fffaf1 0%, #fff 60%, #eef8f4 100%);
    padding: clamp(26px, 5vw, 54px);
    box-shadow: 0 24px 64px rgb(33 25 19 / 0.12);
}

.history-archive-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.history-archive-hero h1 {
    margin: 8px 0 8px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3.0vw, 35px);
    font-weight: 950;
    line-height: 1;
}

.history-archive-hero div > strong {
    display: inline-flex;
    border-radius: 999px;
    background: var(--final-green-dark);
    padding: 8px 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
}

.history-archive-hero div > span {
    display: block;
    max-width: 760px;
    margin-top: 16px;
    color: #2f2924;
    font-size: clamp(15px, 1.7vw, 19px);
    line-height: 1.65;
}

.history-archive-hero aside {
    border: 1px solid rgb(255 255 255 / 0.42);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--final-green), var(--final-green-dark));
    padding: 24px;
    color: #fff;
    box-shadow: 0 20px 48px rgb(0 78 55 / 0.18);
}

.history-archive-hero aside span,
.history-archive-hero aside small {
    display: block;
    color: rgb(255 255 255 / 0.88);
    font-size: 13px;
    font-weight: 900;
}

.history-archive-hero aside strong {
    display: block;
    margin: 8px 0;
    color: #fff;
    font-size: 50px;
    font-weight: 950;
    line-height: 1;
}

.history-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: clamp(22px, 4vw, 42px);
    align-items: start;
    margin-top: 32px;
}

.history-archive-main {
    min-width: 0;
}

.history-archive-grid {
    display: grid;
    gap: 18px;
}

.history-archive-card {
    display: grid;
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.24);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgb(33 25 19 / 0.10);
}

.history-archive-card:hover,
.history-archive-card:focus-within {
    border-color: rgb(0 112 88 / 0.35);
    box-shadow: 0 24px 60px rgb(33 25 19 / 0.15);
}

.history-archive-card-media,
.history-archive-card-placeholder {
    min-height: 210px;
    background: #f3eee6;
}

.history-archive-card-media {
    display: block;
}

.history-archive-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.history-archive-card:hover .history-archive-card-media img,
.history-archive-card:focus-within .history-archive-card-media img {
    transform: scale(1.045);
}

.history-archive-card-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 65% 30%, rgb(213 163 78 / 0.24), transparent 34%),
        linear-gradient(135deg, #fff8e9, #eef8f4);
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 78px;
    font-weight: 950;
}

.history-archive-card-body {
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
}

.history-archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.history-archive-card-meta span {
    border: 1px solid rgb(213 163 78 / 0.34);
    border-radius: 999px;
    background: #fff8e9;
    padding: 7px 11px;
    color: var(--final-red-dark);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.history-archive-card-meta time {
    color: #74695f;
    font-size: 13px;
    font-weight: 800;
}

.history-archive-card h2 {
    margin: 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    line-height: 1.12;
}

.history-archive-card h2 a {
    color: inherit;
    text-decoration: none;
}

.history-archive-card h2 a:hover,
.history-archive-card h2 a:focus-visible {
    color: var(--final-green-dark);
}

.history-archive-card p {
    margin: 12px 0 0;
    color: #352d27;
    font-size: 15.5px;
    line-height: 1.7;
}

.history-archive-card .history-archive-card-subtitle {
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.history-section-heading {
    display: grid;
    grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    gap: 16px;
    align-items: center;
    margin: 18px 0 6px;
    text-align: center;
}

.history-section-heading span {
    height: 1px;
    background: var(--final-gold);
}

.history-section-heading h2 {
    margin: 0;
    color: var(--final-black);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 950;
    text-transform: uppercase;
}

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

.history-emeritus-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    border: 1px solid rgb(213 163 78 / 0.22);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 16px 36px rgb(33 25 19 / 0.08);
}

.history-emeritus-card img {
    width: 92px;
    height: 92px;
    border: 3px solid rgb(213 163 78 / 0.42);
    border-radius: 14px;
    object-fit: cover;
}

.history-emeritus-card h3 {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 17px;
    font-weight: 950;
}

.history-emeritus-card p {
    margin: 4px 0 0;
    color: var(--final-red-dark);
    font-size: 13px;
    font-weight: 900;
}

.history-emeritus-card span {
    display: block;
    margin-top: 6px;
    color: #5f554c;
    font-size: 13px;
    line-height: 1.45;
}

.history-detail-page {
    padding-block: 34px 78px;
}

.history-back-link {
    margin-top: 0;
    margin-bottom: 22px;
}

.history-detail-hero {
    border-bottom: 1px solid rgb(213 163 78 / 0.35);
    padding-bottom: 24px;
}

.history-detail-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.history-detail-hero h1 {
    max-width: 980px;
    margin: 10px 0 0;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 950;
    line-height: 1.03;
}

.history-detail-hero time {
    display: block;
    margin-top: 14px;
    color: #6b625a;
    font-weight: 850;
}

.history-detail-shell {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: start;
    margin-top: 30px;
}

.history-detail-cover {
    position: sticky;
    top: 132px;
    overflow: hidden;
    margin: 0;
    border: 4px solid rgb(213 163 78 / 0.42);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgb(33 25 19 / 0.15);
}

.history-detail-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.history-detail-content {
    min-width: 0;
}

.history-detail-excerpt {
    margin: 0 0 24px;
    border-left: 4px solid var(--final-gold);
    background: #fff8e9;
    padding: 18px 20px;
    color: #312924;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.75;
}

.history-rich-content {
    color: #191512;
    font-size: 18px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.history-rich-content p,
.history-rich-content ul,
.history-rich-content ol,
.history-rich-content blockquote,
.history-rich-content table {
    margin-top: 0;
    margin-bottom: 22px;
}

.history-rich-content h2,
.history-rich-content h3 {
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 950;
}

.history-rich-content a {
    color: var(--final-green-dark);
    font-weight: 900;
}

.history-detail-gallery,
.history-document-list {
    margin-top: 38px;
}

.history-detail-gallery h2,
.history-document-list h2 {
    margin: 0 0 16px;
    color: var(--final-black);
    font-size: 24px;
    font-weight: 950;
}

.history-detail-gallery > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.history-detail-gallery a {
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.22);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgb(33 25 19 / 0.09);
}

.history-detail-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 320ms ease;
}

.history-detail-gallery a:hover img,
.history-detail-gallery a:focus-visible img {
    transform: scale(1.05);
}

.history-document-list > div {
    display: grid;
    gap: 12px;
}

.history-document-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgb(0 112 88 / 0.18);
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    color: var(--final-green-dark);
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 34px rgb(33 25 19 / 0.08);
}

.history-document-list a:hover,
.history-document-list a:focus-visible {
    border-color: rgb(127 28 24 / 0.26);
    color: var(--final-red-dark);
}

.history-document-list span {
    color: #71675f;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 1100px) {
    .history-layout,
    .history-detail-shell,
    .history-archive-layout,
    .history-archive-hero {
        grid-template-columns: 1fr;
    }

    .history-archives,
    .history-detail-cover {
        position: static;
    }
}

@media (max-width: 780px) {
    .history-page,
    .history-detail-page,
    .history-archive-page {
        padding-block: 24px 54px;
    }

    .history-card,
    .history-emeritus-card,
    .history-archive-card {
        grid-template-columns: 1fr;
    }

    .history-card-media,
    .history-archive-card-media,
    .history-archive-card-placeholder {
        min-height: 210px;
    }

    .history-emeritus-grid,
    .history-detail-gallery > div {
        grid-template-columns: 1fr;
    }

    .history-emeritus-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .history-rich-content {
        font-size: 16px;
        line-height: 1.85;
    }
}

.formation-article-page {
    background: #fff;
    padding: clamp(54px, 6vw, 82px) 0 clamp(64px, 8vw, 104px);
}

.formations-overview-section {
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(64px, 7vw, 96px);
}

.formations-overview-header {
    max-width: 760px;
    margin-bottom: clamp(26px, 3vw, 42px);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.7vw, 28px);
    align-items: stretch;
}

.formations-grid .site-card {
    min-width: 0;
}

@media (max-width: 700px) {
    .formations-overview-section {
        padding-top: 26px;
    }

    .formations-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (min-width: 701px) and (max-width: 1180px) {
    .formations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.formation-article-shell {
    width: min(1250px, calc(100% - 88px));
    margin: 0 auto;
    color: #4b5563;
    font-size: clamp(18px, 1.28vw, 20px);
    font-weight: 400;
    line-height: 1.5;
}

.formation-article-image {
    float: left;
    width: min(370px, 34vw);
    margin: 3px 34px 20px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.formation-article-body {
    max-width: none;
    text-align: justify;
    text-justify: inter-word;
}

.formation-article-body > :first-child {
    margin-top: 0;
}

.formation-article-body p,
.formation-article-body ul,
.formation-article-body ol,
.formation-article-body blockquote,
.formation-article-body table {
    margin: 0 0 20px;
}

.formation-article-body h2,
.formation-article-body h3,
.formation-article-body h4 {
    clear: both;
    margin: 34px 0 14px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 950;
    line-height: 1.18;
}

.formation-article-body h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.formation-article-body h3 {
    font-size: clamp(24px, 2.5vw, 32px);
}

.formation-article-body a {
    color: var(--final-green-dark);
    font-weight: 900;
}

.formation-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.formation-article-clear {
    clear: both;
}

.formation-article-empty {
    color: #625950;
}

@media (max-width: 760px) {
    .formation-article-shell {
        width: min(100% - 28px, 620px);
        font-size: 16px;
        line-height: 1.7;
    }

    .formation-article-image {
        float: none;
        width: 100%;
        margin: 0 0 22px;
    }
}

.legal-page {
    padding-block: 30px 76px;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(213 163 78 / 0.28);
    border-left: 7px solid var(--final-green);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgb(255 250 241 / 0.98), rgb(255 255 255 / 0.94)),
        radial-gradient(circle at 92% 10%, rgb(0 135 125 / 0.14), transparent 34%);
    padding: clamp(24px, 5vw, 52px);
    box-shadow: 0 22px 58px rgb(33 25 19 / 0.10);
}

.legal-hero::after {
    content: "";
    position: absolute;
    right: clamp(18px, 7vw, 84px);
    bottom: -48px;
    width: clamp(120px, 16vw, 220px);
    aspect-ratio: 1;
    border: 26px solid rgb(213 163 78 / 0.12);
    border-radius: 50%;
}

.legal-hero p {
    margin: 0;
    color: var(--final-green-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 850px;
    margin: 8px 0 12px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.2vw, 38px);
    font-weight: 950;
    line-height: 1;
}

.legal-hero span {
    display: block;
    max-width: 760px;
    color: #2f2924;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
}

.legal-content-card {
    margin-top: 28px;
    border: 1px solid rgb(213 163 78 / 0.22);
    border-radius: 18px;
    background: #fff;
    padding: clamp(24px, 4vw, 46px);
    box-shadow: 0 22px 56px rgb(33 25 19 / 0.10);
}

.legal-rich-content {
    max-width: 900px;
    color: #191512;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.legal-rich-content > :first-child {
    margin-top: 0;
}

.legal-rich-content p,
.legal-rich-content ul,
.legal-rich-content ol,
.legal-rich-content blockquote,
.legal-rich-content table {
    margin-bottom: 22px;
}

.legal-rich-content h2,
.legal-rich-content h3 {
    margin-top: 34px;
    margin-bottom: 12px;
    color: var(--final-red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 950;
    line-height: 1.15;
}

.legal-rich-content h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.legal-rich-content h3 {
    font-size: clamp(22px, 2.5vw, 28px);
}

.legal-rich-content a {
    color: var(--final-green-dark);
    font-weight: 900;
}

.legal-rich-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    font-size: 15px;
}

.legal-rich-content th,
.legal-rich-content td {
    border: 1px solid rgb(213 163 78 / 0.22);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.legal-rich-content th {
    background: #fff8e9;
    color: var(--final-red-dark);
}

@media (max-width: 720px) {
    .legal-page {
        padding-block: 24px 54px;
    }

    .legal-content-card {
        padding: 22px;
    }

    .legal-rich-content {
        font-size: 16px;
        line-height: 1.85;
    }
}

/* Fil d'Ariane commun aux pages internes (composant x-breadcrumb) */

.site-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 22px 0 4px;
    width: min(1250px, calc(100% - 44px));
    font-size: 13px;
    color: var(--final-ink, #4a423b);
}

.site-breadcrumb span[aria-hidden] {
    opacity: .45;
}

.site-breadcrumb .is-current {
    font-weight: 600;
    color: var(--site-primary, #00877d);
}

/* Dans un conteneur qui gère déjà sa largeur, le fil d'Ariane la suit. */
.site-container > .site-breadcrumb,
.article-detail-page > .site-breadcrumb {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* =========================================================================
   Page de don dédiée et page de retour après paiement
   ========================================================================= */

.donation-page {
    padding: clamp(24px, 4vw, 44px) 0 clamp(60px, 7vw, 96px);
    display: grid;
    gap: clamp(26px, 3vw, 40px);
}

.donation-page-hero { max-width: 62ch; display: grid; gap: 10px; }

.donation-page-eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-primary, #00877d);
}

.donation-page-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.donation-page-lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #4a423b;
}

.donation-page-grid {
    display: grid;
    gap: clamp(20px, 2.5vw, 32px);
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
}

.donation-page-form {
    background: #fff;
    border: 1px solid #e6e2d8;
    border-radius: var(--site-card-radius, 16px);
    padding: clamp(20px, 2.4vw, 30px);
}

.donation-page-aside { display: grid; gap: 14px; }

.donation-page-card {
    background: #fcfbf8;
    border: 1px solid #e6e2d8;
    border-left: 4px solid var(--site-primary, #00877d);
    border-radius: 12px;
    padding: 18px 20px;
    display: grid;
    gap: 8px;
}

.donation-page-card h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--final-ink, #201915);
}

.donation-page-card p,
.donation-page-card li {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4a423b;
}

.donation-page-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.donation-page-card-contact { border-left-color: var(--final-gold, #a8801f); }

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

/* --- page de retour ---------------------------------------------------- */

.donation-thanks {
    padding: clamp(30px, 5vw, 70px) 0 clamp(60px, 7vw, 96px);
    display: grid;
    place-items: start center;
}

.donation-thanks-card {
    width: min(660px, 100%);
    background: #fff;
    border: 1px solid #e6e2d8;
    border-top: 5px solid var(--site-primary, #00877d);
    border-radius: 16px;
    padding: clamp(24px, 3vw, 38px);
    display: grid;
    gap: 14px;
}

.donation-thanks-paid { border-top-color: #00875a; }
.donation-thanks-failed { border-top-color: #b4342a; }
.donation-thanks-pending { border-top-color: #a8801f; }
.donation-thanks-unknown { border-top-color: #9aa39c; }

.donation-thanks-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--site-primary, #00877d);
}

.donation-thanks-card h1 {
    margin: 0;
    font-size: clamp(24px, 3.4vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.donation-thanks-message,
.donation-thanks-note {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #4a423b;
}

.donation-thanks-note { font-size: 14px; color: #6d6258; }

.donation-thanks-details {
    margin: 4px 0 0;
    display: grid;
    gap: 1px;
    background: #e6e2d8;
    border: 1px solid #e6e2d8;
    border-radius: 10px;
    overflow: hidden;
}

.donation-thanks-details > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
    padding: 11px 16px;
    background: #fcfbf8;
}

.donation-thanks-details dt {
    font-size: 13px;
    font-weight: 600;
    color: #6d6258;
}

.donation-thanks-details dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--final-ink, #201915);
    word-break: break-word;
}

.donation-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.donation-thanks-cta {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--site-primary, #00877d);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.donation-thanks-cta:hover { background: var(--final-green-dark, #006f68); }

.donation-thanks-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--site-primary, #00877d);
}

.donation-form-reference {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
}

.donation-form-success a {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    text-decoration: underline;
}

.donation-form-hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6d6258;
}

/* Page de gestion du consentement (B22) */

.cookie-preferences {
    padding: clamp(24px, 4vw, 44px) 0 clamp(60px, 7vw, 90px);
    display: grid;
    gap: 22px;
    max-width: 900px;
}

.cookie-preferences-hero { display: grid; gap: 10px; max-width: 65ch; }

.cookie-preferences-eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-primary, #00877d);
}

.cookie-preferences-hero h1 {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.cookie-preferences-hero p { margin: 0; font-size: 16px; line-height: 1.65; color: #4a423b; }

.cookie-preferences-state {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #f2f0ea;
    border-left: 4px solid #9aa39c;
    color: #4a423b;
}

.cookie-preferences-state[data-consent-state="accepted"] {
    background: #eef6f1;
    border-left-color: #00875a;
}

.cookie-preferences-state[data-consent-state="refused"] {
    background: #f6f1e5;
    border-left-color: #a8801f;
}

.cookie-preferences-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cookie-preferences-card {
    background: #fcfbf8;
    border: 1px solid #e6e2d8;
    border-radius: 12px;
    padding: 18px 20px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.cookie-preferences-card h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--final-ink, #201915);
}

.cookie-preferences-what {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6d6258;
}

.cookie-preferences-card ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 5px;
    font-size: 14px;
    line-height: 1.55;
    color: #4a423b;
}

.cookie-preferences-note {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6d6258;
}

.cookie-preferences-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-preferences-actions button {
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--site-primary, #00877d);
    background: var(--site-primary, #00877d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-preferences-actions button.is-secondary {
    background: transparent;
    color: var(--site-primary, #00877d);
}

.cookie-preferences-actions button:hover { filter: brightness(.94); }

.cookie-preferences-legal {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6d6258;
}

.cookie-consent-more {
    align-self: center;
    margin-right: auto;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

/* =========================================================================
   Recherche du site (B14)
   ========================================================================= */

/* Classe utilitaire : visible des lecteurs d'écran uniquement. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 14px;
}

.topbar-search input {
    width: 150px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: inherit;
    font-size: 12.5px;
    transition: width .2s ease, background .2s ease;
}

.topbar-search input::placeholder { color: currentColor; opacity: .7; }

.topbar-search input:focus {
    width: 200px;
    outline: none;
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .6);
}

.topbar-search button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.topbar-search button:hover { background: rgba(255, 255, 255, .18); }

@media (max-width: 860px) {
    .topbar-search { display: none; }
}

/* --- page de résultats -------------------------------------------------- */

.site-search {
    padding: clamp(20px, 3vw, 36px) 0 clamp(60px, 7vw, 90px);
    display: grid;
    gap: 22px;
    max-width: 860px;
}

.site-search-hero { display: grid; gap: 16px; }

.site-search-hero h1 {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.site-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-search-form input {
    flex: 1 1 260px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid #d9d3c8;
    background: #fff;
    font-size: 15px;
    color: var(--final-ink, #201915);
}

.site-search-form input:focus {
    outline: 2px solid var(--site-primary, #00877d);
    outline-offset: 1px;
    border-color: transparent;
}

.site-search-form button {
    padding: 13px 26px;
    border-radius: 999px;
    border: none;
    background: var(--site-primary, #00877d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.site-search-form button:hover { background: var(--final-green-dark, #006f68); }

.site-search-hint,
.site-search-count {
    margin: 0;
    font-size: 15px;
    color: #4a423b;
}

.site-search-empty {
    display: grid;
    gap: 8px;
    padding: 26px;
    background: #fcfbf8;
    border: 1px dashed #d9d3c8;
    border-radius: 12px;
}

.site-search-empty strong { font-size: 17px; color: var(--final-ink, #201915); }
.site-search-empty p { margin: 0; font-size: 14px; line-height: 1.6; color: #6d6258; }

.site-search-results { display: grid; gap: 14px; }

.site-search-result {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e6e2d8;
    border-left: 4px solid var(--site-primary, #00877d);
    border-radius: 12px;
}

.site-search-type {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--site-primary, #00877d);
}

.site-search-type span { font-weight: 500; color: #8a8177; text-transform: none; letter-spacing: 0; }

.site-search-result h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.site-search-result h2 a { color: var(--final-ink, #201915); text-decoration: none; }
.site-search-result h2 a:hover { text-decoration: underline; }

.site-search-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5c544c;
}

/* =========================================================================
   Page d'accueil : temps forts, chiffres clés, appel au soutien (B21)
   ========================================================================= */

.home-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.home-event {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e6e2d8;
    border-radius: var(--site-card-radius, 14px);
}

.home-event time {
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    min-width: 58px;
    padding: 8px 6px;
    border-radius: 10px;
    background: var(--site-primary, #00877d);
    color: #fff;
    line-height: 1;
}

.home-event-day { font-size: 22px; font-weight: 800; }
.home-event-month { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

.home-event h3 { margin: 0 0 3px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.home-event h3 a { color: var(--final-ink, #201915); text-decoration: none; }
.home-event h3 a:hover { text-decoration: underline; }
.home-event p { margin: 0; font-size: 14px; line-height: 1.55; color: #5c544c; }

.home-figures-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    background: #e6e2d8;
    border: 1px solid #e6e2d8;
    border-radius: var(--site-card-radius, 14px);
    overflow: hidden;
}

.home-figure {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    padding: 22px 16px;
    background: #fff;
}

.home-figure strong {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: var(--site-primary, #00877d);
    font-variant-numeric: tabular-nums;
}

.home-figure span { font-size: 13px; color: #5c544c; }

.home-support-card {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--site-card-radius, 16px);
    background: linear-gradient(135deg, var(--final-green, #006143), var(--final-green-dark, #00432f));
    color: #fff;
}

.home-support-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--final-gold, #d5a34e);
}

.home-support-card h2 {
    margin: 0 0 8px;
    font-size: clamp(21px, 2.6vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}

.home-support-lead {
    margin: 0;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}

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

.home-support-cta {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--final-green, #006143);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-support-cta:hover { background: var(--final-gold, #d5a34e); color: #201915; }

.home-support-link {
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.home-support-link:hover { background: rgba(255, 255, 255, .14); }

/* =========================================================================
   Accessibilité (B20)
   ========================================================================= */

/*
   Lien d'évitement : hors écran tant qu'il n'a pas le focus, il apparaît dès
   la première tabulation pour permettre de sauter la navigation.
*/
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 20px;
    background: var(--site-primary, #00877d);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 10px 0;
}

.skip-to-content:focus {
    left: 0;
}

/* La cible du lien d'évitement ne doit pas dessiner de contour à l'arrivée. */
#contenu-principal:focus {
    outline: none;
}

/*
   Focus visible partout : le contour par défaut du navigateur disparaît sur
   les éléments dont le style est personnalisé, ce qui rend la navigation au
   clavier impossible à suivre.
*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid var(--site-primary, #00877d);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Sur fond sombre (barre du haut, pied de page), le contour passe en clair. */
.site-topbar a:focus-visible,
.site-topbar button:focus-visible,
.site-topbar input:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible,
.home-support-card a:focus-visible,
.home-support-card button:focus-visible {
    outline-color: #fff;
}

/* Page courante signalée autrement que par la seule couleur. */
.primary-link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

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

/* =========================================================================
   Promotions et saints patrons (B25)
   ========================================================================= */

.promotions-page {
    padding: clamp(20px, 3vw, 36px) 0 clamp(60px, 7vw, 92px);
    display: grid;
    gap: clamp(26px, 3vw, 40px);
}

.promotions-hero { display: grid; gap: 10px; max-width: 66ch; }

.promotions-eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-primary, #00877d);
}

.promotions-hero h1 {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.promotions-hero p { margin: 0; font-size: 16px; line-height: 1.65; color: #4a423b; }

.promotions-year { display: grid; gap: 14px; }

.promotions-year h2 {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--final-gold, #d5a34e);
    font-size: 20px;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.promotions-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.promotion-card {
    display: grid;
    align-content: start;
    background: #fff;
    border: 1px solid #e6e2d8;
    border-radius: var(--site-card-radius, 14px);
    overflow: hidden;
}

.promotion-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f0ea;
}

.promotion-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-card-body { display: grid; gap: 5px; padding: 16px 18px; }

.promotion-card-level {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--site-primary, #00877d);
}

.promotion-card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--final-ink, #201915);
}

.promotion-card-count { margin: 0; font-size: 14px; font-weight: 600; color: #4a423b; }
.promotion-card-dioceses { margin: 0; font-size: 12.5px; line-height: 1.5; color: #7c736a; }

.promotion-card-body a {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--site-primary, #00877d);
    text-decoration: none;
}

.promotion-card-body a:hover { text-decoration: underline; }

.promotions-empty {
    display: grid;
    gap: 8px;
    padding: 30px;
    background: #fcfbf8;
    border: 1px dashed #d9d3c8;
    border-radius: 12px;
}

.promotions-empty strong { font-size: 17px; color: var(--final-ink, #201915); }
.promotions-empty p { margin: 0; font-size: 14px; line-height: 1.6; color: #6d6258; }

/* =========================================================================
   Newsletter : encart d'inscription et archive publique (B23)
   ========================================================================= */

.newsletter-signup {
    display: grid;
    gap: 12px;
    margin: 26px 0;
    padding: clamp(18px, 2.4vw, 26px);
    background: #fcfbf8;
    border: 1px solid #e6e2d8;
    border-left: 4px solid var(--final-gold, #d5a34e);
    border-radius: var(--site-card-radius, 14px);
}

.newsletter-signup h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--final-ink, #201915);
}

.newsletter-signup p { margin: 0; font-size: 14px; line-height: 1.6; color: #5c544c; }

.newsletter-signup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter-signup-form input {
    flex: 1 1 220px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #d9d3c8;
    background: #fff;
    font-size: 14px;
}

.newsletter-signup-form button {
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: var(--site-primary, #00877d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-signup-form button:hover { background: var(--final-green-dark, #006f68); }

.newsletter-signup-status {
    margin: 0;
    padding: 9px 14px;
    border-radius: 8px;
    background: #eef6f1;
    font-size: 13.5px;
    font-weight: 600;
    color: #00563c;
}

.newsletters-page {
    padding: clamp(20px, 3vw, 36px) 0 clamp(60px, 7vw, 92px);
    display: grid;
    gap: 18px;
    max-width: 820px;
}

.newsletters-hero { display: grid; gap: 10px; }

.newsletters-eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-primary, #00877d);
}

.newsletters-hero h1 {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.newsletters-hero > p { margin: 0; font-size: 16px; line-height: 1.65; color: #4a423b; }

.newsletter-item {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e6e2d8;
    border-radius: 12px;
}

.newsletter-item-date {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a8177;
}

.newsletter-item h2 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.newsletter-item h2 a { color: var(--final-ink, #201915); text-decoration: none; }
.newsletter-item h2 a:hover { text-decoration: underline; }
.newsletter-item-excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: #5c544c; }

.newsletter-item-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--site-primary, #00877d);
    text-decoration: none;
}

.newsletters-empty {
    display: grid;
    gap: 6px;
    padding: 28px;
    background: #fcfbf8;
    border: 1px dashed #d9d3c8;
    border-radius: 12px;
}

.newsletters-empty strong { font-size: 17px; color: var(--final-ink, #201915); }
.newsletters-empty p { margin: 0; font-size: 14px; color: #6d6258; }

.newsletter-detail {
    padding: clamp(20px, 3vw, 36px) 0 clamp(60px, 7vw, 92px);
    display: grid;
    gap: 18px;
    max-width: 780px;
}

.newsletter-detail-date {
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a8177;
}

.newsletter-detail h1 {
    margin: 0;
    font-size: clamp(25px, 3.4vw, 33px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--final-ink, #201915);
}

.newsletter-detail-body {
    font-size: 16px;
    line-height: 1.75;
    color: #3d3630;
}

.newsletter-detail-body p { margin: 0 0 14px; }

.newsletter-detail-footer { display: grid; gap: 10px; }

.newsletter-detail-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--site-primary, #00877d);
}

/* Sélecteur de langue de la barre du haut (B24) */

.topbar-languages {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
}

.topbar-languages a {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .32);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
    color: inherit;
}

.topbar-languages a:hover,
.topbar-languages a:focus-visible {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .6);
}

/* Le champ de recherche perd sa marge automatique quand le sélecteur la prend. */
.topbar-languages + .topbar-search { margin-left: 0; }

@media (max-width: 860px) {
    .topbar-languages { padding-left: 6px; }
}

/* ---------------------------------------------------------------------------
   Page Historiques : frise chronologique
   ---------------------------------------------------------------------------
   L'axe vertical est tracé par un dégradé sur la colonne de gauche plutôt que
   par un pseudo-élément par nœud : la ligne reste continue même quand les
   cartes ont des hauteurs très différentes.
   --------------------------------------------------------------------------- */

.history-narratives {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.history-timeline {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: grid;
    gap: 26px;
}

.history-node {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: clamp(14px, 2.5vw, 26px);
    align-items: start;
    position: relative;
}

/* L'axe : la ligne descend derrière la pastille, du haut du nœud au suivant. */
.history-node-axis {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 22px;
    min-height: 100%;
}

.history-node-axis::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -26px;
    right: 7px;
    width: 2px;
    background: linear-gradient(180deg, rgb(201 152 59 / 0.42), rgb(201 152 59 / 0.22));
}

.history-node:last-child .history-node-axis::before {
    bottom: auto;
    height: 30px;
}

.history-node-dot {
    position: absolute;
    top: 24px;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--site-background);
    border: 3px solid var(--final-gold);
    z-index: 1;
}

.history-node--year .history-node-dot {
    border-color: var(--final-green);
}

.history-node--current .history-node-dot {
    background: var(--final-green);
    box-shadow: 0 0 0 5px rgb(0 135 125 / 0.16);
}

.history-node-year {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    color: var(--final-ink);
    padding-right: 30px;
    text-align: right;
    line-height: 1.3;
}

.history-node--year .history-node-year {
    color: var(--final-green-dark);
}

.history-node-body {
    min-width: 0;
}

.history-node-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.history-node-badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--final-green-dark);
    background: rgb(0 135 125 / 0.09);
    border: 1px solid rgb(0 135 125 / 0.2);
    border-radius: 999px;
    padding: 4px 11px;
}

.history-node-meta time {
    font-size: 0.84rem;
    color: rgb(33 25 23 / 0.62);
}

.history-year-current {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--final-green);
    border-radius: 999px;
    padding: 4px 11px;
}

/* Jalon rédigé : carte illustrée. */

.history-milestone {
    display: grid;
    grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgb(201 152 59 / 0.22);
    border-radius: var(--site-card-radius);
}

.history-milestone--text-only {
    grid-template-columns: minmax(0, 1fr);
    border-left: 4px solid var(--final-gold);
}

.history-milestone-media {
    display: block;
    overflow: hidden;
}

.history-milestone-media img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    display: block;
}

.history-milestone-text {
    padding: clamp(16px, 2.4vw, 24px);
}

.history-milestone-text h2 {
    font-size: clamp(1.12rem, 1.9vw, 1.35rem);
    line-height: 1.28;
    margin: 0 0 8px;
}

.history-milestone-text h2 a {
    color: var(--final-ink);
    text-decoration: none;
}

.history-milestone-text h2 a:hover,
.history-milestone-text h2 a:focus-visible {
    color: var(--final-green-dark);
    text-decoration: underline;
}

.history-milestone-text p {
    margin: 0 0 12px;
    color: rgb(33 25 23 / 0.78);
    line-height: 1.6;
}

.history-node-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--final-green-dark);
    text-decoration: none;
}

.history-node-link:hover,
.history-node-link:focus-visible {
    text-decoration: underline;
}

/* Année académique : carte de rubriques. */

.history-year {
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgb(0 135 125 / 0.18);
    border-left: 4px solid var(--final-green);
    border-radius: var(--site-card-radius);
}

.history-node--current .history-year {
    background: rgb(0 135 125 / 0.045);
}

.history-year h2 {
    font-size: clamp(1.12rem, 1.9vw, 1.35rem);
    margin: 0 0 4px;
    color: var(--final-ink);
}

.history-year-total {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: rgb(33 25 23 / 0.66);
}

.history-year-rubrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 8px;
}

.history-year-rubrics a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 13px;
    border: 1px solid rgb(201 152 59 / 0.26);
    border-radius: 11px;
    background: rgb(255 250 241 / 0.6);
    color: var(--final-ink);
    text-decoration: none;
    font-size: 0.91rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.history-year-rubrics a:hover,
.history-year-rubrics a:focus-visible {
    border-color: var(--final-green);
    background: rgb(0 135 125 / 0.07);
}

.history-year-rubrics strong {
    font-variant-numeric: tabular-nums;
    color: var(--final-green-dark);
}

/* Sous 720 px, l'axe passe au-dessus de la carte : une colonne de 116 px
   ampute trop le texte sur un téléphone. */
@media (max-width: 720px) {
    .history-node {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .history-node-axis {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding-top: 0;
        min-height: 0;
    }

    .history-node-axis::before {
        display: none;
    }

    .history-node-dot {
        position: static;
        width: 12px;
        height: 12px;
        border-width: 3px;
        flex: 0 0 auto;
    }

    .history-node-year {
        padding-right: 0;
        text-align: left;
    }

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

    .history-milestone-media img {
        min-height: 150px;
        max-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .history-year-rubrics a {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   Historiques : navigateur d'archives à deux entrées
   ---------------------------------------------------------------------------
   Le choix « par année » / « par rubrique » passe par l'adresse, pas par du
   JavaScript : la vue reste partageable et fonctionne sans script.
   --------------------------------------------------------------------------- */

.history-browser {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.history-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: rgb(255 250 241 / 0.7);
    border: 1px solid rgb(201 152 59 / 0.28);
    border-radius: 999px;
    justify-self: start;
}

.history-switch-option {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--final-ink);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.history-switch-option:hover,
.history-switch-option:focus-visible {
    background: rgb(0 135 125 / 0.1);
    color: var(--final-green-dark);
}

.history-switch-option.is-active {
    background: var(--final-green);
    color: #fff;
}

.history-browser-help {
    margin: 0;
    font-size: 0.93rem;
    color: rgb(33 25 23 / 0.66);
}

/* Carte d'une année, ou d'une famille de rubriques. */

.history-year,
.history-family-card {
    padding: clamp(16px, 2.4vw, 26px);
    border: 1px solid rgb(0 135 125 / 0.18);
    border-left: 4px solid var(--final-green);
    border-radius: var(--site-card-radius);
    display: grid;
    gap: 18px;
}

.history-year--current {
    background: rgb(0 135 125 / 0.045);
    border-left-color: var(--final-gold);
}

.history-year-head {
    display: grid;
    gap: 6px;
}

.history-year-head > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.history-year-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.1vw, 1.5rem);
    color: var(--final-ink);
}

.history-family {
    display: grid;
    gap: 9px;
}

.history-family h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--final-green-dark);
    padding-bottom: 6px;
    border-bottom: 1px solid rgb(0 135 125 / 0.16);
}

/* Liste des rubriques d'une année. */

.history-year-rubrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px;
}

.history-year-rubrics a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgb(201 152 59 / 0.26);
    border-radius: 11px;
    background: rgb(255 250 241 / 0.6);
    color: var(--final-ink);
    text-decoration: none;
    font-size: 0.92rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.history-year-rubrics a:hover,
.history-year-rubrics a:focus-visible {
    border-color: var(--final-green);
    background: rgb(0 135 125 / 0.07);
}

.history-year-rubrics strong {
    font-variant-numeric: tabular-nums;
    color: var(--final-green-dark);
}

/* Liste des rubriques d'une famille (vue « par rubrique »). */

.history-rubric-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.history-rubric-cards a {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid rgb(201 152 59 / 0.26);
    border-radius: 12px;
    background: rgb(255 250 241 / 0.6);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.history-rubric-cards a:hover,
.history-rubric-cards a:focus-visible {
    border-color: var(--final-green);
    background: rgb(0 135 125 / 0.07);
}

.history-rubric-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--final-ink);
}

.history-rubric-years {
    font-size: 0.84rem;
    color: rgb(33 25 23 / 0.62);
    font-variant-numeric: tabular-nums;
}

/* Page d'une rubrique : les années où elle contient quelque chose. */

.history-rubric-year-list {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.history-rubric-year-card {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid rgb(0 135 125 / 0.18);
    border-left: 4px solid var(--final-green);
    border-radius: var(--site-card-radius);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.history-rubric-year-card:hover,
.history-rubric-year-card:focus-visible {
    background: rgb(0 135 125 / 0.07);
}

.history-rubric-year-name {
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--final-ink);
    font-variant-numeric: tabular-nums;
}

.history-rubric-year-count {
    font-size: 0.87rem;
    color: rgb(33 25 23 / 0.62);
}

.history-rubric-year-card .history-year-current {
    justify-self: start;
    margin-top: 4px;
}

/* Fil d'Ariane de la page d'une rubrique. */

.history-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.87rem;
    color: rgb(33 25 23 / 0.62);
}

.history-breadcrumb a {
    color: var(--final-green-dark);
    text-decoration: none;
}

.history-breadcrumb a:hover,
.history-breadcrumb a:focus-visible {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .history-switch-option,
    .history-year-rubrics a,
    .history-rubric-cards a,
    .history-rubric-year-card {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   Historiques : panneaux dépliants
   ---------------------------------------------------------------------------
   <details>/<summary> natifs plutôt qu'un accordéon en JavaScript : ils
   s'ouvrent au clic comme au clavier, se laissent chercher par Ctrl+F dans les
   navigateurs récents, et fonctionnent même si le script ne se charge pas.
   --------------------------------------------------------------------------- */

.history-panel {
    border: 1px solid rgb(0 135 125 / 0.18);
    border-left: 4px solid var(--final-green);
    border-radius: var(--site-card-radius);
    overflow: hidden;
}

.history-panel--current {
    border-left-color: var(--final-gold);
    background: rgb(0 135 125 / 0.045);
}

.history-panel-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px clamp(16px, 2.4vw, 24px);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

/* Retire le triangle par défaut, remplacé par un chevron aligné à droite. */
.history-panel-summary::-webkit-details-marker {
    display: none;
}

.history-panel-summary::marker {
    content: '';
}

.history-panel-summary:hover {
    background: rgb(0 135 125 / 0.06);
}

.history-panel-summary:focus-visible {
    outline: 2px solid var(--final-green);
    outline-offset: -2px;
}

.history-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 700;
    font-size: clamp(1.02rem, 1.8vw, 1.2rem);
    color: var(--final-ink);
}

.history-panel-count {
    margin-left: auto;
    font-size: 0.86rem;
    color: rgb(33 25 23 / 0.62);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.history-panel-chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--final-green-dark);
    border-bottom: 2px solid var(--final-green-dark);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
}

.history-panel[open] > .history-panel-summary .history-panel-chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.history-panel-body {
    display: grid;
    gap: 18px;
    padding: 4px clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 22px);
    border-top: 1px solid rgb(0 135 125 / 0.12);
    padding-top: 16px;
}

/* Titre d'une famille, dans la vue « par rubrique ». */

.history-family-block {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.history-family-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgb(201 152 59 / 0.32);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--final-ink);
}

.history-family-title span {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgb(33 25 23 / 0.62);
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .history-panel-chevron {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   Mot du Recteur : motif de remplacement quand aucune photo n'est renseignée
   ---------------------------------------------------------------------------
   Le repli précédent affichait le portrait d'une personne réelle, y compris à
   côté d'un « Aucun mot du Recteur publié ». Ce motif ne représente personne.
   Il reprend les dimensions de la photo pour que la mise en page ne bouge pas
   selon qu'une photo est renseignée ou non.
   --------------------------------------------------------------------------- */

.rector-photo-placeholder {
    display: grid;
    place-items: center;
    width: 164px;
    height: 164px;
    border: 1px solid rgb(201 153 59 / 0.35);
    border-radius: 999px;
    color: var(--final-green);
    background:
        radial-gradient(circle at 32% 28%, rgb(201 152 59 / 0.16), transparent 58%),
        linear-gradient(150deg, #ffffff, #eef5f1);
}

.rector-photo-placeholder svg {
    width: 62%;
    height: 62%;
}

@media (max-width: 720px) {
    .rector-photo-placeholder {
        width: 122px;
        height: 122px;
    }
}

/* ---------------------------------------------------------------------------
   Piliers de la formation : motif quand aucune photo n'est renseignée
   ---------------------------------------------------------------------------
   Les illustrations de repli étaient des photos de bâtiments sans rapport avec
   le pilier qu'elles accompagnaient. Ce motif ne prétend rien illustrer ; il
   prend la couleur d'accent de sa carte.
   --------------------------------------------------------------------------- */

.front-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 10px;
    color: var(--final-green);
    background:
        radial-gradient(circle at 26% 24%, rgb(201 152 59 / 0.14), transparent 62%),
        linear-gradient(140deg, #f7faf8, #eef4f0);
}

.front-card-gold .front-card-placeholder { color: var(--final-gold); }
.front-card-red .front-card-placeholder { color: var(--final-red); }
.front-card-purple .front-card-placeholder { color: #6b4e9b; }

.front-card-placeholder svg {
    width: 68%;
    height: 68%;
}

/* ---------------------------------------------------------------------------
   Fonctionnalité fermée : annonce au visiteur
   ---------------------------------------------------------------------------
   Un visiteur arrivé par un lien partagé — bulletin paroissial, message — doit
   comprendre pourquoi il ne peut pas donner, plutôt que de tomber sur une
   erreur « page introuvable » et de croire le site cassé.
   --------------------------------------------------------------------------- */

.feature-closed-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 20px;
    border: 0;
    background: rgb(17 24 20 / 0.55);
}

.feature-closed-modal::backdrop {
    background: rgb(17 24 20 / 0.55);
}

.feature-closed-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(520px, 100%);
    padding: clamp(24px, 4vw, 38px);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 60px rgb(0 0 0 / 0.28);
    text-align: center;
}

.feature-closed-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: rgb(201 152 59 / 0.14);
    color: var(--final-gold);
}

.feature-closed-icon svg {
    width: 60%;
    height: 60%;
}

.feature-closed-card h2 {
    margin: 0;
    font-size: clamp(19px, 2.4vw, 24px);
    line-height: 1.25;
    color: var(--final-red-dark);
    text-wrap: balance;
}

.feature-closed-card p {
    margin: 0;
    max-width: 42ch;
    color: #45514a;
    font-size: 15px;
    line-height: 1.6;
}

.feature-closed-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.feature-closed-cta {
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--final-green);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
}

.feature-closed-cta:hover,
.feature-closed-cta:focus-visible {
    background: var(--final-green-dark);
}

.feature-closed-link {
    padding: 11px 18px;
    color: var(--final-green-dark);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: underline;
}

/* Le même message, visible derrière la fenêtre : la page reste compréhensible
   une fois la modale fermée, ou si le navigateur ne la gère pas. */

.donation-closed-notice h2 {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--final-red-dark);
}

.donation-closed-notice p {
    margin: 0 0 12px;
    color: #45514a;
    line-height: 1.65;
}

.donation-closed-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--final-green);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
}

.donation-closed-cta:hover,
.donation-closed-cta:focus-visible {
    background: var(--final-green-dark);
}

/* Les deux actions du message de fermeture, alignées comme dans la fenêtre. */
.donation-closed-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.donation-closed-link {
    padding: 10px 14px;
    color: var(--final-green-dark);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: underline;
}

.donation-closed-link:hover,
.donation-closed-link:focus-visible {
    color: var(--final-green);
}

@media (prefers-reduced-motion: reduce) {
    .history-year-card-chevron {
        transition: none;
    }
}
