/* Portal-only refinement. Shared public-site styling stays unchanged. */
.student-portal-page { --portal-ink: #14263f; --portal-muted: #52647b; background: #f5f7fa; }
.portal-skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 12px 18px; background: #fff; color: #1e40af; border: 2px solid; }
.portal-skip-link:focus { top: 10px; }
.portal-skip-link:not(:focus) { clip-path: inset(50%); }
.student-portal-site-header { background: #102744; color: #fff; box-shadow: none; }
.student-portal-site-header-inner { min-height: 76px; gap: 18px; width: min(1280px, calc(100% - 64px)); }
.student-portal-brand { width: 92px; padding: 0; background: transparent; border-radius: 0; }
.student-portal-brand img { height: 52px; }
.portal-brand-label { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.student-portal-secure-label { color: #d1deed; font-weight: 500; }
.student-portal-secure-label svg { stroke: #d1deed; }
.portal-header-link { padding: 10px 8px; font-size: 13px; font-weight: 500; }
.portal-header-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.student-portal-back-link { border-color: #677c96; background: transparent; color: #fff; border-radius: 4px; font-weight: 500; }
.student-portal-page .student-portal-container { width: min(1280px, calc(100% - 64px)); }
.student-portal-page .student-portal-section { padding-top: 32px; }
.student-portal-page .student-portal-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.student-portal-page .student-portal-intro h1 { font-size: 30px; }
.student-portal-page .student-portal-shell { border-radius: 6px; box-shadow: none; animation: none; overflow: visible; }
.student-portal-page .student-login-view { min-height: 440px; overflow: hidden; border-radius: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.student-portal-page .student-login-form { padding: 36px 48px; }
.student-portal-page .student-login-form input, .student-portal-page .student-login-form select { min-height: 46px; border-radius: 4px; background: #fff; }
.student-portal-page .student-login-heading h3 { font-size: 25px; }
.student-portal-page .student-login-help { padding: 36px; background: #edf2f7; color: #14263f; }
.student-portal-page .student-login-help::before, .student-portal-page .student-login-help::after { display: none; }
.student-portal-page .student-login-help h3 { color: #14263f; font-size: 24px; }
.student-portal-page .student-login-help > p, .student-portal-page .student-login-help-content > p:last-of-type,
.student-portal-page .student-registration-help ol, .student-portal-page .student-registration-help > p:last-child,
.student-login-benefits li { color: #52647b; font-weight: 400; }
.student-portal-page .student-login-help .student-portal-kicker, .student-login-support span { color: #1e40af; }
.student-login-benefits li::before { border-radius: 3px; background: #dbe5f2; }
.student-login-support, .student-portal-page .student-registration-help > p:last-child { border-color: #cbd6e3; }
.student-portal-page .student-login-support a { color: #1e40af; font-weight: 500; text-decoration-color: #8fa6c8; overflow-wrap: anywhere; }
.student-portal-page .student-create-account-btn { color: #1e40af; border-color: #b0bed2; background: transparent; }
.student-portal-page .student-portal-primary-btn, .student-portal-page .student-portal-secondary-btn { min-height: 44px; border-radius: 4px; font-weight: 600; transform: none; box-shadow: none; }
.student-portal-page .student-portal-primary-btn:hover { transform: none; }
.student-portal-page .student-account-view { background: #fff; border-radius: 6px; }
.student-portal-page .student-account-header { min-height: 100px; padding: 26px 32px; background: #fff; color: #14263f; border-bottom: 1px solid #dbe4f0; border-radius: 6px 6px 0 0; }
.student-account-icon { display: none; }
.student-portal-page .student-account-header h3 { color: #14263f; font-size: 28px; }
.student-portal-page .student-account-header .student-portal-kicker { color: #52647b; font-weight: 500; letter-spacing: .04em; }
.student-portal-page .student-session-email { color: #52647b; font-weight: 400; overflow-wrap: anywhere; }
.student-session-status { color: #52647b; font-weight: 500; }
.student-session-status > span { box-shadow: none; background: #15803d; }
.student-portal-page .student-account-header .student-portal-secondary-btn { color: #14263f; border-color: #b5c1d1; background: #fff; }
.portal-record-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 24px; padding: 0 32px; border-bottom: 1px solid #dbe4f0; background: #fff; }
.portal-record-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: #52647b; }
.portal-record-nav a:hover, .portal-record-nav a[aria-current] { color: #1e40af; border-bottom-color: #1e40af; }
.student-portal-page .student-account-layout { grid-template-columns: minmax(0, 1fr) 290px; }
.student-portal-page .student-account-records { grid-column: 1; grid-row: 1; display: block; min-width: 0; }
.student-portal-page .student-account-summary { grid-column: 2; grid-row: 1; border-right: 0; border-left: 1px solid #dbe4f0; background: #f8fafc; }
.student-portal-page .student-record-section { padding: 28px 32px; }
.student-portal-page .student-information-section, .student-portal-page .student-renewal-section { padding: 28px 24px; }
.student-portal-page .student-record-section h4, .student-portal-page .student-information-section h4, .student-portal-page .student-renewal-section h4 { font-size: 18px; font-weight: 600; }
.student-portal-page .student-portal-kicker { color: #52647b; font-weight: 500; font-size: 11px; letter-spacing: .06em; }
.student-portal-page .student-record-count, .student-portal-page .student-view-only-label { border: 0; border-radius: 4px; font-weight: 500; }
.student-portal-page .student-documents-note { font-size: 13px; line-height: 1.65; }
.student-portal-page .student-document-workspace { border-radius: 4px; grid-template-columns: minmax(210px, .8fr) minmax(0, 1fr); }
.student-portal-page .student-document-nav { background: #fff; }
.student-portal-page .student-document-viewer { background: #f0f3f7; }
.student-portal-page .student-document-button { border-radius: 3px; }
.student-portal-page .student-document-workspace.folder-only { grid-template-columns: 1fr; }
.student-portal-page .student-enrollment-status, .student-portal-page .student-renewal-status { border-radius: 4px; font-weight: 500; }
.student-portal-page .student-information-list dt, .student-portal-page .student-renewal-date dt { text-transform: none; font-size: 12px; font-weight: 500; }
.student-portal-page .student-information-list dd, .student-portal-page .student-renewal-date dd { font-weight: 500; font-size: 14px; }
.student-portal-page .student-enrollment-item { border-radius: 0; background: #fff; box-shadow: none; }
#student-classes, #student-documents, #student-profile, #student-renewal { scroll-margin-top: 70px; }
.student-portal-page :is(a,button,input,select,section[tabindex]):focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.student-portal-site-footer { font-weight: 400; font-size: 12px; min-height: 56px; }
@media (max-width: 1000px) {
  .student-portal-page .student-account-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .student-portal-page .student-document-workspace { grid-template-columns: 1fr; }
  .student-portal-page .student-document-nav { border-right: 0; border-bottom: 1px solid #dbe4f0; max-height: 330px; overflow: auto; }
  .student-portal-page .student-account-summary { display: block; }
  .student-portal-page .student-information-section { border-right: 0; }
  .student-portal-secure-label { display: none; }
}
@media (max-width: 760px) {
  .student-portal-site-header-inner, .student-portal-page .student-portal-container { width: calc(100% - 32px); }
  .student-portal-site-header-inner { min-height: 72px; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
  .student-portal-brand { width: 70px; }
  .student-portal-brand img { height: 42px; }
  .portal-brand-label { font-size: 13px; white-space: nowrap; }
  .student-portal-header-actions { gap: 6px; }
  .student-portal-back-link { min-height: 38px; padding: 0 10px; font-size: 12px; }
  .portal-header-link { display: none; }
  .student-portal-page .student-portal-intro { display: block; margin-bottom: 20px; }
  .student-portal-intro-copy { margin-top: 8px; }
  .student-portal-page .student-portal-intro h1 { font-size: 26px; }
  .student-portal-page .student-login-view { grid-template-columns: 1fr; }
  .student-portal-page .student-login-form, .student-portal-page .student-login-help { padding: 28px 24px; }
  .student-portal-page .student-account-header { padding: 24px; flex-direction: row; gap: 12px; align-items: flex-start; }
  .student-account-actions { padding-top: 0; border: 0; }
  .student-portal-page .student-account-header { flex-wrap: wrap; }
  .student-account-actions { margin-left: auto; gap: 8px; }
  .student-session-status { display: none; }
  .student-portal-page .student-account-header h3 { font-size: 24px; }
  .portal-record-nav { gap: 0; padding: 0 12px; justify-content: space-between; }
  .portal-record-nav a { min-height: 52px; padding: 0 8px; font-size: 12px; }
  .student-portal-page .student-account-layout { display: flex; flex-direction: column; }
  .student-portal-page .student-account-records { order: 0; }
  .student-portal-page .student-account-summary { order: 1; border-left: 0; border-top: 1px solid #dbe4f0; }
  .student-portal-page .student-record-section, .student-portal-page .student-information-section, .student-portal-page .student-renewal-section { padding: 24px; }
  .student-portal-page .student-information-section { border-bottom: 1px solid #dbe4f0; }
  .student-portal-page .student-document-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .student-portal-site-header-inner { gap: 8px; }
  .portal-brand-label { font-size: 13px; }
  .student-portal-back-link span { display: none; }
  .student-portal-back-link { padding: 0 7px; font-size: 11px; }
  .student-portal-page .student-account-header { flex-wrap: wrap; }
  .student-account-actions { margin-left: auto; }
  .portal-record-nav { padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .student-portal-page * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Exclusive record panels: these rules are scoped to the signed-in workspace. */
.portal-record-nav a[aria-selected="true"] { color: #1e40af; border-bottom: 3px solid #1e40af; font-weight: 700; background: #f3f6fc; }
.portal-record-nav a { padding-inline: 12px; }
.student-portal-page .portal-panel-layout { display: block; min-height: 330px; }
.portal-panel-layout > [role="tabpanel"][hidden] { display: none !important; }
.portal-panel-layout > [role="tabpanel"] { min-width: 0; }
.student-portal-page .portal-panel-layout > .student-information-section { padding: 28px 32px; border: 0; }
.portal-panel-intro { color: #52647b; font-size: 14px; line-height: 1.7; margin: 10px 0 22px; max-width: 78ch; }
.portal-panel-heading { padding: 28px 32px 0; }
.portal-panel-heading h4 { font-size: 22px; color: #14263f; font-weight: 600; margin: 6px 0; }
.student-portal-page .portal-certification-panel .student-renewal-section { margin: 0 32px 24px; padding: 20px 24px; border: 1px solid #dbe4f0; border-radius: 4px; background: #f8fafc; }
.portal-certification-panel .student-renewal-date { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.portal-certification-panel #studentRenewalWorkspace { border-top: 1px solid #dbe4f0; }
.portal-panel-layout .student-information-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; max-width: 800px; }
.portal-panel-layout .student-information-list dd { overflow-wrap: anywhere; }
.portal-profile-support { margin-top: 32px; border-top: 1px solid #dbe4f0; padding-top: 24px; }
.portal-profile-support h5 { font-size: 16px; color: #14263f; margin-bottom: 8px; }
.portal-profile-support p { color: #52647b; font-size: 14px; margin-bottom: 12px; }
.portal-profile-support a { color: #1e40af; text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .student-portal-page .portal-panel-layout > .student-information-section, .portal-panel-heading { padding: 24px; }
    .portal-panel-heading { padding-bottom: 0; }
    .student-portal-page .portal-certification-panel .student-renewal-section { margin: 0 24px 24px; padding: 20px; }
    .portal-panel-layout .student-information-list { grid-template-columns: 1fr; gap: 20px; }
    .portal-certification-panel .student-renewal-date { gap: 16px 32px; }
    .portal-record-nav a { padding-inline: 8px; }
}

/* Self-reported company claim stays separate from approved student records. */
.student-company-form { max-width: 680px; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #dbe3eb; display: grid; gap: .8rem; }
.student-company-form h5 { font-size: 1.1rem; margin: 0; }
.student-company-form label { font-weight: 700; }
.student-company-form input { width: 100%; box-sizing: border-box; min-height: 46px; padding: .7rem .85rem; border: 1px solid #9aaec0; border-radius: 8px; font: inherit; }
.student-company-form p { margin: 0; line-height: 1.6; }
.student-company-form button { justify-self: start; }
#studentCompanyAffiliationStatus { color: #795311; font-weight: 600; }
