/* Shared compact chapter navigation. Keep each case's colors and desktop grid. */
@media (max-width: 767px) {
  body[class] main nav[class$="-index"] {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[class] main nav[class$="-index"]::-webkit-scrollbar {
    display: none;
  }

  body[class] main nav[class$="-index"] > a {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-width: 138px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    padding: 10px 16px;
    font-family: var(--sans, "Helvetica Neue", Arial, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
  }

  body[class] main nav[class$="-index"] > a > span {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.25;
  }
}

/* Case introductions share one typographic voice; each hero retains its color. */
body main .gb-case-subtitle,
body main .gb-case-subtitle .gb-case-subtitle__detail {
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body main .gb-case-subtitle { display: block !important; max-width: 100%; min-width: 0; }
body main .gb-case-subtitle .gb-case-subtitle__detail {
  display: block !important;
  margin-top: 6px;
  color: inherit;
}
@media (max-width: 767px) {
  body main .gb-case-subtitle,
  body main .gb-case-subtitle .gb-case-subtitle__detail { font-size: 11px !important; }
}
