/* ==========================================================================
   donate/donate.css — the 2026 donate page ("Frosted").
   Loaded only by donate/index.php. donate/styles.css is deliberately NOT
   touched and no longer loaded here: /chai, /mechina and /newborn still use it.
   Everything is scoped under .dn so Bootstrap 3 and media/styles.css keep
   working for the navbar, the fixed logo and the footer bar.
   ========================================================================== */

.dn {
  --brand: #33669E;
  --brand-deep: #20416A;
  --brand-tint: #E4EDF8;
  --brass: #A9761F;
  --ink: #13202F;
  --ink-2: #3B4C60;
  --muted: #66768A;
  --glass: rgba(255, 255, 255, .8);
  --edge: rgba(255, 255, 255, .75);
  --line: rgba(19, 32, 47, .11);
  --good: #2E6A4E;
  --risk: #A9251C;

  font-family: 'Asap', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.dn *, .dn *::before, .dn *::after { box-sizing: border-box; }
.dn p { margin: 0; }

/* The old page used media/styles.css .bgimg, which is width:100vw and forces a
   horizontal scrollbar on any phone with a visible scrollbar. This is 100%. */
.dn-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2; background: #26456E center center / cover no-repeat;
}
.dn-bg::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(20, 40, 68, .5) 0, rgba(30, 55, 88, .34) 45%, rgba(20, 40, 68, .6) 100%);
}

.dn-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 110px; }

/* ---------------------------------------------------------------- hero ---- */
.dn-hero { padding: 96px 0 26px; text-align: center; color: #fff; }
.dn-hero img {
  height: 78px; width: auto; margin: 0 0 18px;
  filter: drop-shadow(0 3px 12px rgba(10, 25, 45, .5));
}
.dn-hero h1 {
  font-family: 'Oswald', sans-serif; font-weight: 500; margin: 0 0 10px;
  font-size: clamp(36px, 5.4vw, 56px); line-height: 1.12;
  text-shadow: 0 2px 16px rgba(10, 25, 45, .5); text-wrap: balance;
}
.dn-hero p {
  margin: 0 auto; font-size: 19px; max-width: 40ch; color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 12px rgba(10, 25, 45, .55);
}

/* ------------------------------------------------------------- surfaces ---- */
.dn-glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--edge); border-radius: 18px;
  box-shadow: 0 18px 44px -20px rgba(10, 25, 45, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
/* Safari < 15.4 and Firefox with backdrop-filter disabled get a solid panel
   rather than unreadable text over the photograph. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dn-glass { background: rgba(255, 255, 255, .96); }
}

.dn-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .dn-grid { grid-template-columns: 1fr; } }

.dn-panel { padding: 24px 26px; margin-bottom: 18px; }
.dn-panel > h2 {
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 20px; margin: 0 0 3px;
  display: flex; align-items: center; gap: 11px; color: var(--ink);
}
.dn-panel > h2 i {
  flex: none; width: 25px; height: 25px; border-radius: 8px;
  background: var(--brand); color: #fff; font-style: normal; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.dn-panel > p.dn-sub { margin: 0 0 20px; padding-left: 36px; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) {
  .dn-panel { padding: 20px 18px; }
  .dn-panel > p.dn-sub { padding-left: 0; }
}

/* ----------------------------------------------------------- frequency ---- */
.dn-freq {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px;
  border-radius: 13px; background: rgba(19, 32, 47, .06); margin: 0 0 22px;
}
.dn-freq label { position: relative; margin: 0; font-weight: 400; }
.dn-freq input {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: pointer;
}
.dn-freq span {
  display: flex; align-items: center; justify-content: center; height: 44px;
  border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background .16s, color .16s, box-shadow .16s;
}
.dn-freq input:checked + span {
  background: #fff; color: var(--brand-deep); box-shadow: 0 2px 8px rgba(19, 32, 47, .18);
}
.dn-freq input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

/* --------------------------------------------------------------- chips ---- */
.dn-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .dn-chips { grid-template-columns: repeat(2, 1fr); } }
.dn-chip { position: relative; margin: 0; font-weight: 400; }
.dn-chip input {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: pointer;
}
.dn-chip span {
  display: flex; align-items: center; justify-content: center; height: 56px;
  border-radius: 13px; background: rgba(255, 255, 255, .72);
  border: 1.5px solid rgba(19, 32, 47, .1);
  font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--ink);
  font-variant-numeric: tabular-nums; transition: all .16s;
}
.dn-chip--other span {
  font-family: 'Asap', 'Segoe UI', sans-serif; font-size: 15px;
  font-weight: 600; color: var(--ink-2);
}
.dn-chip span:hover { background: #fff; border-color: rgba(51, 102, 158, .5); }
.dn-chip input:checked + span {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(32, 65, 106, .8);
}
.dn-chip input:focus-visible + span {
  outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(51, 102, 158, .5);
}

.dn-other { margin: 12px 0 0; position: relative; max-width: 250px; }
.dn-other .dn-adorn {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--muted);
  pointer-events: none;
}
/* Specificity must beat the generic .dn input[type=text] rule below, which
   sets a symmetric padding — otherwise the $ sits on top of the caret. */
.dn .dn-other input[type=text] {
  padding-left: 36px; font-family: 'Oswald', sans-serif; font-size: 20px;
}

/* -------------------------------------------------------- monthly note ---- */
.dn-mnote {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(169, 118, 31, .13); border: 1px solid rgba(169, 118, 31, .28);
  font-size: 14.5px; line-height: 1.55; color: #5B4310;
}
.dn-mnote b { display: block; font-weight: 700; margin-bottom: 2px; }

/* -------------------------------------------------------------- fields ---- */
.dn-field { margin-bottom: 15px; }
.dn-field > label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  margin: 0 0 6px; line-height: 1.4;
}
.dn-row { display: grid; gap: 12px; }
.dn-row-2 { grid-template-columns: 1fr 1fr; }
.dn-row-3 { grid-template-columns: 1.3fr 1fr .8fr; }
@media (max-width: 520px) { .dn-row-2, .dn-row-3 { grid-template-columns: 1fr; } }
.dn-opt { font-weight: 400; color: var(--muted); }

.dn input[type=text], .dn input[type=email], .dn input[type=tel],
.dn select, .dn textarea {
  width: 100%; font-family: inherit; font-size: 16px; line-height: normal;
  color: var(--ink); background: rgba(255, 255, 255, .78);
  border: 1.5px solid rgba(19, 32, 47, .12); border-radius: 11px;
  padding: 0 13px; height: 49px; box-shadow: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.dn textarea { height: auto; min-height: 82px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.dn select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%2366768A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.dn input:focus, .dn select:focus, .dn textarea:focus {
  outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(51, 102, 158, .2);
}
.dn-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.dn-err { margin: 6px 0 0; font-size: 13px; color: var(--risk); font-weight: 600; }
.dn-field.is-invalid input, .dn-field.is-invalid select {
  border-color: var(--risk); box-shadow: 0 0 0 3px rgba(169, 37, 28, .14);
}

.dn-cardwrap { position: relative; }
.dn-cardwrap .dn-brand {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-deep); background: rgba(51, 102, 158, .14);
  padding: 4px 7px; border-radius: 6px;
}

/* ------------------------------------------------------------- summary ---- */
.dn-sum { position: sticky; top: 70px; padding: 22px 22px 20px; }
.dn-sum h3 {
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.dn-sum__amt {
  font-family: 'Oswald', sans-serif; font-size: 46px; line-height: 1;
  color: var(--brand-deep); font-variant-numeric: tabular-nums; margin: 0 0 4px;
}
.dn-sum__when { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.dn-sum__rows {
  margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 9px;
}
.dn-sum__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.dn-sum__rows b { color: var(--ink-2); font-weight: 600; text-align: right; }
.dn-sum__work {
  margin: 0 0 18px; padding: 13px 15px; border-radius: 12px;
  background: rgba(169, 118, 31, .12); font-size: 14px; line-height: 1.5; color: #5B4310;
}
.dn-sum__ways {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.dn-sum__ways a { color: var(--brand); }

/* -------------------------------------------------------------- button ---- */
.dn-submit {
  display: block; width: 100%; height: 58px; border: 0; border-radius: 13px;
  background: var(--brand); color: #fff; font-family: 'Oswald', sans-serif;
  font-weight: 500; font-size: 20px; cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(32, 65, 106, .85);
  transition: background .15s, opacity .15s;
}
.dn-submit:hover, .dn-submit:focus { background: var(--brand-deep); color: #fff; }
.dn-submit[disabled] { opacity: .72; cursor: default; }
.dn-submit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dn-spin {
  display: none; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
  animation: dn-rot .7s linear infinite;
}
.dn-submit.is-busy .dn-spin { display: inline-block; }
@keyframes dn-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dn-spin { animation-duration: 2.4s; }
  .dn *, .dn *::before, .dn *::after { transition-duration: .01ms !important; }
}
.dn-micro { margin: 11px 0 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }

@media (max-width: 960px) {
  .dn-sum {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 80;
    border-radius: 16px 16px 0 0; padding: 12px 18px;
    display: flex; align-items: center; gap: 14px;
  }
  .dn-sum h3, .dn-sum__rows, .dn-sum__work, .dn-micro, .dn-sum__ways { display: none; }
  .dn-sum__amt { font-size: 30px; margin: 0; }
  .dn-sum__when { margin: 0; font-size: 12px; }
  .dn-sum__col { flex: 1; min-width: 0; }
  .dn-submit { width: auto; padding: 0 24px; height: 52px; font-size: 18px; }
  .dn-wrap { padding-bottom: 96px; }
}

/* -------------------------------------------------------- trust strip ---- */
.dn-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 760px) { .dn-strip { grid-template-columns: 1fr; } }
.dn-strip div { padding: 16px 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.dn-strip b {
  display: block; font-family: 'Oswald', sans-serif; font-weight: 400; font-size: 11.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.dn-strip a { color: var(--brand); }

/* ------------------------------------------------------------- banners ---- */
.dn-banner {
  margin: 0 0 18px; padding: 15px 17px; border-radius: 13px;
  font-size: 14.5px; line-height: 1.55;
  background: rgba(169, 37, 28, .11); border: 1px solid rgba(169, 37, 28, .3);
  color: #7C1B14;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.dn-banner b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.dn-banner a { color: #7C1B14; text-decoration: underline; }

.dn-limited {
  margin: 0 0 18px; padding: 22px; border-radius: 16px;
  background: rgba(169, 118, 31, .16); border: 1px solid rgba(169, 118, 31, .34);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dn-limited h3 {
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 19px;
  margin: 0 0 6px; color: #4A360C;
}
.dn-limited p { margin: 0 0 14px; font-size: 14.5px; color: #5B4310; }
.dn-limited .dn-routes { display: flex; gap: 10px; flex-wrap: wrap; }
.dn-limited .dn-routes a {
  flex: 1; min-width: 150px; text-align: center; padding: 13px; border-radius: 11px;
  background: rgba(255, 255, 255, .85); color: var(--brand-deep);
  font-weight: 600; text-decoration: none; font-size: 14.5px;
}

/* ------------------------------------------------------------- receipt ---- */
.dn-done { max-width: 620px; margin: 0 auto; padding: 34px 32px 30px; text-align: center; }
@media (max-width: 520px) { .dn-done { padding: 26px 20px; } }
.dn-done__tick {
  width: 58px; height: 58px; border-radius: 50%; background: var(--good); color: #fff;
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  font-size: 29px; box-shadow: 0 10px 24px -10px rgba(46, 106, 78, .8);
}
.dn-done h2 {
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 32px;
  margin: 0 0 10px; line-height: 1.14; color: var(--ink);
}
.dn-done > p { margin: 0 auto 24px; font-size: 16.5px; color: var(--ink-2); max-width: 44ch; }
.dn-done__amt {
  font-family: 'Oswald', sans-serif; font-size: 58px; line-height: 1;
  color: var(--brand-deep); margin: 0 0 4px;
}
.dn-done__when {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 24px;
}
.dn-done__rows { text-align: left; margin: 0 0 22px; border-top: 1px solid var(--line); }
.dn-done__rows div {
  display: flex; justify-content: space-between; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.dn-done__rows span { color: var(--muted); }
.dn-done__rows b { font-weight: 600; text-align: right; color: var(--ink); }
.dn-done__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.dn-done__acts a, .dn-done__acts button {
  flex: 1; min-width: 145px; padding: 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--edge);
  color: var(--brand-deep); font-family: inherit; font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; text-align: center;
}

/* --------------------------------------------------------------- print ---- */
@media print {
  .navbar, #home-logo, .footer, .dn-bg, .dn-hero img,
  .dn-done__acts, .dn-sum, .dn-strip { display: none !important; }
  body { background: #fff !important; }
  .dn-done {
    max-width: none; box-shadow: none !important; border: 0 !important;
    background: #fff !important; text-align: left; padding: 0;
  }
  .dn-done__tick { display: none; }
  .dn-done h2 { font-size: 24px; }
  .dn { color: #000; }
}

/* ------------------------------------------------------------ helpers ---- */
.dn-vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.dn-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dn [hidden] { display: none !important; }
