/* ---- Colour field ------------------------------------------------------
   The site-wide colour selector: a swatch next to its hex value, as first
   built for departments on Mobility. Pair with js/colour-field.js.

   <div class="app-color-field" data-colour-field>
       <input type="color" class="app-color-swatch" ...>
       <input type="text" class="form-control app-color-hex" maxlength="7" ...>
   </div> */
.app-color-field { display: flex; align-items: center; gap: 10px; }
.app-color-field .app-color-hex { flex: 1 1 auto; width: auto; min-width: 0; text-transform: lowercase; font-variant-numeric: tabular-nums; }
/* The native control draws its own chrome, so the padding is stripped back
   and the swatch is allowed to fill the box. */
.app-color-swatch { flex: 0 0 52px; width: 52px; height: 40px; padding: 4px; border: 1px solid var(--theme-border, #e5e7eb); border-radius: 10px; background: var(--theme-surface-subtle, #f3f4f6); cursor: pointer; }
.app-color-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.app-color-swatch::-webkit-color-swatch { border: 0; border-radius: 6px; }
.app-color-swatch::-moz-color-swatch { border: 0; border-radius: 6px; }
.app-color-swatch:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
