/* Shared header: status strip, navy bar, subjects panel and accessible mobile navigation. */

/* ---- Status strip ---- */
.topline { background: var(--navy-deep); color: var(--fog); font-size: .88rem; }
.topline strong { color: #fff; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.opening-status strong { font-weight: 700; }
.utility-links { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.utility-links a { color: #fff; font-weight: 650; text-decoration: none; }
.utility-links a:hover, .utility-links a[aria-current="page"] { text-decoration: underline; }
.utility-divider { height: 14px; border-left: 1px solid rgba(199, 217, 232, .4); }

/* ---- Navy bar ---- */
.site-header { background: var(--paper); color: var(--navy-deep); position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; position: relative; }
.brand { display: block; flex-shrink: 0; text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-deep); }
.logo-mark { width: 38px; height: 46px; flex: none; }
.logo-ribbon { fill: var(--crimson); }
.logo-letters { fill: #fff; }
.logo-word { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.logo-word small { display: block; margin-top: 5px; font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.footer .logo { color: #fff; }
.footer .logo-word small { color: var(--fog); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); }
.nav-links .nav-item, .subjects-menu summary { color: var(--navy-deep); font-size: 1rem; font-weight: 600; white-space: nowrap; text-decoration: none; padding: 16px 0; }
.nav-links .nav-item:hover, .subjects-menu summary:hover, .subjects-menu[open] summary { color: var(--crimson); }
.nav-links .nav-item[aria-current="page"], .subjects-menu summary.is-active { text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-links .nav-cta { min-height: 44px; padding: 9px 18px; white-space: nowrap; }

/* ---- Subjects panel (native <details>, so it works without JavaScript) ---- */
.subjects-menu summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.subjects-menu summary::-webkit-details-marker { display: none; }
.nav-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.subjects-menu[open] .nav-chevron { transform: rotate(225deg); margin-top: 4px; }
.subjects-panel { position: absolute; top: calc(100% + 1px); right: 0; width: min(720px, 100%); display: grid; grid-template-columns: 3fr 2fr; gap: 0 32px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--crimson); box-shadow: 0 14px 28px rgba(2, 52, 79, .16); padding: 24px 26px; }
.subjects-panel :focus-visible { outline-color: var(--navy-light); }
.subjects-panel-head { font-size: .88rem; font-weight: 650; color: var(--muted); margin: 0 0 8px; padding: 0 8px; }
.subject-menu-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; color: var(--ink); text-decoration: none; }
.subject-menu-link:hover, .subject-menu-link[aria-current="page"] { background: var(--fog-light); color: var(--ink); }
.subject-menu-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; background: var(--fog-light); color: var(--navy); }
.subject-menu-icon .icon { width: 19px; height: 19px; }
.subject-menu-link strong { display: block; font-size: .98rem; line-height: 1.35; }
.subject-menu-description { display: block; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.subjects-all { display: block; margin: 10px 8px 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 650; font-size: .95rem; }

.menu-button { display: none; }

/* ---- Narrow screens: the links fold under a Menu button ---- */
@media (max-width: 1000px) {
  .nav { min-height: 70px; flex-wrap: wrap; }
  .logo-mark { width: 32px; height: 39px; }
  .logo-word { font-size: 1.45rem; }
  /* Without JavaScript the links simply stay visible, stacked. */
  .nav-links { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 20px; }
  .nav-ready .menu-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--navy); border-radius: var(--radius-button); background: transparent; color: var(--navy-deep); font-weight: 650; cursor: pointer; }
  .nav-ready .nav-links { display: none; }
  .nav-ready .nav-links.open { display: flex; }
  .nav-links .nav-item, .subjects-menu summary { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-item[aria-current="page"], .subjects-menu summary.is-active { text-underline-offset: 5px; }
  .subjects-menu summary { justify-content: space-between; }
  .subjects-panel { position: static; width: 100%; grid-template-columns: 1fr; gap: 16px; border: 0; box-shadow: none; padding: 16px 0; }
  .nav-links .nav-cta { margin-top: 18px; }
}
@media (max-width: 600px) {
  .site-header .logo-word small { display: none; }
  .topline .wrap { align-items: flex-start; gap: 12px; }
  .status-detail { display: block; }
  .nav-links.open { max-height: 74vh; max-height: 74dvh; overflow-y: auto; }
}
