@import 'index.css';

/* ── RESET ──────────────────────────────────────────────────────────────────
   Minimal — MudBlazor already includes normalize.
*/

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--color-page);
  color: var(--color-text-primary);
}

/* Headings carry the brand's rounder voice; body text stays on Inter. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── BLAZOR INFRASTRUCTURE ─────────────────────────────────────────────── */

#blazor-error-ui {
  color-scheme: light only;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
  background: var(--color-error);
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}
