/* Donation shares and monthly schedule */
.donation-card .amount-options {
  grid-template-columns: repeat(var(--amount-columns, 3), minmax(0, 1fr));
  gap: 8px;
}
.donation-card .amount-options label > span {
  height: 72px;
  gap: 6px;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.donation-card .amount-options label:hover > span { border-color: #b6c89e; transform: translateY(-2px); }
.donation-card .amount-options .gold-share { grid-column: 1 / -1; }
.donation-card .amount-options .gold-share > span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 53px;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #c6a258;
  color: #61461d;
  background: linear-gradient(108deg, #fffaf0, #f6e6bd 56%, #fff7df);
}
.donation-card .amount-options .gold-share:hover > span { border-color: #a87826; }
.donation-card .amount-options .gold-share input:checked + span {
  background: linear-gradient(108deg, #fff3d7, #eed39a 60%, #fff4d7);
  border-color: #9c6d26;
  box-shadow: inset 0 0 0 1px #b98a34, 0 4px 16px #bd8d2f19;
}
.gold-share > span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(107deg, transparent 35%, #ffffff90 50%, transparent 65%);
  transform: translateX(110%);
  animation: share-glint 1.4s .65s ease-out 2;
  pointer-events: none;
}
.gold-share-name { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.gold-share-name .icon { width: 20px; height: 20px; color: #9d752d; }
.donation-card .amount-options .gold-share b { color: #61461d; }
.donation-card .amount-options .gold-share b small { color: #775b33; }
@keyframes share-glint { from { transform: translateX(110%); } to { transform: translateX(-110%); } }

.donation-card .monthly-day {
  display: block;
  border: 1px solid #e0e6d4;
  border-radius: 13px;
  background: #f9fbf4;
  padding: 13px;
  margin-top: 15px;
  animation: panel-arrive .28s ease-out;
}
.calendar-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.calendar-heading > .icon { width: 21px; height: 21px; color: #6f8a43; }
.calendar-heading strong { font-size: 12px; font-weight: 600; }
.calendar-heading small { font-size: 8px; margin-top: 4px; line-height: 1.6; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-days label { position: relative; cursor: pointer; }
.calendar-days input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.calendar-days label > span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid #e5eadb;
  border-radius: 7px;
  background: #fff;
  color: #384335;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: color .2s, background .2s, border-color .2s;
}
.calendar-days label:hover > span { border-color: #9db879; }
.calendar-days input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.calendar-days input:checked + span { color: #fff; background: #587536; border-color: #587536; }
.calendar-selection, .calendar-error { font-size: 9px; line-height: 1.8; margin-top: 9px; }
.calendar-selection { color: #65735a; }
.calendar-selection.has-day { padding: 7px 8px; background: #e9f1dd; color: #4e6730; border-radius: 6px; }
.calendar-error { color: #aa3737; }

/* The wheat sits at the right of the selected giving area on all layouts. */
.impact-section .impact-experience {
  grid-template-areas: 'wheat details' 'choices choices';
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px clamp(20px, 5vw, 65px);
}
.impact-section .wheat-canvas { grid-area: wheat; order: 0; }
.impact-section .impact-content { grid-area: details; display: block; min-width: 0; }
.impact-section .impact-tabs {
  grid-area: choices;
  order: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  padding: 0;
  margin: 0;
}
.impact-section .impact-tabs button { white-space: normal; line-height: 1.6; }
.impact-section .impact-panel { position: relative; animation: panel-arrive .3s ease-out; }
@keyframes panel-arrive { from { opacity: .58; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.wheat-art { overflow: visible; }
.wheat-art .seed { cursor: pointer; }
.wheat-art .seed path { transition: fill .22s, stroke .22s, filter .22s; }
.wheat-art .seed text { fill: #405537; font-weight: 600; font-size: 17px; }
.wheat-art .seed-target { fill: transparent; stroke: none; }
.wheat-art .seed:hover path { fill: #c7d9a9; stroke: #76944e; }
.wheat-art .seed:focus { outline: none; }
.wheat-art .seed:focus-visible path { stroke: #33482a; stroke-width: 3; }
.wheat-art .seed.active path { fill: url(#selected-leaf); stroke: #708c43; filter: drop-shadow(0 3px 5px #54773329); }
.wheat-art .seed.active text { fill: #263918; }
.wheat-canvas .wheat-caption { color: #617050; text-align: center; line-height: 1.8; }
.stat-value { font-variant-numeric: tabular-nums; }
.stat strong .stat-unit { color: inherit; font-size: .53em; letter-spacing: 0; }

/* Horizontal tracks translate their contents to the left as they advance. */
.content-rail { min-width: 0; margin-top: 18px; }
.rail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 0 10px; }
.rail-hint { color: #67745b; font-size: 10px; }
.rail-controls { display: flex; gap: 6px; }
.rail-controls button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #dfe4d3;
  border-radius: 10px;
  background: #fffefa;
  color: #4d6336;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  transition: background .2s, border-color .2s;
}
.rail-controls button:hover { border-color: #a4b787; background: #eef3e5; }
.content-rail .rail-track {
  display: flex;
  align-items: stretch;
  direction: ltr;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: #bfcbae transparent;
  padding: 2px 2px 10px;
  margin: 0;
}
.rail-track > * { direction: rtl; scroll-snap-align: start; min-width: 0; }
.achievements-section .rail-track > .award-card {
  flex: 0 0 calc((100% - 28px) / 3);
  display: flex;
  grid-column: auto;
}
.achievements-section .rail-track .award-card > a { height: 156px; min-height: 0; flex-shrink: 0; }
.achievements-section .rail-track .award-card > div { padding: 16px; }
.achievements-section .rail-track .award-card h3 { font-size: 14px; min-height: 0; }
.achievements-section .rail-track .award-card p { margin-top: 8px; }
.testimonial.featured-testimonial {
  position: relative;
  margin-top: 20px;
  padding: clamp(18px, 3vw, 33px);
  background: radial-gradient(ellipse at 12% 0, #f0f4e4, transparent 56%), #fffefa;
  border-color: #d6e0c8;
  box-shadow: 0 9px 30px #4d623710;
}
.featured-quote-header { display: flex; align-items: center; gap: 13px; }
.featured-quote-header img { width: 66px; height: 66px; border-radius: 50%; object-fit: contain; background: #e9efdf; }
.featured-quote-header strong { font-size: 16px; }
.featured-quote-mark { color: #9db77b; margin-inline-start: auto; font-size: 46px; line-height: 1; }
.testimonial.featured-testimonial blockquote { font-size: clamp(12px, 1.35vw, 15px); margin: 15px 0 0; line-height: 2.3; color: #536249; }
.testimonials-section .rail-track > .testimonial {
  flex: 0 0 calc((100% - 28px) / 3);
  align-self: start;
  padding: 14px;
}
.testimonials-section .rail-track .testimonial > summary { display: grid; grid-template-columns: 42px 1fr auto; gap: 9px; }
.testimonials-section .rail-track .testimonial > summary > img { width: 42px; height: 42px; }
.testimonials-section .rail-track .testimonial .quote-read { grid-column: 2 / -1; color: #557338; font-size: 9px; }
.testimonials-section .rail-track .testimonial blockquote { margin: 12px 0 0; padding-inline-start: 10px; }
.coverage-section .rail-track > .coverage-item { flex: 0 0 calc((100% - 42px) / 4); }
.coverage-section .rail-track .coverage-item > img { aspect-ratio: 1.32; transition: transform .25s; }
.coverage-section .rail-track .coverage-item:hover > img { transform: scale(1.035); }

/* Program icons are local vectors and follow the visual language of the page. */
.programs-section .program-card { --program-accent: #536e37; --program-tint: #edf3e3; }
.programs-section .program-card:nth-child(2) { --program-accent: #4a6871; --program-tint: #eaf1f1; }
.programs-section .program-card:nth-child(3) { --program-accent: #816032; --program-tint: #f6eedf; }
.programs-section .program-card {
  background: #fffefa;
  box-shadow: 0 9px 28px #39452b0b;
  transition: box-shadow .24s, transform .24s;
}
.programs-section .program-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px #39452b16; }
.programs-section .program-image { height: 108px; background: var(--program-accent); }
.programs-section .program-image img { opacity: .73; }
.programs-section .program-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #18202753, transparent 80%); }
.programs-section .program-image > span { z-index: 1; font-size: 27px; }
.program-heading { display: flex; align-items: center; gap: 9px; }
.program-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--program-accent); background: var(--program-tint); flex: 0 0 auto; }
.program-symbol .icon { width: 20px; height: 20px; }
.programs-section .program-content h3 { color: var(--program-accent); }
.programs-section .program-content > p { margin-top: 11px; min-height: 70px; }
.programs-section .program-content ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.programs-section .program-content li { display: flex; align-items: center; gap: 5px; min-height: 35px; padding: 7px; color: var(--program-accent); background: var(--program-tint); border-color: transparent; line-height: 1.6; }
.program-item-icon { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 760px) {
  .donation-card .amount-options label > span { height: 61px; }
  .donation-card .amount-options .gold-share > span { min-height: 48px; padding-block: 8px; }
  .gold-share-name { font-size: 11px; }
  .impact-section .impact-experience { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 13px; margin-top: 16px; align-items: center; }
  .impact-section .wheat-canvas { height: auto; padding-bottom: 31px; }
  .impact-section .wheat-art { height: auto; width: 100%; }
  .impact-section .wheat-halo { width: 92%; height: auto; aspect-ratio: 1; inset: 18% auto auto; }
  .wheat-halo::after { display: none; }
  .wheat-canvas .wheat-caption { bottom: 0; font-size: 7px; padding-inline: 4px; }
  .impact-section .impact-panel { padding: 12px; min-height: 0; }
  .impact-section .impact-panel h3 { font-size: clamp(14px, 4vw, 19px); line-height: 1.7; margin-block: 9px 6px; }
  .impact-section .impact-panel p { font-size: 10px; line-height: 2; min-height: 0; }
  .impact-section .impact-panel .text-link { font-size: 8px; margin-top: 8px; }
  .impact-section .impact-symbol { width: 32px; height: 32px; }
  .impact-section .impact-symbol .icon { width: 17px; height: 17px; }
  .impact-section .impact-counter b { font-size: 20px; }
  .impact-section .impact-tabs { justify-content: flex-start; }
  .impact-section .impact-tabs button { font-size: 8px; padding: 5px 7px; }
  .rail-toolbar { margin-bottom: 8px; }
  .rail-controls button { min-width: 44px; min-height: 44px; }
  .content-rail .rail-track { gap: 10px; }
  .achievements-section .rail-track > .award-card { flex-basis: 87%; }
  .achievements-section .rail-track .award-card > a { height: 144px; }
  .testimonials-section .rail-track > .testimonial { flex-basis: 87%; }
  .coverage-section .rail-track > .coverage-item { flex-basis: 70%; }
  .featured-quote-header img { width: 52px; height: 52px; }
  .featured-quote-header strong { font-size: 13px; }
  .featured-quote-mark { font-size: 33px; }
  .programs-section .program-content > p { min-height: 0; }
  .programs-section .program-content li { font-size: 10px; }
}
@media (max-width: 375px) and (max-height: 740px) {
  .donation-card .amount-options label > span { height: 54px; }
  .donation-card .amount-options .gold-share > span { min-height: 43px; padding-block: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .gold-share > span::after, .impact-section .impact-panel, .donation-card .monthly-day { animation: none; }
  .programs-section .program-card, .rail-controls button, .wheat-art .seed path, .calendar-days label > span, .donation-card .amount-options label > span { transition: none; }
}

/* Clip the brief entrances at the page edge without clipping the rails. */
main, .complete-footer { overflow-x: clip; }

/* Keep the amount choices visibly separate from the rest of the form. */
.donation-card .amount-options label > span {
  position: relative;
  border-color: #dce3d3;
  box-shadow: 0 3px 9px #26371910;
}
.donation-card .amount-options input:checked + span {
  border-color: #729345;
  background: #eff5e7;
  box-shadow: inset 0 0 0 1px #729345, 0 4px 11px #597d2e26;
}
.donation-card .amount-options label:not(.gold-share) input:checked + span::after {
  content: '';
  position: absolute;
  inset: 7px 7px auto auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #648b39;
  box-shadow: 0 0 0 2px #deebd1;
}
.donation-card .amount-options .gold-share > span {
  border-color: #bd954c;
  box-shadow: 0 4px 11px #b18d3b20;
}
.donation-card .amount-options .gold-share input:checked + span {
  border-color: #9c6d26;
  background: linear-gradient(108deg, #fff3d7, #eed39a 60%, #fff4d7);
  box-shadow: inset 0 0 0 1px #a77a2c, 0 5px 13px #a4773038;
}
.quick-giving .donation-card .custom-amount {
  margin-top: 12px;
  display: flex;
  align-items: center;
  cursor: text;
}
.custom-caption { color: #3f4d36; font-size: 11px; font-weight: 500; }
.donation-card .custom-amount .input-wrap {
  width: 67%;
  height: 43px;
  background: #fbfcf9;
  border-color: #cad5c0;
  box-shadow: 0 2px 7px #2637190a;
}
.donation-card .custom-amount .input-wrap input {
  min-height: 100%;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.donation-card .custom-amount .input-wrap input::placeholder { color: #65735c; font-size: 10px; }
.donation-card .custom-amount .input-wrap > span { font-size: 9px; color: #536348; }
.donation-card .custom-amount .input-wrap:focus-within { border-color: #628042; box-shadow: 0 0 0 3px #89a56a37; }
.donation-card .custom-amount .input-wrap:has([aria-invalid=true]) { border-color: #aa3737; }

/* Preserve the original artwork and descriptions in a medal-shaped row. */
.achievements-section .rail-track > .award-card {
  align-items: stretch;
  border: 0;
  background: transparent;
  overflow: visible;
}
.achievements-section .rail-track .award-card > .award-medal-link {
  height: 150px;
  width: 143px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  align-content: end;
  position: relative;
  background: transparent;
  overflow: visible;
  border-radius: 16px;
}
.award-medal-ribbon {
  position: absolute;
  top: 3px;
  width: 52px;
  height: 45px;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
  background: linear-gradient(90deg, #213a30 0 16%, #517c44 16% 44%, #88a765 44% 57%, #517c44 57% 84%, #213a30 84%);
}
.award-medal {
  position: relative;
  width: 115px;
  height: 115px;
  margin-bottom: 6px;
  border: 1px solid #b79552;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 12px;
  background: radial-gradient(circle at 35% 24%, #fffdf4, #f3e5c7 72%, #e2c995);
  box-shadow: inset 0 0 0 4px #f5e6c6, inset 0 0 0 5px #c7ab72, 0 7px 12px #6b522229;
  transition: transform .25s, box-shadow .25s;
}
.award-medal-link:hover .award-medal { transform: translateY(-3px); box-shadow: inset 0 0 0 4px #f5e6c6, inset 0 0 0 5px #c7ab72, 0 10px 17px #6b522236; }
.award-medal > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 50%; }
.award-card:nth-child(2) .award-medal > img, .award-card:nth-child(3) .award-medal > img { object-fit: cover; }
.achievements-section .rail-track .award-details {
  flex: 1;
  border: 1px solid #dce3d3;
  border-radius: 13px;
  background: #fffefa;
  box-shadow: 0 4px 12px #24371c0b;
}
.achievements-section .rail-track .award-number { color: #98713a; margin-bottom: 6px; }
.achievements-section .rail-track .award-details p { color: #5f6957; }

@media (max-width: 760px) {
  .quick-giving .donation-card .custom-amount { margin-top: 9px; }
  .donation-card .custom-amount .input-wrap { height: 44px; }
  .achievements-section .rail-track .award-card > .award-medal-link { height: 135px; }
  .award-medal { width: 103px; height: 103px; }
  .award-medal-ribbon { width: 46px; height: 38px; }
}
@media (max-width: 375px) and (max-height: 740px) {
  .donation-card .custom-amount .input-wrap { height: 40px; }
  .quick-giving .donation-card .donation-summary { padding-block: 7px 8px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .quick-hero { gap: 7px; padding-top: 7px; }
  .quick-giving .donation-card { padding-top: 11px; }
  .quick-giving .card-top { margin-bottom: 7px; }
  .quick-giving .amount-heading { margin-block: 10px 8px; }
  .quick-giving .donation-card .custom-amount { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .award-medal { transition: none; }
}

/* An entrance waits for its own visible area, independently of the heading. */
@media (prefers-reduced-motion: no-preference) {
  [data-entrance] {
    translate: 0 0;
    scale: 1;
    transition: translate .72s cubic-bezier(.2,.72,.25,1), opacity .64s ease-out, scale .72s cubic-bezier(.2,.72,.25,1);
  }
  [data-entrance].entry-pending { opacity: .56; transition: none; }
  [data-entrance="right"].entry-pending { translate: 36px 0; }
  [data-entrance="left"].entry-pending { translate: -36px 0; }
  [data-entrance="rise"].entry-pending { translate: 0 27px; }
  [data-entrance="settle"].entry-pending { translate: 0 13px; scale: .965; }
  [data-entrance]:focus-within { opacity: 1; translate: 0 0; scale: 1; transition: none; }
}

/* A fixed strip of marks leads to the original achievement details. */
.award-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 555px);
  margin: 5px 0 13px;
}
.award-shortcut {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 9px 4px 8px;
  border: 1px solid #e0e5d5;
  border-radius: 13px;
  background: #fcfdf8;
  color: #4f5d42;
  font: inherit;
  font-size: 10px;
  line-height: 1.6;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.award-shortcut:hover, .award-shortcut[aria-current="true"] {
  background: #eef3e6;
  border-color: #a1b783;
  box-shadow: 0 3px 9px #49603916;
}
.award-mark {
  width: 49px;
  height: 49px;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid #bd9d59;
  background: #f6ecd6;
  box-shadow: inset 0 0 0 2px #fbf5e5;
}
.award-mark img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: contain; }
.award-shortcut:nth-child(2) .award-mark img, .award-shortcut:nth-child(3) .award-mark img { object-fit: cover; }
.achievements-section .rail-track > .award-card {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 15px 19px;
  border: 1px solid #dce3d3;
  background: #fffefa;
  box-shadow: 0 4px 10px #24371c0b;
}
.achievements-section .rail-track .award-card > .award-medal-link { width: 118px; height: 128px; }
.achievements-section .rail-track .award-details { padding: 7px 0; border: 0; background: transparent; box-shadow: none; }
.achievements-section .rail-track .award-card .award-medal { width: 94px; height: 94px; }
.achievements-section .rail-track .award-card .award-medal-ribbon { width: 44px; height: 36px; }
.achievements-section .rail-track .award-details p { max-width: 780px; }
@media (max-width: 760px) {
  .award-shortcuts { gap: 5px; margin-top: 4px; }
  .award-shortcut { padding: 7px 1px 6px; font-size: 7px; border-radius: 9px; gap: 4px; }
  .award-mark { width: 37px; height: 37px; padding: 3px; }
  .achievements-section .rail-track > .award-card { grid-template-columns: 65px minmax(0, 1fr); gap: 10px; padding: 13px 11px; }
  .achievements-section .rail-track .award-card > .award-medal-link { width: 65px; height: 84px; align-self: start; }
  .achievements-section .rail-track .award-card .award-medal { width: 61px; height: 61px; padding: 7px; }
  .achievements-section .rail-track .award-card .award-medal-ribbon { width: 30px; height: 24px; }
  .achievements-section .rail-track .award-details h3 { font-size: 13px; }
  .achievements-section .rail-track .award-details p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .award-shortcut { transition: none; }
}
