/* RuniverseHub UI V2 · Foundation acotada al namespace .rh-v2-* */

.rh-v2-root,
.rh-v2-root *,
.rh-v2-root *::before,
.rh-v2-root *::after {
  box-sizing: border-box;
}

.rh-v2-root {
  min-height: 100dvh;
  margin: 0;
  color-scheme: dark;
  background:
    radial-gradient(1200px 600px at 10% -10%, oklch(0.24 0.05 200 / 25%), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, oklch(0.24 0.05 300 / 18%), transparent 60%),
    var(--rh-v2-color-background);
  color: var(--rh-v2-color-foreground);
  font-family: var(--rh-v2-font-sans);
  font-size: var(--rh-v2-text-base);
  line-height: var(--rh-v2-leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rh-v2-root :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}

.rh-v2-root :where(ul, ol) {
  margin: 0;
  padding: 0;
}

.rh-v2-root :where(button, input, textarea, select) {
  color: inherit;
  font: inherit;
}

.rh-v2-root :where(button, [type="button"], [type="submit"], [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}

.rh-v2-root :where(img, svg, video, canvas) {
  display: block;
  max-width: 100%;
}

.rh-v2-root :where(h1, h2, h3, h4) {
  color: var(--rh-v2-color-foreground);
  font-family: var(--rh-v2-font-display);
  letter-spacing: -0.01em;
}

.rh-v2-root h1 {
  font-size: clamp(var(--rh-v2-text-3xl), 4vw, var(--rh-v2-text-5xl));
  font-weight: var(--rh-v2-weight-bold);
  line-height: var(--rh-v2-leading-tight);
}

.rh-v2-root h2 {
  font-size: clamp(var(--rh-v2-text-xl), 2.4vw, var(--rh-v2-text-3xl));
  font-weight: var(--rh-v2-weight-semibold);
  line-height: var(--rh-v2-leading-snug);
}

.rh-v2-root h3 {
  font-size: var(--rh-v2-text-xl);
  font-weight: var(--rh-v2-weight-semibold);
  line-height: var(--rh-v2-leading-snug);
}

.rh-v2-root h4 {
  font-size: var(--rh-v2-text-base);
  font-weight: var(--rh-v2-weight-semibold);
  line-height: var(--rh-v2-leading-snug);
}

.rh-v2-root p {
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-root a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, var(--rh-v2-context-accent) 65%, transparent);
  text-underline-offset: 0.2em;
}

.rh-v2-root a:hover {
  color: var(--rh-v2-context-accent);
}

.rh-v2-root strong {
  font-weight: var(--rh-v2-weight-semibold);
}

.rh-v2-root code,
.rh-v2-root kbd,
.rh-v2-root pre {
  font-family: var(--rh-v2-font-mono);
}

.rh-v2-root code {
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-sm);
  background: var(--rh-v2-color-surface-2);
  padding: 0.1rem 0.35rem;
  color: var(--rh-v2-color-primary);
  font-size: 0.88em;
}

.rh-v2-root ::selection {
  background: var(--rh-v2-color-primary);
  color: var(--rh-v2-color-primary-foreground);
}

.rh-v2-root :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--rh-v2-color-ring);
  outline-offset: 2px;
  box-shadow: var(--rh-v2-shadow-focus);
}

.rh-v2-root :where([hidden]) {
  display: none;
}

.rh-v2-root :where([aria-disabled="true"], :disabled) {
  cursor: not-allowed;
}

.rh-v2-muted {
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-display {
  font-family: var(--rh-v2-font-display);
}

.rh-v2-mono {
  font-family: var(--rh-v2-font-mono);
}

.rh-v2-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;
}

.rh-v2-skip-link {
  position: fixed;
  top: var(--rh-v2-space-3);
  left: var(--rh-v2-space-3);
  z-index: var(--rh-v2-z-toast);
  transform: translateY(-180%);
  border-radius: var(--rh-v2-radius-md);
  background: var(--rh-v2-color-primary);
  color: var(--rh-v2-color-primary-foreground);
  padding: var(--rh-v2-space-2) var(--rh-v2-space-3);
  font-weight: var(--rh-v2-weight-semibold);
  text-decoration: none;
}

.rh-v2-skip-link:focus {
  transform: translateY(0);
}
