/*
  Rundle Bike & Ski shared site chrome: header, mobile menu, mobile sticky bar, footer.
  Markup lives in docs/brand/site-chrome-snippet.html. Copy it verbatim.

  Every rule is scoped under .rb-site-header, .rb-mobile-menu, .rb-sticky-bar or
  .rb-site-footer so the file works beside preview/home-redesign.css or css/main.css
  without relying on either. Tokens come from the 2026-10-19 rebrand spec.

  Type scale (px): 13 / 16 / 20 / 25 / 31 / 39 / 49 / 61
  Spacing scale (px): 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 128
*/

/* ---------- Scope tokens and reset ---------- */

.rb-site-header,
.rb-activity-switch,
.rb-mobile-menu,
.rb-sticky-bar,
.rb-site-footer {
  --rb-teal: #016D66;
  --rb-teal-dark: #014F4A;
  --rb-ink: #141414;
  --rb-muted: #4B5654;
  --rb-white: #FFFFFF;
  --rb-snow: #F2F5F5;
  --rb-rock: #16201F;
  --rb-on-rock: #EEF3F2;
  --rb-on-rock-muted: #A3B0AE;
  --rb-hairline: #D6DEDD;
  --rb-radius: 8px;
  --rb-shadow-rest: 0 1px 3px rgba(0, 0, 0, 0.08);
  --rb-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.10);
  --rb-ease: 200ms ease-out;
  --rb-gutter: 24px;
  --rb-pad-x: max(var(--rb-gutter), calc((100% - 1248px) / 2));

  font-family: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rb-ink);
  -webkit-text-size-adjust: 100%;
}

.rb-site-header *,
.rb-site-header *::before,
.rb-site-header *::after,
.rb-mobile-menu *,
.rb-mobile-menu *::before,
.rb-mobile-menu *::after,
.rb-sticky-bar *,
.rb-sticky-bar *::before,
.rb-sticky-bar *::after,
.rb-site-footer *,
.rb-site-footer *::before,
.rb-site-footer *::after {
  box-sizing: border-box;
}

.rb-site-header ul,
.rb-mobile-menu ul,
.rb-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-site-header a,
.rb-mobile-menu a,
.rb-sticky-bar a,
.rb-site-footer a {
  text-decoration: none;
}

.rb-site-header :where(p),
.rb-site-footer :where(p, h2, h3, address) {
  margin: 0;
  font-style: normal;
}

.rb-site-header img,
.rb-site-footer img {
  display: block;
  max-width: none;
  border-radius: 0;
}

/* Focus: teal ring on light surfaces, white ring on rock. */
.rb-site-header :is(a, button):focus-visible,
.rb-mobile-menu :is(a, button):focus-visible,
.rb-sticky-bar :is(a, button):focus-visible {
  outline: 2px solid var(--rb-teal);
  outline-offset: 2px;
}

.rb-site-footer :is(a, button):focus-visible {
  outline: 2px solid var(--rb-white);
  outline-offset: 2px;
}

/* ---------- Buttons (shared by header, menu and sticky bar) ---------- */

.rb-site-header .rb-btn,
.rb-mobile-menu .rb-btn,
.rb-sticky-bar .rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--rb-radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--rb-ease), border-color var(--rb-ease), color var(--rb-ease), box-shadow var(--rb-ease);
}

.rb-site-header .rb-btn--primary,
.rb-mobile-menu .rb-btn--primary,
.rb-sticky-bar .rb-btn--primary {
  color: var(--rb-white);
  background: var(--rb-teal);
  border-color: var(--rb-teal);
  box-shadow: var(--rb-shadow-rest);
}

.rb-site-header .rb-btn--primary:hover,
.rb-mobile-menu .rb-btn--primary:hover,
.rb-sticky-bar .rb-btn--primary:hover {
  background: var(--rb-teal-dark);
  border-color: var(--rb-teal-dark);
  box-shadow: var(--rb-shadow-hover);
}

.rb-mobile-menu .rb-btn--secondary,
.rb-sticky-bar .rb-btn--secondary {
  color: var(--rb-ink);
  background: transparent;
  border-color: var(--rb-ink);
}

.rb-mobile-menu .rb-btn--secondary:hover,
.rb-sticky-bar .rb-btn--secondary:hover {
  background: var(--rb-snow);
  box-shadow: var(--rb-shadow-hover);
}

/* The header is always the teal band, so its outline button is white text and border by default
   (6.2:1). Pages and the React app need no override. */
.rb-site-header .rb-btn--secondary,
.rb-site-header .rb-btn--secondary:visited {
  color: var(--rb-white);
  background: transparent;
  border-color: var(--rb-white);
  box-shadow: none;
}

.rb-site-header .rb-btn--secondary:hover {
  color: var(--rb-white);
  background: var(--rb-teal-dark);
  border-color: var(--rb-white);
}

.rb-site-header .rb-btn--secondary:focus-visible {
  color: var(--rb-ink);
  background: var(--rb-white);
  border-color: var(--rb-white);
  outline: 2px solid var(--rb-white);
  outline-offset: 2px;
}

/* Local-visitor copy swap on the header and sticky-bar buttons. Default copy shows first. */
.rb-site-header [data-local-copy="local"],
.rb-sticky-bar [data-local-copy="local"] {
  display: none;
}

html.local-visitor .rb-site-header [data-local-copy="default"],
html.local-visitor .rb-sticky-bar [data-local-copy="default"] {
  display: none;
}

html.local-visitor .rb-site-header [data-local-copy="local"],
html.local-visitor .rb-sticky-bar [data-local-copy="local"] {
  display: inline;
}

/* ---------- Header ---------- */

/* ---------- Bikes / Skis switch beside the logo ----------
   Real links to each activity's canonical page, on the teal header. A quiet outlined pair so it
   never reads as the white primary button: the current side is filled dark (shape and colour,
   not colour alone), the other side is white text. White on #016D66 is 6.2:1; on #16201F 16:1. */

.rb-site-header__brand {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.rb-activity-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--rb-radius);
}

.rb-activity-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--rb-radius);
  background: transparent;
  color: var(--rb-white);
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--rb-ease), color var(--rb-ease);
}

.rb-activity-switch a:hover {
  background: var(--rb-teal-dark);
}

.rb-activity-switch a[aria-current]:not([aria-current="false"]) {
  background: var(--rb-rock);
  color: var(--rb-white);
}

.rb-activity-switch a:focus-visible {
  outline: 2px solid var(--rb-white);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rb-activity-switch a {
    transition: none;
  }
}

/* Winter notice on the bike homepage at /bikes. */
.rb-season-notice {
  padding: 16px var(--rb-pad-x, 24px);
  background: #F2F5F5;
  border-bottom: 1px solid #D6DEDD;
  color: #141414;
  font-size: 16px;
  line-height: 1.5;
}

.rb-season-notice p {
  max-width: 65ch;
  margin: 0;
}

.rb-season-notice a {
  color: #016D66;
  font-weight: 600;
}

.rb-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--rb-white);
  border-bottom: 1px solid var(--rb-hairline);
}

.rb-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding-inline: var(--rb-pad-x);
}

.rb-site-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  border-radius: var(--rb-radius);
}

.rb-site-header__logo img {
  width: auto;
  height: 40px;
}

.rb-site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rb-site-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rb-ink);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline 2px transparent;
  text-underline-offset: 8px;
  transition: text-decoration-color var(--rb-ease);
}

.rb-site-header__nav a:hover,
.rb-site-header__nav a[aria-current="page"] {
  text-decoration-color: var(--rb-teal);
}

.rb-site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rb-site-header__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  color: var(--rb-ink);
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--rb-radius);
  transition: background-color var(--rb-ease);
}

.rb-site-header__tel:hover {
  background: var(--rb-snow);
}

.rb-site-header__tel svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rb-site-header__tel-text {
  display: inline;
}

.rb-site-header__toggle {
  position: relative;
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--rb-ink);
  background: transparent;
  border: 0;
  border-radius: var(--rb-radius);
  cursor: pointer;
  transition: background-color var(--rb-ease);
}

.rb-site-header__toggle:hover {
  background: var(--rb-snow);
}

/* Three 24px bars stacked on the button centre; open state turns two into an X. */
.rb-site-header__toggle span {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 12px);
  display: block;
  width: 24px;
  height: 2px;
  margin: 0;
  background: var(--rb-ink);
  border-radius: 0;
  transition: transform var(--rb-ease), opacity var(--rb-ease);
}

.rb-site-header__toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.rb-site-header__toggle span:nth-child(3) {
  transform: translateY(6px);
}

.rb-site-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.rb-site-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.rb-site-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.rb-mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 100;
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  padding: 8px var(--rb-gutter) 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--rb-white);
  border-bottom: 1px solid var(--rb-hairline);
  box-shadow: var(--rb-shadow-hover);
}

.rb-mobile-menu[hidden] {
  display: none;
}


.rb-mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--rb-ink);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--rb-hairline);
  transition: color var(--rb-ease), background-color var(--rb-ease);
}

.rb-mobile-menu__list a:hover {
  color: var(--rb-teal);
}

.rb-mobile-menu__list a[aria-current="page"] {
  text-decoration: underline 2px var(--rb-teal);
  text-underline-offset: 8px;
}

.rb-mobile-menu__list li:first-child a {
  font-weight: 600;
}

.rb-mobile-menu .rb-mobile-menu__call {
  display: flex;
  width: 100%;
  margin-top: 24px;
}

/* ---------- Header breakpoints ---------- */

/* The five-link nav stays down to 1024px; the phone menu takes over at 1023px and below
   (fix round 2026-11-17, was 1099px). */
@media (max-width: 1023px) {
  .rb-site-header__nav {
    display: none;
  }

  .rb-site-header__toggle {
    display: block;
  }
}

@media (min-width: 1024px) {
  .rb-mobile-menu {
    display: none;
  }
}

@media (max-width: 759px) {
  .rb-site-header,
  .rb-mobile-menu,
  .rb-sticky-bar,
  .rb-site-footer {
    --rb-gutter: 16px;
  }

  .rb-site-header__inner {
    gap: 8px;
    height: 64px;
  }

  .rb-site-header__logo img {
    height: 36px;
  }

  .rb-site-header__brand {
    gap: 8px;
  }

  .rb-site-header__actions {
    gap: 8px;
  }

  .rb-site-header__tel {
    width: 44px;
    padding: 0;
  }

  .rb-site-header__tel-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* "Book a bike" is the first mobile-menu item and the sticky bar carries the primary button. */
  .rb-site-header .rb-site-header__cta {
    display: none;
  }

  .rb-mobile-menu {
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
  }

}

/* Logo, Bikes/Skis, call and menu share one row down to 343px of content (375px phones). */
@media (max-width: 479px) {
  .rb-site-header__brand {
    gap: 4px;
  }

  .rb-site-header__logo img {
    height: 32px;
  }

  .rb-activity-switch a {
    padding: 0 8px;
  }
}

/* Phones narrower than 375px (360px Android) need 16px more. */
@media (max-width: 374px) {
  .rb-site-header__logo img {
    height: 28px;
  }
}

@media (max-width: 399px) {
  .rb-site-header__inner {
    gap: 4px;
  }

  .rb-site-header__actions {
    gap: 4px;
  }

}

@media (max-width: 359px) {
  .rb-site-header__inner {
    padding-inline: 8px;
  }

  .rb-site-header__logo img {
    height: 24px;
  }

  .rb-activity-switch a {
    padding: 0 4px;
  }
}

/* ---------- Mobile sticky bar (call and book) ---------- */

.rb-sticky-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: none;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px var(--rb-gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--rb-white);
  border-top: 1px solid var(--rb-hairline);
  transition: transform 200ms ease-out, visibility 0s linear 0s;
}

/* Slides away while the booking widget's "See rental bikes" button is on screen (home-redesign.js). */
.rb-sticky-bar.is-hidden {
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 200ms ease-out, visibility 0s linear 200ms;
}

@media (max-width: 640px) {
  .rb-sticky-bar.mobile-sticky {
    display: grid;
  }

  .rb-sticky-bar ~ .rb-site-footer {
    padding-bottom: 96px;
  }
}

/* ---------- Footer ---------- */

.rb-site-footer {
  padding: 64px var(--rb-pad-x) 96px; /* clears the fixed chat launcher over the footer bottom row */
  color: var(--rb-on-rock);
  background: var(--rb-rock);
}

.rb-site-footer a {
  color: var(--rb-white);
  transition: text-decoration-color var(--rb-ease), opacity var(--rb-ease);
}

.rb-site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rb-site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(238, 243, 242, 0.16);
}

.rb-site-footer__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--rb-radius);
}

.rb-site-footer__logo img {
  width: auto;
  height: 40px;
}

.rb-site-footer__tagline {
  max-width: 65ch;
  color: var(--rb-on-rock);
}

.rb-site-footer__owned {
  color: var(--rb-on-rock-muted);
  font-size: 13px;
}

.rb-site-footer__grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.2fr 1.2fr;
  gap: 32px;
  padding: 48px 0;
}

.rb-site-footer__title {
  margin-bottom: 16px;
  color: var(--rb-on-rock-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rb-site-footer__links li + li {
  margin-top: 4px;
}

.rb-site-footer__links a,
.rb-site-footer__nap a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  min-width: 44px;
}

.rb-site-footer__nap {
  display: grid;
  gap: 4px;
  color: var(--rb-on-rock);
}

.rb-site-footer__nap strong {
  color: var(--rb-white);
  font-weight: 600;
}

.rb-site-footer__nap .rb-site-footer__muted {
  color: var(--rb-on-rock-muted);
}

.rb-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 243, 242, 0.16);
  color: var(--rb-on-rock-muted);
  font-size: 13px;
}

.rb-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-right: auto;
}

.rb-site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.rb-site-footer__social {
  display: flex;
  gap: 8px;
}

.rb-site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--rb-white);
  font-size: 20px;
  border: 1px solid rgba(238, 243, 242, 0.32);
  border-radius: var(--rb-radius);
  transition: background-color var(--rb-ease), border-color var(--rb-ease);
}

.rb-site-footer__social a:hover {
  background: rgba(238, 243, 242, 0.12);
  border-color: var(--rb-white);
  text-decoration: none;
}

@media (max-width: 899px) {
  .rb-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones, landscape phones and any touch screen: every footer link is a 44px tap target. */
@media (max-width: 899px), (pointer: coarse) {
  .rb-site-footer__links a,
  .rb-site-footer__nap a,
  .rb-site-footer__legal a {
    min-height: 44px;
  }

  .rb-site-footer__links li + li {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .rb-site-footer {
    padding-top: 64px;
  }

  .rb-site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rb-site-footer__links a,
  .rb-site-footer__nap a {
    min-height: 44px;
  }

  .rb-site-footer__links li + li {
    margin-top: 0;
  }

  .rb-site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-sticky-bar,
  .rb-sticky-bar.is-hidden {
    transition: none;
  }

  .rb-site-header *,
  .rb-mobile-menu *,
  .rb-sticky-bar *,
  .rb-site-footer * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Teal header (owner choice, 2026-10-19) ----------
   The header is a teal brand surface. The reverse logo's teal frame blends into it while its
   white sky window keeps the mountain in contrast; links, phone and menu bars are white, and the
   header button inverts to white with teal-deep text. White on #016D66 is 6.2:1. */
.rb-site-header {
  background: var(--rb-teal);
  border-bottom-color: var(--rb-teal-dark);
}

.rb-site-header__nav a,
.rb-site-header__tel,
.rb-site-header__toggle {
  color: var(--rb-white);
}

.rb-site-header__nav a:hover,
.rb-site-header__nav a[aria-current="page"] {
  text-decoration-color: var(--rb-white);
}

.rb-site-header__tel:hover,
.rb-site-header__toggle:hover {
  background: var(--rb-teal-dark);
}

.rb-site-header__toggle span {
  background: var(--rb-white);
}

.rb-site-header .rb-btn--primary {
  color: var(--rb-teal-dark);
  background: var(--rb-white);
  border-color: var(--rb-white);
}

.rb-site-header .rb-btn--primary:hover {
  color: var(--rb-teal-dark);
  background: var(--rb-snow);
  border-color: var(--rb-snow);
}

.rb-site-header :is(a, button):focus-visible {
  outline-color: var(--rb-white);
}

/* Partner marks (hotel pages) keep their own colours on a white panel so they stay legible on teal. */
.rb-site-header .rb-site-header__partner {
  border-left-color: rgba(255, 255, 255, 0.4);
}

.rb-site-header .rb-site-header__partner img {
  box-sizing: border-box;
  padding: 4px 8px;
  background: var(--rb-white);
  border-radius: var(--rb-radius);
}

.rb-site-header .rb-site-header__partner-name {
  color: var(--rb-white);
}

/* ---------- Site audit round 1 (2026-11-13) ----------
   Additive and backward compatible: pages that keep the white primary header button are unchanged. */

/* Header button, outline variant: every page has its own primary action in the content, so the
   header carries the secondary button, white text and border on the teal band (6.2:1).
   Repeated at higher specificity so page stylesheets that style .rb-site-header a cannot darken it. */
.rb-site-header .rb-site-header__cta.rb-btn--secondary,
.rb-site-header .rb-site-header__cta.rb-btn--secondary:visited {
  color: var(--rb-white);
  background: transparent;
  border-color: var(--rb-white);
  box-shadow: none;
}

.rb-site-header .rb-site-header__cta.rb-btn--secondary:hover {
  color: var(--rb-white);
  background: var(--rb-teal-dark);
  border-color: var(--rb-white);
}

.rb-site-header .rb-site-header__cta.rb-btn--secondary:focus-visible {
  color: var(--rb-ink);
  background: var(--rb-white);
  border-color: var(--rb-white);
  outline: 2px solid var(--rb-white);
  outline-offset: 2px;
}

/* Bikes / Skis switch: both labels stay legible whatever the page's own link styles are.
   The other side is white on teal (6.2:1), the current side white on rock (16:1). */
.rb-site-header .rb-activity-switch a,
.rb-site-header .rb-activity-switch a:visited {
  color: var(--rb-white);
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.rb-site-header .rb-activity-switch a[aria-current]:not([aria-current="false"]) {
  color: var(--rb-white);
  background: var(--rb-rock);
}

/* ---------- Rent / Shop doors (2026-11-17) ----------
   The first two nav links on every page answer "rent or shop":
   <a class="rb-nav-door" href="/ski/shop">Shop <small>Calgary</small></a>.
   Inline formatting, not flex, so the 13px qualifier sits on the label's baseline; the 44px
   line box keeps the tap target. The qualifier is a quiet label in the same link: smaller,
   regular weight, on-rock white (#EEF3F2 on #016D66 is 5.5:1). It hides first when the row
   gets tight, before anything else in the header is cut. */
.rb-site-header .rb-site-header__nav a.rb-nav-door {
  display: inline-block;
  line-height: 44px;
  word-spacing: 4px; /* 8px between label and qualifier, with one unbroken underline */
}

.rb-site-header .rb-nav-door small {
  color: var(--rb-on-rock);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Between the phone-menu breakpoint (1024px) and 1279px the row is tight. In order:
   tighter gaps (below 1280px), then the phone shrinks to its 44px icon and the Rent door's
   qualifier (Delivered / Canmore) goes (below 1100px). "Shop Calgary" keeps its qualifier
   to 1024px. Measured on the widest variants (ski "Reserve your skis", bike shop pages with
   "Book a test ride", hotel partner headers). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .rb-site-header .rb-site-header__inner { gap: 16px; }
  .rb-site-header .rb-site-header__nav { gap: 16px; }
}

@media (min-width: 1024px) and (max-width: 1179px) {
  .rb-site-header .rb-site-header__tel {
    width: 44px;
    padding: 0;
  }

  .rb-site-header .rb-site-header__tel-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  .rb-site-header .rb-nav-door:first-child small { display: none; }
}

/* Phone menu: the first two entries carry the same quiet location label as the desktop doors,
   e.g. <a href="/ski/shop">Shop K&auml;stle skis <small>Calgary</small></a>.
   Muted ink on the white menu (#4B5654 on #FFFFFF is 7.6:1). */
.rb-mobile-menu .rb-mobile-menu__list a small {
  margin-left: 8px;
  color: var(--rb-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* The phone menu sits inside the teal header, so the header's white outline-button rule also
   hit its Call button and made it white on the white menu (invisible on every static page).
   The menu's Call button is ink on white (16.9:1), as in the ski app. */
.rb-site-header .rb-mobile-menu .rb-mobile-menu__call,
.rb-site-header .rb-mobile-menu .rb-mobile-menu__call:visited {
  color: var(--rb-ink);
  background: transparent;
  border-color: var(--rb-ink);
}

.rb-site-header .rb-mobile-menu .rb-mobile-menu__call:hover {
  color: var(--rb-ink);
  background: var(--rb-snow);
  border-color: var(--rb-ink);
}

.rb-site-header .rb-mobile-menu .rb-mobile-menu__call:focus-visible {
  color: var(--rb-ink);
  background: var(--rb-snow);
  outline: 2px solid var(--rb-teal);
  outline-offset: 2px;
}

/* Hotel partner headers carry the partner mark between the switch and the nav, so the
   qualifiers wait for more room there, and the mark shrinks (never overlaps) when the row is
   short. Below 480px there is no room for it beside the logo, switch, call and menu. */
@media (max-width: 1439px) {
  .rb-site-header--partner .rb-nav-door small { display: none; }
}

.rb-site-header--partner .rb-site-header__brand {
  flex-shrink: 0;
}

/* 1024px to 1179px: the partner mark and five links need the room, so the header button goes
   (the booking page carries its own button) before any link would. */
@media (min-width: 1024px) and (max-width: 1179px) {
  .rb-site-header--partner .rb-site-header__cta { display: none; }
}

.rb-site-header--partner .rb-site-header__partner {
  max-width: calc(200px + 16px + 1px); /* the 200px logo cap, its 16px inset and the 1px divider */
  overflow: hidden;
}

.rb-site-header--partner .rb-site-header__partner img {
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 479px) {
  .rb-site-header--partner .rb-site-header__partner { display: none; }
}

/* Ski store pages: the header button is the cart, with a count badge. */
.rb-site-header .rb-site-header__cart {
  gap: 8px;
}

.rb-site-header .rb-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: var(--rb-radius);
  background: var(--rb-white);
  color: var(--rb-teal-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.rb-site-header .rb-site-header__cart:focus-visible .rb-cart-count {
  background: var(--rb-teal-dark);
  color: var(--rb-white);
}

/* Footer: one link under each address block to that location's page. NAP text is unchanged. */
.rb-site-footer .rb-site-footer__place {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Phone menu: the bike and shop pages behind one disclosure button (ski pages). */
.rb-mobile-menu .rb-mobile-menu__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rb-hairline);
  background: transparent;
  color: var(--rb-muted);
  cursor: pointer;
  font: 600 13px/1.5 "Barlow", "Barlow Fallback", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.rb-mobile-menu .rb-mobile-menu__group-toggle::after {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--rb-muted);
  border-bottom: 2px solid var(--rb-muted);
  content: "";
  transform: translateY(-4px) rotate(45deg);
  transition: transform var(--rb-ease);
}

.rb-mobile-menu .rb-mobile-menu__group-toggle[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
.rb-mobile-menu .rb-mobile-menu__list--group[hidden] { display: none; }
.rb-mobile-menu .rb-mobile-menu__list--group li:first-child a { font-weight: 500; }
