/* ============================================================
   ASK ENGINE TOKEN BRIDGE — maps the customer app's token names
   (which the copied ask-bar/ask-box/answer/ask-bubble sheets use)
   onto the CRM's own tokens. The copied sheets stay byte-close to
   the app's (a fix over there is a copy over here); only THIS file
   is CRM-authored. Type stays the CRM's own (Inter via inheritance,
   nothing imported here).
   ============================================================ */
:root {
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-border: var(--hairline);
  --color-border-strong: var(--hairline-strong);
  --color-surface: var(--surface);
  --color-bg-subtle: var(--chip-bg);
  --color-bg-subtle-light: var(--bg);
  --color-success: var(--good);
  --color-hilite: var(--accent-bg-1);
  --color-hilite-strong: #ffe135;
  --text-base: 14px;
  --text-sm: 12.5px;
  --text-xs: 11px;
  --leading-body: 1.5;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-full: var(--r-pill);
  --border-width: 1px;
  --space-3: 12px;
}
/* The bar's own input/button carry no shared classes (by design over there);
   give them the CRM's face. */
.ask-bar__in, .ask-bar__go, .ask-box .input, .ask-box .btn { font-family: var(--font-body); }

/* CRM question sentences run longer than the app's — a follow-up pill wraps
   instead of forcing the page wide on a phone. */
.answer__followup { max-width: 100%; white-space: normal; text-align: left; }

/* The dock never widens the page: a sub-pixel spill in the pills flex was
   panning phones 21px. Everything inside already fits; clip contains it. */
.ask-dock { overflow-x: clip; }

/* The app defines .visually-hidden in its base.css (not copied) — without it
   the bar's screen-reader label prints as visible text beside the field. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The topbar and its dropdown menus (z-index 10) stay ABOVE the Ask dock —
   the app's sheet gives the dock 25, which put the Admin menu behind it. */
.page .ask-dock { z-index: 9; }   /* beats the app sheet, which loads after this one */

/* Figure cards that link (Peter, 10 Sep): every number opens its list. */
.answer__figs > a.answer__fig { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .12s, background .12s; }
.answer__figs > a.answer__fig:hover, .answer__figs > a.answer__fig:focus-visible { border-color: var(--hairline-strong, #cfcfd4); background: var(--surface, #fff); }
.answer__figs > a.answer__fig .answer__fig-value { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.answer__figs > a.answer__fig:hover .answer__fig-value { text-decoration-color: currentColor; }
