/* Address boxes (js/addrbox.js): the suggestions under a box as you type, and the card for an address Gia
   doesn't cover (the owner's pick of mock-address, B). Dark mode: css/dark.css (tools/build_dark.py). */

/* the suggestions: on the page itself, under the box's form (placed by js/addrbox.js) */
.addr-list { position: absolute; z-index: 4200; box-sizing: border-box; min-width: 260px; margin: 0; padding: 6px; list-style: none; text-align: left;
  max-height: min(380px, 56vh); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px; background: #fff;
  box-shadow: 0 14px 40px rgba(30, 26, 103, .24), 0 0 0 1px rgba(30, 26, 103, .06); font-family: var(--font-read, system-ui, sans-serif); }
.addr-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-radius: 16px; cursor: pointer; color: #150e5e; }
.addr-opt:hover, .addr-opt[aria-selected="true"] { background: #efedfd; }
.addr-opt-pin { flex: none; font-size: 16px; opacity: .8; }
.addr-opt-words { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.addr-opt-words b, .addr-opt-words small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.addr-opt-words b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.addr-opt-words small { color: #5d5a7d; font-size: 13.5px; font-weight: 600; }
.addr-opt-tag { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.addr-opt-tag:empty { display: none; }
.addr-opt-tag.is-ok { background: #e3f5ec; color: #0a6b44; }
.addr-opt-tag.is-part { background: #fff4d6; color: #6e4b00; }
.addr-opt-tag.is-no { background: #f0eef6; color: #55527a; }

/* the card, in place of the answer */
.addr-card { box-sizing: border-box; width: 100%; max-width: 560px; margin: 8px auto; padding: 24px 22px 14px; border-radius: 26px; background: #fff; color: #150e5e;
  text-align: center; box-shadow: 0 10px 30px rgba(30, 26, 103, .16), 0 0 0 1px rgba(30, 26, 103, .06); font-family: var(--font-read, system-ui, sans-serif); }
.addr-card-art { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 8px; border-radius: 50%; font-size: 34px;
  background: linear-gradient(45deg, #a9a9fd, #c4b0fc 50%, #f7bdee); }
.addr-card h3 { margin: 0 0 6px; font-size: clamp(21px, 4.6vw, 26px); font-weight: 800; line-height: 1.15; color: #150e5e; text-wrap: balance; }
.addr-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; color: #3a3566; }
.addr-card .addr-card-addr { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #f4f3fb; color: #55527a; font-size: 14px; font-weight: 700; }
.addr-card-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.addr-card-chips li { padding: 6px 12px; border-radius: 999px; background: #efedfd; color: #21167c; font-size: 14px; font-weight: 800; }
.addr-card-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.addr-card-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; box-sizing: border-box;
  background: #21167c; color: #fff; font: 800 15px var(--font-read, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.addr-card-btn:hover { background: #2e1fa3; }
.addr-card-btn:disabled { opacity: .6; cursor: default; }
.addr-card-tell { margin: 2px 0 6px; padding: 14px; border-radius: 20px; background: #f4f3fb; }
.addr-card-tell label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.addr-card-row { display: flex; gap: 8px; }
.addr-card-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; box-sizing: border-box; border: 2px solid #d9d5f3; border-radius: 999px; background: #fff; color: #150e5e;
  font: 600 16px var(--font-read, system-ui, sans-serif); }
.addr-card-row input:focus { outline: 0; border-color: #967dfc; }
.addr-card .addr-card-say { margin: 8px 0 0; font-size: 14px; color: #8a1c22; }
.addr-card .addr-card-say:empty { display: none; }
.addr-card .addr-card-sent { margin: 0; color: #0a6b44; font-weight: 700; }
.addr-card-again { min-height: 44px; padding: 6px 10px; border: 0; background: none; color: #55527a; font: 700 15px var(--font-read, system-ui, sans-serif); cursor: pointer; }
.addr-card-again:hover { color: #21167c; }
@media (max-width: 700px) {
  .addr-card { padding: 20px 16px 12px; }
}

/* where the card goes: the home page's answer box (which steps back for it), Explore's search, the notes */
.hm-addr-result:has(.addr-card) { padding: 0; background: none; box-shadow: none; }
.hm-addr-result .addr-card { margin: 0 auto; }
.hm-addr-switch { display: block; margin-top: 4px; color: #55527a; font-size: 14px; font-weight: 600; }
.search-card { list-style: none; padding: 2px; }
.search-results:has(.search-card) { max-height: min(640px, 82vh); }
.search-card .addr-card { margin: 0; padding: 12px 10px 4px; box-shadow: none; }   /* (Explore's search is narrow: a smaller card) */
.search-card .addr-card-art { width: 44px; height: 44px; margin-bottom: 4px; font-size: 22px; }
.search-card .addr-card h3 { font-size: 19px; }
.search-card .addr-card p, .search-card .addr-card-tell label { font-size: 14px; }
.search-card .addr-card .addr-card-addr { font-size: 12.5px; }
.search-card .addr-card-chips li { padding: 4px 10px; font-size: 12.5px; }
.search-card .addr-card-tell { padding: 10px; }
.area-outside-card { display: block; }
