.reference-body {
  max-width: 58rem;
  margin-inline: auto;
  color: inherit;
  line-height: 1.65;
}
.reference-body p {
  max-width: 68ch;
  margin: 0 0 1.15rem;
}
.reference-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.35;
  margin: 0 0 0.7rem;
  letter-spacing: normal;
}
.ref-chapter {
  margin: 2.2rem 0;
  padding: 0;
}
.reference-body a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.ref-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.9rem;
  margin-block: 1.5rem;
}
.ref-blocks--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.ref-blocks > .ref-chapter {
  margin: 0;
  min-width: 0;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  background: var(--paper);
  border-block-start: 1px solid #ae8a64;
}
.ref-blocks .ref-chapter h2 {
  font-size: clamp(1.13rem, 1.75vw, 1.4rem);
  letter-spacing: normal;
  line-height: 1.35;
  margin-block-end: 0.65rem;
}
.ref-blocks .ref-chapter p:last-child {
  margin-block-end: 0;
}
.ref-names {
  margin: 0;
  padding-inline-start: 1.1em;
}
.ref-names li {
  margin: 0 0 0.3rem;
}
.ref-names li::marker {
  color: #8c633a;
}
.ref-names li:last-child {
  margin-block-end: 0;
}
.ref-collections,
.ref-samples {
  display: grid;
  gap: 0.8rem;
}
.ref-collections {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin: 1.6rem 0;
}
.ref-collections a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid currentColor;
  text-decoration: none;
}
.ref-collections small {
  font-variant-numeric: tabular-nums;
}
.ref-collections a[aria-current] {
  font-weight: 700;
  border-width: 2px;
}
.ref-samples {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
}
.ref-samples img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}
.ref-samples--team {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ref-samples--team img {
  aspect-ratio: 680 / 354;
}
@media (min-width: 850px) {
  .ref-samples--team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ref-estimator {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0;
}
.ref-estimator label {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 10rem;
  font-weight: 600;
}
.ref-estimator input,
.ref-estimator button {
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.ref-estimator input {
  color: inherit;
  background: transparent;
}
.ref-estimator button {
  background: #222;
  color: #fff;
  cursor: pointer;
  width: auto;
}
.ref-result {
  border-inline-start: 3px solid currentColor;
  padding-inline-start: 1rem;
}
.ref-result strong {
  display: block;
  font-size: 1.5rem;
}
.ref-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}
.ref-phones a {
  white-space: nowrap;
}
