/* Two-line, full-width mobile cards. Desktop Team History remains unchanged. */
@media (max-width: 767px) {
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced {
    padding: 14px 12px 17px !important;
    overflow: hidden;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-summary {
    font-size: 11px !important;
    padding: 6px 10px !important;
    max-width: 100%;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced ul.ah-nbl-clubs {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 9px !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced ul.ah-nbl-clubs::before,
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-node {
    display: none !important;
    content: none !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced ul.ah-nbl-clubs > li.ah-history-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    grid-template-areas: "logo name name" "years years seasons" !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 9px !important;
    padding: 11px 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    border: 1px solid #e0e5e9 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    background: #f8f9fb !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-row .ah-history-logo {
    grid-area: logo !important;
    grid-column: auto !important;
    width: 42px !important;
    height: 38px !important;
    max-width: 42px !important;
    margin: 0 !important;
    justify-self: center !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-row .ah-history-logo img {
    max-width: 42px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-row strong.ah-history-name {
    grid-area: name !important;
    grid-column: auto !important;
    min-width: 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-row .ah-history-years {
    grid-area: years !important;
    grid-column: auto !important;
    justify-self: start !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  html body.single-player .ah-nbl-overview .ah-nbl-team-history.ah-history-enhanced .ah-history-row .ah-history-seasons {
    grid-area: seasons !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}
