/* Parking OS shared tokens and components.
   Jilani Place's own look (jilaniplace.com): monochrome, the system font, black pill buttons.
   Colour is kept for one job, a car's status: green covered, amber ending soon or in grace,
   red unpaid. A status colour always comes with a word and a shaped mark, never alone. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;       /* a selected row, an inset */
  --fill: #e8e8ed;            /* quiet buttons, segmented-control tracks */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;           /* 5.1:1 on white */
  --ink-3: #86868b;           /* icons and marks only (3.6:1) */
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --action-bg: #1d1d1f;
  --action-ink: #ffffff;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;   /* marks and dots */
  --good-ink: #17703a; --good-bg: #e9f5ec;
  --warning-ink: #8a5d00; --warning-bg: #fff4d5;
  --critical-ink: #c4281c; --critical-bg: #fdeceb;
  --good-band: #17703a; --warning-band: #fab219; --critical-band: #c4281c;   /* full-width status bands, same in both modes */
  --plate-ink: #1d3f8f;
  --bar: #6e6e73;             /* single-series chart marks, 5.1:1 on white */
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --plate-face: "Barlow Condensed", "Arial Narrow", sans-serif;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --fill: #2c2c2e;
    --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #8e8e93; --line: #38383a; --line-2: #2c2c2e;
    --action-bg: #f5f5f7; --action-ink: #1d1d1f;
    --good-ink: #30d158; --good-bg: #0d2a17; --warning-ink: #ffcc00; --warning-bg: #3a2f05; --critical-ink: #ff6961; --critical-bg: #3a1513;
    --bar: #aeaeb2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --fill: #2c2c2e;
  --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #8e8e93; --line: #38383a; --line-2: #2c2c2e;
  --action-bg: #f5f5f7; --action-ink: #1d1d1f;
  --good-ink: #30d158; --good-bg: #0d2a17; --warning-ink: #ffcc00; --warning-bg: #3a2f05; --critical-ink: #ff6961; --critical-bg: #3a1513;
  --bar: #aeaeb2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { letter-spacing: -.016em; }
h3 { letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }

/* the bar along the top of every screen */
.topbar { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.topbar .mark svg { display: block; width: 14px; height: 21px; color: var(--ink); }
.topbar b { font: 600 17px/1 var(--display); letter-spacing: -.012em; }
.topbar .end { margin-left: auto; color: var(--ink-2); font-size: 14px; font-weight: 600; text-align: right; }

.btn { appearance: none; border: 0; border-radius: 999px; min-height: 52px; padding: 0 24px; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; background: var(--action-bg); color: var(--action-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: transform .08s ease, opacity .15s ease; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .3; cursor: default; }
.btn--quiet { background: var(--fill); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--danger { background: var(--critical-band); color: #fff; }
.link { appearance: none; background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; min-height: 52px; padding: 0 16px; width: 100%; font-size: 17px; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--fill); }
select.input { appearance: none; padding-right: 42px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.card { background: var(--surface); border-radius: var(--r); }
.err { color: var(--critical-ink); font-weight: 600; }

/* status chips: a shaped mark, a word and a tint, never colour alone */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: var(--fill); color: var(--ink); white-space: nowrap; }
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.chip--good { background: var(--good-bg); color: var(--good-ink); }
.chip--good::before { background: var(--good); }
.chip--warn { background: var(--warning-bg); color: var(--warning-ink); }
.chip--warn::before { background: var(--warning); border-radius: 1px; transform: rotate(45deg); }
.chip--bad { background: var(--critical-bg); color: var(--critical-ink); }
.chip--bad::before { background: var(--critical); border-radius: 1px; }
.chip--wait::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* the Ontario plate, small */
.plate { display: inline-grid; grid-template-rows: 11px auto 9px; justify-items: center; align-items: center; background: linear-gradient(#fefefc, #f1f2ee);
  color: var(--plate-ink); border-radius: 7px; padding: 3px 12px 4px; box-shadow: inset 0 0 0 1.5px #dcddd8, 0 1px 2px rgba(0,0,0,.18); min-width: 104px; }
.plate b { font: 600 30px/1 var(--plate-face); letter-spacing: .03em; }
.plate i, .plate s { font: 600 7.5px/1 var(--plate-face); letter-spacing: .22em; text-decoration: none; font-style: normal; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active:not(:disabled) { transform: none; } }
