.coat-calculator {
  background: #eee9df;
  color: #252823;
  scroll-margin-top: 1rem;
}
.coat-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
.coat-calc-intro h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
}
.coat-calc-intro p {
  max-width: 48ch;
  font-size: 1.06rem;
  line-height: 1.65;
}
.coat-calc-intro .coat-calc-example {
  margin-top: 1.5rem;
  border-left: 3px solid #8c6844;
  padding-left: 1rem;
  font-size: 1rem;
}
.coat-calc-example strong {
  display: block;
}
.coat-calc-box form {
  background: #fffdf9;
  border: 1px solid #c8bca9;
  border-radius: 4px;
  padding: clamp(1.1rem, 3vw, 2.5rem);
}
.coat-calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.coat-calc-inputs label {
  display: block;
  font-weight: 670;
}
.coat-calc-inputs span {
  display: block;
  font-size: .9rem;
  font-weight: 460;
  color: #494a45;
}
.coat-calc-inputs input {
  width: 100%;
  min-height: 46px;
  margin: .55rem 0 0;
  padding: .55rem .75rem;
  color: #242622;
  background: #fff;
  border: 1px solid #817b6e;
  border-radius: 3px;
  font: inherit;
  font-weight: 480;
}
.coat-calc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1.4rem;
}
.coat-calc-example-btn {
  min-height: 44px;
  padding: .5rem .15rem;
  border: 0;
  background: transparent;
  color: #354c40;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.coat-calc-results {
  margin: 1.4rem 0 0;
  border-block: 1px solid #d0c5b3;
}
.coat-calc-results div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: .7rem 0;
}
.coat-calc-results div + div {border-top: 1px solid #e8e0d2}
.coat-calc-results dt {font-size: .95rem}
.coat-calc-results dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.coat-calc-note {
  margin: 1.2rem 0 0;
  max-width: 55ch;
  font-size: .95rem;
  line-height: 1.55;
  color: #494a45;
}
.coat-gauge-photo {
  display: grid;
  grid-template-columns: minmax(0, 38%) 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 0;
}
.coat-gauge-photo img {display: block; width: 100%; height: auto; border-radius: 4px}
.coat-gauge-photo figcaption {font-size: .95rem; line-height: 1.5; color: #373d36}
@media (max-width: 760px) {
  .coat-calc-grid {grid-template-columns: minmax(0, 1fr)}
}
@media (max-width: 460px) {
  .coat-calc-inputs {grid-template-columns: minmax(0, 1fr)}
  .coat-gauge-photo {grid-template-columns: 1fr; gap: .65rem}
}
