/* HSMDOCE R13-36 - final education contrast and cache-safe cascade stabilizer.
   Loaded last by both faculty and student/public education shells.
   This file intentionally corrects readability only; it does not redesign or
   alter permissions, assignments, grades, submissions, enrollment, or data. */
:root{
  --r1336-navy:#071f43;
  --r1336-blue:#174f8d;
  --r1336-ink:#17283c;
  --r1336-muted:#5b687c;
  --r1336-gold:#9a6f13;
  --r1336-line:#c9d6e5;
  --r1336-paper:#ffffff;
}

/* The R13-17 interior subpage banner is a white card.  R13-29 later forced
   inherited white text onto that white card.  Keep the institutional card but
   restore accessible dark text everywhere it is used. */
.edu-interior-page .edu-subpage-context{
  background:var(--r1336-paper)!important;
  color:var(--r1336-ink)!important;
}
.edu-interior-page .edu-subpage-context h1,
.edu-interior-page .edu-subpage-context h2,
.edu-interior-page .edu-subpage-context h3,
.edu-interior-page .edu-subpage-context strong,
.edu-interior-page .edu-subpage-context b{
  color:var(--r1336-navy)!important;
  text-shadow:none!important;
  opacity:1!important;
}
.edu-interior-page .edu-subpage-context p,
.edu-interior-page .edu-subpage-context span,
.edu-interior-page .edu-subpage-context em{
  color:var(--r1336-muted)!important;
  text-shadow:none!important;
  opacity:1!important;
}
.edu-interior-page .edu-subpage-context small{
  color:var(--r1336-gold)!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* Faculty interior hero cards are white by design in the university layout.
   Older hero rules still carry white text from the former navy hero design. */
.edu-body.edu-faculty-page .faculty-workspace .hero{
  background:var(--r1336-paper)!important;
  color:var(--r1336-ink)!important;
}
.edu-body.edu-faculty-page .faculty-workspace .hero > span,
.edu-body.edu-faculty-page .faculty-workspace .hero h1,
.edu-body.edu-faculty-page .faculty-workspace .hero h2,
.edu-body.edu-faculty-page .faculty-workspace .hero h3,
.edu-body.edu-faculty-page .faculty-workspace .hero p,
.edu-body.edu-faculty-page .faculty-workspace .hero small,
.edu-body.edu-faculty-page .faculty-workspace .hero strong,
.edu-body.edu-faculty-page .faculty-workspace .hero b{
  color:var(--r1336-ink)!important;
  text-shadow:none!important;
  opacity:1!important;
}
.edu-body.edu-faculty-page .faculty-workspace .hero > span{
  color:var(--r1336-blue)!important;
  font-weight:900!important;
}
.edu-body.edu-faculty-page .faculty-workspace .hero h1,
.edu-body.edu-faculty-page .faculty-workspace .hero h2,
.edu-body.edu-faculty-page .faculty-workspace > .hero h3{
  color:var(--r1336-navy)!important;
}
.edu-body.edu-faculty-page .faculty-workspace > .hero p{
  color:#42556f!important;
}
.edu-body.edu-faculty-page .faculty-workspace .hero .hero-facts span{
  color:#334b68!important;
  background:#f4f8fc!important;
  border:1px solid #c7d5e4!important;
  border-bottom:3px solid #c99316!important;
  text-shadow:none!important;
}
.edu-body.edu-faculty-page .faculty-workspace .hero .hero-facts b{
  color:var(--r1336-navy)!important;
  text-shadow:none!important;
}

/* Faculty command cards and white work surfaces must never inherit a white
   foreground from historic navy panels. */
.edu-body.edu-faculty-page .section-command-grid > a,
.edu-body.edu-faculty-page .section-command-grid > article,
.edu-body.edu-faculty-page .classroom-card,
.edu-body.edu-faculty-page .faculty-classroom-card,
.edu-body.edu-faculty-page .faculty-check-grid label,
.edu-body.edu-faculty-page .student-roster-grid article,
.edu-body.edu-faculty-page .syllabus-summary article,
.edu-body.edu-faculty-page .module-block,
.edu-body.edu-faculty-page .edu-quick-academic a{
  color:var(--r1336-ink)!important;
  background-color:#fff;
}
.edu-body.edu-faculty-page .section-command-grid > a b,
.edu-body.edu-faculty-page .section-command-grid > article b,
.edu-body.edu-faculty-page .classroom-card h2,
.edu-body.edu-faculty-page .classroom-card h3,
.edu-body.edu-faculty-page .faculty-classroom-card h2,
.edu-body.edu-faculty-page .faculty-classroom-card h3,
.edu-body.edu-faculty-page .module-block h2,
.edu-body.edu-faculty-page .module-block h3,
.edu-body.edu-faculty-page .module-block h4{
  color:var(--r1336-navy)!important;
  text-shadow:none!important;
}
.edu-body.edu-faculty-page .section-command-grid > a span,
.edu-body.edu-faculty-page .section-command-grid > article span{
  color:var(--r1336-muted)!important;
  text-shadow:none!important;
}

/* The interior university panels are light cards.  Keep their headings dark
   even when an older stylesheet's dark-panel heading color remains cached. */
.edu-interior-page .panel-head{
  background:#f7f8fa!important;
  color:var(--r1336-ink)!important;
}
.edu-interior-page .panel-head h1,
.edu-interior-page .panel-head h2,
.edu-interior-page .panel-head h3,
.edu-interior-page .panel-head h4{
  color:var(--r1336-navy)!important;
  text-shadow:none!important;
}

/* White data/form surfaces use explicit readable foreground colors.  Buttons,
   badges and dark navigation areas retain their component-specific colors. */
.edu-interior-page :is(.panel-body,.card,.metric,.table-wrap,.form-shell,.question,.lesson,.classroom-welcome,.r1332-course-overview>article,.r1332-week-folder,.r1332-activity-card,.r1332-assignment-file-card,.objective-review-card,.practice-review-card,.r1332-review-card){
  color:var(--r1336-ink);
}
.edu-interior-page :is(.panel-body,.card,.metric,.form-shell,.question,.lesson,.classroom-welcome,.r1332-course-overview>article,.r1332-week-folder,.r1332-activity-card,.r1332-assignment-file-card) :is(h1,h2,h3,h4,h5,h6){
  color:var(--r1336-navy);
}

/* Preserve white text only where the surface is intentionally dark. */
.edu-body :is(.edu-utility,.edu-primary-nav,.edu-footer,.current-grade-card,.classroom-nav,.classroom-course-banner) :is(a,p,span,small,strong,b,h1,h2,h3,h4){
  text-shadow:none;
}

@media (prefers-contrast:more){
  .edu-interior-page .edu-subpage-context,
  .edu-body.edu-faculty-page .faculty-workspace .hero,
  .edu-body.edu-faculty-page .section-command-grid > a{
    border-width:2px!important;
  }
}
