/* Clarivy theme. Direction: tech, tuned light-first toward clinical.
   Every value is named after the subject: a case file assembling itself. */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-display: "Outfit", "Manrope", "Helvetica Neue", Arial, var(--cjk);
  --font-body: "Manrope", "Helvetica Neue", Arial, var(--cjk);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --w-display: 500;
  --tr-display: -0.035em;
  --tr-h2: -0.03em;
  --lh-display: 1.02;
  --fs-display: clamp(2.6rem, 1.5rem + 4.6vw, 5.6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.6rem);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-button: 8px;
  --case-eyebrow: uppercase;
  --tr-eyebrow: 0.14em;
  --bg: #faf9f6;            /* case-file paper */
  --surface: #ffffff;       /* record sheet */
  --surface-2: #f1efea;     /* archive folder */
  --ink: #0d1118;           /* logo ink */
  --muted-strong: #353b46;  /* reviewer note */
  --muted: #5a616d;         /* margin annotation */
  --line: #e4e0d8;          /* folder edge */
  --line-strong: #cbc5ba;   /* binder rule */
  --ink-field: #101317;     /* night review room */
  --on-ink: #f1f3f7;
  --on-ink-muted: #b3bac6;
  --accent: #0871d5;        /* citation link blue, logo bar */
  --accent-fill: #0871d5;
  --accent-on-fill: #ffffff;
  --accent-text: #0862b8;
  --accent-soft: #e4f0fc;   /* logo pale blue bar */
  --gap: #9a5a00;           /* open gap marker */
  --gap-soft: #fbf0dc;
  --ok: #19764a;            /* checked stamp */
  --ok-soft: #e2f2e9;
  --field-1: #f1efea;
  --field-1-ink: #0d1118;
  --field-2: #e4f0fc;
  --field-2-ink: #0d1118;
  --field-3: #101317;
  --field-3-ink: #f1f3f7;
  --shadow: 0 1px 2px rgba(13, 17, 24, 0.04), 0 18px 48px -18px rgba(13, 17, 24, 0.18);
  color-scheme: light dark;
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1118;
    --surface: #141922;
    --surface-2: #19202b;
    --ink: #eef1f6;
    --muted-strong: #c8ceda;
    --muted: #9aa3b2;
    --line: rgba(238, 241, 246, 0.1);
    --line-strong: rgba(238, 241, 246, 0.2);
    --ink-field: #070a0f;
    --on-ink: #eef1f6;
    --on-ink-muted: #a9b1bf;
    --accent: #5aa8f0;
    --accent-fill: #5aa8f0;
    --accent-on-fill: #0d1118;
    --accent-text: #80bdf6;
    --accent-soft: #132a44;
    --gap: #e9ad55;
    --gap-soft: #33260f;
    --ok: #63c793;
    --ok-soft: #12291d;
    --field-1: #19202b;
    --field-1-ink: #eef1f6;
    --field-2: #132a44;
    --field-2-ink: #eef1f6;
    --field-3: #070a0f;
    --field-3-ink: #eef1f6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 48px -18px rgba(0, 0, 0, 0.7);
  }
}
@media screen {
  :root[data-theme="dark"] {
    --bg: #0d1118;
    --surface: #141922;
    --surface-2: #19202b;
    --ink: #eef1f6;
    --muted-strong: #c8ceda;
    --muted: #9aa3b2;
    --line: rgba(238, 241, 246, 0.1);
    --line-strong: rgba(238, 241, 246, 0.2);
    --ink-field: #070a0f;
    --on-ink: #eef1f6;
    --on-ink-muted: #a9b1bf;
    --accent: #5aa8f0;
    --accent-fill: #5aa8f0;
    --accent-on-fill: #0d1118;
    --accent-text: #80bdf6;
    --accent-soft: #132a44;
    --gap: #e9ad55;
    --gap-soft: #33260f;
    --ok: #63c793;
    --ok-soft: #12291d;
    --field-1: #19202b;
    --field-1-ink: #eef1f6;
    --field-2: #132a44;
    --field-2-ink: #eef1f6;
    --field-3: #070a0f;
    --field-3-ink: #eef1f6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 48px -18px rgba(0, 0, 0, 0.7);
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}
