@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

#jpi-merit-page {
  --forest-950: #14271c;
  --forest-900: #1b3425;
  --forest-800: #294a34;
  --moss-600: #657a50;
  --moss-300: #afbd98;
  --cream-50: #fbf8ef;
  --cream-100: #f5f0e3;
  --cream-200: #e7dfce;
  --rust-500: #bd6742;
  --rust-600: #a85334;
  --gold-400: #d9bd6d;
  --ink: #24312a;
  --muted: #687168;
  --white: #ffffff;
  --serif: Montserrat, Arial, sans-serif;
  --sans: Montserrat, Arial, sans-serif;
  --shadow: 0 18px 50px rgb(26 47 34 / 12%);
}

#jpi-merit-page, #jpi-merit-page * { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#jpi-merit-page {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
#jpi-merit-page a { color: inherit; text-decoration: none; }
#jpi-merit-page a:focus-visible, #jpi-merit-page button:focus-visible, #jpi-merit-page input:focus-visible, #jpi-merit-page textarea:focus-visible, #jpi-merit-page summary:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 4px;
}
#jpi-merit-page button, #jpi-merit-page input, #jpi-merit-page select, #jpi-merit-page textarea { font: inherit; }
#jpi-merit-page { overflow: hidden; }

.site-header {
  align-items: center;
  background: var(--cream-50);
  border-bottom: 1px solid var(--cream-200);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(24px, 5vw, 84px);
}
.wordmark { align-items: center; display: inline-flex; gap: 14px; }
.wordmark-mark {
  align-items: center;
  background: var(--rust-500);
  border-radius: 50%;
  color: var(--cream-50);
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  letter-spacing: .08em;
  width: 44px;
}
.wordmark-text { display: flex; flex-direction: column; line-height: 1.18; }
.wordmark-text strong { font-size: 15px; font-weight: 600; }
.wordmark-text small { color: var(--muted); font-size: 10px; letter-spacing: .17em; margin-top: 4px; text-transform: uppercase; }
.site-header nav { align-items: center; display: flex; font-size: 13px; font-weight: 650; gap: 26px; letter-spacing: .02em; }
.site-header nav a:not(.nav-give):hover { color: var(--rust-600); }
.nav-give { background: var(--rust-500); border-radius: 999px; color: var(--white); padding: 10px 21px; }
.nav-give:hover, .button-primary:hover { background: var(--rust-600); transform: translateY(-1px); }

.hero {
  background: radial-gradient(circle at 10% 16%, rgb(217 189 109 / 8%), transparent 28%), var(--forest-950);
  color: var(--cream-50);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  min-height: 640px;
}
.hero-copy { align-self: center; max-width: 790px; padding: 62px clamp(32px, 6vw, 96px); }
.eyebrow, .overline { color: var(--rust-500); font-size: 11px; font-weight: 760; letter-spacing: .18em; margin: 0 0 12px; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold-400); }
#jpi-merit-page h1, #jpi-merit-page h2, #jpi-merit-page h3, #jpi-merit-page p { margin-top: 0; }
#jpi-merit-page h1, #jpi-merit-page h2, #jpi-merit-page h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
#jpi-merit-page h1 { font-size: clamp(45px, 5vw, 70px); margin-bottom: 20px; max-width: 960px; }
#jpi-merit-page h2 { font-size: clamp(34px, 3.5vw, 50px); margin-bottom: 18px; }
#jpi-merit-page h3 { font-size: 25px; margin-bottom: 10px; }
.hero-lede { color: rgb(251 248 239 / 75%); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 680px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.button { align-items: center; border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 750; justify-content: center; letter-spacing: .03em; min-height: 48px; padding: 11px 26px; transition: 180ms ease; }
.button-primary { background: var(--rust-500); color: var(--white); }
.text-link { border-bottom: 1px solid currentColor; display: inline-flex; font-size: 13px; font-weight: 700; gap: 10px; padding-bottom: 3px; }
.text-link:hover { color: var(--gold-400); }
#jpi-merit-page .hero-detail { color: rgb(251 248 239 / 50%); font-size: 11px; letter-spacing: .03em; margin: 38px 0 0; }
.hero-art {
  background:
    radial-gradient(circle at 86% 16%, rgb(217 189 109 / 35%) 0 7%, transparent 7.3%),
    linear-gradient(145deg, var(--cream-100) 0 64%, var(--rust-500) 64% 100%);
  min-height: 640px;
  overflow: hidden;
  position: relative;
}
.hero-art::before {
  border: 1px solid rgb(41 74 52 / 18%);
  border-radius: 50%;
  content: "";
  height: 430px;
  position: absolute;
  right: -180px;
  top: -230px;
  width: 430px;
}
.hero-art::after {
  border: 1px solid rgb(41 74 52 / 14%);
  border-radius: 50%;
  content: "";
  height: 520px;
  position: absolute;
  right: -225px;
  top: -275px;
  width: 520px;
}
.hero-art-kicker {
  color: var(--forest-800);
  display: flex;
  font-size: 9px;
  font-weight: 750;
  justify-content: space-between;
  left: 28px;
  letter-spacing: .14em;
  position: absolute;
  right: 28px;
  text-transform: uppercase;
  top: 22px;
  z-index: 4;
}
.hero-art-frame {
  background: var(--white);
  box-shadow: 0 22px 52px rgb(20 39 28 / 23%);
  container-type: inline-size;
  display: block;
  margin: 0;
  overflow: hidden;
  padding: 8px 8px 31px;
  position: absolute;
  transition: box-shadow 220ms ease, transform 220ms ease;
  z-index: 2;
}
.hero-art-photo { background: #000; display: block; height: 100%; overflow: hidden; position: relative; width: 100%; }
.hero-art-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1100ms cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}
.hero-art-frame.image-loaded .hero-art-photo img { opacity: 1; }
.hero-art-frame-round-source .hero-art-photo img { transform: scale(1.42); transform-origin: 50% 35%; }
.hero-art-caption {
  background: var(--white);
  bottom: 7px;
  color: var(--forest-900);
  font-size: clamp(5.5px, 4.8cqi, 8px);
  font-weight: 750;
  left: 10px;
  letter-spacing: .11em;
  line-height: 1;
  padding: 5px 7px;
  position: absolute;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-art-primary .hero-art-caption {
  background: var(--white);
  bottom: auto;
  left: 10px;
  right: auto;
  text-align: left;
  top: 7px;
}
.hero-art-primary { bottom: 112px; left: 14%; padding: 31px 8px 8px; right: 11%; top: 62px; transform: rotate(-1.8deg); }
.hero-art-secondary { bottom: 39px; height: 178px; left: 22px; transform: rotate(5deg); width: 198px; z-index: 3; }
.hero-art-tertiary { height: 150px; right: 19px; top: 37px; transform: rotate(4deg); width: 135px; z-index: 3; }
.hero-art-tertiary .hero-art-caption { -webkit-text-stroke: .12px currentColor; }
.hero-art-primary:hover { box-shadow: 0 28px 58px rgb(20 39 28 / 30%); transform: rotate(-1.8deg) translateY(-6px); }
.hero-art-secondary:hover { box-shadow: 0 28px 58px rgb(20 39 28 / 30%); transform: rotate(5deg) translateY(-6px); }
.hero-art-tertiary:hover { box-shadow: 0 28px 58px rgb(20 39 28 / 30%); transform: rotate(4deg) translateY(-6px); }
.hero-art-note {
  align-items: center;
  background: var(--forest-900);
  bottom: 8px;
  box-shadow: 0 16px 36px rgb(20 39 28 / 24%);
  display: grid;
  gap: 17px;
  grid-template-columns: auto 1fr;
  max-width: 360px;
  padding: 17px 20px;
  position: absolute;
  right: 15px;
  z-index: 5;
}
.hero-note-number { border: 1px solid rgb(255 255 255 / 38%); border-radius: 50%; display: inline-grid; font-size: 10px; height: 42px; place-items: center; width: 42px; }
.hero-art-note .overline { color: var(--gold-400); font-size: 8px; margin-bottom: 4px; }
.hero-art-quote { color: var(--cream-50); font-size: clamp(19px, 2vw, 25px); font-weight: 600; line-height: 1.12; margin-bottom: 5px; }
.hero-art-note div > p:last-child { color: rgb(251 248 239 / 66%); font-size: 10px; margin-bottom: 0; }

.impact-section {
  background:
    radial-gradient(circle at 92% 10%, rgb(189 103 66 / 10%) 0 10%, transparent 10.3%),
    radial-gradient(circle at 92% 10%, transparent 0 14%, rgb(189 103 66 / 8%) 14.2% 14.5%, transparent 14.7%),
    var(--cream-100);
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(280px, .8fr) minmax(400px, 1.2fr);
  isolation: isolate;
  overflow: hidden;
  padding: 76px clamp(24px, 6vw, 96px);
  position: relative;
}
.impact-intro { align-self: start; max-width: 600px; padding-right: 38px; position: relative; z-index: 1; }
.impact-intro h2 { color: var(--forest-950); font-size: clamp(36px, 4vw, 54px); }
.impact-intro > p:last-child, .section-heading > p:last-child, .fit-intro > p, .give-copy > p, .application-intro > p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.impact-figures { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.impact-figure { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; min-height: 365px; min-width: 0; overflow: hidden; padding: clamp(26px, 4vw, 46px); position: relative; }
.impact-figure > * { max-width: 100%; min-width: 0; position: relative; z-index: 1; }
.impact-figure::before { border: 1px solid currentColor; border-radius: 50%; content: ""; height: 220px; opacity: .12; position: absolute; right: -105px; top: -110px; width: 220px; }
.impact-figure-gifted { background: var(--forest-900); color: var(--cream-50); }
.impact-figure-applicants { background: var(--white); border: 1px solid var(--cream-200); color: var(--forest-900); }
.impact-figure-label { font-size: 9px; font-weight: 760; letter-spacing: .18em; margin-bottom: auto; text-transform: uppercase; }
.impact-figure-gifted .impact-figure-label { color: var(--gold-400); }
.impact-figure-applicants .impact-figure-label { color: var(--rust-600); }
.impact-number { display: block; font-size: clamp(36px, 13cqi, 76px); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -.065em; line-height: .92; margin-bottom: 25px; white-space: nowrap; }
.impact-number > span { display: block; }
.impact-figure-applicants .impact-number { color: var(--rust-500); }
.impact-figure h3 { font-size: clamp(17px, 5cqi, 20px); letter-spacing: -.01em; margin-bottom: 10px; overflow-wrap: break-word; }
.impact-figure > p:last-child { font-size: 12px; line-height: 1.65; margin-bottom: 0; max-width: 460px; }
.impact-figure-gifted > p:last-child { color: rgb(251 248 239 / 64%); }
.impact-figure-applicants > p:last-child { color: var(--muted); }
.impact-updated { color: var(--muted); font-size: 10px; grid-column: 2; letter-spacing: .05em; margin: -5px 0 -8px; }
.impact-method { border-top: 1px solid rgb(41 74 52 / 18%); color: var(--muted); font-size: 11px; grid-column: 2; padding-top: 15px; }
.impact-method summary { color: var(--forest-800); cursor: pointer; font-weight: 750; }
.impact-method p { line-height: 1.65; margin: 10px 0 0; max-width: 720px; }

.program-section, .recipients-section, .process-section, .faq-section { padding: 76px clamp(24px, 6vw, 96px); }
.program-section { background: linear-gradient(180deg, var(--white), var(--cream-50)); position: relative; }
.section-heading { max-width: 850px; }
.section-heading.compact { max-width: 760px; }
.pillar-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 42px; }
.pillar { background: var(--white); border: 1px solid var(--cream-200); min-height: 330px; overflow: hidden; padding: 34px; position: relative; }
.pillar + .pillar { padding-left: 34px; }
.pillar::after { background: var(--rust-500); bottom: 0; content: ""; height: 4px; left: 0; position: absolute; transform: scaleX(.18); transform-origin: left; transition: transform 240ms ease; width: 100%; }
.pillar:hover::after { transform: scaleX(1); }
.pillar-index { color: transparent; display: block; font-size: 64px; font-weight: 500; letter-spacing: -.07em; line-height: .85; margin-bottom: 38px; -webkit-text-stroke: 1px var(--rust-500); }
.pillar p { color: var(--muted); }
.program-closing { color: var(--muted); font-size: 14px; margin: 28px 0 0; }

.fit-section { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(500px, 1.18fr); }
.fit-intro {
  align-self: center;
  background:
    radial-gradient(circle at 0 100%, rgb(217 189 109 / 9%) 0 22%, transparent 22.3%),
    radial-gradient(circle at 0 100%, transparent 0 30%, rgb(217 189 109 / 8%) 30.2% 30.5%, transparent 30.7%),
    var(--forest-950);
  color: var(--cream-50);
  min-height: 560px;
  padding: 76px clamp(32px, 6vw, 96px);
}
.fit-intro .eyebrow { color: var(--gold-400); }
.fit-intro h2 { color: var(--cream-50) !important; }
.fit-intro > p { color: rgb(251 248 239 / 68%); }
.fit-intro .text-link { margin-top: 18px; }
.fit-grid { background: var(--cream-100); display: grid; grid-template-columns: repeat(2, 1fr); }
.fit-card { border-bottom: 1px solid var(--cream-200); border-right: 1px solid var(--cream-200); display: flex; flex-direction: column; min-height: 280px; padding: 44px; position: relative; transition: background 200ms ease, color 200ms ease; }
.fit-card:nth-child(2n) { border-right: 0; }
.fit-card:nth-last-child(-n + 2) { border-bottom: 0; }
.fit-card:hover, .fit-card:focus-visible { background: var(--white); }
.fit-index { border: 1px solid var(--rust-500); border-radius: 50%; color: var(--rust-500); display: grid; font-size: 10px; font-weight: 700; height: 38px; margin-bottom: 46px; place-items: center; width: 38px; }
.fit-grid h3 { color: var(--forest-800); }
.fit-grid p { color: var(--muted); font-size: 14px; }

.recipients-section { background: var(--white); }
.recipients-heading { margin-bottom: 42px; }
.recipient-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 24px; }
.recipient-card { background: var(--cream-100); border: 1px solid var(--cream-200); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: box-shadow 220ms ease, transform 220ms ease; }
.recipient-card:nth-child(2) { transform: translateY(24px); }
.recipient-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.recipient-card:nth-child(2):hover { transform: translateY(19px); }
.recipient-photo-frame { aspect-ratio: 1; overflow: hidden; position: relative; width: 100%; }
.recipient-photo-frame img { display: block; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); width: 100%; }
.recipient-card:hover .recipient-photo-frame img { transform: scale(1.025); }
.recipient-photo-frame img.recipient-photo-round-source { transform: scale(1.5); transform-origin: 50% 45%; }
.recipient-card:hover .recipient-photo-frame img.recipient-photo-round-source { transform: scale(1.54); }
.recipient-card, .field-report-section { scroll-margin-top: 24px; }
.recipient-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.recipient-location { color: var(--rust-600); font-size: 10px; font-weight: 750; letter-spacing: .13em; margin-bottom: 12px; text-transform: uppercase; }
.recipient-body h3 { color: var(--forest-900); font-size: 23px; }
.recipient-org { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.recipient-body details { border-bottom: 1px solid var(--cream-200); border-top: 1px solid var(--cream-200); margin-bottom: 22px; }
.recipient-body summary { color: var(--forest-800); cursor: pointer; font-size: 12px; font-weight: 750; padding: 15px 0; }
.recipient-story { color: var(--muted); font-size: 13px; line-height: 1.7; max-height: 420px; overflow: auto; padding: 4px 4px 14px 0; }
.recipient-link { color: var(--rust-600); font-size: 11px; font-weight: 750; margin-top: auto; }
.recipient-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.field-report-section {
  background: var(--forest-950);
  color: var(--cream-50);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 480px;
}
.field-report-image { box-shadow: 18px 18px 0 var(--rust-500); margin: 34px 0 34px 34px; min-height: 412px; overflow: hidden; transform: rotate(-1.2deg); }
.field-report-image img { height: 100%; object-fit: cover; width: 100%; }
.field-report-copy { align-self: center; max-width: 760px; padding: 64px clamp(36px, 6vw, 96px); }
.field-report-copy .eyebrow { color: var(--gold-400); }
.field-report-copy h2 { color: var(--cream-50) !important; }
.field-report-copy > p:not(.eyebrow, .report-date) { color: rgb(251 248 239 / 70%); font-size: 17px; line-height: 1.65; }
.report-date { color: var(--moss-300); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

.mission-section {
  align-items: start;
  background:
    radial-gradient(circle at 100% 0, rgb(217 189 109 / 8%) 0 20%, transparent 20.2%),
    radial-gradient(circle at 100% 0, transparent 0 27%, rgb(217 189 109 / 9%) 27.2% 27.4%, transparent 27.6%),
    var(--forest-900);
  color: var(--cream-50);
  display: grid;
  gap: clamp(32px, 5vw, 84px);
  grid-template-columns: minmax(150px, .28fr) minmax(0, 1fr);
  overflow: hidden;
  padding: clamp(68px, 8vw, 118px) clamp(24px, 7vw, 112px);
  position: relative;
}
.mission-year { color: transparent; font-size: clamp(76px, 11vw, 168px); font-weight: 500; letter-spacing: -.07em; line-height: .8; -webkit-text-stroke: 1px rgb(217 189 109 / 55%); }
.mission-content { max-width: 960px; position: relative; z-index: 1; }
.mission-content .eyebrow { color: var(--gold-400); margin-bottom: 24px; }
.mission-content blockquote { margin: 0; }
#jpi-merit-page .mission-opening { color: var(--cream-50); font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 30px; }
.mission-content blockquote > p:not(.mission-opening) { color: rgb(251 248 239 / 72%); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; max-width: 860px; }
.mission-content blockquote > p:last-child { margin-bottom: 0; }
.mission-attribution { border-top: 1px solid rgb(251 248 239 / 18%); color: var(--moss-300); font-size: 10px; font-weight: 700; letter-spacing: .14em; margin: 34px 0 0; max-width: 860px; padding-top: 18px; text-transform: uppercase; }

.about-details-section { background: var(--white); padding: 76px clamp(24px, 6vw, 96px); }
.about-details-list { border-top: 1px solid var(--cream-200); margin-top: 40px; max-width: 1040px; }
.about-details-list details { border-bottom: 1px solid var(--cream-200); }
.about-details-list summary {
  color: var(--forest-900);
  cursor: pointer;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  list-style: none;
  padding: 26px 52px 26px 0;
  position: relative;
}
.about-details-list summary::-webkit-details-marker { display: none; }
.about-details-list summary::after { color: var(--rust-500); content: "+"; font-size: 26px; position: absolute; right: 7px; top: 20px; }
.about-details-list details[open] summary::after { content: "−"; }
.about-details-list details > div { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 900px; padding: 0 45px 30px 0; }
.about-details-list details > div p:last-child { margin-bottom: 0; }

.process-section { background: var(--cream-100); }
.process-list { border-top: 1px solid var(--cream-200); list-style: none; margin: 42px 0 0; padding: 0; }
.process-list li { align-items: start; border-bottom: 1px solid var(--cream-200); display: grid; gap: 28px; grid-template-columns: 52px minmax(0, 1fr); padding: 26px 0; }
.process-list li > span { border: 1px solid var(--moss-300); border-radius: 50%; color: var(--rust-600); display: grid; font-size: 12px; height: 42px; place-items: center; width: 42px; }
.process-list h3 { font-size: 22px; margin-bottom: 7px; }
.process-list p { color: var(--muted); margin-bottom: 0; max-width: 780px; }

.application-section { align-items: start; background: var(--white); display: grid; gap: clamp(42px, 6vw, 84px); grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr); padding: 76px clamp(24px, 6vw, 96px); }
.application-intro { position: sticky; top: 34px; }
.application-note { background: var(--cream-100); border-left: 3px solid var(--gold-400); margin-top: 28px; padding: 22px; }
.application-note strong { font-size: 13px; }
.application-note ul { color: var(--muted); font-size: 13px; margin: 10px 0 0; padding-left: 20px; }
.application-note li + li { margin-top: 7px; }
.prototype-note { font-size: 11px !important; margin-top: 18px; }
.application-shell { background: var(--cream-100); border: 1px solid var(--cream-200); padding: clamp(24px, 4vw, 44px); position: relative; }
.application-shell form { display: grid; gap: 24px; }
.application-shell form.is-submitted { display: none; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.application-shell label { color: var(--ink); display: grid; font-size: 12px; font-weight: 650; gap: 7px; }
.application-shell label small { color: var(--muted); font-size: 10px; font-weight: 400; }
.application-shell input, .application-shell textarea { background: var(--white); border: 1px solid #ccc5b8; border-radius: 4px; color: var(--ink); padding: 12px 13px; width: 100%; }
.application-shell textarea { min-height: 100px; resize: vertical; }
.application-shell .project-textarea { min-height: 180px; }
.application-shell fieldset { border: 1px solid var(--cream-200); margin: 0; padding: 18px; }
.application-shell legend { font-size: 12px; font-weight: 700; padding: 0 7px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid label { align-items: center; background: var(--white); display: flex; padding: 12px; }
.choice-grid input, .declarations input { accent-color: var(--rust-500); flex: 0 0 auto; height: 16px; width: 16px; }
.other-reason { margin-top: 16px; }
.declarations { display: grid; gap: 14px; }
.declarations label { align-items: start; display: flex; font-weight: 450; line-height: 1.5; }
.declarations input { margin-top: 3px; }
.submit-button { justify-self: start; }
.form-privacy { color: var(--muted); font-size: 10px; margin: -12px 0 0; }
.success-message { background: var(--forest-900); color: var(--cream-50); padding: 34px; }
.success-message strong { font-size: 22px; }
.success-message p { color: rgb(251 248 239 / 70%); margin: 12px 0 22px; }
.success-message button { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: var(--gold-400); cursor: pointer; padding: 0 0 3px; }
.submission-iframe { display: none; }

.dedication-section { align-items: center; background: var(--forest-950); color: var(--cream-50); display: flex; flex-direction: column; padding: 64px 24px; text-align: center; }
.dedication-section p { color: var(--moss-300); margin-bottom: 9px; }
.dedication-section > strong { color: var(--gold-400); font-size: clamp(22px, 3vw, 34px); }
.dedication-section em { color: rgb(251 248 239 / 62%); font-size: 13px; margin: 24px 0 9px; }
.dedication-section h2 { margin-bottom: 0; }

/* Copied directly from the Donation page instance so Zeffy's surround and colors match. */
.give-section {
  align-items: start;
  background: var(--cream-100);
  display: grid;
  gap: clamp(42px, 6vw, 84px);
  grid-template-columns: minmax(300px, 0.75fr) minmax(440px, 1.25fr);
  padding: 76px clamp(24px, 6vw, 96px);
}
.give-copy { position: sticky; top: 35px; }
.zeffy-note { background: var(--cream-50); border-left: 3px solid var(--gold-400); margin-top: 28px; padding: 18px 20px; }
.zeffy-note strong { font-size: 13px; }
.zeffy-note p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 7px 0 0; }
.giving-contact { font-size: 12px !important; margin-top: 22px; }
.giving-contact a, .form-shell p a { color: var(--rust-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-shell { background: var(--white); border: 1px solid var(--cream-200); border-radius: 16px; box-shadow: var(--shadow); min-height: 810px; overflow: hidden; padding: 12px; }
.form-shell iframe { border: 0; border-radius: 10px; display: block; min-height: 760px; width: 100%; }
.form-shell > p { color: var(--muted); font-size: 11px; margin: 9px 12px 4px; text-align: center; }

.faq-section { background: var(--white); }
.faq-list { border-top: 1px solid var(--cream-200); margin-top: 38px; max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--cream-200); padding: 0; }
.faq-list summary { color: var(--forest-900); cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; padding: 22px 38px 22px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--rust-500); content: "+"; font-size: 22px; position: absolute; right: 5px; top: 17px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); max-width: 760px; padding: 0 35px 22px 0; }

#jpi-merit-page footer { background: var(--forest-950); color: var(--cream-50); display: grid; gap: 30px; grid-template-columns: 1fr auto; padding: 56px clamp(24px, 6vw, 96px) 32px; }
#jpi-merit-page footer > div:first-child { max-width: 540px; }
#jpi-merit-page footer strong { font-size: 16px; }
#jpi-merit-page footer p { color: rgb(251 248 239 / 55%); font-size: 12px; margin: 10px 0 0; }
.footer-links { display: flex; font-size: 12px; gap: 24px; }
.footer-links a:hover { color: var(--gold-400); }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 12%); grid-column: 1 / -1; padding-top: 20px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .impact-section { grid-template-columns: 1fr; }
  .impact-intro { padding-right: 0; }
  .impact-updated, .impact-method { grid-column: 1; }
  .recipient-grid { gap: 14px; }
  .recipient-body { padding: 22px; }
  .application-section { grid-template-columns: .75fr 1.25fr; }
}

@media (min-width: 601px) and (max-width: 1050px) {
  .pillar { padding: clamp(28px, 3.4vw, 36px) clamp(22px, 3vw, 32px); }
  .pillar + .pillar { padding-left: clamp(22px, 3vw, 32px); }
  .pillar-index { font-size: clamp(50px, 6vw, 60px); margin-bottom: clamp(24px, 3.5vw, 34px); }
  #jpi-merit-page .pillar h3 { font-size: clamp(18px, 2.3vw, 24px); hyphens: none; line-height: 1.12; overflow-wrap: normal; word-break: normal; }
  .pillar p { font-size: clamp(13px, 1.55vw, 16px); line-height: 1.6; }
}

@media (max-width: 820px) {
  .site-header nav a:not(.nav-give) { display: none; }
  .hero, .fit-section, .field-report-section, .mission-section, .application-section, .give-section { grid-template-columns: 1fr; }
  .mission-year { font-size: clamp(64px, 18vw, 108px); }
  .hero-art { min-height: 620px; }
  .impact-section { grid-template-columns: 1fr; }
  .impact-intro { padding-right: 0; }
  .impact-updated, .impact-method { grid-column: 1; }
  .recipient-grid { grid-template-columns: 1fr; }
  .recipient-card { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; }
  .recipient-card:nth-child(2), .recipient-card:nth-child(2):hover { transform: none; }
  .recipient-photo-frame { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .field-report-image { box-shadow: none; margin: 0; max-height: 560px; transform: none; }
  .application-intro, .give-copy { position: static; }
}

@media (max-width: 600px) {
  .site-header { min-height: 68px; padding: 10px 18px; }
  .wordmark-text strong { font-size: 12px; }
  .wordmark-text small { font-size: 8px; }
  .wordmark-mark { height: 40px; width: 40px; }
  .site-header nav { gap: 0; }
  .hero-copy { padding: 52px 24px 48px; }
  #jpi-merit-page h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-art { min-height: 500px; }
  .hero-art-kicker { display: none; }
  .hero-art-primary { bottom: 126px; left: 36px; right: 28px; top: 44px; }
  .hero-art-secondary { bottom: 31px; height: 126px; left: 14px; width: 142px; }
  .hero-art-tertiary { height: 112px; right: 11px; top: 26px; width: 102px; }
  .hero-art-note { bottom: 7px; left: 104px; max-width: none; padding: 14px 16px; right: 10px; }
  .hero-art-note .hero-note-number { display: none; }
  .hero-art-note { grid-template-columns: 1fr; }
  .impact-section, .program-section, .recipients-section, .about-details-section, .process-section, .application-section, .give-section, .faq-section { padding: 56px 24px; }
  .impact-figures, .pillar-grid, .fit-grid, .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .impact-figure { min-height: 300px; padding: clamp(24px, 8vw, 36px); }
  .pillar { border: 1px solid var(--cream-200); min-height: auto; padding: 28px; }
  .pillar + .pillar { padding-left: 28px; }
  .pillar-index { font-size: 50px; margin-bottom: 24px; }
  .fit-intro { min-height: auto; padding: 56px 24px; }
  .fit-card, .fit-card:nth-child(2n), .fit-card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--cream-200); border-right: 0; min-height: 190px; padding: 32px 24px; }
  .fit-card:last-child { border-bottom: 0; }
  .fit-index { margin-bottom: 28px; }
  .recipient-card { display: flex; }
  .recipient-photo-frame { aspect-ratio: 1; height: auto; min-height: 0; }
  .recipient-story { max-height: none; }
  .field-report-image { min-height: 330px; }
  .field-report-copy { padding: 52px 24px; }
  .application-shell { margin: 0 -8px; padding: 22px 18px; }
  .form-shell { margin: 0 -10px; min-height: 760px; padding: 8px; }
  .form-shell iframe { min-height: 720px; }
  #jpi-merit-page footer { grid-template-columns: 1fr; padding: 46px 24px 28px; }
  .footer-links { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art-photo img { transition: none; }
  html { scroll-behavior: auto; }
  #jpi-merit-page, #jpi-merit-page *, #jpi-merit-page *::before, #jpi-merit-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
