/* Base reset and typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

a {
  color: var(--accent-ink);
}

a:not(.tab) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

button {
  font: inherit;
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: var(--space-2);
  flex-shrink: 0;
}

.status-dot--normal {
  background: var(--status-normal);
}
.status-dot--review {
  background: var(--status-review);
}
.status-dot--elevated {
  background: var(--status-elevated);
}
.status-dot--exception {
  background: var(--status-exception);
}
.status-dot--data-quality {
  background: var(--status-dataquality);
}

.status-label {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.card--status {
  border-left-width: 3px;
}

.card--status.card--normal {
  border-left-color: var(--status-normal);
}
.card--status.card--review {
  border-left-color: var(--status-review);
}
.card--status.card--elevated {
  border-left-color: var(--status-elevated);
}
.card--status.card--exception {
  border-left-color: var(--status-exception);
}
.card--status.card--data-quality {
  border-left-color: var(--status-dataquality);
}

.stub-note {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-page);
  border: 1px dashed var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 13.5px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--border-hairline);
  position: relative;
  flex-shrink: 0;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-card);
  box-shadow: 0 1px 2px var(--border-ring);
}

.toggle[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}
