/* ============================================================================
   PAGE FAMILY: catalog list pages (B3 shell) — SKIN tier — from site-allpaintingsstore-V2.0.css, original order
   Migrated 2026-07-05. Scope: every rule scoped to catalog-list-page /
   artwork-list-page / artist-list-page / article-list-page / museum-list-page
   (all four list templates carry `catalog-list-page artwork-list-page
   <type>-list-page`; these scopes render nowhere else).
   Includes the legacy-alias card rules that only serve article legacy cards on
   list pages (A1z bookkeeping: they now live here, delete with A1b).
   PHASE-A FIDELITY: verbatim relocation (incl. legacy !important); tokenization
   is a recorded follow-up. Do not edit without re-running the harness diff.
   ============================================================================ */
.search_sec.catalog-list-page  .custom_search .article-list-card,
.search_sec.artwork-list-page  .custom_search .article-list-card {
    background: var(--aps-paper, #FBFAF6);
    border: 1px solid var(--aps-rule, #DCD7CB);
    border-bottom: 1px solid var(--aps-rule, #DCD7CB);
    border-radius: 2px;
    overflow: visible;   /* hover panel floats below the card (see __hover) — the
                            image zoom is still clipped by __media's overflow:hidden */
    position: relative;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.search_sec.catalog-list-page  .custom_search .article-list-card:hover,
.search_sec.artwork-list-page  .custom_search .article-list-card:hover {
    background: var(--aps-paper, #FBFAF6) !important;
    border-color: var(--aps-rule-2, #C8C2B3) !important;
    transform: translateY(-3px);
}

.search_sec.catalog-list-page  .custom_search .row > [class*="col-"],
.search_sec.artwork-list-page  .custom_search .row > [class*="col-"] {
    border: none;
    margin-bottom: 28px;   /* vertical breathing room between card rows */
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__media,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--aps-rule, #DCD7CB);
    background: var(--aps-bg-2, #ECE9E1);
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__body,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__body {
    padding: 14px 16px 12px;
    background: var(--aps-paper, #FBFAF6);
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__meta,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__meta h2,
.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__meta h2 a,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__meta h2,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__meta h2 a {
    font-family: var(--aps-f-display, "Bricolage Grotesque", sans-serif);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.005em;
    font-variation-settings: "wdth" 90;
    text-transform: none;
    color: var(--aps-ink, #161310);
    text-decoration: none;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__meta h2 a:hover,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__meta h2 a:hover {
    color: var(--aps-burgundy, #5B1622) !important;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__meta span,
.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__meta span a,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__meta span,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__meta span a {
    font-family: var(--aps-f-mono, "JetBrains Mono", monospace);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--aps-ink-3, #8A857D);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__title,
.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__title a,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__title,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__title a {
    font-family: var(--aps-f-display, "Bricolage Grotesque", sans-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.008em;
    font-variation-settings: "wdth" 92;
    color: var(--aps-ink-2, #4A4641);
    text-decoration: none;
    display: block;
    transition: color 0.15s ease;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__title a:hover,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__title a:hover {
    color: var(--aps-ink, #161310) !important;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__hover,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__hover {
    position: absolute;
    top: 100%;
    left: -1px;
    width: calc(100% + 2px);
    box-sizing: border-box;
    background: var(--aps-paper, #FBFAF6);
    border: 1px solid var(--aps-rule-2, #C8C2B3);
    border-top: 1px solid var(--aps-rule, #DCD7CB);
    border-radius: 0 0 2px 2px;
    /* 31px = card padding (15px) + searchCard_body padding (16px); keeps the
       overlay full-width to the card frame while aligning the snippet text
       with the resting-state artist/title text. */
    padding: 12px 31px 14px;
    margin-top: 0;
    z-index: 1;
}

.search_sec.catalog-list-page  .custom_search .article-list-card:hover,
.search_sec.artwork-list-page  .custom_search .article-list-card:hover {
    z-index: 20;
    border-bottom-color: transparent !important;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__hover p,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__hover p {
    font-family: var(--aps-f-text, "Familjen Grotesk", sans-serif);
    font-size: 12.5px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.55;
    color: var(--aps-ink-2, #4A4641);
    margin-bottom: 12px;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__hover p a,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__hover p a {
    color: var(--aps-burgundy, #5B1622);
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__footer,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__cta,
.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__cta.added,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__cta,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__cta.added {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: var(--aps-burgundy, #5B1622);
    color: var(--aps-cream-2, #F2E6D8);
    font-family: var(--aps-f-display, "Bricolage Grotesque", sans-serif);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-variation-settings: "wdth" 90;
    border: none;
    border-radius: 2px;
    width: auto;
    min-width: 0;
    transition: background-color 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__cta:hover,
.search_sec.catalog-list-page  .custom_search .article-list-card__cta-group a.article-list-card__cta:hover,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__cta:hover,
.search_sec.artwork-list-page  .custom_search .article-list-card__cta-group a.article-list-card__cta:hover {
    background: var(--aps-burgundy-2, #7A1F30) !important;
    color: var(--aps-cream-2, #F2E6D8) !important;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .product-price-display,
.search_sec.artwork-list-page  .custom_search .article-list-card .product-price-display {
    font-family: var(--aps-f-mono, "JetBrains Mono", monospace);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: inherit;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__fav-group,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__fav-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--aps-paper, #FBFAF6);
    border: 1px solid var(--aps-rule-2, #C8C2B3);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__fav-group:hover,
.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__fav-group.active,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__fav-group:hover,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__fav-group.active {
    background: var(--aps-burgundy, #5B1622) !important;
    border-color: var(--aps-burgundy, #5B1622) !important;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .fav_toggle,
.search_sec.artwork-list-page  .custom_search .article-list-card .fav_toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .unfav_icon,
.search_sec.artwork-list-page  .custom_search .article-list-card .unfav_icon {
    width: 14px;
    height: 14px;
    opacity: 1;
    /* tint the light SVG stroke to brand burgundy so the heart is clearly visible */
    filter: brightness(0) saturate(100%) invert(11%) sepia(48%) saturate(2618%) hue-rotate(327deg) brightness(86%) contrast(98%);
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__fav-group:hover .unfav_icon,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__fav-group:hover .unfav_icon {
    opacity: 1;
    filter: brightness(10); /* icon becomes white on burgundy bg */
}

.search_sec.catalog-list-page  .custom_search .article-list-card .fav_icon,
.search_sec.artwork-list-page  .custom_search .article-list-card .fav_icon {
    width: 14px;
    height: 14px;
    /* burgundy-tinted at rest so the saved heart is visible on the cream circle */
    filter: brightness(0) saturate(100%) invert(11%) sepia(48%) saturate(2618%) hue-rotate(327deg) brightness(86%) contrast(98%);
    transition: filter 0.18s ease;
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__fav-group:hover .fav_icon,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__fav-group:hover .fav_icon {
    filter: brightness(10); /* white on burgundy hover bg */
}

.search_sec.catalog-list-page  .custom_search .article-list-card .article-list-card__media-link::after,
.search_sec.artwork-list-page  .custom_search .article-list-card .article-list-card__media-link::after {
    content: none;
}

.article-list-page .article-list-grid > .row {
  --bs-gutter-y: 18px;
}

.article-list-page .article-list-grid .article-list-card {
  background: var(--aps-paper, #FBFAF6);
  border: 1px solid var(--aps-rule, #DCD7CB);
  border-radius: var(--w-radius, 2px);
  box-shadow: none;
  overflow: visible;
  transition: transform .2s ease, border-color .2s ease;
}

.article-list-page .article-list-grid .article-list-card:hover {
  transform: translateY(-3px);
  border-color: var(--aps-burgundy-2, #7A1F30);
}

.article-list-page .article-list-grid .article-list-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-list-page .article-list-grid .article-list-card__media {
  position: relative;
  overflow: hidden;
  background: var(--aps-bg-2, #ECE9E1);
  border-bottom: 1px solid var(--aps-rule, #DCD7CB);
}

.article-list-page .article-list-grid .article-list-card__media-link {
  display: block;
  overflow: hidden;
}

.article-list-page .article-list-grid .article-list-card__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s ease;
}

.article-list-page .article-list-grid .article-list-card:hover .article-list-card__img {
  transform: scale(1.04);
}

.article-list-page .article-list-grid .article-list-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-list-page .article-list-grid .article-list-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.article-list-page .article-list-grid .article-list-card__meta h2,
.article-list-page .article-list-grid .article-list-card__meta h2 a {
  font-family: var(--aps-f-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aps-burgundy, #5B1622);
  line-height: 1.4;
  margin: 0;
}

.article-list-page .article-list-grid .article-list-card__meta h2 a:hover {
  color: var(--aps-burgundy-2, #7A1F30) !important;
}

.article-list-page .article-list-grid .article-list-card__meta span {
  font-family: var(--aps-f-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aps-ink-3, #8A857D);
  white-space: nowrap;
}

.article-list-page .article-list-grid .article-list-card__title {
  margin: 0;
}

.article-list-page .article-list-grid .article-list-card__title a {
  font-family: var(--aps-f-display, "Bricolage Grotesque", ui-sans-serif, sans-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -.018em;
  font-variation-settings: "wdth" 90;
  color: var(--aps-ink, #161310);
  transition: color .18s ease;
}

.article-list-page .article-list-grid .article-list-card__title a:hover {
  color: var(--aps-burgundy, #5B1622);
}

.article-list-page .article-list-grid .article-list-card__hover {
  background: transparent;
  border: 1px solid var(--aps-rule, #DCD7CB);
  border-top: 1px solid var(--aps-rule, #DCD7CB);
}

.article-list-page .article-list-grid .article-list-card__content {
  margin-top: 0;
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-list-page .article-list-grid .article-list-card__content p {
  font-family: var(--aps-f-text, "Familjen Grotesk", ui-sans-serif, sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--aps-ink-2, #4A4641);
  margin: 0;
}

.article-list-page .article-list-grid .article-list-card__footer {
  margin-top: auto;
  padding-top: 16px;
}

.article-list-page .article-list-grid .article-list-card__actions {
  display: flex;
}

.article-list-page .article-list-grid .article-list-card__read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--w-radius, 2px);
  background: var(--aps-burgundy, #5B1622);
  color: var(--aps-cream-2, #F2E6D8);
  font-family: var(--aps-f-display, "Bricolage Grotesque", ui-sans-serif, sans-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 0;
  transition: background .18s ease;
}

.article-list-page .article-list-grid .article-list-card__read-btn:hover {
  background: var(--aps-burgundy-2, #7A1F30);
  color: var(--aps-cream-2, #F2E6D8);
}

.search_sec.catalog-list-page.article-list-page .custom_search .article-list-card .article-list-card__meta h2 a {
  font-family: var(--aps-f-mono, "JetBrains Mono", ui-monospace, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aps-burgundy, #5B1622);
}

.search_sec.article-list-page .custom_search .article-list-card .article-list-card__body {
  padding: 18px 20px 20px;
}

.search_sec.article-list-page .custom_search .article-list-card .article-list-card__hover {
  padding: 0;
}

.search_sec.artwork-list-page .sorting_content,
.search_sec.artwork-list-page .sort_by {
  color: var(--aps-ink, #161310);
  font-family: var(--aps-f-text, "Familjen Grotesk", ui-sans-serif, sans-serif);
}

.search_sec.artwork-list-page .sorting_content select.custom-select {
  background-color: var(--aps-paper, #FBFAF6);
  border: 1px solid var(--aps-rule, #DCD7CB);
  color: var(--aps-ink, #161310);
  border-radius: var(--w-radius, 2px);
  font-family: var(--aps-f-text, "Familjen Grotesk", ui-sans-serif, sans-serif);
  font-size: 13px;
}

.search_sec.artwork-list-page .accordion-item {
  background-color: var(--aps-bg-2, #ECE9E1);
  border-bottom: 1px solid var(--aps-rule, #DCD7CB);
}

.search_sec.artwork-list-page button.accordion-button,
.search_sec.artwork-list-page .accordion-button:not(.collapsed) {
  background: var(--aps-bg-2, #ECE9E1) !important; /* keep-important: fights Bootstrap .bg-transparent/.rounded utility (!important in vendor CSS) */
  color: var(--aps-ink, #161310);
  font-family: var(--aps-f-text, "Familjen Grotesk", ui-sans-serif, sans-serif);
  box-shadow: none;
}

.search_sec.artwork-list-page .accordion-body {
  color: var(--aps-ink, #161310);
  font-family: var(--aps-f-text, "Familjen Grotesk", ui-sans-serif, sans-serif);
}

.search_sec.artwork-list-page .form-check input {
  background-color: var(--aps-paper, #FBFAF6);
  border: 1px solid var(--aps-rule-2, #C8C2B3);
}

.search_sec.artwork-list-page .form-check input:checked {
  background-color: var(--aps-burgundy, #5B1622) !important;
  border-color: var(--aps-burgundy, #5B1622) !important;
}

.search_sec.artwork-list-page .artist_input {
  background: var(--aps-paper, #FBFAF6);
  border: 1px solid var(--aps-rule, #DCD7CB);
  border-radius: var(--w-radius, 2px);
  color: var(--aps-ink, #161310);
  font-family: var(--aps-f-text, "Familjen Grotesk", ui-sans-serif, sans-serif);
}

.search_sec.artwork-list-page .artist_input::placeholder {
  color: var(--aps-ink-3, #8A857D);
}

.search_sec.artwork-list-page .tag-btn {
  background-color: var(--aps-cream-3, #F4ECDD);
  border: 1px solid var(--aps-rule, #DCD7CB);
  border-radius: var(--w-radius, 2px);
  color: var(--aps-ink, #161310);
  font-family: var(--aps-f-text, "Familjen Grotesk", ui-sans-serif, sans-serif);
}

.search_sec.artwork-list-page .noUi-target {
  background: var(--aps-rule, #DCD7CB);
}

.search_sec.artwork-list-page .noUi-connect {
  background: var(--aps-burgundy, #5B1622);
}

.search_sec.artwork-list-page .noUi-horizontal .noUi-handle {
  background: var(--aps-burgundy, #5B1622);
  border: 1px solid var(--aps-burgundy-ink, #2E0B12);
  box-shadow: none;
}

.search_sec.museum-list-page .pagination .page-item.active .page-link,
.search_sec.museum-list-page .pagination .page-item.active .page-link:hover,
.search_sec.museum-list-page .pagination .page-item.active .page-link:focus {
  background-color: var(--aps-burgundy, #5B1622) !important;
  border-color: var(--aps-burgundy, #5B1622) !important;
  color: var(--aps-cream-2, #F2E6D8) !important;
}
