/* Charts and the simplified "your supplements" layout shared by Osmotic Load, Acid Load and Liver Enzymes. */
.sbm .viz { display: grid; gap: 10px; }
.sbm .viz-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sbm .viz-grid { stroke: var(--line); stroke-width: 1; opacity: .55; }
.sbm .viz-axis { stroke: var(--mist); stroke-width: 1; opacity: .7; }
.sbm .viz-tick, .sbm .viz-cat { fill: var(--mist); font: 12px var(--f-mono); }
.sbm .viz-cat { fill: var(--ink); font: 600 13px var(--f-body); }
.sbm .viz-val { fill: var(--ink); font: 600 12.5px var(--f-mono); }
.sbm .viz-ref { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .8; }
.sbm .viz-reflabel { fill: var(--ink); font: 12px var(--f-body); }
.sbm .viz-mark { cursor: pointer; transition: opacity .15s; }
.sbm .viz-mark:hover, .sbm .viz-dseg:hover { opacity: .8; }
.sbm .viz-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--mist); }
.sbm .viz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sbm .viz-dhead, .sbm .viz-drow { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 4em; gap: 10px; align-items: center; }
.sbm .viz-dends { display: flex; justify-content: space-between; font: 11px var(--f-mono); color: var(--mist); letter-spacing: .04em; }
.sbm .viz-drow { font-size: 13.5px; min-height: 26px; }
.sbm .viz-drow.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 600; }
.sbm .viz-dlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbm .viz-dtrack { position: relative; height: 14px; }
.sbm .viz-dmid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1.5px; background: var(--mist); }
.sbm .viz-dseg { position: absolute; top: 0; bottom: 0; border-radius: 4px; cursor: pointer; margin-left: 1px; }
.sbm .viz-dval { font: 12.5px var(--f-mono); text-align: right; }
.viz-tip { position: fixed; z-index: 50; max-width: 280px; padding: 7px 10px; border-radius: 8px; background: rgba(4,22,29,.96); color: #eaf5f2; border: 1px solid #2f8a8f; font: 13px "Red Hat Text", system-ui, sans-serif; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.sbm details.more { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.sbm details.more > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sbm details.more > summary::-webkit-details-marker { display: none; }
.sbm details.more > summary::after { content: "+"; font: 18px var(--f-mono); color: var(--mist); }
.sbm details.more[open] > summary::after { content: "\2212"; }
.sbm details.more > .more-body { padding: 0 14px 14px; display: grid; gap: 14px; }
.sbm .my-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .sbm .viz-dhead, .sbm .viz-drow { grid-template-columns: minmax(0, 1fr) 3.5em; }
  .sbm .viz-dhead > span:first-child, .sbm .viz-dhead > span:last-child { display: none; }
  .sbm .viz-dhead { grid-template-columns: 1fr; }
  .sbm .viz-drow .viz-dtrack { grid-column: 1 / -1; grid-row: 2; }
}
.sbm .viz-shead, .sbm .viz-srow { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 7.5em; gap: 10px; align-items: center; }
.sbm .viz-srow { font-size: 13.5px; min-height: 28px; }
.sbm .viz-strack { position: relative; height: 16px; }
.sbm .viz-sbands { height: 18px; }
.sbm .viz-sband { position: absolute; top: 0; transform: translateX(-50%); font: 11px var(--f-mono); color: var(--mist); white-space: nowrap; }
.sbm .viz-sband em { font-style: normal; }
.sbm .viz-sline { position: absolute; top: -6px; bottom: -6px; width: 1px; border-left: 1px dashed var(--mist); opacity: .5; }
.sbm .viz-sseg { position: absolute; top: 0; bottom: 0; border-radius: 4px; cursor: pointer; }
.sbm .viz-sseg:hover { opacity: .8; }
/* Colored supplement blocks: solid fill in the supplement's own color, with dark text for contrast */
.sbm .my-block { --c: #3987e5; background: var(--c); color: #061418; border: 0; border-radius: 12px; }
.sbm .my-block b, .sbm .my-block span, .sbm .my-block label { color: #061418; }
.sbm .my-block button { color: #061418; }
.sbm .my-block .search { background: rgba(255,255,255,.88); color: #061418; border-color: rgba(0,0,0,.25); }
.sbm .my-block .os-adj { border-color: rgba(0,0,0,.35); color: #061418; }
.sbm .my-block .os-adj:hover { background: rgba(255,255,255,.25); }
.sbm .my-block .fld > span, .sbm .my-block .muted { color: rgba(6,20,24,.8); }
.sbm .my-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
@media (max-width: 560px) {
  .sbm .viz-shead, .sbm .viz-srow { grid-template-columns: minmax(0, 1fr) 6.5em; }
  .sbm .viz-shead { grid-template-columns: 1fr; }
  .sbm .viz-shead > span:first-child, .sbm .viz-shead > span:last-child { display: none; }
  .sbm .viz-srow .viz-strack { grid-column: 1 / -1; grid-row: 2; }
}
/* Solid section backgrounds: each main section gets its own color */
.sbm .tabpanel > section.card, .sbm #osOut > .card { background: var(--sec, #14385a); border-color: color-mix(in srgb, var(--sec, #14385a) 70%, #ffffff); }
.sbm .tabpanel > section.card:nth-of-type(1) { --sec: #14385a; }
.sbm .tabpanel > section.card:nth-of-type(2) { --sec: #43275a; }
.sbm .tabpanel > section.card:nth-of-type(3) { --sec: #0e4a40; }
.sbm .tabpanel > section.card:nth-of-type(4) { --sec: #4f3613; }
.sbm #osOut > .card:nth-child(1) { --sec: #43275a; }
.sbm #osOut > .card:nth-child(2) { --sec: #0e4a40; }
.sbm .tabpanel > details.more, .sbm #seWhy > details.more, .sbm #osOut > details.more { background: #1b3346; border-color: #2e5068; }
.sbm .tabpanel > section.card details.more { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.18); }
.sbm .tabpanel > section.card .muted, .sbm #osOut > .card .muted { color: #c9dbe0; }
