/* V41: final alignment and guest-story polish for desktop and phone. */

.pack.is-annual.is-selected {
  color: #173228 !important;
  background: #f4e7ad !important;
  border: 0 !important;
  box-shadow: none !important;
}

.league-rule {
  color: #173228;
  background: #f4e7ad;
}

@media (min-width: 721px) {
  body:not(.needs-entry) .topbar {
    grid-template-columns: minmax(270px, 1fr) auto minmax(650px, 1fr);
    align-items: center;
    width: calc(100% - 32px);
    max-width: 1780px;
    margin: 8px auto 0;
    padding: 10px 18px;
  }

  body:not(.needs-entry) .brand {
    min-width: 0;
    padding-left: 0;
  }

  body:not(.needs-entry) .brand > span {
    min-width: 0;
  }

  body:not(.needs-entry) .brand strong,
  body:not(.needs-entry) .brand small {
    white-space: nowrap;
  }

  body:not(.needs-entry) .topbar-tools {
    grid-template-columns: auto auto auto minmax(250px, 292px);
    align-items: center;
  }

  body:not(.needs-entry) .treehouse-card {
    grid-template-columns: 70px minmax(112px, 1fr);
    width: 226px;
    min-height: 128px;
  }

  body:not(.needs-entry) .treehouse-art {
    width: 68px;
    height: 62px;
  }

  body:not(.needs-entry) .treehouse-copy strong {
    font-size: .76rem;
  }

  body:not(.needs-entry) .treehouse-copy small {
    display: block;
    max-width: 120px;
    line-height: 1.25;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body:not(.needs-entry) .topbar {
    grid-template-columns: 48px auto minmax(0, 1fr);
    width: calc(100% - 20px);
    padding-inline: 10px;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  body:not(.needs-entry) .topbar {
    grid-template-columns: 34px 80px 48px 48px minmax(0, 1fr) !important;
    grid-template-rows: 48px !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 5px 6px !important;
  }

  body:not(.needs-entry) .brand,
  body:not(.needs-entry) .track-switch,
  body:not(.needs-entry) .hungry-notes-link,
  body:not(.needs-entry) .canopy-inbox-button,
  body:not(.needs-entry) .wallet {
    align-self: center;
    margin: 0 !important;
  }

  body:not(.needs-entry) .hungry-notes-link,
  body:not(.needs-entry) .canopy-inbox-button {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }

  body:not(.needs-entry) #hungryNotesTopLabel,
  body:not(.needs-entry) .canopy-inbox-button span {
    width: 46px !important;
    max-width: 46px !important;
  }

  body:not(.needs-entry) .wallet {
    justify-self: stretch;
    min-width: 0 !important;
    overflow: hidden;
  }

  body:not(.needs-entry) .wallet.has-annual-pass small {
    font-size: .42rem;
  }

  body:not(.needs-entry) .wallet.has-annual-pass #leafCount {
    font-size: .57rem;
  }

  body:not(.needs-entry) .treehouse-mobile-status {
    display: block;
    max-width: 100%;
    line-height: 1.18;
    white-space: normal;
  }

  body:not(.needs-entry) .league-rule {
    font-size: .61rem;
    line-height: 1.45;
  }
}

@media (max-width: 374px) and (orientation: portrait) {
  body:not(.needs-entry) .topbar {
    grid-template-columns: 32px 72px 42px 42px minmax(0, 1fr) !important;
    gap: 2px !important;
    padding-inline: 4px !important;
  }

  body:not(.needs-entry) .track-switch {
    width: 72px;
    min-width: 72px;
  }

  body:not(.needs-entry) .hungry-notes-link,
  body:not(.needs-entry) .canopy-inbox-button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }

  body:not(.needs-entry) #hungryNotesTopLabel,
  body:not(.needs-entry) .canopy-inbox-button span {
    width: 40px !important;
    max-width: 40px !important;
    font-size: .39rem !important;
  }
}
