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

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

body {
  background:
    radial-gradient(circle at top left, rgba(30, 58, 47, 0.04), transparent 30%),
    linear-gradient(180deg, #fcfcfd 0%, var(--st-app-bg) 100%);
  color: var(--st-text-primary);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Aptos Display", "Segoe UI Variable Display", "Aptos", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(1.75rem, 2vw, 2.4rem);
  line-height: 1.08;
}

h1[tabindex="-1"]:focus {
  outline: none;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

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

main {
  min-width: 0;
}

::selection {
  background: rgba(30, 58, 47, 0.16);
}

#blazor-error-ui {
  background: #fff4df;
  border-top: 1px solid #f1cf8d;
  bottom: 0;
  box-shadow: 0 -10px 24px rgba(17, 24, 39, 0.08);
  color: #6b3f00;
  display: none;
  left: 0;
  padding: var(--st-space-sm) var(--st-space-md);
  position: fixed;
  right: 0;
  z-index: 1200;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  float: right;
}

.st-page {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-lg);
  width: 100%;
}

.st-page-header {
  align-items: flex-start;
  display: flex;
  gap: var(--st-space-lg);
  justify-content: space-between;
}

.st-page-copy {
  color: var(--st-text-secondary);
  line-height: 1.6;
  margin-top: var(--st-space-sm);
  max-width: 72ch;
}

.st-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-sm);
}

.st-eyebrow {
  color: var(--st-forest-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: var(--st-space-xs);
  text-transform: uppercase;
}

.st-home-grid {
  display: grid;
  gap: var(--st-space-lg);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-detail-list,
.st-flow-list {
  color: var(--st-text-secondary);
  display: grid;
  gap: var(--st-space-sm);
  margin: 0;
  padding-left: 1.2rem;
}

.st-grid-stack {
  display: grid;
  gap: var(--st-space-md);
}

.st-validation-summary {
  color: var(--status-error-text);
  margin: 0 0 var(--st-space-md);
  padding-left: 1.1rem;
}

.st-sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 1180px) {
  .st-home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .st-page-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }
}
