/*
Theme Name: Sheshi Homepage Component Audit Corrections
Version: 0.31.8
Description: Closes tablet navigation, category metadata and responsive section-rhythm defects found in the rendered component audit.
*/

@media (max-width: 1023px) {
  body.sheshi-shell .sheshi-site-header .sheshi-mobile-menu > summary,
  body.sheshi-home .sheshi-site-header .sheshi-mobile-menu > summary {
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--accent) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.sheshi-shell .sheshi-site-header .sheshi-mobile-action > span,
  body.sheshi-home .sheshi-site-header .sheshi-mobile-action > span {
    color: var(--text-primary) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.sheshi-shell .sheshi-site-header .sheshi-mobile-menu[open] > nav,
  body.sheshi-home .sheshi-site-header .sheshi-mobile-menu[open] > nav {
    top: 64px !important;
    bottom: auto !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  body.sheshi-home .sheshi-home-category-tile {
    height: 80px !important;
    min-height: 80px !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  body.sheshi-home .sheshi-home-category-tile .sheshi-category-icon,
  body.sheshi-home .sheshi-home-category-copy {
    align-self: center !important;
  }

  body.sheshi-home .sheshi-home-category-copy {
    display: grid !important;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 8px !important;
    align-items: start !important;
  }

  body.sheshi-home .sheshi-home-category-name,
  body.sheshi-home .sheshi-home-category-count {
    display: block !important;
    line-height: 1.25 !important;
  }

  body.sheshi-home .sheshi-home-category-name {
    font-size: 13px !important;
  }

  body.sheshi-home .sheshi-home-category-count {
    justify-self: end !important;
    margin-left: 0 !important;
  }

  body.sheshi-home .sheshi-home-categories {
    padding-top: 40px !important;
    padding-bottom: 48px !important;
  }

  body.sheshi-home .sheshi-home-institutions {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  body.sheshi-home .sheshi-home-countries {
    padding-top: 48px !important;
    padding-bottom: 20px !important;
  }

  body.sheshi-home .sheshi-home-about {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}

@media (max-width: 767px) {
  body.sheshi-home .sheshi-home-categories {
    padding-bottom: 40px !important;
  }

  body.sheshi-home .sheshi-home-institutions {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  body.sheshi-home .sheshi-home-countries {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
  }

  body.sheshi-home .sheshi-home-growth {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  body.sheshi-home .sheshi-home-about {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}
