/* Shared Kochi Navy Cyclothon styles.
   Type scale (also set in assets/theme.js):
   display-hero 72/72, headline-xl 48/52, headline-lg 32/36,
   headline-md 24/28, headline-sm 20/24, body-lg 18/28,
   body-md 15/24, body-sm 13/20, label-badge 14/16,
   label-caption 11/14, label-mono-stat 28/28.
   Header navigation always uses headline-sm. */

@layer base{html,body{margin:0;padding:0;}body{overscroll-behavior:none;}main>:first-child{margin-top:0!important;}main>:last-child{margin-bottom:0!important;}}::-webkit-scrollbar{display:none;}

/* One size for every item in the header menu. */
header nav a,
header nav button {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Keep Register Now on screen on phones. */
header a[data-path="register"] {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 639px) {
  header > div {
    gap: 0.5rem;
  }

  header > div > div:first-child {
    min-width: 0;
    gap: 0.5rem;
  }

  header > div > div:first-child img {
    height: 2.75rem;
  }

  header > div > div:first-child > div span.font-headline-sm {
    font-size: 13px;
    line-height: 15px;
  }

  header > div > div:first-child > div span.font-label-badge {
    font-size: 10px;
    line-height: 12px;
  }

header a[data-path="register"] {
  font-size: 14px;
  line-height: 16px;
  padding: 8px 10px;
}

  /* Phone type scale. Long display words such as COMMEMORATIVE must fit the screen. */
  body .text-display-hero {
    font-size: 40px;
    line-height: 42px;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
  }

  body .text-headline-xl {
    font-size: 32px;
    line-height: 36px;
    overflow-wrap: break-word;
  }

  body .text-headline-lg {
    font-size: 26px;
    line-height: 30px;
  }
}

/* Three-up stat cells stay on one line on a phone. */
@media (max-width: 639px) {
  main .grid.grid-cols-3 > div > span.font-label-caption {
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.03em;
  }

  main .grid.grid-cols-3 > div > span.font-label-mono-stat {
    font-size: 15px;
    line-height: 18px;
    white-space: nowrap;
  }
}

/* Phone menu opened by the header menu button. */
@media (max-width: 1023px) {
  header.menu-open nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    gap: 0;
    padding: 0.25rem 1rem 0.75rem;
    background: #082967;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(5, 11, 23, 0.35);
    z-index: 60;
  }

  header.menu-open nav a,
  header.menu-open nav button {
    height: auto;
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  header.menu-open nav .group {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    width: 100%;
  }

  header.menu-open nav .group > div {
    display: flex;
    flex-direction: column;
    position: static;
    width: 100%;
    padding: 0;
  }

  header.menu-open nav .group > div > div {
    display: flex;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 0.75rem;
    width: 100%;
  }
}

.lightbox-backdrop {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.lightbox-content-animate {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}
