/*
  Design tokens of School Management (docs/DESIGN.md): the font and the colour, radius, shadow and motion variables.
  Shared by the web panel (before app.css) and the mobile app (linked from SchoolManagement.Mobile.Core).
*/
/* Readex Pro, self-hosted (SIL OFL 1.1, fonts/readex-pro/OFL.txt). One variable file per script covers 400-700. */
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/readex-pro/readex-pro-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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;
}
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/readex-pro/readex-pro-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/readex-pro/readex-pro-latin.woff2") format("woff2");
  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 {
  --green-950: #0C2410;
  --green-900: #12331A;
  --green: #1B5E20;
  --green-hover: #15491A;
  --green-600: #2E7D32;
  --green-50: #EEF6EE;
  --green-100: #D9ECDA;
  --yellow: #FBC02D;
  --yellow-soft: #FFF4CC;
  --bg: #F6F7F5;
  --surface: #FFFFFF;
  --line: #E8ECE6;
  --line-strong: #D5DCD2;
  --line-soft: #F0F2EE;   /* dividers between rows inside a card */
  --line-hover: #BCC6B9;  /* an input's border under the pointer */
  --surface-2: #FBFCFA;   /* soft inner panels, list columns and row hover */
  --fill-soft: #ECEFEA;   /* the track of segmented controls */
  --fill-muted: #EEF0EC;  /* progress tracks, the empty-state icon, a neutral result */
  --error-line: #F9D2CC;  /* the border of error boxes (on --error-50) */
  --warn-line: #F6E3A1;   /* the border of warning boxes (on --warn-soft) */
  --text: #111A13;
  --muted: #5F6D61;
  --faint: #697369;   /* 4.9:1 on white: placeholders and meta stay readable */
  --error: #B42318;
  --error-50: #FEF0EE;
  --focus: #2E7D32;
  --tag-ok-bg: #DDF0DE;
  --tag-ok-fg: #0C3A12;
  --tag-late-fg: #3D2C00;
  --tag-warn-fg: #5A3D00;
  --tag-bad-fg: #7A1710;
  --tag-none-bg: #EEF0EC;
  /* Fixed meaning colours (late, warning, done/ok): not part of a palette. */
  --tag-late-bg: #FBC02D;
  --warn-soft: #FFF4CC;
  --ok: #1B5E20;
  --ok-fg: #FFFFFF;
  /* Attendance chart series: fixed meaning colours, the same for every school palette. */
  --chart-present: #2E7D32;
  --chart-excused: #7FAF86;
  --chart-late: #B7791F;
  --chart-absent: #B42318;

  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  /* Resting surfaces use a 1px border, never a shadow too. Shadows are only for what floats (dialogs). */
  --shadow-float: 0 24px 64px -20px rgba(12, 36, 16, .45), 0 0 0 1px rgba(12, 36, 16, .06);
  --font: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 250ms;
  --dur-spin: 800ms;
  --dur-intro: 700ms; /* phone apps' opening logo motion (mobile.css #sm-intro): keep equal to app.js smIntro */
  --dur-intro-out: 350ms; /* the intro fading over the first page: keep equal to app.js smIntro */
  --dur-hold: 1500ms; /* hold to record (driver HoldButton): keep equal to HoldButton.HoldMilliseconds */
  --move-enter: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes hold-fill { from { inline-size: 0; } to { inline-size: 100%; } }
/* A new page fades in. Opacity only: a transform would move position: fixed bars inside the page while it runs. */
.page-enter { animation: fade var(--dur-base) var(--ease); }
@media print { .page-enter { animation: none; } }
/* Motion stops for people who ask for it. The spinner stays: it is the only sign that work is still running. */
@media (prefers-reduced-motion: reduce) {
  *:not(.spinner):not(.hold-fill), *::before, *::after { transition: none !important; animation: none !important; }
}
