/* Stage 4 — shared keyboard, heading and back-to-content enhancements. */
html {
  overflow-x: clip;
}

.skip-link {
  color: #fff !important;
}

.news-card__date {
  color: #00749d !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffbf00 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(0, 54, 82, 0.92) !important;
}

.contact-layout--details-only {
  grid-template-columns: minmax(0, 1fr) !important;
}

.cms-content--contacts a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.back-to-content-top {
  position: fixed;
  z-index: 1200;
  left: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: inline-grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #087fac, #064b71);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 35, 58, 0.28), 0 0 0 1px rgba(0, 54, 82, 0.18);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.back-to-content-top[hidden] {
  display: none !important;
}

.back-to-content-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main[data-back-to-content-focus]:focus {
  outline: 3px solid #075f86;
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-content-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 35, 58, 0.34), 0 0 0 1px rgba(0, 54, 82, 0.2);
  }
}

@media (max-width: 767px) {
  .primary-navigation:not(.is-open) {
    transform: translateX(100%);
  }

  .back-to-content-top {
    left: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-content-top {
    transition: none;
  }
}

@media print {
  .back-to-content-top {
    display: none !important;
  }
}
