/* Base styles: reset, typography roles from the design, focus, RTL rules. Tokens only. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body,
[lang='ar'] {
  font-family: var(--font-arabic);
  letter-spacing: normal;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.2;
}
h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
}
h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
}
a {
  color: var(--primary-text);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
img,
svg {
  display: block;
}
/* The hidden attribute wins over component display rules (a failed screenshot image showed its
   alt text inside the console card). */
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-3);
  top: -100px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  z-index: 100;
}
.skip-link:focus {
  top: var(--sp-3);
}
.text-2 {
  color: var(--text-2);
}
.text-3 {
  /* --text-3 fails AA on small text (3.3:1); use it for icons only. See docs/design-deviations.md. */
  color: var(--text-2);
}
.small {
  font-size: var(--fs-sm);
}
.caption {
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.section-heading {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
[dir='rtl'] .section-heading {
  letter-spacing: normal;
  text-transform: none;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.grow {
  flex: 1;
}
.icon {
  flex: none;
}
@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
