/* Global fixes for layout shifts and horizontal overflow */
/* Box sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Reset default margins and padding */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Reserve scrollbar space to avoid page jump - ONLY RIGHT SIDE */
html {
  scrollbar-gutter: stable;
}

/* Material Symbols Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

/* Prevent horizontal scrollbars caused by wide elements */
@supports (overflow: clip) {
  html, body { 
    overflow-x: clip; 
  }
}

/* Media elements should not overflow their containers */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Long content should wrap instead of forcing horizontal scroll */
pre, code, kbd, samp {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tables should adapt to container width */
table {
  width: 100%;
  border-collapse: collapse;
}

/* Utility: prevent accidental negative margins causing bleed */
.overflow-clip-x {
  overflow-x: clip;
}
