/* ==== oracle-sans.css, unchanged, from oracle-sans commit ee699df2b51a8bc5679be4ebff8dc584398fa2a5 ==== */

/* Oracle Sans — self-hosted variable webfont.
 * © 2019 Dalton Maag Ltd. Oracle is a registered trademark of Oracle and/or
 * its affiliates. Internal Oracle brand asset — see NOTICE. Do not redistribute.
 *
 * Latin covers wght 275–800; Cyrillic/Greek only 300–700. The CyGr faces are
 * declared last so they win for the codepoints they claim.
 * Keep the CSS weight ranges identical for Chromium's family matching;
 * the CyGr font files still clamp to their intrinsic 300–700 axis range.
 */

@font-face {
  font-family: "Oracle Sans";
  src: url("../fonts/oraclesansvf.woff2") format("woff2-variations"),
       url("../fonts/oraclesansvf.woff2") format("woff2");
  font-weight: 275 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oracle Sans";
  src: url("../fonts/oraclesansvf-it.woff2") format("woff2-variations"),
       url("../fonts/oraclesansvf-it.woff2") format("woff2");
  font-weight: 275 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Oracle Sans";
  src: url("../fonts/oraclesansvf-cygr.woff2") format("woff2-variations"),
       url("../fonts/oraclesansvf-cygr.woff2") format("woff2");
  font-weight: 275 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF, U+0400-04FF, U+0500-052F,
                 U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Oracle Sans";
  src: url("../fonts/oraclesansvf-cygr-it.woff2") format("woff2-variations"),
       url("../fonts/oraclesansvf-cygr-it.woff2") format("woff2");
  font-weight: 275 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF, U+0400-04FF, U+0500-052F,
                 U+2DE0-2DFF, U+A640-A69F;
}

:root {
  --font-oracle-sans: "Oracle Sans", -apple-system, BlinkMacSystemFont,
                      "Segoe UI", Helvetica, Arial, sans-serif;
  /* No Oracle mono exists; system stack. Swap for JetBrains Mono if you
     display OCIDs — Oracle Sans has no slashed zero and l/I/1 are close. */
  --font-oracle-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo,
                      Consolas, "Liberation Mono", monospace;
}

/* Oracle Sans digits are proportional by default (1 is 367 units vs 0 at 632).
   Apply to anything that must align in a column. */
.os-tabular { font-variant-numeric: tabular-nums; }

/* ==== redwood-tokens.css, unchanged, from oracle-sans commit ee699df2b51a8bc5679be4ebff8dc584398fa2a5 ==== */

/* Redwood design tokens — plain CSS custom properties, no framework.
 *
 * Values derived from Oracle's Redwood reference implementation (the Oracle JET
 * 19.0.0 compiled theme) and renamed into a flat --rw-* namespace. You do not
 * need JET to use this file; it is only where the canonical values were read
 * from. Pair with oracle-sans.css for the typeface.
 *
 * Regenerate: see STYLE-GUIDE.md § Provenance.
 * (c) Oracle. Internal brand asset - see NOTICE. */

:root {

  /* Brand — a desaturated teal-blue. NOT Oracle marketing red. */
  --rw-brand-10: #f6fafc;
  --rw-brand-20: #edf6f9;
  --rw-brand-30: #e4f1f7;
  --rw-brand-40: #d0e5ee;
  --rw-brand-50: #b4d5e1;
  --rw-brand-60: #8fbfd0;
  --rw-brand-70: #79b1c6;
  --rw-brand-80: #5fa2ba;
  --rw-brand-90: #4190ac;
  --rw-brand-100: #227e9e;
  --rw-brand-110: #0e7297;
  --rw-brand-120: #00688c;
  --rw-brand-130: #025e7e;
  --rw-brand-140: #04536f;
  --rw-brand-150: #06485f;
  --rw-brand-160: #063c4e;
  --rw-brand-170: #053242;

  /* Neutral — warm grey; red channel leads. Never substitute pure grey. */
  --rw-neutral-0: #ffffff;
  --rw-neutral-10: #fbf9f8;
  --rw-neutral-20: #f5f4f2;
  --rw-neutral-30: #f1efed;
  --rw-neutral-40: #e4e1dd;
  --rw-neutral-50: #d4cfca;
  --rw-neutral-60: #bcb6b1;
  --rw-neutral-70: #aea8a2;
  --rw-neutral-80: #9e9892;
  --rw-neutral-90: #8b8580;
  --rw-neutral-100: #7b7570;
  --rw-neutral-110: #6f6964;
  --rw-neutral-120: #655f5b;
  --rw-neutral-130: #5c5651;
  --rw-neutral-140: #514c47;
  --rw-neutral-150: #47423e;
  --rw-neutral-160: #3a3632;
  --rw-neutral-170: #312d2a;
  --rw-neutral-180: #201e1c;
  --rw-neutral-190: #161513;
  --rw-neutral-200: #000000;

  /* Danger */
  --rw-danger-10: #fff8f7;
  --rw-danger-20: #fff1ef;
  --rw-danger-30: #ffebe8;
  --rw-danger-40: #ffd9d3;
  --rw-danger-50: #ffc1b8;
  --rw-danger-60: #ff9d90;
  --rw-danger-70: #ff8675;
  --rw-danger-80: #fe6854;
  --rw-danger-90: #ec4f3a;
  --rw-danger-100: #d63b25;
  --rw-danger-110: #c33522;
  --rw-danger-120: #b3311f;
  --rw-danger-130: #aa2222;
  --rw-danger-140: #8f2719;
  --rw-danger-150: #7c2216;
  --rw-danger-160: #661c12;
  --rw-danger-170: #56180f;

  /* Warning */
  --rw-warning-10: #fef9f2;
  --rw-warning-20: #fdf2e5;
  --rw-warning-30: #fceddc;
  --rw-warning-40: #f9ddbc;
  --rw-warning-50: #f6c792;
  --rw-warning-60: #f0a957;
  --rw-warning-70: #eb9632;
  --rw-warning-80: #e18012;
  --rw-warning-90: #c6710e;
  --rw-warning-100: #ac630c;
  --rw-warning-110: #9c590b;
  --rw-warning-120: #8f520a;
  --rw-warning-130: #814909;
  --rw-warning-140: #724108;
  --rw-warning-150: #633807;
  --rw-warning-160: #512f06;
  --rw-warning-170: #452705;

  /* Success */
  --rw-success-10: #f4fceb;
  --rw-success-20: #ebf8de;
  --rw-success-30: #e4f5d3;
  --rw-success-40: #cfebb3;
  --rw-success-50: #b1dd88;
  --rw-success-60: #8ac94f;
  --rw-success-70: #7dba45;
  --rw-success-80: #6fa939;
  --rw-success-90: #5e942b;
  --rw-success-100: #508223;
  --rw-success-110: #497620;
  --rw-success-120: #436b1d;
  --rw-success-130: #3c601a;
  --rw-success-140: #355617;
  --rw-success-150: #2e4914;
  --rw-success-160: #263d10;
  --rw-success-170: #1f330e;

  /* Info is byte-identical to brand in Redwood; aliased, not duplicated. */
  --rw-info-10: var(--rw-brand-10);
  --rw-info-20: var(--rw-brand-20);
  --rw-info-30: var(--rw-brand-30);
  --rw-info-40: var(--rw-brand-40);
  --rw-info-50: var(--rw-brand-50);
  --rw-info-60: var(--rw-brand-60);
  --rw-info-70: var(--rw-brand-70);
  --rw-info-80: var(--rw-brand-80);
  --rw-info-90: var(--rw-brand-90);
  --rw-info-100: var(--rw-brand-100);
  --rw-info-110: var(--rw-brand-110);
  --rw-info-120: var(--rw-brand-120);
  --rw-info-130: var(--rw-brand-130);
  --rw-info-140: var(--rw-brand-140);
  --rw-info-150: var(--rw-brand-150);
  --rw-info-160: var(--rw-brand-160);
  --rw-info-170: var(--rw-brand-170);

  /* ---- Semantic: text ---- */
  --rw-text-primary: var(--rw-neutral-190);
  --rw-text-secondary: rgba(22, 21, 19, .70);
  --rw-text-disabled: rgba(22, 21, 19, .40);
  --rw-text-brand: var(--rw-brand-110);
  --rw-text-danger: var(--rw-danger-120);
  --rw-text-warning: var(--rw-warning-120);
  --rw-text-success: var(--rw-success-120);
  --rw-text-on-brand: var(--rw-neutral-0);

  /* ---- Semantic: surface ---- */
  --rw-bg-content: var(--rw-neutral-0);
  --rw-bg-subtle: var(--rw-neutral-10);
  --rw-bg-muted: var(--rw-neutral-20);
  --rw-bg-hover: rgba(22, 21, 19, .08);
  --rw-bg-active: rgba(22, 21, 19, .16);
  --rw-bg-selected: var(--rw-brand-30);

  /* ---- Semantic: line ---- */
  --rw-border-enabled: rgba(22, 21, 19, .50);
  --rw-border-selected: var(--rw-brand-100);
  --rw-divider: rgba(22, 21, 19, .12);
  --rw-focus-ring: var(--rw-neutral-190);
  --rw-field-border-focus: var(--rw-brand-110);

  /* ---- Spacing: 0.25rem base, linear. Do not invent half-steps. ---- */
  --rw-space-1x: .25rem;
  --rw-space-2x: .5rem;
  --rw-space-3x: .75rem;
  --rw-space-4x: 1rem;
  --rw-space-5x: 1.25rem;
  --rw-space-6x: 1.5rem;
  --rw-space-7x: 1.75rem;
  --rw-space-8x: 2rem;
  --rw-space-9x: 2.25rem;
  --rw-space-10x: 2.5rem;
  --rw-space-11x: 2.75rem;
  --rw-space-12x: 3rem;

  /* ---- Radius ---- */
  --rw-radius-sm: 2px;
  --rw-radius-md: .25rem;
  --rw-radius-lg: .375rem;
  --rw-radius-xl: .5rem;

  /* ---- Elevation ---- */
  --rw-shadow-xs: 0px 1px 4px 0px rgba(0,0,0,.12);
  --rw-shadow-sm: 0px 4px 8px 0px rgba(0,0,0,.16);
  --rw-shadow-md: 0px 6px 12px 0px rgba(0,0,0,.2);
  --rw-shadow-lg: 0px 8px 16px 0px rgba(0,0,0,0.24);
  --rw-shadow-xl: 0px 12px 20px 0px rgba(0,0,0,0.28);

  /* ---- Type scale. Every heading is weight 800 — that is a Redwood rule,
         not a default. Body text has no weight token: it inherits 400. ---- */
  --rw-heading-2xl-size: 2.5rem; --rw-heading-2xl-lh: 1.3;
  --rw-heading-xl-size: 2.25rem; --rw-heading-xl-lh: 1.222;
  --rw-heading-lg-size: 2rem; --rw-heading-lg-lh: 1.25;
  --rw-heading-md-size: 1.75rem; --rw-heading-md-lh: 1.2857;
  --rw-heading-sm-size: 1.5rem; --rw-heading-sm-lh: 1.3333;
  --rw-heading-xs-size: 1.25rem; --rw-heading-xs-lh: 1.4;
  --rw-heading-weight: 800;
  --rw-body-xl-size: 1.25rem; --rw-body-xl-lh: 1.4;
  --rw-body-lg-size: 1.125rem; --rw-body-lg-lh: 1.3333;
  --rw-body-md-size: 1rem; --rw-body-md-lh: 1.25;
  --rw-body-sm-size: 0.859rem; --rw-body-sm-lh: 1.2;
  --rw-body-xs-size: 0.75rem; --rw-body-xs-lh: 1.3333;
  --rw-body-2xs-size: 0.625rem; --rw-body-2xs-lh: 1.2;
}

/* ==== redwood-dark.css, unchanged, from oracle-sans commit ee699df2b51a8bc5679be4ebff8dc584398fa2a5 ==== */

/* Redwood dark — the one place the dark exception lives.
 *
 * Redwood publishes no dark palette, and the style guide says not to invent
 * one: inverting a warm neutral ramp by hand produces muddy results. This file
 * invents nothing. Every value below is a step already in redwood-tokens.css,
 * or an alpha of one, reassigned at the semantic layer. The ramps themselves
 * are untouched, so a component stylesheet that reads --rw-text-primary and
 * --rw-bg-content needs no knowledge that this file exists.
 *
 * Load order: oracle-sans.css, redwood-tokens.css, this file, then component
 * styles. Tokens define what this reassigns, and this reassigns what components
 * consume. A page that loads it out of order renders every value as its CSS
 * initial default.
 *
 * Three states, not two:
 *
 *   system     no data-theme attribute on the root, so prefers-color-scheme is
 *              the only signal. The media block is guarded against an explicit
 *              light choice, so a toggle set to light wins over the system.
 *   dark       data-theme="dark", set by the viewer.
 *   clinical   data-theme="clinical", for a surface that is dark for a clinical
 *              reason rather than a viewer preference — a reading room, a wall
 *              board, a bench display. Same values as dark, and it holds them
 *              when the operating system is light.
 *
 * --rw-bg-app is the page ground behind the cards. It sits one step outside the
 * semantic set on purpose: cards are --rw-bg-content, and a page painted the
 * same color as its cards reads as one undivided sheet. Its light value is here
 * rather than in redwood-tokens.css because that file carries only values read
 * out of Oracle's JET reference theme, and this one is not among them.
 *
 * The focus ring is Redwood's one deliberate inversion. On a light ground it is
 * near-black so it stays visible on brand-colored surfaces; on a near-black
 * ground it is near-white for the same reason. The rule is the contrast.
 *
 * When the Redwood team publishes dark tokens, load theirs and delete this.
 * Nothing else has to change.
 *
 * (c) Oracle. Internal brand asset — see NOTICE. */

:root {
  --rw-bg-app: var(--rw-neutral-20);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rw-bg-app: var(--rw-neutral-190);
    --rw-bg-content: var(--rw-neutral-180);
    --rw-bg-subtle: var(--rw-neutral-170);
    --rw-bg-muted: var(--rw-neutral-160);
    --rw-bg-hover: rgba(251, 249, 248, .08);
    --rw-bg-active: rgba(251, 249, 248, .16);
    --rw-bg-selected: var(--rw-brand-160);

    --rw-text-primary: var(--rw-neutral-10);
    --rw-text-secondary: rgba(251, 249, 248, .70);
    --rw-text-disabled: rgba(251, 249, 248, .40);
    --rw-text-brand: var(--rw-brand-70);
    --rw-text-danger: var(--rw-danger-70);
    --rw-text-warning: var(--rw-warning-60);
    --rw-text-success: var(--rw-success-60);

    --rw-divider: rgba(251, 249, 248, .14);
    --rw-border-enabled: rgba(251, 249, 248, .45);
    --rw-border-selected: var(--rw-brand-80);
    --rw-focus-ring: var(--rw-neutral-0);
    --rw-field-border-focus: var(--rw-brand-80);
    color-scheme: dark;
  }
}

/* The stamped states repeat the values so an explicit choice wins in both
   directions: a viewer on a light system who asks for dark gets it, and a
   clinical surface keeps it whatever the system says. */
:root[data-theme="dark"],
:root[data-theme="clinical"] {
  --rw-bg-app: var(--rw-neutral-190);
  --rw-bg-content: var(--rw-neutral-180);
  --rw-bg-subtle: var(--rw-neutral-170);
  --rw-bg-muted: var(--rw-neutral-160);
  --rw-bg-hover: rgba(251, 249, 248, .08);
  --rw-bg-active: rgba(251, 249, 248, .16);
  --rw-bg-selected: var(--rw-brand-160);

  --rw-text-primary: var(--rw-neutral-10);
  --rw-text-secondary: rgba(251, 249, 248, .70);
  --rw-text-disabled: rgba(251, 249, 248, .40);
  --rw-text-brand: var(--rw-brand-70);
  --rw-text-danger: var(--rw-danger-70);
  --rw-text-warning: var(--rw-warning-60);
  --rw-text-success: var(--rw-success-60);

  --rw-divider: rgba(251, 249, 248, .14);
  --rw-border-enabled: rgba(251, 249, 248, .45);
  --rw-border-selected: var(--rw-brand-80);
  --rw-focus-ring: var(--rw-neutral-0);
  --rw-field-border-focus: var(--rw-brand-80);
  color-scheme: dark;
}
