html,
body {
    min-height: 100%;
}

body.frontend-site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

body.frontend-site > main {
    flex: 1 0 auto;
}

.site-shell-main {
    min-height: clamp(280px, 46vh, 620px);
}

body.frontend-site > .footer {
    flex: 0 0 auto;
}

/* Database-backed priority variants. */
.priority-feature--reversed .priority-feature-image {
    order: 2;
}

.priority-detail-section--dark {
    color: #f4f9f5;
    background: #103b2a;
}

.priority-detail-section--dark .priority-feature-content p {
    color: #dbeadd;
}

.priority-feature-points {
    display: grid;
    gap: .65rem;
    margin: 1.25rem 0 0;
    padding-left: 1.25rem;
}

@media (max-width: 760px) {
    .priority-feature--reversed .priority-feature-image {
        order: initial;
    }
}
.contact-page .quick-contact > h2,
.contact-page .contact-form-alert {
    grid-column: 1 / -1;
}

.priority-feature-content p {
    text-align: justify;
}

.event-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 36, 24, .6);
}

.event-popup-box {
    position: relative;
    width: min(420px, 100%);
    padding: 40px 32px 32px;
    border-radius: 20px;
    color: #17462f;
    text-align: center;
    background: #fff;
    border-bottom: 6px solid #8cc63f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.event-popup-box p {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.6;
}

.event-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    color: #17462f;
    font-size: 28px;
    line-height: 1;
    background: none;
    cursor: pointer;
}

.youtube-video-local-play {
    z-index: 1;
    border: 0;
    cursor: pointer;
}

.youtube-video-frame:has(.youtube-video-local-play:hover) .youtube-video-local-play {
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-video-frame > a:not(.youtube-video-open) {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.youtube-video-frame > a:not(.youtube-video-open) img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-page .quick-contact textarea {
    resize: vertical;
}

.newsroom-card-date {
    display: block;
    margin-bottom: 6px;
    color: #5b7a68;
    font-size: 13px;
    line-height: 1.4;
}

.bio-layout > div:first-child {
    align-self: center;
}

.bio-layout .lead {
    margin: 0;
    font-family: "Shadhinata 2.0";
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

/* Keep the navigation bar fixed in place while pages change. */
::view-transition-group(site-navigation) {
    animation: none;
}
