/* Shared text contrast corrections — audited 24 November 2026. */
:root,html[data-theme]{--nm-blue:#0054ad;--nm-muted:#526171;--muted:#4d5d59;--text-muted:#4d5d59;--primary:#08665e;--brand:#08665e}
html body:is(.public-site-body,.admin-body,.auth-body,.portal-shell,.contrib-body,.tv-site){--nm-blue:#0054ad;--nm-muted:#526171;--muted:#4d5d59;--text-muted:#4d5d59}
html body :is(input,textarea,.form-control)::placeholder{color:#566575!important;opacity:1!important}
html body :is(label,.form-label,.field-label){color:#345776!important}
html body :is(.muted,.text-muted,.help-text,.field-help,.form-help,.nm-upload-subtitle,.nm-upload-meta){color:#4d5d66!important}
html body :is(.button,.btn,.te-button,.ptsp-button,.zi-button,.sw-btn,.tv-button,.sc-btn,.karya-primary,.portal-button,.action-button,.page-button){color:#0054ad!important;-webkit-text-fill-color:currentColor!important}
html body :is(.button,.btn,.te-button,.ptsp-button,.zi-button,.sw-btn,.tv-button,.sc-btn,.karya-primary,.portal-button,.action-button,.page-button) :is(span,strong,small,b){color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
html body.admin-body #admin-main-content :is(.button-primary,button[type=submit],.hub-save .button,.form-actions .button){color:#0054ad!important;-webkit-text-fill-color:currentColor!important}
html body :is(.button-danger,.btn-danger,.is-danger,.danger){color:#9c2940!important}
html body :is(.nm-upload-title,.site-footer a,.portal-footer a,.mobile-bottom-nav small){color:#0054ad!important}
html body .public-notification-footer-link{opacity:1!important;color:#0054ad!important}
html body.admin-body #admin-main-content :is(p,small,label,legend,time,dt,figcaption){color:#465963!important}
html body.admin-body #admin-main-content :is(.section-kicker,.ds11-kicker,.discipline-manager-eyebrow,.aao-eyebrow,.chip,.status-badge.is-info){color:#075e53!important}
html body.admin-body #admin-main-content :is(.gallery12-admin-count,.ds11-result-count,.notification-result-count,.media-title-row>span,.humas-news-admin-pagination>span,.aao-steps>span){color:#465963!important}
html body.admin-body #admin-main-content .status-new{color:#815400!important}
html body.admin-body #admin-main-content .pka-year-list a[aria-current=page],html body.admin-body #admin-main-content .pka-year-list a[aria-current=page] :is(strong,span){color:#fff!important;opacity:1!important}
html body.admin-body #admin-main-content :is(.aao-hero-copy,.ais-hero-text,.pcp-intro,.sc-hero) :is(h1,h2,h3,p,small,.aao-eyebrow,.ais-kicker,.pcp-eyebrow,.sc-eyebrow,.aao-return-link){color:#f1faf7!important;opacity:1!important}
html body.admin-body #admin-main-content .sc-engine-indicator :is(strong,small,span){color:#f1faf7!important}
html body.admin-body #admin-main-content .sc-btn{background:#e7ebf0!important;color:#0054ad!important}
html body.admin-body #admin-main-content :is([contenteditable=true],.te-editor-canvas,.te-canvas,.tox-edit-area,.ql-editor) :is(p,small,label,legend,time,dt,figcaption){color:revert!important}
html body :is(.program-card>small,.program-card p,.institution-card-image figcaption,.external-news-result-bar p,.gallery12-filter+p,.gallery12-result-count){color:#465963!important}
html body .program-card{color:#253b35!important}
html body :is(.adi-field-index,.extracurricular-label,.principal-history-meta>span,.wakama-doc-head>.chip,.dk-section-heading p,.dk-rule-card p,.dk-rule-card>span){color:#17614e!important}
html body .tv-brand-dot{color:#825b23!important}
html body.public-site-body :is(.section-kicker,.eyebrow,.text-link){color:#096457!important}
html body.public-site-body :is(.contact-info p,.contact-info small,.appointment-group-heading>span,.ds35-stats small,.ds35-apps small){color:#465963!important}
html body.public-site-body .calendar-event-card{opacity:1!important}
html body.public-site-body .home-video-section{background-color:#0d4b46!important}
html body.public-site-body .home-video-section :is(h2,h3,p,a,.section-kicker){color:#f0faf7!important}
html body.public-site-body .home-video-section small{color:#ffd2a0!important}
html body.public-site-body .home-video-section button{color:#0054ad!important}
html body.public-site-body .ds35-hero{background-color:#153e35}
html body.public-site-body .ds35-hero-copy :is(.ds35-eyebrow,h1,h1 span,h1 strong,p){color:#f9f3df!important}

/* Override both generations of theme tokens. */
:root,html[data-theme],html body{--nm-fix-blue:#0054ad;--nm-fix-muted:#526171;--nm-v8-muted:#465963}
html body.public-site-body.page-home :is(.premium-service-grid small,.premium-stats small){color:#465963!important}
html body.admin-body #admin-main-content .sc-intel-hero :is(p,small,.sc-eyebrow){color:#f1faf7!important}
html body.admin-body #admin-main-content .aao-steps b{color:#34594d!important}
html body.public-site-body .adi-hero{background:#145344!important}
html body.public-site-body .adi-hero :is(.adi-breadcrumb a,.adi-breadcrumb span,.adi-kicker,p){color:#f1faf7!important}
html body.public-site-body .adi-hero .adi-button-outline{background:#e7ebf0!important;color:#0054ad!important}
html body.auth-body .auth-login-form .input-icon>input::placeholder{color:#566575!important;opacity:1!important}

html body.public-site-body.page-home .premium-stat-strip small{color:#465963!important}
html body.admin-body #admin-main-content .admin-shortcut-grid b{background:#963900!important;color:white!important;opacity:1!important}

/* Component-specific pairs for dark heroes, caption overlays and light summaries. */
html body :is(.te-button,.zi-button,.sc-btn){background:#e7ebf0!important;color:#0054ad!important}
html body.public-site-body .page-hero :is(h1,h2,p,.section-kicker,.eyebrow,.breadcrumbs a,.breadcrumbs span){color:#f2faf7!important;opacity:1!important}
html body.public-site-body .principal-history-hero{background:#153e35!important}
html body.public-site-body .history-hero{background:linear-gradient(135deg,#073f3b,#07554e)!important}
html body.public-site-body .history-hero :is(h1,p,small,strong,span,.breadcrumbs a){color:#f2faf7!important}
html body.public-site-body .history-leadership-number{color:#805009!important}
html body.public-site-body .org-intro{background:linear-gradient(135deg,#123e35,#185c4c)!important}
html body.public-site-body .org-intro :is(h1,p,.org-breadcrumb a,.org-breadcrumb span){color:#f2faf7!important}
html body.public-site-body .org-primary .org-person{color:#fff!important}
html body.public-site-body .dk-hero :is(p,.dk-overline,.dk-breadcrumb a,.dk-breadcrumb span){color:#294a40!important}
html body.public-site-body :is(.dk-chapter-header p,.dk-chapter-header span,.dk-cta p){color:#3c5c50!important}
html body.public-site-body.page-gallery-ds12 main p{color:#465963!important}
html body.public-site-body .gallery12-caption{background:rgba(9,32,28,.9)!important}
html body.public-site-body .gallery12-caption :is(strong,small,span){color:#f2faf7!important;opacity:1!important}
html body.public-site-body .student-data-hero .section-kicker,html body.public-site-body .wakama-hero .eyebrow{color:#dcf6ed!important}
html body.public-site-body.page-students :is(thead th,tfoot th){color:#344f53!important}
html body.public-site-body.page-ptsp main small{color:#465963!important}
html body.admin-body #admin-main-content :is(.empty-state,.sc-cache-note a,.admin-guide-breadcrumb){color:#36554e!important;opacity:1!important}
html body.admin-body #admin-main-content .shortcut-grid b{background:#963900!important;color:#fff!important;opacity:1!important}
html body.admin-body #admin-main-content .shortcut-grid span{opacity:1!important}
html body.admin-body #admin-main-content .aao-steps .is-active b{color:#fff!important}
html body.admin-body #admin-main-content .profile-security-summary{background:#e7ebf0!important}
html body.admin-body #admin-main-content .profile-security-summary :is(b,small){color:#344c47!important}

html body.public-site-body .org-primary .org-person{color:#2f3943!important}
html body.public-site-body .dk-last-action p{color:#36554a!important}
html body.admin-body #admin-main-content :is(.ds14-advanced-student-tools span,.humas-sync-logs span){color:#465963!important}

html body.admin-body #admin-main-content :is(.hub26-nav-group h2,.hub26-quickform>span,.oe-subtle){color:#465963!important}

/* Sidebar viewport: only the panel is a surface; overlays never look like buttons. */
html body dialog#mobile-drawer{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
html body dialog#mobile-drawer::backdrop{background:rgba(18,35,42,.42)!important;backdrop-filter:none!important}
html body dialog#mobile-drawer .drawer-backdrop,html body .admin-sidebar-backdrop,html body .portal-nav-backdrop{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;outline:none!important;transform:none!important}
html body dialog#mobile-drawer .drawer-backdrop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important}
html body dialog#mobile-drawer .drawer-panel{position:absolute!important;inset:0 0 0 auto!important;width:min(380px,100%)!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box!important;margin:0!important;padding:0 16px!important;border:0!important;border-radius:18px 0 0 18px!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#e7ebf0!important}
html body dialog#mobile-drawer .drawer-header{position:relative!important;top:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto 40px!important;flex:0 0 auto!important;min-height:64px!important;padding:12px 0!important;gap:10px!important;background:transparent!important}
html body dialog#mobile-drawer .drawer-admin-login{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;padding:8px 12px!important;font-size:13px!important;font-weight:700!important;line-height:1.3!important;white-space:nowrap!important;border:1px solid rgba(90,110,125,.2)!important;border-radius:12px!important;background:#e7ebf0!important;color:#0054ad!important;text-decoration:none!important;box-shadow:none!important}
html body dialog#mobile-drawer .drawer-panel>.ds21-menu-search{flex:0 0 auto!important;margin:0!important}
html body dialog#mobile-drawer .drawer-nav{flex:1 1 0!important;min-height:0!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable;padding:4px 4px 16px!important;scroll-padding-block:12px!important}
html body dialog#mobile-drawer .drawer-nav details{max-width:100%!important}
html body dialog#mobile-drawer .drawer-nav :is(summary,a){white-space:normal!important;overflow-wrap:break-word!important}
html body dialog#mobile-drawer .drawer-footer{position:relative!important;inset:auto!important;flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 38px 38px!important;gap:8px!important;margin:0!important;padding:10px 0 max(10px,env(safe-area-inset-bottom))!important;background:#e7ebf0!important;border-top:1px solid rgba(90,110,125,.18)!important}
html body dialog#mobile-drawer .drawer-footer>a{width:100%!important;min-width:0!important;min-height:40px!important;padding:8px 6px!important;font-size:12px!important;line-height:1.3!important;gap:5px!important;white-space:normal!important;box-sizing:border-box!important;box-shadow:none!important;border-radius:12px!important}
html body dialog#mobile-drawer .drawer-footer>a>svg{flex:0 0 16px!important;width:16px!important;height:16px!important}
@media(max-height:480px){html body dialog#mobile-drawer .drawer-header{min-height:48px!important;padding:4px 0!important}html body dialog#mobile-drawer .ds20-menu-status{display:none!important}html body dialog#mobile-drawer .ds21-menu-search{padding-bottom:6px!important}html body dialog#mobile-drawer .drawer-footer{padding-block:6px!important}}
@media(max-width:1023px){html body.admin-body .admin-sidebar{height:100dvh!important;max-height:100dvh!important;box-sizing:border-box!important;border-radius:0!important;box-shadow:none!important}html body.admin-body .admin-sidebar .admin-nav{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}html body.admin-body .admin-sidebar .admin-sidebar-footer{flex:0 0 auto!important}}

html body.admin-body button.admin-sidebar-backdrop.admin-sidebar-backdrop,html body.portal-shell button.portal-nav-backdrop.portal-nav-backdrop{background:rgba(18,35,42,.35)!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;transform:none!important}


html body dialog#mobile-drawer .drawer-panel>.ds21-menu-search{max-height:min(45dvh,320px)!important;overflow-y:auto!important;overscroll-behavior:contain!important}
html body dialog#mobile-drawer .drawer-footer{margin-top:auto!important}
