/* looks-tokens.css (Round 2, W3 "looks"): the VALUES of the three app looks. Nothing but token assignments lives here; every colour literal of the
   looks is in this file, so web/looks.css (structure) and the whole kit (web/grammar.css, charts, tiles, tags) read tokens only.
   The same file is inlined into the built dashboard pages by modules/dashboards/build_pages.py.

   HOW A LOOK AND A THEME COMBINE
     <html data-look="a|b|c">   the look.       <html data-theme="light|dark"> (or none = "auto") is the person's Theme switch.
     <html data-eff="light|dark">   the EFFECTIVE theme, kept by the inline script in index.html (and the head script of a dashboard page):
       data-theme when it is light or dark, else the look's NATIVE theme: A Terminal = light, B Studio = light, C Control room = light (C light is the default since 10/19).
       So "auto" means "this look as designed", not the operating system's setting. Every colour rule below hangs on [data-look][data-eff].
   Status marks are one validated set per theme (the kit's): light #B42318 / #C27A00 / #1E7A45, dark #F47A6E / #F2C14B / #5BC088. Every mark
   travels with a shape and a word. Wine is "now" (#882030 on light, #E8909D on dark); --viz-ref grey is "before".
   Mast* tokens: the masthead. --plate is the light plate behind the wordmark on a dark masthead (the logo has dark letters).
   Joseph 10/17 ("I don't like the black", "Prefer A", one family with the SOPs / PDFs / decks): A light IS the house (paper #F6F6F4, white surfaces, #CFD4DA grid, #F3F4F6 header row,
   cocoa titles, wine accent, white masthead); A and C dark sit on a warm graphite (darkest background token >= L* 14, red >= blue), cream ink, wine #E8909D. tests/test_house_look.py
   holds the floor and the contrast ratios; LOOKS.md ("Joseph 10/17") has the old -> new table. B is untouched.
   Joseph 10/19 ("I like the light theme with Look C."): look C, light, is the default for every role (LOOKS.md "Joseph 10/19"); A and B stay one switch away. */

/* ======================================================================================================= shared by a look */
html[data-look="a"] {
  --f-title: "JetBrains Mono", ui-monospace, Consolas, monospace; --f-body: "IBM Plex Sans", Arial, sans-serif; --f-num: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --k-radius: 0px; --k-pill-radius: 0px; --k-elev: none; --k-rule: 1px; --k-gap: 6px; --k-pad: 9px 11px 8px;
  --k-num-feat: tabular-nums slashed-zero; --k-tile-val-size: 27px; --k-tile-val-weight: 500; --k-lbl-case: uppercase; --k-lbl-size: 11.5px; --k-motion: 0s;
}
html[data-look="b"] {
  --f-title: "Fraunces", Georgia, serif; --f-body: "Inter", "IBM Plex Sans", Arial, sans-serif; --f-num: "Fraunces", Georgia, serif;
  --k-radius: 14px; --k-pill-radius: 999px; --k-rule: 1px; --k-gap: 18px; --k-pad: 22px 24px 20px;
  --k-num-feat: lining-nums tabular-nums; --k-tile-val-size: 54px; --k-tile-val-weight: 500; --k-lbl-case: none; --k-lbl-size: 14px; --k-motion: .2s;
}
html[data-look="c"] {
  --f-title: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; --f-body: "IBM Plex Sans", Arial, sans-serif; --f-num: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --k-radius: 8px; --k-pill-radius: 6px; --k-rule: 1px; --k-gap: 10px; --k-pad: 13px 15px 12px;
  --k-num-feat: lining-nums tabular-nums; --k-tile-val-size: 44px; --k-tile-val-weight: 700; --k-lbl-case: uppercase; --k-lbl-size: 12px; --k-motion: .16s;
}

/* ======================================================================================================= A  Terminal */
html[data-look="a"][data-eff="dark"] {
  color-scheme: dark;
  --bg: #2B2826; --surface: #34302D; --surface-2: #3E3A36; --ink: #F2ECE4; --muted: #C2B8AF; --line: #4B4641; --line-strong: #847C75; --head: #393532; --new: #433A2A;
  --link: #8AB4F8; --gn-wine: #E8909D; --gn-wine-soft: #3C3131; --gn-cocoa: #EBDAD4;
  --ok: #62C98E; --ok-soft: #30362F; --warn: #E9AD52; --warn-soft: #3C342A; --bad: #F48B7F; --bad-soft: #3D2F2C;
  --st-bad-mark: #F47A6E; --st-warn-mark: #F2C14B; --st-ok-mark: #5BC088; --st-watch-mark: #8F847D;
  --st-bad-on: #1E1A19; --st-warn-on: #1E1A19; --st-ok-on: #1E1A19; --st-watch-on: #1E1A19; --viz-ref: #8F847D;
  --mast-bg: #34302D; --mast-ink: #F2ECE4; --mast-muted: #C2B8AF; --mast-line: #4B4641; --mast-btn-bg: #3E3A36; --mast-btn-ink: #F2ECE4; --mast-btn-line: #847C75; --plate: #F4EFE8;
  --pop-shadow: 0 0 0 1px #847C75;
  --heat1: rgb(232 144 157 / .10); --heat2: rgb(232 144 157 / .20); --heat3: rgb(232 144 157 / .34); --bar: #E8909D; --bar-soft: rgb(232 144 157 / .30); --grid-soft: #413D39; --zero: #9C948C;
}
html[data-look="a"][data-eff="light"] {
  color-scheme: light;
  --bg: #F6F6F4; --surface: #FFFFFF; --surface-2: #F0EFEA; --ink: #1E1A19; --muted: #574F4C; --line: #CFD4DA; --line-strong: #8F897E; --head: #F3F4F6; --new: #FEFCE8;
  --link: #1A5FB4; --gn-wine: #882030; --gn-wine-soft: #F6E7E9; --gn-cocoa: #502C2C;
  --ok: #1E7A45; --ok-soft: #E2F2E7; --warn: #965804; --warn-soft: #FBEFD9; --bad: #B42318; --bad-soft: #FBE4E1;
  --st-bad-mark: #B42318; --st-warn-mark: #C27A00; --st-ok-mark: #1E7A45; --st-watch-mark: #7C7370;
  --st-bad-on: #FFFFFF; --st-warn-on: #1E1A19; --st-ok-on: #FFFFFF; --st-watch-on: #FFFFFF; --viz-ref: #7C7370;
  --mast-bg: #FFFFFF; --mast-ink: #1E1A19; --mast-muted: #574F4C; --mast-line: #CFD4DA; --mast-btn-bg: #FFFFFF; --mast-btn-ink: #1E1A19; --mast-btn-line: #8F897E; --plate: transparent;
  --pop-shadow: 0 0 0 1px #8F897E;
  --heat1: rgb(136 32 48 / .07); --heat2: rgb(136 32 48 / .15); --heat3: rgb(136 32 48 / .26); --bar: #882030; --bar-soft: rgb(136 32 48 / .22); --grid-soft: #DEDAD0; --zero: #8A857F;
}

/* ======================================================================================================= B  Studio */
html[data-look="b"][data-eff="light"] {
  color-scheme: light;
  --bg: #F6F3EF; --surface: #FFFFFF; --surface-2: #F3EFEA; --ink: #1D1917; --muted: #6B625D; --line: #ECE6E0; --line-strong: #CDC4BD; --head: #FAF7F4; --new: #FEFCE8;
  --link: #2B5FA8; --gn-wine: #882030; --gn-wine-soft: #F9EDEF; --gn-cocoa: #502C2C;
  --ok: #1E7A45; --ok-soft: #E6F4EB; --warn: #965804; --warn-soft: #FBF1DF; --bad: #B42318; --bad-soft: #FCE9E6;
  --st-bad-mark: #B42318; --st-warn-mark: #C27A00; --st-ok-mark: #1E7A45; --st-watch-mark: #7C7370;
  --st-bad-on: #FFFFFF; --st-warn-on: #1E1A19; --st-ok-on: #FFFFFF; --st-watch-on: #FFFFFF; --viz-ref: #7C7370;
  --k-elev: 0 1px 2px rgb(60 36 30 / .05), 0 12px 30px -12px rgb(60 36 30 / .16);
  --mast-bg: #FFFFFF; --mast-ink: #502C2C; --mast-muted: #6B625D; --mast-line: #ECE6E0; --mast-btn-bg: #FFFFFF; --mast-btn-ink: #1D1917; --mast-btn-line: #CDC4BD; --plate: transparent;
  --pop-shadow: 0 2px 4px rgb(60 36 30 / .08), 0 22px 48px -12px rgb(60 36 30 / .28);
  --heat1: rgb(136 32 48 / .06); --heat2: rgb(136 32 48 / .13); --heat3: rgb(136 32 48 / .24); --bar: #882030; --bar-soft: rgb(136 32 48 / .20); --grid-soft: #EFE9E3; --zero: #A39A94;
}
html[data-look="b"][data-eff="dark"] {
  color-scheme: dark;
  --bg: #151211; --surface: #1E1A19; --surface-2: #27211F; --ink: #F2EDEA; --muted: #B9AEA9; --line: #302927; --line-strong: #52484A; --head: #231E1D; --new: #34301A;
  --link: #8AB4F8; --gn-wine: #E8909D; --gn-wine-soft: #35191E; --gn-cocoa: #F0DFD8;
  --ok: #62C98E; --ok-soft: #17301F; --warn: #E9AD52; --warn-soft: #33270F; --bad: #F2786B; --bad-soft: #3B1A17;
  --st-bad-mark: #F47A6E; --st-warn-mark: #F2C14B; --st-ok-mark: #5BC088; --st-watch-mark: #6F655F;
  --st-bad-on: #1E1A19; --st-warn-on: #1E1A19; --st-ok-on: #1E1A19; --st-watch-on: #FFFFFF; --viz-ref: #6F655F;
  --k-elev: 0 1px 0 rgb(255 255 255 / .04) inset, 0 16px 34px -14px rgb(0 0 0 / .7);
  --mast-bg: #1E1A19; --mast-ink: #F0DFD8; --mast-muted: #B9AEA9; --mast-line: #302927; --mast-btn-bg: #27211F; --mast-btn-ink: #F2EDEA; --mast-btn-line: #52484A; --plate: #F6F1EC;
  --pop-shadow: 0 2px 4px rgb(0 0 0 / .4), 0 24px 52px -12px rgb(0 0 0 / .8);
  --heat1: rgb(232 144 157 / .10); --heat2: rgb(232 144 157 / .20); --heat3: rgb(232 144 157 / .34); --bar: #E8909D; --bar-soft: rgb(232 144 157 / .30); --grid-soft: #2B2423; --zero: #9C918D;
}

/* ======================================================================================================= C  Control room */
html[data-look="c"][data-eff="dark"] {
  color-scheme: dark;
  --bg: #302D2B; --surface: #3A3735; --surface-2: #413E3B; --ink: #F2ECE4; --muted: #C2B8AF; --line: #514B46; --line-strong: #8C847D; --head: #403D3A; --new: #473F2F;
  --link: #8AB4F8; --gn-wine: #E8909D; --gn-wine-soft: #413635; --gn-cocoa: #EBDAD4;
  --ok: #62C98E; --ok-soft: #343B34; --warn: #E9AD52; --warn-soft: #41392F; --bad: #F78F82; --bad-soft: #3E322F;
  --st-bad-mark: #F47A6E; --st-warn-mark: #F2C14B; --st-ok-mark: #5BC088; --st-watch-mark: #8A8179;
  --st-bad-on: #1E1A19; --st-warn-on: #1E1A19; --st-ok-on: #1E1A19; --st-watch-on: #1E1A19; --viz-ref: #8A8179;
  --k-elev: 0 1px 0 rgb(255 255 255 / .05) inset, 0 3px 10px rgb(20 14 10 / .34);
  --mast-bg: #292624; --mast-ink: #F2ECE4; --mast-muted: #C2B8AF; --mast-line: #46413D; --mast-btn-bg: #3A3735; --mast-btn-ink: #F2ECE4; --mast-btn-line: #8C847D; --plate: #F4EFE8;
  --pop-shadow: 0 8px 28px rgb(20 14 10 / .5);
  --heat1: rgb(232 144 157 / .10); --heat2: rgb(232 144 157 / .20); --heat3: rgb(232 144 157 / .34); --bar: #E8909D; --bar-soft: rgb(232 144 157 / .30); --grid-soft: #4A4540; --zero: #A09890;
}
html[data-look="c"][data-eff="light"] {
  color-scheme: light;
  --bg: #F1F3F5; --surface: #FFFFFF; --surface-2: #F0F2F5; --ink: #12161B; --muted: #4F5965; --line: #CED4DB; --line-strong: #8A94A1; --head: #EEF1F4; --new: #FEFCE8;
  --link: #1A5FB4; --gn-wine: #882030; --gn-wine-soft: #F6E7E9; --gn-cocoa: #12161B;
  --ok: #1B7342; --ok-soft: #E2F2E7; --warn: #965804; --warn-soft: #FBEFD9; --bad: #B42318; --bad-soft: #FBE4E1;
  --st-bad-mark: #B42318; --st-warn-mark: #C27A00; --st-ok-mark: #1E7A45; --st-watch-mark: #6B7480;
  --st-bad-on: #FFFFFF; --st-warn-on: #1E1A19; --st-ok-on: #FFFFFF; --st-watch-on: #FFFFFF; --viz-ref: #6B7480;
  --k-elev: 0 1px 2px rgb(18 22 27 / .06), 0 1px 1px rgb(18 22 27 / .04);
  --mast-bg: #FFFFFF; --mast-ink: #12161B; --mast-muted: #4F5965; --mast-line: #CED4DB; --mast-btn-bg: #FFFFFF; --mast-btn-ink: #12161B; --mast-btn-line: #8A94A1; --plate: transparent;
  --pop-shadow: 0 8px 28px rgb(18 22 27 / .28);
  --heat1: rgb(136 32 48 / .07); --heat2: rgb(136 32 48 / .15); --heat3: rgb(136 32 48 / .26); --bar: #882030; --bar-soft: rgb(136 32 48 / .22); --grid-soft: #E1E5EA; --zero: #8C96A3;
}

/* ======================================================================================================= chart tokens (charts.js sets --viz-* on .gn-chart itself, so these sit on .gn-chart) */
html[data-look][data-eff="light"] .gn-chart { --viz-1: var(--gn-wine); --viz-2: var(--viz-ref); --viz-3: var(--gn-cocoa); --viz-4: #C58C95; --viz-5: #B3A79E; --viz-6: #3E3837;
  --viz-on-1: #FFFFFF; --viz-on-2: #FFFFFF; --viz-on-3: #FFFFFF; --viz-on-4: #1E1A19; --viz-on-5: #1E1A19; --viz-on-6: #FFFFFF; }
html[data-look][data-eff="dark"] .gn-chart { --viz-1: var(--gn-wine); --viz-2: var(--viz-ref); --viz-3: var(--gn-cocoa); --viz-4: #9A5562; --viz-5: #6F655F; --viz-6: #D9CCC6;
  --viz-on-1: #1E1A19; --viz-on-2: #1E1A19; --viz-on-3: #1E1A19; --viz-on-4: #FFFFFF; --viz-on-5: #FFFFFF; --viz-on-6: #1E1A19; }
html[data-look="a"][data-eff="dark"] .gn-chart { --viz-grid: #46423D; --viz-axis: #6A645E; }
html[data-look="a"][data-eff="light"] .gn-chart { --viz-grid: #DEDAD0; --viz-axis: #B8B2A6; }
html[data-look="b"][data-eff="light"] .gn-chart { --viz-grid: #EFE9E3; --viz-axis: #D8D0C9; }
html[data-look="b"][data-eff="dark"] .gn-chart { --viz-grid: #2B2423; --viz-axis: #443A38; }
html[data-look="c"][data-eff="dark"] .gn-chart { --viz-grid: #504A45; --viz-axis: #716A63; }
/* A light and C light: series 3 is a quiet cool slate #264C63 (polish-1 F3a, review R4-M1: the plum that F2 chose read as a SECOND, louder accent next to wine; Joseph 10/17: one wine accent).
   Rule: series 3 is a neutral, C* <= 20 (this one 18.5; wine is 47.5), L* 30 to 42 (30.6), hue 251, so it reads as a quiet third tone, not a colour. It also replaces the near-black ink F2 removed
   (R2-M1, floor L* 14), and cocoa and every warm brown sit too close to wine for a protan or deutan eye. Measured with the dataviz validator (wine / grey / slate, all pairs): colour-blind dE 9.1,
   normal vision 16.1 on the C light grey #6B7480 (17.8 on the A light grey #7C7370); slate / grey / pink neighbours 14.6 colour-blind, 16.1 normal; 9.14:1 on white, white text on it 9.14:1.
   A cooler or paler slate fails: the normal-vision floor (15) against the C light grey is what pins it near L* 30. #1E1A19 stays for text only. */
html[data-look="a"][data-eff="light"] .gn-chart, html[data-look="c"][data-eff="light"] .gn-chart { --viz-3: #264C63; --viz-on-3: #FFFFFF; }
html[data-look="c"][data-eff="light"] .gn-chart { --viz-grid: #E1E5EA; --viz-axis: #B6BEC8; }
