/* Generated from packages/ui-web/src/base.css by scripts/export-django-static.mjs. Edit the source. */
/* @aents/ui-web · base
 *
 * Reset + document defaults for every Aents web project. Contains no literal
 * design value: everything reads the CSS variables published by tokens.ts.
 * Import once, before any app stylesheet. */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: 1.5;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Brand Book §3.5: one responsive type scale for every web product. */
@media (max-width: 767px) {
  :root {
    --type-responsive-factor: 0.9 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --type-responsive-factor: 1 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  :root {
    --type-responsive-factor: 1.05 !important;
  }
}

@media (min-width: 1440px) {
  :root {
    --type-responsive-factor: 1.1 !important;
  }
}

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

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

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

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

/* Accessible focus ring shared by every interactive element. Only the outline
   is set: focus must never change the geometry of the focused element. The
   solid primary holds 3:1 against both the white page and the navy bands; a
   translucent ring fell under 2:1 on either. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--primary) 30%, transparent);
}

/* Brand Book §10: motion must never be mandatory. Any consumer animation that
   respects this rule inherits the opt-out for free. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

.aents-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link: the first focusable element of every Aents surface. It stays out
   of sight while unfocused and slides in as a high-contrast pill pinned to the
   top-left corner, above any sticky header (--z-skip is a stacking constant,
   not a design decision). The primary/on-primary pair keeps it legible on both
   dark and light surfaces. */
.aents-skip {
  --z-skip: 1000;
  position: fixed;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid color-mix(in srgb, var(--on-primary) 35%, transparent);
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--type-body-size);
  font-weight: var(--weight-semibold);
  line-height: var(--type-body-line);
  text-decoration: none;
  box-shadow: var(--shadow-3);
  /* Kept in the accessibility tree and focusable: moved away, never hidden. */
  transform: translateY(calc(-100% - var(--spacing-lg) - var(--touch-target)));
  transition: transform var(--duration-fast) var(--easing-decelerate);
}

.aents-skip:focus,
.aents-skip:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--on-primary);
  outline-offset: 2px;
}
