#body_wrap.wca-listing-page {
    background: var(--jdb-color-canvas, #0e1116);
    color: var(--jdb-color-text, #f5f7fa);
}
#body_wrap.wca-listing-page #content {
    max-width: 1040px;
    width: calc(100% - 40px);
    padding: 0;
    margin: 0 auto;
}
#body_wrap.wca-listing-page #main_content { width: 100%; max-width: none; }
#body_wrap.wca-listing-page .wca-listing h1 { color: #f5f7fa !important; }
.wca-listing {
    padding-block: clamp(1.5rem, 4vw, 3rem);
    color: var(--jdb-color-text, #f5f7fa);
}
.wca-listing h1 { margin: .75rem 0; color: inherit; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; }
.wca-listing > p { color: var(--jdb-color-text-secondary, #b4bdc8); }
.wca-listing nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.wca-listing nav a { font-size: .875rem; }
.wca-listing form, .wca-directories, .wca-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}
.wca-listing form {
    padding: clamp(.875rem, 3vw, 1.5rem);
    border: 1px solid var(--jdb-color-border, #27313d);
    border-radius: 8px;
    background: var(--jdb-color-surface, #151a21);
}
.wca-listing label {
    display: grid;
    min-width: 0;
    gap: 6px;
    color: var(--jdb-color-text-secondary, #b4bdc8);
    font-size: .875rem;
    font-weight: 650;
}
.wca-listing :is(input, select, button) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--jdb-color-border-strong, #374454);
    border-radius: 4px;
    background: var(--jdb-color-canvas, #0e1116);
    color: var(--jdb-color-text, #f5f7fa);
    color-scheme: dark;
    font: inherit;
}
.wca-listing select { appearance: auto; }
.wca-listing button { background: var(--jdb-color-accent, #a92432); align-self: end; font-weight: 700; cursor: pointer; }
.wca-listing a { color: var(--jdb-color-link, #dc7782); text-underline-offset: .2em; text-decoration: underline; }
.wca-listing :focus-visible { outline: 2px solid var(--jdb-color-link, #dc7782); outline-offset: 3px; }
.wca-cards img { display: block; width: 100%; height: auto; }
.wca-directories { align-items: start; }
.wca-listing details, .wca-empty {
    border: 1px solid var(--jdb-color-border, #27313d);
    border-radius: 8px;
    background: var(--jdb-color-surface, #151a21);
    padding: .875rem 1rem;
}
.wca-listing summary { cursor: pointer; font-weight: 650; }
.wca-listing details ul { margin-top: .5rem; padding-inline-start: 1.2rem; }

.wca-listing .wca-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}
.wca-cards :is(.jdb-archive-hub-card, .jdb-en-card) {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--jdb-color-border, #27313d);
    border-radius: 8px;
    background: var(--jdb-color-surface, #151a21);
}
.wca-cards :is(.jdb-archive-hub-card, .jdb-en-card) > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--jdb-color-text, #f5f7fa);
    text-decoration: none;
}
.wca-cards :is(.jdb-archive-hub-card__image, .jdb-en-card-image) {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1200 / 630;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: var(--jdb-color-canvas, #0e1116);
}
.wca-cards :is(.jdb-archive-hub-card__image, .jdb-en-card-image) img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
.wca-cards .jdb-archive-hub-card__image > span {
    color: var(--jdb-color-text-secondary, #b4bdc8);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.wca-cards .jdb-archive-hub-card__body {
    position: relative;
    display: grid;
    align-content: start;
    flex: 1;
    gap: .45rem;
    padding: 1rem 2rem 1rem 1rem;
}
.wca-cards .jdb-archive-hub-card__body strong { overflow-wrap: anywhere; line-height: 1.5; }
.wca-cards .jdb-archive-hub-card__body :is(.jdb-archive-hub-card__meta, small) {
    font-size: .78rem;
    color: var(--jdb-color-text-secondary, #b4bdc8);
}
.wca-cards .jdb-archive-hub-card__arrow { position: absolute; right: .75rem; bottom: 1rem; }
.wca-cards :is(.jdb-archive-hub-card, .jdb-en-card):focus-within {
    outline: 2px solid var(--jdb-color-link, #dc7782);
    outline-offset: 2px;
}
.wca-listing .wca-pagination {
    display: block;
    margin-block: max(20px, 1.5rem);
    background: transparent;
}
.wca-listing .wca-pagination > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wca-listing .wca-pagination > ul > li { margin: 0; padding: 0; }
.wca-pagination .wca-page {
    box-sizing: border-box;
    display: inline-flex;
    vertical-align: top;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .35rem .6rem;
    border: 1px solid var(--jdb-color-border-strong, #374454);
    border-radius: 4px;
    background: var(--jdb-color-surface, #151a21);
    color: var(--jdb-color-text, #f5f7fa);
    text-decoration: none;
}
.wca-pagination .wca-page--current {
    background: var(--jdb-color-accent, #a92432);
    border-color: var(--jdb-color-accent, #a92432);
    color: #fff;
}
.wca-pagination .wca-page--dots { min-width: 0; border-color: transparent; background: transparent; }
#wca-results { scroll-margin-top: 5rem; }

@media (max-width: 880px) {
    .wca-listing .wca-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .wca-listing .wca-cards { grid-template-columns: minmax(0, 1fr); }
}

.wca-listing .wca-cards .jdb-en-card-image:empty { display: grid; }

/* The shared archive defaults to cover. Keep the full artwork in these cards. */
#body_wrap .wca-cards .jdb-archive-hub-card__image img { object-fit: contain !important; }
