body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body>.container-fluid {
    flex: 1 0 auto;
}

.module-page {
    padding: 6px 6px;
    min-width: 0;
}

.strategies-main {
    max-height: calc(100vh - 32px);
    /* overflow: hidden; */
    background: F2EDD2 !important;
    overflow-y: scroll;
}

.strategies-main .paper-box {
    margin-bottom: 20px;
}

/* dyslexia toggle */

.ps-navswitch {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 100%;
    padding: 0 10px;
    margin: 0;
}

/* Switch track */
.ps-navswitch .form-check-input {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    width: 40px;
    height: 22px;

    margin: 0;

    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.25);

    background-color: rgba(0, 0, 0, 0.10);

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

/* Switch knob */
.ps-navswitch .form-check-input::before {
    content: "";

    position: absolute;
    top: 2px;
    left: 2px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background-color: #ffffff;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);

    transition: transform 0.15s ease;
}

/* Checked state */
.ps-navswitch .form-check-input:checked {
    background-color: rgba(0, 0, 0, 0.30);
    border-color: rgba(0, 0, 0, 0.35);
}

.ps-navswitch .form-check-input:checked::before {
    transform: translateX(18px);
}

/* Focus (keyboard accessibility) */
.ps-navswitch .form-check-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(0, 0, 0, 0.18);
}

/* Label */
.ps-navswitch .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin: 0;

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;

    color: var(--bs-navbar-color);

    white-space: nowrap;
    cursor: pointer;
}

/* Icon */
.ps-navswitch .form-check-label i {
    font-size: 0.95em;
    opacity: 0.75;
}

/* Slight emphasis when active */
body.dyslexia-font .ps-navswitch .form-check-label {
    font-weight: 600;
}

.navbar {
    background-image: linear-gradient(90deg, #EDDABF 0%, #F2EDD2 100%) !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.navbar .navbar-brand {
    color: #4C6B00 !important;
}

.navbar .navbar-brand .svg-inline--fa {
    color: #4C6B00 !important;
}

.navbar .navbar-brand .svg-inline--fa path {
    fill: currentColor !important;
}

/* paper strategy nav */

.ps-reading-tabs-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ps-reading-tabs-stack>.bslib-navset {
    width: 100%;
}

.ps-tab-nav-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.ps-tab-nav {
    width: min(520px, 100%);
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 16px;

    padding: 14px 16px;
    border-radius: 18px;

    background: rgba(43, 54, 43, 0.045);
    border: 1px solid rgba(43, 54, 43, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.ps-tab-nav .ps-nav-prev,
.ps-tab-nav .ps-nav-next {
    border-radius: 999px !important;
    padding: 10px 18px !important;

    font-weight: 700 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.02em;

    border: 1px solid rgba(43, 54, 43, 0.24) !important;
    background: rgba(255, 253, 246, 0.90) !important;
    color: rgba(43, 54, 43, 0.92) !important;

    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) !important;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
    min-width: 150px;
}

.ps-tab-nav .ps-nav-next {
    background: rgba(75, 107, 7, 0.16) !important;
    border-color: rgba(75, 107, 7, 0.30) !important;
}

.ps-tab-nav .ps-nav-prev:hover,
.ps-tab-nav .ps-nav-prev:focus,
.ps-tab-nav .ps-nav-next:hover,
.ps-tab-nav .ps-nav-next:focus {
    background: rgba(75, 107, 7, 0.22) !important;
    border-color: rgba(75, 107, 7, 0.40) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06), 0 14px 22px rgba(0, 0, 0, 0.08) !important;
    outline: none !important;
}

.ps-tab-nav .ps-nav-prev:disabled,
.ps-tab-nav .ps-nav-next:disabled {
    opacity: 0.45 !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}