/* Client skin: Coscarella Family Dentistry.
 * Colour, logo and font tokens change here. Layout, type scale, spacing and components
 * stay Levoko (css/tokens.css + css/app.css).
 * Louis asked (Nov 12 2026) for the look of a dark "folders" workspace instead of the
 * Levoko brand fonts and paper background, on this demo only. Dark is the default;
 * the light look is kept and can be switched on from the demo bar.
 * Their logo colours: blue #007FC7, teal #6BC1BC, peach #FDCB97. */
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --forest: #0071B8;        /* button fill: their blue, deep enough for white text */
  --forest-dk: #0A84D6;
  --forest-text: #6DBBF2;   /* their blue lifted so it reads as text on dark */
  --forest-band: #062A47;
  --ink: #F4F4F5;
  --ink-2: #C6C6CB;
  --ink-3: #8F8F96;
  --paper: #161617;
  --surface: #1F1F21;
  --surface-2: #111112;
  --band: #1B1B1D;
  --mint: #1D2B38;          /* selected fill */
  --line: #2E2E32;
  --note: #FDCB97;          /* the one sticky note uses their peach */
  --note-ink: #33230F;
  --scrim: rgba(0, 0, 0, 0.6);
  --ok: #7AD9A8;    --ok-bg: #15301F;
  --warn: #F2C56B;  --warn-bg: #3A2C0E;
  --bad: #FF9399;   --bad-bg: #3B181B;

  /* depth and glow for the dark look */
  --card-bg: linear-gradient(180deg, #252528 0%, #1C1C1E 100%);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  --page-bg: radial-gradient(60rem 28rem at 70% -10%, rgba(31, 127, 224, 0.16), transparent 70%), #131314;
  --btn-bg: linear-gradient(180deg, #2B9BF0 0%, #0A6FD0 100%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px -10px rgba(31, 127, 224, 0.9);
  --toast-link: #0071B8;
  --blur: 14px;
  --radius-sm: 0.625rem; --radius-md: 0.875rem; --radius-lg: 1.125rem; --radius-xl: 1.375rem;

  /* liquid-glass controls (time off, calendar) */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 18px 30px -18px rgba(0, 0, 0, 0.9);
  --well-bg: rgba(0, 0, 0, 0.28);
  --well-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.08);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 10px 26px -6px rgba(43, 155, 240, 0.85);

  --folder-a: #1F7FE0; --folder-b: #6BC1BC; --folder-c: #FDCB97;
  --folder-d: #8C7CF0; --folder-e: #F2C14E; --folder-f: #5C5C63;
  --folder-g: #F26FA8; --folder-h: #E5484D;
  --bubble: #2A2A2E;
  --nav-pill: #060607;
  --nav-pill-ink: #9C9CA3;

  /* Quiet, Apple-style type. Apple devices use their own system font (San Francisco);
     it can't be shipped to other computers, so everything else gets Inter, the closest
     open-licence match, bundled. Weights are kept low on purpose: regular for text,
     medium for emphasis, nothing heavier than semibold anywhere. */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --fw-hero: 600; --fw-h2: 600; --fw-h3: 500; --fw-stat: 500;
  --fw-kicker: 500; --fw-button: 500; --fw-medium: 500;
  --ls-h2: -0.02em; --ls-h3: -0.01em; --ls-stat: -0.02em; --ls-kicker: 0;
  --fs-page: clamp(1.625rem, 1.2rem + 1vw, 2rem);
  --fs-sub-big: 1.5rem;
  --fs-body: 1rem; --fs-small: 0.9375rem; --fs-kicker: 0.875rem; --fs-fine: 0.8125rem; --fs-sub: 1.0625rem;

  --logo: url("../assets/coscarella-logo-white.png");
  --logo-mark: url("../assets/coscarella-mark.png");
  --levoko-wordmark: url("../assets/levoko-wordmark-white.svg");
}

/* Light look, and anything printed for a patient (always white paper). */
:root[data-theme="light"], .sheet {
  color-scheme: light;
  --forest: #005E93;
  --forest-dk: #004A75;
  --forest-text: #005E93;
  --ink: #0B2236;
  --ink-2: #3B4E61;
  --ink-3: #566779;
  --paper: #F3F6F9;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --band: #E4EBF1;
  --mint: #E3F1FA;
  --line: #CCD7E0;
  --scrim: rgba(11, 34, 54, 0.45);
  --ok: #1D7A4F;    --ok-bg: #DDF1E4;
  --warn: #8A5A0B;  --warn-bg: #FFF1CF;
  --bad: #B3353F;   --bad-bg: #FBE4E3;
  --glass-bg: linear-gradient(180deg, #FFFFFF 0%, #F1F1F0 100%);
  --glass-border: #FFFFFF;
  --glass-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(0, 0, 0, 0.06), 0 16px 24px -14px rgba(0, 0, 0, 0.22);
  --well-bg: #F4F4F4;
  --well-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.10), 0 1px 0 #FFFFFF;
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 10px 22px -8px rgba(0, 113, 184, 0.7);
  --bubble: #E6EBF0;
  --nav-pill: #0B0B0D;
  --nav-pill-ink: #9C9CA3;
  --card-bg: #FFFFFF;
  --card-shadow: none;
  --page-bg: #F3F6F9;
  --btn-bg: #005E93;
  --btn-shadow: none;
  --toast-link: #9FD3F7;
  --logo: url("../assets/coscarella-logo.png");
  --levoko-wordmark: url("../assets/levoko-wordmark.svg");
}

/* The staff app (app.html, body.tp): look "C, Calm", picked by Louis on Nov 23 2026.
 * The look in words is DESIGN.md; the shared pieces are css/components.css. Their blue for
 * actions, their teal for structure, their peach for the money card, on a soft teal-blue wash.
 * Figtree, one family. Every colour the app uses is here; no other file writes a hex colour. */
body.tp {
  --font-sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --forest: #0071B8; --forest-dk: #005F9C; --forest-text: #0069AD;
  --btn-bg: #0071B8;
  --ink: #12283A; --ink-2: #435A6C; --ink-3: #5B7080;
  --page-bg: #EAF3F5; --paper: #EAF3F5; --surface: #FFFFFF; --band: #F3F8FA;
  --line: #E6EEF1;
  --line-strong: #CBDCE3;
  --sec-line: #B9D3E3;
  --fill: #F3F8FA;
  --fill-2: #F3F8FA;
  --fill-hover: #E8F1F4;
  --mint: #E3F1FA;
  --sel-bg: #E3F1FA; --sel-ink: #005E93;
  --teal: #6BC1BC; --teal-ink: #1E7A75; --teal-bg: #E3F1EF;
  --peach: #FDCB97; --peach-bg: #FFF5EA; --peach-line: #F6DFC4; --peach-ink: #6B4A27;
  --focus: rgba(0, 113, 184, 0.24);
  --ok: #1F7A3D; --ok-bg: #E2F3E7;
  --warn: #8A4D00; --warn-bg: #FFF0DC;
  --bad: #B3261E; --bad-bg: #FCE8E6;
  --material: rgba(255, 255, 255, 0.86);
  --hud: rgba(18, 40, 58, 0.9);
  --card-bg: #FFFFFF;
  --card-shadow: 0 0.0625rem 0.125rem rgba(18, 40, 58, 0.05);
  --seg-shadow: none;
  --sheet-shadow: 0 1rem 2.5rem rgba(18, 40, 58, 0.16), 0 0 0 0.0625rem rgba(18, 40, 58, 0.04);
  --scrim: rgba(18, 40, 58, 0.3);
  --avatar: #D7ECEA; --avatar-ink: #145E59;
  --chevrons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235B7080' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.75l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  --fw-h2: 700; --fw-h3: 600; --fw-kicker: 600; --fw-button: 600; --fw-medium: 500;
  --radius-sm: 0.625rem; --radius-md: 0.75rem; --radius-lg: 1.375rem; --radius-xl: 1.5rem;
  /* schedule calendars: three offices, time off, office events, Google Calendar */
  --c1: #0071B8; --c1-bg: #E1EEF8;
  --c2: #00897B; --c2-bg: #DDF1EE;
  --c3: #D2600A; --c3-bg: #FCEBDC;
  --c4: #8E44AD; --c4-bg: #F1E4F7;
  --c5: #2E7D32; --c5-bg: #E2F1E3;
  --c6: #616161; --c6-bg: #ECECEC;
  --now: #D93025;
}

/* The printouts keep the look they had before the app's look changed (Nov 18 2026): they're the
 * office's documents for patients, not app screens. Their own font and greys, on white paper. */
body.tp .tp-sheet {
  --font-print: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --ink: #1D1D1F; --ink-2: #515154; --ink-3: #5F5F64;
  --line: rgba(60, 60, 67, 0.14); --line-strong: rgba(60, 60, 67, 0.29);
  font-family: var(--font-print); letter-spacing: -0.005em;
}

/* Type for people reading all day on an office monitor (#52, Nov 20 2026): 16px text,
 * 14px for secondary lines, 15px buttons. Sections use these tokens (1rem / 0.875rem
 * minimums for anything people read) instead of fixed sizes. */
body.tp {
  --fs-body: 1rem; --fs-small: 1rem; --fs-fine: 0.875rem; --fs-kicker: 0.875rem; --fs-button: 0.9375rem;
  --lh-small: 1.5; --lh-fine: 1.45;
  --ok-ink: #1C6E31; --warn-ink: #8A4D00;                          /* text on the pale green / amber tags */
}

/* Touch screens (#12, mobile audit Nov 21 2026): an iPhone zooms the whole page in whenever a
 * field under 16px is tapped. Every field is at least 16px on touch, whatever a section sets
 * (hence !important: nothing more specific may undo it). Checkboxes and switches don't zoom. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size: max(16px, 1rem) !important; }
}
