/**
 * BW PM Client — Shared theme tokens
 *
 * Central palette, font stack, button reset, and keyboard focus ring for all
 * client shortcodes ([bw_unit_page], [bw_inventory_tool], [bw_construction_updates],
 * [bw_unit_updates]). Loaded globally via BW_PM_Client::enqueue_fonts().
 *
 * Per-shortcode scope prefixes are preserved (--bwup-*, --bwit-*, --pmc-*)
 * so existing rule selectors keep working; values are identical across scopes.
 */

/* ── Palette (per-shortcode scope, identical values) ─────────── */

.bwup-root {
  --bwup-border:      #e5e2db;
  --bwup-border-dark: #c8ad8e;
  --bwup-cream:       #eae4d9;
  --bwup-bg:          #fff;
  --bwup-bg-alt:      #faf9f6;
  --bwup-text:        #1a1a1a;
  --bwup-text-muted:  #6b6b6b;
  --bwup-accent:      #36af62;
  --bwup-sold:        #c64545;
  --bwup-reserved:    #d9a93a;
}
.bwit-root {
  --bwit-border:      #e5e2db;
  --bwit-border-dark: #c8ad8e;
  --bwit-cream:       #eae4d9;
  --bwit-bg:          #fff;
  --bwit-bg-alt:      #faf9f6;
  --bwit-text:        #1a1a1a;
  --bwit-text-muted:  #6b6b6b;
  --bwit-accent:      #36af62;
  --bwit-sold:        #c64545;
  --bwit-reserved:    #d9a93a;
}
.pmc-gallery,
.pmc-unit-updates {
  --pmc-border:       #e5e2db;
  --pmc-border-dark:  #c8ad8e;
  --pmc-cream:        #eae4d9;
  --pmc-bg:           #fff;
  --pmc-bg-alt:       #faf9f6;
  --pmc-text:         #1a1a1a;
  --pmc-text-muted:   #6b6b6b;
  --pmc-accent:       #36af62;
  --pmc-error:        #c64545;
}

/* ── Shared base: font + tabular numerals ───────────────────── */

.bwup-root,
.bwit-root,
.pmc-gallery,
.pmc-unit-updates {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1;
  color: #1a1a1a;
}

/* Reset: kill WP theme radius on buttons/selects inside client shortcodes.
   Pills + cards re-apply their own radius where needed. */
.bwup-root button,
.bwup-root select,
.bwit-root button,
.bwit-root select,
.bwit-selection-bar button,
.pmc-gallery button,
.pmc-unit-updates button {
  border-radius: 0;
}

/* Focus: accent ring for keyboard users via :focus-visible; suppress the
   default focus ring on mouse clicks so the WP theme's blue focus styles
   don't leak through. */
.bwup-root :focus-visible,
.bwit-root :focus-visible,
.pmc-gallery :focus-visible,
.pmc-unit-updates :focus-visible {
  outline: 2px solid #36af62;
  outline-offset: 2px;
}
.bwup-root :focus:not(:focus-visible),
.bwit-root :focus:not(:focus-visible),
.pmc-gallery :focus:not(:focus-visible),
.pmc-unit-updates :focus:not(:focus-visible) {
  outline: none;
}
