.onyx-scroll-to-top {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
    background-color: white;
    font-size: 32px;
    line-height: 32px;
    padding: 6px;
    border: 2px solid #BF8F00;
    border-radius: 8px;
    color: #BF8F00;
}


html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

/* Fixed header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Scrollable content area */
.page-wrapper {
    flex: 1 0 auto;
    margin-top: 127px; /* Adjust based on your navbar height */
    padding-bottom: 60px; /* Add space for fixed footer - adjust based on footer height */
    overflow-y: auto;
}

/* On desktop the header is the 64px logo + 2 x 8px navbar padding + 5px gold border = 85px */
@media (min-width: 992px) {
    .page-wrapper {
        margin-top: 85px;
    }
}

/* Fixed footer */
.onyx-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    flex-shrink: 0;
}

/* Disclaimer dialog backdrop: Bootstrap appends it to <body>, outside MainLayout's scoped CSS,
   so it's styled here to match the navy tint used by the site's other dialogs. */
body:has(#disclaimerModal.show) .modal-backdrop.show {
    background-color: #141836;
    opacity: 0.55;
    backdrop-filter: blur(3px);
}