/* Minimal reboot + the Bootstrap utilities this layout still uses.
   Full Bootstrap CSS/JS is not loaded. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    line-height: 1.5;
}

img,
svg {
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--vg-gold-soft, #58cef6);
    text-decoration: none;
}

a:hover {
    color: var(--vg-gold-hover, #8ae2ff);
}

table {
    border-collapse: collapse;
}

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.min-vh-100 { min-height: 100vh !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.order-3 { order: 3 !important; }

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.position-relative { position: relative !important; }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }

.border-top { border-top: 1px solid var(--vg-line, #202832) !important; }
.border-bottom { border-bottom: 1px solid var(--vg-line, #202832) !important; }

.text-center { text-align: center !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-decoration-none { text-decoration: none !important; }
.text-success { color: var(--vg-jade, #7dc98a) !important; }
.text-danger { color: var(--vg-blood, #c9301f) !important; }
.fw-semibold { font-weight: 600 !important; }
.small, small { font-size: 0.875em; }
.h5 { font-size: 1.25rem; }

.row {
    display: flex;
    flex-wrap: wrap;
}
.row.g-3 { gap: 1rem; }
.col-12 {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.collapse:not(.show) {
    display: none;
}

@media (min-width: 576px) {
    .col-sm-6 {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    .p-md-4 { padding: 1.5rem !important; }
    .p-md-5 { padding: 3rem !important; }
    .gap-md-5 { gap: 3rem !important; }
}

@media (min-width: 992px) {
    .flex-lg-row { flex-direction: row !important; }
    .flex-lg-grow-1 { flex-grow: 1 !important; }
    .align-items-lg-center { align-items: center !important; }
    .justify-content-lg-center { justify-content: center !important; }
    .gap-lg-4 { gap: 1.5rem !important; }
    .order-lg-2 { order: 2 !important; }
    .order-lg-3 { order: 3 !important; }
    .mt-lg-0 { margin-top: 0 !important; }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }
}
