:root {
  --dh-ink: #17263c;
  --dh-berry: #8d2549;
  --dh-rose: #d94d63;
  --dh-muted: #64748b;
}

:root.dark {
  color-scheme: dark;
  --background: 220 35% 9%;
  --foreground: 210 35% 94%;
  --card: 220 29% 13%;
  --card-foreground: 210 35% 94%;
  --card-border: 218 22% 24%;
  --popover: 220 29% 13%;
  --popover-foreground: 210 35% 94%;
  --popover-border: 218 22% 26%;
  --primary: 347 58% 49%;
  --primary-foreground: 0 0% 100%;
  --secondary: 218 24% 20%;
  --secondary-foreground: 210 35% 93%;
  --muted: 218 24% 18%;
  --muted-foreground: 215 20% 72%;
  --accent: 37 84% 58%;
  --accent-foreground: 220 38% 11%;
  --destructive: 0 62% 48%;
  --destructive-foreground: 0 0% 100%;
  --border: 218 22% 25%;
  --input: 218 18% 38%;
  --ring: 347 68% 67%;
}

html.dark body {
  background-color: hsl(var(--background));
}

.dh-theme-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dh-theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dh-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: hsl(var(--primary) / .45);
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}

.dh-theme-toggle:focus-visible {
  outline: 3px solid hsl(var(--ring) / .55);
  outline-offset: 2px;
}

.dh-duplicate-dialog {
  width: min(29rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground));
}

.dh-duplicate-dialog::backdrop {
  background: rgb(12 21 35 / 62%);
  backdrop-filter: blur(3px);
}

.dh-duplicate-dialog-card {
  padding: 1.4rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.2rem;
  background: hsl(var(--card));
  box-shadow: 0 24px 70px rgb(8 15 28 / 28%);
}

.dh-duplicate-dialog-title {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1.1rem;
  font-weight: 850;
  line-height: 1.3;
}

.dh-duplicate-dialog-detail {
  margin: .6rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.55;
}

.dh-duplicate-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}

.dh-duplicate-call,
.dh-duplicate-close {
  display: inline-flex;
  min-height: 2.8rem;
  flex: 1 1 9rem;
  align-items: center;
  justify-content: center;
  padding: .65rem .9rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.dh-duplicate-call {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.dh-duplicate-close {
  border-color: hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.dh-duplicate-call:focus-visible,
.dh-duplicate-close:focus-visible {
  outline: 3px solid hsl(var(--ring) / .55);
  outline-offset: 2px;
}

.dark .dh-contact-opt-in {
  border-color: hsl(var(--border));
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--background)));
}

.dark .dh-contact-opt-in strong,
.dark .dh-list-name-label {
  color: hsl(var(--foreground));
}

.dark .dh-contact-opt-in small,
.dark .dh-list-consent {
  color: hsl(var(--muted-foreground));
}

.dark .dh-list-request-fields {
  border-color: hsl(var(--border));
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--background)));
}

.dark .dh-list-follow-up {
  border-top-color: hsl(var(--border));
}

.dark .home-page {
  background:
    radial-gradient(ellipse at 4% 5%, rgb(217 77 99 / 10%), transparent 28rem),
    radial-gradient(ellipse at 96% 22%, rgb(42 157 143 / 9%), transparent 32rem),
    hsl(var(--background));
}

.dark .home-card {
  border-color: hsl(var(--border));
  box-shadow: 0 12px 34px rgb(0 0 0 / 22%);
}

.dark .home-card:hover {
  border-color: hsl(var(--input));
  box-shadow: 0 18px 42px rgb(0 0 0 / 30%);
}

.dark .home-quick-link {
  border-color: hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 7px 20px rgb(0 0 0 / 14%);
}

.dark .home-quick-link:hover {
  border-color: hsl(var(--primary) / .5);
  background: hsl(var(--muted));
  box-shadow: 0 12px 26px rgb(0 0 0 / 22%);
}

.dark .home-camps-section {
  border-color: hsl(var(--border));
  background: linear-gradient(140deg, hsl(var(--card)), hsl(174 25% 14%));
}

.dark .bg-white {
  background-color: hsl(var(--card)) !important;
}

.dark .bg-red-50 {
  background-color: hsl(350 38% 19%) !important;
}

.dark .text-red-700,
.dark .text-red-600 {
  color: hsl(350 95% 82%) !important;
}

.dark .bg-amber-50 {
  background-color: hsl(38 48% 18%) !important;
}

.dark .text-amber-800 {
  color: hsl(42 95% 78%) !important;
}

.dark .bg-emerald-50 {
  background-color: hsl(158 42% 16%) !important;
}

.dark .text-emerald-700 {
  color: hsl(158 65% 74%) !important;
}

.dh-contact-opt-in {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #d8e1ea;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fff, #f8fafc);
  cursor: pointer;
}

.dh-contact-opt-in input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  accent-color: var(--dh-berry);
}

.dh-contact-opt-in span {
  display: grid;
  gap: .3rem;
}

.dh-contact-opt-in strong {
  color: var(--dh-ink);
  font-size: .86rem;
  font-weight: 800;
}

.dh-contact-opt-in small {
  color: var(--dh-muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.55;
}

.dh-list-request-fields {
  display: grid;
  gap: .85rem;
  padding: .95rem;
  border: 1px solid #dbe3eb;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fff, #f7f9fc);
}

.dh-list-name-label {
  display: block;
  color: var(--dh-ink);
  font-size: .82rem;
  font-weight: 800;
}

.dh-list-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #475569;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}

.dh-list-consent input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: .1rem;
  accent-color: var(--dh-berry);
}

.dh-list-follow-up {
  padding-top: .75rem;
  border-top: 1px solid #e2e8f0;
}

.home-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 4% 5%, rgb(217 77 99 / 8%), transparent 28rem),
    radial-gradient(ellipse at 96% 22%, rgb(25 116 120 / 8%), transparent 32rem),
    #f7f9fc;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 18rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 1.85rem;
  background:
    radial-gradient(circle at 88% 10%, rgb(255 255 255 / 16%), transparent 17rem),
    linear-gradient(128deg, #14243a 0%, #263a58 53%, #7c2746 100%);
  box-shadow: 0 24px 58px rgb(23 38 60 / 19%);
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  right: -7rem;
  bottom: -13rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(255 255 255 / 8%), transparent 68%),
    linear-gradient(135deg, transparent 48%, rgb(255 255 255 / 5%) 49%, transparent 50%);
  content: "";
  pointer-events: none;
}

.home-hero h1 {
  max-width: 15ch;
  font-size: clamp(1.75rem, 4.1vw, 3.25rem) !important;
  line-height: 1.04 !important;
  text-wrap: balance;
  letter-spacing: -.05em;
}

.home-hero p {
  max-width: 56ch;
  font-size: clamp(.86rem, 1.25vw, 1rem) !important;
  text-wrap: pretty;
}

.home-primary-action {
  min-height: 3rem;
  border-radius: .9rem;
  background: linear-gradient(120deg, #f5a83b, #f07463);
  color: #17263c;
  font-weight: 900;
  box-shadow: 0 10px 24px rgb(13 20 35 / 24%);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.home-primary-action:hover {
  background: linear-gradient(120deg, #ffc15b, #f48773);
  box-shadow: 0 14px 28px rgb(13 20 35 / 28%);
  filter: saturate(1.05);
}

.home-primary-action:focus-visible,
.home-quick-link:focus-visible {
  outline: 3px solid rgb(245 168 59 / 75%);
  outline-offset: 3px;
}

.home-card {
  border-color: #e1e7ef;
  border-radius: 1.25rem;
  box-shadow: 0 12px 34px rgb(23 38 60 / 7%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-card:hover {
  border-color: #c9d4e1;
  box-shadow: 0 18px 42px rgb(23 38 60 / 11%);
  transform: translateY(-1px);
}

.home-quick-link {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .7rem .8rem;
  border-color: #e0e6ee;
  border-radius: .95rem;
  background: rgb(255 255 255 / 88%);
  color: var(--dh-ink);
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 7px 20px rgb(23 38 60 / 4%);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-quick-link:hover {
  border-color: rgb(141 37 73 / 30%);
  background: #fff;
  box-shadow: 0 12px 26px rgb(23 38 60 / 8%);
  transform: translateY(-1px);
}

.home-camps-section {
  border-color: #e8d8c4;
  border-radius: 1.35rem;
  background: linear-gradient(140deg, #fffdf9, #f2f8f7);
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 0;
    border-radius: 1.25rem;
  }

  .home-hero::after {
    right: -14rem;
    bottom: -17rem;
  }

  .home-quick-link {
    min-height: 3.15rem;
    padding-inline: .55rem;
    font-size: .74rem;
  }
}

.dh-search-timeout-notice {
  position: fixed;
  z-index: 1200;
  top: max(4rem, calc(env(safe-area-inset-top) + 3.25rem));
  left: 50%;
  display: flex;
  width: min(38rem, calc(100vw - 2rem));
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  transform: translateX(-50%);
  padding: .85rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: .9rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 14px 36px rgb(8 15 28 / 20%);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
}

.dh-search-timeout-notice button {
  flex: 0 0 auto;
  border: 1px solid hsl(var(--border));
  border-radius: .65rem;
  padding: .4rem .6rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font: inherit;
  cursor: pointer;
}

.dh-search-timeout-notice button:focus-visible {
  outline: 3px solid hsl(var(--ring) / .6);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .dh-search-timeout-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .dh-search-timeout-notice button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-theme-toggle {
    transition: none;
  }

  .dh-theme-toggle:hover {
    transform: none;
  }

  .home-primary-action,
  .home-card,
  .home-quick-link {
    transition: none;
  }

  .home-card:hover,
  .home-quick-link:hover {
    transform: none;
  }
}

/* Keep all in-app dialogs readable without oversized body copy. */
[role="dialog"] p:not(.eyebrow),
[role="alertdialog"] p:not(.dh-duplicate-dialog-title),
[role="dialog"] [data-slot="dialog-description"],
[role="alertdialog"] [data-slot="alert-dialog-description"] {
  font-size: 0.85rem;
  line-height: 1.45;
}

[role="dialog"] h1,
[role="dialog"] h2,
[role="alertdialog"] h1,
[role="alertdialog"] h2 {
  font-size: 1.125rem;
  line-height: 1.3;
}

[role="dialog"] > .card,
[role="dialog"] [data-slot="dialog-content"],
[role="alertdialog"] .dh-duplicate-dialog-card,
[role="alertdialog"] [data-slot="alert-dialog-content"] {
  max-height: min(84vh, 44rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@supports (height: 100dvh) {
  [role="dialog"] > .card,
  [role="dialog"] [data-slot="dialog-content"],
  [role="alertdialog"] .dh-duplicate-dialog-card,
  [role="alertdialog"] [data-slot="alert-dialog-content"] {
    max-height: min(84dvh, 44rem);
  }
}

.dh-search-auth-dialog {
  width: min(31rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: min(92dvh, 46rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 1.25rem;
  background: transparent;
  color: hsl(var(--foreground));
}

.dh-search-auth-dialog::backdrop {
  background: rgb(12 21 35 / 66%);
  backdrop-filter: blur(4px);
}

.dh-search-auth-card {
  display: grid;
  gap: .9rem;
  padding: clamp(1.1rem, 5vw, 1.6rem);
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  background: hsl(var(--card));
  box-shadow: 0 24px 70px rgb(8 15 28 / 28%);
}

.dh-search-auth-card h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.25;
}

.dh-search-auth-card p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.6;
}

.dh-search-auth-card label:not(.dh-search-auth-consent) {
  display: grid;
  gap: .4rem;
  color: hsl(var(--foreground));
  font-size: .82rem;
  font-weight: 800;
}

.dh-search-auth-card input:not([type="checkbox"]) {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid hsl(var(--input));
  border-radius: .75rem;
  padding: .7rem .8rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font: inherit;
}

.dh-search-auth-card input:focus-visible,
.dh-search-auth-card button:focus-visible {
  outline: 3px solid hsl(var(--ring) / .6);
  outline-offset: 2px;
}

.dh-search-auth-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: hsl(var(--muted-foreground));
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.5;
}

.dh-search-auth-consent input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin: .1rem 0 0;
  accent-color: var(--dh-berry);
}

.dh-search-auth-actions {
  display: flex;
  gap: .65rem;
}

.dh-search-auth-actions button {
  min-height: 2.8rem;
  flex: 1 1 8rem;
  border: 1px solid hsl(var(--border));
  border-radius: .8rem;
  padding: .65rem .85rem;
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
}

.dh-search-auth-cancel {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.dh-search-auth-submit {
  border-color: var(--dh-berry) !important;
  background: var(--dh-berry);
  color: #fff;
}

.dh-search-auth-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.dh-search-auth-message {
  min-height: 1.25rem;
}

.dh-otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .8rem;
  border: 1px solid hsl(var(--border));
  border-radius: .85rem;
  background: hsl(var(--muted) / .55);
  color: hsl(var(--foreground));
}

.dh-otp-resend-row[hidden] {
  display: none !important;
}

.dh-otp-resend-row > div {
  display: grid;
  min-width: 0;
  gap: .18rem;
}

.dh-otp-resend-row span {
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.4;
}

.dh-otp-resend-row [data-dh-otp-resend-status] {
  color: hsl(var(--muted-foreground));
  font-size: .7rem;
  font-weight: 650;
}

.dh-otp-resend-button {
  min-height: 2.45rem;
  flex: 0 0 auto;
  border: 1px solid hsl(var(--border));
  border-radius: .7rem;
  padding: .55rem .7rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.dh-otp-resend-button:disabled {
  cursor: wait;
  opacity: .62;
}

.dh-otp-resend-button:focus-visible {
  outline: 3px solid hsl(var(--ring) / .6);
  outline-offset: 2px;
}

.dh-find-search-count {
  margin: .65rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: .76rem;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 420px) {
  .dh-otp-resend-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dh-otp-resend-button {
    width: 100%;
  }
}

.mobile-nav {
  border-color: hsl(var(--border));
  padding-bottom: max(.45rem, env(safe-area-inset-bottom));
  background: hsl(var(--background) / .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mobile-nav-link {
  min-height: 3.25rem;
  color: hsl(var(--muted-foreground));
}

.mobile-nav-link span {
  font-size: .72rem !important;
}

.mobile-nav-link[aria-current="page"] {
  color: hsl(var(--primary));
  font-weight: 850;
}

.mobile-nav-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav-link:focus-visible,
.home-quick-link:focus-visible,
.home-primary-action:focus-visible {
  outline: 3px solid hsl(var(--ring) / .65);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  button,
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    min-height: 2.75rem;
  }

  .home-page [aria-labelledby="impact-heading"] {
    display: none;
  }

  .home-page .home-camps-section .home-camp-card:not(:first-child) {
    display: none;
  }

  .home-quick-link {
    min-height: 3rem;
    font-size: .78rem;
  }
}

/* Keep the PWA header and Find Donor layout compact without shrinking touch targets. */
.topbar nav {
  gap: clamp(.55rem, 1.35vw, 1.15rem) !important;
}

.topbar nav a {
  font-size: .76rem;
}

.topbar > div {
  gap: clamp(.35rem, 1vw, .8rem) !important;
}

.topbar [data-testid="link-brand"] {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar [data-testid="link-brand"] > div {
  min-width: 0;
}

.topbar [data-testid="link-brand"] > div > span:first-child {
  white-space: nowrap;
}

.topbar [data-testid="link-brand"] > div > span:last-child {
  display: block;
}

.topbar > div > div:last-child {
  flex: 0 0 auto;
  gap: clamp(.25rem, 1vw, .5rem) !important;
}

@media (max-width: 420px) {
  .topbar > div {
    gap: .35rem !important;
    padding-inline: .65rem !important;
  }

  .topbar [data-testid="link-brand"] {
    gap: .45rem !important;
  }

  .topbar [data-testid="link-brand"] > div > span:first-child {
    font-size: clamp(.92rem, 4.1vw, 1rem) !important;
  }

  .topbar [data-testid="link-brand"] > div > span:last-child {
    font-size: .44rem !important;
    letter-spacing: .1em !important;
    line-height: 1.2;
  }

  .topbar > div > div:last-child {
    gap: .25rem !important;
  }

  .topbar .header-action {
    min-height: 2.75rem;
    padding-inline: .5rem !important;
    white-space: nowrap;
  }

  .topbar [data-testid="button-open-menu"] {
    width: 2.75rem;
    min-width: 2.75rem;
    padding-inline: .35rem !important;
  }
}

@media (max-width: 360px) {
  .topbar > div {
    padding-inline: .5rem !important;
  }

  .topbar .header-action {
    width: 2.75rem;
    justify-content: center;
    padding-inline: 0 !important;
  }

  .topbar .header-action > span {
    display: none;
  }

  .topbar .header-action svg {
    width: 1.15rem !important;
    height: 1.15rem !important;
  }
}

@media (min-width: 1280px) {
  .topbar nav a {
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  body:has([data-testid="button-find-search"]) .mt-5.grid:has(> #find-donors) {
    grid-template-columns: minmax(18rem, 23rem) minmax(0, 1fr);
    gap: 1rem;
  }
}

#find-donors {
  padding: 1.1rem !important;
}

#find-donors .space-y-5 > :not(:last-child) {
  margin-block-end: .85rem;
}

#find-donors .field {
  min-height: 2.65rem;
}

.mobile-nav-link[href="/find"] svg {
  color: #be3154;
}

.mobile-nav-link[href="/camps"] svg {
  color: #15847c;
}

.mobile-nav-link[href="/requests"] svg {
  color: #d17827;
}

.mobile-nav-link[href="/support"] svg {
  color: #5a67bd;
}

.mobile-nav-link[aria-current="page"] svg {
  filter: drop-shadow(0 2px 5px hsl(var(--primary) / .2));
}

@media (max-width: 640px) {
  body:has([data-testid="button-find-search"]) .mt-5.grid:has(> #find-donors) {
    gap: .8rem;
  }

  #find-donors {
    padding: .9rem !important;
  }
}

.dh-whatsapp-share-dialog {
  width: min(31rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground));
}

.dh-whatsapp-share-dialog::backdrop {
  background: rgb(12 21 35 / 64%);
  backdrop-filter: blur(3px);
}

.dh-whatsapp-share-card {
  padding: 1.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.15rem;
  background: hsl(var(--card));
  box-shadow: 0 24px 70px rgb(8 15 28 / 30%);
}

.dh-whatsapp-share-card h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1.1rem;
  font-weight: 850;
  line-height: 1.3;
}

.dh-whatsapp-share-detail {
  margin: .65rem 0 1rem;
  color: hsl(var(--muted-foreground));
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.55;
}

.dh-whatsapp-share-form label {
  display: grid;
  gap: .4rem;
  color: hsl(var(--foreground));
  font-size: .86rem;
  font-weight: 750;
}

.dh-whatsapp-share-form input {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .8rem;
  border: 1px solid hsl(var(--border));
  border-radius: .8rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font: inherit;
}

.dh-whatsapp-share-form input:focus-visible {
  outline: 3px solid hsl(var(--ring) / .45);
  outline-offset: 2px;
}

.dh-whatsapp-share-form .dh-list-consent {
  display: flex;
  align-items: flex-start;
  color: hsl(var(--muted-foreground));
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.5;
}

.dh-list-current-area {
  display: grid;
  gap: .22rem;
  margin: 0;
  padding: .75rem .8rem;
  border: 1px solid hsl(var(--border));
  border-left: 3px solid var(--dh-berry);
  border-radius: .8rem;
  background: hsl(var(--muted) / .48);
  color: hsl(var(--foreground));
}

.dh-list-current-area strong {
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.4;
}

.dh-list-current-area span {
  overflow-wrap: anywhere;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.45;
}

.dh-list-current-area small,
.dh-list-location-help {
  color: hsl(var(--muted-foreground));
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.5;
}

.dh-list-blood-needed-label {
  display: grid;
  gap: .4rem;
}

.dh-list-purpose-consent {
  padding: .65rem;
  border: 1px solid hsl(var(--primary) / .28);
  border-radius: .75rem;
  background: hsl(var(--primary) / .06);
}

.dh-whatsapp-share-form .dh-list-consent input {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  flex: 0 0 auto;
  margin: .1rem 0 0;
  padding: 0;
  accent-color: var(--dh-berry);
}

.dh-whatsapp-share-error {
  margin: .5rem 0 0;
  color: #b42318;
  font-size: .8rem;
  font-weight: 700;
}

.dh-whatsapp-share-success {
  margin: .5rem 0 0;
  color: #067647;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.5;
}

.dh-whatsapp-share-actions {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: .65rem;
  margin-top: 1rem;
}

.dh-whatsapp-share-actions button {
  min-height: 2.8rem;
  flex: 1 1 9rem;
  padding: .65rem .85rem;
  border-radius: .8rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}

.dh-whatsapp-share-cancel {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.dh-whatsapp-share-send {
  border: 1px solid var(--dh-berry);
  background: var(--dh-berry);
  color: white;
}

.dh-whatsapp-share-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.dh-camp-gps-controls {
  display: grid;
  gap: .35rem;
}

.dh-camp-gps-button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: .6rem .85rem;
  border: 1px solid hsl(var(--border));
  border-radius: .75rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.dh-camp-gps-button:hover:not(:disabled) {
  border-color: hsl(var(--primary) / .4);
  background: hsl(var(--muted));
}

.dh-camp-gps-button:focus-visible {
  outline: 3px solid hsl(var(--ring) / .55);
  outline-offset: 2px;
}

.dh-camp-gps-button:disabled {
  cursor: wait;
  opacity: .62;
}

button.dh-gps-autofill-button {
  border: 1px solid #c65b7d !important;
  background: linear-gradient(135deg, #fff1f5, #f9dce6) !important;
  color: #741b3b !important;
  box-shadow: 0 4px 12px rgba(116, 27, 59, .16) !important;
  font-weight: 800 !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

button.dh-gps-autofill-button:hover:not(:disabled) {
  border-color: #a82c54 !important;
  background: linear-gradient(135deg, #ffe4ec, #f3c6d5) !important;
  box-shadow: 0 6px 16px rgba(116, 27, 59, .2) !important;
  transform: translateY(-1px);
}

button.dh-gps-autofill-button:focus-visible {
  outline: 3px solid rgba(174, 49, 90, .42);
  outline-offset: 3px;
}

button.dh-gps-autofill-button:disabled {
  cursor: wait;
  opacity: .72;
}

.dh-camp-gps-help {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.5;
}

.dh-camp-profile-fields {
  display: grid;
  gap: .55rem;
  margin: .2rem 0;
}

.dh-camp-profile-field {
  display: grid;
  min-width: 0;
  gap: .3rem;
}

.dh-camp-profile-field input {
  width: 100%;
}

.dh-camp-profile-consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  line-height: 1.45;
}

.dh-camp-profile-consent input {
  flex: 0 0 auto;
  margin-top: .18rem;
}

/* A reassuring, distinctly DonorHub finish for the public home and donor search. */
.home-page {
  background:
    radial-gradient(ellipse at 5% 4%, rgb(232 86 63 / 8%), transparent 29rem),
    radial-gradient(ellipse at 95% 20%, rgb(38 132 122 / 8%), transparent 32rem),
    #f7f5ef;
}
.home-hero {
  border-color: rgb(255 255 255 / 27%);
  background:
    radial-gradient(circle at 88% 9%, rgb(255 255 255 / 17%), transparent 18rem),
    linear-gradient(126deg, #17263b 0%, #273c57 55%, #852f49 100%);
  box-shadow: 0 24px 58px rgb(23 38 60 / 18%);
}
.home-hero h1 { letter-spacing: -.055em; }
.home-primary-action {
  background: linear-gradient(120deg, #f7ad3c, #f07859);
  color: #202b39;
}
.home-primary-action:hover {
  background: linear-gradient(120deg, #ffc45d, #f28a6e);
}
.home-card {
  border-color: #e5dfd5;
  background-color: #fffdf9;
  box-shadow: 0 12px 34px rgb(35 44 55 / 6%);
}
.home-card:hover {
  border-color: #d7c9ba;
  box-shadow: 0 18px 42px rgb(35 44 55 / 10%);
}
.home-quick-link {
  border-color: #e5ded4;
  background: rgb(255 253 249 / 92%);
  color: #263449;
}
.home-quick-link:hover {
  border-color: rgb(184 66 54 / 36%);
  background: #fffefa;
}
.home-camps-section {
  border-color: #e6d8c6;
  background: linear-gradient(140deg, #fffaf0, #f0f7f4);
}

/* Find Donor is an action-first workspace: clear fields, calm results, easy reach. */
#find-donors {
  border: 1px solid #e5ddd2;
  border-radius: 1.25rem;
  background: linear-gradient(150deg, #fffefa 0%, #fbf8f2 100%);
  box-shadow: 0 14px 38px rgb(31 43 57 / 8%);
}
#find-donors h1,
#find-donors h2,
#find-donors h3 {
  color: #202d40;
  letter-spacing: -.025em;
}
#find-donors p { line-height: 1.55; }
#find-donors .field,
#find-donors input:not([type="checkbox"]),
#find-donors select,
#find-donors textarea {
  border-color: #d8d0c5;
  border-radius: .75rem;
  background-color: #fffefa;
  color: #202b39;
}
#find-donors .field:focus,
#find-donors input:not([type="checkbox"]):focus,
#find-donors select:focus,
#find-donors textarea:focus {
  border-color: #c94b3b;
  outline: 3px solid rgb(201 75 59 / 14%);
  outline-offset: 1px;
}
#find-donors [data-testid="button-find-search"] {
  min-height: 3rem;
  border-radius: .85rem;
  background: #c94136;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgb(174 51 43 / 16%);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
#find-donors [data-testid="button-find-search"]:hover {
  background: #a9332d;
  box-shadow: 0 10px 22px rgb(174 51 43 / 20%);
  transform: translateY(-1px);
}
body:has([data-testid="button-find-search"]) .mt-5.grid:has(> #find-donors) {
  align-items: start;
}
.mobile-nav {
  border-top-color: hsl(var(--border));
  box-shadow: 0 -8px 24px rgb(31 43 57 / 5%);
}
.mobile-nav-link { min-height: 3.35rem; }

/* Keep the language control visible and place the localized founder copy in the hero. */
.home-hero .dh-home-founder-title {
  max-width: 24ch;
  line-height: 1.15;
  text-wrap: balance;
}

.home-hero .dh-home-founder-copy {
  max-width: 70ch;
  line-height: 1.7;
  text-align: start;
  white-space: pre-line;
}

.dh-home-community-section {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.dh-home-community-link {
  display: inline-flex;
  width: min(100%, 28rem);
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: .9rem;
  font-size: .9rem;
  text-decoration: none;
}

.dh-home-community-link:hover {
  transform: translateY(-1px);
}

.dh-home-announcement-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 38rem);
  max-width: calc(100vw - 1.5rem);
  max-height: min(88vh, 52rem);
  max-height: min(88dvh, 52rem);
  padding: 0;
  overflow: auto;
  border: 1px solid hsl(var(--border) / .62);
  border-radius: 1.65rem;
  background: linear-gradient(145deg, hsl(var(--card) / .88), hsl(var(--background) / .78));
  color: hsl(var(--card-foreground));
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 32px 100px rgb(9 17 29 / 42%), 0 1px 0 rgb(255 255 255 / 48%) inset;
}

.dh-home-announcement-dialog::backdrop {
  background: rgb(9 18 31 / 58%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dh-home-announcement-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 4vw, 1.8rem);
  animation: dh-home-announcement-enter .32s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes dh-home-announcement-enter {
  from { opacity: 0; transform: translateY(12px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dh-home-announcement-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.dh-home-announcement-kicker {
  margin: 0;
  color: hsl(var(--primary));
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dh-home-announcement-continue:focus-visible {
  outline: 3px solid hsl(var(--primary) / .45);
  outline-offset: 3px;
}

.dh-home-announcement-title {
  margin: .75rem 0 1rem;
  color: hsl(var(--foreground));
  font-size: clamp(1.35rem, 4.8vw, 2rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.dh-home-announcement-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 22rem;
  margin: 0 0 1.1rem;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 1.15rem;
  background: hsl(var(--muted));
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 30px rgb(12 24 40 / 15%);
}

.dh-home-announcement-message {
  max-width: 64ch;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.dh-home-announcement-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.dh-home-announcement-continue {
  min-width: min(100%, 12rem);
  min-height: 3rem;
  padding: .75rem 1.7rem;
  border: 1px solid hsl(var(--primary) / .25);
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / .84));
  color: hsl(var(--primary-foreground));
  font: inherit;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px hsl(var(--primary) / .25);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.dh-home-announcement-continue:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px hsl(var(--primary) / .32);
}

.dark .dh-home-announcement-dialog {
  border-color: rgb(255 255 255 / 18%);
  background: linear-gradient(145deg, rgb(27 40 58 / 91%), rgb(13 23 38 / 86%));
  box-shadow: 0 32px 100px rgb(0 0 0 / 58%), 0 1px 0 rgb(255 255 255 / 12%) inset;
}

.dh-grand-launch-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground));
}

.dh-grand-launch-dialog[open] {
  display: grid;
}

.dh-grand-launch-dialog::backdrop {
  background: rgb(8 16 29 / 82%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dh-grand-launch-scene {
  position: relative;
  z-index: 1;
  width: min(92vw, 58rem);
  max-height: min(88vh, 56rem);
  max-height: min(88dvh, 56rem);
  animation: dh-grand-launch-arrive .55s cubic-bezier(.2, .75, .25, 1) both;
}

.dh-grand-launch-card {
  position: relative;
  max-height: min(88vh, 56rem);
  max-height: min(88dvh, 56rem);
  padding: clamp(1rem, 3.5vw, 2.2rem);
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 1.65rem;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 93%), rgb(246 249 255 / 87%));
  color: #172337;
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  scrollbar-color: rgb(180 75 54 / 45%) transparent;
  scrollbar-width: thin;
  box-shadow: 0 34px 100px rgb(0 0 0 / 46%), 0 1px 0 rgb(255 255 255 / 78%) inset;
}

.dh-grand-launch-card::-webkit-scrollbar {
  width: 7px;
}

.dh-grand-launch-card::-webkit-scrollbar-track {
  background: transparent;
}

.dh-grand-launch-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgb(180 75 54 / 42%);
  background-clip: padding-box;
}

.dh-grand-launch-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: .42rem;
  background: linear-gradient(90deg, #ff9933 0 33.333%, #fff 33.333% 66.666%, #138808 66.666% 100%);
  content: "";
}

.dh-grand-launch-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.dh-grand-launch-kicker {
  margin: 0;
  color: #944221;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.dh-grand-launch-enter:focus-visible {
  outline: 3px solid rgb(255 153 51 / 75%);
  outline-offset: 3px;
}

.dh-grand-launch-title {
  max-width: 24ch;
  margin: .35rem auto 1.2rem;
  color: #162b48;
  font-size: clamp(1.6rem, 4.7vw, 2.65rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.dh-grand-launch-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  align-items: start;
  gap: clamp(.6rem, 2vw, 1rem);
  margin: 0 auto 1.1rem;
}

.dh-grand-launch-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 1.05rem;
  background: linear-gradient(145deg, #fff, #edf2f8);
  box-shadow: 0 12px 30px rgb(20 35 54 / 14%);
}

.dh-grand-launch-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.dh-grand-launch-plaque img {
  aspect-ratio: 3 / 2;
}

.dh-grand-launch-photo figcaption {
  padding: .5rem .65rem .6rem;
  color: #526176;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

.dh-grand-launch-message {
  max-width: 66ch;
  margin: 0 auto;
  color: #3c4c62;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 550;
  line-height: 1.75;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.dh-grand-launch-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.3rem;
}

.dh-grand-launch-petal-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: 1.65rem;
  pointer-events: none;
}

.dh-grand-launch-petal {
  position: absolute;
  top: -2rem;
  width: var(--petal-size);
  height: var(--petal-size);
  opacity: .54;
  filter: drop-shadow(0 2px 3px rgb(81 40 37 / 16%));
  animation: dh-grand-launch-petal-fall var(--petal-duration) linear var(--petal-delay) infinite both;
  will-change: transform, opacity;
}

@keyframes dh-grand-launch-petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -7vh, 0) rotate(0deg) scale(.72);
  }
  12% {
    opacity: .7;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--petal-drift), 112vh, 0) rotate(var(--petal-spin)) scale(1.04);
  }
}

.dh-grand-launch-enter {
  min-width: min(100%, 15rem);
  min-height: 3.15rem;
  padding: .82rem 1.8rem;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 999px;
  background: linear-gradient(110deg, #b64127, #d77b26 58%, #16834b);
  color: #fff;
  font: inherit;
  font-weight: 850;
  letter-spacing: .015em;
  box-shadow: 0 12px 28px rgb(132 60 35 / 26%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.dh-grand-launch-enter:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgb(132 60 35 / 34%);
}

.dh-grand-launch-curtain {
  position: absolute;
  z-index: 5;
  inset-block: 0;
  width: 51%;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgb(57 4 25 / 34%) 0 5%, rgb(255 255 255 / 5%) 6% 10%, transparent 11% 16%),
    linear-gradient(90deg, #46071f 0%, #8e1638 21%, #64102f 46%, #a52a4a 72%, #4c0823 100%);
  box-shadow: inset 0 0 4rem rgb(0 0 0 / 38%);
}

.dh-grand-launch-curtain::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #ffe2a3, #b37b32 48%, #f5d28d);
  content: "";
}

.dh-grand-launch-curtain-left {
  left: 0;
  border-right: 1px solid rgb(255 229 173 / 64%);
  animation: dh-grand-curtain-left-open 1.8s cubic-bezier(.77, 0, .18, 1) .25s forwards;
}

.dh-grand-launch-curtain-left::after {
  right: 0;
}

.dh-grand-launch-curtain-right {
  right: 0;
  border-left: 1px solid rgb(255 229 173 / 64%);
  animation: dh-grand-curtain-right-open 1.8s cubic-bezier(.77, 0, .18, 1) .25s forwards;
}

.dh-grand-launch-curtain-right::after {
  left: 0;
}

@keyframes dh-grand-curtain-left-open {
  to { transform: translateX(-102%); }
}

@keyframes dh-grand-curtain-right-open {
  to { transform: translateX(102%); }
}

@keyframes dh-grand-launch-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .dh-home-announcement-dialog {
    width: min(92vw, 38rem);
    max-width: calc(100vw - 1rem);
    max-height: min(88vh, 52rem);
    max-height: min(88dvh, 52rem);
    border-radius: 1.35rem;
  }
  .dh-home-announcement-image {
    max-height: 15rem;
    border-radius: .95rem;
  }
  .dh-home-announcement-message {
    font-size: 1rem;
    line-height: 1.65;
  }
  .dh-grand-launch-scene {
    width: calc(100vw - 1rem);
    max-height: min(90vh, 56rem);
    max-height: min(90dvh, 56rem);
  }
  .dh-grand-launch-card {
    max-height: min(90vh, 56rem);
    max-height: min(90dvh, 56rem);
    border-radius: 1.25rem;
  }
  .dh-grand-launch-petal-layer {
    border-radius: 1.25rem;
  }
  .dh-grand-launch-gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(42%, 8.5rem), 1fr));
  }
  .dh-grand-launch-photo figcaption {
    padding: .4rem .45rem .5rem;
    font-size: .67rem;
  }
  .home-page [aria-labelledby="impact-heading"] {
    display: block;
  }
  .home-page .home-camps-section .home-camp-card:not(:first-child) {
    display: flex;
  }
  .home-hero { box-shadow: 0 16px 36px rgb(23 38 60 / 17%); }
  #find-donors { border-radius: 1rem; }
  .dh-home-community-section { gap: 1rem; padding: 0 .75rem 1.75rem; }
  .home-hero .dh-home-founder-copy { line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  .dh-home-announcement-card {
    animation: none;
  }
  .dh-home-announcement-continue {
    transition: none;
  }
  .dh-grand-launch-scene {
    animation: none;
  }
  .dh-grand-launch-curtain {
    display: none;
  }
  .dh-grand-launch-petal-layer {
    display: none;
  }
  .dh-grand-launch-enter {
    transition: none;
  }
}

.dark .home-page {
  background:
    radial-gradient(ellipse at 5% 4%, rgb(217 77 99 / 10%), transparent 29rem),
    radial-gradient(ellipse at 95% 20%, rgb(42 157 143 / 9%), transparent 32rem),
    hsl(var(--background));
}
.dark .home-hero {
  background:
    radial-gradient(circle at 88% 9%, rgb(255 255 255 / 12%), transparent 18rem),
    linear-gradient(126deg, #17263b 0%, #263b55 55%, #762c46 100%);
}
.dark .home-card {
  border-color: hsl(var(--border));
  background-color: hsl(var(--card));
}
.dark #find-donors {
  border-color: hsl(var(--border));
  background: linear-gradient(150deg, hsl(var(--card)), hsl(var(--background)));
}
.dark #find-donors h1,
.dark #find-donors h2,
.dark #find-donors h3 { color: hsl(var(--foreground)); }
.dark #find-donors .field,
.dark #find-donors input:not([type="checkbox"]),
.dark #find-donors select,
.dark #find-donors textarea {
  border-color: hsl(var(--input));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}
.dark #find-donors [data-testid="button-find-search"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.dark .mobile-nav {
  box-shadow: 0 -8px 24px rgb(0 0 0 / 16%);
}

[data-dh-urgent-home] > div:first-child h2 {
  min-height: 2.25rem;
  padding: .35rem .75rem;
  border: 1px solid rgb(215 63 75 / 22%);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1ef, #fff8ee);
  color: #922f3b;
  box-shadow: 0 5px 14px rgb(156 48 58 / 8%);
}

.dh-urgent-siren {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: #d73f4b;
}

[data-dh-urgent-home] select[aria-label="Urgent request search distance"] {
  width: 4rem;
  border-color: rgb(215 63 75 / 24%);
  border-radius: 999px;
  background: #fff7f1;
  font-size: .66rem;
}

@media (max-width: 420px) {
  [data-dh-urgent-home] > div:first-child {
    flex-wrap: wrap;
    row-gap: .55rem;
  }

  [data-dh-urgent-home] > div:first-child h2 {
    min-height: 2rem;
    padding-inline: .55rem;
    font-size: .8rem;
  }
}

[data-dh-urgent-home] .urgent-request-scroller > .home-card {
  border: 1px solid rgb(217 77 86 / 20%);
  border-left: 4px solid #d94d59;
  background: linear-gradient(145deg, #fff 0%, #fff5f2 100%);
  box-shadow: 0 12px 28px rgb(143 46 54 / 9%);
}

[data-dh-urgent-home] .urgent-request-scroller > .home-card:nth-child(3n + 2) {
  border-color: rgb(212 151 57 / 24%);
  border-left-color: #d99537;
  background: linear-gradient(145deg, #fff 0%, #fff8e9 100%);
}

[data-dh-urgent-home] .urgent-request-scroller > .home-card:nth-child(3n) {
  border-color: rgb(55 142 127 / 22%);
  border-left-color: #378e7f;
  background: linear-gradient(145deg, #fff 0%, #f0faf6 100%);
}

.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 1) {
  border-color: rgb(190 69 84 / 22%);
  background: linear-gradient(135deg, #fff3f2, #fffdfa);
}

.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 2) {
  border-color: rgb(48 135 124 / 22%);
  background: linear-gradient(135deg, #eff9f6, #fffdfa);
}

.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 3) {
  border-color: rgb(202 143 49 / 23%);
  background: linear-gradient(135deg, #fff8e9, #fffdfa);
}

.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n) {
  border-color: rgb(100 91 171 / 20%);
  background: linear-gradient(135deg, #f5f3ff, #fffdfa);
}

.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 1) svg { color: #b63d50; }
.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 2) svg { color: #287e73; }
.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 3) svg { color: #a66f17; }
.home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n) svg { color: #6558a7; }

.dark [data-dh-urgent-home] > div:first-child h2 {
  border-color: rgb(248 113 113 / 28%);
  background: linear-gradient(135deg, rgb(127 29 29 / 28%), rgb(120 53 15 / 20%));
  color: #fecaca;
}

.dark [data-dh-urgent-home] select[aria-label="Urgent request search distance"] {
  border-color: rgb(248 113 113 / 28%);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.dark [data-dh-urgent-home] .urgent-request-scroller > .home-card {
  border-color: rgb(248 113 113 / 25%);
  border-left-color: #fb7185;
  background: linear-gradient(145deg, hsl(var(--card)), rgb(127 29 29 / 13%));
}

.dark [data-dh-urgent-home] .urgent-request-scroller > .home-card:nth-child(3n + 2) {
  border-color: rgb(251 191 36 / 25%);
  border-left-color: #fbbf24;
  background: linear-gradient(145deg, hsl(var(--card)), rgb(120 53 15 / 16%));
}

.dark [data-dh-urgent-home] .urgent-request-scroller > .home-card:nth-child(3n) {
  border-color: rgb(52 211 153 / 23%);
  border-left-color: #34d399;
  background: linear-gradient(145deg, hsl(var(--card)), rgb(6 78 59 / 18%));
}

.dark .home-page [aria-label="Quick actions"] .home-quick-link {
  color: hsl(var(--foreground));
}

.dark .home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 1) {
  border-color: rgb(248 113 113 / 22%);
  background: linear-gradient(135deg, rgb(127 29 29 / 20%), hsl(var(--card)));
}

.dark .home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 2) {
  border-color: rgb(52 211 153 / 20%);
  background: linear-gradient(135deg, rgb(6 78 59 / 22%), hsl(var(--card)));
}

.dark .home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n + 3) {
  border-color: rgb(251 191 36 / 20%);
  background: linear-gradient(135deg, rgb(120 53 15 / 22%), hsl(var(--card)));
}

.dark .home-page [aria-label="Quick actions"] .home-quick-link:nth-child(4n) {
  border-color: rgb(167 139 250 / 20%);
  background: linear-gradient(135deg, rgb(76 29 149 / 22%), hsl(var(--card)));
}

@media (prefers-reduced-motion: reduce) {
  #find-donors [data-testid="button-find-search"] {
    transition: none;
  }
  #find-donors [data-testid="button-find-search"]:hover { transform: none; }
  .dh-home-community-link { transition: none; }
  .dh-home-community-link:hover { transform: none; }
}

[data-dh-camps-page] > .card {
  margin-top: 0.75rem;
  padding: 0.875rem;
}

[data-dh-camps-page] > .card > div:first-child {
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

[data-dh-camp-search-controls] {
  gap: 0.7rem;
}

[data-dh-camp-search-controls] > label {
  min-width: 0;
  font-size: 0.86rem;
}

[data-dh-camp-search-controls] .field {
  min-width: 0;
  min-height: 2.8rem;
  margin-top: 0.35rem;
  padding-inline: 0.7rem;
}

[data-dh-camp-search-controls] > button {
  min-height: 2.8rem;
}

[data-dh-camps-page] [data-dh-camp-search-controls] + p {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.dh-camp-host-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid hsl(var(--primary) / 0.18);
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.045);
}

.dh-camp-host-cta p {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 650;
  color: hsl(var(--muted-foreground));
}

.dh-camp-host-cta a {
  flex: 0 0 auto;
  min-height: 2.6rem;
  padding: 0.65rem 0.85rem;
}

.dh-camp-poster-status {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.dh-share-whatsapp-hint {
  display: inline-flex;
  max-width: 100%;
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid #f0cb7b;
  border-radius: 0.8rem;
  background: #fff8e8;
  color: #754b08;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.dark .dh-share-whatsapp-hint {
  border-color: hsl(39 45% 34%);
  background: hsl(39 45% 16%);
  color: hsl(43 90% 80%);
}

@media (max-width: 639px) {
  [data-dh-camp-search-controls] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem !important;
  }

  [data-dh-camp-search-controls] > button {
    grid-column: 1 / -1;
  }
}

/* V24.6.3 UI polish: clearer form surfaces and consistent verification dialogs. */
body:has([data-testid="button-register-submit"])
  .card:has([data-testid="input-register-name"]) {
  border: 1px solid #eadfe0;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, #fffefa 0%, #fff8f5 100%);
  box-shadow: 0 16px 40px rgb(31 43 57 / 8%);
}

body:has([data-testid="button-register-submit"])
  .card:has([data-testid="input-register-name"]) h2 {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  color: #263449;
  letter-spacing: -.015em;
}

body:has([data-testid="button-register-submit"])
  form label:has([data-testid^="input-register-"]) {
  color: #29384d;
  font-weight: 750;
  line-height: 1.45;
}

body:has([data-testid="button-register-submit"])
  input[data-testid^="input-register-"]:not([type="checkbox"]) {
  min-height: 3rem;
  border-color: #ddd3d0;
  border-radius: .8rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body:has([data-testid="button-register-submit"])
  input[data-testid^="input-register-"]:not([type="checkbox"]):focus-visible {
  border-color: var(--dh-berry);
  outline: 3px solid rgb(141 37 73 / 14%);
  outline-offset: 1px;
}

body:has([data-testid="button-register-submit"])
  .card:has([data-testid="checkbox-register-consent"]) {
  border: 1px solid #efcfca;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fff6f2, #fffaf4);
  box-shadow: 0 8px 22px rgb(141 37 73 / 6%);
}

body:has([data-testid="button-register-submit"])
  .card:has([data-testid="checkbox-register-consent"]) label {
  align-items: flex-start;
  gap: .75rem;
}

body:has([data-testid="button-register-submit"])
  [data-testid="checkbox-register-consent"] {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  accent-color: var(--dh-berry);
}

body:has([data-testid="button-register-submit"])
  .card:has([data-testid="checkbox-register-consent"]) label > span {
  color: #35445a;
  font-size: .86rem;
  line-height: 1.55;
}

body:has([data-testid="button-register-submit"])
  [data-testid="button-register-submit"] {
  min-height: 3.25rem;
  border-radius: .95rem;
  background: linear-gradient(100deg, #8d2549, #a93650);
  box-shadow: 0 10px 24px rgb(141 37 73 / 18%);
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

body:has([data-testid="button-register-submit"])
  [data-testid="button-register-submit"]:hover:not(:disabled) {
  filter: brightness(.96);
  box-shadow: 0 13px 28px rgb(141 37 73 / 23%);
  transform: translateY(-1px);
}

body:has([data-testid="button-register-submit"])
  [data-testid="button-register-submit"]:focus-visible {
  outline: 3px solid rgb(141 37 73 / 32%);
  outline-offset: 3px;
}

.dh-search-auth-card {
  border-top: 4px solid var(--dh-berry);
  background: linear-gradient(155deg, hsl(var(--card)), hsl(var(--background)));
  box-shadow: 0 28px 76px rgb(8 15 28 / 34%);
}

.dh-search-auth-card h2 {
  font-size: 1.28rem;
  letter-spacing: -.02em;
}

.dh-search-auth-card input:not([type="checkbox"]) {
  min-height: 3.1rem;
  border-radius: .85rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dh-search-auth-card input:not([type="checkbox"]):focus-visible {
  border-color: var(--dh-berry);
  box-shadow: 0 0 0 3px rgb(141 37 73 / 14%);
}

.dh-search-auth-consent {
  padding: .75rem .8rem;
  border: 1px solid hsl(var(--border));
  border-radius: .85rem;
  background: hsl(var(--muted) / .42);
  color: hsl(var(--foreground));
}

.dh-search-auth-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .08rem;
}

.dh-search-auth-actions button,
.dh-whatsapp-share-actions button {
  min-height: 3rem;
  transition: border-color 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.dh-search-auth-actions button:hover:not(:disabled),
.dh-whatsapp-share-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.dh-search-auth-submit:hover:not(:disabled),
.dh-whatsapp-share-send:hover:not(:disabled) {
  filter: brightness(.94);
  box-shadow: 0 8px 18px rgb(141 37 73 / 18%);
}

.dh-search-auth-actions button:focus-visible,
.dh-whatsapp-share-actions button:focus-visible,
.dh-whatsapp-share-cancel:focus-visible,
.dh-whatsapp-share-send:focus-visible {
  outline: 3px solid hsl(var(--ring) / .55);
  outline-offset: 2px;
}

.dh-otp-resend-row {
  border-radius: .9rem;
}

.dh-whatsapp-share-card {
  border-top: 4px solid #16865a;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, hsl(var(--card)), hsl(var(--background)));
}

.dh-whatsapp-share-card h2 {
  font-size: 1.22rem;
  letter-spacing: -.02em;
}

.dh-whatsapp-share-form input:not([type="checkbox"]) {
  min-height: 3.1rem;
  border-radius: .85rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dh-whatsapp-share-form input:not([type="checkbox"]):focus-visible {
  border-color: #16865a;
  box-shadow: 0 0 0 3px rgb(22 134 90 / 14%);
}

.dh-whatsapp-share-form .dh-list-consent {
  gap: .65rem;
  padding: .75rem .8rem;
  border: 1px solid hsl(var(--border));
  border-radius: .85rem;
  background: hsl(var(--muted) / .42);
  color: hsl(var(--foreground));
}

.dh-whatsapp-share-error,
.dh-whatsapp-share-success {
  padding: .65rem .75rem;
  border-radius: .7rem;
}

.dh-whatsapp-share-error {
  border: 1px solid #f2c4bf;
  background: #fff4f2;
}

.dh-whatsapp-share-success {
  border: 1px solid #b7e2ce;
  background: #effaf4;
}

.dh-share-whatsapp-hint {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  width: fit-content;
  padding: .65rem .8rem;
  border-color: #ecd28e;
  border-left: 3px solid #c88b1d;
  border-radius: .85rem;
  background: linear-gradient(110deg, #fff8e8, #fffdf6);
  color: #65450d;
  font-size: .76rem;
  line-height: 1.5;
}

.dh-share-whatsapp-hint::before {
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  margin-top: .3rem;
  border-radius: 50%;
  background: #c88b1d;
  content: "";
}

.dark body:has([data-testid="button-register-submit"])
  .card:has([data-testid="input-register-name"]) {
  border-color: hsl(var(--border));
  background: linear-gradient(155deg, hsl(var(--card)), hsl(var(--background)));
}

.dark body:has([data-testid="button-register-submit"])
  .card:has([data-testid="input-register-name"]) h2,
.dark body:has([data-testid="button-register-submit"])
  form label:has([data-testid^="input-register-"]),
.dark body:has([data-testid="button-register-submit"])
  .card:has([data-testid="checkbox-register-consent"]) label > span {
  color: hsl(var(--foreground));
}

.dark body:has([data-testid="button-register-submit"])
  input[data-testid^="input-register-"]:not([type="checkbox"]) {
  border-color: hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.dark body:has([data-testid="button-register-submit"])
  .card:has([data-testid="checkbox-register-consent"]) {
  border-color: hsl(var(--border));
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--background)));
}

.dark .dh-whatsapp-share-error {
  border-color: hsl(4 45% 34%);
  background: hsl(4 40% 15%);
  color: hsl(5 85% 82%);
}

.dark .dh-whatsapp-share-success {
  border-color: hsl(145 35% 30%);
  background: hsl(145 30% 13%);
  color: hsl(145 60% 79%);
}

.dark .dh-share-whatsapp-hint {
  border-color: hsl(39 45% 34%);
  border-left-color: hsl(39 70% 52%);
  background: linear-gradient(110deg, hsl(39 45% 16%), hsl(39 40% 12%));
  color: hsl(43 90% 84%);
}

.dark .dh-share-whatsapp-hint::before {
  background: hsl(39 85% 62%);
}

@media (max-width: 639px) {
  .dh-search-auth-card,
  .dh-whatsapp-share-card {
    padding: 1rem;
  }

  .dh-share-whatsapp-hint {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has([data-testid="button-register-submit"])
    input[data-testid^="input-register-"]:not([type="checkbox"]),
  body:has([data-testid="button-register-submit"])
    [data-testid="button-register-submit"],
  .dh-search-auth-card input:not([type="checkbox"]),
  .dh-search-auth-actions button,
  .dh-whatsapp-share-form input:not([type="checkbox"]),
  .dh-whatsapp-share-actions button {
    transition: none;
  }

  body:has([data-testid="button-register-submit"])
    [data-testid="button-register-submit"]:hover:not(:disabled),
  .dh-search-auth-actions button:hover:not(:disabled),
  .dh-whatsapp-share-actions button:hover:not(:disabled) {
    transform: none;
  }
}
