/* Blog journal header: burger left · logo center · CTA right */

.bhead__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 52px;
  height: 58px;
}

.bhead__slot {
  display: flex;
  align-items: center;
}
.bhead__slot--left,
.bhead__slot--right {
  min-width: auto;
  flex-shrink: 0;
}
.bhead__slot--left { justify-content: flex-start; }
.bhead__slot--center {
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.bhead__slot--right {
  justify-content: flex-end;
  gap: 12px;
}

.bhead__slot--center a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.bhead__slot--center img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.bhead__school {
  font-size: 12.5px;
  font-weight: 700;
  color: #8A8A87;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.bhead__school:hover { color: #0A0F12; }

/* Header CTA */
.bhead .bhead__cta.btn-primary,
.bhead a.bhead__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  min-height: 38px !important;
  height: auto !important;
  padding: 0 14px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  border-radius: 2px !important;
}

.bhead__cta-short { display: none; }

/* Mobile: compact fuchsia pill, white microcopy */
@media (max-width: 639px) {
  .bhead > .mx-auto {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .bhead__bar {
    grid-template-columns: 28px 1fr auto;
    column-gap: 10px;
    height: 50px;
    min-height: 50px;
  }

  .bhead__slot--center img {
    height: 26px;
  }

  .bhead__cta-full { display: none; }
  .bhead__cta-short { display: inline; }

  .bhead .bhead__cta.btn-primary,
  .bhead a.bhead__cta {
    background: #D916B0 !important;
    color: #fff !important;
    box-shadow: none !important;
    flex-shrink: 0;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 9px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    border-radius: 2px !important;
  }
}

.bhead-burger.t-menuburger {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 51;
}
.bhead-burger.t-menuburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  left: 0;
  background-color: #0A0F12;
  transition: 0.25s ease-in-out;
}
.bhead-burger.t-menuburger span:nth-child(1) { top: 0; }
.bhead-burger.t-menuburger span:nth-child(2),
.bhead-burger.t-menuburger span:nth-child(3) { top: 8px; }
.bhead-burger.t-menuburger span:nth-child(4) { top: 16px; }
.bhead-burger.t-menuburger-opened span:nth-child(1),
.bhead-burger.t-menuburger-opened span:nth-child(4) {
  top: 8px;
  width: 0;
  left: 50%;
}
.bhead-burger.t-menuburger-opened span:nth-child(2) { transform: rotate(45deg); }
.bhead-burger.t-menuburger-opened span:nth-child(3) { transform: rotate(-45deg); }

body.t451__body_menushowed {
  overflow: hidden;
}

/* Overlay */
#blog-global-menu .t451m__overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
#blog-global-menu .t451m__overlay.t451m__menu_show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#blog-global-menu .t451m__overlay_bg {
  position: absolute;
  inset: 0;
}

/* Sidebar panel */
#blog-global-menu .t451.t451m {
  position: fixed;
  top: 0;
  left: 0;
  width: min(420px, 92vw);
  max-width: 100%;
  height: 100%;
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#blog-global-menu .t451.t451m.t451m__menu_show {
  transform: translateX(0);
}

#blog-global-menu .t451m__container {
  padding: 56px 28px 32px;
  min-height: 100%;
  box-sizing: border-box;
}

#blog-global-menu .t451m__close-button {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10000;
}
#blog-global-menu .t451m__close_icon {
  position: relative;
  width: 22px;
  height: 22px;
  margin: auto;
}
#blog-global-menu .t451m__close_icon span {
  position: absolute;
  left: 0;
  top: 10px;
  width: 100%;
  height: 2px;
  background: #fff;
}
#blog-global-menu .t451m__close_icon span:nth-child(1) { transform: rotate(45deg); }
#blog-global-menu .t451m__close_icon span:nth-child(2) { transform: rotate(-45deg); }
#blog-global-menu .t451m__close_icon span:nth-child(3),
#blog-global-menu .t451m__close_icon span:nth-child(4) { display: none; }
