:root {
  color-scheme: light;
  --background: #f7f7f5;
  --surface: #ffffff;
  --surface-muted: #f1f1ed;
  --text: #191919;
  --ink: #141030;
  --muted: #575757;
  --soft-muted: #767676;
  --border: #deded8;
  --accent: #ffb871;
  --accent-strong: #ff9f4a;
  --accent-soft: #fff1df;
  --violet: #6248ff;
  --success: #0f9f6e;
  --warning: #c97a12;
  --danger: #b42318;
  --font-sans: googleSans, "Google Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-media: 24px;
  --shadow-sm: 0 1px 2px rgb(20 16 48 / 0.08);
  --shadow-md: 0 14px 36px rgb(20 16 48 / 0.10);
  --shadow-lg: 0 24px 70px rgb(20 16 48 / 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricprecision;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.page-constrained {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Header */
.site-header {
  background: var(--background);
  padding: 28px 24px 18px;
  position: relative;
  z-index: 50;
}

.header-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 86px;
  min-height: 40px;
}

.logo img {
  width: 86px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 99px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-muted);
  outline: none;
}

.header-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 22px;
  border-radius: 99px;
  background: var(--text);
  box-shadow: var(--shadow-sm);
  color: var(--surface);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-apply-btn:hover,
.header-apply-btn:focus-visible {
  background: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  padding: 56px 24px 28px;
  background: var(--background);
  color: var(--muted);
}

.footer-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: space-between;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  display: inline-flex;
  width: 98px;
  min-height: 40px;
}

.footer-logo img {
  width: 98px;
  height: auto;
}

.footer-tagline {
  margin-top: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 58px;
}

.footer-links > div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-col-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.footer-legal {
  width: min(100%, 1120px);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* Landing */
.landing {
  background: var(--surface);
}

.hero {
  padding: 116px 24px 44px;
  background: var(--background);
}

.hero-inner,
.section-inner {
  width: min(100%, 1150px);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-copy {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 {
  max-width: 1120px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: 76px;
  font-weight: 700;
  line-height: 1.07;
}

.hero h1 span {
  color: var(--accent);
}

.hero .subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
}

.section {
  padding: 82px 24px;
  background: var(--surface);
}

.section-muted {
  background: var(--background);
}

.about-section {
  padding-top: 36px;
}

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

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.about-grid .copy-panel {
  height: 100%;
}

.section-inner.about-grid > .copy-panel + .copy-panel {
  margin-top: 0;
}

.role-grid .copy-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-inner.role-grid > .copy-panel + .copy-panel {
  margin-top: 0;
}

.copy-panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section-inner > .copy-panel + .copy-panel {
  margin-top: 28px;
}

.about-section .copy-panel {
  padding: 34px;
}

.about-section .copy-panel p {
  max-width: none;
  font-size: 19px;
  line-height: 1.62;
}

.about-section .copy-panel ul {
  font-size: 19px;
  line-height: 1.62;
}

.copy-panel h2,
.copy-panel h3,
.form-intro h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.copy-panel h3,
.form-intro h3 {
  font-size: 25px;
}

.copy-panel p,
.form-intro p,
.footer-tagline,
.footer-legal p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
}

.copy-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.copy-panel li {
  color: var(--muted);
}

.benefits-panel {
  display: grid;
  gap: 24px;
}

.benefits-panel p {
  max-width: none;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.benefit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid rgb(255 184 113 / 0.55);
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.apply-section {
  padding-bottom: 92px;
}

.form-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.form-intro {
  max-width: 760px;
}

/* Forms and shared app UI */
.panel {
  width: min(100%, 760px);
  margin: 40px auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.application-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.wide-panel {
  width: min(100%, 1080px);
}

.intro {
  margin-bottom: 28px;
}

form,
.application-form,
.flow {
  display: grid;
  gap: 20px;
}

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

label,
fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

label span,
legend {
  color: var(--text);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfcfca;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input[type="file"] {
  min-height: auto;
  padding: 11px;
  color: var(--muted);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgb(98 72 255 / 0.14);
  outline: none;
}

.help-text {
  color: var(--soft-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 600;
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  accent-color: var(--text);
}

.checkbox .errorlist {
  grid-column: 1 / -1;
}

.errorlist,
.form-errors {
  margin: 0;
  padding: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.disclosure {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.disclosure p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.banner {
  padding: 14px 18px;
  border: 1px solid #f2c166;
  border-radius: var(--radius);
  background: #fff7df;
  color: #6f3f00;
  font-size: 15px;
}

.banner p {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 8px 24px;
  border: 0;
  border-radius: 99px;
  background: var(--text);
  box-shadow: var(--shadow-sm);
  color: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  box-shadow: var(--shadow-md);
  outline: none;
  transform: translateY(-1px);
}

.button.secondary,
.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--surface-muted);
}

.button.large {
  min-height: 52px;
  padding: 10px 30px;
  font-size: 16px;
}

.application-form .button {
  width: 100%;
}

.returning-link {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.returning-link a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.returning-link a:hover,
.returning-link a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Typography and internal UI */
h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  margin: 0 0 14px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
}

p {
  max-width: 66ch;
  margin: 0 0 18px;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 22px;
  margin: 12px 0;
}

li {
  margin-bottom: 6px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 700;
}

pre {
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.record-block {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.choice-button {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.choice-button:hover,
.choice-button:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgb(98 72 255 / 0.10);
  outline: none;
}

.choice-button span {
  color: var(--muted);
}

.compact-choice {
  min-height: 64px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(180px, 240px) auto;
  align-items: end;
  gap: 12px;
}

@media (max-width: 980px) {
  .hero {
    padding: 76px 24px 38px;
  }

  .hero-grid,
  .split-section,
  .role-grid,
  .about-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 52px;
  }

}

@media (max-width: 720px) {
  .site-header {
    padding: 20px 18px 12px;
  }

  .header-inner {
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 56px 18px 32px;
  }

  .hero-grid {
    gap: 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero .subtitle {
    font-size: 18px;
  }

  .section {
    padding: 58px 18px;
  }

  .copy-panel,
  .panel {
    padding: 24px;
  }

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

  h1 {
    font-size: 36px;
  }

  h2,
  .copy-panel h2 {
    font-size: 26px;
  }

  h3,
  .copy-panel h3,
  .form-intro h3 {
    font-size: 22px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 420px) {
  .header-apply-btn {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

}
