/* Foundations retained because Tailwind Preflight is intentionally disabled. */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--color-ui-canvas, #f2f2f7);
  color: var(--color-ui-ink, #1c1c1e);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}

body {
  background: var(--color-ui-canvas, #f2f2f7);
  line-height: 1.5;
}

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

input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

textarea { resize: vertical; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
svg { display: block; }

h1,
h2,
h3,
p,
strong,
dd {
  overflow-wrap: anywhere;
}

/* Heading defaults also support the public storefront without a reset. */
h1,
h2 {
  margin: 0;
  line-height: 1.2;
}
h1 { letter-spacing: -.035em; }
h2 { letter-spacing: -.02em; }
:focus-visible {
  outline: 2px solid var(--color-ui-accent, #0066d6);
  outline-offset: 2px;
}

/* Keyboard navigation must remain available before either layout's content. */
.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  border-radius: 0 0 1rem 1rem;
  padding: .75rem 1rem;
  background: white;
  color: var(--color-ui-accent, #0066d6);
  box-shadow: var(--shadow-ui-sheet);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Blazor/reconnect.js own these states. Presentation lives on the Razor dialog. */
#components-reconnect-modal:not([open]),
#components-reconnect-modal .reconnect-state { display: none; }
#components-reconnect-modal.components-reconnect-show .reconnect-state-show,
#components-reconnect-modal.components-reconnect-failed .reconnect-state-failed,
#components-reconnect-modal.components-reconnect-rejected .reconnect-state-rejected { display: grid; }
#components-reconnect-modal[data-manual-retry] .reconnect-attempts { display: none; }

/* Respect the user's preference across native controls and public/internal UI. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
