:root {
  --ink: #17201c;
  --muted: #5c6761;
  --line: #7f8d83;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --green: #2f6f4e;
  --green-dark: #1f5038;
  --gold: #d69c34;
  --clay: #b85d3c;
  --blue: #386c9f;
  --focus: #386c9f;
  --shadow: 0 24px 80px rgba(21, 33, 28, 0.12);
}

body.dev-inspect * {
  outline: 1px dashed rgba(184, 93, 60, 0.38);
  outline-offset: -1px;
}

body.dev-inspect #dev-inspect-layer,
body.dev-inspect #dev-inspect-layer *,
body.dev-inspect #dev-inspect-toast,
body.dev-inspect #design-inspector-panel,
body.dev-inspect #design-inspector-panel * {
  outline: none;
}

body.dev-inspect [id] {
  position: relative;
}

body.dev-inspect [data-dev-inspect-hover="true"] {
  outline: 2px solid rgba(47, 111, 78, 0.9);
  outline-offset: -2px;
}

body.dev-inspect #dev-inspect-toast {
  position: fixed;
  right: 374px;
  bottom: 16px;
  z-index: 2147483647;
  border-radius: 8px;
  background: rgba(23, 32, 28, 0.94);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 12px 34px rgba(23, 32, 28, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

body.dev-inspect #dev-inspect-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.dev-inspect #design-inspector-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2147483645;
  width: 360px;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(120px, 0.8fr) minmax(180px, 1.2fr);
  min-height: 0;
  border-left: 1px solid rgba(23, 32, 28, 0.16);
  background: rgba(251, 252, 248, 0.96);
  color: var(--ink);
  box-shadow: -18px 0 48px rgba(23, 32, 28, 0.12);
  backdrop-filter: blur(18px);
}

body.dev-inspect:not(.dev-inspect-panel-collapsed) {
  padding-right: 360px;
}

body.dev-inspect.dev-inspect-panel-collapsed {
  padding-right: 0;
}

body.dev-inspect.dev-inspect-panel-collapsed #design-inspector-panel {
  transform: translateX(360px);
}

body.dev-inspect #design-inspector-panel,
body.dev-inspect {
  transition: padding-right 180ms ease, transform 180ms ease;
}

#design-inspector-reopen {
  position: absolute;
  top: 76px;
  left: -44px;
  width: 44px;
  min-height: 112px;
  border: 1px solid rgba(23, 32, 28, 0.16);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--green);
  color: white;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
  box-shadow: -10px 10px 28px rgba(23, 32, 28, 0.16);
  opacity: 0;
  pointer-events: none;
}

body.dev-inspect.dev-inspect-panel-collapsed #design-inspector-reopen {
  opacity: 1;
  pointer-events: auto;
}

.design-inspector-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.design-inspector-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-inspector-header strong,
.design-inspector-editor strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
}

.design-inspector-header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

#design-inspector-toggle,
#design-inspector-disable,
#design-inspector-save,
#design-style-save,
#design-inspector-preview,
#design-inspector-reset-preview,
#design-style-preview,
#design-style-reset-preview,
#design-style-reset,
#design-inspector-send {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.design-inspector-tools {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

#design-inspector-filter {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

.design-inspector-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.design-inspector-row {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 8px;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.design-inspector-row:hover,
.design-inspector-row.is-selected {
  border-color: rgba(47, 111, 78, 0.28);
  background: #eef5ef;
}

.design-inspector-row-ref {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-inspector-row-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.design-inspector-copy {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: copy;
}

.design-inspector-copy:hover,
.design-inspector-copy:focus-visible {
  border-color: rgba(47, 111, 78, 0.28);
  background: white;
  color: var(--green-dark);
}

.assessment-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.assessment-panel,
.assessment-state-card {
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.assessment-panel {
  padding: 1.5rem;
}

.assessment-state-card {
  padding: 2rem;
}

.assessment-header,
.assessment-grid,
.assessment-question-menu,
.assessment-tools,
.assessment-header-meta,
.assessment-option-list,
.assessment-setup-actions {
  display: flex;
  gap: 1rem;
}

.assessment-header,
.assessment-grid {
  align-items: flex-start;
}

.assessment-grid {
  margin-top: 1.5rem;
}

.assessment-header,
.assessment-question-menu,
.assessment-setup-actions {
  justify-content: space-between;
}

.assessment-header-meta,
.assessment-tools,
.assessment-option-list {
  flex-wrap: wrap;
}

.assessment-header-meta {
  align-items: center;
  justify-content: flex-end;
}

.assessment-sidebar {
  width: min(21rem, 100%);
  display: grid;
  gap: 1rem;
}

.assessment-question {
  flex: 1;
  display: grid;
  gap: 1rem;
}

.assessment-choice-list,
.assessment-question-copy,
.assessment-question-actions,
.assessment-note-field {
  display: grid;
  gap: 0.75rem;
}

.assessment-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 28, 0.14);
  border-radius: 16px;
  background: #f7f8f5;
}

.assessment-choice-label {
  cursor: pointer;
}

.assessment-choice.is-eliminated {
  border-style: dashed;
  color: var(--muted);
}

.assessment-button,
.assessment-tool-button,
.assessment-text-button,
.assessment-toggle,
.assessment-textarea,
.assessment-choice-input {
  font: inherit;
}

.assessment-button,
.assessment-tool-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-weight: 800;
}

.assessment-button-secondary,
.assessment-tool-button {
  background: #eef4ef;
  border-color: rgba(23, 32, 28, 0.12);
  color: var(--ink);
}

.assessment-text-button {
  min-height: 44px;
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0;
  font-weight: 800;
  text-decoration: underline;
}

.assessment-textarea {
  min-height: 7rem;
  border: 1px solid rgba(23, 32, 28, 0.16);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.assessment-sync-alert,
.assessment-live-pill,
.assessment-sync-note {
  margin: 0;
}

.assessment-sync-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff7e7;
  color: var(--ink);
}

.assessment-read-only {
  background: #eef4ef;
}

.assessment-shell-read-only .assessment-question {
  opacity: 0.92;
}

.assessment-question-empty {
  width: 100%;
}

.assessment-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assessment-title,
.assessment-state-title,
.assessment-question-title {
  margin: 0;
}

.assessment-state-copy,
.assessment-question-stem,
.assessment-passage {
  margin: 0;
  color: var(--muted);
}

.assessment-live-pill,
.assessment-timer {
  border-radius: 999px;
  background: #eef4ef;
  padding: 0.45rem 0.75rem;
  font-weight: 800;
}

.assessment-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assessment-note-field span {
  font-weight: 800;
}

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

.assessment-button:focus-visible,
.assessment-tool-button:focus-visible,
.assessment-text-button:focus-visible,
.assessment-toggle input:focus-visible,
.assessment-choice-input:focus-visible,
.assessment-textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .assessment-header,
  .assessment-grid,
  .assessment-question-menu {
    flex-direction: column;
  }

  .assessment-sidebar {
    width: 100%;
  }
}

.design-inspector-row-meta,
.design-inspector-row-text {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-inspector-editor {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: white;
}

.design-inspector-workflow {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(47, 111, 78, 0.22);
  border-radius: 8px;
  background: #eef5ef;
  padding: 9px;
}

.design-inspector-workflow strong {
  color: var(--green-dark);
  font-size: 0.76rem;
}

.design-inspector-workflow p,
.design-inspector-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.design-inspector-workflow b {
  color: var(--ink);
}

#design-inspector-selected-ref,
#design-inspector-save-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.design-inspector-editor label {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.design-inspector-editor label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

#design-inspector-text {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 9px;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  resize: vertical;
}

#design-inspector-comment {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 9px;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  resize: vertical;
}

#design-inspector-text:disabled,
#design-inspector-comment:disabled,
#design-inspector-save:disabled,
#design-style-save:disabled,
#design-inspector-preview:disabled,
#design-inspector-reset-preview:disabled,
#design-style-preview:disabled,
#design-style-reset-preview:disabled,
#design-inspector-send:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.design-inspector-style-controls {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.design-inspector-style-controls > strong {
  margin-top: 2px;
}

.design-inspector-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.design-inspector-field-grid label {
  display: grid;
  gap: 4px;
}

.design-inspector-field-grid input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  padding: 0 8px;
  font: inherit;
  font-size: 0.78rem;
}

.design-inspector-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.design-inspector-content-actions {
  grid-template-columns: repeat(3, 1fr);
}

.design-inspector-suggestions {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.design-inspector-suggestions-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.design-inspector-suggestions-heading strong {
  font-size: 0.8rem;
}

.design-inspector-suggestion-list {
  display: grid;
  gap: 5px;
  max-height: 100px;
  overflow: auto;
}

#design-inspector-suggestion-list {
  display: grid;
  gap: 5px;
  max-height: 100px;
  overflow: auto;
}

#design-inspector-send:disabled,
#design-style-reset:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.design-inspector-suggestion-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 6px;
  background: #f6f8f3;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.design-inspector-suggestion-row.status-submitted {
  opacity: 0.62;
}

.design-inspector-suggestion-detail {
  overflow-wrap: anywhere;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.section {
  padding: 88px 24px;
}

.section-tight {
  padding: 56px 24px;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(223, 230, 225, 0.86);
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 112px;
  height: 64px;
  object-fit: contain;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 30px rgba(47, 111, 78, 0.22);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.button-quiet {
  color: var(--green-dark);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 80px 24px 48px;
  display: grid;
  align-items: center;
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.76fr);
  gap: 54px;
  align-items: center;
}

.hero h1,
.student-hero h1,
.enroll-title {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.75rem, 5.4vw, 5.45rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy,
.student-hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-proof {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 650px;
}

.proof-item {
  border-left: 3px solid var(--gold);
  padding-left: 13px;
}

.proof-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
}

.proof-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-frame {
  min-height: 250px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(47, 111, 78, 0.92), rgba(56, 108, 159, 0.9)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.score-card {
  width: min(100%, 310px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 18px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.score-label {
  color: var(--muted);
  font-weight: 750;
}

.score-number {
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 950;
}

.panel-body {
  padding: 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.04;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.mentor-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 38px rgba(23, 32, 28, 0.06);
}

.card {
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ecf5ee;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.card h3,
.mentor-card h3,
.form-card h2 {
  margin: 0;
  font-size: 1.22rem;
}

.card p,
.mentor-card p,
.form-card p {
  color: var(--muted);
  line-height: 1.62;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4dc;
  color: #7a5112;
  font-size: 0.76rem;
  font-weight: 900;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.timeline-number {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.highlight-band {
  background: #eef5ef;
}

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mentor-card {
  overflow: hidden;
}

.mentor-photo {
  height: 164px;
  background:
    linear-gradient(135deg, rgba(47, 111, 78, 0.64), rgba(184, 93, 60, 0.52)),
    url("https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
}

.mentor-card:nth-child(2) .mentor-photo {
  background-image:
    linear-gradient(135deg, rgba(56, 108, 159, 0.6), rgba(47, 111, 78, 0.5)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=900&q=80");
}

.mentor-card:nth-child(3) .mentor-photo {
  background-image:
    linear-gradient(135deg, rgba(184, 93, 60, 0.56), rgba(214, 156, 52, 0.42)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=900&q=80");
}

.mentor-content {
  padding: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-preview,
.enroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 108px;
  padding-top: 12px;
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.cta-band {
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.74);
  margin: 8px 0 0;
}

.student-hero {
  padding: 92px 24px 70px;
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.96), rgba(251, 252, 248, 0.72)),
    url("https://images.unsplash.com/photo-1434030216411-0b793f4b4173?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.support-list {
  display: grid;
  gap: 12px;
}

.support-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.form-card {
  padding: 24px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 12px;
  font-weight: 850;
  cursor: pointer;
}

.choice:hover,
.choice:focus {
  border-color: var(--green);
  outline: none;
}

.choice-card input:focus-visible + label,
.faq-item summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.footer-note {
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-band,
  .form-preview,
  .enroll-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .card-grid,
  .mentor-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section,
  .section-tight,
  .hero,
  .student-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-inner {
    width: calc(100% - 24px);
  }

  .brand-lockup span:last-child {
    display: none;
  }

  .hero h1,
  .student-hero h1,
  .enroll-title {
    font-size: 2.55rem;
  }

  .button {
    width: 100%;
  }
}



:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[id] {
  scroll-margin-top: 104px;
}

body {
  background: #f7f8f4;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  background: rgba(247, 248, 244, 0.9);
}

.nav-inner {
  min-height: 72px;
  height: auto;
  padding-block: 12px;
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: #4d5852;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(47, 111, 78, 0.08);
  color: var(--green-dark);
}

.nav-links a:focus-visible,
.audience-toggle button:focus-visible,
.choice-card input:focus-visible + label,
.attempt-remove:focus-visible,
.add-attempt:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.header-apply-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.application-deadline {
  margin: 0;
  color: #b42318;
  font-weight: 800;
  letter-spacing: 0;
}

.header-deadline {
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
}

#header-apply-cta {
  min-height: 44px;
}

.variant-section {
  padding: 76px 24px;
}

.variant-section-tight {
  padding: 48px 24px;
}

.hero-apple {
  min-height: calc(100vh - 72px);
  padding: 70px 24px 42px;
  display: grid;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(247, 248, 244, 0.72), rgba(247, 248, 244, 0.72)),
    url('/hero/mentorship-studio-v1.png');
  background-position: center;
  background-size: cover;
}

.hero-wrap {
  width: 100%;
  max-width: 1180px;
  box-sizing: border-box;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  text-align: center;
}

.hero-copy-block {
  width: min(100%, 760px);
  min-width: 0;
  max-width: 760px;
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-deadline {
  margin-top: 26px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero-season {
  margin: 0;
  color: #4d5852;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.hero-timing {
  display: grid;
  gap: 4px;
}

.button {
  min-height: 48px;
}

.button-primary {
  background: #245f44;
}

.button-primary:hover {
  background: #183f2e;
}

.button-secondary {
  color: #17201c;
}

.audience-section {
  background: #fbfcf8;
}

.audience-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.audience-toggle button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: transparent;
  color: #4d5852;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.audience-toggle button[aria-selected='true'] {
  background: #245f44;
  color: #ffffff;
}

.respondent-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

#respondent-role-field {
  display: block;
}

.respondent-control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.respondent-prefix {
  flex: 0 0 auto;
  font-weight: 800;
  white-space: nowrap;
}

.respondent-option {
  position: relative;
}

.respondent-option input,
.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.respondent-option span {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #4d5852;
  font-weight: 800;
  cursor: pointer;
}

.respondent-option input:checked + span {
  background: #245f44;
  color: #ffffff;
}

.respondent-option input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.audience-panels {
  max-width: 860px;
  margin: 28px auto 0;
}

.audience-card {
  min-height: 240px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(23, 32, 28, 0.08);
}

.audience-card[hidden],
.history-panel[hidden],
.form-status[hidden],
.conditional-field[hidden] {
  display: none;
}

.cohort-note {
  border-left: 3px solid #d69c34;
  padding-left: 18px;
}

.section-heading.compact {
  max-width: 690px;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: start;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #17201c;
  color: white;
  font-weight: 900;
}

.test-choice-grid,
.prep-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  position: relative;
}

.choice-card label {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #ffffff;
  color: #4d5852;
  font-weight: 800;
  cursor: pointer;
}

.choice-card input:checked + label {
  border-color: #245f44;
  background: #eef5ef;
  color: #183f2e;
  box-shadow: inset 0 0 0 1px #245f44;
}

.history-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.history-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcf8;
}

.history-status {
  max-width: 360px;
}

.attempt-list {
  display: grid;
  gap: 12px;
}

.attempt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.add-attempt,
.attempt-remove {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-dark);
  padding: 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.attempt-remove {
  color: #8c3d2b;
}

.field-error {
  min-height: 1.1em;
  margin: 0;
  color: #a33b2b;
  font-size: 0.78rem;
  font-weight: 750;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  color: #5f6c64;
  font-size: 0.86rem;
  line-height: 1.55;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green);
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff4dc;
  color: #7a5112;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.program-highlights-card {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.placeholder-section {
  background: #f1f4ee;
}

.faq-list {
  max-width: 860px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 1.5rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  max-width: 720px;
  padding: 0 44px 22px 0;
  color: #5f6c64;
  line-height: 1.75;
}

.apply-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.footer-note {
  background: #f7f8f4;
}

/* Minimal replacements for the utility classes used by the legacy markup. */
.grid { display: grid; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.place-items-center { place-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.m-0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-8 { margin-bottom: 2rem; }
.my-6 { margin-block: 1.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.pl-5 { padding-left: 1.25rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-green-800 { color: #166534; }
.text-green-950 { color: #052e16; }
.text-amber-300 { color: #fcd34d; }
.text-amber-950 { color: #451a03; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-6xl { font-size: 3.75rem; }
.font-semibold { font-weight: 600; }
.font-black { font-weight: 900; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }
.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-amber-50 { background-color: #fffbeb; }
.border { border-width: 1px; border-style: solid; }
.border-slate-300 { border: 1px solid #cbd5e1; }
.border-slate-500 { border: 1px solid #64748b; }
.border-green-700 { border: 1px solid #15803d; }
.border-amber-700 { border: 1px solid #b45309; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.min-h-48 { min-height: 12rem; }

@media (min-width: 640px) {
  .sm\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\\:flex-row { flex-direction: row; }
  .sm\\:items-end { align-items: flex-end; }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (max-width: 980px) {
  .method-grid { grid-template-columns: 1fr; }
  .program-highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-apple { min-height: calc(100svh - 72px); padding: 48px 20px; }
  .hero-title { width: 100%; font-size: clamp(2.25rem, 9vw, 3.75rem); }
}

@media (max-width: 900px) {
  .nav-links { display: flex; order: 3; width: 100%; justify-content: flex-start; }
  .nav-inner { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .nav-inner { position: relative; gap: 8px; }
  .nav-links { gap: 2px; padding-bottom: 2px; }
  .nav-links a { padding-inline: 8px; font-size: 0.78rem; }
  .header-apply-group { position: fixed; top: 12px; right: 12px; z-index: 60; }
  .header-deadline { display: none; }
  .header-apply-group #header-apply-cta { position: fixed; width: auto !important; top: 12px; right: 12px; z-index: 100; display: inline-flex !important; padding-inline: 16px; }
  .header-deadline [data-deadline-suffix] { display: none; }
  .hero-apple, .variant-section, .variant-section-tight { padding-left: 18px; padding-right: 18px; }
  .hero-title { font-size: 1.4rem; line-height: 1.05; }
  .hero-actions .button { width: auto; }
  .program-highlights-grid { grid-template-columns: 1fr; }
  .program-highlights-card, .apply-card { box-shadow: none; }
  .respondent-control { flex-wrap: wrap; }
  .test-choice-grid, .prep-goal-grid { grid-template-columns: 1fr; }
}

/* Protected portal surface. Scoped to avoid changing public landing selectors. */
.portal-shell {
  min-height: 100vh;
  background: var(--paper);
}

.portal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.94);
}

.portal-header-inner,
.portal-content {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
}

.portal-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.portal-wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 0.9rem;
}

.portal-account {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.portal-role-label,
.portal-placeholder-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(47, 111, 78, 0.1);
  color: var(--green-dark);
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.portal-account-email {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-account-email span {
  color: var(--muted);
  font-weight: 650;
}

.portal-signout-button {
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  padding: 0 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.portal-signout-button:hover:not(:disabled) {
  border-color: var(--green);
  background: rgba(47, 111, 78, 0.08);
}

.portal-signout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.portal-wordmark:focus-visible,
.portal-signout-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.portal-main {
  padding: 88px 0;
}

.portal-content {
  max-width: 760px;
}

.portal-eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-content h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.portal-intro {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.portal-status {
  margin: 24px 0 0;
  border: 1px solid rgba(184, 93, 60, 0.42);
  border-radius: 8px;
  background: #fff4f0;
  color: #8c3d2b;
  padding: 12px 14px;
  line-height: 1.5;
}

.portal-placeholder-card {
  min-height: 228px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 38px rgba(23, 32, 28, 0.06);
  padding: 28px;
}

.portal-placeholder-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff4dc;
  color: #7a5112;
  font-size: 1.35rem;
  font-weight: 650;
}

.portal-placeholder-label {
  margin: 0 0 14px;
}

.portal-placeholder-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.portal-placeholder-card p:not(.portal-placeholder-label) {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.portal-coming-soon {
  margin: 24px 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 720px) {
  .portal-header-inner,
  .portal-content {
    width: min(100% - 36px, 960px);
  }

  .portal-header-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .portal-account {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .portal-main {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .portal-header-inner,
  .portal-content {
    width: min(100% - 32px, 960px);
  }

  .portal-account-email {
    flex-basis: 100%;
  }

  .portal-placeholder-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
    padding: 22px;
  }

  .portal-signout-button {
    width: auto;
  }
}

.portal-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 72px 20px;
  background: var(--paper);
}

.portal-auth-card {
  width: min(100%, 520px);
  margin: 0;
}

.portal-auth-card h1 {
  max-width: 420px;
  margin-top: 8px;
}

.portal-auth-supporting-copy,
.portal-auth-help,
.portal-auth-footer-copy {
  color: var(--muted);
  line-height: 1.6;
}

.portal-auth-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.portal-auth-wide-button {
  width: 100%;
  justify-content: center;
}

.portal-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-auth-divider::before,
.portal-auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}

.portal-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.portal-auth-text-button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 4px 0;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.portal-auth-text-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.portal-auth-text-button:focus-visible,
.portal-auth-card a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.portal-auth-error {
  border: 1px solid rgba(184, 93, 60, 0.42);
  background: #fff4f0;
  color: #8c3d2b;
}

.portal-auth-success,
.portal-auth-pending-state {
  border: 1px solid rgba(47, 111, 78, 0.28);
  background: #eef5ef;
  color: var(--green-dark);
}

.portal-auth-pending {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-auth-state {
  margin-top: 22px;
  line-height: 1.6;
}

.portal-auth-state h2 {
  margin: 0;
}

.portal-auth-footer-copy {
  margin: 24px 0 0;
  text-align: center;
}

.portal-auth-footer-copy a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .portal-auth-page {
    padding: 40px 16px;
  }

  .portal-auth-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
