/* ==========================================================================
   shared/bws-inputs.css, THE INPUT FIELD COMPONENT'S TOKENS (P2449, W7-08 step 2a)
   --------------------------------------------------------------------------
   Same shape as shared/bws-buttons.css and shared/bws-chips.css, and the same
   rule: TOKENS ONLY. This file declares no selector that paints an element.
   Every visual rule stays where the markup already is. A page adopts this
   component by rewriting ITS OWN existing selector to read these custom
   properties, each with the page's original literal kept as the var()
   fallback, so a page never repaints if this file is missing or fails to load.

   WHERE THE NUMBERS COME FROM. They are lifted, not invented, from
   account-settings.html's `.inp` rule (and `.modal .cinp`, the same rule written
   a second time for the dialog's one text box):

     .inp{font:inherit;font-size:.95rem;color:var(--text);background:var(--surface);
          border:1px solid var(--border);border-radius:8px;padding:9px 11px;width:100%;
          min-height:44px}
     .inp:focus-visible{outline:2px solid var(--accent-text);outline-offset:1px;
          border-color:var(--accent)}

   Every token below equals that page's own literal, so a page that maps a rule
   to a token changes no pixel. A token whose value was not on that page (a
   hover colour, a disabled look) is NOT declared here: the page has none, and a
   shared look is its own decision with its own before and after picture.

   The promo-code box inside shared/promo-credits.js (`.bws-promo-input`) is a
   shared widget with its own look and stays outside this component.

   Requires shared/theme.css to be linked first (for --surface, --text, --border,
   --accent and --accent-text). Link this file AFTER theme.css in the page's
   <head> (docs/page-scaffold.html). See:
     - docs/design-system/components/input-field.md (the filled component page)
     - tests/bws-inputs.test.cjs (pins this file's own values and its shape)
   ========================================================================== */
:root{
  /* ---- Size: padding, type, radius, and the touch-target height ---- */
  --input-pad-y: 9px;
  --input-pad-x: 11px;
  --input-fs: .95rem;
  --input-radius: var(--radius-xs, 8px);   /* exact match: the page's shipped 8px IS the foundation's --radius-xs */
  --input-min-height: 44px;                /* the account page's own target height, above WCAG 2.2 SC 2.5.8's 24px floor */

  /* ---- Boundary and ink: aliases onto theme.css's own semantic tokens,
     never a new colour ---- */
  --input-border-width: 1px;
  --input-bg: var(--surface);
  --input-fg: var(--text);
  --input-border: var(--border);

  /* ---- Focus ring, as the page draws it today ---- */
  --input-ring-width: 2px;
  --input-ring-color: var(--accent-text);
  --input-ring-offset: 1px;
  --input-focus-border: var(--accent);
}
