/* The "Text us" tab (partials/text-us.html, main.js initTextUs). Moved here from components.css on 2026-12-01,
   unchanged, so the ad landing pages under /lp/ can load it (with tokens.css) without the rest of the site's components.
   base.html loads it right after forms.css. The ring's turn (@keyframes spin) is in forms.css. */

/* "Text us" tab (2026-11-24, requested exception: a second floating control beside the call button): a slim red tab on
   the right edge of the screen at every width, its words reading upward, that opens the firm's Kenect chat window
   (main.js initTextUs). It sits above the floating call button (--text-us-bottom), so the two never touch. Like the
   call button it floats over light and dark sections, so it keeps a blush edge and the overlay shadow; its edge on the
   screen's side is open. Hidden in the HTML (it needs JavaScript), while the menu is open, while Kenect's window is
   open (is-open: Kenect's own close button shows then, in the bottom-right corner), and in print. No motion. */
.text-us {
  position: fixed;
  right: env(safe-area-inset-right, 0);
  bottom: var(--text-us-bottom);
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: var(--text-us-width);
  padding: var(--space-3) 0;
  border: var(--border-width-strong) solid var(--color-blush);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--letter-spacing-heading);
  box-shadow: var(--shadow-overlay);
  cursor: pointer;
  transition: background-color var(--btn-fade) ease-out;
}
.text-us[hidden],
.is-locked .text-us { display: none; }
.text-us.is-open { visibility: hidden; }
.text-us__icon { flex: none; width: var(--text-us-icon-size); height: var(--text-us-icon-size); }
/* Opening (main.js, from the first tap until Kenect's window opens, which waits for the page to finish loading): the
   words read "Opening…" and the speech bubble gives way to the contact form's sending ring, in its place. The ring
   turns only when motion is allowed; under reduced motion the words alone say it. */
.text-us.is-loading { cursor: progress; }
.text-us.is-loading .text-us__icon { display: none; }
.text-us.is-loading::before {
  content: "";
  flex: none;
  width: var(--text-us-icon-size);
  height: var(--text-us-icon-size);
  border: var(--border-width-strong) solid currentColor;
  border-right-color: transparent;
  border-radius: var(--radius-pill);
}
@media (prefers-reduced-motion: no-preference) {
  .text-us.is-loading::before { animation: spin var(--spinner-duration) linear infinite; }
}
/* The words read upward, as on a book's spine */
.text-us__label { writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; }
@media (hover: hover) {
  .text-us:hover { background: var(--button-bg-hover); }
}
.text-us:active { background: var(--button-bg-hover); }
/* A charcoal ring, and the edge turns white, so the focus shows over light and dark sections alike */
.text-us:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); border-color: var(--color-white); }
@media (prefers-reduced-motion: reduce) {
  .text-us { transition: none; }
}
@media print {
  .text-us { display: none; }
}
