.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--g900);
  transform: translateY(-160%);
}

:root {
  --g50: #f3f9fc;
  --g100: #e4f2f9;
  --g300: #8cc7df;
  --g600: #1d7b35;
  --g800: #0b6eaa;
  --g900: #073b5c;
  --paper: #ffffff;
  --sand: #f7fafc;
  --sand2: #edf7f0;
  --line: #dce8ee;
  --line2: #c7dce7;
  --gold: #176f3a;
  --gold-bg: #eef8f1;
  --gold-line: #a8d8b5;
  --ink: #123044;
  --ink2: #496473;
  --ink3: #526b7a;
  --ok: #18763a;
  --ok-bg: #e7f6eb;
}

body {
  font-family: "Tajawal", system-ui, sans-serif;
}

.hero-title {
  margin-top: var(--s3);
}

h1, h2, h3, h4, h5, h6, .btn, button, .logo b {
  font-family: "Cairo", system-ui, sans-serif;
}

.topbar {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(7, 59, 92, .08);
}

.hero {
  background: var(--paper);
}

.hero-art::before {
  background: #e7f5ec;
}

.statline {
  background: #eef7fb;
}

.statline .fig b {
  font-variant-numeric: tabular-nums;
}

.case {
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(7, 59, 92, .06);
}

.cases-sparse {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px));
  justify-content: center;
}

.case .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case .ph.noimg {
  background: #e7f5ec;
}

.case .ph.noimg .initial {
  border: 3px solid #b9dfc3;
  color: var(--g900);
}

.case .amt {
  color: var(--g800);
}

.case .amount-private {
  color: var(--ink2);
  font-size: 15px;
}

.empty {
  border: 1px solid var(--line);
}

.empty .btn {
  margin-top: 20px;
}

.service-state {
  background: #f5fafd;
}

.public-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.drawer {
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 861px) {
  .drawer.open {
    display: none;
  }
}

.public-pagination span {
  color: var(--ink2);
  font-weight: 600;
}

.faq-section {
  padding-top: 0;
}

.faq-intro {
  margin: 6px 0 var(--s5);
}

.foot .footer-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--s3);
}

.foot a {
  min-height: 44px;
  display: flex;
  align-items: center;
  width: fit-content;
}

.foot {
  background: var(--g900);
}

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

.logo {
  min-width: 0;
}

.logo .official-mark {
  width: 90px;
  height: 62px;
  flex: none;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.logo b {
  display: block;
  line-height: 1.3;
}

@media (max-width: 1000px) {
  .hero .grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .hero-art {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .hero .copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero .kicker {
    max-width: 100%;
    line-height: 1.8;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero .d1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .topbar .inner {
    gap: var(--s2);
  }

  .logo {
    gap: 8px;
    font-size: 16px;
  }

  .logo .official-mark {
    width: 72px;
    height: 52px;
  }

  .logo small {
    max-width: 18ch;
    font-size: 10.5px;
  }

  .hero .sub {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero .acts {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero .acts .btn,
  .hero .acts .textlink {
    width: 100%;
  }

  .hero .acts .textlink {
    justify-content: center;
  }

}

.sponsorship-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #f4fafc 0%, #eef8f1 100%);
  color: var(--ink);
}

.sponsorship-topbar .inner {
  justify-content: space-between;
}

.sponsorship-shell,
.success-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: 56px 80px;
}

.request-intro {
  max-width: 760px;
  margin-block-end: 28px;
}

.request-intro h1,
.success-card h1 {
  margin: 8px 0 12px;
  color: var(--g900);
  font-size: clamp(28px, 4vw, 44px);
}

.request-intro p,
.request-summary p,
.success-card > p {
  color: var(--ink2);
  line-height: 1.9;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.request-summary,
.request-card,
.success-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(7, 59, 92, .08);
  padding: clamp(22px, 4vw, 36px);
}

.request-summary h2,
.request-card h2 {
  margin: 0 0 20px;
  color: var(--g900);
  font-size: 22px;
}

.request-summary h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.request-summary .facts {
  margin-block: 18px;
}

.request-amount,
.receipt-details {
  margin: 24px 0;
}

.request-amount div,
.receipt-details div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  background: var(--g50);
}

.request-amount dt,
.receipt-details dt {
  color: var(--ink2);
  font-size: 14px;
}

.request-amount dd,
.receipt-details dd {
  margin: 0;
  color: var(--g800);
  font-size: 24px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 8px;
  margin-block-end: 20px;
}

.field label {
  color: var(--g900);
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 14px;
  font: inherit;
}

.field input:focus-visible,
.consent-row input:focus-visible {
  outline: 3px solid rgba(11, 110, 170, .22);
  outline-offset: 2px;
  border-color: var(--g800);
}

.field small {
  color: var(--ink3);
}

.consent-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  line-height: 1.8;
  cursor: pointer;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--ok);
}

.submission-summary,
.privacy-note,
.form-alert {
  margin-block: 22px;
  border-radius: 14px;
  padding: 16px;
  background: var(--gold-bg);
  color: var(--ink2);
  line-height: 1.8;
}

.submission-summary p {
  margin: 4px 0 0;
}

.form-alert {
  border-inline-start: 4px solid #c83d4b;
  background: #fff1f2;
  color: #8b2330;
}

.form-alert ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}

.success-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.success-card {
  width: min(680px, 100%);
  text-align: center;
}

.success-card > img {
  width: 130px;
  height: 92px;
  object-fit: contain;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 20px auto;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 30px;
  font-weight: 700;
}

.receipt-details {
  display: grid;
  gap: 12px;
  text-align: start;
}

.receipt-details code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--g900);
  font-size: 13px;
  user-select: all;
}

@media (max-width: 760px) {
  .sponsorship-shell {
    width: min(100% - 24px, 680px);
    padding-block: 32px 56px;
  }

  .request-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsorship-topbar .logo span {
    display: none;
  }
}

@media (max-width: 430px) {
  .public-pagination {
    gap: 8px;
  }

  .public-pagination .btn {
    min-width: 0;
    padding-inline: 18px;
  }
}
