:root {
  --navy: #10283f;
  --navy-deep: #081a2b;
  --gold: #c49a4d;
  --gold-light: #ead7ad;
  --burgundy: #7a2435;
  --ink: #18212a;
  --muted: #5d6873;
  --line: #d9dee3;
  --paper: #f5f3ee;
  --white: #ffffff;
  --focus: #f3c96d;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--navy-deep);
  background: var(--white);
  border: 2px solid var(--navy-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 390px;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.program-emblem {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  display: grid;
  min-width: 0;
  color: var(--navy-deep);
  line-height: 1.15;
}

.brand-name strong {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.brand-name span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  color: var(--white);
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  padding: 10px 11px;
  color: #2c3945;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.site-nav .nav-emphasis {
  color: var(--white);
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  border-radius: 4px;
}

.site-nav .nav-emphasis:hover {
  color: var(--white);
  border-bottom-color: var(--burgundy);
}

.menu-button {
  display: none;
  min-width: 48px;
  min-height: 44px;
  color: var(--navy-deep);
  background: var(--white);
  border: 1px solid #aeb8c1;
  border-radius: 4px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  width: 34%;
  height: 1px;
  background: rgba(234, 215, 173, 0.55);
}

.hero::before {
  top: 31%;
}

.hero::after {
  bottom: 31%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 70px;
  align-items: center;
}

.hero-message {
  max-width: 760px;
}

.hero-emblem {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--burgundy);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin-bottom: 24px;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 600;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 600;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-copy {
  margin-bottom: 32px;
  color: #edf2f6;
  font-size: 20px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: var(--navy-deep);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.button-outline {
  color: var(--navy-deep);
  background: var(--white);
  border-color: #9ca9b4;
}

.button:hover {
  filter: brightness(0.95);
}

.hero-detail {
  position: absolute;
  right: 8%;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold-light);
  opacity: 0.7;
}

.detail-star,
.detail-fleur {
  font-size: 24px;
}

.detail-line {
  width: 120px;
  height: 1px;
  background: currentColor;
}

.program-band {
  color: var(--white);
  background: var(--burgundy);
}

.program-band .content-width {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-band a {
  min-height: 82px;
  display: grid;
  align-content: center;
  padding: 14px 22px;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.program-band a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.program-band strong,
.program-band span {
  display: block;
}

.program-band span {
  color: #f4e7e9;
  font-size: 13px;
}

.program-band a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 96px 0;
  scroll-margin-top: 94px;
}

.section-light {
  background: var(--paper);
}

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

.section-navy {
  color: var(--white);
  background: var(--navy-deep);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}

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

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

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.inverse > p:last-child {
  color: #cbd5dd;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.program-list {
  border-top: 1px solid var(--line);
}

.program-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.program-list article > span {
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 20px;
}

.program-list h3,
.program-list p {
  margin-bottom: 0;
}

.program-list p {
  margin-top: 4px;
  color: var(--muted);
}

.program-list a,
.program-list article > strong {
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.process-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.participation-grid article {
  min-height: 190px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.participation-grid h3 {
  color: var(--gold-light);
}

.participation-grid p {
  margin-bottom: 0;
  color: #dce4ea;
}

.section-action {
  margin: 30px 0 0;
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.status-note {
  margin-top: 28px;
  padding: 18px 20px;
  color: var(--navy-deep);
  background: var(--white);
  border-left: 4px solid var(--gold);
}

.application-section {
  border-top: 1px solid var(--line);
}

.application-tool {
  overflow: hidden;
  background: var(--white);
  border: 1px solid #cbd2d8;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(8, 26, 43, 0.08);
}

.application-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #edf0f2;
  border-bottom: 1px solid #cbd2d8;
}

.application-tabs button {
  min-height: 62px;
  padding: 11px 12px;
  color: #34414c;
  background: transparent;
  border: 0;
  border-right: 1px solid #cbd2d8;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.application-tabs button:last-child {
  border-right: 0;
}

.application-tabs button:hover {
  background: #e3e7ea;
}

.application-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--navy);
  box-shadow: inset 0 -4px var(--gold);
}

.application-form {
  padding: 38px;
}

.application-intro {
  max-width: 820px;
  margin-bottom: 30px;
}

.application-intro h3 {
  margin-bottom: 6px;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
}

.application-intro p {
  margin-bottom: 0;
  color: var(--muted);
}

.application-form fieldset {
  margin: 0 0 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.application-form legend {
  padding: 0 10px;
  color: var(--navy-deep);
  font-weight: 750;
}

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

.public-form-grid label,
.application-form .consent-row {
  display: grid;
  gap: 7px;
  color: #2f3b45;
  font-size: 14px;
  font-weight: 700;
}

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

.public-form-grid input,
.public-form-grid select,
.public-form-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aeb8c1;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.public-form-grid input,
.public-form-grid select {
  min-height: 48px;
}

.public-form-grid textarea {
  resize: vertical;
}

.field-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.consent-row {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start;
  margin: 4px 0 26px;
  font-weight: 500 !important;
  line-height: 1.5;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

.application-submit {
  display: flex;
  align-items: center;
  gap: 20px;
}

.application-submit .button {
  color: var(--white);
  background: var(--burgundy);
  border-color: var(--burgundy);
  cursor: pointer;
}

.application-submit .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.application-submit p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.application-result {
  margin-top: 24px;
  padding: 16px 18px;
  color: #15452f;
  background: #edf8f2;
  border-left: 4px solid #2c815d;
}

.application-result.error {
  color: #74202f;
  background: #fff0f2;
  border-left-color: var(--burgundy);
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.section-document {
  color: var(--white);
  background: var(--burgundy);
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: center;
}

.document-layout p {
  color: #f4e7e9;
}

.document-actions {
  display: grid;
  gap: 12px;
}

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  text-decoration: none;
}

.document-link span {
  display: grid;
}

.document-link small {
  margin-top: 2px;
  color: var(--muted);
}

.document-link b {
  flex: 0 0 auto;
  color: var(--burgundy);
  font-size: 14px;
}

.document-link:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(22, 8, 12, 0.2);
}

.site-footer {
  padding: 36px 0;
  color: #d7dee4;
  background: #06131f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner > div {
  display: grid;
}

.footer-inner span,
.footer-inner p {
  color: #9cabb8;
  font-size: 13px;
}

.footer-inner p {
  max-width: 520px;
  margin-bottom: 0;
  text-align: right;
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 12px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(8, 26, 43, 0.12);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .split-layout,
  .document-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 34px;
  }

  .hero-detail {
    right: 32px;
  }

  .application-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .application-tabs button:nth-child(3) {
    border-right: 0;
  }

  .application-tabs button:nth-child(-n+3) {
    border-bottom: 1px solid #cbd2d8;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .content-width,
  .header-inner,
  .hero-inner {
    width: min(100% - 32px, var(--content));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand {
    flex-basis: 270px;
    max-width: 270px;
    gap: 9px;
  }

  .program-emblem {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-name strong {
    font-size: 15px;
  }

  .brand-name span {
    font-size: 11px;
  }

  .site-nav {
    top: 72px;
  }

  .hero {
    min-height: 0;
    padding: 54px 0 58px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-emblem {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 33px;
  }

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

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-detail {
    display: none;
  }

  .program-band .content-width {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-band a,
  .program-band a:first-child {
    min-height: 72px;
    padding: 12px 16px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .program-list article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .program-list article > a,
  .program-list article > strong {
    grid-column: 2;
  }

  .section {
    padding: 70px 0;
    scroll-margin-top: 82px;
  }

  .process-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .process-list li > span {
    width: 38px;
    height: 38px;
  }

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

  .participation-grid article {
    min-height: 0;
  }

  .inline-actions,
  .inline-actions .button,
  .section-action .button {
    width: 100%;
  }

  .application-tabs {
    grid-template-columns: 1fr;
  }

  .application-tabs button,
  .application-tabs button:nth-child(3),
  .application-tabs button:last-child {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid #cbd2d8;
  }

  .application-tabs button:last-child {
    border-bottom: 0;
  }

  .application-form {
    padding: 24px 18px;
  }

  .application-intro h3 {
    font-size: 24px;
  }

  .application-form fieldset {
    padding: 20px 16px;
  }

  .public-form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .public-form-grid label.full-width {
    grid-column: auto;
  }

  .application-submit {
    align-items: stretch;
    flex-direction: column;
  }

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

  .document-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

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