/* Shared header, footer and text styles for the inner pages (About, Account,
   Leaderboards, Privacy, Terms and the module setup page). Matches the home page. */

[hidden] {
  display: none !important;
}

/* Header */
.site-header .nav {
  width: min(1180px, calc(100% - 32px)) !important;
}

.site-header .nav-links > a {
  font-size: .9375rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.site-header .nav-links > .button.primary.store-nav {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.apple-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .site-header .nav {
    position: relative !important;
    width: calc(100% - 32px) !important;
    padding: 10px 0 !important;
  }

  .site-header .nav-links > .nav-home {
    display: none !important;
  }

  .site-header .nav-links > .button.primary.store-nav {
    position: absolute;
    top: 10px;
    right: 0;
    min-height: 38px !important;
    padding: 0 14px !important;
  }
}

/* Calm text: no uppercase eyebrows, black headings */
.eyebrow {
  color: #0066cc !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.site-racechrono .lead a {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-legal .wrap h1,
.site-legal .wrap h2 {
  color: #000000 !important;
}

.site-legal .panel > h2:first-child {
  margin-top: 0 !important;
}

.site-legal .wrap .meta {
  color: #6e6e73 !important;
}

.site-legal .wrap a:not(.button) {
  color: #0066cc !important;
}

.site-legal .wrap a:not(.button):hover {
  color: #004c99 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-legal .wrap {
  padding-bottom: 56px !important;
}

/* Footer */
.rm-footer {
  padding: 48px 0 40px;
  border-top: 1px solid #d1d1d6;
  background: #f2f2f7;
  color: #6e6e73;
  font-size: .88rem;
  line-height: 1.6;
}

.rm-footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.rm-footer p,
.rm-footer ul,
.rm-footer li {
  margin: 0;
  color: inherit;
  font-size: .88rem;
  line-height: 1.6;
}

.rm-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rm-footer .footer-title {
  margin-bottom: 8px;
  color: #1c1c1e;
  font-weight: 500 !important;
}

.rm-footer .footer-sub {
  margin-top: 20px;
}

.rm-footer-company p + p {
  margin-top: 4px;
}

.rm-footer a {
  color: #3c3c43;
  text-decoration: none;
}

.rm-footer a:hover {
  color: #0066cc;
}

.rm-footer .nw {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .rm-footer-company {
    grid-column: 1 / -1;
  }
}
