:root {
    color-scheme: light;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #172033;
    background: #f3f6fb;
    --primary: #155eef;
    --primary-dark: #0b47bd;
    --surface: #ffffff;
    --border: #d8dfeb;
    --muted: #5f6b7c;
    --success: #18794e;
    --danger: #b42318;
    --shadow: 0 12px 32px rgb(31 42 68 / 10%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f3f6fb;
}

a {
    color: var(--primary-dark);
}

a:hover {
    text-decoration-thickness: 2px;
}

.site-header {
    color: #ffffff;
    background: #13213c;
}

.site-header__inner,
.page {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
}

.brand {
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav a {
    color: #ffffff;
}

.page {
    padding-block: 2rem 4rem;
}

.page--narrow {
    max-width: 620px;
}

.card,
.program-list > li,
.application-list > li {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stack {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 650;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #aeb8c8;
    border-radius: 0.45rem;
    background: #ffffff;
}

button,
.button {
    display: inline-block;
    width: auto;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.45rem;
    color: #ffffff;
    background: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
}

button:disabled {
    color: #49556a;
    background: #d9e0eb;
    cursor: not-allowed;
}

.button--secondary {
    color: #172033;
    background: #e8edf5;
}

.button--danger {
    background: var(--danger);
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

.inline-form > div {
    flex: 1 1 220px;
}

.program-list,
.application-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.program-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.program-list h3,
.application-list h3 {
    margin-top: 0;
}

.status {
    min-height: 1.5rem;
    color: var(--muted);
    font-weight: 650;
}

.status--error {
    color: var(--danger);
}

.status--success {
    color: var(--success);
}

.meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1rem;
}

.meta dt {
    font-weight: 700;
}

.meta dd {
    margin: 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-block: 1rem;
}

.muted {
    color: var(--muted);
}

@media (max-width: 640px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .page {
        padding-top: 1.25rem;
    }
}
