/* DIY catalogue presentation. All test content and prices come from the existing API. */
.cfg-page .svc-hero { padding: 26px 0 30px; }
.cfg-page .svc-hero h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.cfg-page .svc-hero p { margin-bottom: 0; font-size: 14px; }
.cfg-page .svc-hero + .section { background: #f5f6f8; padding: 30px 0 50px; }
.cfg-page .cfg { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 24px; align-items: start; }
.cfg-sidebar { min-width: 0; position: sticky; top: 146px; max-height: calc(100dvh - 164px); overflow-y: auto; scrollbar-width: thin; }
.cfg-filter-panel { border: 1px solid #e0e3e7; border-radius: 10px; background: #fff; }
.cfg-mobile-filter-summary { display: none; }
.cfg-filter-body { padding: 18px 15px; }
.cfg-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 19px; }
.cfg-filter-heading strong { font-size: 14px; }
.cfg-filter-heading button, .cfg-empty button { padding: 4px 0; background: none; color: #8f2e42; font-size: 11px; font-weight: 700; }
.cfg-filter-section { min-width: 0; margin: 0; padding: 0 0 18px; border: 0; }
.cfg-filter-section + .cfg-filter-section { border-top: 1px solid #e8e9ec; padding-top: 16px; }
.cfg-filter-section legend { padding: 0; margin-bottom: 10px; color: #292b33; font-size: 12px; font-weight: 800; }
.cfg-filter-section + .cfg-filter-section legend { float: left; width: 100%; }
.cfg-filter-option { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 12px; line-height: 1.45; color: #525763; cursor: pointer; clear: both; }
.cfg-filter-option input { flex: 0 0 auto; width: 14px; height: 14px; margin: 2px 0 0; accent-color: #8f2e42; cursor: pointer; }
.cfg-filter-option span { flex: 1; min-width: 0; }
.cfg-filter-option small { color: #959ba6; font-size: 10px; padding-top: 1px; }
.cfg-filter-option:has(input:checked) { color: #8f2e42; font-weight: 700; }
.cfg-sidebar-help { display: block; border-top: 1px solid #e8e9ec; padding-top: 14px; color: #8f2e42; font-size: 11px; font-weight: 700; text-decoration: none; }
.cfg-catalogue { min-width: 0; }
.cfg-toolbar { display: flex; gap: 10px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #e1e4e8; }
.cfg-page .cfg-search { min-width: 0; min-height: 39px; flex: 1; padding: 0 11px; border: 1px solid #dcdfe4; border-radius: 6px; background: #fff; }
.cfg-page .cfg-search input { min-width: 0; height: 37px; font-size: 12px; }
.cfg-toolbar-options { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cfg-sort select { max-width: 195px; min-height: 39px; padding: 7px 26px 7px 10px; border: 1px solid #dcdfe4; border-radius: 6px; background-color: #fff; color: #535965; font: inherit; font-size: 11px; cursor: pointer; }
.cfg-view-switch { display: flex; gap: 2px; padding: 2px; border: 1px solid #dcdfe4; border-radius: 6px; background: #fff; }
.cfg-view-switch button { display: grid; place-items: center; width: 32px; height: 33px; padding: 0; border-radius: 4px; background: #fff; color: #9a9fa8; }
.cfg-view-switch button[aria-pressed="true"] { background: #8f2e42; color: #fff; }
.cfg-catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 17px 0 19px; }
.cfg-catalogue-heading h2 { font-size: 19px; margin: 0 0 4px; font-weight: 800; }
.cfg-catalogue-heading p { font-size: 12px; color: #818795; margin: 0; }
.cfg-page .cfg-results-status { flex-shrink: 0; color: #858b97; font-size: 11px; font-weight: 500; }
.cfg-page .cfg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.cfg-test-card { display: flex; flex-direction: column; min-width: 0; padding: 20px 18px 16px; border: 1px solid #dfe2e6; border-radius: 7px; background: #fff; box-shadow: 0 2px 3px rgba(35, 40, 49, .04); transition: border-color .15s, box-shadow .15s; }
.cfg-test-card:hover { border-color: #c4a0a9; box-shadow: 0 4px 14px rgba(55, 36, 42, .07); }
.cfg-test-card.is-on { border-color: #8f2e42; box-shadow: 0 0 0 1px #8f2e42; }
.cfg-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #8b919d; font-size: 9px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.cfg-card-category { min-width: 0; }
.cfg-card-type { flex-shrink: 0; color: #959ba7; }
.cfg-page .cfg-item-main { display: flex; flex-direction: column; gap: 0; flex: 1; }
.cfg-page .cfg-item-name { margin: 0 0 7px; color: #28242a; font-size: 17px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.cfg-page .cfg-item-blurb { display: block; margin: 0 0 11px; color: #737b8b; font-size: 12px; line-height: 1.6; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }
.cfg-card-contents { margin-bottom: 11px; }
.cfg-card-contents summary { color: #626978; font-size: 11px; cursor: pointer; padding: 4px 0; }
.cfg-page .cfg-contains { display: block; padding: 7px 9px; margin-top: 4px; border-radius: 4px; background: #f6f7f9; color: #6b7484; font-size: 11px; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }
.cfg-page .cfg-item-meta { display: flex; gap: 6px 12px; justify-content: space-between; margin: auto 0 13px; padding-top: 6px; }
.cfg-page .cfg-tat { font-size: 10px; font-weight: 500; }
.cfg-card-info { color: #9298a3; font-size: 10px; text-underline-offset: 3px; }
.cfg-card-info:hover { color: #8f2e42; }
.cfg-card-bottom { margin-top: auto; }
.cfg-page .cfg-price { display: block; margin-bottom: 10px; color: #33272c; font-size: 19px; font-weight: 750; }
.cfg-page .cfg-item { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; width: 100%; margin: 0; padding: 8px 10px; border: 1px solid #8f2e42; border-radius: 4px; background: #8f2e42; color: #fff; text-align: center; font-size: 11px; font-weight: 750; line-height: 1.5; }
.cfg-page .cfg-item:hover { border-color: #682031; background: #682031; }
.cfg-page .cfg-item.is-on { border-color: #dfbac4; background: #f7e9ed; color: #8f2e42; }
.cfg-add-icon { font-size: 17px; line-height: 1; }
.cfg-page .cfg-item:focus-visible, .cfg-view-switch button:focus-visible, .cfg-mobile-filter-summary:focus-visible, .cfg-filter-heading button:focus-visible { outline: 3px solid #d79cab; outline-offset: 3px; }
.cfg-page .cfg-guidance { margin-top: 25px; }
.cfg-list-view .cfg-list { grid-template-columns: 1fr; }
.cfg-list-view .cfg-test-card { display: grid; grid-template-columns: minmax(0, 1fr) 180px; column-gap: 20px; }
.cfg-list-view .cfg-card-top { grid-column: 1 / -1; }
.cfg-list-view .cfg-card-bottom { align-self: center; }
body.cfg-page.cfg-has-selection { padding-bottom: 160px; }
.cfg-page .cfg-bar[hidden] { display: none; }
.cfg-page .cfg-bar-right .btn { white-space: normal; }
@media (max-width: 1000px) {
  .cfg-page .cfg { grid-template-columns: 195px minmax(0, 1fr); gap: 18px; }
  .cfg-toolbar { flex-wrap: wrap; }
  .cfg-page .cfg-search { flex-basis: 100%; }
  .cfg-toolbar-options { width: 100%; justify-content: space-between; }
  .cfg-test-card { padding: 17px 14px 14px; }
}
@media (max-width: 739px) {
  .cfg-page .cfg { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cfg-page .svc-hero { padding: 20px 0 24px; }
  .cfg-page .svc-hero + .section { padding-top: 18px; }
  .cfg-sidebar { position: static; max-height: none; overflow: visible; }
  .cfg-mobile-filter-summary { display: flex; align-items: center; gap: 10px; list-style: none; padding: 12px 14px; color: #8f2e42; font-size: 13px; font-weight: 750; cursor: pointer; }
  .cfg-mobile-filter-summary::-webkit-details-marker { display: none; }
  .cfg-mobile-filter-summary::after { content: '+'; margin-left: auto; font-size: 20px; line-height: 1; }
  .cfg-filter-panel[open] > summary::after { content: '−'; }
  .cfg-filter-panel[open] > summary { border-bottom: 1px solid #e5e6eb; }
  .cfg-filter-option { padding: 9px 0; font-size: 13px; }
  .cfg-filter-option input { width: 17px; height: 17px; margin-top: 1px; }
  .cfg-filter-body { padding: 17px; }
  .cfg-catalogue-heading { align-items: flex-start; }
  .cfg-catalogue-heading h2 { font-size: 18px; }
  .cfg-page .cfg-list { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .cfg-test-card { padding: 18px 17px 16px; }
  .cfg-page .cfg-item-name { font-size: 18px; }
  .cfg-page .cfg-item-blurb { font-size: 13px; }
  .cfg-page .cfg-item { min-height: 44px; font-size: 12px; }
  .cfg-list-view .cfg-test-card { display: flex; }
  .cfg-sort { flex: 1; min-width: 0; }
  .cfg-sort select { max-width: 100%; width: 100%; }
  .cfg-page .cfg-bar-total { font-size: 18px; }
  body.cfg-page.cfg-has-selection { padding-bottom: 210px; }
}
