:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #153748;
  background: #f7fbfd;
  font-synthesis: none;
  --navy: #133c50;
  --navy-deep: #0b2d40;
  --teal: #007987;
  --teal-dark: #005769;
  --gold: #f6d473;
  --muted: #486471;
  --border: #d7e8ed;
  --paper: #f5fbfb;
  --white: #fff;
  --radius: 20px;
  --heading-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space: clamp(3.1rem, 6vw, 5.7rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #168974; outline-offset: 4px; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); margin: 0; }
h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: 6rem; }

.shell { width: min(100% - 3rem, 73rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  border-radius: 8px;
  color: var(--navy-deep);
  background: var(--gold);
  font-weight: 750;
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 10;
  color: var(--navy-deep);
  background: var(--white);
  border-bottom: 1px solid #dfefef;
}
.header-inner {
  min-height: 4.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  --brand-image-width: clamp(7.4rem, 13vw, 10.4rem);
  width: var(--brand-image-width);
  height: auto;
  margin-inline: calc(var(--brand-image-width) * -.14);
}
.brand-label {
  color: #456673;
  font-size: .88rem;
  font-weight: 650;
  padding-inline-start: .72rem;
  border-inline-start: 1px solid var(--border);
}

.site-icon-defs {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.partner-link-icon {
  display: block;
  flex: 0 0 auto;
  width: 1.36rem;
  height: 1.36rem;
}
.partner-icon-accent { stroke: var(--partner-icon-accent, currentColor); }
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.2vw, 1.95rem); }
.site-nav a {
  color: #345669;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--teal); text-decoration: underline; }
.header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 1rem; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .66rem 1rem;
  font-weight: 750;
  font-size: .92rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button-primary { background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { border-color: #a7cfd0; color: var(--teal-dark); background: #fff; }
.button-secondary:hover { background: #eaf8f5; border-color: #76ada9; }
.button svg { flex: 0 0 auto; width: 1rem; height: 1rem; }
.header-actions .button { min-height: 2.6rem; padding-block: .58rem; padding-inline: 1.1rem; }

.hero {
  background:
    radial-gradient(ellipse at 74% 43%, #cff0f5 0, transparent 47%),
    linear-gradient(180deg, #eef9fc, #f7fbfd 90%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: clamp(1.4rem, 4vw, 3.3rem);
  padding-block: clamp(1.4rem, 2.8vw, 2.55rem);
}
.hero-copy {
  min-width: 0;
  padding-block: .9rem;
}
.hero h1 {
  margin-block: 0 1.12rem;
  color: var(--navy-deep);
  font-size: clamp(2.65rem, 4.2vw, 4.1rem);
  font-weight: 850;
  letter-spacing: -.052em;
  line-height: 1.12;
}
.hero h1 span { display: block; color: var(--teal); }
.hero h1::after {
  display: block;
  width: 3rem;
  height: .22rem;
  margin-top: 1.05rem;
  border-radius: 10px;
  background: #e2a94c;
  content: "";
}
.hero-copy p {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.62;
}
.hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.45rem;
}
.hero-actions .button { min-height: 3.18rem; padding-inline: 1.25rem; }
.hero-art {
  position: relative;
  min-width: 0;
}
.hero-stage {
  position: relative;
  min-height: clamp(19rem, 33vw, 25.35rem);
  isolation: isolate;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 10% 15% 2%;
  border: 1px solid #a7e1e9;
  border-radius: 48% 48% 21% 21% / 55% 55% 24% 24%;
  background:
    radial-gradient(ellipse at 38% 74%, #eefaff, transparent 56%),
    linear-gradient(145deg, #daf4fa, #72ccdb);
  box-shadow: inset 0 0 0 9px #ebfaff8a, 0 16px 30px #4bacc122;
  pointer-events: none;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 16% 10% 12% 14%;
  border: 1px solid #fff9;
  border-radius: 50%;
  transform: rotate(-23deg);
  pointer-events: none;
}
.hero-stage img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 98%;
  inset: 0;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(#000 86%, transparent);
}
.hero-support {
  position: absolute;
  z-index: 2;
  inset: auto 5% 5%;
  display: flex;
  justify-content: space-between;
  gap: .45rem;
}
.hero-support a {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  padding: .46rem .74rem .46rem .46rem;
  background: #fff;
  border: 1px solid #c1e4eb;
  border-radius: 12px;
  color: var(--teal-dark);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 5px 16px #12485c1b;
}
.hero-support a:hover { background: #effaff; }
.hero-support span {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
  background: #dff5f8;
  font-weight: 850;
}

.quick-section {
  padding-block: .3rem 0;
  text-align: center;
}
.quick-section .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.65rem, 2vw, 1.35rem);
  font-size: clamp(1.55rem, 3.3vw, 2.5rem);
}
.quick-section .section-title::before, .quick-section .section-title::after {
  content: "";
  flex: 0 1 4rem;
  height: 1px;
  background: #9acbd3;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(.62rem, 1.5vw, 1rem);
  margin: 1.3rem 0 0;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  width: 100%;
  min-height: 8.55rem;
  height: 100%;
  padding: .87rem .7rem .95rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 8px 18px #2d5d7010;
  color: var(--navy-deep);
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.quick-item:hover {
  background: #f4fbf9;
  border-color: #a3d7d4;
  transform: translateY(-2px);
}
.quick-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.58rem;
  height: 2.58rem;
  border-radius: 13px;
  background: #e2f5fb;
  color: #005d73;
  font-weight: 780;
  font-size: 1.15rem;
}
.quick-grid > :nth-child(2) .quick-icon { background: #e6f6ee; color: #006c53; }
.quick-grid > :nth-child(3) .quick-icon { background: #eaeefe; color: #3d5698; }
.quick-grid > :last-child .quick-icon { color: #6d4d02; background: #fff2ca; }
.quick-copy { display: grid; gap: .22rem; min-width: 0; line-height: 1.36; font-size: 1rem; font-weight: 720; }
.quick-copy > span { color: var(--muted); font-size: .86rem; font-weight: 500; }

.section { padding-block: var(--space); }
.section + .section { padding-top: 0; }
.section-title {
  margin-block: .45rem 0;
  color: var(--navy-deep);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 825;
  letter-spacing: -.052em;
  line-height: 1.12;
}
.section-intro {
  margin-top: .75rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.65;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(.85rem, 2vw, 1.4rem);
  margin: 2rem 0 0;
}
.program-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  padding: clamp(1.2rem, 2.7vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #faffff, var(--white) 70%);
  box-shadow: 0 10px 30px #1a53670a;
}
.program-card h3 {
  margin-block: 1.05rem .5rem;
  font-size: clamp(1.16rem, 1.65vw, 1.4rem);
  letter-spacing: -.026em;
  line-height: 1.26;
}
.program-card p { color: var(--muted); line-height: 1.63; }
.program-card > a {
  margin-top: auto;
  padding-top: .9rem;
  color: #006a5e;
  font-size: .91rem;
  font-weight: 750;
}
.program-card > a:hover { text-decoration-thickness: 2px; }
.program-icon {
  display: inline-grid;
  place-items: center;
  width: 2.72rem;
  height: 2.72rem;
  border-radius: 12px;
  color: #005e54;
  background: #dff5eb;
  font-size: 1.15rem;
  font-weight: 800;
}
.program-icon svg { width: 1.37rem; height: 1.37rem; }

.policy-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.3rem, 5vw, 4rem);
  align-items: start;
}
.table-wrap {
  overflow-x: auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px #1a536708;
}
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.table-wrap caption {
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--navy);
  font-size: .84rem;
  font-weight: 750;
}
.table-wrap :is(th, td) { padding: .95rem clamp(.75rem, 1.65vw, 1.25rem); line-height: 1.42; }
.table-wrap th { color: var(--navy); background: #e6f6f3; font-size: .88rem; font-weight: 780; }
.table-wrap td { border-top: 1px solid var(--border); font-feature-settings: "tnum"; }
.table-wrap td:last-child { color: var(--teal); font-weight: 800; }

.calculator {
  color: var(--navy);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.1rem, 3vw, 2.6rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  box-shadow: 0 14px 34px #1a536710;
}
.calculator-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: clamp(1.1rem, 3vw, 2.05rem);
}
.calculator-head h2 { font-size: clamp(1.48rem, 3vw, 2.18rem); line-height: 1.14; letter-spacing: -.04em; }
.calculator-head p { margin-top: .35rem; color: var(--muted); line-height: 1.55; }
.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
  gap: clamp(1.3rem, 3.4vw, 3rem);
}
.calc-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: .9rem 1rem;
}
.form-field { min-width: 0; display: grid; gap: .42rem; font-size: .88rem; font-weight: 700; line-height: 1.36; }
.form-field > small { color: var(--muted); font-size: .79rem; font-weight: 500; }
.field-control { position: relative; display: flex; align-items: center; min-width: 0; }
.field-control input, .form-field > input {
  width: 100%;
  min-width: 0;
  min-height: 3.02rem;
  padding: .65rem .82rem;
  color: var(--navy-deep);
  border: 1px solid #c5d7df;
  border-radius: 9px;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 600;
}
.field-control input:focus, .form-field > input:focus { border-color: var(--teal); background: var(--white); }
.field-control:has(> span) input { padding-inline-end: 3rem; }
.field-control > span {
  position: absolute;
  inset-inline-end: .72rem;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 650;
  pointer-events: none;
}
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .35rem; }
.example-button {
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .68rem .85rem;
  color: #005e54;
  background: #e3f5ee;
  font-size: .87rem;
  font-weight: 800;
}
.example-button:hover { background: #cfeee2; }
.form-actions button[type="reset"] {
  min-height: 2.8rem;
  border: 0;
  border-radius: 8px;
  padding: .62rem .72rem;
  background: transparent;
  color: #445b6e;
  font-size: .87rem;
  font-weight: 700;
}
.form-actions button[type="reset"]:hover { background: #edf4f7; }

.calc-results {
  min-width: 0;
  align-self: stretch;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #c2e8e1;
  border-radius: var(--radius);
  background: linear-gradient(148deg, #e7f8f5, #f3fbfa);
  color: var(--navy-deep);
}
.calc-results h3 { margin-bottom: .75rem; font-size: 1.26rem; line-height: 1.25; }
.calc-results dl { margin: 0; }
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1.15rem;
  padding-block: .62rem;
  border-bottom: 1px solid #c0e1dd;
  line-height: 1.36;
}
.result-row dt { color: #426471; font-size: .9rem; }
.result-row dd { margin: 0; font-weight: 770; overflow-wrap: anywhere; }
.calc-results dl + p { margin-top: 1rem; color: #355866; font-size: .9rem; }
.total-output { margin-block: .82rem 0; }
.total-output > :first-child:not(output), .total-output label { display: block; color: #355866; font-size: .9rem; }
.total-output output, output.total-output, #result-total {
  display: block;
  max-width: 100%;
  margin-top: .16rem;
  color: var(--teal);
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.042em;
  overflow-wrap: anywhere;
  font-feature-settings: "tnum";
}
#result-status { margin-top: .6rem; color: #426471; font-size: .87rem; line-height: 1.48; }

.faq-list {
  max-width: 62rem;
  margin-top: 1.55rem;
  border-top: 1px solid var(--border);
}
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.7rem;
  padding: .8rem .35rem;
  list-style: none;
  color: var(--navy-deep);
  cursor: pointer;
  font-weight: 730;
  line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  content: "+";
  color: #005d54;
  background: #e3f4ee;
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  font-weight: 750;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > :not(summary) { max-width: 69ch; padding: 0 .35rem 1.05rem; color: var(--muted); line-height: 1.65; }

.join-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem clamp(1rem, 4vw, 3rem);
  min-width: 0;
  padding: clamp(1.4rem, 4.3vw, 3.55rem);
  border: 1px solid #d1eae5;
  border-radius: calc(var(--radius) + 4px);
  background-color: #ecf9f6;
  background-image: radial-gradient(ellipse at 85% 10%, #f8eac45b, transparent 47%);
  color: var(--navy-deep);
}
.join-banner :is(h2, .section-title) { font-size: clamp(1.65rem, 3.5vw, 2.85rem); }
.join-banner p { margin-top: .62rem; color: var(--muted); line-height: 1.62; }
.join-banner .button { flex-shrink: 0; }

.site-footer {
  background: #eef8f8;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem 2rem;
  padding-block: 1.55rem;
}
.footer-inner > span, .footer-inner a:not(.brand) { color: var(--muted); font-size: .86rem; line-height: 1.52; }
.footer-inner a:not(.brand):hover { color: var(--teal); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }

#join-dialog {
  width: min(100% - 1.8rem, 32rem);
  max-height: calc(100% - 1.8rem);
  padding: clamp(1.3rem, 4.8vw, 2.15rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 20px 70px #05192d49;
}
#join-dialog::backdrop { background: #06172cb0; }
.dialog-card h2 { margin-block: .45rem .65rem; font-size: clamp(1.55rem, 3.4vw, 2.25rem); letter-spacing: -.045em; line-height: 1.14; }
.dialog-card p { color: var(--muted); line-height: 1.65; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.35rem; }
.dialog-actions > a:not(.button) { color: #006a5e; font-weight: 730; }
.dialog-card > form { display: flex; justify-content: flex-end; margin: .8rem 0 0; }
.dialog-card > form > .button { background-color: transparent; color: var(--muted); }
.dialog-card > form > .button:hover { background: #edf4f7; }

@media (max-width: 58rem) {
  .header-inner { min-height: 4.25rem; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem 1.5rem .65rem;
    background: var(--white);
    border-block: 1px solid var(--border);
    box-shadow: 0 12px 20px #0a1e341a;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: block; padding: .85rem 0; min-height: 2.75rem; }
  .site-nav a + a { border-top: 1px solid var(--border); }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .35rem .55rem;
    border: 1px solid #b6d6d9;
    border-radius: 8px;
    background: transparent;
    color: var(--teal-dark);
    font-size: .82rem;
    font-weight: 720;
  }
  .menu-toggle svg { width: 1.25rem; height: 1.25rem; }
  .hero h1 { font-size: clamp(2.46rem, 5.65vw, 3.6rem); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-grid { gap: .65rem; }
}

@media (max-width: 43rem) {
  .shell { width: min(100% - 2rem, 73rem); }
  .site-nav { padding-inline: 1rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.45rem; padding-block: 2.1rem 1.5rem; }
  .hero-copy { padding: 0; }
  .hero-stage { min-height: clamp(16rem, 64vw, 21rem); }
  .program-grid, .policy-grid, .calculator-grid { grid-template-columns: 1fr; }
  .program-grid { gap: .75rem; margin-top: 1.2rem; }
  .program-card h3 { margin-top: .75rem; }
  .join-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 30rem) {
  [id] { scroll-margin-top: 4.6rem; }
  .header-inner { gap: .55rem; }
  .brand { gap: .52rem; }
  .brand-label { font-size: .78rem; padding-inline-start: .52rem; }
  .header-actions { gap: .45rem; }
  .header-actions > .button { min-height: 2.55rem; padding-inline: .55rem; font-size: .78rem; }
  .header-actions > a:not(.button) { font-size: .81rem; }
  .hero h1 { font-size: clamp(2.24rem, 9vw, 2.85rem); }
  .hero-actions .button { padding-inline: .9rem; min-height: 2.9rem; }
  .quick-item { min-height: 7.45rem; gap: .5rem; padding: .62rem; }
  .quick-icon { width: 2.18rem; height: 2.18rem; }
  .quick-icon svg { width: 1.12rem; height: 1.12rem; }
  .quick-copy { font-size: .87rem; overflow-wrap: anywhere; }
  .quick-copy > span { font-size: .76rem; }
  .calc-fields { gap: .75rem; }
  .calc-results { padding: 1rem; }
  .table-wrap :is(th, td) { padding: .75rem .53rem; font-size: .86rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .75rem; }
}

@media (max-width: 22rem) {
  .brand-label { display: none; }
  .calc-fields { grid-template-columns: 1fr; }
}

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