/* Page-wide base shared by every MorDrives page: the Readex face, colour variables, reset, body text and headings.
   The staff app adds app.css on top; renter and marketing pages use only this. */
@font-face {
  font-family: 'Readex Pro Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/static/fonts/readex-pro-arabic.woff2) format('woff2-variations');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Readex Pro Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/static/fonts/readex-pro-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Readex Pro Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/static/fonts/readex-pro-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root{
  .app-update{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));inset-inline:16px;margin:auto;max-width:500px;z-index:80;background:var(--card,#fff);color:var(--ink,#182d27);border:1px solid var(--line,#ddd);border-radius:14px;padding:12px 16px;box-shadow:0 6px 30px #0002;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
/* the agency's colour from Settings, set by web/lib/livery.ts */
  --rail:#24463C; --rail-ink:#ffffff;

  --brand:#24463C; --brand-on:#ffffff; --accent:#C8A24A;

  /* chrome */
  --sidebar:var(--rail);
  --sidebar-hover:color-mix(in srgb,var(--rail-ink) 16%,var(--rail));
  --sidebar-active:var(--rail-ink);
  --sidebar-text:var(--rail-ink);
  --sidebar-text-strong:var(--rail-ink);
  --sidebar-group:var(--rail-ink);
  --topbar:#ffffff;
  --topbar-border:#DDE2DD;

  /* surfaces: flat enamel, no gradients or glows */
  --bg:#EDEFEC; --card:#ffffff; --card2:#F6F7F5; --line:#DDE2DD; --line2:#EDEFEC;
  --ink:#17201C; --ink2:#3F4C45; --ink3:#56635C;

  /* the fixed state legend: never a branch colour, every pair at least 4.5:1 */
  --ok:#0F5A2E;      --ok-bg:#D9EEDF;
  --busy:#123F7A;    --busy-bg:#DDE8F6;
  --booked:#4C2E91;  --booked-bg:#E7E0F6;
  --idle:#4B5851;    --idle-bg:#E4E8E4;
  --warn:#6B4300;    --warn-bg:#F9E6BE;
  /* earlier names, still used by pages */
  --good:var(--ok); --good-bg:var(--ok-bg); --info:var(--busy); --info-bg:var(--busy-bg);
  --bad:#7A1712; --bad-bg:#F8E0DC;

  --brand-ink:var(--ink);
  --brand-mark:var(--brand);
  --mark-idle:#7C8982;
  --mark-cost:#D97706;
  --we:color-mix(in srgb, var(--ink) 3.5%, var(--card));
  --today:color-mix(in srgb, var(--ink) 8%, var(--card));

  --r:10px;
  --row-h:38px;
  --shadow:none;
  --pop:0 10px 30px rgba(23,32,28,.18);
  --safe-b:env(safe-area-inset-bottom,0px);
  --side-w:236px;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
/* One face for Latin and Arabic, served from our own origin. */
body{font:14px/1.45 "Readex Pro Variable","Segoe UI",Tahoma,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--ink);text-underline-offset:2px}
::selection{background:var(--rail);color:var(--rail-ink)}
input,textarea{caret-color:var(--rail)}
h1,h2,h3{margin:0;line-height:1.2}
h1{font-size:24px;font-weight:600;letter-spacing:-.01em} h2{font-size:16px;font-weight:600} h3{font-size:14px;font-weight:600}
.muted{color:var(--ink3)} .small{font-size:12.5px} .num{font-variant-numeric:tabular-nums;white-space:nowrap}
.hidden{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ico{width:18px;height:18px;flex:none}
.boot{display:grid;place-items:center;height:100vh;color:var(--ink2);gap:10px;text-align:center}
.boot-logo{width:48px;height:48px;border-radius:14px;background:var(--brand);animation:pulse 1.2s infinite ease-in-out}
@keyframes pulse{50%{transform:scale(.88);opacity:.6}}
a:focus-visible,button:focus-visible,.item:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
