/* CARE dropdown (see assets/js/dropdown.js). Standalone: also used by the
   public registration page, which does not load care.css. */
.dd-layer {
  --dd-bg: #FFFFFF; --dd-line: #E5E9EE; --dd-ink: #005793; --dd-text: #334E68; --dd-muted: #829AB1;
  --dd-hover: #F1F5F9; --dd-sel: #E8F3F7; --dd-accent: #007B9F; --dd-field: #F6F8FA;
  --dd-shadow: 0 28px 64px -18px rgba(0, 87, 147, .32), 0 2px 6px rgba(0, 87, 147, .06);
  font-family: "Geist", "Inter", system-ui, sans-serif; color: var(--dd-ink);
}
:root[data-theme="dark"] .dd-layer:not(.force-light) {
  --dd-bg: #12212F; --dd-line: #22374A; --dd-ink: #EEF3F7; --dd-text: #C9D5DF; --dd-muted: #8399AB;
  --dd-hover: #1A2B3B; --dd-sel: #163447; --dd-accent: #78A4BE; --dd-field: #0E1B27;
  --dd-shadow: 0 28px 64px -18px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-dd-light]) .dd-layer:not(.force-light) {
    --dd-bg: #12212F; --dd-line: #22374A; --dd-ink: #EEF3F7; --dd-text: #C9D5DF; --dd-muted: #8399AB;
    --dd-hover: #1A2B3B; --dd-sel: #163447; --dd-accent: #78A4BE; --dd-field: #0E1B27;
    --dd-shadow: 0 28px 64px -18px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  }
}
.dd-pop {
  position: fixed; z-index: 1150; box-sizing: border-box; min-width: 220px; max-width: min(520px, calc(100vw - 16px));
  display: flex; flex-direction: column; max-height: min(400px, calc(100vh - 24px));
  padding: 6px; background: var(--dd-bg); border: 1px solid var(--dd-line); border-radius: 16px; box-shadow: var(--dd-shadow);
  animation: dd-in .16s cubic-bezier(.2, .7, .3, 1);
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
.dd-pop:focus, .dd-list:focus, .dd-list:focus-visible { outline: none; }
.dd-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dd-search { position: relative; margin: 2px 2px 6px; flex: 0 0 auto; }
.dd-search .dd-i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dd-muted); width: 15px; height: 15px; }
.dd-search input { box-sizing: border-box; width: 100%; height: 38px; margin: 0; padding: 0 12px 0 34px; border: 1px solid var(--dd-line) !important; border-radius: 11px !important; background: var(--dd-field); color: var(--dd-ink); font: 500 14px/1 inherit; font-family: inherit; box-shadow: none !important; outline: none; }
.dd-search input:focus { border-color: var(--dd-accent) !important; background: var(--dd-bg); }
.dd-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--dd-line) transparent; }
.dd-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--dd-muted); letter-spacing: .01em; }
.dd-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0; padding: 9px 12px 9px 10px;
  border: 0; border-radius: 10px; background: none; color: var(--dd-text); font: 500 14px/1.35 inherit; font-family: inherit; text-align: left; cursor: pointer;
}
.dd-opt .dd-check { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--dd-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.dd-opt .dd-label { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.dd-opt.is-active { background: var(--dd-hover); color: var(--dd-ink); }
.dd-opt.is-selected { background: var(--dd-sel); color: var(--dd-ink); font-weight: 600; }
.dd-opt.is-selected .dd-check { opacity: 1; }
.dd-opt.is-placeholder { color: var(--dd-muted); font-weight: 450; }
.dd-opt:disabled { opacity: .45; cursor: not-allowed; }
.dd-empty { padding: 16px 12px; font-size: 13.5px; color: var(--dd-muted); }

/* Phones, tablets and narrow windows: a bottom sheet */
.dd-backdrop { position: fixed; inset: 0; z-index: 1140; background: rgba(9, 22, 35, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: dd-fade .18s ease-out; }
.dd-pop.as-sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; max-height: min(78vh, 640px); max-height: min(78dvh, 640px);
  padding: 6px 10px max(14px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-bottom: 0; animation: dd-sheet .26s cubic-bezier(.2, .8, .2, 1);
}
.dd-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--dd-line); margin: 4px auto 6px; flex: 0 0 auto; }
.dd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 10px; flex: 0 0 auto; }
.dd-head strong { font-size: 16px; font-weight: 650; color: var(--dd-ink); }
.dd-close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--dd-hover); color: var(--dd-ink); cursor: pointer; padding: 0; }
.as-sheet .dd-search input { height: 44px; font-size: 16px; }
.as-sheet .dd-opt { min-height: 50px; font-size: 15.5px; padding: 12px 12px 12px 10px; border-radius: 12px; }
.dd-layer.closing .dd-pop.as-sheet { animation: dd-sheet-out .18s ease-in forwards; }
.dd-layer.closing .dd-backdrop { animation: dd-fade .18s ease-in reverse forwards; }
@keyframes dd-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dd-sheet-out { to { transform: translateY(100%); } }
@keyframes dd-fade { from { opacity: 0; } }
html.dd-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .dd-pop, .dd-backdrop, .dd-layer.closing .dd-pop.as-sheet { animation: none !important; } }
