/* Account forms retain the existing light palette and shared control styles. */
.profile-page{max-width:1080px;padding-block:22px 30px}
.profile-page>.page-heading{display:block;text-align:left;margin-bottom:16px}
.profile-page>.page-heading h1{font-size:30px;margin-block:3px 5px}
.profile-page>.page-heading p{margin-bottom:0}
.profile-settings{padding-block:14px 18px}
.profile-settings>.page-heading{margin-bottom:10px}
.profile-settings .profile-card{padding:16px}
.profile-settings .profile-card h2,.profile-settings .profile-card .login-field,.profile-settings .profile-help{margin-bottom:8px}
.profile-settings .profile-account-summary{margin-bottom:8px;padding-bottom:8px}
.profile-settings .profile-reminder-toggle{min-height:36px}
.profile-settings .password-guidance{margin:0}
.profile-settings #password-match:empty{margin:0}
.profile-columns{display:grid;gap:10px;align-items:start}
.profile-columns>*{min-width:0}
.profile-side{border-top:1px solid var(--divider);padding-top:10px}
@media(min-width:768px){
 .profile-columns:has(>.profile-side){grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:20px}
 .profile-side{border-top:0;padding-top:0;border-left:1px solid var(--divider);padding-left:20px}
 .profile-password-layout .password-guidance{grid-column:2;grid-row:1 / span 2}
}
.profile-tabs:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
.profile-tabs .button{min-width:0;min-height:40px;justify-content:center;text-align:center;padding:6px;font-size:13px;line-height:1.25}
.profile-tabs .button[aria-selected="true"]{background:#eaf3ff;border-color:#245ca0;border-bottom-width:3px;color:#123c69}
.profile-tabs .button:focus-visible,.profile-panels [role="tabpanel"]:focus-visible{outline:2px solid #2386b9;outline-offset:2px}
.profile-tabs[hidden] + .profile-panels > .profile-card + .profile-card{margin-top:12px}
.profile-panels .validation-summary-valid{display:none}
.profile-card{min-width:0;padding:20px;background:#fff;border:1px solid var(--line);border-radius:16px}
.profile-card h2{font-size:22px;margin-bottom:12px}
.profile-card h3{font-size:17px;margin-bottom:9px}
.profile-account-summary{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--divider)}
.profile-account-summary>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:baseline;margin-bottom:5px}
.profile-account-summary>div:last-child{margin-bottom:0}
.profile-account-summary dt{font-size:12px;color:#365574}
.profile-account-summary dd{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:0}
.profile-card hr{margin-block:17px}
.profile-card .login-field{margin-bottom:12px}
.profile-card .login-field label{font-size:14px;margin-bottom:4px}
.profile-card .login-field input{width:100%;min-width:0;min-height:44px;padding:8px 12px;font-size:16px;line-height:1.4}
.profile-card small,.profile-help{display:block;font-size:13px;line-height:1.5}
.profile-card .profile-help{margin-bottom:12px}
.profile-card .text-danger{display:block;font-size:13px}
.profile-card .button{min-height:44px;font-size:14px;padding:8px 15px}
.profile-card fieldset{min-width:0}
.profile-card fieldset:disabled input{background:#eaf0f5;color:var(--muted)}
.profile-status{padding:10px 12px;border:1px solid #9acdbb;background:#edfbf5;border-radius:9px;color:#14593f;overflow-wrap:anywhere}
.profile-status p{margin-bottom:7px}
.profile-status .text-link{min-height:44px;color:#14593f;background:none;border:0;padding:8px 0;text-decoration:underline;font:inherit;cursor:pointer}
.profile-card input:focus-visible{outline:3px solid #2386b9;outline-offset:2px}
.courses-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.course-option{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.course-option h2{overflow-wrap:anywhere;margin:0}
.password-guidance{font-size:13px;margin:0 0 15px}
#password-strength{display:block;width:100%;height:10px;margin:6px 0 9px}
#password-requirements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;padding:0;margin:0 0 9px;list-style:none;font-size:12px;line-height:1.6}
#password-requirements [data-rule=length]{grid-column:1 / -1}
#password-requirements [data-met=true],#password-policy-status[data-met=true],#password-match[data-met=true]{color:#14593f}
#password-policy-status{font-size:13px;margin:0 0 4px}
.password-guidance small{font-size:12px}
#password-match{font-size:13px;margin:5px 0 0}
#password-match[data-met=false]{color:#b13f43}
.profile-confirm-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100svh - 32px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#183548;box-shadow:0 18px 70px #00152d40}
.profile-confirm-dialog::backdrop{background:#031b3899}
.profile-confirm-dialog[open]{animation:digilearn-soft-reveal 220ms ease-out both}
.profile-confirm-dialog h2{font-size:23px;margin:0 0 12px}
.profile-confirm-dialog p{font-size:14px;line-height:1.6;margin-bottom:20px}
.profile-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.profile-confirm-actions .button{min-height:44px;padding:8px 15px;font-size:14px}
@media(prefers-reduced-motion:reduce){.profile-confirm-dialog[open]{animation:none}}
/* Decorative icons share dimensions; active and expanded styles remain in shared CSS. */
.navigation-icon{width:15px;height:15px;flex:0 0 15px}
.site-header nav .learning-nav-link,.authenticated .site-header nav .logout-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;min-height:44px;padding:8px 7px}
.authenticated .header-inner{gap:14px;flex-wrap:nowrap}
.authenticated .header-inner nav{gap:4px;flex-wrap:nowrap}
.authenticated .header-inner nav form{margin:0}
.authenticated .header-inner nav .nav-signout{margin-left:auto;justify-self:end}

/* Keep learner actions on one line and scroll only the menu when space runs out. */
.authenticated:not(.admin-user) .header-inner{flex-wrap:nowrap}
.authenticated:not(.admin-user) .header-inner nav{
    display:flex;
    position:relative;
    flex:0 1 auto;
    flex-wrap:nowrap;
    min-width:0;
    max-width:100%;
    justify-content:safe center;
    overflow-x:auto;
    padding:4px;
    scrollbar-width:thin;
}
.authenticated:not(.admin-user) .header-inner nav > *{flex-shrink:0}
@media(min-width:1280px) and (max-width:1499px){
    .authenticated:not(.admin-user) .header-inner nav{font-size:12px}
    .authenticated:not(.admin-user) .site-header nav :is(.learning-nav-link,.logout-button){padding-inline:5px}
}
@media(max-width:1279px){
    .authenticated:not(.admin-user) .header-inner{flex-direction:column;padding-block:8px;gap:4px}
    .authenticated:not(.admin-user) .header-inner nav{width:100%}
}

.authenticated:not(.admin-user) .site-header nav :is(.learning-nav-link,.logout-button){
    color:#263c53;
    background:#f7f8fa;
    border-color:#dce2e8;
    border-radius:7px;
    font-weight:400;
    box-shadow:none;
    transition:none;
}
.authenticated:not(.admin-user) .site-header nav :is(.learning-nav-link,.logout-button) .navigation-icon{
    color:#526373;
}
.authenticated:not(.admin-user) .site-header nav :is(.learning-nav-link,.logout-button):hover{
    background:#eef7f3;
    border-color:#bdd8cc;
}
.authenticated:not(.admin-user) .site-header nav .learning-nav-link:is([aria-current="page"],[aria-expanded="true"]){
    color:#17594a;
    background:#e9f7f0;
    border-color:#abd4c5;
    font-weight:600;
    box-shadow:inset 0 -2px #119f89;
}
.authenticated:not(.admin-user) .site-header nav :is(.learning-nav-link,.logout-button):focus-visible{
    outline:2px solid #526373;
    outline-offset:2px;
}
@media(min-width:768px) and (max-width:1279px){
 .admin-user .header-inner{flex-direction:column;padding-block:8px;gap:6px}
 .admin-user .header-inner nav{display:grid;grid-template-columns:repeat(4,max-content);justify-content:center;justify-items:start;gap:5px}
}
@media(max-width:767px){
 .courses-grid{grid-template-columns:1fr}
 .profile-page{padding-block:18px 25px}
 .profile-card{padding:17px}
 .profile-page>.page-heading h1{font-size:27px}
 .profile-card .button{width:100%}
 .profile-account-summary>div{grid-template-columns:100px minmax(0,1fr);gap:8px}
 .learning-page .header-inner{flex-wrap:wrap;justify-content:center}
 .authenticated .header-inner{gap:6px}
 .admin-user .header-inner nav{display:flex;width:100%;flex-wrap:wrap;justify-content:center;gap:4px}
 .authenticated .site-header .header-inner nav .learning-nav-link,.authenticated .site-header .header-inner nav .logout-button{min-height:44px;padding:7px 6px;gap:5px}
}
@media(min-width:390px) and (max-width:767px){
 .admin-user .header-inner nav{display:grid;grid-template-columns:repeat(3,max-content);justify-items:center}
 .admin-user .header-inner nav .nav-signout{grid-column:3}
}
.activation-page{max-width:580px}
.activation-page label{display:block;font-weight:600;margin-block:10px 5px}
.activation-page input:not([type=hidden]){display:block;width:100%;padding:10px;border:1px solid var(--control-border);border-radius:7px}
.activation-page .button{margin-top:16px}
.profile-reminder-toggle{display:flex;align-items:center;gap:8px;min-height:44px}
.profile-reminder-toggle input[type=checkbox]{width:16px;height:16px;flex-shrink:0;margin:0}
.profile-reminder-toggle input:focus-visible{outline:2px solid #0e59c0;outline-offset:2px}
.activation-page .validation-summary-valid{display:none}
