/* Shared masthead extracted from the owner-provided 2026-09-10 Courses 2.0 design. */
body.edu .edu-rail.edu-masthead {
  --edu-mast-dark: #173d59;
  --edu-mast-mid: #155b82;
  --edu-mast-bright: #1479ad;
  --edu-mast-utility: #0f3048;
  position: sticky;
  inset: 0 0 auto;
  z-index: 60;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 3px solid #8ed7ff; /* impeccable-disable-line border-accent-on-rounded: full-width square masthead; border-radius is explicitly 0 */
  border-radius: 0;
  background: linear-gradient(102deg, var(--edu-mast-dark) 0%, var(--edu-mast-mid) 42%, var(--edu-mast-bright) 100%);
  box-shadow: 0 10px 26px -22px rgb(23 61 89 / 48%);
}

.edu-masthead :is(summary, a, button, input) { font-family: inherit; }
.edu-masthead summary::-webkit-details-marker { display: none; }
.edu-masthead summary { list-style: none; }
.edu-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.edu-mast__util { background: var(--edu-mast-utility); border-bottom: 1px solid rgb(255 255 255 / 12%); }
.edu-mast__util-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  max-width: 1360px;
  height: 38px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}
.edu-mast__util a {
  color: #c9dced;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.edu-mast__util a:hover { color: #fff; }

.edu-mast__bar {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 1360px;
  min-height: 78px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}
.edu-mast__bar > .edu-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 78px;
  padding: 0;
  text-decoration: none;
}
body.edu .edu-masthead .edu-brand__mark {
  width: 184px;
  height: 38px;
}
body.edu .edu-masthead .edu-brand__mark img {
  display: block;
  width: 184px;
  height: auto;
  filter: brightness(0) invert(1);
}

.edu-mast__lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgb(255 255 255 / 22%);
}
.edu-mast__scope {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  color: #fff;
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 28%);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.edu-mast__scope strong { font-weight: 750; }
.edu-mast__scope > span:last-child { color: #e4f3ff; }
.edu-mast__scope:hover { color: #fff; background: rgb(255 255 255 / 24%); }
.edu-mast__scope-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.edu-mast__scope-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1.5px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
}
.edu-mast__scope-rule { width: 1px; height: 14px; background: rgb(255 255 255 / 45%); }
.edu-mast__tag {
  max-width: 24ch;
  margin: 0;
  color: var(--edu-muted);
  font-size: 13.5px;
  line-height: 1.35;
  text-wrap: pretty;
}

.edu-mast__nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  margin-left: auto;
  margin-right: -16px;
}
.edu-mast__drop { position: static; }
.edu-mast__drop > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 78px;
  padding: 0 16px;
  color: #fff;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.edu-mast__drop > summary:hover,
.edu-mast__drop.is-current > summary { color: #fff; border-bottom-color: #8ed7ff; }
.edu-mast__drop[open] > summary { color: #0f2438; background: #fff; border-bottom-color: transparent; }
.edu-mast__drop[open] > summary > svg:last-child { transform: rotate(180deg); }

.edu-mast__panel {
  position: absolute;
  top: calc(100% - 3px);
  right: max(16px, calc((100vw - 1360px) / 2 + 32px));
  z-index: 4;
  width: min(760px, calc(100vw - 40px));
  overflow: hidden;
  color: var(--edu-ink);
  background: var(--edu-surface);
  border: 0;
  box-shadow: 0 26px 50px -26px rgb(15 36 56 / 45%);
}
.edu-mast__panel-inner {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 2.15fr);
  gap: 28px 44px;
  padding: 36px 40px 40px;
}
.edu-mast__panel-intro { display: grid; align-content: start; gap: 12px; }
.edu-mast__panel-intro h2 {
  margin: 0;
  color: var(--edu-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.edu-mast__panel-intro p {
  max-width: 34ch;
  margin: 0;
  color: var(--edu-muted);
  font-size: 15px;
  line-height: 1.5;
}
.edu-mast__panel-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 18px;
  color: #fff;
  background: #0f2438;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.edu-mast__panel-action:hover { background: #0b6ea8; }
.edu-mast__panel-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-content: start;
  gap: 2px 44px;
}
.edu-mast__panel-links a {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 11px 0;
  color: var(--edu-ink);
  border-top: 1px solid var(--edu-line);
  text-decoration: none;
}
.edu-mast__panel-links a:hover,
.edu-mast__panel-links a[aria-current] { color: var(--edu-accent); }
.edu-mast__panel-links strong { font-size: 16px; font-weight: 700; }
.edu-mast__panel-links span { color: var(--edu-muted); font-size: 14px; line-height: 1.45; }

.edu-mast__search > summary { padding-inline: 16px; }
.edu-mast__search-panel form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 32px 30px;
}
.edu-mast__search-panel input {
  flex: 1 1 auto;
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  color: var(--edu-ink);
  background: var(--edu-surface);
  border: 2px solid var(--edu-ink);
  font-size: 17px;
}
.edu-mast__search-panel button {
  flex: 0 0 auto;
  height: 58px;
  padding: 0 26px;
  color: #fff;
  background: #0f2438;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.edu-mast__search-panel button:hover { background: #0b6ea8; }

.edu-mast__menu { display: none; margin-left: auto; margin-right: -12px; }
.edu-masthead .edu-menu { position: static; display: block; }
.edu-masthead .edu-menu__btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 58px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  color: #fff !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.edu-masthead .edu-menu[open] > .edu-menu__btn { color: #8ed7ff !important; }
.edu-masthead .edu-menu__nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 5;
  display: grid;
  max-height: calc(100vh - 58px);
  padding: 14px clamp(16px, 4vw, 24px) 26px;
  overflow: auto;
  color: var(--edu-ink);
  background: var(--edu-surface);
  border-top: 1px solid var(--edu-line);
  border-bottom: 1px solid var(--edu-line);
  box-shadow: 0 24px 40px -28px rgb(15 36 56 / 40%);
}
.edu-masthead .edu-menu__nav > form { display: flex; gap: 8px; margin-bottom: 12px; }
.edu-masthead .edu-menu__nav > form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  color: var(--edu-ink);
  background: var(--edu-surface);
  border: 2px solid var(--edu-ink);
  font-size: 16px;
}
.edu-masthead .edu-menu__nav > form button {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  background: #0f2438;
  border: 0;
  cursor: pointer;
}
.edu-menu__group { border-bottom: 1px solid var(--edu-line); }
.edu-menu__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 0 4px;
  color: var(--edu-ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.edu-menu__group[open] > summary { color: var(--edu-accent); }
.edu-menu__group[open] > summary svg { transform: rotate(180deg); }
.edu-menu__group > div { display: grid; padding: 0 4px 12px; }
.edu-masthead .edu-menu__item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--edu-accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.edu-masthead .edu-menu__item.is-current { color: var(--edu-ink); text-decoration: underline; text-decoration-color: var(--edu-sky); text-underline-offset: 5px; }
.edu-masthead .edu-menu__item--direct { min-height: 52px; color: var(--edu-ink); border-bottom: 1px solid var(--edu-line); font-size: 16px; font-weight: 700; }

.edu-mast__sections {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1360px;
  min-width: 0;
  margin-inline: auto;
  padding: 8px clamp(16px, 3vw, 32px);
  color: var(--edu-muted);
  background: var(--edu-surface);
  border-top: 1px solid var(--edu-line);
}
.edu-mast__sections > span { flex: 0 0 auto; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.edu-mast__sections > div { display: flex; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.edu-mast__sections .edu-nav__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  color: var(--edu-muted);
  background: transparent;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
}
.edu-mast__sections .edu-nav__item:hover,
.edu-mast__sections .edu-nav__item.is-current { color: var(--edu-ink); background: var(--edu-accent-soft); }

html[data-theme="dark"] .edu-mast__lockup { border-left-color: rgb(255 255 255 / 22%); }
html[data-theme="dark"] .edu-mast__scope-rule { background: rgb(255 255 255 / 45%); }
html[data-theme="dark"] .edu-mast__panel-action,
html[data-theme="dark"] .edu-mast__search-panel button,
html[data-theme="dark"] .edu-menu__nav > form button { color: #0f2438 !important; background: var(--edu-sky); }

@media (max-width: 1240px) {
  .edu-mast__tag { display: none; }
}

@media (max-width: 1000px) {
  .edu-mast__util,
  .edu-mast__lockup,
  .edu-mast__nav { display: none; }
  .edu-mast__menu { display: block; }
  .edu-mast__bar { min-height: 58px; }
  .edu-mast__bar > .edu-brand { min-height: 58px; }
  body.edu .edu-masthead .edu-brand__mark { width: 168px; height: 34px; }
  body.edu .edu-masthead .edu-brand__mark img { width: 168px; filter: brightness(0) invert(1); }
}

@media (max-width: 560px) {
  .edu-mast__sections { align-items: flex-start; gap: 8px; padding-block: 6px; }
  .edu-mast__sections > span { padding-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .edu-masthead summary svg { transition: none; }
}
