:root {
  --blue: #1a4f9c;
  --blue-deep: #123872;
  --green: #178a38;
  --green-bright: #2eae52;
  --red: #c62d30;
  --ink: #1a1a1a;
  --muted: #4d4d4d;
  --line: #cfcfcf;
  --white: #fff;
  --serif: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: Barlow, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--blue);
  color: #fff;
  padding: 0.4rem 0.7rem;
}
.skip-link:focus { top: 0.5rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--blue-deep);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--green);
  box-shadow: none;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 26px rgba(8, 28, 64, 0.28); }

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  transition: min-height 0.25s ease;
}
.site-header.is-scrolled .bar { min-height: 62px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand strong { transition: color 0.2s ease; }
.brand:hover { color: #fff; }
.brand:hover strong { color: #b7f0c4; }
.brand img {
  width: 52px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand em {
  display: block;
  margin-top: 0.2rem;
  color: #b7f0c4;
  font-family: var(--sans);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
}

.nav-toggle {
  margin-left: auto;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font: 700 15px var(--sans);
  min-height: 40px;
  padding: 0 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: #fff;
  color: var(--blue-deep);
}

.site-nav {
  display: none;
  gap: 0.15rem 1rem;
  align-items: center;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.site-nav a:hover { color: #b7f0c4; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green-bright); }
.site-nav .give {
  background: var(--red);
  color: #fff;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
}
.site-nav .give:hover { background: #a82428; color: #fff; }

.mast {
  position: relative;
  min-height: calc(100dvh - 8.6rem);
  display: flex;
  align-items: flex-end;
  background: var(--blue-deep);
  overflow: hidden;
}
.mast-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 42%;
}
.mast-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.4rem;
}
.mast-card {
  background: var(--blue);
  color: #fff;
  max-width: 32rem;
  padding: 1.15rem 1.25rem 1rem;
}
.mast-card .since {
  margin: 0;
  color: #b7f0c4;
  font-weight: 700;
  font-size: 15px;
}
.mast-card h1 {
  margin: 0.15rem 0 0.55rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
}
.mast-card p { margin: 0; }
.mast-card .actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; align-items: center; margin-top: 0.9rem; }
.mast-card .textlink { color: #fff; font-weight: 700; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}
.facts b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--blue);
}
.facts span { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.mast-card .facts {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.mast-card .facts b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.mast-card .facts span { color: #d7e6f8; }
.mast-note {
  position: absolute;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 1;
  margin: 0;
  padding: 0.3rem 0.55rem;
  background: var(--blue-deep);
  color: #fff;
  font-size: 14px;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--sans);
  font-size: 16px;
  padding: 0.6rem 0.85rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #0f6b2a; color: #fff; }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.red:hover { background: #a82428; }
.textlink { font-weight: 700; }

.band { padding: 1.8rem 0; }
.band h2, .page h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--blue-deep);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  margin: 0 0 0.7rem;
  letter-spacing: 0;
}
h3 {
  font-family: var(--serif);
  color: var(--blue-deep);
  font-size: 26px;
  margin: 0 0 0.3rem;
  font-weight: 700;
}

.page { padding: 1.5rem 0 2.2rem; }
.page .intro { max-width: 38rem; margin-top: 0; }
.dateline { margin: 0 0 0.3rem; color: var(--green); font-weight: 700; font-size: 15px; }

.split { display: grid; gap: 1.4rem; }
.prose p { margin: 0 0 0.75rem; }
.plain { margin: 0.3rem 0 0; padding: 0; list-style: none; }
.plain li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.plain strong { color: var(--blue-deep); }
.other-giving { margin-top: 2.4rem; padding-top: 1.5rem; border-top: 4px solid var(--green); }
.section-intro { max-width: 42rem; margin: 0 0 1rem; }
.giving-options { display: grid; gap: 1rem; }
.giving-option { border: 1px solid var(--line); padding: 1rem; }
.giving-option h3 { font-size: 23px; }
.giving-option p { margin: 0 0 0.9rem; }
.giving-option .btn { font-size: 15px; }

.slideshow-frame {
  position: relative;
  background: var(--blue-deep);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.slideshow-frame:focus { outline: 3px solid var(--green); outline-offset: 3px; }
.slideshow-frame figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s linear;
}
.slideshow-frame figure.is-current { opacity: 1; z-index: 1; }
.slideshow-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.slideshow-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.45rem 0.75rem;
  background: var(--blue-deep);
  color: #fff;
  font-size: 16px;
}
.slideshow-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.slide-btn {
  font: 700 15px var(--sans);
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid var(--blue-deep);
  min-height: 44px;
  min-width: 5.4rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.slide-btn:hover { background: var(--blue-deep); color: #fff; }
.slide-ticks { display: flex; gap: 6px; flex: 1; align-items: center; }
.slide-ticks button {
  flex: 1;
  height: 3px;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
}
.slide-ticks button[aria-current="true"] { background: var(--blue); height: 5px; }
.slide-count { margin: 0; font-weight: 700; color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .slideshow-frame figure { transition: none; }
  .site-header,
  .bar,
  .brand strong,
  .nav-toggle,
  .site-nav,
  .site-nav a,
  .nav-shade { transition: none; animation: none; }
}

.shots { display: grid; gap: 0.8rem; grid-template-columns: 1fr; }
.shots figure { margin: 0; min-width: 0; }
.shots img { width: 100%; height: 210px; object-fit: cover; }
.shots figcaption, .caption { margin-top: 0.3rem; font-size: 15px; color: var(--muted); }
.mast-photo { margin: 0; }
.mast-photo img { width: 100%; height: 280px; object-fit: cover; }
.mast-photo figcaption { margin-top: 0.3rem; font-size: 15px; color: var(--muted); }

.ruled { width: 100%; border-collapse: collapse; font-size: 16px; }
.ruled th, .ruled td {
  text-align: left;
  padding: 0.6rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ruled th { font-size: 14px; color: var(--muted); font-weight: 700; }
.ruled td:first-child { color: var(--blue); font-weight: 700; }
.split > * { min-width: 0; }
.split figure { margin: 0; }
.split figure img,
.split .cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center center;
}
.split figure img.contain {
  max-height: none;
  height: auto;
  object-fit: contain;
}

.work { margin: 0; padding: 0; list-style: none; counter-reset: work; }
.work li {
  counter-increment: work;
  padding: 0.7rem 0 0.7rem 2.4rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.work li::before {
  content: counter(work);
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--green);
  line-height: 1;
}

.quote {
  margin: 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 4px solid var(--green);
  font-size: 20px;
  line-height: 1.4;
}

.notice {
  border-left: 4px solid var(--red);
  padding: 0.2rem 0 0.2rem 0.8rem;
}
.notice strong { display: block; color: var(--red); }
.notice p { margin: 0.15rem 0 0; }

form { display: grid; gap: 0.75rem; }
label { display: block; font-weight: 700; font-size: 15px; }
label:not(.check) input,
label:not(.check) select,
label:not(.check) textarea { margin-top: 0.25rem; }
input, select, textarea {
  font: 17px var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid #8d8d8d;
  padding: 0.5rem 0.55rem;
  width: 100%;
  min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
.req { color: var(--red); }
.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; min-height: 18px; margin-top: 0.2rem; }
.roles, .filters, .amounts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.roles button, .filter, .amounts button {
  font: 700 15px var(--sans);
  background: #fff;
  color: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  min-height: 40px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}
.roles button[aria-pressed="true"],
.filter[aria-pressed="true"],
.amounts button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.roles button[data-role="supporter"] { background: var(--green); border-color: var(--green); color: #fff; }
.roles button[data-role="supporter"][aria-pressed="true"] { background: var(--green-bright); border-color: var(--green-bright); }
.success { display: none; color: var(--green); font-weight: 700; }
.success.show { display: block; }
.hidden { display: none !important; }
.side { border-left: 4px solid var(--green); padding-left: 0.8rem; }
.side code {
  display: block;
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 42px);
  color: var(--blue);
  letter-spacing: 0.02em;
}
.entry { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.entry .meta { margin: 0; color: var(--muted); font-size: 14px; }
.faq details { border-top: 1px solid var(--line); padding: 0.65rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); }
.faq p { margin: 0.35rem 0 0; }

.site-footer {
  background: var(--blue-deep);
  color: #e4eef8;
  padding: 1.4rem 0 1rem;
  font-size: 15px;
}
.site-footer a { color: #fff; }
.foot { display: grid; gap: 0.8rem; }
.foot strong { font-family: var(--serif); font-size: 22px; display: block; line-height: 1; }
.foot em { color: #b7f0c4; }
.foot p { margin: 0.35rem 0 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.legal {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.8rem auto 0;
  color: #c5d4e6;
  font-size: 14px;
}
.foot ul a { display: inline-block; padding: 0.2rem 0; }

.form-two { display: grid; gap: 0.75rem; }

@media (min-width: 640px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots img { height: 230px; }
  .form-two { grid-template-columns: 1fr 1fr; }
  .form-two .full { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1.4fr 1fr; align-items: end; }
}

@media (min-width: 880px) {
  .split.two { grid-template-columns: 1.08fr 0.92fr; align-items: start; gap: 1.8rem; }
  .giving-options { grid-template-columns: repeat(3, 1fr); }
  .ruled td:first-child { white-space: nowrap; }
  .slideshow-frame { aspect-ratio: 16 / 9; }
  .band { padding: 2.2rem 0; }
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; margin-left: auto; gap: 0.15rem 0.9rem; }
  .wrap, .mast-layout, .legal { width: min(1120px, calc(100% - 3rem)); }
  .shots.three { grid-template-columns: repeat(3, 1fr); }
  .shots.three img { height: 220px; }
  .mast-card { padding: 1.35rem 1.45rem 1.15rem; }
}

.nav-shade {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(8, 24, 48, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-shade {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s;
}

@media (max-width: 1099px) {
  .brand em { display: none; }
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 1rem;
    left: auto;
    width: min(17.5rem, 74vw);
    z-index: 30;
    background: var(--blue-deep);
    padding: 0.35rem 0 0.7rem;
    border-top: 3px solid var(--green);
    box-shadow: 0 16px 36px rgba(8, 28, 64, 0.32);
    max-height: calc(100dvh - 7rem);
    overflow: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.22s ease, visibility 0s linear 0.28s;
  }
  .site-header.is-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s ease, opacity 0.22s ease, visibility 0s;
  }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 1rem;
    font-size: 18px;
  }
  .site-header.is-open .site-nav a {
    animation: menu-drop 0.34s ease both;
  }
  .site-header.is-open .site-nav a:nth-child(2) { animation-delay: 0.03s; }
  .site-header.is-open .site-nav a:nth-child(3) { animation-delay: 0.06s; }
  .site-header.is-open .site-nav a:nth-child(4) { animation-delay: 0.09s; }
  .site-header.is-open .site-nav a:nth-child(5) { animation-delay: 0.12s; }
  .site-header.is-open .site-nav a:nth-child(6) { animation-delay: 0.15s; }
  .site-header.is-open .site-nav a:nth-child(7) { animation-delay: 0.18s; }
  .site-header.is-open .site-nav a:nth-child(8) { animation-delay: 0.21s; }
  .site-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--green-bright);
    background: rgba(255, 255, 255, 0.08);
  }
  .site-nav .give {
    align-self: stretch;
    justify-content: center;
    margin: 0.45rem 1rem 0.15rem;
    text-align: center;
  }
}

@keyframes menu-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 879px) {
  .ruled.wide thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .ruled.wide,
  .ruled.wide tbody,
  .ruled.wide tr,
  .ruled.wide td { display: block; width: 100%; }
  .ruled.wide tr { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .ruled.wide td { border: 0; padding: 0.12rem 0; }
  .ruled.wide td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .ruled.wide td[data-label=""]::before { content: none; }
}

@media (max-width: 759px) {
  .mast { flex-direction: column; align-items: stretch; min-height: 0; }
  .mast-bg { position: relative; inset: auto; width: 100%; height: 52vw; min-height: 200px; max-height: 320px; flex: none; }
  .mast-layout { width: 100%; margin: 0; }
  .mast-card { max-width: none; }
  .mast-card h1 { font-size: clamp(34px, 10vw, 48px); }
  .mast-note { position: static; }
  .band { padding: 1.35rem 0; }
  .quote { font-size: 18px; }
}

@media (max-width: 479px) {
  .brand img { width: 44px; height: 40px; }
  .brand strong { font-size: 18px; }
  .bar { min-height: 64px; gap: 0.55rem; }
  .slide-btn { min-width: 4.5rem; padding-inline: 0.45rem; }
  .slideshow-bar { gap: 0.4rem; }
}
