#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    display: block;
    padding-top: 2em;
}
.container {
    --container-base-width: 1040px;
    width: var(--container-base-width);
    max-width: 100%;
    margin: auto;
}
.container.large-container {
    /* /* only make it this large after a certain point, i.e. after 1520px widht */
    /*--container-base-width: 1280px;
    width: var(--container-base-width);*/
}
#primary {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 1.4em;
    padding-bottom: 0.10em;
    /* remove vertical margin */
    margin-top: 0;
    margin-bottom: 0;
}
.frozen {
    max-height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
    height: 100vh;
}
#colophon {
    margin-bottom: 0; /* keep vertical margin at top as auto, as in flex that'll make this div margin for the full remaining space, and push it to the bottom */
}
.flash-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;

    text-align: center;
    padding: 0.5em;
    font-size: 14px;

    /* Initial display properties */
    opacity: 1;
    transition: all 1s ease-out; /* Optional smooth fade-out transition */
    animation: fadeOutAlert 1s ease-out 4s forwards; /* Start fading after 4 seconds, duration 1s */
    transform-origin: 50% 0;
    overflow: hidden;
}
.flash-message.no-expiry {
    animation: none;
}
.template-auth_action .flash-message.no-expiry {
    display: none; /* quick and dirty way to hide perma flash messages (like email veirifcation) on auth action pages */
}
.flash-message.no-expiry + .flash-message {
    /* If there's a permanent/no-expiry message at the top (like email verification), we offset the others to not cover it */
    top: 30px;
}
.flash-message.alert-success {
    background: var(--clr-green-2);
}
.flash-message.alert-warning {
    background: var(--clr-orange-1);
    color: black;
}
.flash-message.alert-danger {
    background: var(--clr-red-1);
}
.flash-message.alert-danger a {
    color: black;
}
.flash-message .btn-link {
    text-decoration: underline;
    color: inherit;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}
@keyframes fadeOutAlert {
    0% { opacity: 1; /*transform: scaleY(1);*/}
    100% { opacity: 0; /*transform: scaleY(0); max-height: 0;*/}
}
section {
    margin-bottom: 1em;
}
.header-with-buttons {
    gap: .4125em;
}
.h-bg {
    background-color: var(--highlight);
}
.section-content {
    padding: 1em 0;
    border-radius: 9px;
    border-bottom: 3px solid #fff;
}
.section-content > * {
    padding: 0 1rem;
}
.section-content {
    padding-left: 0em;
    padding-right: 0em;
    padding-top: 0.25em;
    padding-bottom: 1.6em;
}
.section-content .separator {
    width: 100%;
    height: 47px;
    overflow: hidden;
}
#primary .separator {
    margin-top: 3em;
}
.separator img {
    margin: auto;
    width: 138px;
    margin-bottom: 0;
    display: block;
    transform: translateY(0);
    transition: transform .3s ease-out;
}
.separator img:hover {
    transform: translateY(8px);
}
.headline-1 {
    color: #ffffff;
}
.headline-2 {
    color: #ffffff;
}
.headline-3 {
    color: #ffffff;
}
/*.text-holder-1 {
    padding: 0 1rem;
}*/
#primary ul {
    padding-left: 0.4125em;
}
#primary li {
    margin-bottom: 0.4125em;
}
p, main li {
    line-height: 1.6em;
}
.img-container {
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 0.75em;
    padding-bottom: 1.4em;
}
.img-container img {
    max-width: 100%;
}
/* START scroll bars */
.scroll-holder {
    scrollbar-color: #CCCCCC transparent;
    scrollbar-width: thin;

    padding-right: calc(15px * var(--ui-scale));
    margin-left: calc(15px * var(--ui-scale));
    /* prevent overscrolling vertically on mobile devices */
    overscroll-behavior-y: none;
}
.scroll-holder::-webkit-scrollbar {
    width: 4px;
    border-radius: calc(2px * var(--ui-scale));
    background-color: transparent;
}
.scroll-holder::-webkit-scrollbar-thumb {
    background-color: #CCCCCC;
}
.scroll-holder::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff;
}
/* END scroll bars */



/* START Special layout overrides */
.empty-layout header,
.empty-layout footer {
    display: none;
}
.empty-layout #page {
    /* don't center it, as it can be bad UX if it's below the fold */
    /*align-items: center;
    justify-content: center;*/
}
.empty-layout #primary {
    margin-left: auto;
    padding-top: 3.9em;
}
/* END Special layout overrides */