/* Copyright (c) 2026 Brownie, LLC. All rights reserved. */

/*
 * The approved design's colors, sizes and type, added to the ones in
 * tokens.css. Dark mode keeps the scanner's dark colors.
 */

/* ---------- Tokens ---------- */

:root {
  /* Lines between rows, lighter than borders. */
  --color-divider: #eef1ec;
  /* Every other table row, the row under the pointer, and a row held down:
     solid, so a sticky name cell can take them too ("Grid rows" below). */
  --color-row-alternate: #f7f9f6;
  --color-row-hover: #ebf3ed;
  /* Darker than the hover and the Practice tag, so a press shows. */
  --color-row-pressed: color-mix(in srgb, var(--color-accent) 22%, var(--color-surface));
  /* Text that's quieter than the body but stronger than muted. */
  --color-text-secondary: #3d4a42;
  /* Links and the selected item's text: a darker green for contrast. */
  --color-accent-strong: #1f6b3b;
  /* Outlined buttons and fields. */
  --color-control-border: #c9d1c5;
  --color-field: #f8faf7;
  /* The segmented control's track, and a small or full one's lit side. */
  --color-track: #eaeee7;
  --color-segment-lit-small: var(--color-surface);
  /* Text on the gold and review fills. */
  --color-ten-text: #7a5800;
  --color-ten-border: #ecd98f;
  --color-review-text: #8a4e00;
  --color-review-border: #f0cf9c;
  /* Tournament cards: blue, so practice (green) and tournament differ in
     lightness as well as hue. */
  --color-tournament: #1a5c96;
  --color-tournament-soft: #e3eef8;
  --color-neutral-soft: #eceae4;
  --color-danger-border: #e7b8b4;
  --color-scrim: rgb(22 33 27 / 42%);

  --size-control: 44px;
  --radius-card: 12px;
  --rail-width: 248px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-divider: #222c27;
    --color-row-alternate: #1d2621;
    --color-row-hover: #22332a;
    --color-text-secondary: #c3cec7;
    --color-accent-strong: #7fd29b;
    --color-control-border: #3a4740;
    --color-field: #141b17;
    --color-track: #222c27;
    --color-segment-lit-small: #4a5c52;
    --color-ten-text: #f0c03a;
    --color-ten-border: #5a4a1c;
    --color-review-text: #f2a541;
    --color-review-border: #5a4220;
    --color-tournament: #69aef0;
    --color-tournament-soft: #182a3b;
    --color-neutral-soft: #2b3630;
    --color-danger-border: #5c2b28;
    --color-scrim: rgb(0 0 0 / 60%);
  }
}
