.catalog-estimator {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 3px;
  margin-top: 1.25rem;
  padding: clamp(1rem, 2.3vw, 1.7rem);
}
.catalog-estimator [hidden] { display: none; }
.catalog-estimator label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
}
.catalog-quantities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.catalog-estimator input,
.catalog-estimator select {
  width: 100%;
  min-height: 44px;
  padding: .55rem .65rem;
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.catalog-estimator input[aria-invalid="true"] { border: 2px solid #943315; }
.catalog-estimator :focus-visible { outline: 3px solid #704412; outline-offset: 3px; }
.catalog-estimator .catalog-hint { color: var(--muted); font-size: .9rem; margin-top: .55rem; }
.catalog-estimator button { cursor: pointer; }
#catalog-estimate-error { color: #8a3018; margin: .6rem 0 0; }
#catalog-estimate-error:empty { margin: 0; }
.catalog-estimate-result { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.1rem; }
.catalog-estimate-result dl { margin: .75rem 0; font-variant-numeric: tabular-nums; }
.catalog-estimate-result dl:empty { display: none; }
.catalog-estimate-result dl > div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.catalog-estimate-result dd { font-weight: 700; margin: 0; }
@media (max-width: 400px) { .catalog-quantities { grid-template-columns: 1fr; } }

.width-example { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.width-example h2 { margin: 0 0 .5rem; }
.width-example p { max-width: 72ch; line-height: 1.55; }
.width-table { overflow-x: auto; }
.width-table table { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: left; }
.width-table th, .width-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); }
.width-table input { width: 9rem; padding: .4rem; border: 1px solid var(--muted); color: var(--ink); background: white; font: inherit; }
.width-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.width-actions button { font: inherit; cursor: pointer; color: var(--ink); background: transparent; border: 1px solid var(--muted); padding: .5rem .8rem; }
.width-example :focus-visible { outline: 3px solid #704412; outline-offset: 3px; }

@media (max-width: 600px) {
  .width-table table { min-width: 0; }
  .width-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .width-table tbody, .width-table tr { display: block; }
  .width-table tr { border: 1px solid var(--line); margin-bottom: .8rem; padding: .7rem; }
  .width-table th, .width-table td { display: block; border: none; padding: .2rem 0; }
  .width-table td::before { content: attr(data-label); display: block; font-size: .875rem; font-weight: 600; }
  .width-table input { width: 100%; min-height: 44px; }
  .width-actions button { min-height: 44px; }
}
