/* 📮 Find address (2026-10-14) — the "25, DN8 5RU" box above the address
   boxes, and the panels it draws: "Already on your list", the Royal Mail pick
   list, and the asks. Shared by the Contact Record and the card's ✏️ Edit
   details.

   Its own small file for the same reason as postcode-tidy.css and w3w.css: a
   new look should not mean re-stamping styles.css on every page that shares it.

   Colour is never the only signal (Allan is colourblind): every line starts
   with ✓, ⚠ or 🏠 in words, and "Moved on" is a word, not a colour. */

/* On the Contact Record the box heads the Address column. Its label stays
   level with the BOX, not the middle of a tall "Already on your list" panel
   (the grid centres a label on its row otherwise). */
.rec-af { min-width: 0; }
.rec-af__label { align-self: start; padding-top: 8px; }

/* On the card's ✏️ Edit details it sits above House name, labelled like the
   boxes around it. */
.ef-af { display: block; margin: 0 0 10px; }
.ef-af__label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }

.af { margin: 0 0 8px; }
.af-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.af-q {
  flex: 1 1 180px; min-width: 0;
  padding: 7px 10px; font: inherit; font-size: 14px;
  border: 1px solid var(--line, #d8dde3); border-radius: 8px; background: #fff;
}
.af-q:focus { outline: 2px solid var(--accent, #006aac); outline-offset: 1px; }
.af-help { font-size: 13px; font-weight: 600; color: var(--accent, #006aac); white-space: nowrap; }
/* 💷 the price per Royal Mail search, right under the button */
.af-cost { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft, #555c66); }
/* …and the searches not yet billed, at the end of the same line. The "·" is
   here, not in the words, so the Contact Record can drop it when it moves the
   total to its own line (record.css). `:not(:empty)` — no total, no stray dot. */
.af-owed:not(:empty)::before { content: ' · '; }

/* The panel under the box. `:not([hidden])` because a display here would
   otherwise beat the hidden attribute. */
.af-out:not([hidden]) {
  display: block; margin-top: 8px; padding: 8px 10px;
  border-left: 3px solid var(--accent, #006aac); border-radius: 0 6px 6px 0;
  background: #f2f7fb; font-size: 14px;
}
.af-msg { margin: 0 0 6px; }
.af-msg:last-child { margin-bottom: 0; }
.af-msg--warn { color: var(--warn, #b54708); }
.af-msg--ok, .af-msg--done { color: var(--good, #117a3a); }
.af-msg--muted { color: var(--ink-soft, #555c66); font-size: 13px; }
.af-msg--ask { font-weight: 500; }

/* The Royal Mail list — radios, all on one page, a full-width tap target each.
   📜 THE WHOLE LIST, IN THE PAGE (Allan, 27 Nov 2026). It was a 320px box that
   scrolled on its own: on an iPad that box has NO scroll bar, so a long street
   looked like a short one. Now the page scrolls — that works everywhere — and
   the buttons under it (.af-bar) stick to the bottom of the screen meanwhile,
   so "Use this address" is never out of sight. */
.af-list { border: 0; margin: 0 0 8px; padding: 0; }
.af-bar { position: sticky; bottom: 0; z-index: 1; background: #f2f7fb; padding-bottom: 6px; }
.af-opt {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 6px; border-radius: 6px; cursor: pointer; line-height: 1.35;
}
.af-opt:hover { background: rgba(0, 106, 172, .06); }
.af-opt input { margin-top: 3px; flex: none; }
.af-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.af-link {
  display: inline-block; margin: 0 0 8px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent, #006aac); text-decoration: underline; cursor: pointer;
}

/* "or", then None of these — the GOV.UK pattern. */
.af-or { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--ink-soft, #555c66); font-size: 13px; }
.af-or::before, .af-or::after { content: ''; flex: 1; border-top: 1px solid var(--line, #d8dde3); }

.af-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.af-btns[hidden] { display: none; }

/* Someone already at this house. */
.af-matches { list-style: none; margin: 0 0 8px; padding: 0; }
.af-match {
  margin: 0 0 8px; padding: 8px 10px;
  border: 1px solid var(--line, #d8dde3); border-radius: 8px; background: #fff;
}
.af-meta { margin-top: 2px; font-size: 13px; color: var(--ink-soft, #555c66); overflow-wrap: anywhere; }
.af-tag {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px;
  border: 1px dashed currentColor; font-size: 12px; font-weight: 600; color: var(--ink-soft, #555c66);
}
.af-ask:not([hidden]) { display: block; margin-top: 8px; }
