/* Logical properties only: this file must work unchanged in RTL and LTR. */
*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); color: var(--text); scrollbar-color: var(--border-strong) transparent; scrollbar-width: thin; }
::selection { background: var(--brand-soft); color: var(--brand-text); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin-block: 0 var(--sp-5); color: var(--text); }
h1 { font-size: var(--fs-title-l); line-height: var(--lh-title-l); }
h2 { font-size: var(--fs-title-m); line-height: var(--lh-title-m); }
p { margin-block: 0 var(--sp-4); }

a { color: var(--brand-text); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* `hidden` must win over any component's display rule. Without this a
   `.bulkbar { display: flex }` beat the attribute and drew an empty green bar
   above every table in the console. */
[hidden] { display: none !important; }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.num, .data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); }

.skip-link {
  position: absolute; inset-inline-start: var(--sp-5); inset-block-start: -100px;
  background: var(--surface); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  z-index: 100;
}
.skip-link:focus { inset-block-start: var(--sp-5); }
