.howto-wrapper img {
  max-width:100%;
}

.howto-indent ul li {
  list-style-type: disc;
  margin-left: 1.5em;
}

div:is(.howto-flex-left, .howto-flex-right) > *:last-child img {
  margin-top: 1em;
}

.illuminance-guide {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 2em 0 0;
}

.illuminance-guide > div {
  text-align: center;
}

.illuminance-guide > div img {
  margin-bottom: .5em;
}

.howto-wrapper .howto-flex-left > *:first-child img, .howto-wrapper .howto-flex-right > *:first-child img {
  max-height: 120px;
  max-width: 230px;
  width: auto;
  object-fit: contain;
}

.howto-note {
  max-width: none;
}

.lumen-def > div {
  display: flex;
  justify-content: center;
  align-items: self-start;
  gap: 15px;
  border: 1px solid #dddddd;
  padding: 1.5em;
}

.lumen-def > div > p:first-child {
  width: 70px;
  text-align: center;
  padding: 3px;
  font-weight: bold;
}

.howto-water {
  border: 1px solid #4848a9;
  padding: 2em;
  flex-direction: column;
}

.howto-water h4 {
  color: #4848a9;
  font-size:18px;
  font-weight:bold;
}

.lumen-def > div.lumen > p:first-child {
  background:yellow;
  color: #c76700;
}

.lumen-def > div.water > p:first-child {
  background: #c2edff;
  color: #4848a9;
}

.lumen-def > div + div {
  margin-top: 1.5em;
}

.lumen-def > div div h4 {
  font-size:16px;
  font-weight:bold;
  margin-bottom:.3em;
  color: #333;
}

/*------------------------------------------------*/
.dark-box {
  position: relative;
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  border: 0.5px solid #333;
}

canvas#c {
  position: absolute;
  inset: 0;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
}

.slider-row label {
  font-size: 17px;
  color: #ef7102;
  white-space: nowrap;
}

.slider-row label img {
  stroke: #f59e0b;
  color: red;
}

.slider-row input[type=range] {
  flex: 1;
  accent-color: #f59e0b;
}

.slider-out {
  font-size: 13px;
  color: #666;
  min-width: 52px;
  text-align: right;
}

.info-card {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  background: #f0ede8;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin: 1.25rem auto 0;
  width: 230px;
  justify-content: center;
}

.info-card .lm-val {
  font-size: 22px;
  font-weight: 500;
  color: #111;
}

.info-card .lm-unit {
  font-size: 13px;
  color: #666;
}

.info-card .lm-sub {
  font-size: 13px;
  color: #666;
}

/*------------------------------------------------*/

@media (max-width: 800px){
  .howto-flex-left, .howto-flex-right {
  flex-direction: column-reverse;
  }

  .howto-wrapper .howto-flex-left > *:first-child img {
  max-width: 310px;
  max-height: 190px;
  }

  .lm-wrapper {
  margin-top: 2em;
  }
  .illuminance-guide {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 0;
}

}