/* Cold Spring Harbor Laboratory Press â€” top banner
   Recreated from https://www.cshl.edu/cold-spring-harbor-laboratory-press/
   (markup/scripts specific to the WordPress theme, Google Tag Manager, and
   other Google scripts intentionally omitted) */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

.cshl-banner {
  background-color: #004982;
  width: 100%;
  position: relative;
  /* set explicitly (not inherited from body) so the banner keeps its
     typeface even when combined on a page whose body font differs */
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

.cshl-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 55px;
  padding: 0 20px;
}

/* ---------- Left: logo + press title ---------- */

.cshl-banner__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cshl-banner__logo {
  flex: none;
  display: block;
  line-height: 0;
}

.cshl-banner__logo svg {
  width: 240px;
  /* height: 34.8px; */
  height: 100%;
  display: block;
}

.cshl-banner__press {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 12px;
  min-width: 0;
}

.cshl-banner__press a {
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.cshl-banner__press a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.cshl-banner__press span {
  color: #ffffff;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- Right: nav links, search, menu toggle ---------- */

.cshl-banner__right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: none;
}

.cshl-banner__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cshl-banner__links a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.cshl-banner__links a:hover {
  text-decoration: underline;
   color: #ffffff;
}

.cshl-banner__search {
  background: none;
  border: none;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cshl-banner__search svg {
  width: 17px;
  height: 17px;
}

.cshl-banner__menu-toggle {
  background: none;
  border: none;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  cursor: pointer;
}

.cshl-banner__menu-label {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cshl-banner__hamburger {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 20px;
  flex: none;
}

.cshl-banner__hamburger::before,
.cshl-banner__hamburger::after,
.cshl-banner__hamburger span {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.cshl-banner__hamburger::before {
  top: 0;
}

.cshl-banner__hamburger span {
  top: 9px;
}

.cshl-banner__hamburger::after {
  top: 18px;
}

.cshl-banner__menu-toggle.is-active .cshl-banner__hamburger::before {
  top: 9px;
  transform: rotate(45deg);
}

.cshl-banner__menu-toggle.is-active .cshl-banner__hamburger span {
  opacity: 0;
}

.cshl-banner__menu-toggle.is-active .cshl-banner__hamburger::after {
  top: 9px;
  transform: rotate(-45deg);
}

/* ---------- Mobile dropdown menu ---------- */
/* Holds the items that move out of the main bar below 768px (matching
   the collapse breakpoint of the live CSHL Press site) so the hamburger
   toggle still leads somewhere. */

.cshl-banner__mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  .cshl-banner__mobile-menu:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #003a68;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    z-index: 100;
  }
}

.cshl-banner__mobile-press {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cshl-banner__mobile-press a {
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
}

.cshl-banner__mobile-press span {
  color: #ffffff;
  font-size: 14px;
  font-style: italic;
}

.cshl-banner__mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cshl-banner__mobile-links a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
/* At 767px and below, only .cshl-banner__press should appear — everything
   else in the banner (logo, nav links, search, menu toggle) is hidden. */

@media (max-width: 767px) {
  .cshl-banner__logo,
  .cshl-banner__right {
    display: none;
  }
}