@import url("../v4/styles.v4.css?v=20260713-3");

:root {
  --ward-accent: #7c3aed;
}

.brand-mark {
  min-width: 2.4rem;
  padding-inline: .35rem;
  background: linear-gradient(145deg, #12685f, var(--ward-accent));
}

.ward-field select {
  border-color: color-mix(in srgb, var(--ward-accent) 45%, #cbd5e1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ward-accent) 9%, transparent);
}

.ward-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .28rem .62rem;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6b21a8;
  font-size: .76rem;
  font-weight: 800;
}

.data-scope-note {
  margin: .75rem 0 0;
  color: #5f6b76;
  font-size: .83rem;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .brand-copy strong { font-size: .94rem; }
  .brand-copy span { font-size: .72rem; }
}

/* v5 age selector responsive row */
.age-control {
  grid-column: 1 / -1;
}
.metric-checklist {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
}

.metric-item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding-inline: 2px;
}

@media (max-width: 720px) {
  .metric-checklist {
    max-width: calc(100vw - 32px);
  }
}
/* Desktop filters scroll independently from the page. */
@media (min-width: 821px) {
  .filter-sidebar {
    position: sticky;
    top: 164px;
    max-height: calc(100vh - 184px);
    max-height: calc(100dvh - 184px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .filter-sidebar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
  }

  .facility-checklist {
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 1100px) {
  .content-shell {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}
.address-radius-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  margin-top: 10px;
}

.address-radius-form label {
  display: grid;
  gap: 4px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.address-radius-form input,
.address-radius-form select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.address-radius-form input:focus,
.address-radius-form select:focus {
  outline: 3px solid color-mix(in srgb, var(--ward-accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--ward-accent) 60%, var(--line-strong));
}

.address-radius-form button {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.address-radius-form .address-radius-clear {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--green-dark);
}

.address-radius-form .address-radius-clear:hover {
  background: var(--surface-soft);
}
.address-radius-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.address-radius-status {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.address-radius-status.is-success {
  background: #ecfdf5;
  color: #166534;
}

.address-radius-status.is-error {
  background: #fff1f2;
  color: #a3392d;
}

.address-radius-provider {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.address-radius-provider a {
  color: var(--green-dark);
}
.address-origin-marker {
  border: 0;
  background: transparent;
}

.address-origin-pin {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #c43c5c;
  box-shadow: 0 3px 10px rgba(87, 23, 45, .38);
  transform: rotate(-45deg);
}

.address-origin-pin::after {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.map-address-chip {
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
  color: #9f1239 !important;
}

.address-map-label {
  border-color: #fecdd3;
  color: #9f1239;
}
.result-badge.facility-type {
  background: #ecfdf5;
  color: #166534;
}

.result-note {
  margin: .55rem 0 0;
  padding: .55rem .7rem;
  border-left: 3px solid color-mix(in srgb, var(--ward-accent) 55%, #94a3b8);
  border-radius: 0 .45rem .45rem 0;
  background: #f8fafc;
  color: #475569;
  font-size: .78rem;
  line-height: 1.55;
}