/* Shared site menu. Structure comes from scripts/menu.json. */

.skip:focus {
  z-index: 400;
}

.hondo-nav {
  height: auto;
  padding-top: var(--hondo-nav-h, 104px);
}

.hondo-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--hondo-nav-h, 104px);
  padding: 0 20px;
  background: #272827;
  box-shadow: 0 1px 0 rgba(216, 161, 79, 0.35);
}

.hondo-nav-logo {
  display: flex;
  align-items: center;
  flex: none;
  line-height: 0;
}

.hondo-nav-logo img {
  width: 118px;
  height: 76px;
  max-width: none;
  object-fit: contain;
}

.hondo-nav-toggle {
  position: relative;
}

.hondo-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #f4ecdf;
  cursor: pointer;
  font-family: var(--display, "Cheddar Gothic Sans", Impact, sans-serif);
  font-size: 22px;
  line-height: 1;
}

.hondo-nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hondo-nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
}

.hondo-nav-toggle-bars span {
  display: block;
  width: 28px;
  height: 3px;
  background: #f4ecdf;
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hondo-nav.is-open .hondo-nav-toggle-bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hondo-nav.is-open .hondo-nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.hondo-nav.is-open .hondo-nav-toggle-bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hondo-nav-toggle:focus-visible,
.hondo-acc-trigger:focus-visible,
.hondo-acc-link:focus-visible,
.hondo-card:focus-visible,
.hondo-nav-logo:focus-visible {
  outline: 2px solid #d8a14f;
  outline-offset: 3px;
}

.hondo-nav-panel[hidden] {
  display: none !important;
}

.hondo-nav-panel {
  position: fixed;
  z-index: 200;
  top: var(--hondo-nav-h, 104px);
  right: 0;
  bottom: 0;
  left: 0;
  background: #f4ecdf;
  color: #272827;
  overflow: auto;
  overscroll-behavior: contain;
}

.hondo-nav-sheet:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #d8a14f;
  outline-offset: 3px;
}

.skip:focus,
.skip:focus-visible {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 500;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  background: #9C6B23;
  color: #fff;
  padding: 8px 12px;
}

.hondo-nav-sheet {
  width: min(760px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 18px 20px 48px;
  box-sizing: border-box;
}

.hondo-nav-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d8a14f;
}

.hondo-nav-kicker {
  margin: 0;
  color: #682707;
  font-family: var(--display, "Cheddar Gothic Sans", Impact, sans-serif);
  font-size: 28px;
  line-height: 1;
}

.hondo-acc,
.hondo-cards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hondo-acc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hondo-acc-item {
  margin: 0;
}

.hondo-acc-trigger {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: #783a2e;
  color: #f4ecdf;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.hondo-acc-name {
  font-family: var(--display, "Cheddar Gothic Sans", Impact, sans-serif);
  font-size: 28px;
  line-height: 1.05;
}

.hondo-acc-dot,
.hondo-acc-dates {
  color: #d8a14f;
  font-family: var(--sans, "Gotham Medium", Helvetica, sans-serif);
  font-size: 14px;
  line-height: 1.3;
}

.hondo-acc-chevron {
  margin-left: auto;
  flex: none;
  transition: transform 0.18s ease;
}

.hondo-acc-trigger[aria-expanded="true"] .hondo-acc-chevron {
  transform: rotate(180deg);
}

.hondo-acc-trigger[aria-expanded="true"] {
  background: #682707;
}

.hondo-acc-panel {
  background: #fffaf3;
}

.hondo-acc-panel[hidden] {
  display: none !important;
}

.hondo-acc-nested {
  gap: 0;
  padding: 4px 0 8px;
}

.hondo-acc-nested > .hondo-acc-item + .hondo-acc-item {
  border-top: 1px solid rgba(104, 39, 7, 0.14);
}

.hondo-acc-nested .hondo-acc-trigger {
  min-height: 48px;
  background: transparent;
  color: #682707;
}

.hondo-acc-nested .hondo-acc-name {
  font-size: 22px;
}

.hondo-acc-nested .hondo-acc-trigger[aria-expanded="true"] {
  background: rgba(216, 161, 79, 0.22);
  color: #682707;
}

.hondo-acc-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #682707;
  text-decoration: none;
  box-sizing: border-box;
}

/* Page rules like `body.page-contact a` must not underline menu choices. */
body .hondo-nav a,
body .hondo-nav a:hover,
body .hondo-nav a:focus,
body .hondo-nav a:visited,
body .hondo-nav-panel a,
body .hondo-nav-panel a:hover,
body .hondo-nav-panel a:focus,
body .hondo-nav-panel a:visited,
body .hondo-acc-link,
body .hondo-acc-link:hover,
body .hondo-acc-link:focus,
body .hondo-acc-name {
  text-decoration: none;
}

.hondo-acc-nested .hondo-acc-link .hondo-acc-name {
  font-size: 22px;
}

.hondo-acc-link:hover {
  background: rgba(216, 161, 79, 0.22);
}

.hondo-acc > .hondo-acc-item > .hondo-acc-link.hondo-acc-root {
  min-height: 56px;
  padding: 12px 14px;
  background: #783a2e;
  color: #f4ecdf;
}

.hondo-acc > .hondo-acc-item > .hondo-acc-link.hondo-acc-root:hover,
.hondo-acc > .hondo-acc-item > .hondo-acc-link.hondo-acc-root.is-current {
  background: #682707;
  color: #f4ecdf;
}

.hondo-acc-ext {
  color: #8a5a12;
  font-family: var(--sans, "Gotham Medium", Helvetica, sans-serif);
  font-size: 12px;
  letter-spacing: 0.02em;
}

#buy-tickets,
#host-hotels,
#trip-experience {
  scroll-margin-top: var(--hondo-nav-h, 104px);
}

/* Ride to the Hondo. Same strip under the fixed bar on every page.
   The poster is split into the wordmark and the sponsor/cowboy half.
   Both halves stay whole (contain). */
.ride-banner {
  position: relative;
  display: block;
  background: linear-gradient(180deg, #120c0a 0%, #2a120e 48%, #6d3218 100%);
  color: #f4ecdf;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
}

.ride-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "mark sponsor"
    "copy copy";
  align-items: center;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 14px 16px 16px;
  box-sizing: border-box;
  gap: 12px 0;
}

.ride-mark,
.ride-sponsor {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.ride-mark {
  grid-area: mark;
  box-sizing: border-box;
  border-right: 2px solid #f7f1e6;
}

.ride-sponsor {
  grid-area: sponsor;
}

.ride-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.ride-headline {
  font-family: var(--display, "Cheddar Gothic Sans", Impact, sans-serif);
  font-size: 28px;
  line-height: 1.05;
  color: #f7f1e6;
}

.ride-dates {
  font-family: var(--sans, "Gotham Medium", Helvetica, sans-serif);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f4ecdf;
}

.ride-banner,
.ride-banner-inner,
.ride-copy {
  overflow: visible;
}

.ride-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 18px;
  box-sizing: border-box;
  border-radius: 0;
  background: #c6a15a;
  color: #2b2116;
  font-family: var(--display, "Cheddar Gothic Sans", Impact, sans-serif);
  font-size: 18px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(43, 33, 22, 0.18);
  transform: scale(1);
  transform-origin: center center;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.ride-banner:hover .ride-cta,
.ride-banner:focus-visible .ride-cta {
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(43, 33, 22, 0.38);
}

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

  .ride-banner:hover .ride-cta,
  .ride-banner:focus-visible .ride-cta {
    transform: none;
    box-shadow: 0 1px 2px rgba(43, 33, 22, 0.18);
    outline: 3px solid #2b2116;
    outline-offset: 3px;
  }
}

.ride-ext {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ride-banner:focus-visible {
  outline: 2px solid #d8a14f;
  outline-offset: -2px;
}

@media (max-width: 520px) {
  .ride-headline {
    font-size: 24px;
  }

  .ride-dates {
    font-size: 8px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

@media (min-width: 1101px) {
  .ride-banner-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "mark copy sponsor";
    align-items: center;
    width: min(1180px, 100%);
    gap: 16px 22px;
    padding: 12px 20px;
  }

  .ride-mark,
  .ride-sponsor {
    width: 200px;
  }

  .ride-mark {
    border-right: 0;
  }

  .ride-break {
    display: none;
  }

  .ride-headline {
    font-size: 32px;
  }

  .ride-dates {
    font-size: 13px;
  }
}

.hondo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
}

.hondo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  height: 100%;
  padding: 14px 14px 16px;
  border: 1px solid rgba(104, 39, 7, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #272827;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(104, 39, 7, 0.05);
}

.hondo-card:hover {
  border-color: #d8a14f;
  background: #fffaf3;
}

.hondo-card.is-current {
  border-color: #d8a14f;
  box-shadow: inset 4px 0 0 #d8a14f;
}

.hondo-card-title {
  color: #682707;
  font-family: var(--display, "Cheddar Gothic Sans", Impact, sans-serif);
  font-size: 20px;
  line-height: 1.15;
}

.hondo-card-desc {
  color: #3f3834;
  font-family: var(--sans, "Gotham Medium", Helvetica, sans-serif);
  font-size: 14px;
  line-height: 1.4;
}

.hondo-card-ext {
  margin-top: auto;
  color: #8a5a12;
  font-family: var(--sans, "Gotham Medium", Helvetica, sans-serif);
  font-size: 12px;
  letter-spacing: 0.02em;
}

body.hondo-nav-lock {
  overflow: hidden;
}

@media (min-width: 720px) {
  .hondo-nav-logo img {
    width: 150px;
    height: 96px;
  }

  .hondo-nav-sheet {
    padding-top: 28px;
  }

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

@media (max-width: 420px) {
  .hondo-acc-name {
    font-size: 24px;
  }

  .hondo-acc-dates {
    flex-basis: 100%;
  }

  .hondo-acc-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hondo-acc-chevron,
  .hondo-nav-toggle-bars span {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Phone: Ride banner copy — left-aligned two-line headline in the left half, CTA filling the right half
   (left edge on the white divider, right edge on the sponsor image's right edge), dates full-width below. */
@media (max-width: 700px) {
  .ride-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "headline cta"
      "dates dates";
    align-items: center;
    column-gap: 0;
    row-gap: 6px;
    width: 100%;
  }
  .ride-headline {
    grid-area: headline;
    text-align: left;
    justify-self: start;
    font-size: min(22px, calc((100vw - 32px) / 19.5));
    line-height: 1.05;
    white-space: nowrap;
  }
  .ride-break { display: inline; }
  .ride-dates {
    grid-area: dates;
    text-align: center;
    width: 100%;
  }
  .ride-cta {
    grid-area: cta;
    align-self: center;
    justify-self: start;
    width: calc((100% + 2px) / 2);
    max-width: none;
    min-height: 34px;
    margin: 0 0 0 -2px;
    padding: 8px 4px;
    font-size: 12px;
  }
  /* Same displayed height for the Ride mark and the Coors/sponsor art (sponsor is 342x233 vs 230). */
  .ride-mark,
  .ride-sponsor {
    height: calc((100vw - 32px) / 2 * 230 / 342);
    object-fit: cover;
    object-position: center;
  }
}
/* Phone Ride banner v4: CTA flush right with the image; dates line as large as fits on one line. */
@media (max-width: 700px) {
  .ride-copy { row-gap: 4px; }
  .ride-cta { justify-self: end; margin-left: 0; margin-right: 0; }
  .ride-dates {
    font-size: calc((100vw - 32px) / 32.6);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}
