/* Overall coating conditions gauge and the Risks card */
.conditions {
  text-align: center;
  padding: 14px 3% 12px;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.3;
}
.conditionsIntro {
  color: var(--ink-2);
}
.conditionsLabel {
  margin: 10px 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.conditionsGauge {
  position: relative;
  display: flex;
  height: 18px;
}
/* Segment widths follow the 1.5-4.6 scale: very wet to 2.4, wetter 2.4-2.7,
   moderate 2.7-3.2, drier 3.2-3.5, very dry from 3.5. The colors blend from
   very wet to wetter and from drier to very dry (one gradient across the
   gauge); a thin light line marks where wetter and very dry begin. */
.conditionsGauge {
  background: linear-gradient(
    to right,
    #1f5fa8 0%,
    #6baed6 38.71%,
    #8cc084 38.71%,
    #8cc084 54.84%,
    #e2c17a 54.84%,
    #a0622d 100%
  );
}
.conditionsGauge .seg {
  background: transparent;
}
.conditionsGauge .seg.very-wet {
  flex: 0 0 29.03%;
}
.conditionsGauge .seg.wet {
  flex: 0 0 9.68%;
  box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.6);
}
.conditionsGauge .seg.moderate {
  flex: 0 0 16.13%;
}
.conditionsGauge .seg.dry {
  flex: 0 0 9.68%;
}
.conditionsGauge .seg.very-dry {
  flex: 1;
  box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.6);
}
.conditionsMarker {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--ink);
  /* A thin white edge keeps the marker visible on the dark bands */
  box-shadow: 0 0 0 1.5px var(--surface);
  transition: left 0.2s ease-out;
}
.conditionsEnds {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink);
}
/* WET and DRY sit under the centres of their segments */
.conditionsEnds .mid-label {
  position: absolute;
  transform: translateX(-50%);
}
/* Small pans: a bracket over the very dry segment (from 3.5 on the 1.5-4.6
   scale) marks where conditions are expected to read for the pan size */
.dryExpectedBand {
  position: relative;
  margin: 22px 0 8px 64.52%;
  height: 6px;
  border: 1.5px solid var(--ink-2);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}
.dryExpectedBand[hidden] {
  display: none;
}
.dryExpectedBand span {
  position: absolute;
  bottom: 7px;
  right: 0;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.dryExpectedNote {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface-sunken);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  color: var(--ink-2);
}
.dryExpectedNote[hidden] {
  display: none;
}
.conditionsDetail {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

#risks .noRisks {
  color: var(--ink-2);
}

/* Risks, then the combined "What to check" list */
#risks .riskList,
#risks .checkList {
  list-style: none;
  margin: 0;
  padding: 0;
}
#risks .riskList li {
  margin: 6px 0;
  color: var(--bad-ink);
  line-height: 1.4;
}
#risks .checksHeading {
  margin: 12px 0 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font: 600 15px "Source Sans Pro", sans-serif;
  color: var(--ink);
}
#risks .checkList li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 5px 0;
  color: var(--ink);
  line-height: 1.4;
}
#risks .checkIcon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ok-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#risks .checkFor {
  color: var(--ink-2);
  font-size: 13px;
}

#risks {
  padding-right: 4%;
  font-family: "Source Sans Pro", sans-serif;
}

/* The Risks card stops at the bottom of the parameters box; its list scrolls */
.floaty2.risks {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.floaty2.risks h2 {
  flex: none;
}
#risks {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
#risks.hasMore {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}


