/* css styles */

/* ABOUT STYLES */

.navbar-logo {
  width: 3.5rem;
  height: 3.5rem;
  max-height: none;
  object-fit: contain;
}

body.nav-fixed #quarto-content {
  padding-top: 0 !important;
}

main#quarto-document-content {
  display: block;
  grid-column: screen-start / screen-end;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  font-size: 1.25rem;
  line-height: 1.65;
}

@media (max-width: 700px) {
  main#quarto-document-content {
    font-size: 1.125rem;
  }
}

main#quarto-document-content > p,
main#quarto-document-content > h2,
main#quarto-document-content > ul,
main#quarto-document-content section.level2 > p,
main#quarto-document-content section.level2 > h2,
main#quarto-document-content section.level2 > ul {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

main#quarto-document-content :is(.loco-register, .race-route, .race-formats, .registration-page, .records, .race-cards, .follow-us, .land-acknowledgement, .offroad-story) {
  width: calc(100% - 3rem);
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}

main#quarto-document-content :is(.race-route, .race-formats, .registration-page, .records, .offroad-story) {
  padding-left: 0;
  padding-right: 0;
}

main#quarto-document-content :is(.race-formats, .registration-page, .offroad-story-text, .race-route-text) section.level2 > :is(p, h2, ul) {
  padding-left: 0;
  padding-right: 0;
}

.supporter-founder,
.past-supporters {
  width: calc(100% - 3rem);
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}

.supporter-founder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 4rem;
  margin-bottom: 5rem;
}

.supporter-founder h2,
.supporter-story h2,
.past-supporters h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.supporter-founder-text p:not(.supporter-eyebrow) {
  line-height: 1.7;
}

.supporter-founder-text {
  align-self: center;
}

.supporter-founder-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  object-position: center;
}

.supporter-support.blue-section {
  margin: 4rem 0 6rem;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  text-align: center;
}

.supporter-support h2,
.supporter-support > p {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.supporter-support h2 {
  margin-top: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.supporter-support > p {
  line-height: 1.7;
}

.supporter-support .supporter-link {
  border-color: #fff;
  color: #fff;
}

.supporter-support .supporter-link:hover {
  background: #fff;
  color: #222;
}

.supporter-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.supporter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #222;
  color: #222;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.supporter-link:hover {
  background: #222;
  color: #fff;
  text-decoration: none;
}

.supporter-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.05)),
    #d9d3c8;
  border: 1px solid #c9c1b3;
  color: #736b5f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.past-supporters {
  margin-bottom: 5rem;
  text-align: center;
}

.past-supporter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  text-align: left;
}

.past-supporter-grid ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.past-supporter-grid li {
  min-height: 7rem;
  padding: 1.5rem;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .supporter-founder,
  .past-supporters {
    width: calc(100% - 3rem);
  }

  .supporter-founder {
    grid-template-columns: minmax(0, 1fr);
  }

  .supporter-founder-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .past-supporter-grid {
    grid-template-columns: 1fr;
  }
}

main#quarto-document-content section.page-columns {
  display: block;
}

.alumni-page main#quarto-document-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.alumni-page main#quarto-document-content > :is(p, h2, ul),
.alumni-page main#quarto-document-content section.level2 > :is(p, h2, ul) {
  padding-left: 0;
  padding-right: 0;
}

#title-block-header.quarto-title-block {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
}

/* Shared banners: choose the image inside each page's .race-header. */
.race-header {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  min-height: 72vh;

  display: flex;
  align-items: flex-end;

  margin-bottom: 3rem;
}

.race-header img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.race-header img.hero-image-flipped {
  transform: scaleX(-1);
}

.race-header.column-screen {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.race-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.race-header > p,
.race-header figure,
.race-header .quarto-figure {
  margin: 0;
}

.about-hero-content {
  width: 100%;
  padding: clamp(2rem, 6vw, 6rem) clamp(2rem, 6vw, 6rem) clamp(0.75rem, 1.5vw, 1.25rem);
}

.race-header .about-hero-logo {
  position: static;
  display: block;
  width: clamp(14rem, 40vw, 36rem);
  max-width: 100%;
  max-height: 65vh;
  height: auto;
  object-fit: contain;
  margin-right: auto;
}

.about-tagline {
  color: white;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0 0;
}

.race-resources p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 2rem;
}

.race-resources a {
  padding: 0.75rem 1.5rem;
  border: 1px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

.race-resources a:hover {
  text-decoration: underline;
}

.signup-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: none;
  margin: 0 auto 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: #222;
  color: #fff;
}

.signup-strip.column-screen {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.signup-strip h2 {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
}

.signup-strip p {
  margin: 0;
}

.signup-strip-button {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  background: #fff;
  color: #222;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.signup-strip-button:hover {
  background: #ddd;
}

.signup-strip-button:focus-visible {
  outline: 3px solid #d7cebe;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .signup-strip {
    flex-direction: column;
    text-align: center;
  }
}

.follow-us {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  margin: 0 auto 5rem;
  text-align: center;
  padding: 0 1.5rem;
}

.follow-us-logo {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto;
}

.follow-us-content {
  min-width: 0;
}

.follow-us h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.follow-us-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.follow-us-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.follow-us-links .bi {
  font-size: 3rem;
  line-height: 1;
}

@media (max-width: 700px) {
  .follow-us {
    grid-template-columns: minmax(0, 1fr);
  }
}

.land-acknowledgement {
  display: grid;
  grid-template-columns: 0.65rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0 auto 5rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: #f3eee4;
  border: 1px solid #ded6c6;
}

.land-acknowledgement-mark {
  width: 100%;
  min-height: 100%;
  background: #8a6d4b;
}

.land-acknowledgement-content {
  max-width: 820px;
}

.land-acknowledgement-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b573f;
}

.land-acknowledgement h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.land-acknowledgement-content > p:not(.land-acknowledgement-label):not(.land-acknowledgement-treaty) {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.land-acknowledgement-treaty {
  margin: 1.5rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

@media (max-width: 700px) {
  .land-acknowledgement {
    grid-template-columns: 0.35rem minmax(0, 1fr);
    padding: 1.5rem 1.25rem;
  }
}

/* RACE CARDS */

.race-cards {
  width: 100%;
  max-width: none;
  margin: 4rem auto 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.race-card {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: stretch;

  border: 1px solid #ddd;
  text-decoration: none;
  color: inherit;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.race-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  color: inherit;
}



/* Secret third race */
.race-card-secret {
  border: 1px dashed rgba(128, 128, 128, 0.5);
  cursor: pointer;
}

.race-logo-secret {
  display: flex;
  align-items: center;
  justify-content: center;
}

.race-logo-secret span {
  font-size: 5rem;
  font-weight: 900;
  opacity: 0.25;
}

.race-card-secret .race-card-link {
  opacity: 0.6;
}

/* Triple Crown teaser */
.triple-crown {
  text-align: center;
  padding: 4rem 1.5rem;
  margin: 3rem auto;
  max-width: 750px;
}

.triple-crown-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.triple-crown h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 1rem 0 1.5rem;
}

.triple-crown p {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* LOGO SIDE */
.race-logo {
  min-height: 300px;
  padding: 3rem;

  display: flex;
  align-items: center;
  justify-content: center;
}

.race-logo img {
  width: 100%;
  max-width: 300px;
  max-height: 200px;
  object-fit: contain;
}


/* TEXT SIDE */
.race-card-content {
  padding: 3rem;
  border-left: 1px solid #ddd;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.race-card-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.race-card h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

@media (min-width: 701px) {
  .race-card h2 {
    white-space: nowrap;
  }
}

.race-card p {
  max-width: 550px;
  margin-bottom: 1.5rem;
}

.race-card-link {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* MOBILE */

@media (max-width: 700px) {

  .race-cards {
    grid-template-columns: 1fr;
  }

  .race-logo {
    min-height: 220px;
    padding: 2rem;
  }

}

.fkt-hero-content {
  width: 100%;
  padding: clamp(2rem, 6vw, 6rem);
  color: white;
}

.race-header .fkt-series-logo {
  position: static;
  display: block;
  z-index: auto;
  width: clamp(9rem, 20vw, 18rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 0 1rem;
}

.fkt-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

/* TRACKER */

.tracker-container {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.tracker-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.race-header h1 {
  color: white;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0 0 2rem 0;
}

.fkt-hero-stats {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;

  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fkt-hero-tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fkt-hero-stats strong {
  font-size: clamp(1.2rem, 2.5vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.fkt-hero-stats-compact strong {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

/* MOBILE */

@media (max-width: 700px) {

  .race-header {
    min-height: clamp(18rem, 48vh, 26rem);
    min-height: clamp(18rem, 48svh, 26rem);
    margin-bottom: 2rem;
  }

  .about-hero-content,
  .fkt-hero-content {
    min-width: 0;
    padding: 1.5rem;
    text-align: center;
  }

  .race-header .about-hero-logo {
    width: clamp(12rem, 68vw, 20rem);
    max-height: 48svh;
    margin: 0 auto;
  }

  .race-header .fkt-series-logo {
    width: clamp(8rem, 42vw, 13rem);
    margin: 0 auto 1rem;
  }

  .race-header h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
    overflow-wrap: anywhere;
    margin-bottom: 1.25rem;
  }

  .fkt-hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }
}

/* RECORD HOLDERS */

.records {
  width: 100%;
  max-width: none;
  margin: 4rem auto;
  padding: 0 2rem;
}

.records h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.record-category {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid;
  border-bottom: 2px solid;
}

.record {
  padding: 2rem;
  border-right: 1px solid;
}

.record:last-child {
  border-right: none;
}

.record-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.record-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.record-time {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0.3rem 0;
}

.record-date {
  font-size: 0.85rem;
}

.supported-category {
  margin-top: 3rem;
}

/* Mobile */

@media (max-width: 700px) {
  .record-grid {
    grid-template-columns: 1fr;
  }

  .record {
    border-right: none;
    border-bottom: 1px solid;
  }

  .record:last-child {
    border-bottom: none;
  }
}


.loco-register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin: 3rem auto 5rem;
  gap: 1.5rem;
}

.race-registration-logo,
.race-registration-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  min-width: 0;
  text-align: center;
}

.race-registration-logo {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #ddd;
}

.race-registration-logo img {
  position: absolute;
  inset: 1rem;
  display: block;
  width: calc(100% - 2rem);
  max-width: none;
  height: calc(100% - 2rem);
  max-height: none;
  object-fit: contain;
}

.race-registration-details {
  background: #222;
  color: white;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.race-registration-details:hover {
  background: #444;
  color: white;
}

.race-registration-details:focus-visible {
  outline: 3px solid #625834;
  outline-offset: 4px;
}

.loco-register h2 {
  color: inherit;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 1rem 0 2rem;
}

.loco-register p {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.race-registration-arrow {
  margin-top: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .loco-register {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }
}

/* TIP 2 TIP GRAVEL HERO */

.tip2tip-offroad {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 4rem;
}

.offroad-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 0 1.5rem;
}

.offroad-story + .offroad-story {
  margin-top: clamp(3rem, 7vw, 6rem);
}

.offroad-story-text {
  min-width: 0;
  align-self: start;
}

.offroad-story-image {
  position: relative;
  min-height: 28rem;
}

.offroad-story-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.offroad-story-reverse .offroad-story-image {
  grid-column: 1;
  grid-row: 1;
}

.offroad-story-reverse .offroad-story-text {
  grid-column: 2;
  grid-row: 1;
}

.tip2tip-offroad h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 1rem 0 2rem;
}

.tip2tip-offroad p {
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .offroad-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .offroad-story-reverse .offroad-story-image,
  .offroad-story-reverse .offroad-story-text {
    grid-column: auto;
    grid-row: auto;
  }

  .offroad-story-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

.race-route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "map title"
    "map text";
  align-items: start;
  width: 100%;
  max-width: none;
  padding: 0 1.5rem;
  margin: 3rem auto;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 0.75rem;
}

.race-route-title {
  grid-area: title;
  margin-top: 0;
  margin-bottom: 0;
}

.race-route-map {
  grid-area: map;
}

.race-route-text {
  grid-area: text;
  min-width: 0;
}

.race-route-text p {
  margin-top: 0;
}

.race-route-map iframe {
  display: block;
  width: 100%;
  height: clamp(24rem, 45vw, 36rem);
  border: 0;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .race-route {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "title"
      "map"
      "text";
  }
}

.race-formats {
  margin-bottom: 5rem;
}

.pocoloco-section {
  width: calc(100% - 3rem);
  max-width: 1152px;
  display: grid;
  grid-template-columns: clamp(12rem, 28%, 18rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin: 4rem auto 5rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: #222;
  color: #fff;
  border: 1px solid #222;
}

.pocoloco-distance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  text-align: center;
}

.pocoloco-distance strong {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.pocoloco-distance span {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.pocoloco-kicker {
  margin: 0 0 0.5rem;
  color: #d7cebe;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pocoloco-section h2 {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.pocoloco-content > p:not(.pocoloco-kicker) {
  max-width: 720px;
  line-height: 1.65;
}

.pocoloco-content > p:last-child {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

@media (max-width: 700px) {
  .pocoloco-section {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 3rem);
    text-align: center;
  }

  .pocoloco-distance {
    width: min(11rem, 60%);
    margin: 0 auto;
  }
}

.loco-register.column-screen {
  width: 100%;
  max-width: none;
}

:where(.race-page) main h2,
.race-formats h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.race-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.fkt-category-grid {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.race-format-card {
  border: 1px solid #ddd;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.race-format-full,
.fkt-category-self-supported {
  background: #222;
  color: #fff;
  border-color: #222;
}

.race-format-relay,
.race-format-pairs,
.fkt-category-supported {
  background: #f3eee4;
  color: #222;
  border-color: #d7cebe;
}

.race-format-card h3 {
  color: inherit;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.race-format-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.race-format-summary {
  margin: 2rem 0 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.race-format-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .race-format-grid {
    grid-template-columns: 1fr;
  }
}

.registration-page {
  width: 100%;
  max-width: none;
  margin: 4rem auto 5rem;
  padding: 0 1.5rem;
  text-align: center;
}

.registration-page h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.registration-updates {
  max-width: 760px;
  margin: 3rem auto 4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #f3eee4;
  border: 1px solid #d7cebe;
}

.registration-updates h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.registration-updates p {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.registration-signup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  background: #222;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.registration-signup-button:hover {
  background: #444;
}

.registration-signup-button:focus-visible {
  outline: 3px solid #625834;
  outline-offset: 3px;
}

.registration-races {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.registration-races a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 180px;
  color: inherit;
  text-decoration: none;
}

.registration-races img {
  width: 100%;
  max-width: 200px;
  height: 180px;
  object-fit: contain;
}

.registration-mystery > span:first-child {
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.35;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .registration-races {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

}

.race-photo-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  content-visibility: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 1rem;
  margin-bottom: 3rem;
}

.race-photo-strip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.race-photo {
  flex: 0 0 auto;
  min-width: 0;
  scroll-snap-align: start;
}

.race-photo img {
  display: block;
  width: auto;
  max-width: none;
  height: clamp(14rem, 32vw, 24rem);
  object-fit: contain;
}

/* Race galleries */
.race-gallery {
  columns: 4;
  column-gap: 12px;
  content-visibility: auto;
  margin-bottom: 60px;
}

.race-gallery > p,
.race-gallery > figure,
.race-gallery > .quarto-figure {
  break-inside: avoid;
  margin: 0 0 12px;
}

.race-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.race-gallery img:hover {
  opacity: 0.8;
}

/* Tablet */
@media (max-width: 900px) {
  .race-gallery {
    columns: 3;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .race-gallery {
    columns: 2;
    column-gap: 8px;
  }
}

/* COLOUR SECTION */
.blue-section {
  background-color: #38b6ff;
  padding: 60px 10%;
  color: white
}
