/* Shared styling for the answer pages: /faq, /fleet, /legacy-trail, /banff-bike-rentals.
   Layered on top of preview/home-redesign.css, which supplies the tokens (teal --red, ink, muted,
   snow, rock, hairline --line, radius, shadows) and the .btn variants. Rebrand 2026-10-19.

   Type scale (px): 13 / 16 / 20 / 25 / 31 / 39 / 49 / 61
   Spacing scale (px): 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 128
   Teal appears only on primary buttons, text links, focus rings and the closing CTA band. */

/* home-redesign.css starts the body at opacity 0 and waits for JS to add .is-loaded.
   These are crawlable answer pages, so they must be readable without that round trip.
   The .is-leaving page-transition rule is more specific and still wins on link clicks. */
body {
  opacity: 1;
}

/* The shared header is sticky, so the page shell must clip without becoming a scroll container. */
.page-shell {
  overflow: clip;
}

.info-hero {
  padding: 96px var(--pad-x) 64px;
  background: var(--snow);
  border-bottom: 1px solid var(--line);
}

.info-hero h1 {
  max-width: 16ch;
  text-wrap: balance;
  margin: 8px 0 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 61px;
  line-height: 1.05;
  text-transform: uppercase;
}

.info-hero p {
  max-width: 65ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.info-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.info-review-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: fit-content;
  min-height: 48px;
  margin-top: 24px;
  padding: 8px 0;
  box-sizing: border-box;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-decoration: none;
}

.info-review-stars {
  display: inline-flex;
  gap: 4px;
  color: var(--ink);
  font-size: 13px;
}

.info-review-copy strong {
  margin-right: 4px;
  font-weight: 600;
}

.info-review-action {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.info-review-action i {
  margin-left: 4px;
  font-size: 13px;
}

.info-review-proof:hover .info-review-action {
  color: var(--red-dark);
  text-decoration-thickness: 2px;
}

.info-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px var(--pad-x);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.info-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.info-jump a:hover {
  background: var(--snow);
  border-color: var(--ink);
}

/* Sections sit 96px apart on desktop (64px on phones): each one carries the gap above itself,
   so a long run of sections, as on the FAQ, does not double the whitespace. */
.info-section {
  padding: 96px var(--pad-x) 0;
  scroll-margin-top: 96px;
}

.info-section:last-child,
.info-section:has(+ .info-cta) {
  padding-bottom: 96px;
}

.info-section > h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 39px;
  line-height: 1.15;
  text-transform: uppercase;
}

.info-section > .info-lede {
  max-width: 65ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

/* Question and answer blocks */
.qa-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.qa {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
}

.qa h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.qa p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.qa p + p {
  margin-top: 12px;
}

.qa ul {
  margin: 16px 0 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.qa li + li {
  margin-top: 8px;
}

.qa strong {
  color: var(--ink);
}

.qa a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.qa a:hover {
  color: var(--red-dark);
}

.qa-wide {
  grid-column: 1 / -1;
}

/* Questions collapse so a long FAQ reads as a menu rather than a wall. Category headings
   stay open, so a deep link to a section lands on a scannable list of question titles. */
.qa {
  scroll-margin-top: 96px;
}

.qa > summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.qa > summary::-webkit-details-marker {
  display: none;
}

.qa > summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  margin-top: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform var(--ease);
}

.qa[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 8px;
}

.qa > summary:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.qa > summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Simple data tables: sizing chart, rate rows */
.info-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.info-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 16px;
}

.info-table th,
.info-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.info-table thead th {
  background: var(--snow);
  color: var(--ink);
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-table tbody tr:last-child th,
.info-table tbody tr:last-child td {
  border-bottom: 0;
}

.info-table tbody th {
  width: 96px;
  color: var(--ink);
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.info-table td {
  color: var(--muted);
}

.info-note {
  max-width: 65ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Fleet cards */
.fleet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.fleet-item {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  transition: box-shadow var(--ease);
}

.fleet-item:hover {
  box-shadow: var(--shadow-hover);
}

.fleet-item > img {
  width: 100%;
  height: 100%;
  min-height: 192px;
  object-fit: cover;
}

.fleet-item-body {
  padding: 24px;
}

.fleet-item-body h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.fleet-item-body p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.fleet-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.fleet-specs li {
  padding: 4px 8px;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}

.fleet-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fleet-rates div {
  display: flex;
  flex-direction: column;
}

.fleet-rates em {
  color: var(--muted);
  font-family: "Barlow", "Barlow Fallback", system-ui, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fleet-rates strong {
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-size: 25px;
  font-weight: 700;
}

/* The posted rate is the weekend one, so every adult bike states its weekday
   price here rather than leaving guests to find it at checkout. */
.fleet-weekday {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Route page */
.route-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.route-stats div {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-stats em {
  display: block;
  color: var(--muted);
  font-family: "Barlow", "Barlow Fallback", system-ui, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-stats strong {
  display: block;
  margin-top: 4px;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.route-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 32px;
}

.route-copy p {
  max-width: 65ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.route-copy h3 {
  margin: 32px 0 16px;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.route-copy ul {
  max-width: 65ch;
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.route-copy li + li {
  margin-top: 8px;
}

.route-copy strong {
  color: var(--ink);
}

.route-copy a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.route-aside {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 24px;
  background: var(--rock);
  border-radius: var(--radius);
  color: var(--white);
}

.route-aside h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.route-aside p {
  margin: 12px 0 0;
  color: var(--on-rock);
  line-height: 1.55;
}

.route-aside ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.route-aside li {
  padding: 8px 0;
  border-top: 1px solid rgba(238, 243, 242, 0.16);
  color: var(--on-rock);
  font-size: 16px;
}

.route-aside .btn {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

.route-aside :focus-visible {
  outline-color: var(--white);
}

.route-figure {
  margin: 32px 0 0;
}

.route-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Closing call to action: the page's one teal band. */
.info-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 var(--pad-x) 96px;
  padding: 48px;
  background: var(--red);
  border-radius: var(--radius);
  color: var(--white);
}

.info-cta h2 {
  max-width: 20ch;
  margin: 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-weight: 700;
  font-size: 39px;
  line-height: 1.15;
  text-transform: uppercase;
}

.info-cta p {
  max-width: 65ch;
  margin: 16px 0 0;
  color: var(--white);
  line-height: 1.55;
}

.info-cta-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.info-cta .btn {
  flex: 0 0 auto;
}

.info-cta :focus-visible {
  outline-color: var(--white);
}

@media (max-width: 980px) {
  .route-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-aside {
    position: static;
  }

  .route-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .qa-list,
  .fleet-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .fleet-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .fleet-item > img {
    min-height: 0;
    aspect-ratio: 1.6;
  }

  .info-hero-actions .btn,
  .info-cta .btn {
    width: 100%;
    text-align: center;
  }

  .info-review-proof {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .info-hero {
    padding: 64px var(--pad-x) 48px;
  }

  .info-hero h1 {
    font-size: 36px;
  }

  .info-hero p,
  .info-section > .info-lede {
    font-size: 16px;
  }

  .info-section {
    padding-top: 64px;
  }

  .info-section:last-child,
  .info-section:has(+ .info-cta) {
    padding-bottom: 64px;
  }

  .info-section > h2,
  .info-cta h2 {
    font-size: 31px;
  }

  .info-cta {
    margin-bottom: 64px;
    padding: 32px 24px;
  }

  .route-body {
    gap: 32px;
  }

  /* Leave room above the footer for the fixed call and reserve bar. */
  .mobile-sticky ~ .rb-site-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 460px) {
  .route-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa > summary::after,
  .fleet-item,
  .info-jump a {
    transition: none;
  }
}

.info-section > h2,
.info-cta h2,
.qa h3 {
  text-wrap: balance;
}
