/* Searching for money nobody has claimed (Step 1376).

   This form is mounted on two pages that load different stylesheets: the full
   page loads the budget family's styles, and the front page does not. Written
   against the family's variables alone, every one of them resolved to nothing
   on the front page -- measured: 0px none border, a fully transparent
   background and near-black text on a dark hero, which made the boxes
   invisible and anything typed into them unreadable.

   So the component defines its own values once, here, falling back to real
   colours when the family's variables are absent. Everything below uses the
   --um- names, so the form looks the same wherever it is mounted and cannot
   be broken again by being put on a page that loads less. */

.um-form,
.um-out {
  --um-border: var(--bm-border, #cbd5e1);
  --um-line: var(--bm-line, #cbd5e1);
  --um-field: var(--bm-white, #ffffff);
  --um-ink: var(--bm-text, #0f172a);
  --um-accent: var(--bm-accent, #0284c7);
  --um-quiet: var(--bm-muted, #64748b);
  --um-radius: var(--bm-radius, 6px);
}

.um-form {
  margin: 0.9rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--um-border);
  border-left: 3px solid var(--um-accent);
  border-radius: var(--um-radius);
  background: var(--bm-panel, rgba(255, 255, 255, 0.04));
}
.um-privacy { margin: 0 0 0.9rem; font-weight: 600; }

/* Each field gets its own box, and a line all the way round it, so a reader
   can see where to type on a light page and on a dark one alike. */
.um-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  margin: 0 0 0.6rem;
}
.um-label { flex: 0 0 15rem; max-width: 100%; }
.um-row input[type="text"] {
  flex: 1 1 12rem;
  min-width: 0;
  height: 2.4rem;
  padding: 0 0.6rem;
  border: 1px solid var(--um-border);
  border-radius: var(--um-radius);
  background: var(--um-field);
  color: var(--um-ink);
  font: inherit;
}
.um-row input[type="text"]::placeholder { color: var(--um-quiet); opacity: 1; }
.um-row input[type="text"]:focus-visible {
  outline: 2px solid var(--um-accent);
  outline-offset: 1px;
  border-color: var(--um-accent);
}
.um-go {
  height: 2.4rem;
  padding: 0 1.1rem;
  border: 1px solid var(--um-accent);
  border-radius: var(--um-radius);
  background: var(--um-accent);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.um-go:hover { filter: brightness(1.08); }
.um-go:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.um-out { margin-top: 1rem; }
.um-status { color: var(--um-quiet); }
.um-result-head { font-weight: 700; margin: 0 0 0.5rem; }
/* The sentence that stops a clean result reading as "you are owed nothing". */
.um-honest {
  margin: 0 0 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--um-line);
  border-left: 3px solid var(--um-line);
  border-radius: var(--um-radius);
}
.um-problem { font-style: italic; }

/* Every result sits in its own ruled box, so one row never runs visually into
   the next. */
.um-hits { margin: 0; padding-left: 0; list-style: none; }
.um-hit {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--um-border);
  border-radius: var(--um-radius);
}
.um-hit p { margin: 0.25rem 0 0; }
.um-band {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--um-border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.um-hit.is-strong,
.um-hit.is-likely { border-left: 3px solid var(--um-accent); }
.um-hit.is-strong .um-band,
.um-hit.is-likely .um-band { border-color: var(--um-accent); color: var(--um-accent); }
.um-hit-name { font-weight: 600; }
/* A street address is the one thing a reader copies out, so it may break. */
.um-hit-place, .um-hit-detail { word-break: break-word; }
.um-hit-where a { color: var(--um-accent); }

.um-hand { margin: 0; padding-left: 0; list-style: none; }
.um-handrow {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--um-border);
  border-radius: var(--um-radius);
}
.um-handrow p { margin: 0.25rem 0 0; }
.um-hand-title { font-weight: 600; }
.um-hand-title a { color: var(--um-accent); }
.um-hand-why { font-style: italic; }

/* On the dark hero the prose has to take the hero's own light colour rather
   than a mid grey, which would be unreadable there. The boxes stay light,
   the same way the full page draws them. */
.um-form.is-compact,
.um-form.is-compact + .um-out {
  color: inherit;
}
/* No box inside the box. The band this is mounted in is already ruled, so the
   form draws no border, no background and no padding of its own here -- the
   ruled fields are what show a reader where to type. */
.um-form.is-compact {
  /* Space above it, so the form does not start against the line of prose
     introducing it. Asked for directly on 2026-11-09, after dropping the box
     took the gap away with the padding. */
  margin: 1.4rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

@media (max-width: 620px) {
  /* The label stops holding a column of its own, so a field is not squeezed
     into a few characters on a narrow screen. */
  .um-label,
  .um-form.is-compact .um-label { flex: 1 1 100%; }
  .um-go { width: 100%; }
}

/* Which three towns are really searched, said before anybody searches. */
.um-scope {
  margin: 0 0 0.9rem;
  color: var(--um-quiet);
}
.um-form.is-compact .um-scope { color: inherit; opacity: 0.85; }

/* The places to look by hand, on the front page, where the family's own
   .hc-block styling is not loaded. */
.um-hand-block { margin-top: 1.4rem; }
.um-hand-head {
  margin: 0 0 0.6rem;
  font-weight: 700;
}
