/* RunShake event showcase — visual enhancement without duplicating third-party posters. */
.rs5-event-hero,
.rs4-event-hero.rs5-event-hero {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: #16202a;
  overflow: hidden;
}
.rs5-event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--rs5-hero-image);
  background-position: center 46%;
  background-size: cover;
  filter: saturate(0.92) contrast(1.08);
}
.rs5-event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(12, 18, 22, 0.93),
    rgba(12, 18, 22, 0.67) 63%,
    rgba(12, 18, 22, 0.35)
  );
}
.rs5-event-hero .container {
  position: relative;
  z-index: 1;
}
.rs5-photo-note {
  position: absolute;
  bottom: 12px;
  right: max(15px, calc((100% - 1200px) / 2));
  font-size: 10px;
  color: #eef2f2;
  background: #16191cb5;
  border-radius: 2px;
  padding: 6px 8px;
  z-index: 3;
}
.rs5-event-hero h1 {
  max-width: 1100px;
  text-wrap: balance;
  text-shadow: 0 3px 20px #0005;
}
.rs5-feature-box {
  border: 1px solid #dfe4df;
  border-radius: 6px;
  padding: 29px;
  background: #fff;
  margin-bottom: 24px;
}
.rs5-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.rs5-subhead h2 {
  font-size: clamp(24px, 2.8vw, 35px);
  line-height: 1.12;
  letter-spacing: -1.1px;
  color: #182021;
  font-weight: 950;
  margin: 0;
}
.rs5-subhead > span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #e12336;
  font-weight: 900;
  white-space: nowrap;
}
.rs5-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rs5-fact {
  padding: 17px;
  border-radius: 4px;
  background: #f5f6f2;
  min-width: 0;
}
.rs5-fact > span {
  display: block;
  color: #6c777a;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 7px;
}
.rs5-fact > strong {
  display: block;
  color: #192123;
  font-weight: 850;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.rs5-feature-box > p {
  font-size: 14px;
  line-height: 1.8;
  color: #596568;
}
.rs5-feature-box > h3 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 900;
  margin: 23px 0 10px;
}
.rs5-event-note {
  background: #fff9ed;
  border-left: 3px solid #d39b30;
  padding: 14px;
  color: #645332 !important;
}
.rs5-feature-box .rs5-source-attribution {
  border-top: 1px solid #eee;
  padding-top: 14px;
  font-size: 12px;
  color: #6e7575;
}
.rs5-link {
  display: inline-flex;
  padding: 11px 0;
  text-decoration: none;
  color: #b30a28;
  font-size: 13px;
  font-weight: 850;
}
.rs5-link:hover {
  text-decoration: underline;
}
.rs5-gpx-entry {
  padding: 12px 0;
  border-bottom: 1px solid #e3e5e0;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.rs5-gpx-entry > span {
  font-size: 11px;
  font-weight: 700;
  color: #626d71;
}
.rs5-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 15px;
}
.rs5-small {
  font-size: 12px !important;
  line-height: 1.75 !important;
  color: #687175 !important;
}
.rs5-related {
  padding-bottom: 105px;
  padding-top: 10px;
}
.rs5-related > p {
  color: #616d70;
  font-size: 14px;
}
.rs5-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 25px;
}
.rs5-related-card {
  border: 1px solid #e0e5e0;
  padding: 20px 18px;
  border-radius: 4px;
  background: #fff;
}
.rs5-related-card > span:first-child {
  font-size: 11px;
  color: #e21c35;
  font-weight: 800;
}
.rs5-related-card h3 {
  font-weight: 900;
  line-height: 1.28;
  font-size: 18px;
  margin: 13px 0;
}
.rs5-related-card h3 a {
  color: #202629;
  text-decoration: none;
}
.rs5-related-card h3 a:hover {
  text-decoration: underline;
}
.rs5-related-card p {
  font-size: 13px;
  color: #626e6e;
  line-height: 1.6;
}
.rs5-related-card .rs5-type {
  display: inline-block;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 850;
  background: #f3f4f0;
  color: #4f5b5d;
  text-transform: uppercase;
}
.rs5-interest {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: #f5f5f1;
  border-radius: 5px;
  padding: 28px;
  margin: 28px 0 0;
}
.rs5-interest > div:first-child {
  max-width: 550px;
}
.rs5-interest h2 {
  font-size: 29px;
  font-weight: 950;
  letter-spacing: -0.9px;
  margin: 0 0 12px;
}
.rs5-interest p {
  font-size: 13px;
  color: #626e70;
  line-height: 1.65;
}
.rs5-interest-action {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}
.rs5-interest-action .rs4-btn {
  min-width: 210px;
  justify-content: center;
}
.rs5-interest-action .rs4-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.rs5-counter {
  font-weight: 900 !important;
  color: #c5152c !important;
}
.rs5-map-page {
  padding-top: 50px;
  padding-bottom: 85px;
}
.rs5-map-controls {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.rs5-map-controls h2 {
  margin: 0 15px 0 0;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -1px;
}
.rs5-map-controls label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #576165;
  font-weight: 850;
  gap: 7px;
  min-width: 180px;
}
.rs5-map-controls select {
  border: 1px solid #c7cfcc;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
  min-width: 180px;
  background: #fff;
  color: #222;
}
.rs5-map-placeholder {
  width: 100%;
  height: 560px;
  background: #eaece9;
  border: 1px solid #dce2dd;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rs5-map-placeholder > p {
  max-width: 420px;
  text-align: center;
  font-size: 16px;
  color: #576364;
  line-height: 1.8;
  padding: 18px;
}
.rs5-map-page > p {
  font-size: 13px;
  line-height: 1.8;
  color: #596567;
}
.rs5-gpx-viewer {
  padding-top: 70px;
  padding-bottom: 100px;
}
.rs5-gpx-viewer .rs5-map-placeholder {
  margin: 25px 0;
}
.rs5-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-weight: 900;
  font-size: 16px;
}
.rs5-upload input {
  font-size: 13px;
  max-width: 100%;
}
#rs5-gpx-download {
  display: inline-block;
  color: #d61832;
  font-weight: 900;
  margin: 12px 0;
}
.rs4-filter-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
.rs4-switch {
  gap: 8px;
}
.rs4-switch a:focus-visible {
  outline: 2px solid #e41d37;
  outline-offset: 3px;
}
@media (max-width: 970px) {
  .rs5-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rs4-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .rs5-event-hero {
    min-height: 310px;
  }
  .rs5-photo-note {
    right: 12px;
    bottom: 8px;
  }
  .rs5-feature-box {
    padding: 17px;
    margin-bottom: 14px;
  }
  .rs5-facts {
    grid-template-columns: 1fr;
  }
  .rs5-subhead {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
  .rs5-related-grid {
    grid-template-columns: 1fr;
  }
  .rs5-related {
    padding-bottom: 65px;
  }
  .rs5-interest {
    padding: 21px;
    flex-direction: column;
    align-items: stretch;
  }
  .rs5-interest-action {
    min-width: 0;
  }
  .rs5-map-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .rs5-map-controls label {
    width: 100%;
  }
  .rs5-map-placeholder {
    height: 430px;
  }
  .rs4-filter-form {
    grid-template-columns: 1fr;
  }
}
@media print {
  .rs5-interest,
  .rs5-related,
  .rs5-map-page {
    display: none !important;
  }
}

.rs5-flyer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.rs5-flyer-button {
  appearance: none;
  border: 1px solid #c5152c;
  background: #fff;
  color: #a21225;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  padding: 11px 16px;
  cursor: pointer;
}
.rs5-flyer-button:hover,
.rs5-flyer-button:focus-visible {
  background: #fff1f2;
  outline-offset: 3px;
}
.rs5-flyer-preview {
  margin: 16px 0;
  border: 1px solid #d6dedc;
  border-radius: 6px;
  overflow: hidden;
  background: #f6f7f7;
}
.rs5-flyer-preview iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  height: 72vh;
  max-height: 900px;
  border: 0;
}
@media (max-width: 650px) {
  .rs5-flyer-preview iframe {
    min-height: 400px;
    height: 65vh;
  }
}
