:root {
  --header-offset: 6rem;
}

.site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header-bar > * {
  min-width: 0;
}

.site-header-brand {
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hidden.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .hidden.site-nav {
    display: flex;
  }
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .site-header-bar {
    flex-wrap: nowrap;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .site-header-bar {
    align-items: flex-start;
  }

  .site-nav-full {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header-cta {
    width: 100%;
  }
}

.hero-actions .hero-cta {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-actions .hero-cta {
    width: auto;
  }
}

.hero-chips {
  width: 100%;
}

.hero-chips .chip {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

@media (min-width: 480px) {
  .hero-chips {
    width: auto;
  }

  .hero-chips .chip {
    width: auto;
  }
}

.section {
  scroll-margin-top: var(--header-offset);
}

@media (max-width: 767px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
}

body.score-modal-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

.score-modal-container {
  align-items: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
  .score-modal-container {
    align-items: center;
  }
}

.score-modal-panel {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
  .score-modal-panel {
    max-height: calc(100vh - 4rem);
  }
}
