/* Browse cards are real buttons. The artwork is a truthful empty-stall fallback;
   product plaques contain only the titles in the current catalogue projection. */
.wsj_stall_palette_0 { --wsj_stall_accent: #b34d2c; --wsj_stall_cloth: #f1e2c4; }
.wsj_stall_palette_1 { --wsj_stall_accent: #497b69; --wsj_stall_cloth: #f0e0bb; }
.wsj_stall_palette_2 { --wsj_stall_accent: #4a6684; --wsj_stall_cloth: #f0e4cd; }
.wsj_stall_palette_3 { --wsj_stall_accent: #bc8230; --wsj_stall_cloth: #f8e4bb; }
.wsj_stall_palette_4 { --wsj_stall_accent: #984c58; --wsj_stall_cloth: #f2dfcb; }
.wsj_stall_palette_5 { --wsj_stall_accent: #66824d; --wsj_stall_cloth: #f1e3c5; }
.wsj_stall_palette_6 { --wsj_stall_accent: #936443; --wsj_stall_cloth: #e9ddc8; }
.wsj_stall_palette_7 { --wsj_stall_accent: #64618b; --wsj_stall_cloth: #eee2ce; }
body.wsj_market_page #wsj_list_view {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    align-content: start;
    gap: 9px;
    min-height: min(63vh, 760px);
    padding: 12px;
    background: #d7ba87 url('../images/market-art-light-20261027.webp') center / cover no-repeat;
}
html[data-wsj-theme=dark] body.wsj_market_page #wsj_list_view {
    background-color: #3b2517;
    background-image: url('../images/market-art-dark-20261027.webp');
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_table_card,
body.wsj_house.wsj_market_page #wsj_list_view .wsj_table_card[aria-pressed=true] {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 3px solid #76502e;
    border-radius: 4px;
    background: #e8d0a7;
    color: #263c2d;
    box-shadow: 0 3px 0 #49301e, 0 5px 8px #271508a8;
    text-align: left;
    --wsj_button_wait_ink: #253a31;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_table_card:hover:not(:disabled),
body.wsj_house.wsj_market_page #wsj_list_view .wsj_table_card:focus-visible {
    background: #f5e2bf;
    border-color: #f4ce83;
    color: #263c2d;
    box-shadow: 0 3px 0 #6c431f, 0 5px 10px #201005bd;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_table_card[aria-pressed=true] { outline: 2px solid #e99b3f; outline-offset: 1px; }
body.wsj_house.wsj_market_page #wsj_list_view .wsj_table_card:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #49301e; }
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_awning {
    display: block;
    width: 100%;
    height: 27px;
    flex: 0 0 27px;
    margin: 0;
    border-bottom: 3px solid #754a2c;
    background: repeating-linear-gradient(90deg, var(--wsj_stall_accent) 0, var(--wsj_stall_accent) 18px, var(--wsj_stall_cloth) 18px, var(--wsj_stall_cloth) 36px);
    box-shadow: inset 0 2px 3px #fff8, inset 0 -3px 4px #2c160b4a;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_sign {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 50px;
    gap: 6px;
    margin: 0;
    padding: 5px 7px;
    border-bottom: 2px solid #936a43;
    background: linear-gradient(110deg, #e4c394, #fff1d0 30%, #e7c79a);
    color: #26382b;
    font: 700 14px/1.15 Georgia, serif;
    text-align: left;
    overflow-wrap: anywhere;
    text-shadow: 0 1px #fff5de;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_owner {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #9a774d;
    border-radius: 50%;
    background: #e2eade;
    color: #506c57;
    font-size: 14px;
    text-shadow: none;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_owner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_owner img[hidden] { display: none; }
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_name { flex: 1; min-width: 0; margin: 0; color: inherit; font: inherit; }
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 145px;
    flex: 0 0 145px;
    margin: 0;
    overflow: hidden;
    background: #7b4f2e url('../images/market-stall-empty-20261027.webp') center 43% / cover no-repeat;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_showcase::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 12px;
    border-top: 1px solid #4e2b19;
    background: repeating-linear-gradient(90deg, var(--wsj_stall_accent) 0, var(--wsj_stall_accent) 12px, var(--wsj_stall_cloth) 12px, var(--wsj_stall_cloth) 24px);
    box-shadow: inset 0 2px 3px #25170b66;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_plaques {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-height: 130px;
    margin: 0;
    padding: 4px 9px 15px;
    overflow: hidden;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_plaque {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 4px 6px;
    overflow: hidden;
    border: 1px solid #a47543;
    border-radius: 2px;
    background: #f8e7c6f0;
    color: #304232;
    font: 700 11px/1.1 Georgia, serif;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 4px #2112099c;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_more { background: #e8d2aaf5; }
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    margin: 0;
    padding: 7px 8px 8px;
    background: #f5e9ce;
    color: #30483b;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_details > span {
    display: block;
    margin: 0;
    color: #30483b;
    font: 12px/1.25 Arial, sans-serif;
    overflow-wrap: anywhere;
}
body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_details .wsj_card_open {
    display: block;
    margin-top: auto;
    padding: 6px 7px;
    border: 1px solid #28534a;
    border-radius: 3px;
    background: linear-gradient(#347a6a, #20544a);
    color: #fff8e9;
    font: 700 13px/1.15 Georgia, serif;
    text-align: center;
    text-shadow: 0 1px #152d22;
    box-shadow: 0 2px 0 #173c34;
}
html[data-wsj-theme=dark] body.wsj_market_page #wsj_list_view .wsj_card_details { background: #e7d1ad; }
@media (max-width: 850px) {
    body.wsj_market_page #wsj_list_view { min-height: 345px; padding: 8px; gap: 8px; }
}
@media (max-width: 430px) {
    body.wsj_market_page #wsj_list_view { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; gap: 6px; }
    body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_sign { min-height: 46px; padding: 4px; font-size: 13px; }
    body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_showcase { height: 130px; flex-basis: 130px; }
    body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_plaque { font-size: 10px; }
    body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_details { padding: 5px; }
    body.wsj_house.wsj_market_page #wsj_list_view .wsj_card_details > span { font-size: 11px; }
}

/* Open stall: retain the live catalogue and its existing seller/privacy controls. */
body.wsj_house.wsj_market_page .wsj_seller_panel { border: 3px solid #987046; border-radius: 5px; padding: 12px; background: #f5e7cb; color: #26382d; box-shadow: 0 3px 9px #34200c66; }
body.wsj_house.wsj_market_page #wsj_back_wander { width: 100%; margin-bottom: 9px; text-align: left; }
body.wsj_house.wsj_market_page #wsj_table_panel h1 { margin: 4px 0; font: 700 21px/1.15 Georgia,serif; overflow-wrap: anywhere; }
body.wsj_house.wsj_market_page #wsj_seller_about { margin: 6px 0; font-size: 13px; line-height: 1.35; }
body.wsj_house.wsj_market_page #wsj_seller_meta { margin: 6px 0; padding: 6px 8px; border: 1px solid #d0b48a; border-radius: 3px; background: #f9f0df; color: #4f5949; }
body.wsj_house.wsj_market_page .wsj_stall_items_heading { margin: 10px 0 6px; padding-top: 7px; border-top: 1px solid #cfb189; font: 700 18px/1.2 Georgia,serif; }
body.wsj_house.wsj_market_page #wsj_products .wsj_product { padding: 7px; border: 1px solid #d2b78c; background: #fff8e9; box-shadow: 0 1px 3px #4c301b22; }
body.wsj_house.wsj_market_page #wsj_products .wsj_product_art { border: 1px solid #d3b591; background-color: #ecd9b8; }
body.wsj_house.wsj_market_page #wsj_products .wsj_product_copy strong { font: 700 14px/1.2 Georgia,serif; }
body.wsj_house.wsj_market_page #wsj_ordering_note { padding: 7px 9px; border: 1px solid #c7cfaa; border-left: 3px solid #5e8d68; border-radius: 3px; background: #eaf0df; color: #344939; }
html[data-wsj-theme=dark] body.wsj_house.wsj_market_page .wsj_seller_panel { border-color: #8e6846; background: #26352f; color: #f7eddd; }
html[data-wsj-theme=dark] body.wsj_house.wsj_market_page #wsj_seller_meta { border-color: #667761; background: #314439; color: #d1ddca; }
html[data-wsj-theme=dark] body.wsj_house.wsj_market_page .wsj_stall_items_heading { border-color: #667761; }
html[data-wsj-theme=dark] body.wsj_house.wsj_market_page #wsj_products .wsj_product { border-color: #6f7c65; background: #202d28; }
html[data-wsj-theme=dark] body.wsj_house.wsj_market_page #wsj_products .wsj_product_art { border-color: #6f7c65; background: #34463c; }
html[data-wsj-theme=dark] body.wsj_house.wsj_market_page #wsj_ordering_note { background: #263e30; color: #e1eadb; border-color: #618467; }
