/* Shared by the provider website, patient app and clinic workspace. See root brand.md (version 1.2). */

/* Plus Jakarta Sans, variable 200–800, self-hosted under the SIL Open Font License (fonts/OFL.txt). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}
/* Kept so older screens that name the rounded face directly still resolve it. */
@font-face {
  font-family: "Arial Rounded MT Bold";
  src: local("Arial Rounded MT Bold"), local("ArialRoundedMTBold");
  font-weight: 700;
}

:root {
  color-scheme: light;

  /* Foundation */
  --plum: #302443;
  --paper: #fffbf5;
  --poppy: #f36b53;
  --periwinkle: #b6b9ff;
  --peri: var(--periwinkle);
  --butter: #fff1c7;
  --chalk: #fcfaf7;
  --soft-iris: #dcd7f2;
  --white: #ffffff;

  /* Semantic roles */
  --surface: var(--chalk);
  --raised: var(--white);
  --text: var(--plum);
  --ink: var(--text);
  --ink-muted: #5d5268;
  --muted: var(--ink-muted);
  --divider: #cbc2cd;
  --line: var(--divider);
  --action-primary-bg: var(--plum);
  --action-primary-fg: var(--paper);
  --selection-bg: var(--soft-iris);
  --selection-fg: var(--plum);
  --selection-row: linear-gradient(90deg, rgb(220 215 242 / .95), rgb(220 215 242 / .55));  /* a selected row: Soft iris fading out */
  --intro-bg: var(--butter);
  --emphasis: var(--poppy);
  /* Role fills: each mapped once here so every page draws the same wash (brand.md §2). */
  --tile-wash: linear-gradient(150deg, #f8f6fc, #e9e5f6);         /* a resting icon tile: neutral iris wash */
  --chip-muted-bg: #f4f1f5;                                        /* a muted status chip */
  --avatar-fill: radial-gradient(100% 100% at 30% 25%, #fbfafe, var(--soft-iris) 78%);  /* a person's initials */
  --panel-tint: linear-gradient(180deg, #f8f6fd, #fbfaf7);         /* a quiet side panel or note */
  --butter-wash: linear-gradient(135deg, #fffaf0, var(--butter));  /* one line of visit context, e.g. a booking review */
  --success: #215a44;
  --warning: #72500d;
  --error: #983f32;
  --focus: var(--plum);

  /* Depth and radiance (brand.md §2, "Depth and radiance") */
  --iris-mid: #7f82e0;           /* deepest stop of the radiant iris fill */
  --scene-bg: #fff2c9;           /* the Butter field baked into the clinic renders */
  --hairline: rgb(48 36 67 / .09);   /* decorative card edge */
  --edge: rgb(48 36 67 / .16);       /* quiet control edge; text still identifies the control */
  --control-track: #8a7f95;          /* progress track a control depends on: 3.6:1 on Chalk, 3.8:1 on white */
  --radiant-iris: radial-gradient(120% 120% at 28% 18%, #f1efff 0%, var(--soft-iris) 26%, var(--periwinkle) 62%, var(--iris-mid) 100%);
  --radiant-butter: radial-gradient(120% 120% at 30% 20%, #fffdf4 0%, var(--butter) 48%, #fcd9b8 100%);
  --radiant-plum: linear-gradient(180deg, #43355c 0%, var(--plum) 100%);
  --glow-periwinkle: rgb(182 185 255 / .55);
  --glow-butter: rgb(255 241 199 / .9);
  --shadow-1: 0 1px 1px rgb(48 36 67 / .04), 0 2px 6px -2px rgb(48 36 67 / .07);
  --shadow-2: 0 1px 1px rgb(48 36 67 / .04), 0 4px 10px -4px rgb(48 36 67 / .08), 0 18px 36px -16px rgb(48 36 67 / .16);
  --shadow-3: 0 1px 2px rgb(48 36 67 / .05), 0 8px 20px -8px rgb(48 36 67 / .10), 0 30px 60px -24px rgb(48 36 67 / .22), 0 60px 100px -48px rgb(127 130 224 / .26);
  --shadow-scene: 0 1px 2px rgb(48 36 67 / .04), 0 24px 60px -30px rgb(48 36 67 / .28);
  --shadow-action: inset 0 1px 0 rgb(255 251 245 / .16), 0 2px 4px rgb(48 36 67 / .14), 0 12px 26px -10px rgb(48 36 67 / .55);

  /* Shape */
  --radius-input: 12px;
  --radius-tile: 1rem;
  --radius-card: 1.5rem;
  --radius-scene: 2rem;  /* an illustration frame on wide screens; phones use --radius-card */
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.45, 0, .25, 1);
  --dur-quick: 150ms;   /* colour, underline */
  --dur-base: 250ms;    /* hover lift, press */
  --dur-state: 400ms;   /* selection, chip swap */
  --dur-scene: 600ms;   /* scene crossfade, entrance */
  --loop-period: 6s;    /* idle float, ≤ 6 px travel */
  --cycle: 6s;          /* time on each stage of an auto-advancing visit */

  /* Type */
  --font-display: "Plus Jakarta Sans", "Trebuchet MS", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Trebuchet MS", Arial, sans-serif;
  --type-hero: 4.5rem;
  --leading-hero: 4.75rem;
  --type-title: 2.25rem;
  --leading-title: 2.625rem;
  --type-section: 1.75rem;
  --leading-section: 2.125rem;
  --type-subheading: 1.25rem;
  --leading-subheading: 1.625rem;
  --type-lead: 1.125rem;
  --leading-lead: 1.75rem;
  --type-body: 1rem;
  --leading-body: 1.5rem;
  --type-nav: .9375rem;
  --leading-nav: 1.25rem;
  --type-small: .875rem;
  --leading-small: 1.25rem;
  font: 100%/1.5 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--surface);
}

@media (max-width: 47.99rem) {
  :root {
    --type-hero: 3rem;
    --leading-hero: 3.25rem;
    --type-title: 1.75rem;
    --leading-title: 2.125rem;
    --type-section: 1.5rem;
    --leading-section: 1.875rem;
    --type-lead: 1rem;
    --leading-lead: 1.5rem;
  }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
