.catalog-section {
  --catalog-rule: #b2aea9;
  --catalog-minor-rule: #dfdeda;
  --catalog-muted: #54514b;
  padding-block: clamp(3rem, 6vw, 5rem);
  color: var(--ink);
}
.catalog-section [hidden] { display: none !important; }
.catalog-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.65rem;
}
.catalog-tools h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700;
}
.catalog-tools p { margin: .65rem 0 0; color: var(--catalog-muted); line-height: 1.5; }
.catalog-search { width: min(100%, 24rem); flex-shrink: 0; }
.catalog-search label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; }
.catalog-input {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-inline: .85rem .35rem;
  border: 1px solid #827970;
  border-radius: 2px;
  background: #fffaf3;
  color: var(--catalog-muted);
}
.catalog-input:focus-within { border-color: var(--ink); outline: 3px solid var(--orange); outline-offset: 1px; }
.catalog-input > svg { flex: none; }
.catalog-input input {
  appearance: none;
  caret-color: var(--orange);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 2.9rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.catalog-input input:focus-visible { outline: none; }
.catalog-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
.catalog-input input::placeholder { color: #625e57; opacity: 1; }
.catalog-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.catalog-clear:hover { background: #efeeea; }
#catalog-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-bottom: 1px solid var(--catalog-rule);
  font-size: 1rem;
}
.catalog-w-model { width: 29%; }
.catalog-w-item { width: 22%; }
.catalog-w-yield { width: 24%; }
.catalog-w-price { width: 12%; }
.catalog-w-action { width: 13%; }
#catalog-table th, #catalog-table td {
  vertical-align: middle;
  padding: .8rem .65rem;
  text-align: left;
  line-height: 1.35;
}
#catalog-table .catalog-model { padding-left: 0; }
#catalog-table .catalog-model { vertical-align: top; padding-top: 1rem; padding-right: 1.25rem; font-weight: 600; }
.catalog-break { color: #625e57; }
#catalog-table thead { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); background: #efeeea; }
#catalog-table thead th { color: var(--ink); font-weight: 600; font-size: .875rem; }
#catalog-table tbody { border-top: 1px solid var(--catalog-rule); }
#catalog-table tbody tr + tr > :not(.catalog-model) { border-top: 1px solid var(--catalog-minor-rule); }
#catalog-table .catalog-item { font-size: 1.0625rem; font-weight: 600; }
.catalog-sub { display: block; margin-top: .15rem; color: var(--catalog-muted); font-size: .875rem; font-weight: 400; }
#catalog-table .catalog-price, #catalog-table .catalog-action { text-align: right; }
#catalog-table td.catalog-price { white-space: nowrap; font-weight: 700; }
#catalog-table .catalog-action { padding-right: 0; }
.catalog-yield, .catalog-price { font-variant-numeric: tabular-nums; }
.catalog-action a, #catalog-empty a, .catalog-reset {
  color: var(--orange-link);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: .21em;
}
.catalog-action a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9375rem; }
.catalog-action a:hover, #catalog-empty a:hover, .catalog-reset:hover { text-decoration-color: currentColor; }
#catalog-empty { padding: 1.75rem 0; border-bottom: 1px solid var(--catalog-rule); }
#catalog-empty p { margin: 0 0 .5rem; font-size: 1.1rem; }
.catalog-reset { border: 0; padding: 0; margin-left: 1.2rem; background: transparent; font: inherit; cursor: pointer; }
.catalog-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 48rem) {
  .catalog-tools { display: grid; gap: 1rem; }
  .catalog-search { width: 100%; }
  #catalog-table, #catalog-table tbody { display: block; }
  #catalog-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #catalog-table { border-top: 2px solid var(--ink); }
  #catalog-table tbody { padding: .9rem 0 .25rem; }
  #catalog-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .3rem .65rem;
    align-items: start;
    padding-bottom: .8rem;
  }
  #catalog-table .catalog-model {
    grid-column: 1/-1;
    padding: 0 0 .5rem;
    font-size: 1.15rem;
  }
  #catalog-table tbody tr + tr > :not(.catalog-model) { border-top: 0; }
  #catalog-table tbody tr + tr:not([hidden]) { padding-top: .6rem; }
  #catalog-table tbody tr:has(.catalog-model) { padding-top: 0; }
  #catalog-table th, #catalog-table td { padding: 0; }
  #catalog-table .catalog-item { grid-column: 1; font-size: 1rem; }
  #catalog-table .catalog-price { grid-column: 2; grid-row: auto; }
  #catalog-table .catalog-yield { grid-column: 1; grid-row: auto; font-size: .875rem; color: var(--catalog-muted); }
  #catalog-table .catalog-action { grid-column: 2; grid-row: auto; }
  .catalog-model { order: 0; }
  .catalog-item, .catalog-price { order: 1; }
  .catalog-yield, .catalog-action { order: 2; }
  .catalog-action a { min-height: 1.65rem; }
  .catalog-sub { margin-top: .12rem; }
}
