:root {
  --ink: #1e2928;
  --muted: #5f6d6a;
  --paper: #f4f6f2;
  --surface: #ffffff;
  --line: #d8e0db;
  --teal: #0f766e;
  --teal-dark: #173a36;
  --yellow: #f4c95d;
  --coral: #d86149;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; letter-spacing: 0; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(15, 118, 110, .25); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }

/* styles.css carries this rule for the pages that load it; this page loads neither it nor the app's other sheets. */
.language-toggle { margin-left: auto; flex: 0 0 auto; padding: 6px 12px; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font-weight: 700; letter-spacing: 0; white-space: nowrap; cursor: pointer; }
.language-toggle:hover { background: rgba(23, 58, 54, .06); }

.public-header { display: flex; min-height: 76px; align-items: center; gap: 16px; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); }
.public-brand { display: flex; align-items: center; gap: 11px; }
.public-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.public-brand strong { font-family: Georgia, serif; font-size: 17px; }
.public-brand small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--teal-dark); color: var(--teal-dark); font: 700 24px Georgia, serif; }
.back-link { flex: 0 0 auto; color: var(--teal-dark); font-size: 13px; font-weight: 750; white-space: nowrap; }

.application-main { display: grid; width: min(1160px, calc(100% - 40px)); min-height: calc(100vh - 76px); grid-template-columns: minmax(280px, .82fr) minmax(440px, 1.18fr); gap: clamp(38px, 7vw, 96px); align-items: start; margin: 0 auto; padding: clamp(48px, 8vh, 88px) 0 72px; }
.application-intro { position: sticky; top: 124px; }
.eyebrow { margin: 0 0 13px; color: var(--teal); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.application-intro h1 { max-width: 560px; margin: 0 0 19px; font: 700 clamp(38px, 5vw, 62px)/1.03 Georgia, serif; }
.application-intro > p:not(.eyebrow) { max-width: 500px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.process-list { display: grid; margin: 42px 0 0; }
.process-list > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.process-list dt { color: var(--coral); font-size: 11px; font-weight: 850; }
.process-list dd { display: grid; gap: 4px; margin: 0; }
.process-list strong { font-size: 13px; }
.process-list span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.application-tool { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 18px 45px rgba(23,58,54,.07); }
.tool-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border-bottom: 1px solid var(--line); background: #edf1ed; }
.tool-tabs button { min-height: 42px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.tool-tabs button[aria-selected="true"] { color: #fff; background: var(--teal-dark); }
.application-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 38px); }
.form-heading { margin-bottom: 3px; }
.form-heading h2, .receipt h2 { margin: 0 0 6px; font: 700 25px/1.15 Georgia, serif; }
.form-heading p, .receipt > p, .credential-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.application-form label { display: grid; gap: 7px; min-width: 0; }
.application-form label > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 750; }
.application-form label b { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.application-form input, .application-form textarea { width: 100%; min-width: 0; border: 1px solid #cbd6d0; border-radius: 3px; color: var(--ink); background: #fbfcfa; }
.application-form input { height: 44px; padding: 0 12px; }
.application-form textarea { min-height: 112px; padding: 11px 12px; resize: vertical; }
.application-form input:focus, .application-form textarea:focus { border-color: var(--teal); background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.primary-button, .secondary-button { min-height: 43px; padding: 0 18px; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 850; }
.primary-button { border: 1px solid var(--teal-dark); color: #fff; background: var(--teal-dark); }
.secondary-button { border: 1px solid #aec1ba; color: var(--teal-dark); background: #fff; }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .55; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-message { margin: 0; padding: 11px 12px; border-left: 3px solid var(--coral); color: #7f3426; background: #fff1ed; font-size: 12px; line-height: 1.45; }

.receipt { display: grid; gap: 19px; padding: clamp(26px, 4vw, 40px); border-top: 4px solid var(--teal); }
.credential-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 15px; border: 1px solid var(--line); background: #f7f9f6; }
.credential-row > span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.credential-row code { min-width: 0; overflow-wrap: anywhere; color: var(--teal-dark); font-size: 12px; }
.credential-row button { align-self: center; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 11px; font-weight: 850; }
.credential-note { padding-left: 12px; border-left: 3px solid var(--yellow); }
.status-result { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.status-result > div { display: grid; gap: 7px; min-width: 0; padding: 22px; border-right: 1px solid var(--line); }
.status-result > div:last-child { border-right: 0; }
.status-result span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-result strong { color: var(--teal); font-size: 16px; text-transform: capitalize; }
.status-result time { overflow-wrap: anywhere; font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: min(360px, calc(100% - 40px)); padding: 12px 16px; border-radius: 3px; color: #fff; background: var(--teal-dark); box-shadow: 0 10px 30px rgba(23,58,54,.22); font-size: 12px; }

@media (max-width: 820px) {
  .application-main { grid-template-columns: 1fr; gap: 34px; padding-top: 42px; }
  .application-intro { position: static; }
  .application-intro h1 { font-size: 42px; }
  .process-list { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
  .process-list > div { display: block; }
  .process-list dt { margin-bottom: 9px; }
}

@media (max-width: 580px) {
  .public-header { min-height: 66px; gap: 10px; padding: 0 16px; }
  .public-brand strong { font-size: 15px; }
  .public-brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 21px; }
  .back-link { font-size: 11px; }
  .application-main { width: min(100% - 28px, 560px); padding: 32px 0 44px; }
  .application-intro h1 { font-size: 36px; }
  .application-intro > p:not(.eyebrow) { font-size: 14px; }
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .field-row { grid-template-columns: 1fr; }
  .application-form { padding: 22px 18px; }
  .button-row { display: grid; }
  .status-result { grid-template-columns: 1fr; }
  .status-result > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .status-result > div:last-child { border-bottom: 0; }
}
