/* Small brand and accessibility adjustments; layout/components use Dore. */
.portal-login-logo { width: 240px; max-width: 100%; height: auto; }
.portal-login-logo-vertical { width: 160px; }
.portal-nav-logo { width: 12vw; max-width: 200px; height: auto; min-width: 150px; }
.auth-card .image-side.portal-intro { background-image: none; }
.portal-nav-brand { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
.portal-icon { font-size: 2rem; }
.portal-course-title { font-size: 1.15rem; line-height: 1.6; }
.portal-login-title { font-size: 1.6rem; }
.portal-proxy-list { max-height: 320px; overflow-y: auto; }
button:focus-visible, a:focus-visible { outline: 2px solid #184f90; outline-offset: 4px; }
@media (max-width: 575px) {
    .navbar { flex-wrap: nowrap; }
    .navbar .navbar-left { flex: 0 0 28px; width: auto; }
    .navbar .navbar-right { flex: 0 0 auto; width: auto; }
    .portal-nav-brand { position: static; transform: none; flex: 1; }
}

/* Selected course: clear title hierarchy and compact supporting details. */
.portal-course-summary .card-body { padding: 28px; }
.portal-course-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.portal-course-summary .portal-course-label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; color: rgba(255,255,255,.78); }
.portal-course-heading .badge { flex-shrink: 0; font-size: 11px; padding: 6px 9px; }
.portal-course-summary .portal-course-title { margin: 0 0 18px; font-size: 22px; font-weight: 600; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.portal-course-details { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.portal-course-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.portal-course-meta p { margin: 0; font-size: 14px; line-height: 1.7; font-weight: 400; }
.portal-course-meta .portal-course-category { color: rgba(255,255,255,.72); font-size: 13px; }
.portal-course-change { flex-shrink: 0; font-size: 12px; line-height: 1.5; padding: 9px 16px; }
.portal-course-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.portal-course-note > i { font-size: 16px; line-height: 21px; color: rgba(255,255,255,.8); }
.portal-course-note h3 { margin: 0 0 4px; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.6; }
.portal-course-note p, .portal-course-empty { margin: 0; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 400; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 575px) {
    .portal-course-summary .card-body { padding: 22px; }
    .portal-course-summary .portal-course-title { font-size: 19px; margin-bottom: 14px; }
    .portal-course-meta { display: block; }
    .portal-course-meta .portal-course-category { margin-top: 4px; }
    .portal-course-note { margin-top: 18px; padding-top: 16px; }
}
.portal-course-change[aria-expanded="true"] .simple-icon-arrow-down { display: inline-block; transform: rotate(180deg); }
.portal-course-options { max-height: 420px; overflow-y: auto; }
.portal-course-options .list-group-item { gap: 12px 16px; padding: 16px; }
.portal-course-option-info { flex: 1 1 210px; min-width: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.portal-course-summary #course-options > div { border-radius: 8px !important; }
.portal-course-summary .portal-course-change.btn-outline-light:hover,
.portal-course-summary .portal-course-change.btn-outline-light:focus,
.portal-course-summary .portal-course-change.btn-outline-light[aria-expanded="true"] { color: #003753; background-color: #fff; border-color: #fff; }
.portal-result-chart { max-width: 860px; border-radius: 8px !important; }
.portal-result-chart-canvas { position: relative; height: 310px; }
.portal-result-chart[data-chart-type="radar"] { max-width: 680px; }
.portal-result-chart[data-chart-type="radar"] .portal-result-chart-canvas { height: 360px; }
@media (max-width: 575px) {
    .portal-result-chart-canvas { height: 330px; }
    .portal-result-chart[data-chart-type="radar"] .portal-result-chart-canvas { height: 270px; }
}
@media print { .portal-result-chart { display: none; } }
/* Dore page-footer, with room for contact details and links on small screens. */
body.portal-has-footer { height: auto; min-height: 100vh; padding-bottom: 0; display: flex; flex-direction: column; }
body.portal-has-footer > main { height: auto; flex: 1 0 auto; }
footer.page-footer.portal-footer { position: static; height: auto; flex-shrink: 0; padding: 24px 0; margin-top: 24px; }
.portal-footer-links { display: flex; flex-wrap: wrap; background: transparent; }
.background .portal-footer .footer-content { margin-left: 0; margin-right: 0; }
.background .portal-footer .container-fluid { max-width: 1140px; padding-left: 24px; padding-right: 24px; }
.portal-policy-frame { display: block; width: 100%; height: 72vh; min-height: 560px; border: 1px solid #e6e6e6; }
#contact { scroll-margin-top: 120px; }
@media print { footer.portal-footer { display: none !important; } }
.portal-footer p { word-break: keep-all; overflow-wrap: anywhere; }
.portal-footer .text-small { font-size: 12px; line-height: 1.7; }
/* Center authentication cards in the viewport space above the footer. */
body.portal-auth-centered > main { display: flex; align-items: center; justify-content: center; margin: 0; }
.portal-auth-centered main > .container { width: 100%; }
.portal-auth-centered main > .container > .row { height: auto !important; }
.portal-learning-list .list-item-heading { font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.portal-learning-list .card-body { width: 100%; }
