/* Choctaw Trails - compact navigator below Run the full 5K, v6.3.
   Loaded AFTER course-layout-v6.css. No changes to the map or gallery. */

/* The PHP installer removes redundant headings. These selectors also make an
   earlier HTML copy render cleanly if it was cached temporarily. */
.xc-map-instruction,
.xc-mile-heading,
.xc-mile-section .navigator-heading,
.xc-mile-section .xc-cycle-index { display:none !important; }

/* Visually join the full-course controls and the four stages below them. */
.xc-mile-section {
  margin-top:0 !important;
  padding-top:7px !important;
  padding-bottom:34px !important;
  border-top:0 !important;
}
.xc-mile-section .navigator {
  width:min(100%,1120px) !important;
  max-width:1120px !important;
  margin:8px auto 0 !important;
  padding:clamp(14px,1.7vw,22px) !important;
  border-radius:15px;
  box-shadow:0 8px 26px rgba(25,83,48,.06);
}
.xc-mile-section .course-bottom-banner {
  width:min(100%,1120px) !important;
  max-width:1120px !important;
  margin:12px auto 0 !important;
}

@media(min-width:681px) {
  /* Removing the navigator heading removes grid row 1, so explicitly move
     the segment buttons and details into the first row together. */
  .xc-mile-section .navigator {
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr) !important;
    gap:9px 20px !important;
  }
  .xc-mile-section .segment-list {
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    align-self:start;
    gap:10px !important;
  }
  .xc-mile-section .segment-button {
    min-height:75px !important;
    padding:11px 13px !important;
  }
  .xc-mile-section .segment-detail {
    grid-column:2 !important;
    grid-row:1 !important;
    min-height:168px !important;
    padding:18px !important;
    margin:0 !important;
  }
  .xc-mile-section .navigator-tip {
    grid-column:2 !important;
    grid-row:2 !important;
    margin:3px 0 0 !important;
    align-self:start;
  }
}

@media(max-width:680px) {
  .xc-mile-section {padding-top:5px !important;padding-bottom:23px !important;}
  .xc-mile-section .navigator {
    display:flex !important;
    flex-direction:column !important;
    margin-top:7px !important;
    padding:13px !important;
  }
  .xc-mile-section .segment-list {width:100%;}
  .xc-mile-section .segment-button {min-height:64px !important;padding:9px !important;}
  .xc-mile-section .segment-detail {margin-top:11px !important;min-height:0 !important;}
  .xc-mile-section .navigator-tip {margin:10px 0 0 !important;}
  .xc-mile-section .course-bottom-banner {margin-top:11px !important;}
}

@media(max-width:350px) {
  .xc-mile-section .segment-list {grid-template-columns:1fr !important;}
  .xc-mile-section .segment-button {min-height:54px !important;padding:8px 12px !important;}
}
