/* ASMA Trust website - public styles. Sections: theme, header, hero, cards, forms, donation, footer. */
/* ===== THEME COLOURS (light + dark) and page basics ===== */
:root {
  --blue: #0b3a8c;
  --navy: #072a68;
  --gold: #fbbf24;
  --bg: #f4f8ff;
  --card: #fff;
  --ink: #14213d;
  --mut: #4b5a77;
  --line: #dbe6fa;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1630;
    --card: #10224a;
    --ink: #eef3ff;
    --mut: #b4c2e0;
    --line: #223a6e;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1630;
  --card: #10224a;
  --ink: #eef3ff;
  --mut: #b4c2e0;
  --line: #223a6e;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 18px;
}
/* ===== TOP BAR (email / phone strip) ===== */
.top {
  background: var(--navy);
  color: var(--ink);
  font-size: 14px;
}
.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 18px;
}
.top span {
  margin-right: 18px;
}
/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 46px;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  border: 2px solid transparent;
  cursor: pointer;
}
button.btn[style*="width:100%"] {
  display: flex;
}
/* a row of buttons: equal gaps, wraps cleanly, same height */
.btnrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btnrow.center {
  justify-content: center;
}
.btnrow .btn {
  margin: 0;
}
@media (max-width: 640px) {
  .btnrow .btn {
    flex: 1 1 140px;
  }
  .top .wrap > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
  }
  .top span {
    margin-right: 0;
    overflow-wrap: anywhere;
  }
}
.gold {
  background: var(--gold);
  color: #0a1a3d;
}
.out {
  border-color: #fff;
  color: var(--ink);
}
.blue {
  background: var(--blue);
  color: var(--ink);
}
/* ===== HEADER, LOGO AND MENU ===== */
header {
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px #0001;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo b {
  font-size: 30px;
  color: var(--blue);
  letter-spacing: 1px;
  line-height: 1;
}
.logo small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo b,
  :root:not([data-theme="light"]) .logo small {
    color: #fff;
  }
}
nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
}
nav a:hover,
nav a.on {
  background: var(--blue);
  color: var(--ink);
}
#mb {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--ink);
}
/* ===== HOME PAGE - HERO BANNER ===== */
.hero {
  background: linear-gradient(110deg, #072a68 0%, #0b3a8c 55%, #1c58b8 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 60px 18px 90px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  margin: 0 0 16px;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero p {
  font-size: 19px;
  max-width: 560px;
  opacity: 0.95;
}
.hero .cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.art {
  aspect-ratio: 1/1;
  max-width: 380px;
  margin: auto;
  width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff22, #ffffff08);
  display: grid;
  place-items: center;
  border: 3px dashed #fbbf2488;
  text-align: center;
  padding: 30px;
  font-size: 14px;
}
/* ===== HOME PAGE - FOUR INFO BOXES ===== */
.stats {
  margin: -48px auto 0;
  position: relative;
  z-index: 5;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 30px #0b3a8c22;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px;
}
.stats div {
  padding: 6px 16px;
  border-left: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.stats div:first-child {
  border: 0;
}
.ic {
  font-size: 34px;
}
.stats b {
  display: block;
  font-size: 17px;
  color: var(--blue);
}
.stats small {
  color: var(--mut);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stats b,
  :root:not([data-theme="light"]) h2.t,
  :root:not([data-theme="light"]) .about h3 {
    color: var(--gold);
  }
}
/* ===== SECTIONS, HEADINGS AND ABOUT BLOCK ===== */
section {
  padding: 54px 0;
}
h2.t {
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--navy);
}
h2.t:before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 10px;
}
.sub {
  color: var(--mut);
  margin: 0 0 26px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.about h3 {
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--navy);
}
.photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #fff;
  box-shadow: 0 8px 24px #0002;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
/* ===== CARDS AND ACTIVITY GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.act {
  text-align: center;
  transition: 0.25s;
}
.act:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px #0b3a8c26;
  border-color: var(--gold);
}
.act .ic {
  font-size: 42px;
}
.act h4 {
  margin: 8px 0 4px;
  color: var(--blue);
}
.act p {
  margin: 0;
  font-size: 14px;
  color: var(--mut);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .act h4 {
    color: var(--gold);
  }
}
/* ===== DONATION BAND / QUICK DONATE ===== */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.don {
  background: var(--navy);
  color: var(--ink);
  border-radius: 18px;
  padding: 26px;
}
.don h3 {
  margin: 0 0 4px;
  font-size: 26px;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.chip {
  border: 1px solid #fff6;
  background: #ffffff14;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
}
.chip.on {
  background: var(--gold);
  color: #0a1a3d;
  border-color: var(--gold);
}
.don input {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 0;
  margin-bottom: 10px;
  font-size: 15px;
}
/* ===== MAP, CONTACT CARD AND WHATSAPP BUTTON ===== */
.map {
  border-radius: 18px;
  background: repeating-linear-gradient(45deg, #dfeafc, #dfeafc 12px, #eaf2ff 12px, #eaf2ff 24px);
  display: grid;
  place-items: center;
  min-height: 240px;
  text-align: center;
  color: #0b3a8c;
  padding: 20px;
  font-weight: 700;
}
.contact li {
  list-style: none;
  margin: 0 0 10px;
}
.contact ul {
  padding: 0;
  margin: 0 0 14px;
}
.wa {
  display: inline-block;
  background: #25d366;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
}
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 6px 18px #0004;
  z-index: 30;
}
.note {
  font-size: 13px;
  color: var(--mut);
  margin-top: 10px;
}
/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: var(--ink);
  padding: 22px 0;
  font-size: 14px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dev {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0a1a3d;
  border-radius: 12px;
  padding: 8px 14px;
}
.dev img {
  height: 54px;
  width: auto;
}
.dev span {
  font-size: 13px;
  font-weight: 600;
  max-width: 230px;
}
@media (max-width: 860px) {
  .hero .wrap,
  .about,
  .vm,
  .band {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: -40px 12px 0;
  }
  .stats div {
    border: 0;
  }
  #mb {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 10px 20px #0002;
  }
  nav.open {
    display: flex;
  }
  .art {
    max-width: 260px;
  }
}

/* ===== FLASH MESSAGES (success / error) ===== */
.flash {
  max-width: 1180px;
  margin: 14px auto;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.flash.ok {
  background: #e3f8e9;
  color: #116a2e;
}
.flash.err {
  background: #fde8e8;
  color: #a31515;
}
.pj .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===== PROJECT CARDS ===== */
a.pj {
  display: block;
  color: inherit;
}
.pj .ph {
  overflow: hidden;
}
/* ===== BANNER SLIDESHOW ===== */
.slides {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 40px #0006;
  border: 3px solid #fbbf2466;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s;
}
.slides img.on {
  opacity: 1;
}
.pre {
  white-space: pre-line;
}
.page {
  padding: 40px 18px;
}
.pagehead {
  background: linear-gradient(110deg, #072a68, #0b3a8c);
  color: var(--ink);
  padding: 38px 0;
}
.pagehead h1 {
  margin: 0;
  font-size: 34px;
}
/* ===== FORMS AND INNER PAGES ===== */
label {
  display: block;
  font-weight: 600;
  margin: 12px 0 4px;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--card);
  color: var(--ink);
}
textarea {
  min-height: 100px;
}
.form {
  max-width: 640px;
  margin: auto;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.chipsl {
  display: flex;
  flex-wrap: wrap;
}

.chipsl a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}
.chipsl a.on {
  background: var(--blue);
  color: var(--ink);
}
/* ===== GALLERY ===== */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gal img,
.gal video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.gal p {
  margin: 6px 2px;
  font-size: 14px;
  color: var(--mut);
}
iframe.map {
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 18px;
  display: block;
}
.big {
  font-size: 44px;
  text-align: center;
}
.ok-t {
  color: #116a2e;
}
.err-t {
  color: #a31515;
}
/* ===== TRUSTEE CARDS (About page) ===== */
.tcard {
  text-align: center;
}
.tcard img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--gold);
  box-shadow: 0 6px 18px #0003;
  background: #fff;
  margin: 6px auto 4px;
  display: block;
}
.tcard h4 {
  margin: 12px 0 4px;
  font-size: 18px;
}
.tcard b {
  color: var(--blue);
}
@media (max-width: 860px) {
  .two {
    grid-template-columns: 1fr;
  }
}

nav a.adm {
  border: 2px solid var(--gold);
  color: var(--ink);
}
nav a.adm:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ASMA logo + contact map */
.logo img {
  height: 54px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  flex: none;
}
.flogo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flogo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex: none;
}
/* ===== CONTACT PAGE MAP ===== */
.mapbox {
  padding: 16px;
  margin-top: 6px;
}
.mapbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mapbar h3 {
  margin: 0;
  color: var(--navy);
}
.mapbtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mapbtns .btn {
  padding: 8px 20px;
  min-height: 42px;
  font-size: 15px;
}
iframe.gmap {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 14px;
}
@media (max-width: 640px) {
  .logo img {
    height: 46px;
  }
  .flogo img {
    height: 42px;
  }
  iframe.gmap {
    height: 320px;
  }
  .mapbtns {
    width: 100%;
  }
  .mapbtns .btn {
    flex: 1;
    text-align: center;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mapbar h3 {
    color: var(--gold);
  }
}
@media (min-width: 861px) {
  header .wrap {
    gap: 12px;
  }
  nav {
    flex-wrap: nowrap;
  }
  nav a {
    white-space: nowrap;
    padding: 9px 10px;
    font-size: 15px;
  }
  .logo {
    flex: 0 1 auto;
    min-width: 0;
  }
}

/* donation success + 80G */
.okc {
  max-width: 720px;
}
/* ===== DONATION / RECEIPT PAGES ===== */
.sum {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.sum div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.sum span {
  display: block;
  font-size: 12px;
  color: var(--mut);
}
.sum b {
  word-break: break-word;
}
.acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0;
}
.acts .btn {
  flex: 1 1 260px;
  text-align: center;
}
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e8eefb;
  color: #0b3a8c;
  font-size: 0.8em;
}
.pill.issued {
  background: #e3f8e9;
  color: #116a2e;
}
.pill.pan_needed,
.pill.na {
  background: #fdf3d7;
  color: #7a5a00;
}
@media (max-width: 640px) {
  .acts .btn {
    flex-basis: 100%;
  }
}

/* ---- UPI QR payment ---- */
/* ===== PAYMENT METHOD PICKER AND UPI QR BOX ===== */
.pms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.pm {
  display: block;
  cursor: pointer;
  margin: 0;
}
.pm input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pm span {
  display: block;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--card);
  height: 100%;
}
.pm b {
  display: block;
  color: var(--blue);
}
.pm small {
  display: block;
  font-size: 12px;
  color: var(--mut);
}
.pm input:checked + span {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.16);
  box-shadow: 0 0 0 2px rgba(201, 151, 28, 0.25);
}
.pm input:focus-visible + span {
  outline: 3px solid var(--blue);
}
.steps {
  padding-left: 20px;
  margin: 8px 0;
}
.steps li {
  margin: 4px 0;
}
@media (max-width: 720px) {
  .pms {
    grid-template-columns: 1fr;
  }
}
.tag.pend {
  background: #fff3cd;
  color: #7a5a00;
}
.tag.rej {
  background: #fde2e2;
  color: #a31515;
}
.tag.upi {
  background: #e5f0ff;
  color: #0b3a8c;
}

.slides.wide {
  aspect-ratio: 16/9;
}

/* ===== DONATE FORM: live validation messages ===== */
.fmsg {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.fmsg.bad {
  color: #e5484d;
}
.fmsg.good {
  color: #1f9d55;
}
.form input.bad,
.form textarea.bad {
  border-color: #e5484d !important;
  background-image: none;
  box-shadow: 0 0 0 3px #e5484d26;
}
.form input.good,
.form textarea.good {
  border-color: #1f9d55 !important;
}
#msg_email.bad:not(:empty) {
  cursor: pointer; /* the "Did you mean ...?" suggestion can be clicked */
}

/* ===== DONATE FORM: mobile box with country flag (intl-tel-input) ===== */
.itibox {
  display: block;
  width: 100%;
  --iti-border-color: var(--line, #cfd8ea);
  --iti-country-selector-bg: var(--card, #fff);
  --iti-hover-color: rgba(11, 58, 140, 0.1);
}
.itibox input {
  width: 100%;
}
.iti__country-container .iti__selected-country {
  border-radius: 10px 0 0 10px;
}
.iti__dropdown-content {
  color: #14213d;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px #0004;
  z-index: 60;
}
.iti__country-name,
.iti__dial-code {
  color: #14213d;
}
.iti__search-input {
  color: #14213d;
}

/* ===== MOBILE OVERFLOW GUARD (keeps buttons/cards inside the screen) ===== */
.two > *,
.wrap > *,
.card {
  min-width: 0;
}
.contact li {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .two {
    grid-template-columns: 1fr;
  }
}
.stats > div {
  min-width: 0;
}
@media (max-width: 640px) {
  .stats div {
    padding: 6px 8px;
    border-left: 0;
  }
}
@media (max-width: 640px) {
  .mapbtns .btn {
    padding: 8px 10px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* ===== DONOR MENU ON THE RECEIPT PAGE (after payment is verified) ===== */
.dmenu {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}
.dm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 28px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--card);
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.dm-toggle:hover,
.dm-toggle[aria-expanded="true"] {
  background: var(--blue);
  color: var(--ink);
}
.dm-ico {
  font-size: 26px;
  line-height: 1;
}
.dm-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  width: min(280px, calc(100vw - 32px));
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px #0b3a8c33;
}
.dm-list.open {
  display: block;
}
.dm-list a {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.dm-list a:hover,
.dm-list a.on {
  background: #e8eefb;
}
/* wide screens: the 4 options sit in one row under the button */
@media (min-width: 900px) {
  .dmenu {
    flex-direction: column;
    align-items: center;
  }
  .dm-list {
    position: static;
    transform: none;
    display: none;
    width: auto;
    margin-top: 10px;
  }
  .dm-list.open {
    display: flex;
    gap: 4px;
  }
}
.dpanel {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.dpanel[hidden] {
  display: none;
}
.dpanel h3 {
  margin: 0 0 10px;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dm-list a,
  :root:not([data-theme="light"]) .dpanel h3 {
    color: #fff;
  }
  :root:not([data-theme="light"]) .dm-list a:hover,
  :root:not([data-theme="light"]) .dm-list a.on {
    background: #ffffff1a;
  }
}
.dpanel {
  overflow-wrap: anywhere;
}

.dpanel .btnrow .btn {
  flex: 1 1 220px;
}
@media (max-width: 380px) {
  .dm-toggle {
    width: 100%;
  }
  .dpanel {
    padding: 14px;
  }
}

/* ===== DONATION STATUS TRACKER ===== */
.trk {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 22px 0 14px;
  padding: 0;
  counter-reset: none;
}
.trk li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  text-align: center;
  font-size: 14px;
  color: var(--muted, #5a6b8c);
}
.trk li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 4px;
  background: var(--line);
  z-index: 0;
}
.trk li:first-child::before {
  display: none;
}
.trk .dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--card);
  font-weight: 800;
  color: var(--muted, #5a6b8c);
}
.trk b {
  color: var(--navy);
  font-size: 15px;
}
.trk small {
  font-size: 12.5px;
}
.trk li.done::before,
.trk li.now::before {
  background: #2e9b4f;
}
.trk li.done .dot {
  background: #2e9b4f;
  border-color: #2e9b4f;
  color: var(--ink);
}
.trk li.now .dot {
  border-color: var(--gold, #fbbf24);
  background: #fff7dc;
  color: #7a5200;
  animation: trkpulse 1.4s ease-in-out infinite;
}
.trk li.bad::before {
  background: #c62828;
}
.trk li.bad .dot {
  background: #c62828;
  border-color: #c62828;
  color: var(--ink);
}
.trk li.bad b {
  color: #c62828;
}
@keyframes trkpulse {
  50% {
    box-shadow: 0 0 0 8px #fbbf2455;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trk li.now .dot {
    animation: none;
  }
}
.trk-live {
  text-align: center;
  color: var(--muted, #5a6b8c);
  margin: 6px 0 14px;
}
@media (max-width: 560px) {
  .trk {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 320px;
    margin-inline: auto;
  }
  .trk li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px 12px;
    padding: 0 0 18px;
    text-align: left;
  }
  .trk li::before {
    top: 36px;
    left: 17px;
    width: 4px;
    height: calc(100% - 36px);
  }
  .trk li:last-child {
    padding-bottom: 0;
  }
  .trk li small {
    flex-basis: 100%;
    margin-left: 48px;
    margin-top: -14px;
  }
  .trk li b {
    flex: 1;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trk b {
    color: #fff;
  }
  :root:not([data-theme="light"]) .trk li.now .dot {
    background: #3a3010;
    color: #fbbf24;
  }
}

/* ===== ☰ DONOR MENU IN THE HEADER, LEFT OF THE ASMA LOGO ===== */
.hl {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dmenu.hdrmenu {
  position: relative;
  display: block;
  margin: 0;
}
.hdrmenu .dm-toggle {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 12px;
}
.hdrmenu .dm-ico {
  font-size: 26px;
}
.hdrmenu .dm-list,
.hdrmenu .dm-list.open {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: none;
  width: min(260px, calc(100vw - 32px));
  margin: 0;
  flex-direction: column;
  z-index: 60;
}
.hdrmenu .dm-list {
  display: none;
}
.hdrmenu .dm-list.open {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hdrmenu .dm-toggle {
    border-color: #fff;
    color: #fff;
    background: #0b3a8c;
  }
}

/* highlighted notes on the donate form: bold, high contrast, gold marker */
.pannote {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(201, 151, 28, 0.14);
  border-left: 4px solid var(--gold, #c9971c);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0 14px;
}
