/* Your soil tests (crop-soil-tests.html, pages/soil.js): the latest soil test's own parts, the soil's life
   against the lab's guide, each element available beside the bank, and the cations' shares of the
   CEC. The page around them is every tests' page's (tests.css). */

/* Haney, each against the lab's guide */
.soil-gauges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem 1.6rem; }
.soil-gauge { display: grid; gap: 0.35rem; }
.soil-gauge > p { margin: 0; }
.soil-gauge__what strong { font-variant-numeric: tabular-nums; }
.soil-gauge__zone { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--paper-2); }
.soil-gauge__zone.is-low, .soil-gauge__zone.is-slow { background: rgba(217, 119, 74, 0.25); }
.soil-gauge__zone.is-medium { background: rgba(247, 210, 106, 0.5); }
.soil-gauge__zone.is-high, .soil-gauge__zone.is-ideal { background: var(--sap-2); }
.soil-gauge__bar { position: relative; height: 0.9rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); overflow: hidden; }
.soil-gauge__zone-band { position: absolute; top: 0; bottom: 0; }
.soil-gauge__zone-band.is-low, .soil-gauge__zone-band.is-slow { background: rgba(217, 119, 74, 0.35); }
.soil-gauge__zone-band.is-medium { background: rgba(247, 210, 106, 0.6); }
.soil-gauge__zone-band.is-high, .soil-gauge__zone-band.is-ideal { background: rgba(155, 197, 61, 0.55); }
.soil-gauge__mark { position: absolute; top: -1px; bottom: -1px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.soil-gauge__guide, .soil-guide { font-size: 0.86rem; color: var(--ink-3); }

/* element by element: available beside the bank */
.soil-elements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 1.6rem; }
.soil-el { display: grid; gap: 0.3rem; padding: 0.7rem 0; border-top: 1px dashed var(--rule); align-content: start; }
.soil-el > * { margin: 0; }
.soil-el__name { font-weight: 700; font-size: 1.02rem; }
.soil-el__head { margin: 0; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.soil-el ul { list-style: none; margin: 0; padding: 0; }
.soil-el li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; font-size: 0.92rem; }
.soil-el__val { display: grid; justify-items: end; }
.soil-el li strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.soil-el__also { color: var(--ink-3); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.soil-el__share { display: grid; gap: 0.25rem; margin-top: 0.15rem; font-size: 0.86rem; color: var(--ink-2); }
.soil-el__bar { display: block; height: 0.55rem; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.soil-el__bar span { display: block; height: 100%; min-width: 2px; background: var(--canopy-2); }

/* the cations' shares of the CEC */
.soil-shares { display: flex; height: 1.3rem; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--ink); background: var(--paper-2); }
.soil-shares > span { display: block; height: 100%; }
.soil-shares__ca { background: var(--canopy-2); }
.soil-shares__mg { background: var(--leaf); }
.soil-shares__k { background: var(--wattle); }
.soil-shares__na { background: var(--earth); }
.soil-shares__al { background: var(--range); }
.soil-shares__h { background: var(--sky); }
.soil-shares__other { background: var(--gum); }
.soil-shares__key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.35rem 1.6rem; font-size: 0.94rem; }
.soil-shares__key li { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.soil-shares__key strong { font-variant-numeric: tabular-nums; }
.soil-shares__dot { flex: none; width: 0.8rem; height: 0.8rem; border-radius: 3px; transform: translateY(0.08rem); }
