/* ══════════════════════════════════════════════════════════════════════════════
   THE CHAT CONTROL, AND THE TEXT-SUPPORT BAND
   ══════════════════════════════════════════════════════════════════════════════
   WHY THIS FILE EXISTS RATHER THAN A BLOCK IN ap.css.

   The chat panel is authored on two pages — index (docks `hero` and `request`)
   and contact (dock `contact`) — but ap.css is linked ONLY from index. A fix
   written there reaches two of the three docks and silently misses the contact
   page, which is the one page a reader opens specifically to find out how to
   reach this business. Hence a small sheet both pages can load.

   ── THE DEFECT THIS FIXES ──────────────────────────────────────────────────
   MEASURED, NOT GUESSED. The chat input rendered `1px solid rgb(23,19,16)` at
   17.35:1 in the hero and `0px none` in the `request` dock. Not faint — absent.
   That is why that one "doesn't really look like chat": it is an unframed field.

   css/main.css carries the site's own underline-style contact form:

       .request input, .request textarea { border: 0;
                                           border-bottom: 1px solid rgba(37,17,9,.45);
                                           outline: none }

   written for the form authored into that section. But js/chatdock.js MOVES the
   one chat widget into `.request` as the reader scrolls, and every rule in
   css/wbchat.css is wrapped in :where() at zero specificity — deliberately, so a
   host page can restyle the panel without !important. `.request textarea` is
   (0,1,1). Zero loses. The form's styling captures a widget it was never written
   for, and takes the focus outline with it.

   THE ROOT FIX belongs in main.css — scoping that rule to the form it was written
   for (`.request form input`) rather than every input the section may ever
   contain. That file is owned by another change in flight, so it is reported for
   routing rather than edited here. This sheet is the defensive half, and is
   worth keeping either way: it gives the control ONE look in all three docks,
   which is the actual complaint. Previously hero / request / contact disagreed,
   so a reader who scrolled past two of them saw two different products.

   SPECIFICITY IS DELIBERATE AND MINIMAL. `.wbchat .wbchat__…` is (0,2,0): it
   beats the (0,1,1) leak, matches what ap.css already uses for this panel, and
   stays overridable. It keys on the widget's own class, not a dock name, so a
   dock added later inherits the frame instead of quietly losing it. wbchat.css
   itself is left at zero specificity as its header requires — raising it there
   would overtake the `.ap-chat .wbchat__…` rules that depend on it.

   Colours come from the site's tokens, not hex literals, so an instance that
   retunes its palette retunes this too.
   ══════════════════════════════════════════════════════════════════════════════ */

.wbchat .wbchat__input
{
	border: 1.5px solid var(--ink, #111);
	border-radius: 6px;
	background: var(--cream, #fff7e9);
	color: var(--ink, #111);
}

/* The send button IS the call to action, so it reads as a button rather than a
   second outline. This is the site's own `.button.dark` language — ink field,
   cream text — not a new idiom invented for the chat. */
.wbchat .wbchat__send
{
	border: 1.5px solid var(--ink, #111);
	border-radius: 6px;
	background: var(--ink, #111);
	color: var(--cream, #fff7e9);
	font-weight: 500;
}
.wbchat .wbchat__send:hover:not(:disabled) { background: #000; border-color: #000; }

/* Disabled is the resting state — the button is inert until there is a message —
   so it must not sit there as a solid black slab implying the primary action is
   already available. Outline only, and the browser's own disabled opacity from
   wbchat.css still applies. */
.wbchat .wbchat__send:disabled { background: transparent; color: var(--ink, #111); }

/* `.request input { outline: none }` stripped the focus ring along with the
   border, and this is a field people type into. Restored at the same specificity
   that restores the border, in the site's own focus colour so it matches every
   other control on the page. */
.wbchat .wbchat__input:focus-visible,
.wbchat .wbchat__send:focus-visible
{
	outline: 2px solid var(--purple, #321f61);
	outline-offset: 2px;
}

/* ── THE TEXT-SUPPORT BAND ──────────────────────────────────────────────────
   TWO NUMBERS, AND THE DISTINCTION IS THE WHOLE POINT. This business answers a
   voice line and a text line, and they are different numbers. A customer who
   phones the text-only line reaches nothing; one who texts the voice line is
   never answered. Either way the enquiry is lost silently, which is worse than a
   visible failure, so the copy names each line's purpose rather than listing two
   numbers and leaving the reader to guess.

   It reuses `.cta-band` — the site's existing band component — rather than
   introducing a second band idiom. Only the parts `.cta-band` has no opinion
   about are defined here.

   PLACEMENT: after the hero, not before it. `.ap-stage` is
   `position:sticky; height:100svh` and drives a scroll-scrubbed sequence;
   inserting a band above it would push the stage out of its own scroll window
   and break the choreography. After the hero it is still the first thing the
   reader meets once the stage releases. */
.cta-band--text { background: var(--sand, #f0e5cf); border-bottom: 1px solid var(--line, rgba(17,17,17,.18)); }

/* The number is spelled out as text, not only as a link label. A desktop browser
   with no SMS handler treats `sms:` as a dead link, and a reader who cannot tap
   it still needs to be able to read it and type it into a phone. */
.textline-numbers { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.textline-numbers b { font-weight: 500; }
.textline-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; opacity: .72; max-width: 46rem; }

/* ── THE TWO NUMBERS, AND THE COMPLIANCE LINE ────────────────────────────────
   The standalone cream band these replaced was removed: it inherited
   `.cta-band`'s `max-width:1240px`, and every other background-painting section
   on this site is full-bleed at 1280 (`.request`, `.work`), so the cream stopped
   40px short of the edge and read as a broken band. Putting the note inside the
   chat panel also puts it where the decision is made, rather than in a separate
   block a reader scrolls past.

   THE CLASS IS ap-chat__legal, NOT wbchat__legal, and that is deliberate.
   js/john/SmsAgency/wbchat.js styles its own attribution at :where() - zero
   specificity - on the explicit assumption that no client stylesheet claims the
   class. Any site rule beats zero, and the one rule that must never win is one
   that hides this line, so smsWebChat.recaptcha_attribution_carries_googles_
   wording_and_live_links fails the build if a client sheet mentions it at all.
   This page's chat is a STATIC MOCK with its own copy of the line, so it carries
   its own class and leaves the live widget's contract alone. Rendering is
   identical.

   The attribution is Google's required wording and its wording is fixed:
   hiding the badge is permitted ONLY while "This site is protected by reCAPTCHA"
   is visible in the flow. It is deliberately more legible than a footnote —
   opacity .8, not .6 — because a compliance notice nobody can read is the same
   breach with extra steps. Colour is inherited and the underline explicit, so it
   survives a dark panel. */
.wbchat .wbchat__textline {
  margin: .6em 0 0;
  font-size: .82em;
  line-height: 1.5;
}
.wbchat .wbchat__textline a { color: inherit; text-decoration: underline; }

/* TEXT / CALL, AS BUTTONS, EVERYWHERE.
   The two numbers do different jobs — 0148 takes texts and is not answered for
   calls, 0147 is the reverse — and a mis-tap sends a customer to a line nobody
   picks up. Prose carried that distinction before and was long enough that
   nobody read it; a labelled control cannot be misread because the href IS the
   choice.

   THE BUTTONS SHOW AT EVERY WIDTH (changed 2026-09-15). They were touch-only,
   with desktop getting a prose line — "Prefer to call? (818) 319-1822" — sitting
   behind them in the source. Two controls and a sentence saying the same thing
   read as clutter, so the sentence is gone and the controls stand on their own.
   The voice number stays readable as text in the header on every page, which is
   what the checklist asks for; `sms:` is handled by macOS Messages and Windows
   Phone Link, and where it is not, the Call control is right beside it. */
/* NOT SCOPED UNDER .wbchat, AND THAT IS THE WHOLE POINT. The reach line is a
   SIBLING of the .wbchat mount in both docks — it is the site's own control, not
   part of the widget's rest-state copy — so every `.wbchat .wbchat__reach*` rule
   missed it and the line rendered as one unstyled run of text: "Prefer to text or
   call? Text us Call us Prefer to call? (818) 319-1822". Matching on the block
   name alone fixes it wherever the line is placed. Found 2026-09-15.

   FLEX, SO THE GAPS ARE EQUAL. As inline content the space before the first
   button was a single collapsed text space and the space between the buttons was
   that space PLUS the button's own margin — visibly uneven. A flex row with one
   `gap` removes the whitespace from the layout entirely, so lead-to-button and
   button-to-button are the same measurement, and row-gap keeps it when it wraps. */
.wbchat__textline--reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  margin: .6em 0 0;
  font-size: .82em;
  line-height: 1.5;
}
.wbchat__reachBtn {
  margin: 0;
  padding: .5em 1.05em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1em;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}
.wbchat__reachBtn:active { opacity: .75; }

/* TEXT IS A TOUCH CONTROL ONLY. `sms:` has no handler on most desktop browsers,
   so the control would be a dead link there; keyed on pointer rather than width
   so a touch laptop keeps it. The two words "text or " in the lead are hidden with
   it — otherwise the desktop line offers to text beside a lone Call button. */
.wbchat__reachBtn--text,
.wbchat__reachTextWord { display: none; }
@media (hover: none) and (pointer: coarse) {
  .wbchat__reachBtn--text { display: inline-block; }
  .wbchat__reachTextWord { display: inline; }
}

.wbchat .ap-chat__legal {
  display: block;
  margin: .5em 0 0;
  font-size: .75em;
  line-height: 1.45;
  /* Was opacity:.8, which composited near-black down to #8d8c8a on #fffbf4 —
     3.25:1, against the 4.5:1 SC 1.4.3 needs at this size. Opacity is the wrong
     tool for de-emphasis on text: it changes the rendered colour without telling
     you what colour you ended up with. An explicit grey is measurable — #5f5d5a
     gives 6.1:1 on this panel and still reads as secondary. */
  color: #5f5d5a;
}
.wbchat .ap-chat__legal a { color: inherit; text-decoration: underline; }
