* {
    box-sizing: border-box;
}

:root {
    --nde-navy: #1f1648;
    --nde-blue: #2f3f8f;
    --nde-blue-dark: #25327b;
    --border: #c7cdd1;
    --light-border: #e3e6e8;
    --text: #111111;
    --muted: #5f6670;
    --white: #ffffff;
    --hover: #f3f5f7;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

a {
    color: var(--nde-navy);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 16px 40px;
}

.discovery-panel {
    width: min(100%, 470px);
    border: 4px solid var(--nde-navy);
    border-radius: 4px;
    padding: 16px;
}

.brand-header {
    border: 2px solid var(--nde-navy);
    border-bottom: 0;
    padding: 24px 20px 14px;
    text-align: center;
}

.nde-logo {
    width: min(220px, 78%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-left: 2px solid var(--nde-navy);
    border-right: 2px solid var(--nde-navy);
    padding: 18px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-button,
.back-button {
    appearance: none;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition:
        opacity 120ms ease,
        transform 120ms ease,
        background 120ms ease;
}

.choice-button {
    min-height: 106px;
    padding: 14px 12px;
    background: var(--nde-blue-dark);
    color: var(--white);
    line-height: 1.45;
    font-size: 16px;
    text-align: center;
}

.choice-button:hover,
.choice-button:focus-visible {
    opacity: 0.93;
    transform: translateY(-1px);
}

.choice-button:focus-visible,
.back-button:focus-visible,
.search-input:focus-visible,
.institution-item:focus-visible {
    outline: 3px solid rgba(47, 63, 143, 0.28);
    outline-offset: 2px;
}

.help-text {
    margin: 14px 0 0;
    text-align: center;
    line-height: 1.45;
}

.section-title {
    margin: 0 0 12px;
    color: var(--nde-blue-dark);
    font-size: 18px;
}

.search-input {
    width: 100%;
    height: 42px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    background: var(--white);
}

.institution-list {
    max-height: 390px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

.institution-item {
    width: 100%;
    display: block;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: var(--white);
    color: var(--text);
    padding: 11px 13px;
    text-align: left;
    cursor: pointer;
    line-height: 1.35;
}

.institution-item:last-child {
    border-bottom: 0;
}

.institution-item:hover,
.institution-item:focus-visible {
    background: var(--hover);
}

.institution-divider {
    height: 1px;
    margin: 6px 12px;
    background: var(--border);
}

.no-results {
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

.back-button {
    width: 100%;
    margin-top: 14px;
    padding: 11px 14px;
    background: var(--white);
    color: var(--nde-blue-dark);
}

.back-button:hover {
    background: var(--hover);
}

.site-footer {
    border: 2px solid var(--nde-navy);
    border-top: 0;
    padding: 22px 12px 10px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 520px) {
    .page-shell {
        padding: 10px;
    }

    .discovery-panel {
        border-width: 2px;
        padding: 10px;
    }

    .brand-header {
        padding: 18px 14px 10px;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }

    .choice-button {
        min-height: 76px;
    }

    .institution-list {
        max-height: 52vh;
    }
}

.instructure-watermark {
    display: none;
}
