/* Shared visual language for every routed page.
   This file intentionally loads last so the directory, map, Zakat, contact and
   administrator screens use the same editorial system as the homepage. */
:root {
  --site-forest: #062f27;
  --site-forest-2: #0a4437;
  --site-ink: #10201b;
  --site-ivory: #f6f2e8;
  --site-paper: #fbfaf5;
  --site-gold: #c9a85b;
  --site-gold-light: #ead8a7;
  --site-muted: #63706b;
  --site-line: rgba(16, 32, 27, .13);
  --site-radius: 22px;
  --site-shadow: 0 22px 60px rgba(6, 47, 39, .1);
}

body {
  color: var(--site-ink);
  background: var(--site-paper);
}

body.inner-page {
  padding-top: 72px;
}

.site-header,
body.inner-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  height: 72px;
  padding: 0 clamp(18px, 4.5vw, 76px);
  background: rgba(5, 47, 39, .97);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 8px 32px rgba(2, 24, 20, .16);
  backdrop-filter: blur(16px);
}

.site-header .brand,
body.inner-page .site-header .brand,
.site-header nav a:not(.button),
body.inner-page .site-header nav a:not(.button) {
  color: #fff;
}

.site-header .brand {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header .site-brand {
  flex: 0 0 auto;
  padding: 0;
}

.site-brand-logo,
.footer-brand-logo,
.harvesting-hope-logo {
  display: block;
  height: auto;
}

.site-brand-logo {
  width: 98px;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .16));
}

.site-header .brand-mark {
  width: 32px;
  height: 32px;
  color: var(--site-gold);
  border-color: var(--site-gold);
}

.site-header nav {
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
}

.site-header nav a:not(.button) {
  position: relative;
  padding: 27px 0 24px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  transition: color .2s ease;
}

.site-header nav a:not(.button):hover,
.site-header nav a:not(.button)[aria-current="page"] {
  color: #fff;
}

.site-header nav a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1px;
  background: var(--site-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.site-header nav a:not(.button):hover::after,
.site-header nav a:not(.button)[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header .button-gold {
  border-radius: 9px;
  background: var(--site-gold);
  color: var(--site-forest);
}

.site-header .top-search {
  display: none;
}

.admin-access-link {
  margin-left: 24px;
  padding: 7px 0 7px 22px;
  border-left-color: rgba(255, 255, 255, .18);
  color: var(--site-gold-light);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.button,
.project-load-more {
  border-radius: 999px;
}

.button-green {
  background: var(--site-forest);
}

.button-gold {
  background: var(--site-gold);
  color: var(--site-forest);
}

.section {
  padding: clamp(78px, 9vw, 132px) clamp(20px, 7vw, 108px);
}

.directory-page,
.admin-page {
  min-height: calc(100vh - 72px);
  padding-top: clamp(82px, 9vw, 125px);
}

.directory-page {
  background:
    radial-gradient(circle at 92% 4%, rgba(201, 168, 91, .12), transparent 24%),
    linear-gradient(180deg, var(--site-ivory), var(--site-paper) 45%, #fff);
}

.section-heading {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-bottom: clamp(34px, 5vw, 64px);
  margin-left: auto;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--site-line);
}

.section-heading .eyebrow,
.project-filter-heading .eyebrow {
  color: #92701f;
}

.section-heading h1,
.section-heading h2 {
  max-width: 770px;
  color: var(--site-forest);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.section-heading > p {
  max-width: 500px;
  margin: 0 0 4px;
  color: var(--site-muted);
  font-size: 16px;
}

.filter-row,
.card-grid,
.projects-section > .project-filter-panel,
.projects-section > .project-grid,
.projects-section > .project-load-more {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.filter-row {
  gap: 12px;
  margin-bottom: 34px;
  padding: 13px;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 34px rgba(6, 47, 39, .05);
}

.search-field {
  min-height: 47px;
  border-color: #d7dfda;
  border-radius: 12px;
  overflow: hidden;
}

.chip {
  min-height: 39px;
  border-color: #d5ded8;
  color: #53635c;
  font-size: 12px;
  font-weight: 700;
}

.chip.active {
  border-color: var(--site-forest);
  background: var(--site-forest);
}

.card-grid,
.project-grid {
  gap: 20px;
}

.charity-card,
.project-card {
  border-color: var(--site-line);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 36px rgba(6, 47, 39, .055);
  overflow: hidden;
}

.charity-card {
  padding: 28px;
}

.charity-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 91, .45);
  box-shadow: var(--site-shadow);
}

.logo-tile {
  border: 1px solid #dde5df;
  background: #fff;
}

.logo-tile.logo-tile-dark {
  border-color: #154e42;
  background: linear-gradient(145deg, #0a493c, #06372e);
}

.charity-card .card-top .logo-tile {
  width: 82px;
  height: 58px;
}

.charity-card h3,
.project-card h3 {
  color: var(--site-forest);
}

.charity-card > p,
.project-card p,
.meta {
  color: var(--site-muted);
}

.card-actions button,
.card-actions a,
.project-card-actions .official-project-link {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--site-forest);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 11px;
  text-decoration: none;
}

.card-actions button {
  background: #fff;
}

.card-actions a,
.project-card-actions .official-project-link {
  margin-left: 0;
  background: var(--site-forest);
  color: #fff;
}

.text-button,
.project-load-more {
  min-height: 45px;
  border: 1px solid var(--site-forest);
  padding: 11px 20px;
  background: transparent;
  color: var(--site-forest);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.projects-section {
  background:
    radial-gradient(circle at 8% 6%, rgba(201, 168, 91, .11), transparent 22%),
    linear-gradient(180deg, #f1eee4, var(--site-paper));
}

.project-filter-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--site-line);
  border-top: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
}

.project-filter-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--site-line);
}

.project-filter-heading h3 {
  color: var(--site-forest);
  font-family: "Playfair Display", serif;
  font-size: 31px;
}

.project-filter-grid input,
.project-filter-grid select {
  min-height: 47px;
  border-radius: 11px;
  background: #fcfdfb;
}

.project-card {
  padding: 27px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card h3 {
  font-size: 25px;
}

/* The public country explorer keeps its current map but shares the typography,
   spacing and surface treatment used throughout the site. */
.map-section {
  min-height: calc(100vh - 72px);
  padding-top: clamp(82px, 9vw, 125px);
  background:
    radial-gradient(circle at 85% 12%, rgba(201, 168, 91, .22), transparent 27%),
    linear-gradient(145deg, #042a23, var(--site-forest-2));
}

.map-section .section-heading,
.map-filter-strip,
.map-layout {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.map-section .section-heading {
  border-bottom-color: rgba(255, 255, 255, .16);
}

.map-section .section-heading h1,
.map-section .section-heading h2 {
  color: #fff;
}

.map-section .section-heading > p {
  color: #bfd0ca;
}

.map-filter-strip {
  border-radius: 17px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .075);
  backdrop-filter: blur(10px);
}

.map-filter-chips button,
.map-search input {
  border-radius: 999px;
}

.map-card,
.country-panel {
  border-radius: 24px;
}

.map-card {
  box-shadow: 0 35px 80px rgba(0, 0, 0, .23);
}

.country-panel h3 {
  color: var(--site-forest);
  font-size: clamp(30px, 3.2vw, 43px);
}

/* About */
.about-page-hero {
  min-height: min(760px, 86svh);
  padding-top: clamp(118px, 13vw, 170px);
  background:
    radial-gradient(circle at 78% 18%, rgba(201, 168, 91, .18), transparent 28%),
    linear-gradient(145deg, #042821, #075042);
}

.about-page-hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -.055em;
}

.story-section[data-page="about"] .story-section-inner,
.about-mission-inner {
  width: min(1240px, calc(100% - 48px));
}

.story-about[data-page="about"] {
  background: linear-gradient(180deg, #dfe9e2, var(--site-paper) 20%, #fff);
}

.story-about-grid {
  position: relative;
}

.story-about-grid > .harvesting-hope-logo {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: clamp(175px, 18vw, 235px);
  margin: 0 0 30px;
  filter: drop-shadow(0 18px 34px rgba(6, 47, 39, .12));
}

.story-about-grid > .story-copy-column {
  grid-column: 1;
  grid-row: 1;
  padding-top: clamp(215px, 20vw, 275px);
}

.story-about-grid > .story-value-cards {
  grid-column: 2;
  grid-row: 1;
}

.story-about[data-page="about"] .story-copy-column h2,
.about-mission h2 {
  color: var(--site-forest);
  font-family: "Playfair Display", serif;
  letter-spacing: -.045em;
}

.story-about[data-page="about"] .story-value-cards article,
.about-principles article {
  border-color: var(--site-line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: 0 13px 38px rgba(6, 47, 39, .055);
}

.about-mission {
  background: var(--site-ivory);
}

.about-initiative-link {
  border: 1px solid rgba(234, 216, 167, .24);
  border-radius: 24px;
  background: var(--site-forest);
  box-shadow: var(--site-shadow);
}

/* Zakat */
.zakat-page {
  background: var(--site-paper);
}

.zakat-hero {
  min-height: min(700px, 86svh);
  background:
    radial-gradient(circle at 78% 25%, rgba(201, 168, 91, .2), transparent 32%),
    linear-gradient(145deg, #042821, #075042);
}

.zakat-hero h1,
.zakat-section h2,
.zakat-final h2 {
  letter-spacing: -.04em;
}

.zakat-reference-grid article,
.zakat-recipient-grid article,
.zakat-setup-card,
.zakat-summary-v2,
.zakat-project-card,
.zakat-verse-card,
.zakat-cta-panel {
  border-radius: var(--site-radius);
}

.zakat-reference-grid article,
.zakat-recipient-grid article,
.zakat-project-card {
  border-color: var(--site-line);
  box-shadow: 0 14px 42px rgba(6, 47, 39, .065);
}

.zakat-recipients,
.zakat-projects {
  background: var(--site-ivory);
}

.zakat-calculator-section,
.zakat-final {
  background: var(--site-forest);
}

.zakat-mode-switch,
.zakat-calculator-v2 input,
.zakat-calculator-v2 select,
.zakat-nisab-options span,
.zakat-live-prices > div:not(.zakat-live-meta),
.zakat-methodology > div {
  border-radius: 13px;
}

.zakat-card-actions a {
  border-radius: 999px;
}

/* Contact: a clear editorial introduction beside a contained email form. */
.submit-section {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding-top: clamp(82px, 9vw, 125px);
  background:
    radial-gradient(circle at 10% 15%, rgba(201, 168, 91, .18), transparent 24%),
    linear-gradient(140deg, #042821 0, var(--site-forest) 45%, #0b4b3d 100%);
}

.submit-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -270px;
  bottom: -270px;
  border: 1px solid rgba(234, 216, 167, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(234, 216, 167, .035), 0 0 0 140px rgba(234, 216, 167, .02);
  pointer-events: none;
}

.submit-intro,
.submit-section form {
  position: relative;
  z-index: 1;
}

.submit-intro {
  top: 105px;
}

.submit-section h1,
.submit-section h2 {
  max-width: 620px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.submit-section .submit-intro > p:not(.eyebrow) {
  max-width: 610px;
  color: #c8d9d3;
  font-size: 17px;
  line-height: 1.7;
}

.submit-trust-note {
  border: 1px solid rgba(234, 216, 167, .22);
  border-left: 1px solid rgba(234, 216, 167, .22);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, .065);
}

.submit-trust-note b {
  color: var(--site-gold-light);
}

.submit-section form {
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 26px;
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.request-type-fieldset legend {
  color: var(--site-gold-light);
  letter-spacing: .02em;
}

.request-type-options {
  gap: 10px;
}

.request-type-options label > span {
  min-height: 76px;
  border-radius: 14px;
  padding: 15px;
}

.request-type-options input:checked + span {
  border-color: var(--site-gold);
  background: rgba(201, 168, 91, .17);
}

.submit-section input,
.submit-section textarea {
  min-height: 48px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .09);
}

.submit-section textarea {
  min-height: 132px;
}

.submit-section #submission-button {
  min-height: 49px;
  padding-right: 26px;
  padding-left: 26px;
}

/* Admin retains its task-oriented layout but no longer looks like a separate app. */
.admin-page {
  background:
    radial-gradient(circle at 88% 2%, rgba(201, 168, 91, .12), transparent 25%),
    linear-gradient(180deg, var(--site-ivory), #edf2ee);
}

.admin-auth-card,
.admin-console,
.admin-manager-panel,
.admin-summary div,
.update-row,
.empty-queue {
  border-color: var(--site-line);
  border-radius: var(--site-radius);
}

.admin-auth-card,
.admin-console {
  border-top: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
}

.admin-auth-card h3,
.admin-console h3,
.admin-hero h2 {
  color: var(--site-forest);
}

.admin-auth-card input,
.admin-editor-form input,
.admin-editor-form select,
.admin-editor-form textarea,
.admin-record-actions button {
  border-radius: 10px;
}

.automation-note {
  border-radius: 18px;
  background: var(--site-forest);
}

dialog {
  border-radius: 24px;
  background: var(--site-paper);
  overflow: clip;
}

dialog .profile h2,
.admin-editor-form h2 {
  color: var(--site-forest);
}

.accounts-flow {
  position: relative;
  isolation: isolate;
  margin: 28px 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(7, 61, 49, .14);
  border-radius: 22px;
  color: var(--site-forest);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 244, 240, .92)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(7, 61, 49, .035) 54px 55px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.accounts-flow::after {
  position: absolute;
  z-index: -1;
  right: -78px;
  bottom: -94px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(201, 168, 91, .26);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(201, 168, 91, .055),
    0 0 0 48px rgba(7, 61, 49, .028);
  content: "";
}

.accounts-flow-heading,
.accounts-flow-label,
.accounts-flow-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.accounts-flow-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}

.accounts-flow-heading .eyebrow {
  margin-bottom: 5px;
}

.accounts-flow-heading h3 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.accounts-flow-heading > span {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(7, 61, 49, .14);
  border-radius: 999px;
  color: rgba(7, 61, 49, .72);
  background: rgba(255, 255, 255, .72);
  font-size: .75rem;
  font-weight: 700;
}

.accounts-flow-row + .accounts-flow-row {
  margin-top: 17px;
}

.accounts-breakdown-groups {
  display: grid;
  gap: 26px;
}

.accounts-breakdown-group {
  padding: 18px;
  border: 1px solid rgba(7, 61, 49, .1);
  border-radius: 17px;
  background: rgba(255, 255, 255, .58);
}

.accounts-segment-track {
  display: flex;
  width: 100%;
  height: 19px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 61, 49, .08);
  box-shadow:
    inset 0 1px 2px rgba(1, 31, 24, .1),
    0 1px 0 rgba(255, 255, 255, .9);
  animation: accounts-segment-reveal .8s cubic-bezier(.2, .75, .2, 1) both;
}

.accounts-breakdown-expenditure .accounts-segment-track {
  animation-delay: .1s;
}

.accounts-segment {
  position: relative;
  flex: 0 0 var(--segment-size);
  min-width: 2px;
  height: 100%;
  background: var(--segment-colour);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .6);
}

.accounts-segment:last-child {
  box-shadow: none;
}

.accounts-breakdown-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin-top: 14px;
}

.accounts-breakdown-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(7, 61, 49, .09);
}

.accounts-breakdown-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: rgba(7, 61, 49, .76);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.3;
}

.accounts-breakdown-name i {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--segment-colour);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--segment-colour), transparent 80%);
}

.accounts-breakdown-value strong {
  color: var(--site-forest);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.accounts-breakdown-value small {
  grid-column: 2;
  color: rgba(7, 61, 49, .52);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.accounts-flow-label {
  margin-bottom: 8px;
  font-size: .82rem;
}

.accounts-flow-label span {
  color: rgba(7, 61, 49, .68);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.accounts-flow-label strong {
  font-size: 1.02rem;
}

.accounts-flow-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 61, 49, .09);
  box-shadow: inset 0 1px 2px rgba(1, 31, 24, .08);
}

.accounts-flow-track span {
  display: block;
  width: var(--flow-width);
  height: 100%;
  border-radius: inherit;
  transform-origin: left;
  animation: accounts-flow-reveal .72s cubic-bezier(.2, .75, .2, 1) both;
}

.accounts-income .accounts-flow-track span {
  background: linear-gradient(90deg, #0a5a47, #2d8b70);
}

.accounts-spend .accounts-flow-track span {
  background:
    repeating-linear-gradient(120deg, rgba(255,255,255,.18) 0 7px, transparent 7px 14px),
    linear-gradient(90deg, #b78b28, var(--site-gold));
  animation-delay: .1s;
}

.accounts-flow-summary {
  align-items: stretch;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(7, 61, 49, .12);
}

.accounts-flow-summary > div {
  flex: 1;
}

.accounts-flow-summary small,
.accounts-flow-summary strong {
  display: block;
}

.accounts-flow-summary small {
  min-height: 2.4em;
  color: rgba(7, 61, 49, .64);
  font-size: .75rem;
  line-height: 1.3;
}

.accounts-flow-summary strong {
  margin-top: 5px;
  color: var(--site-forest);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.accounts-flow-note {
  margin: 19px 0 0;
  color: rgba(7, 61, 49, .68);
  font-size: .77rem;
  line-height: 1.55;
}

.accounts-source-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--site-forest);
  font-size: .78rem;
  font-weight: 800;
  text-decoration-color: var(--site-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.profile-grid-organisation {
  margin-top: 24px;
}

.profile-register-address {
  display: grid;
  gap: 6px;
  margin: 14px 0 24px;
  padding: 17px 19px;
  border: 1px solid rgba(7, 61, 49, .13);
  border-left: 4px solid var(--site-gold);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, rgba(244, 239, 223, .76), rgba(255, 255, 255, .96));
}

.profile-register-address small {
  color: rgba(7, 61, 49, .62);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-register-address address {
  color: var(--site-forest);
  font-size: .96rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.5;
}

.profile-register-address span {
  color: rgba(7, 61, 49, .62);
  font-size: .72rem;
  line-height: 1.45;
}

.profile-important-note {
  padding: 15px 17px;
  border-left: 3px solid var(--site-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(201, 168, 91, .1);
}

@keyframes accounts-flow-reveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes accounts-segment-reveal {
  from {
    clip-path: inset(0 100% 0 0 round 999px);
  }
  to {
    clip-path: inset(0 0 0 0 round 999px);
  }
}

html.charity-profile-open,
body.charity-profile-open {
  overflow: hidden;
  overscroll-behavior: none;
}

#charity-dialog {
  width: min(760px, calc(100% - 30px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  overscroll-behavior: contain;
}

#charity-dialog[open] {
  display: flex;
  flex-direction: column;
}

#charity-dialog #dialog-content {
  min-height: 0;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

#charity-dialog .dialog-close {
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 20px rgba(1,31,24,.16);
}

@media (max-width: 600px) {
  #charity-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  #charity-dialog #dialog-content {
    max-height: calc(100dvh - 16px);
  }

  #charity-dialog .profile {
    padding: 58px 18px 28px;
  }

  .accounts-flow {
    margin: 22px 0;
    padding: 19px 16px;
    border-radius: 17px;
  }

  .accounts-flow-heading {
    display: block;
  }

  .accounts-flow-heading > span {
    display: inline-flex;
    margin-top: 10px;
  }

  .accounts-flow-summary {
    gap: 12px;
  }

  .accounts-flow-summary small {
    min-height: 3.8em;
  }

  .accounts-breakdown-group {
    padding: 15px 13px;
  }

  .accounts-breakdown-values {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .accounts-breakdown-value {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .accounts-breakdown-value small {
    grid-column: 3;
    min-width: 44px;
  }

  #charity-dialog .profile .card-actions {
    display: grid;
    gap: 12px;
  }

  #charity-dialog .profile .card-actions a {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-left: 0;
  }
}

footer {
  position: relative;
  border-top: 1px solid rgba(234, 216, 167, .22);
  background: #032720;
  color: #bdcec8;
}

footer .brand {
  color: #fff;
}

footer .footer-brand {
  width: fit-content;
}

.footer-brand-logo {
  width: clamp(132px, 13vw, 170px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .18));
}

footer p {
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:not(.button) {
    font-size: 11px;
  }

  .admin-access-link {
    margin-left: 14px;
    padding-left: 14px;
  }

  .card-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .story-about-grid > .harvesting-hope-logo,
  .story-about-grid > .story-copy-column,
  .story-about-grid > .story-value-cards {
    grid-column: 1;
    grid-row: auto;
  }

  .story-about-grid > .harvesting-hope-logo {
    width: 190px;
    margin-bottom: -6px;
  }

  .story-about-grid > .story-copy-column {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  body.inner-page {
    padding-top: 68px;
  }

  .site-header,
  body.inner-page .site-header {
    height: 68px;
  }

  .site-header .menu-button,
  body.inner-page .site-header .menu-button {
    display: block;
    margin-left: auto;
    border-color: rgba(255, 255, 255, .4);
    border-radius: 8px;
    color: #fff;
  }

  .site-header nav,
  body.inner-page .site-header nav {
    top: 60px;
    right: 14px;
    left: 14px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    border: 1px solid #dbe4de;
    border-radius: 18px;
    padding: 18px;
    background: var(--site-paper);
    box-shadow: 0 22px 55px rgba(1, 24, 19, .24);
  }

  .site-header nav a:not(.button),
  body.inner-page .site-header nav a:not(.button) {
    padding: 11px 8px;
    color: var(--site-forest);
    font-size: 14px;
  }

  .site-header nav a:not(.button)::after {
    display: none;
  }

  .site-header nav .button {
    text-align: center;
  }

  .admin-access-link {
    margin-left: 12px;
    padding-left: 12px;
  }

  .directory-page,
  .admin-page,
  .map-section,
  .submit-section {
    padding-top: 76px;
  }

  .section-heading {
    display: grid;
    gap: 20px;
  }

  .section-heading > p {
    margin: 0;
  }

  .submit-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .submit-intro {
    position: static;
  }

  .about-page-hero-inner > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .section {
    padding: 68px 18px;
  }

  .directory-page,
  .admin-page,
  .map-section,
  .submit-section {
    padding-top: 62px;
  }

  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-header .brand {
    font-size: 13px;
  }

  .site-brand-logo {
    width: 82px;
    max-height: 48px;
  }

  .site-header .brand-mark {
    width: 28px;
    height: 28px;
  }

  .admin-access-link {
    border-left: 0;
    margin-left: 8px;
    padding-left: 0;
    font-size: 9px;
  }

  .section-heading {
    margin-bottom: 30px;
    padding-bottom: 22px;
  }

  .section-heading h1,
  .section-heading h2,
  .submit-section h1,
  .submit-section h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .section-heading > p,
  .submit-section .submit-intro > p:not(.eyebrow) {
    font-size: 15px;
  }

  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    padding: 10px;
  }

  .filter-row > * {
    width: 100%;
  }

  .chips {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .chip {
    flex: none;
  }

  .charity-card,
  .project-card {
    padding: 23px;
  }

  .project-filter-panel {
    border-radius: 18px;
  }

  .project-filter-heading {
    gap: 12px;
  }

  .map-filter-strip {
    padding: 10px;
  }

  .map-card,
  .country-panel {
    border-radius: 18px;
    padding: 17px;
  }

  .world-map {
    min-height: 310px;
  }

  .about-page-hero {
    min-height: 720px;
    padding: 118px 20px 70px;
  }

  .about-page-hero h1 {
    font-size: clamp(45px, 14vw, 66px);
    line-height: .96;
  }

  .story-section[data-page="about"] .story-section-inner,
  .about-mission-inner {
    width: min(100% - 36px, 1240px);
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  .about-principles article {
    min-height: 0;
  }

  .about-principles h3 {
    margin-top: 26px;
  }

  .about-initiative-link,
  .zakat-final .zakat-wrap,
  .zakat-cta-panel {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .zakat-section {
    padding: 75px 0;
  }

  .zakat-wrap {
    width: min(100% - 34px, 1180px);
  }

  .zakat-verse-card,
  .zakat-setup-card,
  .zakat-summary-v2,
  .zakat-cta-panel {
    border-radius: 18px;
  }

  .submit-section form {
    grid-template-columns: 1fr;
    padding: 19px;
    border-radius: 20px;
  }

  .request-type-options {
    grid-template-columns: 1fr;
  }

  .request-type-options label > span {
    min-height: 68px;
  }

  footer {
    gap: 20px;
    padding: 38px 20px;
  }

  dialog {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .charity-card,
  .project-card,
  .site-header nav a::after,
  .accounts-flow-track span {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* First-visit email update invitation. */
.welcome-signup-dialog {
  width: min(850px, calc(100% - 32px));
  max-width: 850px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 91, .42);
  border-radius: 26px;
  background: var(--site-paper);
  color: var(--site-ink);
  box-shadow: 0 34px 110px rgba(0, 28, 22, .46);
}

.welcome-signup-dialog[open] {
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(0, 1.35fr);
  animation: welcome-signup-in .42s cubic-bezier(.2, .75, .25, 1) both;
}

.welcome-signup-dialog::backdrop {
  background: rgba(0, 31, 24, .66);
  backdrop-filter: blur(9px);
}

.welcome-signup-close {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 18px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(10, 56, 46, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--site-forest);
  font: 700 10px/1 'DM Sans', sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.welcome-signup-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 42px;
  background:
    radial-gradient(circle at 20% 15%, rgba(226, 196, 111, .26), transparent 25%),
    linear-gradient(155deg, #063f34 0%, #002d25 68%, #001f19 100%);
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.welcome-signup-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.8) .8px, transparent .8px);
  background-size: 18px 18px;
}

.welcome-signup-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(155px, 65%);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .2));
}

.welcome-signup-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin-bottom: 26px;
  transform: rotate(45deg);
  border: 1px solid var(--site-gold);
  color: var(--site-gold);
  font: italic 700 24px/1 'Playfair Display', serif;
}

.welcome-signup-mark::first-letter { transform: rotate(-45deg); }

.welcome-signup-visual p {
  position: relative;
  z-index: 1;
  margin: 0;
  font: 600 clamp(35px, 4.5vw, 54px)/.98 'Playfair Display', serif;
}

.welcome-signup-visual em { color: #e1c674; }

.welcome-signup-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(225, 198, 116, .32);
  border-radius: 50%;
}

.welcome-signup-orbit.orbit-one { width: 330px; height: 330px; right: -170px; bottom: -75px; }
.welcome-signup-orbit.orbit-two { width: 210px; height: 210px; right: -85px; bottom: -15px; }

.welcome-signup-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px clamp(34px, 5vw, 60px) 46px;
}

.welcome-signup-kicker {
  margin: 0 0 13px;
  color: #9b7725;
  font: 700 10px/1.2 'DM Sans', sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.welcome-signup-content h2 {
  max-width: 440px;
  margin: 0;
  color: var(--site-forest);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
}

.welcome-signup-content > p:not(.welcome-signup-kicker) {
  margin: 18px 0 20px;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.65;
}

.welcome-signup-benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--site-ink);
  font-size: 13px;
}

.welcome-signup-benefits li { display: flex; align-items: center; gap: 10px; }
.welcome-signup-benefits li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  transform: rotate(45deg);
  background: var(--site-gold);
}

.newsletter-signup-form {
  margin-top: 2px;
}

.newsletter-signup-form > label {
  display: block;
  margin-bottom: 8px;
  color: #52635d;
  font-size: 12px;
  font-weight: 700;
}

.newsletter-signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.newsletter-signup-row input {
  min-width: 0;
  min-height: 50px;
  border: 1px solid #cbd8d2;
  border-radius: 999px;
  background: #fff;
  padding: 12px 18px;
  color: var(--site-ink);
  font: inherit;
}

.newsletter-signup-row input:focus {
  border-color: var(--site-gold);
}

.newsletter-signup-row button:disabled {
  cursor: wait;
  opacity: .68;
}

.newsletter-signup-status {
  min-height: 19px;
  margin: 9px 0 0;
  color: #236550;
  font-size: 11px;
  line-height: 1.5;
}

.newsletter-signup-status.error {
  color: #9b3c32;
}

.welcome-signup-content.has-newsletter-success {
  position: relative;
}

.welcome-signup-content.has-newsletter-success > :not(.newsletter-success-panel) {
  display: none;
}

.newsletter-success-panel {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 390px;
  outline: 0;
}

.newsletter-success-panel[hidden] {
  display: none;
}

.newsletter-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--site-forest);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 57, 45, .2);
  font: 700 28px/1 'DM Sans', sans-serif;
}

.newsletter-success-panel h3 {
  max-width: 440px;
  margin: 0;
  color: var(--site-forest);
  font: 700 clamp(34px, 5vw, 50px)/1.02 'Playfair Display', serif;
}

.newsletter-success-panel > p:not(.welcome-signup-kicker) {
  max-width: 430px;
  margin: 18px 0 28px;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.65;
}

.newsletter-success-done {
  min-width: 132px;
}

.welcome-signup-actions { display: flex; align-items: center; gap: 12px; }

.welcome-signup-primary,
.welcome-signup-later {
  min-height: 50px;
  border-radius: 999px;
  font: 700 12px/1 'DM Sans', sans-serif;
  cursor: pointer;
}

.welcome-signup-primary {
  padding: 0 24px;
  border: 1px solid var(--site-forest);
  background: var(--site-forest);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 57, 45, .18);
}

.welcome-signup-later {
  align-self: flex-start;
  margin-top: 3px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--site-forest);
}

.welcome-signup-primary:hover { background: #075747; transform: translateY(-1px); }
.welcome-signup-later:hover { background: rgba(0, 57, 45, .06); }
.welcome-signup-content > small { margin-top: 21px; color: #707b76; font-size: 10px; line-height: 1.5; }

@keyframes welcome-signup-in {
  from { opacity: 0; transform: translateY(20px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .welcome-signup-dialog { width: min(430px, calc(100% - 24px)); border-radius: 22px; }
  .welcome-signup-dialog[open] { display: block; max-height: calc(100dvh - 28px); overflow-y: auto; }
  .welcome-signup-visual { min-height: 178px; place-content: center; padding: 28px; }
  .welcome-signup-logo { width: 112px; margin: 0 auto 17px; }
  .welcome-signup-visual p { font-size: 34px; }
  .welcome-signup-content { padding: 31px 25px 27px; }
  .welcome-signup-content h2 { max-width: 330px; font-size: clamp(31px, 10vw, 40px); }
  .welcome-signup-content > p:not(.welcome-signup-kicker) { margin: 14px 0 17px; font-size: 14px; }
  .welcome-signup-benefits { gap: 8px; margin-bottom: 21px; }
  .newsletter-signup-row { grid-template-columns: 1fr; }
  .welcome-signup-actions { align-items: stretch; flex-direction: column; }
  .welcome-signup-primary, .welcome-signup-later { width: 100%; }
  .welcome-signup-content > small { margin-top: 15px; }
  .newsletter-success-panel { min-height: 330px; justify-items: center; text-align: center; }
  .newsletter-success-panel h3 { font-size: clamp(31px, 10vw, 40px); }
  .newsletter-success-done { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-signup-dialog[open] { animation: none; }
  .welcome-signup-primary { transition: none; }
}

/* Legacy account component styles remain unmounted; the public UI uses email-only updates. */
.member-access-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(234, 216, 167, .48);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 700 11px/1 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.member-access-link:hover,
.member-access-link.is-signed-in {
  border-color: var(--site-gold);
  background: var(--site-gold);
  color: var(--site-forest);
}

.member-access-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.member-access-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -4px;
  left: -3px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: inherit;
}

.member-dialog {
  width: min(720px, calc(100% - 28px));
  max-width: 720px;
  padding: 0;
  color: var(--site-ink);
  box-shadow: 0 40px 120px rgba(2, 24, 20, .42);
}

.member-auth-shell {
  padding: clamp(30px, 5vw, 52px);
  background:
    radial-gradient(circle at 100% 0, rgba(201, 168, 91, .15), transparent 32%),
    var(--site-paper);
}

.member-auth-shell h2 {
  max-width: 570px;
  color: var(--site-forest);
  font-size: clamp(31px, 5vw, 47px);
}

.member-auth-intro {
  max-width: 590px;
  margin: 16px 0 27px;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.7;
}

.member-provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.member-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: #fff;
  color: var(--site-ink);
  font: 700 13px/1 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.member-provider-button[data-member-provider="apple"] {
  border-color: #10201b;
  background: #10201b;
  color: #fff;
}

.member-provider-button > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #10201b;
  font-weight: 800;
}

.member-provider-button .apple-symbol {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.member-provider-button:hover {
  z-index: 1;
  border-color: var(--site-gold);
  box-shadow: 0 12px 30px rgba(6, 47, 39, .11);
  transform: translateY(-2px);
}

.member-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #7b8782;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.member-divider::before,
.member-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--site-line);
}

.member-email-form > label {
  display: block;
  margin-bottom: 8px;
  color: #52635d;
  font-size: 12px;
  font-weight: 700;
}

.member-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.member-email-row input {
  min-width: 0;
  border: 1px solid #cbd8d2;
  border-radius: 12px;
  background: #fff;
  padding: 13px 15px;
  color: var(--site-ink);
  font: inherit;
}

.member-news-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 19px 0 0;
  padding: 15px;
  border: 1px solid rgba(201, 168, 91, .35);
  border-radius: 14px;
  background: #fffaf0;
  cursor: pointer;
}

.member-news-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--site-forest);
}

.member-news-consent b,
.member-news-consent small {
  display: block;
}

.member-news-consent small,
.member-privacy-note {
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 11px;
  line-height: 1.55;
}

.member-privacy-note {
  margin-bottom: 0;
}

.member-account-heading {
  display: flex;
  gap: 17px;
  align-items: center;
  margin: 14px 0 28px;
}

.member-account-heading h2 {
  font-size: clamp(31px, 5vw, 45px);
}

.member-account-heading p {
  margin: 5px 0 0;
  color: var(--site-muted);
}

.member-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background-color: var(--site-forest);
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 0 1px var(--site-gold);
  color: #fff;
  font: 700 23px/1 'Playfair Display', serif;
}

.member-preference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: #fff;
}

.member-preference-card h3 {
  font: 700 16px/1.25 'DM Sans', sans-serif;
}

.member-preference-card p {
  margin: 7px 0 0;
  color: var(--site-muted);
  font-size: 12px;
  line-height: 1.55;
}

.member-toggle {
  display: grid;
  grid-template-columns: auto;
  justify-items: center;
  gap: 6px;
  color: var(--site-muted);
  font-size: 10px;
  cursor: pointer;
}

.member-toggle input {
  position: absolute;
  opacity: 0;
}

.member-toggle span {
  position: relative;
  display: block;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: #cbd5d1;
  transition: background .2s ease;
}

.member-toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.member-toggle input:checked + span {
  background: var(--site-forest-2);
}

.member-toggle input:checked + span::after {
  transform: translateX(21px);
}

.member-account-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.member-signout-button {
  border: 0;
  background: transparent;
  color: var(--site-muted);
  font: 700 12px/1 'DM Sans', sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.member-auth-status {
  min-height: 20px;
  margin: 18px 0 0;
  color: #236550;
  font-size: 12px;
  line-height: 1.5;
}

.footer-member-cta {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.footer-member-cta p {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.footer-signup-button {
  border: 0;
  border-bottom: 1px solid var(--site-gold);
  background: transparent;
  padding: 3px 0;
  color: var(--site-gold-light);
  font: 700 12px/1.3 'DM Sans', sans-serif;
  cursor: pointer;
}

.footer-member-cta small {
  color: #8fa59d;
}

@media (max-width: 1100px) {
  .member-access-link {
    margin-left: 10px;
    padding-inline: 11px;
  }
}

@media (max-width: 900px) {
  .site-header .menu-button {
    margin-left: auto;
  }

  .member-access-link {
    margin-left: 9px;
  }

  .footer-member-cta {
    margin-top: 5px;
  }
}

@media (max-width: 600px) {
  .member-provider-grid,
  .member-email-row,
  .member-preference-card {
    grid-template-columns: 1fr;
  }

  .member-email-row .button {
    width: 100%;
  }

  .member-preference-card {
    align-items: start;
  }

  .member-toggle {
    justify-self: start;
    grid-template-columns: auto auto;
    align-items: center;
  }

  .member-account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .member-account-actions .button {
    width: 100%;
  }
}

@media (max-width: 470px) {
  .site-header {
    padding-inline: 13px;
  }

  .site-header .brand {
    font-size: 13px;
  }

  .member-access-link {
    width: 39px;
    height: 39px;
    justify-content: center;
    padding: 0;
  }

  .member-access-link #member-access-label {
    display: none;
  }

  .admin-access-link {
    margin-left: 8px;
    padding-left: 9px;
    font-size: 9px;
  }

  .member-auth-shell {
    padding: 31px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-access-link,
  .member-provider-button,
  .member-toggle span,
  .member-toggle span::after {
    transition: none !important;
  }
}

/* Clear public project-status explanation. */
.review-status-guide {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 54px);
  width: min(1240px, 100%);
  margin: 0 auto 26px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: linear-gradient(135deg, #fff, #f8f6ee);
  box-shadow: 0 14px 40px rgba(6, 47, 39, .06);
}

.review-status-guide-heading .eyebrow {
  margin-bottom: 8px;
}

.review-status-guide-heading h3 {
  color: var(--site-forest);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.08;
}

.review-status-guide-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.65;
}

.review-status-items {
  display: grid;
  gap: 10px;
}

.review-status-items article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e0e6e2;
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
}

.review-status-items b {
  color: var(--site-forest);
  font-size: 13px;
}

.review-status-items p {
  margin: 4px 0 0;
  color: var(--site-muted);
  font-size: 11px;
  line-height: 1.5;
}

.review-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(6, 47, 39, .06);
}

.review-dot.source { background: #497d68; }
.review-dot.checked { background: #168453; }
.review-dot.update { background: #c3982e; }

/* One sleek button system throughout public and administrator screens. */
.button,
.c2-button,
.story-button,
.c2-text-link,
.story-map-open,
.text-button,
.project-load-more,
.clear-project-filters,
.zakat-text-link,
.card-actions button,
.card-actions a,
.project-card-actions button,
.project-card-actions a,
.zakat-card-actions a,
.story-country-card button,
.story-charity-actions button,
.story-charity-actions a,
.about-page-hero-inner a,
.about-initiative-link a,
.map-filter-chips button,
.admin-record-actions button,
.review-actions button,
.admin-editor-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover,
.c2-button:hover,
.story-button:hover,
.c2-text-link:hover,
.story-map-open:hover,
.text-button:hover,
.project-load-more:hover,
.clear-project-filters:hover,
.zakat-text-link:hover,
.card-actions button:hover,
.card-actions a:hover,
.project-card-actions button:hover,
.project-card-actions a:hover,
.zakat-card-actions a:hover,
.story-country-card button:hover,
.story-charity-actions button:hover,
.story-charity-actions a:hover,
.about-page-hero-inner a:hover,
.about-initiative-link a:hover,
.map-filter-chips button:hover,
.admin-record-actions button:hover,
.review-actions button:hover,
.admin-editor-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 47, 39, .14);
}

.button:active,
.c2-button:active,
.story-button:active,
.text-button:active,
.card-actions button:active,
.project-card-actions button:active {
  transform: translateY(0);
  box-shadow: none;
}

.c2-text-link,
.story-map-open,
.clear-project-filters,
.zakat-text-link,
.about-page-hero-inner a,
.about-initiative-link a {
  width: max-content;
  border: 1px solid currentColor;
  background: transparent;
}

.story-map-open {
  margin: 14px 5px 2px;
}

.story-country-card button {
  width: 100%;
  margin-top: 16px;
  border: 1px solid #d5dfd9;
  background: #fff;
  color: var(--site-forest);
}

.map-filter-chips button {
  min-height: 38px;
  padding: 8px 14px;
}

.project-link {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--site-forest);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .review-status-guide {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 18px;
  }

  .review-status-items article {
    padding: 13px;
  }

  .c2-text-link,
  .story-map-open,
  .about-page-hero-inner a,
  .about-initiative-link a {
    width: 100%;
  }
}

/* Launch-readiness polish: consistent keyboard focus and comfortable touch targets. */
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #d8b75c;
  outline-offset: 3px;
}

.site-header .brand,
.footer-signup-button {
  min-height: 44px;
}

.footer-signup-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}

@media (max-width: 900px) {
  .site-header .menu-button,
  #charity-filters .chip,
  .map-filter-chips button,
  .map-search input,
  .member-access-link {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 760px) {

  #charity-filters,
  .map-filter-chips {
    scrollbar-width: none;
  }

  #charity-filters::-webkit-scrollbar,
  .map-filter-chips::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 470px) {
  .member-access-link {
    width: 44px;
    height: 44px;
  }
}
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-privacy-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #66736e;
  font-size: .78rem;
  line-height: 1.55;
}

.form-privacy-note a,
.footer-privacy-link,
.newsletter-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-consent {
  display: flex !important;
  align-items: flex-start;
  gap: .65rem;
  margin-top: .85rem;
  color: #52615b;
  font-size: .76rem;
  line-height: 1.5;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.newsletter-consent input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: .12rem;
  accent-color: #0a4a3d;
}

.privacy-page {
  padding: 0;
  background: #f7f4ec;
  color: #173b33;
}

.privacy-hero {
  padding: clamp(6.8rem, 12vw, 10rem) max(5vw, calc((100vw - 1180px) / 2)) clamp(3.5rem, 7vw, 6rem);
  background: radial-gradient(circle at 82% 20%, rgba(213,171,74,.14), transparent 34%), #073d31;
  color: #fff;
}

.privacy-hero h1 {
  max-width: 780px;
  margin: .7rem 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: .95;
}

.privacy-hero > p:not(.eyebrow) { max-width: 650px; color: rgba(255,255,255,.76); font-size: 1.08rem; }
.privacy-hero small { display: block; margin-top: 1.4rem; color: #d8bd75; }

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 760px);
  gap: clamp(2rem, 7vw, 7rem);
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.privacy-layout aside {
  align-self: start;
  position: sticky;
  top: 7rem;
  display: grid;
  gap: .8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23,59,51,.22);
}

.privacy-layout aside b { margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.privacy-layout aside a { color: #61716b; text-decoration: none; }
.privacy-layout article { min-width: 0; }
.privacy-layout article section { scroll-margin-top: 7.5rem; padding: 0 0 2.8rem; margin-bottom: 2.8rem; border-bottom: 1px solid rgba(23,59,51,.13); }
.privacy-layout article section:last-child { border-bottom: 0; }
.privacy-layout h2 { margin: 0 0 1rem; font-family: "Playfair Display", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.privacy-layout p { max-width: 70ch; color: #53635d; font-size: 1rem; line-height: 1.85; }
.privacy-layout article a { color: #0b5b49; font-weight: 700; }

@media (max-width: 720px) {
  .privacy-layout { grid-template-columns: 1fr; width: min(90vw, 680px); gap: 2rem; }
  .privacy-layout aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-layout aside b { grid-column: 1 / -1; }
  .newsletter-signup-row { align-items: stretch; }
}
