.hw-catalog {
  --catalog-line: #cec4b4;
  --catalog-accent: #785732;
  margin-top: clamp(50px, 7vw, 88px);
  scroll-margin-top: 85px;
}
.hw-catalog [hidden] { display: none !important; }
.hw-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.hw-catalog-head h3 { margin: 0; font: 500 clamp(36px, 4vw, 54px)/1.04 var(--serif); letter-spacing: -.04em; }
.hw-catalog-head h3 em { color: var(--catalog-accent); }
.hw-catalog-head p { max-width: 390px; margin: 0; font-size: 14px; line-height: 1.55; color: #5c554b; }
.hw-catalog-layout { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.7fr); border: 1px solid var(--catalog-line); border-radius: 8px; overflow: hidden; background: #fbf8f2; }
.hw-catalog-index { min-width: 0; padding: 23px 18px 14px; border-right: 1px solid var(--catalog-line); }
.hw-catalog-filters { display: grid; gap: 9px; }
.hw-catalog-filters label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.hw-catalog-filters input, .hw-catalog-filters select { min-width: 0; width: 100%; padding: 9px 12px; height: 42px; border-radius: 4px; border: 1px solid #c6bcae; background: #fffdf8; color: #302c26; font: inherit; font-size: 15px; }
.hw-catalog-count { margin: 17px 5px 7px; color: #655b50; font-size: 12px; }
.hw-catalog-list { list-style: none; margin: 0; padding: 2px; overflow-y: auto; max-height: 242px; scrollbar-color: #bcae98 transparent; }
.hw-catalog-list li { margin: 0; padding: 0; }
.hw-catalog-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 11px; border-bottom: 1px solid #e6ded2; color: #322e29; text-decoration: none; font-size: 14px; line-height: 1.3; }
.hw-catalog-list a:hover { background: #f2ece2; }
.hw-catalog-list a[aria-current] { background: #eae1d2; box-shadow: inset 3px 0 #896c42; font-weight: 600; }
.hw-catalog-list small { display: block; margin-top: 2px; font-size: 12px; color: #665f55; }
.hw-catalog-code { font-size: 10px; color: #695b48; letter-spacing: .04em; white-space: nowrap; }
.hw-catalog-empty { align-self: center; padding: 28px; font-size: 15px; }
.hw-catalog-empty p { margin: 0 0 8px; }
.hw-catalog-empty button { background: none; border: 0; padding: 6px 0; color: var(--catalog-accent); text-decoration: underline; font: inherit; cursor: pointer; }
.hw-sheet { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(156px, .95fr); align-items: center; gap: clamp(16px, 2vw, 34px); padding: clamp(20px, 2.8vw, 40px); background: #ede7dc; }
.hw-sheet-copy { min-width: 0; }
.hw-sheet-script { margin: 0 0 10px; color: #6a5338; font-size: 12px; }
.hw-sheet h4 { margin: 0; font: 500 clamp(27px, 3vw, 43px)/1.05 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.hw-sheet-native { width: fit-content; margin: 7px 0; color: #695f51; font-size: 16px; }
.hw-sheet-facts { margin: 24px 0 20px; padding-block: 10px; display: flex; gap: 22px; border-block: 1px solid var(--catalog-line); }
.hw-sheet-facts dt { font-size: 12px; color: #645b50; }
.hw-sheet-facts dd { margin: 2px 0 0; font-size: 21px; font-variant-numeric: tabular-nums; }
.hw-sheet-custom { font-size: 13px; line-height: 1.55; }
.hw-sheet .hw-sheet-download { display: inline-flex; gap: 13px; padding: 11px 15px; border-radius: 4px; }
.hw-sheet-copy > small { display: block; margin-top: 9px; color: #62594e; font-size: 12px; }
.hw-sheet-paper { width: 100%; max-width: 258px; margin-inline: auto; }
.hw-sheet-zoom { display: block; cursor: zoom-in; }
.hw-sheet-zoom img { display: block; background: white; width: 100%; height: auto; box-shadow: 0 8px 18px #45392424; }
.hw-sheet-pages { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; min-height: 42px; margin-top: 6px; text-align: center; }
.hw-sheet-pages span { grid-column: 2; grid-row: 1; font-size: 12px; color: #564f45; }
.hw-sheet-pages a { grid-row: 1; display: grid; place-items: center; min-height: 40px; color: #4e402e; text-decoration: none; font-size: 22px; }
.hw-sheet-pages [data-prev] { grid-column: 1; }
.hw-sheet-pages [data-next] { grid-column: 3; }
.hw-catalog :focus-visible { outline: 2px solid #7a582b; outline-offset: -2px; }
@media (max-width: 820px) {
  .hw-catalog-head { align-items: start; flex-direction: column; gap: 10px; }
  .hw-catalog-layout { grid-template-columns: 1fr; }
  .hw-catalog-index { border-right: 0; border-bottom: 1px solid var(--catalog-line); }
  .hw-catalog-filters { grid-template-columns: 1fr 1fr; }
  .hw-catalog-list { max-height: 145px; }
  .hw-sheet-paper { max-width: 215px; }
}
@media (max-width: 480px) {
  .hw-catalog-index, .hw-sheet { padding: 15px; }
  .hw-catalog-filters { grid-template-columns: 1fr; }
  .hw-catalog-filters input, .hw-catalog-filters select { font-size: 16px; }
  .hw-sheet { grid-template-columns: minmax(0, 1fr) minmax(100px, .8fr); gap: 12px; }
  .hw-sheet { align-items: start; row-gap: 0; }
  .hw-sheet-copy { display: contents; }
  .hw-sheet-script, .hw-sheet h4, .hw-sheet-native { grid-column: 1 / -1; }
  .hw-sheet h4 { font-size: 29px; overflow-wrap: normal; }
  .hw-sheet-native { margin-bottom: 0; }
  .hw-sheet-paper { grid-column: 2; grid-row: 4 / 8; align-self: center; margin-top: 12px; }
  .hw-sheet-facts { grid-column: 1; grid-row: 4; }
  .hw-sheet-custom { grid-column: 1; grid-row: 5; margin: 0 0 12px; }
  .hw-sheet-download { grid-column: 1; grid-row: 6; justify-self: start; }
  .hw-sheet-copy > small { grid-column: 1; grid-row: 7; }
  .hw-sheet-pages { grid-template-columns: 30px 1fr 30px; }
  .hw-sheet-facts { margin: 14px 0; gap: 12px; }
  .hw-sheet .hw-sheet-download { padding: 10px; gap: 5px; }
}
