*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }

.psb {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 264px;
  min-width: 264px;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 18px;
}

.psb-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px 8px 2px;
}

.psb-logos .mrcl-make-plaque {
  width: min(100%, 214px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.psb-logos .mrcl-make-plaque img {
  width: 100%;
  height: auto;
  display: block;
}

.psb-logos img.pp {
  height: 54px;
  width: auto;
  max-width: 188px;
  object-fit: contain;
}

.psb-logos img.tm {
  height: 46px;
  width: auto;
  max-width: 206px;
  object-fit: contain;
}

.psb-logos img.fg,
.psb-logos img.mrcl {
  display: none !important;
}

.psb-bottom .psb-viewas {
  display: none !important;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: 66px;
  border-bottom: 1px solid var(--mag-hairline);
  background: rgba(250, 243, 236, .84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px;
}

.portal-topbar .pt-title {
  font-family: var(--mag-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--tmicc-ink);
  white-space: nowrap;
}

.portal-topbar .pt-title em {
  font-style: italic;
  color: var(--tmicc-red);
}

.portal-topbar .pt-seg {
  width: 260px;
  display: none;
  border-color: rgba(29, 29, 27, .25);
}

body.can-internal .portal-topbar .pt-seg {
  display: flex;
}

.portal-topbar .pt-seg button {
  color: rgba(29, 29, 27, .55);
}

.portal-topbar .pt-seg button.on {
  background: var(--tmicc-ink);
  color: var(--tmicc-cream);
}

.portal-topbar .pt-seg button.on.internal {
  background: var(--tmicc-red);
  color: #fff;
}

@media (max-width: 1023px) {
  body {
    flex-direction: column;
  }

  .psb {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    height: auto;
    overflow: hidden;
    padding: 14px 16px;
  }

  .psb-logos {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: center;
  }

  .psb-logos .mrcl-make-plaque {
    width: min(52vw, 210px);
  }

  .psb-logos img.pp {
    height: 42px;
  }

  .psb-logos img.tm {
    height: 34px;
  }

  .psb-hair,
  .psb-cap {
    display: none;
  }

  .psb-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 6px;
  }

  .psb-nav a {
    white-space: nowrap;
    width: auto;
  }

  .psb-div {
    width: 1px;
    height: auto;
    margin: 2px;
    align-self: stretch;
  }

  .psb-bottom {
    display: none;
  }

  .portal-topbar {
    padding: 12px 16px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .portal-topbar .pt-title {
    font-size: 13px;
    min-width: 0;
    white-space: normal;
  }

  .portal-topbar .pt-seg {
    width: min(190px, 100%);
    flex: 0 0 auto;
  }
}
