/* =========================================================================
   Base — reset, typography defaults, accessibility floor
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--shelf);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Display face: Archivo at expanded width — shelf-signage proportions. */
.display {
  font-family: var(--font-ui);
  font-variation-settings: "wdth" 112, "wght" 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* Every figure that represents money or a count aligns in columns. */
.num,
.money,
td.num,
.mono {
  font-variant-numeric: tabular-nums;
}

/* Small caps-style label used for section headers and field labels. */
.eyebrow {
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: var(--text-2xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ---- focus: always visible, never removed ------------------------------ */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The mockup toggles elements with the `hidden` attribute, so it has to beat
   the component display rules below. */
[hidden] {
  display: none !important;
}

/* ---- screen-reader only ------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -60px;
  z-index: 200;
  background: var(--ticket);
  color: var(--ink);
  padding: var(--s3) var(--s4);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: var(--s3);
}

/* ---- scrollbars in dense operational surfaces -------------------------- */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scroll-x::-webkit-scrollbar {
  height: 6px;
}
.scroll-x::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
  border-radius: 3px;
}

.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

::selection {
  background: var(--ticket);
  color: var(--ink);
}
