#herdBoard{color:#162d42}
#herdBoard header small{font-weight:750;letter-spacing:.15em;color:#47667e}
#herdBoard h1{font-size:clamp(22px,2.3vw,38px);margin:0 0 .35em;line-height:1.15}
#herdBoard .hb-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;align-items:start}
#herdBoard article{background:white;border:1px solid #dbe4ec;border-radius:14px;padding:clamp(12px,1.3vw,24px)}
#herdBoard h2{font-size:clamp(18px,1.5vw,28px);margin:0;line-height:1.15}
#herdBoard p{font-size:14px;color:#50677b;margin:4px 0 10px}
#hbRows button{border:0;border-top:1px solid #e0e8ec;background:white;color:inherit;font:inherit;cursor:pointer;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:clamp(32px,5.5vh,66px);padding:2px 6px}
#hbRows button:hover,#hbRows button:focus-visible{background:#edf6ff}
#hbRows strong{font-size:clamp(17px,1.55vw,32px);letter-spacing:.04em}
#hbRows span{font-weight:650;font-size:clamp(13px,1.2vw,23px);border-radius:6px;padding:1px 9px}
#hbRows .ok{color:#12643e;background:#e3f5e9}
#hbRows .warn{color:#824706;background:#fff1d7}
#hbRows .urgent{color:#982c2c;background:#fde8e8}
#hbRows .muted{color:#516173;background:#edf1f5}
#herdBoard dl{margin:0 0 12px}
#herdBoard dl div{padding:clamp(8px,2vh,22px) 0;border-top:1px solid #e0e8ec}
#herdBoard dt{color:#405e72}
#herdBoard dd{font-size:clamp(22px,2.3vw,40px);font-weight:750;margin:0}
@media(min-width:761px) and (max-height:740px){#herdBoard header small{display:none}#hbRows button{min-height:clamp(25px,5vh,36px)}}
@media(max-width:760px){#herdBoard .hb-grid{grid-template-columns:1fr}#hbRows button{min-height:44px}}
#hbRows button{display:grid;grid-template-columns:minmax(3em,.7fr) minmax(0,1.45fr) minmax(max-content,1fr);gap:6px;text-align:left}
#hbRows small{font-size:clamp(12px,1.05vw,20px);color:#445b70;text-align:center}
#hbRows span{justify-self:end;text-align:center}
@media(max-width:390px){#hbRows button{grid-template-columns:auto 1fr auto;gap:3px;padding-inline:0}#hbRows span{padding-inline:4px}}

#herdBoard #hbGas{display:flex;flex-wrap:wrap;align-items:center;gap:.3em .45em}
#hbGas .hb-nh3-badge{font-size:clamp(12px,1vw,17px);font-weight:700;line-height:1.35;padding:.15em .65em;border-radius:6px;background:#edf1f5;color:#47586a}
#hbGas .hb-nh3-badge[data-state="normal"]{color:#12643e;background:#e3f5e9}
#hbGas .hb-nh3-badge[data-state="high"]{color:#982c2c;background:#fde8e8}
#hbGas .hb-nh3-badge[hidden]{display:none}

#herdBoard .hb-columns,#hbRows button{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(max-content,1.2fr);gap:6px;padding-inline:6px;align-items:center}
#herdBoard .hb-columns{color:#405e72;font-size:clamp(12px,.95vw,18px);padding-block:4px}
.hb-columns b:nth-child(2){text-align:center}.hb-columns b:last-child{text-align:right}
#hbRows .warn{background:#fff0cf;color:#77430a}
@media(min-width:761px) and (max-height:780px){#hbRows button{min-height:clamp(24px,4.4vh,34px)}}
#detailTempPlot{width:100%;height:auto;min-height:180px;display:block;margin-top:20px;overflow:visible}
#detailTempNote{background:transparent;border:0;padding:8px 0;margin:0;color:#62768c;font-size:12px}
