/* Solid look for every Body Map page, following the Soterium Ingredient Table: flat solid surfaces, no gradients or
   see-through panels, and each kind of content in its own solid color tile. Loaded after the other stylesheets. */
.sbm {
  --tile-blue: #182b52;   --tile-blue-fg: #cdd9fb;
  --tile-orange: #4a2210; --tile-orange-fg: #fbd8c6;
  --tile-violet: #2a1f52; --tile-violet-fg: #ddd2fb;
  --tile-green: #14382a;  --tile-green-fg: #c9ecd6;
  --tile-amber: #3e300b;  --tile-amber-fg: #f6e2ae;
  --tile-pink: #4a1630;   --tile-pink-fg: #f7cfe0;
  --tile-teal: #143838;   --tile-teal-fg: #c6eaea;
  --tile-navy: #1c2b4d;   --tile-navy-fg: #c7d6ff;
}
/* Solid page and panel colors for each look */
.sbm, .sbm[data-look] { background-image: none !important; background-attachment: scroll; }
.sbm[data-look="deep"]   { --abyss: #071419; --panel: #0e2129; --card: #12303a; --chipbg: #133640; --field: #0a1b21; --btnbg: #12303a; --tipbg: #0a1b21; --track: #1b4651; background-color: #071419; }
.sbm[data-look="lake"]   { --abyss: #0a1428; --panel: #10203f; --card: #152a52; --chipbg: #18305c; --field: #0c1a33; --btnbg: #152a52; --tipbg: #0c1a33; --track: #23406f; background-color: #0a1428; }
.sbm[data-look="space"]  { --abyss: #09081a; --panel: #13112c; --card: #1b1840; --chipbg: #221d4d; --field: #0e0c22; --btnbg: #1b1840; --tipbg: #0e0c22; --track: #2e2866; background-color: #09081a; }
.sbm[data-look="forest"] { --abyss: #08120b; --panel: #102018; --card: #162c20; --chipbg: #1b3426; --field: #0b1810; --btnbg: #162c20; --tipbg: #0b1810; --track: #284a33; background-color: #08120b; }
body { background: #071419; }
.sbm .panel, .sbm .solo .panel { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.sbm .card, .sbm .mx-wrap, .sbm .enz-group, .sbm .note, .sbm details.ing, .sbm .pick-list { background: var(--card); }
.sbm .search, .sbm select.search, .sbm textarea.search { background: var(--field); }
.sbm .looks, .sbm .sbm-pages a, .sbm .chip, .sbm .lv-chip { background: var(--chipbg); }
.sbm .mx th:first-child, .sbm .mx td:first-child { background: var(--card); }
.sbm .mx tr.prow:hover td:first-child { background: var(--chipbg); }
.sbm .caution { background: var(--tile-amber); color: var(--tile-amber-fg); border-left-color: #f6c75a; border-radius: 0 10px 10px 0; }
.sbm .example { background: var(--tile-amber); border: 0; color: var(--tile-amber-fg); border-radius: 12px; }
/* Main sections: solid color tiles in a fixed order */
.sbm .tabpanel > section.card, .sbm #osOut > .card { border: 0; box-shadow: none; }
.sbm .tabpanel > section.card:nth-of-type(1) { --sec: var(--tile-blue);   background: var(--tile-blue); }
.sbm .tabpanel > section.card:nth-of-type(2) { --sec: var(--tile-violet); background: var(--tile-violet); }
.sbm .tabpanel > section.card:nth-of-type(3) { --sec: var(--tile-green);  background: var(--tile-green); }
.sbm .tabpanel > section.card:nth-of-type(4) { --sec: var(--tile-amber);  background: var(--tile-amber); }
.sbm #osOut > .card:nth-child(1) { --sec: var(--tile-violet); background: var(--tile-violet); }
.sbm #osOut > .card:nth-child(2) { --sec: var(--tile-green);  background: var(--tile-green); }
.sbm .tabpanel > section.card .search, .sbm #osOut > .card .search { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.16); }
.sbm .tabpanel > section.card details.more, .sbm #osOut > .card details.more, .sbm .tabpanel > section.card .os-stat, .sbm #osOut > .card .os-stat { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.14); }
/* Fold-away sections and the Side Effects reason cards: solid navy and teal tiles */
.sbm .tabpanel > details.more, .sbm #osOut > details.more { background: var(--tile-navy); border: 0; }
.sbm #seWhy > details.more { background: var(--tile-teal); border: 0; }
.sbm .tabpanel > details.more > summary, .sbm #seWhy > details.more > summary { color: #fff; }
/* Body Map: region detail and ingredient cards as solid tiles */
.sbm #regionDetail > .card:first-child, .sbm #ingDetail > .card { background: var(--tile-blue); border: 0; }
.sbm #simOut > .card:nth-child(4n+1) { background: var(--tile-violet); border: 0; }
.sbm #simOut > .card:nth-child(4n+2) { background: var(--tile-green); border: 0; }
.sbm #simOut > .card:nth-child(4n+3) { background: var(--tile-amber); border: 0; }
.sbm #simOut > .card:nth-child(4n+4) { background: var(--tile-pink); border: 0; }
.sbm .tabs { background: var(--card); border-radius: 18px 18px 0 0; }
/* Cofactor Tree cards */
.sbm #t-found, .sbm #t-leaf { border: 0; }
.sbm #t-found { background: var(--tile-blue); }
.sbm #t-leaf { background: var(--tile-violet); }
.sbm #t-sim-card { background: var(--tile-green); border: 0; }
.sbm section.card[aria-labelledby="t-rel-h"] { background: var(--tile-amber); border: 0; }
/* Liver Enzymes lists */
.sbm .lv-item { background: var(--card); }
.sbm .lv-item[aria-pressed="true"] { background: var(--tile-amber); border-color: #f6c75a; }
.sbm .tr-scroller { background: var(--card); }
.sbm .tr-leaf { background: var(--panel); }
.sbm .tr-field select option, .sbm .tr-field select optgroup { background: var(--panel); }
.sbm .tr-caution { background: var(--tile-amber); color: var(--tile-amber-fg); }
/* Body Map ingredient cards: solid tiles colored by evidence level, like the Ingredient Table's groups */
.sbm details.ing { border: 0; }
.sbm details.ing:has(.ev-we)    { background: var(--tile-green); }
.sbm details.ing:has(.ev-good)  { background: var(--tile-blue); }
.sbm details.ing:has(.ev-early) { background: var(--tile-amber); }
.sbm details.ing:has(.ev-trad)  { background: var(--tile-violet); }
