/* Global Reset & Viewport Constraints for Mobile and Desktop */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color-scheme: dark;
}

*, *:before, *:after {
  box-sizing: border-box;
  min-width: 0;
}

/* Global Text Wrapping & Truncation Safety */
p, span, h1, h2, h3, h4, h5, h6, a, div, td, th, label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Responsive Horizontal Scroll Container for Tables & Grid Rows */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

:focus-visible {
  outline: 2px solid #d6b66b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: #0d0d0b;
  background: #d6b66b;
  border-radius: 4px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.goalzen-brand {
  border-radius: 5px;
}

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

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