:root {
  --launch-panel: #fff;
  --launch-canvas: #f3f3f1;
  --launch-border: #dedfdf;
  --launch-blue-soft: #eaf7fc;
  --launch-radius: 28px;
}

:focus-visible {
  outline: 3px solid #007fa3;
  outline-offset: 3px;
}

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

.required-marker { color: #a3272e; }
.form-status { min-height: 1.5em; margin-top: 14px; font-weight: 700; }

body:not([data-page="homepage"]) main {
  background: var(--launch-canvas);
  padding-block: 20px 56px;
}

body:not([data-page="homepage"]) main > section,
body:not([data-page="homepage"]) .has-toc > section {
  background: transparent !important;
  padding-block: 14px !important;
}

body:not([data-page="homepage"]) main > section > .container,
body:not([data-page="homepage"]) .has-toc > section > .container {
  background: var(--launch-panel);
  border: 1px solid var(--launch-border);
  border-radius: var(--launch-radius);
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

body:not([data-page="homepage"]) .toc-card,
body:not([data-page="homepage"]) .form-shell,
body:not([data-page="homepage"]) .callout-soft,
body:not([data-page="homepage"]) .data-card,
body:not([data-page="homepage"]) .resource-link {
  border-radius: 16px;
}

.before-oweek-inner {
  border-radius: 18px;
}

.fee-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.fee-stage {
  position: relative;
  min-height: 210px;
  padding: 30px 24px 24px;
  border: 1px solid var(--launch-border);
  border-radius: 18px;
  background: #fff;
}

.fee-stage-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin: -52px 0 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--launch-blue-soft);
  color: var(--uoft-navy);
  font-size: 14px;
  font-weight: 800;
}

.fee-stage h3 {
  margin-bottom: 10px;
  color: var(--uoft-navy);
  font-family: "Roboto Slab", serif;
  font-size: 22px;
  line-height: 1.2;
}

.fee-stage p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.fee-stage-note,
.photo-removal-note {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.fee-stage-note a,
.photo-removal-note a {
  color: var(--uoft-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .fee-stages { grid-template-columns: 1fr; gap: 30px; }
  .fee-stage { min-height: 0; }
}

@media (max-width: 640px) {
  body:not([data-page="homepage"]) main { padding-top: 8px; }
  body:not([data-page="homepage"]) main > section,
  body:not([data-page="homepage"]) .has-toc > section { padding-inline: 10px !important; }
  body:not([data-page="homepage"]) main > section > .container,
  body:not([data-page="homepage"]) .has-toc > section > .container { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
