/* 📍 What3Words (FULL only, 2026-10-13) — the button beside Google Maps
   Directions, and the check line under a What3Words box. Shared by the portal
   card (app.html) and the Contact Record (record.html).

   Its own small file for the same reason as postcode-tidy.css: a new look
   should not mean re-stamping styles.css on the nine pages that share it.

   Colour is never the only signal (Allan is colourblind): the greyed button
   also says "none saved" and goes dashed, and every check line starts with
   ✓ or ⚠ in words. */

/* The saved words, and the "✓ near Cirencester" line, UNDER the button name.
   🪤 .btn is an inline-flex ROW (styles.css), so without the column the three
   lines sat side by side and squashed "///filled.count.soap" onto two lines
   (seen in the preview, 2026-10-13). */
.btn.w3w-btn { flex-direction: column; gap: 0; }
.w3w-btn .w3w-sub {
  display: block; margin-top: 2px;
  font-size: 12px; font-weight: 400; line-height: 1.3;
  overflow-wrap: anywhere;
}
.w3w-btn .w3w-sub[hidden] { display: none; }

/* Nothing saved: faded AND dashed AND "none saved". Still a live button — a
   tap goes to where the words are typed — so the cursor stays a pointer. */
.btn.w3w-btn.is-empty { opacity: .6; border-style: dashed; cursor: pointer; }

/* "ⓘ What3Words help" under the box — opens the guide in a new tab. */
.w3w-help { display: inline-block; margin: 2px 0 8px; font-size: 13px; font-weight: 600; color: var(--accent, #006aac); white-space: nowrap; }
.w3w-help-row { margin: 0; }

/* The check line under a What3Words box. `:not([hidden])` because a display
   here would otherwise beat the hidden attribute. */
.w3w-line:not([hidden]) {
  display: block; margin: 6px 0 8px; padding: 6px 8px;
  border-left: 3px solid var(--accent, #006aac); border-radius: 0 6px 6px 0;
  background: #f2f7fb; font-size: 14px;
}
