/*
 * Hopheads design tokens: the one place for colours, fonts and spacing.
 * Used by Head Office (site.css) and the till (till.css, which gets a copy of this file at build time).
 * Change a value here and both apps follow.
 */
:root {
    /* Neutrals */
    --color-bg: #f6f7f8;
    --color-surface: #ffffff;
    --color-surface-muted: #f1f2f4;
    --color-border: #e2e4e8;
    --color-border-strong: #c8ccd2;
    --color-text: #1a1b1e;
    --color-text-muted: #5f6368;

    /* Primary: Hopheads green, the single brand colour in the tools */
    --color-primary: #006738;
    --color-primary-hover: #00532d;
    --color-primary-tint: #e7f3ed;
    --color-primary-border: #b5d6c5;
    --color-on-primary: #ffffff;

    /* Warning (amber) and danger (red): only for those meanings */
    --color-warning: #fbb040;
    --color-warning-tint: #fff4e1;
    --color-warning-text: #7a4800;
    --color-danger: #c62828;
    --color-danger-hover: #a32020;
    --color-danger-tint: #fdeded;
    --color-danger-border: #f2b8b8;
    --color-on-danger: #ffffff;

    --color-focus-ring: rgba(0, 103, 56, 0.35);

    /* Type */
    --font-ui: "Archivo", system-ui, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Space Mono", ui-monospace, Consolas, monospace;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 15px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: 28px;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 600;

    /* Spacing: 8px grid (4px for tight gaps only) */
    --space-half: 4px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;

    /* Shape and sizing */
    --radius: 6px;
    --control-height: 40px;
    --control-height-small: 32px;
    --page-width: 1120px;

    /* Till: touch-first sizes */
    --till-touch: 64px;
    --till-text: 20px;
    --till-price: 28px;
    --till-total: 48px;
    --till-bar: #1a1b1e;
    --till-on-bar: #ffffff;

    /* Keymap button categories: colour only tells categories apart (till and the HO designer).
       Light fills keep near-black text high contrast; the edge colour helps at a glance. */
    --cat-draught: #f7e8bf;       --cat-draught-edge: #b58a1b;
    --cat-packaged: #dbe8f7;      --cat-packaged-edge: #3c6ea8;
    --cat-wine: #f3dbe5;          --cat-wine-edge: #a3456c;
    --cat-spirits: #e7e0f4;       --cat-spirits-edge: #6c55a6;
    --cat-nonalcoholic: #d8f0eb;  --cat-nonalcoholic-edge: #2e8a78;
    --cat-food: #f8e0cf;          --cat-food-edge: #b5652c;
    --cat-merch: #e6e7ea;         --cat-merch-edge: #6b6f78;
    --cat-other: #ffffff;         --cat-other-edge: #9aa0a8;

    /* Draught: each tap's buttons share one colour, so staff can tell the beers apart (tap 13 reuses tap 1's).
       Neighbouring taps get very different colours; fills stay light enough for near-black text. */
    --tap-1: #ffe08a;   --tap-1-edge: #c9a000;
    --tap-2: #9fd3f5;   --tap-2-edge: #2b7bb9;
    --tap-3: #a8e3a0;   --tap-3-edge: #3c8f33;
    --tap-4: #f9b0a8;   --tap-4-edge: #c4473a;
    --tap-5: #cdb8f5;   --tap-5-edge: #6b48c0;
    --tap-6: #ffc690;   --tap-6-edge: #d0721c;
    --tap-7: #8fded4;   --tap-7-edge: #1f8f80;
    --tap-8: #f5b3dc;   --tap-8-edge: #b8448d;
    --tap-9: #d4e98a;   --tap-9-edge: #7c9a17;
    --tap-10: #b3c4ff;  --tap-10-edge: #3d55c9;
    --tap-11: #e7c9a8;  --tap-11-edge: #8f6234;
    --tap-12: #f0c4f7;  --tap-12-edge: #9b3fae;
}
