/* SPES Registration at 768px is the reference for every site masthead.
   Keep this separate from page titles, printable reports and profile photos. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

.header.header,
.head-main.head-main,
.reapplication-header.reapplication-header,
.espes-form-header.espes-form-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  min-height: 63px;
  padding: 12px 30px;
}

.header > a,
.head-main .brand-logo,
.espes-form-header > img {
  flex: 0 0 auto;
}

.header > a {
  display: flex;
  align-items: center;
}

.head-main .brand,
.reapplication-header .reapplication-brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}

.header > a > img,
.header > img,
.head-main .brand-logo img,
.reapplication-header .reapplication-brand > img,
.espes-form-header > img {
  width: 112px;
  height: auto;
  max-height: 50px;
  margin: 0;
  object-fit: contain;
}

:is(.header .header-text, .head-main .brand-title,
    .reapplication-header .reapplication-brand > span, .espes-form-header .brand) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: none;
  padding: 0 0 0 14px;
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, .35);
  text-align: left;
  overflow: visible;
}

:is(.header .header-text, .head-main .brand-title,
    .reapplication-header .reapplication-brand > span, .espes-form-header .brand) > :is(h1, strong, b) {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f6f8ff;
  /* Legacy student and landing styles force nowrap with !important. */
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}

:is(.header .header-text, .head-main .brand-title,
    .reapplication-header .reapplication-brand > span, .espes-form-header .brand) > :is(p, small, span) {
  display: block;
  width: 100%;
  max-width: none;
  margin: 4px 0 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .03em;
  color: rgba(232, 237, 255, .95);
  text-align: left;
  white-space: normal;
}

.header .header-right {
  flex: 0 0 auto;
  margin-left: auto;
}

.espes-form-header.espes-form-header {
  height: auto;
}

@media (min-width: 721px) and (max-width: 1000px) {
  .header .header-right .user-info {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .header.header,
  .head-main.head-main,
  .reapplication-header.reapplication-header,
  .espes-form-header.espes-form-header {
    min-height: 58px;
    padding: 8px 10px;
    gap: 8px;
  }

  .header > a {
    display: flex;
    align-items: center;
  }

  .head-main .brand,
  .reapplication-header .reapplication-brand {
    gap: 8px;
  }

  .header > a > img,
  .header > img,
  .head-main .brand-logo img,
  .reapplication-header .reapplication-brand > img,
  .espes-form-header > img {
    width: clamp(72px, 21vw, 88px);
    max-height: 38px;
  }

  .header .burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .header .header-right {
    display: none;
  }

  :is(.header .header-text, .head-main .brand-title,
      .reapplication-header .reapplication-brand > span, .espes-form-header .brand) {
    padding-left: 8px;
  }

  :is(.header .header-text, .head-main .brand-title,
      .reapplication-header .reapplication-brand > span, .espes-form-header .brand) > :is(h1, strong, b) {
    font-size: clamp(8px, 2vw, 10px);
    letter-spacing: .01em;
    line-height: 1.2;
  }

  :is(.header .header-text, .head-main .brand-title,
      .reapplication-header .reapplication-brand > span, .espes-form-header .brand) > :is(p, small, span) {
    margin-top: 2px;
    font-size: 8px;
    letter-spacing: .01em;
    line-height: 1.25;
  }
}
