/* JWL 2027 header & footer - intentionally scoped to avoid disrupting legacy pages. */
@font-face {
  font-family: "JWL Plex Sans";
  src: url("/code/2027/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JWL Plex Serif";
  src: url("/code/2027/fonts/ibm-plex-serif-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.jwl27-site-header, .jwl27-site-footer {
  --jwl27-navy: #001a33;
  --jwl27-blue: #003366;
  --jwl27-gold: #d4a02a;
  --jwl27-text: #f8f9fc;
  --jwl27-font: "JWL Plex Sans", "IBM Plex Sans", Arial, sans-serif;
  font-family: var(--jwl27-font);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: normal;
}
.jwl27-site-header *, .jwl27-site-header *::before, .jwl27-site-header *::after,
.jwl27-site-footer *, .jwl27-site-footer *::before, .jwl27-site-footer *::after {
  box-sizing: border-box;
}
.jwl27-site-header [hidden], .jwl27-site-footer [hidden] { display: none !important; }
.jwl27-site-header ul, .jwl27-site-footer ul { list-style: none; padding: 0; margin: 0; }
.jwl27-site-header a, .jwl27-site-footer a { text-decoration: none; }
.jwl27-site-header button, .jwl27-site-header input { font: inherit; }
.jwl27-site-header button { cursor: pointer; }
.jwl27-site-header a:focus-visible, .jwl27-site-header button:focus-visible,
.jwl27-site-footer a:focus-visible { outline: 3px solid var(--jwl27-gold); outline-offset: 3px; }
.jwl27-site-header { position: relative; z-index: 60; width: 100%; color: #fff; }
.jwl27-site-header .jwl27-shell, .jwl27-site-footer .jwl27-shell {
  width: min(100% - 48px, 1260px); margin-inline: auto;
}
.jwl27-site-header .jwl27-skip {
  position: absolute; z-index: 300; left: 20px; top: -100px; padding: 10px 18px;
  background: white; color: #003366; border-radius: 3px;
}
.jwl27-site-header .jwl27-skip:focus { top: 8px; }
/* Row 1: exactly the university's navy utility strip. */
.jwl27-site-header .jwl27-utility-bar { background: #001a33; min-height: 35px; }
.jwl27-site-header .jwl27-utility-inner { min-height: 35px; display: flex; align-items: center; justify-content: flex-end; }
.jwl27-site-header .jwl27-utility-links { display: flex; align-items: center; justify-content: flex-end; gap: 23px; }
.jwl27-site-header .jwl27-utility-links a {
  color: #c5ccd5; font-size: 11px; letter-spacing: .04em; white-space: nowrap;
  padding: 7px 0; line-height: 1.1; border-bottom: 0;
}
.jwl27-site-header .jwl27-utility-links a:hover { color: #fff; }
.jwl27-site-header .jwl27-utility-links .jwl27-utility-accent { color: #ecc35e; font-weight: 700; }
.jwl27-site-header .jwl27-utility-links .jwl27-utility-cta {
  background: var(--jwl27-gold); color: #001a33; border-radius: 999px;
  padding: 7px 17px; font-weight: 700; letter-spacing: 0;
}
.jwl27-site-header .jwl27-utility-links .jwl27-utility-cta:hover { color: #001a33; background: #e3b84c; }
/* Row 2: logo and library navigation on the same line. */
.jwl27-site-header .jwl27-main-bar { background: #003366; position: relative; }
.jwl27-site-header .jwl27-main-inner { min-height: 76px; display: flex; align-items: center; gap: 22px; }
.jwl27-site-header .jwl27-brand { display: block; flex: 0 0 158px; line-height: 0; }
.jwl27-site-header .jwl27-brand img { display: block; width: 158px; height: auto; max-height: 67px; object-fit: contain; }
.jwl27-site-header .jwl27-main-nav { margin-left: auto; display: flex; align-items: stretch; gap: 0; height: 76px; }
.jwl27-site-header .jwl27-main-nav > a.jwl27-account,
.jwl27-site-header .jwl27-nav-trigger,
.jwl27-site-header .jwl27-search-toggle {
  display: flex; align-items: center; justify-content: center; color: #f3f5fa;
  background: transparent; border: 0; border-radius: 0; font-size: 12.5px;
  font-weight: 500; padding: 0 10px; white-space: nowrap; line-height: 1.2;
  letter-spacing: 0; text-transform: none; height: 100%; min-height: 0;
}
.jwl27-site-header .jwl27-main-nav > a.jwl27-account:hover,
.jwl27-site-header .jwl27-nav-trigger:hover,
.jwl27-site-header .jwl27-nav-trigger[aria-expanded="true"],
.jwl27-site-header .jwl27-search-toggle:hover,
.jwl27-site-header .jwl27-search-toggle[aria-expanded="true"] { background: #114b82; color: #fff; }
.jwl27-site-header .jwl27-nav-item { display: flex; align-items: center; position: static; }
.jwl27-site-header .jwl27-chevron { width: 7px; height: 7px; display: inline-block; margin-left: 7px; transform: rotate(45deg) translateY(-2px); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.jwl27-site-header .jwl27-nav-trigger[aria-expanded="true"] .jwl27-chevron { transform: rotate(225deg) translate(-2px,-1px); }
.jwl27-site-header .jwl27-search-toggle { padding: 0 12px; }
/* Dropdown panels. */
.jwl27-site-header .jwl27-mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
  color: #172b45; background: #fff; border-bottom: 4px solid var(--jwl27-gold);
  box-shadow: 0 16px 34px rgba(0, 19, 39, .22);
}
.jwl27-site-header .jwl27-mega-inner {
  width: min(100% - 48px, 1260px); margin: auto; padding: 24px 8px 29px;
  max-height: min(75vh, 650px); overflow-y: auto;
}
.jwl27-site-header .jwl27-mega h2 { margin: 0 0 14px; font-size: 18px; line-height: 1.4; color: #003366; font-weight: 700; font-family: var(--jwl27-font); }
.jwl27-site-header .jwl27-mega-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 60px; max-width: 780px; }
.jwl27-site-header .jwl27-mega li { margin: 0 0 7px; }
.jwl27-site-header .jwl27-mega li a { display: block; color: #193b60; font-size: 14px; padding: 4px 0; overflow-wrap: anywhere; }
.jwl27-site-header .jwl27-mega li a:hover { color: #003366; text-decoration: underline; text-underline-offset: 3px; }
.jwl27-site-header .jwl27-catalog-search { margin: 0 0 20px; max-width: 700px; }
.jwl27-site-header .jwl27-catalog-search label,
.jwl27-site-header .jwl27-search-panel label,
.jwl27-site-header .jwl27-mobile-search label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 13px; color: inherit; }
.jwl27-site-header .jwl27-search-fields { display: flex; gap: 9px; }
.jwl27-site-header .jwl27-search-fields input {
  display: block; flex: 1 1 200px; min-width: 0; width: auto; padding: 10px 12px;
  border-radius: 3px; border: 1px solid #a9b9c7; color: #142d47; background: white;
  box-shadow: none; height: auto;
}
.jwl27-site-header .jwl27-search-fields button {
  padding: 10px 15px; border-radius: 3px; border: 0; background: #d4a02a;
  color: #001a33; font-weight: 700; height: auto;
}
.jwl27-site-header .jwl27-search-fields button:hover { background: #e8b74e; }
.jwl27-site-header .jwl27-search-panel {
  color: white; position: absolute; left: 0; right: 0; top: 100%; z-index: 72;
  background: #003366; box-shadow: 0 14px 24px rgba(0,0,0,.25); padding: 24px 0;
}
.jwl27-site-header .jwl27-search-panel-inner { max-width: 850px; }
.jwl27-site-header .jwl27-search-quicklinks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.jwl27-site-header .jwl27-search-quicklinks a { color: #fff; font-size: 13px; text-decoration: underline; }
.jwl27-site-header .jwl27-mobile-toggle { display: none; border: 0; background: transparent; color: #fff; padding: 10px; width: 44px; height: 44px; margin-left: auto; }
.jwl27-site-header .jwl27-mobile-toggle span { display: block; height: 2px; width: 24px; margin: 5px auto; background: #fff; }
.jwl27-site-header .jwl27-mobile-nav { display: none; color: #fff; background: #002d58; position: absolute; left: 0; right: 0; top: 100%; z-index: 75; box-shadow: 0 16px 24px rgba(0,0,0,.24); }
.jwl27-site-header .jwl27-mobile-inner { max-height: calc(100vh - 94px); overflow-y: auto; padding: 15px 25px 26px; }
.jwl27-site-header .jwl27-mobile-account { display: block; color: white; padding: 14px 0; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.2); }
.jwl27-site-header .jwl27-mobile-group { border-bottom: 1px solid rgba(255,255,255,.2); }
.jwl27-site-header .jwl27-mobile-group summary { cursor: pointer; padding: 14px 0; color: #fff; font-weight: 600; list-style-position: inside; }
.jwl27-site-header .jwl27-mobile-group ul { padding: 0 0 14px 18px; }
.jwl27-site-header .jwl27-mobile-group li a { display: block; padding: 8px 0; color: #e5edf5; font-size: 14px; }
.jwl27-site-header .jwl27-mobile-group li a:hover { color: #fff; text-decoration: underline; }
.jwl27-site-header .jwl27-mobile-search { padding: 20px 0; }
.jwl27-site-header .jwl27-mobile-university { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.jwl27-site-header .jwl27-mobile-university h2 { flex-basis: 100%; margin: 0; color: white; font-size: 14px; font-family: var(--jwl27-font); }
.jwl27-site-header .jwl27-mobile-university a { color: #e5edf5; font-size: 13px; }
/* Match the official site at desktop; collapse before seven library menus become crowded. */
@media (max-width: 1120px) {
  .jwl27-site-header .jwl27-utility-links { gap: 14px; }
  .jwl27-site-header .jwl27-main-nav { display: none; }
  .jwl27-site-header .jwl27-mobile-toggle { display: block; }
  .jwl27-site-header .jwl27-mobile-nav:not([hidden]) { display: block; }
  .jwl27-site-header .jwl27-brand img { max-height: 62px; }
}
@media (max-width: 700px) {
  .jwl27-site-header .jwl27-shell, .jwl27-site-footer .jwl27-shell { width: min(100% - 28px, 1260px); }
  .jwl27-site-header .jwl27-utility-bar { display: none; }
  .jwl27-site-header .jwl27-main-inner { min-height: 70px; }
  .jwl27-site-header .jwl27-brand, .jwl27-site-header .jwl27-brand img { width: 138px; flex-basis: 138px; }
  .jwl27-site-header .jwl27-mobile-inner { max-height: calc(100vh - 70px); }
  .jwl27-site-header .jwl27-search-fields { flex-wrap: wrap; }
  .jwl27-site-header .jwl27-search-fields button { width: 100%; }
}
/* Footer styled after /code/2027's four-column footer, but without affecting old pages. */
.jwl27-site-footer { width: 100%; background: #001a33; color: #e4eaf1; padding: 0; }
.jwl27-site-footer a { color: #e4eaf1; }
.jwl27-site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.jwl27-site-footer .jwl27-footer-main { display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(145px, 1fr)); gap: 36px; padding-block: 53px 44px; }
.jwl27-site-footer .jwl27-footer-brand img { display: block; width: 165px; height: auto; max-width: 100%; }
.jwl27-site-footer .jwl27-footer-tagline { font: 400 24px/1.15 "JWL Plex Serif", Georgia, serif; color: white; margin: 22px 0 16px; }
.jwl27-site-footer .jwl27-footer-meta { display: flex; flex-direction: column; gap: 6px; }
.jwl27-site-footer .jwl27-footer-meta a { font-size: 13px; }
.jwl27-site-footer .jwl27-footer-col h2 { font: 700 15px/1.5 var(--jwl27-font); color: white; margin: 0 0 12px; }
.jwl27-site-footer .jwl27-footer-col li { margin: 0 0 7px; color: #e4eaf1; font-size: 13px; }
.jwl27-site-footer .jwl27-footer-col li a { font-size: 13px; }
.jwl27-site-footer .jwl27-footer-bottom { border-top: 1px solid rgba(255,255,255,.24); }
.jwl27-site-footer .jwl27-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 21px; }
.jwl27-site-footer .jwl27-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 12px; color: #dce6ed; }
.jwl27-site-footer .jwl27-footer-social { display: flex; align-items: center; gap: 14px; }
.jwl27-site-footer .jwl27-footer-social a { display: inline-flex; padding: 4px; }
.jwl27-site-footer .jwl27-footer-social svg { display: block; fill: currentColor; width: 21px; height: 21px; }
@media (max-width: 960px) {
  .jwl27-site-footer .jwl27-footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
  .jwl27-site-footer .jwl27-footer-bottom-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 580px) {
  .jwl27-site-footer .jwl27-footer-main { grid-template-columns: minmax(0,1fr); gap: 27px; padding-block: 35px; }
  .jwl27-site-footer .jwl27-footer-legal { display: flex; flex-wrap: wrap; }
}
