/* The preserved atlas, framed to match the simpler WordPress homepage. */
.ep-wordpress .ep-race-map .rd-earth-route__atlas-layout {
  grid-template-columns: minmax(0,1.9fr) minmax(270px,1fr);
}
.ep-wordpress .ep-race-map .rd-earth-route__viewport {
  width: 100%;
  max-width: 100%;
}
.ep-wordpress .ep-race-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ep-wordpress .ep-race-route--casing {stroke:#fffdf8;stroke-width:7;opacity:.95}
.ep-wordpress .ep-race-route--both {stroke:#67ad7c;stroke-width:4.2}
.ep-wordpress .ep-race-route--gap {stroke:#efc64b;stroke-width:4.2;stroke-dasharray:12 6}
.ep-wordpress .ep-race-route--remaining {stroke:#982f25;stroke-width:2.6;stroke-dasharray:2 5}
.ep-wordpress .ep-race-route--unknown {stroke:#63787e;stroke-width:2.6;stroke-dasharray:6 6}
.ep-wordpress .ep-race-route-key {
  display: inline-block;
  width: 28px;
  height: 0;
  flex-shrink: 0;
  border-top: 4px solid;
}
.ep-wordpress .ep-race-route-key--both {border-color:#67ad7c}
.ep-wordpress .ep-race-route-key--gap {border-color:#efc64b;border-top-style:dashed}
.ep-wordpress .ep-race-route-key--remaining {border-color:#982f25;border-top-style:dotted}
.ep-wordpress .ep-race-route-summary {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.5;
}
.ep-wordpress .ep-race-explorer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 24px;
  margin-top: 20px;
}
.ep-wordpress .ep-race-explorer-controls .ep-race-chapter-picker {margin-top:0}
.ep-wordpress .ep-race-both {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #17384a;
  border-radius: 5px;
  background: #fffdf8;
  color: #17384a;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}
.ep-wordpress .ep-race-both[aria-pressed="true"] {background:#17384a;color:#fffdf8}
.ep-wordpress .ep-race-both:focus-visible {outline:3px solid #e89518;outline-offset:5px}
.ep-wordpress .ep-race-map :is(.rd-earth-route__route--complete,.rd-earth-route__current,.rd-earth-route__focus-places) {
  display: none !important;
}
.ep-wordpress .ep-race-map .rd-earth-route__atlas svg {
  opacity: 1;
}
.ep-wordpress .ep-race-map .rd-earth-route__route--remaining {
  stroke: #982f25;
  stroke-dasharray: none;
  opacity: .8;
}
.ep-wordpress .ep-race-map .rd-earth-route__beacon {
  top: auto;
  right: auto;
  bottom: 12px;
  left: 12px;
  max-width: none;
  min-height: 44px;
  transform: none;
  animation: none;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 6px;
}
.ep-wordpress .ep-race-map .rd-earth-route__beacon > span {
  display: none;
}
.ep-wordpress .ep-race-map .rd-earth-route__beacon::after {
  display: none;
}
.ep-wordpress .ep-race-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.ep-wordpress .ep-race-marker {
  --race-colour: #2355c4;
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--race-colour);
  transform: translate(-50%,-50%);
  pointer-events: auto;
  cursor: pointer;
  font-family: var(--epwp-font);
}
.ep-wordpress .ep-race-marker--nurse_hopkins {
  --race-colour: #83536d;
}
.ep-wordpress .ep-race-marker__dot {
  position: absolute;
  inset: 5px;
  display: block;
  border: 2px solid #fffdf8;
  border-radius: 50%;
  background: var(--race-colour);
  box-shadow: 0 0 0 1px var(--race-colour),0 2px 4px #142b3644;
}
.ep-wordpress .ep-race-marker--nurse_hopkins .ep-race-marker__dot {
  border-radius: 2px;
}
.ep-wordpress .ep-race-marker__label {
  position: absolute;
  bottom: 30px;
  left: 10px;
  display: block;
  padding: 7px 10px;
  border: 1px solid var(--race-colour);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--race-colour);
  box-shadow: 0 2px 6px #142b3626;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
}
.ep-wordpress .ep-race-marker::after {
  content: '';
  position: absolute;
  bottom: 17px;
  left: 10px;
  width: 2px;
  height: 15px;
  background: var(--race-colour);
}
.ep-wordpress .ep-race-marker--nurse_hopkins .ep-race-marker__label {
  top: 31px;
  bottom: auto;
}
.ep-wordpress .ep-race-marker--nurse_hopkins::after {
  top: 17px;
  bottom: auto;
}
.ep-wordpress .ep-race-marker[data-label-edge="right"] .ep-race-marker__label {
  right: 10px;
  left: auto;
}
.ep-wordpress .ep-race-marker[data-race-state="stale"] .ep-race-marker__label {
  border-style: dashed;
}
.ep-wordpress .ep-race-marker:focus-visible,
.ep-wordpress .ep-race-chapter-picker select:focus-visible {
  outline: 3px solid #e89518;
  outline-offset: 5px;
}
.ep-wordpress .rd-earth-route__viewport[data-detail-open="true"] > .ep-race-marker-layer {
  display: none;
}
.ep-wordpress .ep-race-marker--detail {
  z-index: 2;
  transform: none;
}
.ep-wordpress .ep-race-positions {
  min-width: 0;
  padding: 24px;
  border: 1px solid #d7dfd2;
  border-radius: 8px;
  background: #f0f3ed;
}
.ep-wordpress .ep-race-positions h3 {
  margin: 0 0 20px;
  font-family: var(--epwp-font);
  font-size: 28px;
  line-height: 1.2;
  text-transform: none;
}
.ep-wordpress .ep-race-positions h4 {
  margin: 0 0 7px;
  color: var(--epwp-blue);
  font-family: var(--epwp-font);
  font-size: 21px;
  line-height: 1.3;
  text-transform: none;
}
.ep-wordpress [data-ep-race-position="nurse_hopkins"] h4 {
  color: #83536d;
}
.ep-wordpress .ep-race-positions [data-ep-race-position] + [data-ep-race-position] {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #d7dfd2;
}
.ep-wordpress .ep-race-positions p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
.ep-wordpress .ep-race-positions .ep-racer__status,
.ep-wordpress .ep-race-positions .ep-race-positions__note {
  margin-top: 12px;
  color: var(--epwp-muted);
  font-size: 14px;
  line-height: 1.5;
}
.ep-wordpress .ep-race-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 22px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.ep-wordpress .ep-race-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ep-wordpress .ep-race-chapter-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
}
.ep-wordpress .ep-race-chapter-picker select {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 30px 8px 12px;
  border: 1px solid #bdc9c8;
  border-radius: 5px;
  color: var(--epwp-ink);
  background: #fffdf8;
  font: inherit;
  font-size: 16px;
}
@media (max-width:1000px) {
  .ep-wordpress .ep-race-map .rd-earth-route__atlas-layout {grid-template-columns:1fr}
  .ep-wordpress .ep-race-positions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}
  .ep-wordpress .ep-race-positions h3,.ep-wordpress .ep-race-positions > .ep-race-positions__note {grid-column:1/-1;margin:0}
  .ep-wordpress .ep-race-positions [data-ep-race-position] + [data-ep-race-position] {margin:0;padding:0;border:0}
}
@media (max-width:600px) {
  .ep-wordpress .ep-race-map .rd-earth-route__viewport:not([data-detail-open]) {min-height:210px;aspect-ratio:1100 / 650}
  .ep-wordpress .ep-race-positions {grid-template-columns:1fr;padding:22px}
  .ep-wordpress .ep-race-positions [data-ep-race-position] + [data-ep-race-position] {padding-top:18px;border-top:1px solid #d7dfd2}
  .ep-wordpress .ep-race-marker__label {font-size:13px;padding:7px 8px}
  .ep-wordpress .ep-race-map .rd-earth-route__beacon {bottom:10px;left:10px;font-size:13px;padding:8px 11px}
  .ep-wordpress .ep-race-map .rd-earth-route__viewport[data-detail-open="true"] {min-height:540px}
  .ep-wordpress .ep-race-map .rd-earth-route__interactive-map {min-height:0}
  .ep-wordpress .ep-race-map .rd-earth-route__detail-head {grid-template-columns:1fr auto;gap:10px}
  .ep-wordpress .ep-race-map .rd-earth-route__detail-head > div:not(.rd-earth-route__chapter-nav) {grid-column:1/-1;grid-row:2}
  .ep-wordpress .ep-race-map .rd-earth-route__detail-head strong {white-space:normal;font-size:16px}
}
.ep-wordpress .rd-earth-route {
  color: var(--epwp-ink);
  font-family: var(--epwp-font);
}
.ep-home-content .rd-earth-route {
  padding: 64px 0;
  background: var(--epwp-paper);
}
.ep-home-content .rd-earth-route > .ep-shell {
  width: min(1280px, calc(100% - 112px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.ep-home-content .rd-earth-route .rd-section-heading {
  align-items: end;
  gap: 20px 48px;
  margin-bottom: 28px;
}
.ep-home-content .rd-earth-route .rd-section-heading h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -1.4px;
}
.ep-home-content .rd-earth-route .rd-section-heading p {
  max-width: 48ch;
  font-size: 18px;
  line-height: 1.6;
}
.ep-wordpress .rd-earth-route__map {
  border-color: var(--epwp-line);
  box-shadow: none;
}
.ep-home-content .rd-earth-route__atlas-head {
  display: none;
}
.ep-home-content .rd-earth-route__atlas-layout {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}
.ep-home-content .rd-earth-route__leg {
  background: #f0f3ed;
  border-color: #d7dfd2;
}
.ep-wordpress .rd-earth-route__leg > p:not(.ep-card-tag) {
  font-size: 17px;
}
.ep-wordpress .rd-earth-route__leg h3 {
  font-family: var(--epwp-font);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.18;
  letter-spacing: -.7px;
}
.ep-wordpress .rd-earth-route__leg-labels,
.ep-wordpress .rd-earth-route__legend,
.ep-wordpress .rd-earth-route__leg figcaption {
  font-size: 14px;
  line-height: 1.5;
}
.ep-wordpress .rd-earth-route__leg figcaption strong {
  font-size: 16px;
}
.ep-wordpress .rd-earth-route__beacon {
  max-width: 160px;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.2;
}
.ep-wordpress .rd-earth-route__beacon span {
  flex-shrink: 0;
}
.ep-wordpress .ep-home-content .rd-earth-route a.rd-earth-route__beacon {
  color: #fffdf8;
}
.ep-wordpress .rd-earth-route[data-state="unavailable"] .rd-earth-route__beacon,
.ep-wordpress .rd-earth-route[data-state="unavailable"] .rd-earth-route__current,
.ep-wordpress .rd-earth-route[data-state="unavailable"] .rd-earth-route__route--complete {
  display: none;
}
.ep-home-content .rd-earth-route__note {
  font-size: 14px;
  color: var(--epwp-muted);
}
.ep-wordpress .rd-earth-route__full-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--epwp-blue);
  font-size: 18px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ep-wordpress .rd-earth-route__detail-head button {
  min-width: 40px;
  min-height: 40px;
  font-size: 14px;
}
.ep-wordpress .rd-earth-route__chapter-nav {
  font-size: 14px;
}
.ep-wordpress .rd-earth-route__detail-head strong {
  font-size: 17px;
}
.ep-wordpress .rd-earth-route__map-status,
.ep-wordpress .rd-earth-route__attribution {
  font-size: 12px;
}
@media (max-width: 900px) {
  .ep-home-content .rd-earth-route > .ep-shell {
    width: calc(100% - 48px);
  }
  .ep-home-content .rd-earth-route .rd-section-heading,
  .ep-home-content .rd-earth-route__atlas-layout {
    grid-template-columns: 1fr;
  }
  .ep-home-content .rd-earth-route__leg-track {
    margin-top: 18px;
  }
}
@media (max-width: 600px) {
  .ep-home-content .rd-earth-route {
    padding: 40px 0;
  }
  .ep-home-content .rd-earth-route > .ep-shell {
    width: calc(100% - 36px);
  }
  .ep-home-content .rd-earth-route .rd-section-heading {
    gap: 12px;
  }
  .ep-home-content .rd-earth-route .rd-section-heading p {
    font-size: 18px;
  }
  .ep-home-content .rd-earth-route__viewport {
    border-radius: 8px;
  }
  .ep-wordpress .rd-earth-route__beacon {
    max-width: 120px;
    font-size: 12px;
  }
}
