/* Kashfiya design tokens: the only :root, and the only place colours are written (print.css aside): the other files
   use these names, also for see-through colours, drawn marks (data-URI images) and corner radii.
   Values are the approved prototype's final look (reference/prototype, proto-g22); names follow the prototype so the
   page styles of later phases read the same. No purple anywhere. */
:root {
  color-scheme: light;

  /* the warm paper and the cards on it */
  --paper: #f0ebe0;
  --paper-a90: rgba(240, 235, 224, .9); /* the settings' section bar over the page, with its blur */
  --sheet: #fffdf8;
  --sheet-side: color-mix(in srgb, var(--sheet) 52%, var(--paper));   /* a side column's quieter card */
  --field: #ffffff;
  --white: #ffffff;
  --card-line: rgba(120, 96, 40, .16);
  --ink: #172a31;
  --muted: #576a70;
  --muted-2: #4e6066;          /* tab words, a touch darker than muted on the tab rail */
  --dot-sep: #ab9f86;          /* the «·» between facts in a row */
  --line: #e2d9c6;
  --line-2: #ece5d6;
  --btn-line: #cbc1ad;
  --choice-line: #958c7d;
  --field-line: #74878c;
  --field-line-hover: #566a70;
  --placeholder: #64757a;
  --hover: #f7f2e8;
  --band: #f8f4ec;
  --band-2: #ebe5d8;           /* behind a paper opened by the doctor */
  --paper-line: #e3e9ea;       /* the edge of a paper's small picture */
  --tabs-bg: #e9e2d2;
  --wash-next: #fbf0d2;        /* the «next» row */
  --wash-in: #e6eff1;          /* the «inside now» row */

  /* petrol: the bars and the main action */
  --cover: #123b4a;
  --cover-2: #0c2c38;
  --cover-hi: #1a5265;
  --cover-mid: #1f6577;
  --cover-ink: #dceaee;
  --cover-dim: #9fbcc5;
  --cover-soft: #cfe0e5;
  --on-cover: #f2f4ef;
  --accent: #1c6a7c;
  --accent-2: #155868;
  --accent-soft: #e4ebe9;
  --soft-hover: #d2e0df;
  --on-accent: #f2f4ef;
  --focus: #1c6a7c;

  /* brass */
  --brass: #d6ad55;
  --brass-hi: #e9c46f;
  --brass-ink: #3d2c05;
  --coin-hi: #f6dd9c;
  --coin-lo: #b98d35;

  /* meaning: money green, alert red, amber */
  --money: #2a7a3e;
  --money-ink: #236b35;
  --money-soft: #deedd9;
  --money-line: #9dc0a6;
  --money-edge: #b9d6b6;       /* the day closed: its line on the money page */
  --ok-dot: #5fbf7a;
  --ok-hi: #9fd8ae;
  --net-ok: #7fcf95;
  --net-off: #f2d48a;
  --net-off-bg: #fbf0d2;       /* the strip under the top bar while the connection is lost */
  --net-off-ink: #6b4a0a;
  --net-off-line: #ead9a9;
  --net-back-bg: #e3f1de;      /* … and «عاد الاتصال.» a moment after */
  --net-back-line: #c9e2c1;
  --rx: #a5432f;
  --rx-ink: #8f3626;
  --rx-soft: #fbefea;
  --rx-line: #c98b7c;
  --rx-hi: #e58a76;
  --amber: #8a5a0f;
  --amber-line: #a87a2a;
  --amber-soft: #f2e6cc;
  --amber-wash: #fff8ea;
  --switch-off: #b4a88f;
  --wa: #1d6f3a;
  --wa-soft: #e2f3e6;
  --wa-hover: #d3ecd9;

  /* who a thing belongs to: the patient (brown), reception, the doctor, the system */
  --own-pat: #8a5a2b;
  --own-pat-soft: #f4e9da;
  --own-pat-ink: #6b4420;
  --own-desk: #3f5aa8;
  --own-desk-soft: #eceffa;
  --own-desk-ink: #2f4585;
  --own-doc: #1c6a7c;
  --own-doc-soft: #e3f0f0;
  --own-doc-ink: #155868;
  --own-auto: #6b7a80;
  --own-auto-soft: #f1ede3;
  --own-auto-ink: #4d5a5f;

  /* states */
  --disabled-bg: #efeadf;
  --disabled-ink: #5f6e73;
  --disabled-line: #ddd3bf;

  /* the day line (one mark a patient) and a time gone by (the reception, F2) */
  --day-mark: #ddd3c0;
  --day-left: #b9ae98;
  --day-booked: #a99d85;
  --slot-past: #b0a690;
  --off-wash: #f3eee4;         /* a day the clinic is closed */
  /* the bookings (F3): the words on a chosen day, the WhatsApp message as it will be sent */
  --day-on-ink: #d9ebed;
  --day-on-sub: #d7e9ec;
  --wa-msg: #e9f6e4;
  /* the doctor's big card (F6): its head's words on the petrol band, and the brass word above the name */
  --next-ink: #eef4f3;
  --next-k: #e6c877;
  /* the visit page (F6): the patient's band line; the prescription paper as it prints (its ink, its muted lines,
     its edge, the patient's line, the footer's rule, the ruled lines); a vital sign's unit in its box */
  --pband-line: #e3d2ba;
  --rx-paper-ink: #2a3d63;
  --rx-paper-muted: #56657f;
  --rx-paper-edge: #d9dfe0;
  --rx-paper-band: #e3eef0;
  --rx-paper-rule: #d4dfe1;
  --rx-paper-lines: #eef1f6;
  --vit-unit: #8a999d;
  /* a patient's face (F4): one of five steady tones a name, the first letter on it (lists.css .face.t0 … .t4) */
  --face-0-bg: #e4ebe9;
  --face-0-ink: #123b4a;
  --face-1-bg: #f6ead0;
  --face-1-ink: #7a520c;
  --face-2-bg: #f4e9da;
  --face-2-ink: #6b4420;
  --face-3-bg: #ece5d6;
  --face-3-ink: #3f3a2e;
  --face-4-bg: #dfe9ec;
  --face-4-ink: #1a5265;
  --hall-bg: #fbf0d2;          /* «إبلاغ المنتظرين» while a note shows on the waiting-room screen */
  --hall-ink: #6b4a0a;
  --hall-line: #e3c77f;
  --hall-hover: #f7e6b8;

  /* sign-in */
  --signin-card: #f8fbfa;
  --signin-glow: #2a9aa3;
  --signin-soft: #dfeeee;

  /* type: one scale 13/15/17/22 and 26 for the day's title, the figures and the name inside now */
  --font-ui: "Readex Pro", Tahoma, "Segoe UI", Arial, sans-serif;
  /* the same letters inside a field (input, select, textarea): Readex Pro with a deeper descent (scripts/copy-fonts.ts),
     so Chrome does not cut the dots under the letters there («علي» stays «علي») */
  --font-field: "Readex Pro Field", "Readex Pro", Tahoma, "Segoe UI", Arial, sans-serif;
  --font-name: "Aref Ruqaa", serif;
  --font-rx: "Cairo", Tahoma, Arial, sans-serif;
  --fs-1: 13px;
  --fs-2: 15px;
  --fs-3: 17px;
  --fs-4: 22px;
  --fs-5: 26px;
  /* the wordmark كشفية is a logo, drawn at its own sizes */
  --fs-mark: 31px;
  --fs-mark-sm: 26px;
  --fs-mark-signin: 56px;
  --fs-mark-signin-sm: 40px;

  /* sizes and space */
  --ctl: 40px;
  --ctl-sm: 34px;
  --ctl-lg: 48px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --r-1: 10px;
  --r-2: 16px;
  --r-3: 22px;
  --r-sheet: 18px;
  --r-row: 12px;
  --r-pill: 999px;
  --r-dot: 50%;                /* a circle: round buttons, dots, turn numbers */
  --r-line: 3px;               /* the brass line under the day's title */
  --r-tick: 4px;               /* an owner's stripe, a task's bar */
  --r-link: 8px;               /* a word button */
  --r-lift: 14px;              /* a row lifted out of its list, a menu, the sign-in fields */
  --r-rail: 21px;              /* the rail under tabs and choices */
  --r-key: 6px;
  --r-alert: 6px;              /* a medical alert's chip */                /* a keyboard key («Enter» beside a dialog's main button) */

  /* depth */
  --sh-1: 0 1px 2px rgba(12, 44, 56, .06);
  --sh-day: 0 1px 2px rgba(12, 44, 56, .04);       /* a day of the bookings' strip */
  --sh-day-on: 0 4px 12px rgba(18, 59, 74, .2);   /* the day shown */
  --sh-2: 0 8px 22px rgba(12, 44, 56, .14);
  --sh-card: 0 1px 1px rgba(88, 66, 20, .05), 0 2px 5px rgba(88, 66, 20, .05), 0 16px 32px -14px rgba(88, 66, 20, .24);
  --sh-card-hi: 0 1px 1px rgba(12, 44, 56, .05), 0 6px 14px rgba(12, 44, 56, .07), 0 26px 50px -16px rgba(12, 44, 56, .28);
  --sh-btn: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(18, 59, 74, .2), 0 6px 14px -8px rgba(18, 59, 74, .45);
  --sh-btn-hover: inset 0 1px 0 rgba(255, 255, 255, .34), 0 2px 4px rgba(18, 59, 74, .18), 0 12px 22px -10px rgba(18, 59, 74, .5);
  --btn-depth: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .07));
  --sh-toast: 0 10px 26px rgba(12, 44, 56, .28);
  --sh-modal: 0 2px 6px rgba(12, 44, 56, .1), 0 40px 90px -20px rgba(12, 44, 56, .5);
  --ring: 0 0 0 4px rgba(28, 106, 124, .16);

  /* see-through colours: a token's colour and how much of it shows (-a20 = 20%) */
  --accent-a04: rgba(28, 106, 124, .043);
  --accent-a11: rgba(28, 106, 124, .11);
  --accent-a25: rgba(28, 106, 124, .25);
  --accent-a38: rgba(28, 106, 124, .38);
  --cover-a16: rgba(18, 59, 74, .16);
  --cover-a18: rgba(18, 59, 74, .18);
  --cover-a22: rgba(18, 59, 74, .22);
  --cover-2-a06: rgba(12, 44, 56, .06);
  --cover-2-a08: rgba(12, 44, 56, .08);
  --cover-2-a10: rgba(12, 44, 56, .1);
  --cover-2-a12: rgba(12, 44, 56, .12);
  --cover-2-a16: rgba(12, 44, 56, .16);
  --cover-2-a25: rgba(12, 44, 56, .25);
  --cover-2-a40: rgba(12, 44, 56, .4);
  --cover-2-a55: rgba(12, 44, 56, .55);
  --cover-ink-a08: rgba(220, 234, 238, .08);
  --cover-ink-a14: rgba(220, 234, 238, .14);
  --on-cover-a12: rgba(242, 244, 239, .12);
  --on-cover-a14: rgba(242, 244, 239, .14);
  --on-cover-a22: rgba(242, 244, 239, .22);
  --on-cover-a24: rgba(242, 244, 239, .24);
  --on-cover-a34: rgba(242, 244, 239, .34);
  --on-cover-a35: rgba(242, 244, 239, .35);
  --on-cover-a40: rgba(242, 244, 239, .4);
  --brass-a16: rgba(214, 173, 85, .16);
  --brass-a20: rgba(214, 173, 85, .2);
  --brass-a22: rgba(214, 173, 85, .22);
  --brass-a26: rgba(214, 173, 85, .26);
  --brass-a35: rgba(214, 173, 85, .35);
  --brass-a55: rgba(214, 173, 85, .55);
  --coin-shade-a30: rgba(120, 86, 10, .3);
  --coin-shade-a32: rgba(120, 86, 10, .32);
  --rx-a16: rgba(165, 67, 47, .16);
  --rx-a92: rgba(165, 67, 47, .92);
  --wash-next-fade: rgba(251, 243, 222, .25);
  --wash-in-a20: rgba(230, 239, 241, .2);
  --white-a35: rgba(255, 255, 255, .35);
  --white-a65: rgba(255, 255, 255, .65);
  --black-a05: rgba(0, 0, 0, .05);
  --black-a18: rgba(0, 0, 0, .18);
  --black-a35: rgba(0, 0, 0, .35);
  --signin-shine: rgba(120, 200, 215, .9);

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms;
  --t-base: 180ms;

  /* drawn marks: a select's arrow (muted, and petrol in a summary), a field error's «!», the heartbeat line under the
     top bar, in the empty bell panel and under the sign-in name; the paper's grain */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23576a70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231c6a7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --err-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 3.6v5' stroke='white' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='7.5' cy='11.2' r='1.1' fill='white'/%3E%3C/svg%3E");
  --ecg-bar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 20'%3E%3Cpath d='M0 10h52l5-7 6 14 5-10 3 3h10l3-2 3 2h63' fill='none' stroke='%23d6ad55' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --ecg-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M0 9h44l5-7 6 14 5-10 3 3h10l3-2 3 2h41' fill='none' stroke='%23d6ad55' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --ecg-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 18'%3E%3Cpath d='M0 9h62l5-7 6 14 5-10 3 3h10l3-2 3 2h73' fill='none' stroke='%23d6ad55' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .17 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --ecg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='40' viewBox='0 0 260 40'%3E%3Cpath d='M0 20h102l6-9 7 22 8-30 7 26 5-9h125' fill='none' stroke='%23d6ad55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* the waiting-room TV's own (css/tv.css): its inks on the cream and on the petrol card, its well, the coin's ink */
  --tv-ink-soft: #2a3d43;
  --tv-ink-dim: #6a6457;
  --tv-ink-brass: #7a5a17;
  --tv-head-ink: #eef2ee;
  --tv-now-soft: rgba(238, 242, 238, .86);
  --tv-now-dim: #a9c3ca;
  --tv-well: rgba(255, 253, 248, .55);
  --coin-ink: #3d2c05;
  --brass-a10: rgba(214, 173, 85, .1);
  --brass-a50: rgba(214, 173, 85, .5);
  --brass-a70: rgba(214, 173, 85, .7);
  --brass-hi-a0: rgba(233, 196, 111, 0);
  --brass-hi-a60: rgba(233, 196, 111, .6);
  --brass-hi-a70: rgba(233, 196, 111, .7);
  --cover-ink-a28: rgba(220, 234, 238, .28);
  --warm-a06: rgba(88, 66, 20, .06);
  --warm-a08: rgba(88, 66, 20, .08);
  --warm-a22: rgba(88, 66, 20, .22);
}
