/* Shared extras for the navbar/footer on static pages (the base nav/footer styles come from the homepage stylesheet). */

/* active page marker in the desktop bar */
.global-navigation__header-link-item[aria-current="page"] { position: relative; }
.global-navigation__header-link-item[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  background-color: currentColor;
}
/* active page marker in the mobile menu */
.global-navigation__accordion-heading[aria-current="page"] .global-navigation__accordion-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* the skip link must be reachable and visible on focus */
.global-navigation__skip-link:focus { z-index: 10001; }

/* ---------- sliding review rows (components/ReviewsSection.tsx ReviewMarquee): top row moves left, bottom row moves right ---------- */
.rv-marquee { display: grid; gap: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.rv-marquee__row { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; width: max-content; animation: rv-slide-left var(--rv-duration, 60s) linear infinite; }
.rv-marquee__row--right { animation-name: rv-slide-right; }
.rv-marquee__row > .sv-review { flex: none; width: 340px; margin-right: 20px; }
.rv-marquee:hover .rv-marquee__row, .rv-marquee:focus-within .rv-marquee__row { animation-play-state: paused; }
@keyframes rv-slide-left { to { transform: translateX(-50%); } }
@keyframes rv-slide-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 599px) { .rv-marquee__row > .sv-review { width: 280px; margin-right: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .rv-marquee__row { animation: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
  .rv-marquee__row > .sv-review { scroll-snap-align: start; }
  .rv-marquee__row > .sv-review[aria-hidden='true'] { display: none; }
}

/* ---------- "Write a review" button and dialog (components/ReviewSubmit.tsx) ---------- */
.rv-submit { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 36px); padding: 0 var(--grid-gutter-width, 16px); }
.rv-dialog { border: 0; padding: 0; border-radius: 16px; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: #000; }
.rv-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.rv-dialog__box { position: relative; padding: 28px 24px 24px; }
.rv-dialog__x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; }
.rv-form { display: grid; gap: 16px; }
.rv-form h2 { margin: 0; padding-right: 24px; }
.rv-form p { margin: 0; }
.rv-form label, .rv-form fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 500; }
.rv-form input, .rv-form textarea, .rv-form select { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #bbb; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: #000; }
.rv-form textarea { resize: vertical; }
.rv-form small { justify-self: end; color: #666; font-weight: 400; }
.rv-form__error { color: #b00020; font-size: 14px; }
.rv-form__stars { display: flex; gap: 4px; }
.rv-form__stars button { border: 0; background: none; padding: 2px; cursor: pointer; }
.rv-form__stars svg { fill: none; stroke: #888; display: block; }
.rv-form__stars .is-on svg { fill: #000; stroke: #000; }
.rv-form .cta[disabled] { opacity: 0.6; cursor: default; }

/* text for search engines and screen readers only (the homepage H1 brand + descriptor); nothing is shown on screen */
.rs-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
