.media-adjusted {
    object-fit: var(--media-fit, contain);
    object-position: var(--media-object-x, 50%) var(--media-object-y, 50%);
    transform: scale(var(--media-scale, 1));
    transform-origin: center;
}

/* Natural Document Layout: Header top, Footer bottom of document, Main flows naturally */
.public-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.public-header {
    flex: 0 0 auto;
}

.public-header-sticky {
    isolation: isolate;
}

.public-breadcrumb {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    border-bottom: 1px solid #d8e7cf;
    background: rgba(255, 255, 255, 0.96);
}

.public-breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    overflow: hidden;
    color: #5f7167;
    font-size: 0.8125rem;
    line-height: 1.125rem;
}

.public-breadcrumb__back {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    color: #267d1b;
    font-weight: 750;
    transition: color 160ms ease;
}

.public-breadcrumb__back:hover {
    color: #07552f;
}

.public-breadcrumb__back:focus-visible {
    border-radius: 0.25rem;
    outline: 2px solid rgba(52, 143, 29, 0.32);
    outline-offset: 3px;
}

.public-breadcrumb__back svg {
    width: 1rem;
    height: 1rem;
}

.public-breadcrumb__divider {
    width: 1px;
    height: 1rem;
    flex: 0 0 auto;
    background: #cbdac3;
}

.public-breadcrumb__current {
    min-width: 0;
    overflow: hidden;
    color: #314b3a;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-footer {
    flex: 0 0 auto;
    margin-top: auto;
    z-index: 10;
    border-top: 1px solid rgba(186, 222, 114, 0.32);
}

.public-shell > main {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.public-main {
    width: min(100%, 1400px);
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.public-header .container {
    min-height: 4rem;
    padding-bottom: 0.35rem;
    padding-top: 0.35rem;
}

.public-header__brand-frame {
    flex-basis: 3.25rem !important;
    height: 3.25rem !important;
    width: 3.25rem !important;
}

.public-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.public-footer__brand,
.public-footer__tagline,
.public-footer__copyright {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1rem;
}

.public-footer__identity {
    min-width: 0;
}

.public-footer__brand {
    color: #ffffff;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.public-footer__tagline {
    margin-top: 0.125rem;
    color: rgba(255, 255, 255, 0.66);
}

.public-footer__copyright {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    white-space: nowrap;
}

.public-footer__copyright span {
    margin: 0 0.3rem;
    color: #bade72;
}

@media (max-width: 767px) {
    .public-shell {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .public-shell > main {
        flex: 1 0 auto;
    }

    .public-header .container {
        min-height: 3.5rem;
    }

    .public-header__title {
        left: auto !important;
        position: static !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
    }

    .public-header__title-text {
        font-size: 0.92rem !important;
        line-height: 1.15rem !important;
        overflow: visible !important;
        text-align: left;
        text-wrap: balance;
        white-space: normal !important;
    }

    .public-header__brand-frame {
        flex-basis: 2.75rem !important;
        height: 2.75rem !important;
        width: 2.75rem !important;
    }

    .public-breadcrumb__inner {
        min-height: 2.375rem;
        gap: 0.5rem;
    }

    .public-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.125rem;
        min-height: auto;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .public-footer__copyright {
        text-align: left;
        white-space: normal;
    }
}

.public-locked-page {
    min-height: clamp(22rem, 62dvh, 42rem);
}
