/* Shared content column — page wraps and footer share one left edge */
:root {
  --im-col: min(1120px, calc(100% - 48px));
}

/* Site-wide fixed top navigation — lab.imstem.org interaction model */
.hd-wrap,
.menu-dropdowm,
.navmobile {
  display: none !important;
}

header.im-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
header.im-bar.is-scrolled,
header.im-bar.is-open {
  background: rgba(5, 8, 15, 0.94);
  border-bottom-color: rgba(126, 200, 227, 0.16);
  backdrop-filter: blur(12px);
}
.im-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
}
.im-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.im-brand img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 148px;
}
.im-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2px;
  margin-left: auto;
}
.im-nav > a,
.im-drop__btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  color: #e8eef6;
  text-decoration: none;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 2px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.im-nav > a:hover,
.im-nav > a[aria-current="page"],
.im-drop.is-open .im-drop__btn,
.im-drop.is-current .im-drop__btn,
.im-drop__btn:hover {
  color: #7ec8e3;
}
.im-drop__btn::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
}
.im-nav > a:focus-visible,
.im-drop__btn:focus-visible {
  outline: 2px solid #7ec8e3;
  outline-offset: 2px;
}
.im-drop { position: relative; }
.im-drop__panel {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 188px;
  padding: 8px 0;
  background: rgba(5, 8, 15, 0.97);
  border: 1px solid rgba(126, 200, 227, 0.16);
  z-index: 20;
}
.im-drop:last-child .im-drop__panel {
  left: auto;
  right: 0;
}
.im-drop.is-open .im-drop__panel { display: block; }
.im-drop__panel a {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  color: #e8eef6;
  text-decoration: none;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}
.im-drop__panel a:hover,
.im-drop__panel a[aria-current="page"] { color: #7ec8e3; }
.im-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.im-toggle span,
.im-toggle span::before,
.im-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #e8eef6;
  position: absolute;
  left: 13px;
  transition: transform .2s ease, opacity .2s ease;
}
.im-toggle span { top: 21px; }
.im-toggle span::before,
.im-toggle span::after { content: ""; left: 0; }
.im-toggle span::before { top: -6px; }
.im-toggle span::after { top: 6px; }
.im-bar.is-open .im-toggle span { background: transparent; }
.im-bar.is-open .im-toggle span::before { top: 0; transform: rotate(45deg); }
.im-bar.is-open .im-toggle span::after { top: 0; transform: rotate(-45deg); }
.im-toggle:focus-visible { outline: 2px solid #7ec8e3; outline-offset: 2px; }

@media (max-width: 1080px) {
  .im-toggle { display: block; margin-left: auto; }
  .im-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 20px 32px;
    min-height: calc(100vh - 68px);
    background: #05080f;
    border-bottom: 0;
  }
  header.im-bar.is-open .im-nav { display: flex; }
  .im-nav > a,
  .im-drop__btn {
    height: 48px;
    padding: 0 8px;
    font-size: 16px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(126, 200, 227, 0.12);
    width: 100%;
  }
  .im-drop__panel {
    position: static;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
  }
  .im-drop.is-open .im-drop__panel { display: block; }
}

footer.im-foot {
  background: #05080f !important;
  color: #c9d7e6;
  padding: 0 0 40px;
  margin: 0;
  border-top: 1px solid rgba(126, 200, 227, 0.16);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
}
.im-foot__inner {
  width: var(--im-col);
  margin: 0 auto;
  padding-top: 36px;
}
.wrap {
  width: var(--im-col) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
footer.im-foot nav,
.im-foot__nav { display: none !important; }
footer.im-foot nav::before,
footer.im-foot nav::after {
  content: none !important;
  display: none !important;
}
.im-foot__row {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 28px 48px;
  align-items: stretch;
}
.im-foot__meta {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #9aadc2;
  text-align: left;
}
.im-foot__meta p {
  margin: 0;
  text-align: left;
}
.im-foot__meta a { color: #c9d7e6; text-decoration: none; }
.im-foot__meta a:hover { color: #7ec8e3; }
.im-foot__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.18), rgba(10, 18, 32, 0.55));
  border: 1px solid rgba(196, 165, 116, 0.55);
  box-shadow: inset 0 1px 0 rgba(232, 238, 246, 0.06);
}
.im-foot__panel-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4a574;
}
.im-foot__panel strong {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: #e8eef6;
  line-height: 1.15;
}
.im-foot__panel-go {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #c4a574;
}
.im-foot__panel:hover {
  border-color: #d4b88a;
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.26), rgba(10, 18, 32, 0.4));
}
.im-foot__panel:hover .im-foot__panel-go { color: #e8d3b0; }
.im-foot__panel:focus-visible { outline: 2px solid #7ec8e3; outline-offset: 3px; }
@media (max-width: 800px) {
  .im-foot__row { grid-template-columns: 1fr; }
}
