/* ---------- main colour: change --wfh-main and every blue on the site follows ---------- */
:root { --wfh-main: #146ef6; --wfh-on-main: #fff;
  --wfh-main-dark: color-mix(in srgb, var(--wfh-main) 82%, #000);      /* hover states */
  --wfh-main-light: color-mix(in srgb, var(--wfh-main) 68%, #fff);     /* gradients, lighter accents */
  --wfh-main-tint: color-mix(in srgb, var(--wfh-main) 18%, #fff);      /* pale fills */
  --wfh-main-soft: color-mix(in srgb, var(--wfh-main) 10%, #fff); }    /* very pale fills */

/* the test panel (?colors=1) */
.wfh-colors { position: fixed; right: 1rem; bottom: 1rem; z-index: 99999; width: 18.5rem; padding: 1rem 1rem .9rem; border-radius: 16px; background: rgba(18,17,11,.92); color: #fff; font: 500 .82rem/1.35 var(--ff-body, system-ui, sans-serif); box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); backdrop-filter: blur(12px); }
.wfh-colors__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; font-weight: 700; }
.wfh-colors__close { padding: .25rem .55rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font: inherit; cursor: pointer; }
.wfh-colors__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; }
.wfh-colors__sw { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--s); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .2s; }
.wfh-colors__sw:hover { transform: scale(1.12); }
.wfh-colors__sw.is-on { box-shadow: 0 0 0 2px #12110b, 0 0 0 4px #fff; }
.wfh-colors__row { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.wfh-colors__row input[type="color"] { width: 2.2rem; height: 2.2rem; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.wfh-colors__row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } .wfh-colors__row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.wfh-colors__hex { flex: 1; min-width: 0; padding: .45rem .6rem; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-family: ui-monospace, monospace; }
.wfh-colors__reset { padding: .45rem .7rem; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font: inherit; cursor: pointer; }
.wfh-colors__name { margin-top: .6rem; font-size: .74rem; color: rgba(255,255,255,.6); }
@media (max-width: 520px) { .wfh-colors { right: .6rem; left: .6rem; width: auto; } }
