/* Source-backed catalogue, QC examples and UK purchase notes. */
#qc-examples, #qc-checklist { scroll-margin-top: 96px; }
.source-note {
  padding: 16px 20px; margin: 18px 0 26px; border: 1px solid #dce5f0;
  border-radius: 12px; background: #fff; color: #475569; font-size: 13px; line-height: 1.7;
}

/* Keep source-listed option counts out of product names without hiding content. */
.source-product-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.source-product .source-product-kicker { margin-bottom: 6px; }
.secondary-page .source-product .source-product-kicker .product-label,
.home-listing-card .source-product-kicker .product-label { margin: 0; }
.source-style-count, .source-highlight .source-style-count {
  display: inline-flex; flex: 0 0 auto; align-items: center; width: fit-content;
  padding: 2px 8px; margin: 0; border: 0; border-radius: 5px;
  background: #eef3f8; color: #475569; font-size: 13px; font-weight: 500;
  line-height: 1.4; white-space: nowrap;
}
.source-highlight .source-style-count { margin-top: 5px; }

/* Compact source thumbnails share the item column; comparison widths stay unchanged. */
.source-sheet-table { table-layout: fixed; }
.source-sheet-table th:nth-child(1) { width: 16%; }
.source-sheet-table th:nth-child(2) { width: 34%; }
.source-sheet-table th:nth-child(3) { width: auto; }
.source-sheet-table th:nth-child(4) { width: 142px; }
.source-sheet-table th, .source-sheet-table td { padding: 16px 12px; vertical-align: middle; }
.source-sheet-table th { color: #475569; }
.source-sheet-table th small { display: block; margin-top: 3px; color: #64748b; font-size: 11px; font-weight: 400; white-space: nowrap; }
.source-sheet-table .sheet-item, .source-sheet-table .sheet-notes { overflow-wrap: anywhere; }
.source-sheet-table .sheet-item-name { display: block; }
.source-sheet-table .sheet-product { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 12px; align-items: center; }
.source-sheet-table .sheet-product-copy { min-width: 0; }
.source-sheet-table .sheet-thumb { display: block; width: 60px; height: 60px; border-radius: 7px; cursor: zoom-in; }
.source-sheet-table .sheet-thumb-media { display: block; width: 100%; height: 100%; border-radius: inherit; }
.source-sheet-table .sheet-thumb-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.source-sheet-table .sheet-thumb-media.image-unavailable::after { content: "No image"; padding: 4px; line-height: 1.2; }
.source-sheet-table .sheet-thumb:focus-visible { outline: 3px solid #0759b4; outline-offset: 3px; }
.source-sheet-table .sheet-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.source-sheet-table .sheet-image-kind { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.5; }
.source-product .product-card-main > .source-qc-status { margin: 6px 0 0; }
.source-sheet-table .sheet-category { color: #475569; font-size: 13px; }
.source-sheet-table .sheet-notes { color: #475569; }
.source-sheet-table .table-link { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 13px; }
.source-link-actions { display: flex; flex-direction: column; align-items: flex-start; }
.source-alternative { display: inline-flex; align-items: center; min-height: 44px; color: #475569; font-size: 12px; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; }
.source-link-actions .source-alternative { min-height: 28px; }
.source-alternative:hover { color: #0759b4; }
.source-alternative:focus-visible { outline: 3px solid #0759b4; outline-offset: 3px; border-radius: 3px; }
.source-product > .source-alternative { margin-top: 6px; border-top: 1px solid #e8eef6; width: 100%; padding-top: 6px; }
.source-link-warning { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; line-height: 1.5; color: #92400e; }
.source-note .source-link-check { margin: 6px 0 0; color: #475569; font-size: 12px; }
.source-sheet-table tbody tr:hover { background: #fafbfd; }
.source-qc-status { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.source-qc-status svg { flex: 0 0 16px; width: 16px; height: 16px; color: #64748b; }

.source-sheet-panel .sheet-evidence-note { margin: 12px 12px 0; padding-top: 14px; border-top: 1px solid #e8eef6; color: #64748b; font-size: 12px; line-height: 1.6; }
@media (max-width: 1100px) {
  .source-sheet-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .source-sheet-panel { padding: 14px; }
  .source-sheet-table { display: block; width: 100%; }
  .source-sheet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .source-sheet-table tbody { display: grid; gap: 12px; }
  .source-sheet-table tr { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 10px; padding: 14px; border: 1px solid #e8eef6; border-radius: 10px; }
  .source-sheet-table tr[hidden] { display: none; }
  .source-sheet-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .source-sheet-table .sheet-category { grid-area: 1 / 1; font-size: 12px; }

  .source-sheet-table .sheet-item { grid-area: 2 / 1 / auto / -1; font-weight: 600; font-size: 15px; }
  .source-sheet-table .sheet-product { grid-template-columns: 48px minmax(0,1fr); gap: 10px; }
  .source-sheet-table .sheet-thumb { width: 48px; height: 48px; }
  .source-sheet-table .sheet-notes { grid-area: 3 / 1 / auto / -1; font-size: 13px; line-height: 1.65; }
  .source-sheet-table .sheet-link { grid-area: 4 / 1 / auto / -1; }
  .source-sheet-table .source-qc-status { font-size: 12px; gap: 5px; }
  .source-link-actions { flex-direction: row; flex-wrap: wrap; column-gap: 20px; }
  .source-link-actions .source-alternative { min-height: 44px; }
  .source-sheet-panel .sheet-evidence-note { margin: 16px 0 0; }
}


/* Combined catalogue controls, single-style QC examples and verified video chapters. */
.catalog-controls { display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(180px,1fr) auto auto; align-items: end; gap: 16px; padding: 20px; background: #fff; border: 1px solid #dce5f0; border-radius: 14px; margin: 20px 0 12px; }
.catalog-controls[hidden], .catalog-empty[hidden], .chapter-grid[hidden] { display: none; }
.catalog-field { display: grid; gap: 7px; min-width: 0; color: #0b1f3b; font-size: 13px; font-weight: 600; }
.catalog-field input, .catalog-field select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #bdcada; border-radius: 8px; font: inherit; font-size: 14px; color: #0b1f3b; background: #fff; box-sizing: border-box; }
/* Keep the native select interaction, with a consistently inset decorative chevron. */
.catalog-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M2 3l5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 10px;
  text-overflow: ellipsis;
  cursor: pointer;
}
@media (forced-colors: active) {
  .catalog-field select { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 12px; }
}
.catalog-qc { display: flex; align-items: center; gap: 9px; min-height: 46px; font-size: 13px; line-height: 1.4; color: #0b1f3b; cursor: pointer; }
.catalog-qc input { flex: 0 0 19px; width: 19px; height: 19px; accent-color: #e85c00; }
.catalog-scope, [data-catalog-status] { color: #475569; font-size: 13px; line-height: 1.6; margin: 8px 0; }
.catalog-empty { padding: 24px; border: 1px dashed #bdcada; border-radius: 12px; text-align: center; background: #fff; margin: 20px 0; }
.catalog-empty h3 { margin: 0 0 8px; }
.catalog-empty p { margin: 0 0 16px; color: #475569; font-size: 14px; }
.catalog-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; color: #0759b4; text-decoration: underline; font-size: 14px; }
.source-note { padding: 12px 16px; margin: 12px 0 22px; }
.source-note .source-note-summary { margin: 0; font-size: 13px; }
.source-disclosure { margin-top: 8px; font-size: 12px; color: #475569; line-height: 1.65; }
.source-disclosure summary { cursor: pointer; padding: 10px 0; min-height: 44px; box-sizing: border-box; color: #0759b4; }
.source-disclosure p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.qc-source-explanation { padding: 14px 18px; margin-top: 18px; background: #fff7ed; border-left: 3px solid #ff6a00; border-radius: 0 10px 10px 0; }
.qc-source-explanation > p { font-size: 14px; line-height: 1.7; margin: 0; }
.video-chapters { grid-column: 1 / -1; min-width: 0; border-top: 1px solid #e1e8f0; padding-top: 20px; }
.video-chapters h3 { margin: 0 0 6px; font-size: 17px; }
.video-chapters > p { margin: 0 0 14px; color: #475569; font-size: 13px; line-height: 1.6; }
.chapter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.chapter-button { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 62px; padding: 10px 12px; text-align: left; border: 1px solid #dce5f0; border-radius: 9px; background: #fff; color: #0b1f3b; cursor: pointer; font: inherit; font-size: 12px; line-height: 1.5; }
.chapter-button time { flex: 0 0 auto; color: #0759b4; font-weight: 700; font-variant-numeric: tabular-nums; }
.chapter-button.is-current { border-color: #ff6a00; background: #fff5eb; }
.video-chapters [data-video-status] { margin: 12px 0 0; min-height: 21px; }
.catalog-controls input:focus-visible, .catalog-controls select:focus-visible, .source-disclosure summary:focus-visible, .chapter-button:focus-visible { outline: 3px solid #0759b4; outline-offset: 3px; }
@media (max-width: 900px) {
  .catalog-controls { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .chapter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .catalog-controls { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 12px; }
  .catalog-qc { min-height: 44px; }
  .catalog-empty a { margin-left: 0; }
  .chapter-button { padding: 10px; gap: 7px; }
}

.source-note a, .source-caption a, .uk-buying-notes a { color: #0759b4; text-decoration: underline; text-underline-offset: 3px; }
.source-product h3 { overflow-wrap: anywhere; }
.source-product .product-media { width: 100%; height: 220px; flex: none; margin: 0 0 8px; }
.source-product .product-media img { width: 100%; height: 100%; object-fit: contain; }
.source-product .source-product-status { display: block; margin-top: 16px; font-size: 12px; color: #475569; }
.source-product .product-card-main .text-link { padding-top: 10px; }
.source-highlight { min-width: 0; color: inherit; text-decoration: none; }
.source-highlight > span:last-child { min-width: 0; }
.source-highlight strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.source-highlight .source-thumb { display: flex; width: 70px; height: 62px; align-items: center; justify-content: center; }
.source-highlight .source-thumb img { width: 70px; height: 62px; }
.source-highlight:hover strong { color: #e85c00; }
[data-source-media] { position: relative; overflow: hidden; background: #eef3f8; }
[data-source-media].image-unavailable::after {
  content: "Image unavailable"; display: grid; place-items: center; position: absolute; inset: 0;
  padding: 8px; color: #475569; background: #eef3f8; text-align: center; font-size: 12px; line-height: 1.4;
}
[data-source-media] img[hidden] { display: none !important; }
.source-photo-note { font-size: 13px; color: #475569; line-height: 1.65; }
/* Homepage QC: full-width original photos instead of letterboxed strips. */
.home-page .qc-panel {
  grid-template-columns: minmax(300px,.9fr) minmax(0,1.8fr);
  gap: 32px; align-items: center; padding: 28px; scroll-margin-top: 96px;
}
.home-page .qc-checklist { min-width: 0; }
.home-page .qc-checklist h2 { max-width: 22ch; margin-bottom: 18px; line-height: 1.3; }
.home-page .qc-checklist ul { gap: 10px; }
.home-page .qc-checklist li { line-height: 1.55; }
.home-page .qc-checklist .source-photo-note { margin: 16px 0; max-width: 52ch; }
.home-page .home-qc-source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 20px; }
.home-qc-source {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid #dce5f0; border-radius: 12px; background: #fff;
  color: #0b1f3b; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.home-qc-source-media { display: block; flex: none; height: auto; border-radius: 0; }
.home-qc-source-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.home-qc-source strong { display: block; margin: 14px 16px 6px; font-size: 14px; line-height: 1.5; }
.home-qc-source > span:last-child { display: block; margin: auto 16px 16px; color: #475569; font-size: 12px; line-height: 1.6; }
.home-qc-source:hover { border-color: #ffb782; box-shadow: 0 8px 20px rgba(11,31,59,.06); }
.home-qc-source-media.image-unavailable { aspect-ratio: 4 / 3; }
@media (max-width: 1100px) {
  .home-page .qc-panel { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .home-page .qc-checklist h2 { max-width: none; }
  .home-page .qc-checklist ul { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
  .home-page .qc-checklist .source-photo-note { max-width: 75ch; }
}
@media (max-width: 620px) {
  .home-page .qc-panel { padding: 18px; gap: 24px; }
  .home-page .qc-checklist ul, .home-page .home-qc-source-grid { grid-template-columns: minmax(0,1fr); }
  .home-page .home-qc-source-grid { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .home-qc-source { transition: none; } }
/* Source-backed QC gallery: one image per card, without wide letterboxing. */
.qc-examples-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-grid,24px); align-items: stretch; }
.secondary-page .qc-single-example { display: flex; flex-direction: column; min-width: 0; padding: var(--space-compact,20px); background: var(--surface,#fff); }
.qc-variant-label { align-self: flex-start; justify-self: start; display: inline-block; margin-bottom: 12px; padding: 4px 8px; border-radius: 6px; background: var(--bg,#f6f8fb); color: #52627a; font-size: 11px; font-weight: 500; }
.qc-single-example .qc-example-photo { display: block; min-width: 0; color: #0759b4; font-size: 12px; text-decoration: none; }
.qc-single-example .qc-source-media { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--bg,#f6f8fb); }
.qc-single-example .qc-source-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qc-example-photo > span:last-child { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.secondary-page .qc-single-example h3 { min-height: 2.8em; margin: 4px 0 6px; font-size: 16px; line-height: 1.4; }
.secondary-page .qc-single-example .qc-variant-name { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: #64748b; }
.secondary-page .qc-single-example > p:not(.source-caption):not(.qc-variant-name) { margin: 0; font-size: 13px; line-height: 1.65; }
.secondary-page .qc-single-example .source-caption { margin: auto 0 0; padding-top: 8px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.qc-single-example .source-caption > a { display: inline-flex; align-items: center; min-height: 44px; }
.qc-single-example .source-disclosure { margin-top: 0; border-top: 1px solid var(--line,#dce5f0); }
.qc-single-example .source-disclosure summary { font-size: 12px; }
.qc-single-example .source-disclosure p { font-size: 12px; }
@media (max-width: 1199px) {
  .qc-examples-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .secondary-page .qc-single-example h3 { min-height: 0; }
}
@media (max-width: 620px) {
  .qc-examples-grid { grid-template-columns: minmax(0,1fr); }
  .secondary-page .qc-single-example h3 { font-size: 17px; }
}

/* Align each content row without fixed-height descriptions or text clipping. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 621px) {
    .secondary-page .qc-single-example { display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 0; }
    .secondary-page .qc-single-example h3 { min-height: 0; }
    .secondary-page .qc-single-example .source-caption { margin: 8px 0 0; padding-top: 0; }
  }
}
.qc-limit-note { margin: 20px 0 0; padding: 18px 20px; border-left: 3px solid #ff6a00; background: #fff7ed; color: #475569; font-size: 14px; line-height: 1.7; }
.qc-review-list { display: grid; gap: 12px; list-style: disc; margin: 0; padding-left: 20px; }
.qc-review-list li { margin: 0; padding-left: 2px; font-size: 14px; line-height: 1.65; }
.qc-review-list li::marker { color: #e85c00; }
.qc-reset { min-height: 44px; border: 1px solid #bdcada; border-radius: 8px; padding: 8px 14px; background: #fff; color: #0b1f3b; font: inherit; font-size: 13px; cursor: pointer; }
.qc-image-dialog {
  width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box;
  border: 1px solid #dce5f0; border-radius: 16px; padding: 20px; color: #0b1f3b; background: #fff;
}
.qc-image-dialog::backdrop { background: rgba(8,25,48,.78); }
.qc-image-dialog .dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qc-image-dialog h2 { font-size: 18px; margin: 0; line-height: 1.4; }
.qc-image-dialog img { display: block; width: 100%; max-height: 68dvh; object-fit: contain; margin-top: 14px; }
.qc-image-dialog img[hidden] { display: none; }
.qc-image-dialog p { font-size: 13px; line-height: 1.6; }
.qc-image-dialog [hidden] { display: none; }
.uk-buying-notes { margin-top: 32px; padding: 24px; background: #fff; border: 1px solid #dce5f0; border-radius: 16px; }
.uk-buying-notes > h3 { font-size: 20px; margin: 0 0 18px; }
.uk-buying-notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.uk-buying-notes h4 { margin: 0 0 8px; color: #0b1f3b; font-size: 15px; }
.uk-buying-notes p { margin: 0; color: #475569; font-size: 14px; line-height: 1.7; }
.source-highlight:focus-visible, .home-qc-source:focus-visible, .qc-example-photo:focus-visible, .qc-reset:focus-visible { outline: 3px solid #0759b4; outline-offset: 4px; border-radius: 8px; }
@media (max-width: 860px) {
  .uk-buying-notes-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .secondary-page .qc-example, .uk-buying-notes { padding: 16px; }
  .source-note { padding: 14px; }
  .qc-image-dialog { padding: 14px; }
}

/* Keep specialist photo filters secondary to product search and category. */
.catalog-controls.catalog-controls--compact { grid-template-columns: minmax(220px,1.5fr) minmax(180px,1fr) auto; }
.catalog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.catalog-extra-filters { position: relative; font-size: 13px; }
.catalog-extra-filters > summary { display: flex; align-items: center; gap: 7px; min-height: 44px; color: #475569; cursor: pointer; list-style: none; white-space: nowrap; }
.catalog-extra-filters > summary::-webkit-details-marker { display: none; }
.catalog-extra-filters > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 3px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.catalog-extra-filters[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.catalog-extra-filters > summary:hover { color: #0b1f3b; }
.catalog-extra-filters > summary:focus-visible { outline: 3px solid #0759b4; outline-offset: 3px; border-radius: 5px; }
.catalog-extra-panel { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); width: 288px; max-width: calc(100vw - 64px); padding: 14px 16px; border: 1px solid #dce5f0; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(11,31,59,.12); box-sizing: border-box; }
.catalog-extra-filters:not([open]) > .catalog-extra-panel { display: none; }
.catalog-extra-panel .catalog-qc { margin: 0; }
.catalog-extra-panel p { margin: 6px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.catalog-filter-active { padding: 2px 6px; border-radius: 4px; background: #eef2f6; color: #334155; font-size: 11px; }
.catalog-filter-active[hidden] { display: none; }
@media (max-width: 980px) {
  .catalog-controls.catalog-controls--compact { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .catalog-controls--compact .catalog-actions { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .catalog-controls.catalog-controls--compact { grid-template-columns: minmax(0,1fr); }
  .catalog-controls--compact .catalog-actions { justify-content: space-between; }
  .catalog-extra-panel { left: 0; right: auto; }
}
