/* Base Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  border-spacing: 0;
  outline: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: 1.5385;
}

h1, h2, h3, h4, h5 {
  font-weight: var(--font-weight-bold);
}

ul {
  list-style-type: none;
}

img {
  transition: all var(--transition-slow);
}

p, div, th, td {
  color: var(--color-text);
}

/*
 * Table alignment contract (SoT).
 * UA stylesheets often center/start th while leaving td start — never rely on that.
 * Unspecified columns share start; numeric/amount columns opt in via helpers below
 * (or th-* / prev-cell-text-* / dt-right). Header align MUST match cell align.
 */
table th,
table td {
  text-align: start;
}

th.num,
td.num,
th.dt-right,
td.dt-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

th.dt-center,
td.dt-center,
th.dt-body-center,
td.dt-body-center {
  text-align: center;
}

th.dt-left,
td.dt-left,
th.dt-body-left,
td.dt-body-left {
  text-align: start;
}

body {
  font-size: var(--font-size-base);
  overflow: hidden; /* Prevent page-level scroll */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen Reader Only - Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/*
 * HTML [hidden] contract (SoT).
 * Author `display: flex|inline-flex|…` beats the UA [hidden] rule; without this,
 * buttons/footers/panels stay visible with the attribute set. Prefer
 * `.foo:not([hidden]) { display: … }` for positive layout; do not re-add
 * per-feature `[hidden] { display: none !important }` patches.
 */
[hidden] {
  display: none !important;
}

