:root {
    /* color base */
    --white: #fff;
    --black: #05050f;

    --gray-25: #fcfcfc;
    --gray-50: #f9f9f9;
    --gray-75: #f3f3f3;
    --gray-100: #ededed;
    --gray-150: #dfdfdf;
    --gray-200: #cdcdcd;
    --gray-250: #b9b9b9;
    --gray-300: #afafaf;
    --gray-350: #9f9f9f;
    --gray-400: #8f8f8f;
    --gray-450: #767676;
    --gray-550: #4f4f4f;
    --gray-600: #414141;
    --gray-650: #393939;
    --gray-700: #303030;
    --gray-750: #282828;
    --gray-800: #212121;
    --gray-850: #1c1c1c;
    --gray-900: #181818;
    --gray-925: #161616;
    --gray-950: #131313;
    --gray-975: #101010;
    --gray-1000: #0d0d0d;

    /* color palette */
    --color-brand-green: #6cb88d;
    --color-brand-navy: #00334c;
    --color-brand-blue: #0099cb;

    --color-text: var(--gray-950);
    --color-text-muted: var(--gray-550);
    --color-surface: var(--white);
    --color-surface-secondary: var(--gray-100);
    --color-surface-tertiary: #e6e6e6;
    --color-border: #ccc;
    --color-marketing-list-item: var(--color-blue-dark);
    --color-marketing-supporting-text: var(--color-blue);
    --color-link: #09c;
    --color-footer-fg: var(--white);
    --color-footer-bg: #1a1a1a;

    --color-error: var(--color-red);
    --color-success: #258656;

    --green-theme-callout-bg: color-mix(in lch, #03a28d 25%, transparent);
    --green-theme-callout-fg: var(--color-text);
    --white-theme-callout-bg: var(--white);
    --white-theme-callout-fg: var(--black);

    --modal-bg: var(--color-surface-secondary);
    --modal-fg: var(--color-text);

    /* typography */
    --font-sans: "Hind", system-ui, sans-serif;
    --font-serif: Georgia;
    --font-display: "Playfair Display", sans-serif;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --leading-none: 1;
    --leading-xs: 1.15;
    --leading-sm: 1.4;
    --leading: 1.6;

    --font-size-xxs: 0.75rem;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.875rem;
    --font-size-alt: 0.925rem;
    --font-size: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-h4: 1.375rem;
    --font-size-h3: 1.875rem;
    --font-size-h2: 2.125rem;
    --font-size-h1: 3rem;

    /* sizing */
    --spacing: 0.25rem;
    --header-height: 4rem;
    --progress-bar-height: 6px;
    --anchor-offset: calc(var(--header-height) + 1.5rem);
    --1fr: minmax(0, 1fr);

    --wrapper-xs: 40rem;
    --wrapper-sm: 50rem;
    --wrapper: 68rem;
    --wrapper-article: 58rem;

    --space-xs: 0.125rem;
    --space-sm: 0.25rem;
    --space: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2x: 2.25rem;
    --space-3x: 4rem;
    --space-4x: 6rem;
    --space-5x: 10rem;

    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.625rem;
    --radius-xl: 0.75rem;
    --radius-pill: 9999px;

    /* shadows */
    --shadow-lg: 0 3px 6px rgb(3 7 18 / 0.04), 0 10px 24px rgb(3 7 18 / 0.08);
    --shadow-keyline: 0px 0px 0px 1px;

    /* elevation */
    --z-below: -1;
    --z-above: 100;
    --z-tooltip: 300;
    --z-header: 500;

    /* animation */
    --transition-duration-fastest: 0.15s;
    --transition-duration-faster: 0.2s;
    --transition-duration-fast: 0.3s;
    --transition-duration: 0.4s;
    --transition-duration-slow: 0.6s;
    --transition-duration-slower: 0.8s;
    --transition-duration-slowest: 1s;

    --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
    --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
    --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
    --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
    --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
    --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
    --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
    --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);

    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    overflow-x: hidden;
    position: relative;
    font-size: 100%;
    scroll-padding-top: var(--anchor-offset);
    background-color: var(--color-surface);
    color: var(--color-text);
}

a {
    color: inherit;
}

.page {
    position: relative;
}

.l-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--wrapper);
    margin-inline: auto;
    padding-inline: 1rem;
}

.icon {
    color: var(--icon-color, inherit);
    display: flex;
    flex-shrink: 0;
    min-width: 16px;

    & > svg {
        width: 100%;
        height: auto;
    }
}

.list {
    --list-gap: calc(var(--spacing) * 2);
    display: flex;
    flex-direction: column;
    gap: var(--list-gap, 0);
    padding-inline-start: 1em;

    li {
        line-height: var(--leading-none);

        &::marker {
            color: var(--list-bullet-color, inherit);
        }
    }

    &.bullet-square {
        list-style-type: square;
    }
}

.copyright {
    font-size: 14px;
    font-family: var(--font-sans);
    font-style: italic;
}

/**
 * ------------------------------------------
 * prose
 * ------------------------------------------
 **/
.prose {
    --flow-gap: calc(var(--spacing) * 6);
    --list-gap: calc(var(--spacing) * 3);
    --prose-hr-color: var(--color-border);
    --prose-heading-color: var(--color-text);
    --prose-body-color: var(--color-text-muted);
    --prose-bold-color: var(--color-text);

    font-size: 1rem;
    line-height: var(--leading);
    font-family: var(--prose-font, inherit);
    color: var(--prose-body-color);

    /* default flow gap */
    :where(:not(.not-prose, .not-prose *)) + :where(:not(.not-prose, .not-prose *)) {
        margin-top: var(--flow-gap);
    }

    /* lists */
    :where(ul, ol):not(.not-prose, .not-prose *) {
        padding-left: calc(var(--spacing) * 6);
        /*list-style-type: square;*/
    }

    :where(ul li, ol li):not(.not-prose, .not-prose *) {
        padding-left: calc(var(--spacing) * 3);
    }

    :where(ul.no-gap, ol.no-gap):not(.not-prose, .not-prose *) {
        --list-gap: 0;
    }

    :where(ol li):not(.not-prose, .not-prose *) {
        &::marker {
            font-weight: 700;
        }
    }

    :where(ul li + li, ol li + li):not(.not-prose, .not-prose *) {
        margin-top: var(--list-gap);
    }

    /* divider */
    hr:where(:not(.not-prose, .not-prose *)) {
        margin-block: calc(var(--spacing) * 10);
        border-color: var(--prose-hr-color);
        height: 0;
        border-width: 0;
        border-top-width: 1px;
    }

    /* headings */
    :is(h1, h2, h3, h4, h5) {
        font-family: var(--font-display);
        color: var(--prose-heading-color);
    }

    h2 {
        font-size: clamp(22px, 4vw, 36px);
        line-height: var(--leading-xs);
        font-weight: 900;
        text-wrap: pretty;
        margin-top: calc(var(--spacing) * 6);
        margin-bottom: calc(var(--spacing) * 5);
    }

    h3 {
        font-size: clamp(20px, 3vw, 28px);
        line-height: var(--leading-xs);
        font-weight: 900;
        text-wrap: pretty;
        margin-top: calc(var(--spacing) * 6);
        margin-bottom: calc(var(--spacing) * 5);
    }

    h4 {
        font-size: clamp(18px, 3vw, 24px);
        line-height: var(--leading-xs);
        font-weight: 900;
        text-wrap: pretty;
        margin-top: calc(var(--spacing) * 4);
        margin-bottom: calc(var(--spacing) * 3);
    }

    ul,
    ol {
        font-family: var(--font-sans);
    }

    strong {
        color: var(--prose-bold-color);
        font-weight: 700;
    }

    /* table */
    table {
        --list-gap: calc(var(--spacing) * 1);
        margin-block: calc(var(--spacing) * 4);
        border-radius: var(--radius-md);
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-top: 3px solid var(--color-brand-green);
        width: 100%;
        table-layout: auto;
        font-size: 0.875rem;
        line-height: var(--leading-sm);
        font-family: var(--font-sans);
        text-align: left;
        color: var(--prose-body-color);
        border-collapse: separate;
        border-spacing: 0;
        box-shadow: var(--shadow-lg);
    }

    thead {
        background-color: var(--gray-50);

        th {
            padding-inline: calc(var(--spacing) * 5);
            padding-block: calc(var(--spacing) * 4);
            font-weight: var(--font-weight-semibold);
            color: var(--prose-heading-color);
            border-bottom: 1px solid var(--color-border);
            font-size: 0.875rem;
        }
    }

    tbody {
        td,
        th {
            border-bottom: 1px solid var(--color-border);
            padding-inline: calc(var(--spacing) * 5);
            padding-block: calc(var(--spacing) * 4);
            vertical-align: top;
        }

        th {
            font-weight: var(--font-weight-medium);
            color: var(--prose-body-color);
        }

        tr:nth-child(even) {
            background-color: var(--gray-50);
        }
    }

    tbody tr:last-child td,
    tbody tr:last-child th {
        border-bottom: none;
    }

    tr > td:not(:first-child),
    tr > th:not(:first-child) {
        border-left: 1px solid var(--color-border);
    }
}

/**
 * ------------------------------------------
 * components
 * ------------------------------------------
 **/
.button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    text-transform: var(--button-text-transform, none);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-sans);
    border-radius: var(--button-radius, 5px);
    background-color: var(--button-bg, var(--color-brand-blue));
    color: var(--button-fg, var(--white));
    padding-inline: var(--button-padding-x, 20px);
    height: var(--button-height, 48px);
    width: var(--button-width, fit-content);
    outline: none;
    box-shadow: none;
    border: none;
    transition: background-color 0.2s var(--ease-out-cubic);
    gap: 6px;

    /*&:hover {

    }*/

    &.type-success {
        --button-bg: var(--color-success);
    }
    &.type-white {
        --button-fg: var(--color-blue);
        --button-bg: var(--color-white);
    }
    &[data-variant=outline] {
        --button-bg: transparent;
        --button-fg: var(--color-brand-blue);
        background-color: transparent;
        border: 1.5px solid var(--button-border, var(--button-fg));
    }

    &[data-size=medium] {
        font-size: 14px;
        --button-padding-x: 16px;
        letter-spacing: -0.3px;
    }

    &[data-size=small] {
        font-size: 12px;
        --button-height: 32px;
        --button-padding-x: 14px;
    }

    &[target="_blank"]::after {
        content: "";
        height: 18px;
        width: 18px;
        display: block;
        background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20width%3D%2218%22%20height%3D%2218%22%20fill%3D%22none%22%20viewBox%3D%220%200%2018%2018%22%20style%3D%22stroke%3A%20none%3B%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M3.75%2015.75c-.413%200-.766-.147-1.06-.44a1.445%201.445%200%200%201-.44-1.06V3.75c0-.413.147-.766.44-1.06.294-.293.647-.44%201.06-.44H9v1.5H3.75v10.5h10.5V9h1.5v5.25c0%20.412-.147.766-.44%201.06a1.45%201.45%200%200%201-1.06.44H3.75Zm3.525-3.975-1.05-1.05L13.2%203.75h-2.7v-1.5h5.25V7.5h-1.5V4.8l-6.975%206.975Z%22%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
}

/**
 * ------------------------------------------
 * other
 * ------------------------------------------
 **/
.star-rating {
    --rating: 0;
    --star-size: 16px;
    --star-gap: 2px;
    --star-empty: #d1d5db;
    --star-fill: var(--color-text);
    position: relative;
    display: inline-block;
    font-size: var(--star-size);
    line-height: 1;
    color: var(--star-empty);
    letter-spacing: var(--star-gap);
    font-family: var(--font-sans);

    &::before {
        content: "★★★★★";
    }

    &::after {
        content: "★★★★★";
        position: absolute;
        left: 0;
        top: 0;
        display: block;
        width: var(--rating-percent, calc((var(--rating, 0) / 5) * 100%));
        color: var(--star-fill);
        overflow: hidden;
        white-space: nowrap;
    }

    &.type-success {
        --star-fill: var(--color-success);
    }
}

.star-rating-value {
    margin-left: 6px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.star-rating-wrapper {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.accordion-group {
    position: relative;
    border-top: 1px solid var(--color-border);
}

.accordion-item {
    --accordion-space: calc(var(--spacing) * 4);
    font-family: var(--font-sans);
    border-bottom: 1px solid var(--color-border);

    .accordion-title {
        padding-block: var(--accordion-space);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 32px;
        cursor: pointer;
        font-size: clamp(18px, 3vw, 22px);
        font-weight: 700;
        line-height: var(--leading-xs);
        text-wrap: pretty;

        @media (min-width: 768px) {
            --accordion-space: calc(var(--spacing) * 6);
        }

        /* disable default marker */
        &::marker {
            content: "";
        }

        &::after {
            content: "";
            background-image: url("data:image/svg+xml,%3Csvg%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20fill%3D'none'%20stroke%3D'currentColor'%20stroke-width%3D'2'%20d%3D'm2%208.35l10.173%209.823L21.997%208'/%3E%3C/svg%3E");
            height: 14px;
            width: 14px;
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;
            transition: transform 150ms ease;
            flex-shrink: 0;
        }
    }

    &[open] > .accordion-title::after {
        transform: rotate(180deg);
    }

    .accordion-content {
        padding-bottom: var(--accordion-space);
    }
}

@media (width <= 1024px) {
    .desktop-only {
        display: none;
    }
}

#student-loan-faqs {
    margin-block-start: 0;
}

:has(> #student-loan-faqs) {
    margin-block: 6rem;

    @media (width < 1024px) {
        margin-block: 3rem;
    }
}

#student-loan-faqs ~ div > .accordion-group {
    .accordion-title::after {
        content: "View";
        background-image: none;
        height: auto;
        width: auto;
        color: var(--color-brand-green);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        transform: none;
    }

    .accordion-item[open] > .accordion-title::after {
        content: "Close";
    }

    .accordion-content > *:not(:last-child) {
        margin-bottom: 1rem;
    }
}
