/* Shared, scoped foundation for migrated public PC pages. */

html.ui-v2-root {
  color-scheme: light;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html.ui-v2-root,
html.ui-v2-root *,
html.ui-v2-root *::before,
html.ui-v2-root *::after {
  box-sizing: border-box;
}

html.ui-v2-root body.ui-v2 {
  min-width: 0;
  margin: 0;
  color: var(--ui-color-text);
  background: var(--ui-color-surface-soft);
  font-family: var(--ui-font-sans);
  font-synthesis: none;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.ui-v2-root body.ui-v2 img,
html.ui-v2-root body.ui-v2 svg,
html.ui-v2-root body.ui-v2 video {
  max-width: 100%;
}

html.ui-v2-root body.ui-v2 button,
html.ui-v2-root body.ui-v2 input,
html.ui-v2-root body.ui-v2 select,
html.ui-v2-root body.ui-v2 textarea {
  font: inherit;
}

html.ui-v2-root body.ui-v2 :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ui-color-primary-500);
  outline-offset: 3px;
}

.ui-container {
  width: min(calc(100% - clamp(32px, 6vw, 96px)), var(--ui-content-width));
  margin-inline: auto;
}

.ui-section {
  padding-block: clamp(var(--ui-space-10), 6vw, var(--ui-space-16));
}

.ui-section-heading {
  max-width: 720px;
  margin: 0 auto var(--ui-space-10);
  text-align: center;
}

.ui-section-heading > :first-child {
  margin-top: 0;
}

.ui-section-heading > :last-child {
  margin-bottom: 0;
}

.ui-sr-only {
  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;
}

.ui-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: var(--ui-radius-sm);
  color: #fff;
  background: var(--ui-color-primary-600);
  box-shadow: var(--ui-shadow-sm);
  transform: translateY(-160%);
  transition: transform var(--ui-duration-fast) var(--ui-ease-standard);
}

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

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

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

