/* Local race photography keeps each content band visually distinct. */
.hero {
  isolation: isolate;
  background: #123b36 !important;
  background-image: url("assets/running/user-run-10-sunset-runners.jpg") !important;
  background-position: center 46% !important;
  background-size: cover !important;
}

.hero-slideshow,
.hero-image-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slideshow { z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-visible { opacity: 1; }
.hero-image-scrim {
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 33, 31, .90) 0%, rgba(8, 33, 31, .76) 35%, rgba(8, 33, 31, .40) 70%, rgba(8, 33, 31, .16) 100%);
}
.hero-copy,
.hero-facts { z-index: 3; }
.hero .hero-intro,
.hero .availability,
.hero .availability strong,
.hero .hero-event-brand b { color: #fff !important; }

body main#mainContent > .photo-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

main#mainContent .photo-section > .section-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(246, 248, 246, .82) 0%, rgba(246, 248, 246, .76) 55%, rgba(246, 248, 246, .68) 100%), var(--race-photo);
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

main#mainContent .photo-section > :not(.section-photo) {
  position: relative;
  z-index: 1;
}

#story { --race-photo: url("assets/running/user-run-10-sunset-runners.jpg"); }
#sponsors { --race-photo: url("assets/running/user-run-05-community.jpg"); }
#contests { --race-photo: url("assets/running/user-run-09-winner.jpg"); }
#runner-hub { --race-photo: url("assets/running/user-run-07-sunrise-road.jpg"); }
#schedule { --race-photo: url("assets/running/user-run-01-dawn.jpg"); }
#updates { --race-photo: url("assets/running/user-run-08-finish.jpg"); }
#register { --race-photo: url("assets/running/user-run-02-shoes.jpg"); }
#faq { --race-photo: url("assets/running/user-run-03-medals.jpg"); }

main#mainContent .route.route-map-temporarily-hidden {
  grid-template-columns: minmax(0, 1fr);
}

main#mainContent .closing .section-photo {
  background-image: linear-gradient(90deg, rgba(246, 248, 246, .82) 0%, rgba(246, 248, 246, .76) 55%, rgba(246, 248, 246, .68) 100%), url("assets/running/user-run-08-finish.jpg") !important;
  background-position: center 44%;
}

@media (max-width: 680px) {
  .hero-slide { object-position: 60% center; }
  .hero-image-scrim {
    background: linear-gradient(90deg, rgba(8, 33, 31, .91) 0%, rgba(8, 33, 31, .77) 55%, rgba(8, 33, 31, .46) 100%);
  }
  main#mainContent .photo-section > .section-photo {
    background-image: linear-gradient(rgba(246, 248, 246, .84), rgba(246, 248, 246, .80)), var(--race-photo);
    background-position: 60% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Keep text legible above legacy theme overrides and photo backdrops. */
.run-navigation .nav-dropdown,
.run-navigation .nav-dropdown-right,
.run-navigation .account-menu {
  color: #183a35 !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

.run-navigation .nav-dropdown > small,
.run-navigation .nav-dropdown > a,
.run-navigation .nav-dropdown-right > small,
.run-navigation .nav-dropdown-right > a,
.run-navigation .account-menu a {
  color: #183a35 !important;
  opacity: 1 !important;
}

.run-navigation .nav-dropdown > a:hover,
.run-navigation .nav-dropdown > a:focus-visible,
.run-navigation .nav-dropdown-right > a:hover,
.run-navigation .nav-dropdown-right > a:focus-visible,
.run-navigation .account-menu a:hover,
.run-navigation .account-menu a:focus-visible {
  color: #075d63 !important;
  background: #edf5f1 !important;
}

.run-navigation .brand-event-wordmark,
.run-navigation .brand-event-wordmark b {
  color: #17332e !important;
}

.run-navigation .brand-event {
  color: #17332e !important;
}

.run-navigation .brand-event-wordmark small {
  color: #08727a !important;
}

main#mainContent .photo-section:not(.closing) .eyebrow.light,
main#mainContent .contests .eyebrow.light {
  color: #08727a !important;
}

main#mainContent .photo-section:not(.closing) small {
  color: #385d52 !important;
}

main#mainContent .results-tool label,
main#mainContent .pledge-list label,
main#mainContent .register-notes,
main#mainContent .register-notes span,
main#mainContent .results-tool p,
main#mainContent .form-panel small,
main#mainContent .selection-summary,
main#mainContent .race-day-utilities {
  color: #42584f !important;
}

main#mainContent input::placeholder,
main#mainContent textarea::placeholder {
  color: #65736d !important;
  opacity: 1 !important;
}

.footer-brand-block {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.footer-brand-block > p {
  margin: 0;
  color: #17332e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.footer-brand-block > p span {
  color: #52645b !important;
  font-weight: 500;
}

.footer-supported-by {
  display: grid;
  width: min(300px, 100%);
  gap: 5px;
  justify-items: start;
}

.footer-supported-by > span {
  color: #52645b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-support-logo {
  position: relative;
  width: min(300px, 100%);
  height: 114px;
  overflow: hidden;
  background: transparent;
}

.footer-support-logo img {
  position: absolute;
  top: -84px;
  left: 0;
  display: block;
  width: 300px;
  height: 300px;
  max-width: none;
  object-fit: cover;
}

@media (max-width: 980px) {
  .footer-support-logo {
    width: min(280px, 100%);
    height: 106px;
  }

  .footer-support-logo img {
    top: -78px;
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 680px) {
  .footer-brand-block { gap: 8px; }
  .footer-supported-by { width: min(300px, 100%); }
  .footer-support-logo { width: min(300px, 100%); }
  .footer-support-logo img { width: 300px; height: 300px; top: -84px; }
}

.run-navigation .header-register,
.run-navigation .mobile-account-actions button:last-child,
main#mainContent .button-primary {
  border-color: #c94336 !important;
  background: #c94336 !important;
  color: #ffffff !important;
}

.run-navigation .header-register:hover,
.run-navigation .mobile-account-actions button:last-child:hover,
main#mainContent .button-primary:hover,
main#mainContent .button-primary:focus-visible {
  border-color: #a9322a !important;
  background: #a9322a !important;
}

.hero-facts > div > strong {
  color: #17332e !important;
}

.hero-facts > div > span {
  color: #52645b !important;
}

.hero-facts .countdown strong {
  color: #17332e !important;
}

.hero-event-brand > span {
  color: #ffffff !important;
}

main#mainContent .contest-card > a span,
main#mainContent .race-day-utilities a > span {
  color: #a9322a !important;
}

main#mainContent .faq summary > span {
  color: #a9322a !important;
}

/* Keep section copy readable over the race photography. */
main#mainContent .photo-section:not(.contests):not(.closing) {
  color: #17332e !important;
}

main#mainContent .photo-section:not(.contests):not(.closing) :is(h2, h3, strong, summary, dt, dd, time) {
  color: #17332e !important;
}

main#mainContent .photo-section:not(.contests):not(.closing) :is(p, li, figcaption, small, label, dd, .section-copy) {
  color: #40584f !important;
}

main#mainContent .photo-section:not(.contests):not(.closing) :is(.section-label, .eyebrow, a:not(.button)) {
  color: #086b70 !important;
}

main#mainContent .contests :is(.section-label, .eyebrow.light) {
  color: #d8f08d !important;
}

main#mainContent .contests .section-heading > p {
  color: #f3f7f4 !important;
}

main#mainContent .contests h2 {
  color: #ffffff !important;
}

main#mainContent .contests .contest-card :is(h3, strong, summary) {
  color: #17332e !important;
}

main#mainContent .contests .contest-card :is(p, small, .prizes span) {
  color: #40584f !important;
}

main#mainContent .contests .contest-card > a {
  color: #086b70 !important;
}

main#mainContent .closing :is(h2, p, .eyebrow.light) {
  color: #ffffff !important;
}

main#mainContent :is(input, select, textarea) {
  color: #17332e !important;
}

main#mainContent :is(input, select, textarea)::placeholder {
  color: #586b63 !important;
  opacity: 1;
}

main#mainContent :is(.form-status, .service-status, [role="status"]) {
  color: #17332e;
}

/* India Rises navigation: translucent white glass with clear forest text. */
body .site-header.run-navigation {
  min-height: 78px !important;
  border-bottom: 1px solid rgba(220, 232, 225, .78) !important;
  background: rgba(255, 255, 255, .94) !important;
  -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
  backdrop-filter: blur(16px) saturate(135%) !important;
  box-shadow: 0 5px 22px rgba(30, 65, 52, .08) !important;
}

.run-navigation .brand-event-wordmark b { color: #183b32 !important; }
.run-navigation .brand-event-wordmark small { color: #087d7a !important; }

.run-navigation .nav-group > button,
.run-navigation .nav-result {
  min-height: 44px;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #183b32 !important;
  font-size: 12px;
  font-weight: 700;
}

.run-navigation .nav-group > button:hover,
.run-navigation .nav-group > button:focus-visible,
.run-navigation .nav-group.open > button,
.run-navigation .nav-result:hover,
.run-navigation .nav-result:focus-visible {
  border-color: #c9dfd1 !important;
  background: #eaf3ed !important;
  color: #075d63 !important;
}

.run-navigation .header-login {
  min-height: 42px;
  border: 1px solid #a9c1b4 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #183b32 !important;
  font-weight: 700;
}

.run-navigation .header-login:hover,
.run-navigation .header-login:focus-visible {
  background: #eaf3ed !important;
}

.run-navigation .account-trigger {
  border-color: #a9c1b4 !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #183b32 !important;
}

.run-navigation .header-register {
  min-height: 42px;
  border-radius: 5px !important;
  background: #d95548 !important;
  color: #ffffff !important;
  font-weight: 800;
}

.run-navigation .header-register:hover,
.run-navigation .header-register:focus-visible {
  background: #b83f35 !important;
}

.run-navigation .nav-dropdown,
.run-navigation .nav-dropdown-right,
.run-navigation .account-menu {
  border: 1px solid #dbe5e0 !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, .96) !important;
  color: #17332e !important;
  box-shadow: 0 18px 42px rgba(30, 65, 52, .14) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
}

.run-navigation .nav-dropdown > small,
.run-navigation .nav-dropdown > a,
.run-navigation .nav-dropdown-right > small,
.run-navigation .nav-dropdown-right > a,
.run-navigation .account-menu a {
  color: #17332e !important;
  opacity: 1 !important;
}

.run-navigation .nav-dropdown > small,
.run-navigation .nav-dropdown-right > small { color: #086b70 !important; }

.run-navigation .nav-dropdown > a:hover,
.run-navigation .nav-dropdown > a:focus-visible,
.run-navigation .nav-dropdown-right > a:hover,
.run-navigation .nav-dropdown-right > a:focus-visible,
.run-navigation .account-menu a:hover,
.run-navigation .account-menu a:focus-visible {
  background: #edf5ef !important;
  color: #07585e !important;
}

.run-navigation .menu-toggle {
  min-height: 42px;
  border: 1px solid #a9c1b4 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #183b32 !important;
}

@media (max-width: 1100px) {
  .run-navigation .main-nav {
    padding: 14px 20px 22px !important;
    border: 1px solid #dce8e1 !important;
    border-top: 2px solid #8dbb4b !important;
    background: rgba(255, 255, 255, .95) !important;
    box-shadow: 0 18px 36px rgba(30, 65, 52, .14) !important;
    -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
    backdrop-filter: blur(16px) saturate(135%) !important;
  }

  .run-navigation .nav-group > button,
  .run-navigation .nav-result {
    justify-content: space-between;
    min-height: 50px;
    border-bottom: 1px solid #dce8e1 !important;
    border-radius: 0 !important;
    color: #183b32 !important;
    text-align: left;
  }

  .run-navigation .nav-group > button:hover,
  .run-navigation .nav-group.open > button,
  .run-navigation .nav-result:hover {
    background: rgba(255, 255, 255, .97) !important;
    color: #075d63 !important;
  }

  .run-navigation .nav-dropdown,
  .run-navigation .nav-dropdown-right {
    margin: 6px 0 12px;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, .93) !important;
  }

  .run-navigation .mobile-account-actions {
    border-top: 1px solid #dce8e1;
  }

  .run-navigation .mobile-account-actions button {
    border: 1px solid #a9c1b4 !important;
    background: #edf4ef !important;
    color: #183b32 !important;
  }

  .run-navigation .mobile-account-actions button:last-child {
    border-color: #d95548 !important;
    background: #d95548 !important;
    color: #ffffff !important;
  }
}

/* Keep FAQ answers open on the section photo without a solid card fill. */
main#mainContent .faq-list details,
main#mainContent .faq-list details[open] {
  background: #ffffff !important;
  border-color: rgba(24, 59, 50, .24) !important;
  box-shadow: none !important;
}

/* Replace white content cards across the public site with outlined surfaces. */
main#mainContent :is(
  .metrics,
  .metrics > div,
  .sponsor-lockup,
  .sponsor-reserve,
  .contest-card,
  .runner-hub-shell,
  .hub-tabs,
  .hub-panel,
  .hub-panel-heading,
  .confirmation-card,
  .timeline li,
  .results-tool,
  .form-panel,
  .form-title,
  .payment-section,
  .payment-option-panel,
  .payment-summary,
  .faq-list details
) {
  border: 1px solid rgba(24, 59, 50, .24) !important;
  background: transparent !important;
  box-shadow: none !important;
}

main#mainContent :is(.metrics > div, .sponsor-lockup, .contest-card, .timeline li, .faq-list details) {
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

main#mainContent :is(.metrics > div, .sponsor-lockup, .contest-card, .timeline li, .faq-list details):hover,
main#mainContent :is(.metrics > div, .sponsor-lockup, .contest-card, .timeline li, .faq-list details):focus-within {
  border-color: #087d7a !important;
  background: rgba(8, 125, 122, .07) !important;
  box-shadow: 0 8px 20px rgba(24, 59, 50, .08) !important;
  transform: translateY(-2px);
}

/* Keep the section images visible behind readable copy. */
body,
main#mainContent,
main#mainContent > section:not(.hero):not(.contests):not(.closing) {
  background-color: #f6f8f6 !important;
}

main#mainContent > section:not(.hero) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  background: #edf4ef !important;
  color: #183b32 !important;
}

main#mainContent > section.photo-section > .section-photo {
  display: block !important;
  background-image: linear-gradient(90deg, rgba(246, 248, 246, .76) 0%, rgba(246, 248, 246, .70) 55%, rgba(246, 248, 246, .64) 100%), var(--race-photo) !important;
}

main#mainContent > section.closing > .section-photo {
  background-image: linear-gradient(90deg, rgba(246, 248, 246, .82) 0%, rgba(246, 248, 246, .76) 55%, rgba(246, 248, 246, .68) 100%), url("assets/running/user-run-08-finish.jpg") !important;
}

@media (max-width: 680px) {
  main#mainContent > section.photo-section > .section-photo {
    background-image: linear-gradient(rgba(246, 248, 246, .74), rgba(246, 248, 246, .68)), var(--race-photo) !important;
  }

  main#mainContent > section.closing > .section-photo {
    background-image: linear-gradient(rgba(246, 248, 246, .84), rgba(246, 248, 246, .80)), url("assets/running/user-run-08-finish.jpg") !important;
  }
}

main#mainContent .contests :is(h2, h3, p, strong, small, .section-label, .eyebrow.light),
main#mainContent .closing :is(h2, h3, p, strong, small, .section-label, .eyebrow.light) {
  color: #183b32 !important;
}

main#mainContent .contests .contest-card,
main#mainContent .contest-card :is(h3, p, strong, small, .prizes span) {
  color: #183b32 !important;
}
