/* Shared foundation only. Brand color, layout, chrome, and voice belong to each owner theme. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[type="button"],
[type="submit"],
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Shared interaction grammar: themes keep their own colors, while editorial
   cards expose the same visible "there is more" cue. */
.route-cue__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 0.75rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.route-cue__mark {
  display: inline-block;
  flex: 0 0 auto;
  font-style: normal;
  line-height: 1;
  transition: transform 160ms ease;
}

.route-cue:is(:hover, :focus-visible) .route-cue__mark {
  transform: translateX(0.18em);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .route-cue:is(:hover, :focus-visible) .route-cue__mark {
    transform: none;
  }
}
