/* RU-397 (owner addendum p17, with p9 type and p12 wording): the exact design values. Load this file AFTER redesign.css.
   Reversible: removing its one link line restores the RU-363 look. Light values sit under .ainx, deep values under .ainx.deep.
   One meaning, one color. Existing property names the views read are redefined here; the call, drought, disease, weather and
   wildfire tokens are new names that the views adopt unit by unit (INTEGRATION.md lists each inline pair). */

/* ---- color: light stage ---- */
.ainx{
  --val:#2672AD;   /* 2026-11-11 (WCAG AA): was #2A7AB8, 4.42 to 1 as small text on the light panel; this reads 4.9 to 1 */
  --call-prepay:#B0213F;--call-hold:#D9661A;--call-watch:#0F8A8A;--call-clear:#4B5A52;
  --hatch:#C27A06;--drought:#C27A06;
  --disease:#B0307A;--weather:#6D86A0;--wildfire:#E2551B;
  --net:#5B43A6;--est:#23704A;
  --str:var(--call-prepay);--attn:var(--call-hold);
  --strT:rgba(176,33,63,.12);--attnT:rgba(217,102,26,.14);--valT:rgba(42,122,184,.12);
  --bg:#E4E9E2;--page-hi:#F8FAF6;--page-lo:#E4E9E2;
  --stage:radial-gradient(ellipse 70% 80% at 50% 62%,#F8FAF6 0%,#EEF2EB 55%,#E4E9E2 100%);
  --ink:#0F1D17;--ink2:#3E4C45;--ink3:#5B665F;
  --panel:rgba(255,255,255,.80);--pb:rgba(15,29,23,.12);--glass-shadow:0 10px 40px rgba(0,0,0,.08);
  --row:rgba(15,29,23,.08);--focus:#2A7AB8;
  /* RU-634 (build contract accessibility row): Hold as TEXT. --call-hold #D9661A stays the Hold color for fills, pins and marks (3.0 to 1
     is enough for a graphic that also carries a shape); as small text on the light panel it reads 3.4 to 1, so text uses this darker
     Hold, 4.8 to 1 */
  --hold-ink:#B4530F;
  /* 2026-11-11 (WCAG AA): the hatch and drought amber #C27A06 reads 3.3 to 1 as small text; text in that hue uses this, 5.6 to 1 */
  --hatch-ink:#8A5A00;
}
/* ---- color: deep stage ---- */
.ainx.deep{
  --val:#5CC2F2;
  --call-prepay:#FF4D6D;--call-hold:#FF9A4D;--call-watch:#3FD0C9;--call-clear:#C9D6CF;
  --hatch:#F2B544;--drought:#F2B544;
  --disease:#FF5CC8;--weather:#9FB7CF;--wildfire:#FF7A3D;
  --net:#B49BFF;--est:#5BD08A;
  --str:var(--call-prepay);--attn:var(--call-hold);
  --strT:rgba(255,77,109,.14);--attnT:rgba(255,154,77,.14);--valT:rgba(92,194,242,.14);
  --bg:#040A09;--page-hi:#0F2A25;--page-lo:#040A09;
  --stage:radial-gradient(ellipse 70% 75% at 52% 58%,#0F2A25 0%,#081917 45%,#040A09 100%);
  --ink:#EAF3EE;--ink2:#B4C8BE;--ink3:#8FA59A;
  --panel:rgba(9,24,21,.64);--pb:rgba(234,243,238,.12);--glass-shadow:0 10px 40px rgba(0,0,0,.40);
  --row:rgba(234,243,238,.08);--focus:#5CC2F2;
  --hold-ink:var(--call-hold);
  --hatch-ink:var(--hatch);
}

/* ---- shape and spacing tokens (4 px grid) ---- */
.ainx{--r-chip:6px;--r-ctl:9px;--r-panel:12px;--r-pill:999px;--pad-panel:16px 18px;--gutter:14px;
  --fs-hero:56px;--fs-fig:40px;--fs-subj:24px;--fs-head:16px;--fs-body:13px;--fs-label:10.5px}

/* ---- type: six sizes only ---- */
.ainx{font-size:13px;line-height:1.45;font-variant-numeric:tabular-nums}
.ainx *{font-variant-numeric:tabular-nums}
.ainx .t-hero{font-family:'IBM Plex Sans Condensed','IBM Plex Sans',sans-serif;font-size:56px;font-weight:600;line-height:1}
.ainx .t-fig{font-family:'IBM Plex Sans Condensed','IBM Plex Sans',sans-serif;font-size:40px;font-weight:600;line-height:1}
.ainx .t-subj{font-family:'IBM Plex Sans Condensed','IBM Plex Sans',sans-serif;font-size:24px;font-weight:600;text-transform:uppercase;line-height:1.1}
.ainx .t-head{font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:16px;font-weight:600;line-height:1.3}
.ainx .t-body{font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:13px;font-weight:400}
.ainx .t-body b{font-weight:600}
.ainx .t-label,.ainx .eb{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}
/* classes the redesign already uses, pulled onto the six sizes; mono stays for dates and IDs only */
.ainx .kv{font-size:13px}
.ainx .kv>span:nth-child(even){font-family:'IBM Plex Sans',system-ui,sans-serif;font-weight:600}
.ainx .lbl b{font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:13px;font-weight:600}
.ainx .lbl span{font-size:10.5px;letter-spacing:.12em}
.ainx .pillnav button{font-size:10.5px;letter-spacing:.12em}
.ainx .btn{font-size:13px;font-weight:600}
.ainx .tc{font-size:13px}
.ainx .chip{font-size:13px}
.ainx .tbl th{font-size:10.5px;letter-spacing:.12em}
.ainx .tbl td{font-size:13px}
.ainx .grp{font-size:13px}
.ainx .grp span:last-child{font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:13px}
.ainx .mrow,.ainx .cen,.ainx .log{font-size:13px}

/* ---- glass panels ---- */
.ainx .glass{background:var(--panel);border:1px solid var(--pb);border-radius:12px;
  backdrop-filter:blur(16px) saturate(1.2);-webkit-backdrop-filter:blur(16px) saturate(1.2);box-shadow:var(--glass-shadow)}
.ainx .pillnav{border-radius:999px}

/* ---- radii ---- */
.ainx .chip{border-radius:6px}
.ainx .btn,.ainx input,.ainx select,.ainx textarea{border-radius:9px}

/* ---- chips: the call color rides on the border and the glyph, the words stay in ink so they read at AA ---- */
.ainx .chip.attn,.ainx .chip.str,.ainx .chip.val{color:var(--ink)}
.ainx .chip.attn{border:1px solid var(--call-hold)}
.ainx .chip.str{border:1px solid var(--call-prepay)}
.ainx .chip.val{border:1px solid var(--val)}

/* ---- states ---- */
.ainx :focus-visible,.ainx .btn:focus-visible,.ainx .pillnav button:focus-visible{outline:2px solid var(--val);outline-offset:2px}
.ainx .tbl tr.pick:hover td,.ainx .tbl tr.sel td,.ainx .grp:hover:not(.on){background:var(--row)}
.ainx :disabled,.ainx [aria-disabled="true"]{opacity:.35;cursor:not-allowed}

/* RU-635 (build contract accessibility row): Hold as TEXT wherever a view builds the color into a style string (a price fall, a
   condition count, an alert line). The view passes the Hold color as a value; this rule gives text in that color the darker Hold,
   so no number or word is set in the 3.4 to 1 fill Hold. Background and border colors are untouched (their names end in -color). */
.ainx [style^="color:var(--attn)"],.ainx [style*=";color:var(--attn)"],.ainx [style*="; color:var(--attn)"],.ainx [style^="color: var(--attn)"],.ainx [style*="; color: var(--attn)"],
.ainx [style^="color:var(--call-hold)"],.ainx [style*=";color:var(--call-hold)"],.ainx [style*="; color:var(--call-hold)"],.ainx [style^="color: var(--call-hold)"],.ainx [style*="; color: var(--call-hold)"]{color:var(--hold-ink)!important}
