@font-face {
  font-family: "Onest";
  src: url("/assets/gNMZW3F-SZuj7zOT0IfSjTS16cPh9R-ZtxFMQWXgSQ-ab29efe834f4fe.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Onest";
  src: url("/assets/gNMZW3F-SZuj7zOT0IfSjTS16cPhXBiZtxFMQWXgSQ-39e7ea5e32d802.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --green: #39a46b;
  --green-dark: #287f50;
  --ink: #222222;
  --muted: #646b67;
  --surface: #ffffff;
  --background: #f4f5f6;
  --line: #dfe4e1;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font-family: "Onest", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.nidrana-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  transform: translateY(-160%);
}

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

.site-header { padding: 18px 24px 0; }

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100%, 1240px);
  min-height: 78px;
  margin: 0 auto;
  padding: 10px 14px 10px 24px;
  border-radius: 50px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(12, 32, 26, 0.07);
}

.brand { width: 58px; height: 58px; margin-right: auto; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }

.desktop-links { display: flex; align-items: center; gap: 24px; }
.desktop-links a, .mobile-links a { text-decoration: none; }
.desktop-links a:hover, .desktop-links a[aria-current="page"] { color: var(--green-dark); }

.nav-group { position: relative; }
.nav-group::after {
  content: "";
  height: 14px;
  left: -24px;
  pointer-events: auto;
  position: absolute;
  top: 100%;
  width: max(100%, 282px);
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--green-dark); }

.nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-trigger[aria-expanded="true"] .nav-chevron {
  transform: translateY(2px) rotate(225deg);
}

@media (min-width: 768px) {
  .nav-chevron { display: none; }
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 13px);
  left: -20px;
  z-index: 30;
  display: grid;
  gap: 3px;
  width: max-content;
  min-width: 238px;
  padding: 14px;
  border: 1px solid rgba(12, 32, 26, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(12, 32, 26, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
}

.nav-dropdown-right { right: -18px; left: auto; }

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a[aria-current="page"] {
  color: var(--green-dark);
  background: #edf8f1;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.header-cta, .continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.header-cta { padding: 0 22px; white-space: nowrap; }
.header-cta span, .continue-button span { font-size: 1.35em; line-height: 1; }

.menu-toggle { display: none; }
.mobile-links { display: none; }

main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 154px);
  padding: 32px 24px;
}

.donation-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(560px, 1.55fr);
  gap: clamp(28px, 4vw, 56px);
  width: min(100%, 1120px);
  padding: clamp(26px, 3.4vw, 46px);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(12, 32, 26, 0.08);
}

.intro { align-self: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  max-width: 460px;
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.intro > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.donation-option { position: relative; min-width: 0; cursor: pointer; }
.donation-option input { position: absolute; opacity: 0; pointer-events: none; }

.option-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcfb;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.option-body strong { color: var(--green-dark); font-size: 24px; line-height: 1; white-space: nowrap; }

.donation-option:hover .option-body { transform: translateY(-2px); border-color: #a7cdb7; }
.donation-option input:checked + .option-body { border-color: var(--green); background: #edf8f1; box-shadow: inset 0 0 0 1px var(--green); }
.donation-option input:focus-visible + .option-body { outline: 3px solid #1f6ecf; outline-offset: 3px; }

.custom-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.custom-choice { display: flex; align-items: center; gap: 9px; min-width: 132px; font-weight: 700; }
.custom-choice input { width: 18px; height: 18px; accent-color: var(--green-dark); }

.amount-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd3cf;
  border-radius: 12px;
  background: #fff;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.amount-field > span { padding-left: 14px; color: var(--muted); }
.amount-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px 12px 5px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  appearance: none;
}

.amount-field:hover,
.amount-field:hover input {
  background: #fff;
}

.amount-field:hover {
  border-color: #b8c7bd;
}

/* The field itself supplies the single blue keyboard-focus ring. */
.amount-field input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.amount-field:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.field-help, .field-error { margin: 7px 2px 0; color: var(--muted); font-size: 12px; }
.field-error { color: #a32626; }

.selected-amount { margin: 14px 0 9px; font-size: 17px; }
.continue-button { width: 100%; padding: 0 24px; cursor: pointer; }
.continue-button:hover:not(:disabled) { background: #1f6d44; }
.continue-button:disabled { cursor: not-allowed; opacity: 0.45; }

.development-message {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #654b00;
  background: #fff4c7;
  font-size: 12px;
  line-height: 1.45;
}

.information-link { display: inline-block; margin-top: 12px; color: var(--green-dark); font-size: 14px; font-weight: 700; }
.disclaimer { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 18px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 3px solid #1f6ecf; outline-offset: 3px; }

@media (max-width: 980px) {
  .desktop-links, .header-cta { display: none; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 48px;
    height: 48px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: #f1f4f2;
  }
  .menu-toggle span { display: block; width: 21px; height: 2px; background: var(--ink); }
  .mobile-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 10;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(12, 32, 26, 0.12);
  }
  .mobile-links:not([hidden]) { display: grid; }
  .mobile-links a { padding: 12px 14px; border-radius: 12px; }
  .mobile-links a:hover, .mobile-links a[aria-current="page"] { background: #edf8f1; color: var(--green-dark); }
  .mobile-links {
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }
  .mobile-links details { border-radius: 12px; }
  .mobile-links summary {
    position: relative;
    padding: 12px 40px 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-links summary::-webkit-details-marker { display: none; }
  .mobile-links summary::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    content: "";
    transform: translateY(-65%) rotate(45deg);
  }
  .mobile-links details[open] > summary {
    color: var(--green-dark);
    background: #edf8f1;
  }
  .mobile-links details[open] > summary::after { transform: translateY(-20%) rotate(225deg); }
  .mobile-submenu { display: grid; padding: 4px 0 8px 14px; }
  .mobile-submenu a { font-size: 0.94em; }
  .donation-panel { grid-template-columns: 1fr; gap: 26px; }
  .intro { text-align: center; }
  h1 { max-width: none; }
}

@media (max-width: 680px) {
  .site-header { padding: 10px 12px 0; }
  .site-nav { min-height: 68px; padding: 8px 10px 8px 18px; border-radius: 28px; }
  .brand { width: 48px; height: 48px; }
  main { min-height: auto; padding: 18px 12px 26px; }
  .donation-panel { padding: 26px 18px; border-radius: 26px; }
  h1 { font-size: 42px; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .option-body { min-height: 58px; padding: 13px 10px; }
  .custom-option { align-items: stretch; flex-direction: column; gap: 10px; }
  .site-footer { align-items: center; flex-direction: column; width: calc(100% - 24px); text-align: center; }
}

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