/* Static base styles — a plain stylesheet so they hold even when Vite's SFC style injection fails
 * (ngrok + iPhone). Design tokens: /fleet-core/tokens.css (fleet-core layer). Only the reset, the
 * global focus ring and two utilities live here; everything else is a scoped component style.
 * 2026-10: the former global overrides on .card/.summary/.events… were removed (they beat scoped rules
 * and silently restyled components), with the dead AI News CSS. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#__nuxt,
.app {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font-family: inherit;
  letter-spacing: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
}


/* Keyboard users always see where they are: a ring for anything that has no focus style of its own. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fail-mark {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.42rem;
  background-color: var(--danger-bg);
  color: var(--danger);
  flex-shrink: 0;
}

.fail-mark :is(svg, span) {
  width: 0.85rem;
  height: 0.85rem;
  font-size: 0.85rem;
  color: var(--danger);
  background-color: var(--danger);
}

.fail-mark--badge {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.28rem;
}

.fail-mark--badge :is(svg, span) {
  width: 0.62rem;
  height: 0.62rem;
  font-size: 0.62rem;
}

/* Visually hidden, still read by screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
