/*
 * File: css/base/reset.css
 * Logic: Global foundation — box model, document defaults, a11y helpers.
 * Tag styling allowed here only (not in SDC component CSS).
 */

/* ==========================================================================
   BOX MODEL
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   DOCUMENT — mobile-first base
   ========================================================================== */
html {
  font-size: var(--font-size-root);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--text-body);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   MEDIA DEFAULTS (global CLS baseline)
   ========================================================================== */
img,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* SVG: no global display:block — icons stay inline; size via utility/component classes. */

/* ==========================================================================
   INTERACTIVE DEFAULTS
   ========================================================================== */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   ACCESSIBILITY & JS TOGGLE HELPERS
   ========================================================================== */
.visually-hidden,
.wsdt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus,
.wsdt-visually-hidden.focusable:active,
.wsdt-visually-hidden.focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* JS toggle / unconditional hide — not .wsdt-hidden (responsive, breakpoints.css). */
.hidden,
.wsdt-hidden-static {
  display: none;
}
