.hy-catalog {
    --hc-ink: #182d46;
    --hc-muted: #525e6b;
    --hc-line: #dedad1;
    --hc-gold: #95764b;
    --hc-light: #faf8f3;
    color: var(--hc-ink);
    padding-block: 22px clamp(44px, 6vw, 84px);
}

.hc-crumbs,
.hc-intro,
.hc-kind-list,
.hc-stock,
.hc-chips,
.hc-chip,
.hc-pager {
    display: flex;
    align-items: center;
}

.hc-crumbs {
    gap: 10px;
    color: var(--hc-muted);
    font-size: 13px;
}

.hc-crumbs a,
.hc-clear {
    color: inherit;
    text-underline-offset: 3px;
}

.hc-crumbs a { text-decoration: none; }
.hc-crumbs a:hover { text-decoration: underline; }
.hc-crumbs > span[aria-hidden] { color: var(--hc-gold); }

.hc-intro {
    justify-content: space-between;
    gap: 14px;
    margin-block: 17px 23px;
}

.hc-intro h1 {
    margin: 0;
    font: 600 clamp(33px, 4vw, 46px)/1.22 "Songti SC", "Noto Serif CJK SC", "Hiragino Mincho ProN", serif;
    letter-spacing: .035em;
}

.hc-share { position: relative; flex: 0 0 auto; }
.hc-share summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding-inline: 2px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--hc-muted);
}
.hc-share summary::-webkit-details-marker { display: none; }
.hc-share summary:hover { color: var(--hc-ink); }
.hc-share summary span { color: var(--hc-gold); font-size: 19px; }
.hc-share-panel {
    position: absolute;
    z-index: 3;
    inset-inline-end: 0;
    top: 100%;
    width: min(295px, 80vw);
    box-sizing: border-box;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 8px;
    box-shadow: 0 8px 25px #172d4615;
}
.hc-share-panel label { display: block; font-size: 13px; font-weight: 650; }
.hc-share-panel input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-block: 8px 4px;
    padding: 8px;
    border: 1px solid var(--hc-line);
    background: var(--hc-light);
    border-radius: 4px;
    font: inherit;
    font-size: 16px;
    color: var(--hc-ink);
}
.hc-copy {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--hc-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
}
.hc-share-status { margin-inline-start: 8px; color: var(--hc-muted); font-size: 12px; }

.hc-filters {
    border-block: 1px solid var(--hc-line);
}
.hc-kind-list {
    flex-wrap: wrap;
    gap: 7px;
    padding-block: 16px;
}
.hc-kind-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding-inline: 13px;
    border: 1px solid var(--hc-line);
    border-radius: 20px;
    color: var(--hc-ink);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}
.hc-kind-list a:hover,
.hc-chip:hover { background: #f3eee4; border-color: var(--hc-gold); }
.hc-kind-list a[aria-current] { background: var(--hc-ink); color: #fff; border-color: var(--hc-ink); }

.hc-filter-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 0;
    padding: 16px;
    scroll-margin-top: 125px;
    background: var(--hc-light);
    border-top: 1px solid var(--hc-line);
}
.hc-field { min-width: 0; }
.hc-brand { flex: 1 1 230px; max-width: 410px; }
.hc-sort { flex: 0 1 175px; }
.hc-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--hc-muted);
    font-size: 13px;
    font-weight: 600;
}
.hc-field select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 30px 0 11px;
    color: var(--hc-ink);
    border: 1px solid #cfcbbf;
    border-radius: 5px;
    appearance: none;
    background:
        linear-gradient(45deg, transparent 48%, currentColor 50%) right 15px center / 5px 5px no-repeat,
        linear-gradient(135deg, currentColor 48%, transparent 50%) right 10px center / 5px 5px no-repeat,
        #fff;
    font: inherit;
    font-size: 16px;
    text-overflow: ellipsis;
    cursor: pointer;
}
.hc-stock {
    align-self: end;
    min-height: 42px;
    gap: 7px;
    width: max-content;
    color: var(--hc-ink);
    font-size: 14px;
    cursor: pointer;
}
.hc-stock input { width: 17px; height: 17px; margin: 0; accent-color: var(--hc-ink); }
#hy-brand-picker:target .hc-brand select { border-color: var(--hc-gold); }
.hc-apply {
    min-height: 42px;
    margin-inline-start: auto;
    padding-inline: 21px;
    border: 1px solid var(--hc-ink);
    border-radius: 5px;
    background: var(--hc-ink);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}
.hc-apply:hover { background: #2e4761; }
.hy-catalog :is(a, summary, button, select, input):focus-visible {
    outline: 2px solid #856234;
    outline-offset: 3px;
}

.hc-results-head { margin-block: 25px 16px; }
.hc-results-head h2 { font-size: 17px; font-weight: 500; line-height: 1.5; margin: 0; }
.hc-results-head h2 span { font-weight: 730; font-variant-numeric: tabular-nums; }
.hc-chips { flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.hc-chip {
    max-width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid #ded5c3;
    border-radius: 4px;
    color: var(--hc-ink);
    background: #f6f1e7;
    text-decoration: none;
    line-height: 1.35;
    font-size: 13px;
}
.hc-chip span:first-child { overflow-wrap: anywhere; }
.hc-chip span:last-child { color: #66583e; }
.hc-clear {
    padding: 7px 4px;
    font-size: 13px;
    text-decoration: underline;
}
.hc-empty {
    display: grid;
    justify-items: center;
    padding: clamp(40px, 8vw, 90px) 16px;
    text-align: center;
    border: 1px dashed var(--hc-line);
    background: var(--hc-light);
}
.hc-empty h3 { margin: 0; font-size: 20px; }
.hc-empty p { margin: 10px 0 17px; color: var(--hc-muted); font-size: 15px; line-height: 1.65; }
.hc-empty a { padding: 6px; color: var(--hc-ink); text-underline-offset: 4px; font-weight: 600; }
.hc-empty a span { margin-inline-start: 4px; }

.hc-pager { gap: 5px; justify-content: center; margin-top: 34px; }
.hc-pager a,
.hc-page-number[aria-current] {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 40px;
    box-sizing: border-box;
    padding-inline: 8px;
    border: 1px solid var(--hc-line);
    border-radius: 4px;
    color: var(--hc-ink);
    font-size: 14px;
    text-decoration: none;
}
.hc-pager a:hover { border-color: var(--hc-gold); }
.hc-page-number[aria-current] { background: var(--hc-ink); color: #fff; border-color: var(--hc-ink); }
.hc-page-gap { padding-inline: 3px; color: var(--hc-muted); }
.hc-page-state { display: none; }

@media (max-width: 650px) {
    .hy-catalog { padding-block-start: 13px; }
    .hc-intro { margin-block: 10px 15px; }
    .hc-kind-list { gap: 5px; padding-block: 12px; }
    .hc-kind-list a { min-height: 30px; padding-inline: 10px; font-size: 13px; }
    .hc-filter-form {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 7px 10px;
        padding: 12px 10px 10px;
        scroll-margin-top: 140px;
    }
    .hc-brand { max-width: none; }
    .hc-stock { align-self: center; }
    .hc-apply { width: 100%; padding-inline: 12px; margin: 0; }
    .hc-results-head { margin-block: 17px 12px; }
    .hc-results-head h2 { font-size: 16px; }
    .hc-pager { justify-content: space-evenly; gap: 10px; margin-top: 24px; }
    .hc-pager .hc-page-number, .hc-page-gap { display: none; }
    .hc-page-state { display: inline; font-size: 14px; color: var(--hc-muted); }
    .hc-pager a.hc-page-move { min-width: 70px; }
}

@media (forced-colors: active) {
    .hc-field select { appearance: auto; }
    .hc-kind-list a[aria-current], .hc-page-number[aria-current] { border: 3px double Highlight; }
}
