.ds-family-hero { background: var(--mist); padding: 24px 0 48px; }
.ds-family-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 32px; }
.ds-family-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.ds-family-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-bottom: 18px; max-width: 700px; }
.ds-family-hero__lead { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.ds-family-hero__copy > p:not(.eyebrow) { max-width: 620px; }
.ds-family-hero .button { display: inline-flex; align-items: center; gap: 10px; }
.ds-family-hero__image { margin: 0; background: white; padding: 26px; border: 1px solid var(--line); border-radius: 8px; }
.ds-family-hero__image img { width: 100%; height: 290px; object-fit: contain; }
.ds-family-hero__image figcaption { text-align: center; font-size: .72rem; color: var(--muted); margin-top: 14px; }
.ds-family-stats { display: flex; flex-wrap: wrap; gap: 24px; margin: 20px 0 26px; font-size: .9rem; color: var(--navy); }
.ds-family-stats strong { font-size: 1.4rem; margin-right: 5px; }
.ds-family-nav { border-bottom: 1px solid var(--line); background: white; }
.ds-family-nav .container { display: flex; flex-wrap: wrap; gap: 30px; }
.ds-family-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 18px 0; text-decoration: none; font-weight: 650; font-size: .92rem; }
.ds-family-nav a:last-child { margin-left: auto; }
.ds-family-nav span, .ds-family-count { border: 1px solid var(--line); border-radius: 30px; padding: 3px 10px; font-size: .8rem; color: var(--navy); white-space: nowrap; }
.ds-family-body { padding-bottom: 70px; }
.ds-family-documents__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.ds-family-documents__list > li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: white; overflow-wrap: anywhere; }
.ds-family-documents__list .button { max-width: 100%; white-space: normal; text-align: left; }
.ds-family-documents__title { font-size: .9rem; }
.ds-family-documents__list small { color: var(--muted); }
.ds-family-documents__scope { font-size: .85rem; width: 100%; }
.ds-family-documents__scope summary { cursor: pointer; color: var(--blue); }
.ds-family-documents__scope ul { padding-left: 20px; margin: 8px 0 0; columns: 2 140px; }
.ds-family-document-link { font-size: .88rem; margin: 12px 0; }
.ds-family-editorial { width: 100%; max-width: none; margin: 20px 0; line-height: 1.65; overflow-wrap: anywhere; }
.ds-family-editorial__details { border: 1px solid var(--line); border-radius: 6px; background: white; }
.ds-family-editorial__summary { display: block; padding: 16px 20px; cursor: pointer; list-style: none; }
.ds-family-editorial__summary::-webkit-details-marker { display: none; }
.ds-family-editorial__summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ds-family-editorial__preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; max-height: 4.95em; overflow: hidden; }
.ds-family-editorial__toggle { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--blue); font-weight: 650; font-size: .9rem; }
.ds-family-editorial__toggle::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.ds-family-editorial__less { display: none; }
.ds-family-editorial__details[open] .ds-family-editorial__more { display: none; }
.ds-family-editorial__details[open] .ds-family-editorial__less { display: inline; }
.ds-family-editorial__details[open] .ds-family-editorial__preview { display: none; }
.ds-family-editorial__details[open] .ds-family-editorial__toggle { margin-top: 0; }
.ds-family-editorial__details[open] .ds-family-editorial__toggle::after { content: "−"; }
.ds-family-editorial__content { padding: 0 20px 20px; }
.ds-family-editorial__content > :first-child { margin-top: 0; }
.ds-family-editorial__content > :last-child { margin-bottom: 0; }
.ds-family-editorial + .ds-article-section { margin-top: 24px; }
.ds-family-editorial > :first-child { margin-top: 0; }
.ds-family-editorial > :last-child { margin-bottom: 0; }
.ds-family-editorial h3 { margin-top: 24px; font-size: 1.2rem; }
.ds-article-section { clear: both; margin: 52px 0; min-width: 0; scroll-margin-top: 120px; }
/* WooCommerce lays the product gallery and summary out as a two-column grid.
   Relations are a direct child as well and must span both columns. */
.woocommerce div.product > .ds-article-section { grid-column: 1 / -1; width: 100%; }
.ds-article-section__heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ds-article-section__heading h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; }
.ds-article-section__intro { color: var(--muted); font-size: .93rem; max-width: 860px; }
.ds-article-filters { display: flex; align-items: flex-end; gap: 18px; padding: 20px; background: var(--mist); border-radius: 5px; }
.ds-article-filters { flex-wrap: wrap; }
.ds-feature-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; width: 100%; }
.ds-feature-field { display: grid; gap: 5px; color: var(--navy); font-size: .8rem; font-weight: 600; min-width: 0; }
.ds-feature-field select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); font-size: .88rem; }
.ds-article-filters .ds-feature-field select { min-width: 0; }
.ds-catalog-feature-wrap { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; width: 100%; }
.ds-catalog-feature-wrap[hidden] { display: none !important; }
.ds-feature-note { margin: 0; font-size: .75rem; color: var(--muted); width: 100%; font-weight: 400; }
.ds-catalog-feature-wrap .ds-feature-note { margin-top: 12px; }
.ds-article-filters[hidden], .ds-article-table tr[hidden], .ds-article-more[hidden], .ds-article-empty[hidden], .ds-article-reset[hidden], .ds-article-table-wrap[hidden] { display: none !important; }
.ds-article-filters label { display: grid; gap: 5px; color: var(--navy); font-weight: 600; font-size: .82rem; }
.ds-article-filters label:first-child { flex: 1; }
.ds-article-filters input, .ds-article-filters select { background: white; border: 1px solid var(--line); border-radius: 3px; height: 46px; width: 100%; padding: 8px 12px; color: var(--ink); min-width: 0; font-size: .93rem; }
.ds-article-filters select { min-width: 180px; }
.ds-article-reset { border: 0; background: none; color: var(--blue); cursor: pointer; font-size: .86rem; padding: 10px 0; white-space: nowrap; }
.ds-article-status { font-size: .8rem; color: var(--muted); margin: 12px 0; min-height: 22px; }
.ds-article-table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; }
.ds-article-table th { background: var(--navy); color: white; font-size: .76rem; letter-spacing: .04em; padding: 12px 16px; font-weight: 600; }
.ds-article-table th:first-child { width: 100px; }
.ds-article-table th:nth-child(3) { width: 215px; }
.ds-article-table th:last-child { width: 155px; }
.ds-article-table td { padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ds-article-table tbody tr:nth-child(even) { background: var(--mist); }
.ds-article-name { scroll-margin-top: 180px; }
.ds-article-name:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ds-article-picture img { width: 80px; height: 80px; object-fit: contain; background: white; }
.ds-no-picture { display: flex; align-items: center; justify-content: center; text-align: center; height: 64px; font-size: .65rem; line-height: 1.45; color: var(--muted); background: var(--mist); border-radius: 3px; }
.ds-article-name { font-weight: 700; color: var(--navy); text-decoration: none; font-size: .95rem; line-height: 1.4; display: block; }
.ds-article-name:hover { text-decoration: underline; }
.ds-article-description p { font-size: .85rem; line-height: 1.6; margin: 8px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.ds-article-numbers span { display: block; font-size: .68rem; color: var(--muted); }
.ds-article-numbers strong { display: block; font-size: .79rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; user-select: all; margin-bottom: 8px; }
.ds-article-actions { min-width: 0; }
.ds-article-price { display: block; margin-bottom: 10px; color: var(--navy); font-size: .95rem; font-weight: 780; white-space: nowrap; }
.ds-article-actions .ds-article-detail { display: inline-flex; justify-content: center; width: 100%; padding: 8px 10px; text-decoration: none; font-size: .78rem; font-weight: 650; }
.ds-article-more { margin-top: 22px; }
.ds-family-backlink { padding: 14px 18px; background: var(--mist); border-left: 3px solid var(--blue); font-size: .85rem; line-height: 1.7; }
.ds-catalog-server-pages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.ds-catalog-server-pages a { padding: 7px 14px; border: 1px solid var(--line); }
.ds-catalog-server-pages [aria-current] { background: var(--navy); color: white; }
@media (max-width: 900px) {
  .ds-family-hero__grid { gap: 28px; grid-template-columns: 1.3fr 1fr; }
  .ds-family-hero__image { padding: 16px; }
  .ds-family-hero__image img { height: 210px; }
  .ds-article-table th:nth-child(3) { width: 175px; }
  .ds-article-table th:last-child { width: 135px; }
  .ds-article-table th:first-child { width: 80px; }
  .ds-article-table td { padding: 16px 10px; }
}
@media (max-width: 640px) {
  .ds-family-hero { padding-bottom: 30px; }
  .ds-family-hero__grid { grid-template-columns: 1fr; }
  .ds-family-hero__image img { height: 180px; }
  .ds-family-hero__image { max-width: 100%; }
  .ds-family-nav .container { gap: 0 20px; }
  .ds-family-nav a { padding: 12px 0; font-size: .8rem; }
  .ds-family-nav a:last-child { margin-left: 0; }
  .ds-article-filters { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; }
  .ds-article-section { margin: 34px 0; }
  .ds-article-table thead { display: none; }
  .ds-article-table, .ds-article-table tbody { display: block; width: 100%; }
  .ds-article-table tr { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 10px; padding: 18px 10px; border-bottom: 1px solid var(--line); }
  .ds-article-table td { border: 0; padding: 0; }
  .ds-article-picture { grid-column: 1; grid-row: 1; }
  .ds-article-picture img { width: 48px; height: 48px; }
  .ds-article-description { grid-column: 2; }
  .ds-article-numbers { grid-column: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; }
  .ds-article-numbers strong { margin: 0; }
  .ds-article-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .ds-article-price { margin: 0; }
  .ds-article-actions .ds-article-detail { width: auto; }
  .ds-article-table tr.ds-article-row--no-image { grid-template-columns: minmax(0, 1fr); }
  .ds-article-row--no-image .ds-article-picture { display: none; }
  .ds-article-row--no-image .ds-article-description,
  .ds-article-row--no-image .ds-article-numbers,
  .ds-article-row--no-image .ds-article-actions { grid-column: 1; }
}
/* Shared quantity controls for exact catalog articles, including AJAX results. */
.ds-catalog-cart { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .3rem .5rem; align-items: stretch; margin-top: .65rem; }
.ds-catalog-cart label { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
.ds-catalog-cart input { min-width: 0; width: 100%; padding: .55rem; border: 1px solid #666; border-radius: 3px; background: #fff; color: #222; }
.ds-catalog-cart .button { width: 100%; margin: 0; padding: .6rem .5rem; white-space: normal; font-size: .85rem; line-height: 1.3; }
.ds-cart-result { grid-column: 1 / -1; font-size: .9rem; }
.ds-cart-result:empty { display: none; }
.ds-order-minimum { display: block; margin: .35rem 0; font-size: .8rem; line-height: 1.45; color: #515151; overflow-wrap: anywhere; }
.ds-catalog-cart .ds-order-minimum { grid-column: 1 / -1; margin: 0; }
.ds-net-price-note, .ds-cart-preorder { display: block; font-size: .8rem; line-height: 1.5; color: #515151; }
.ds-product-availability { font-size: .9rem; line-height: 1.45; margin: .65rem 0 .4rem; white-space: pre-line; }
.ds-product-incoming { font-size: .85rem; line-height: 1.45; margin: .3rem 0 .5rem; }
.ds-product-incoming:empty { margin: 0; }
.ds-product-incoming small { display: block; font-size: .8rem; color: #515151; }
.ds-article-table th:last-child { width: 285px; }
.ds-article-actions .ds-article-price { margin-bottom: .2rem; font-size: 1.1rem; }
@media (min-width: 641px) and (max-width: 900px) {
  .ds-article-table th:last-child { width: 225px; }
}
@media (max-width: 640px) {
  .ds-article-actions { display: block; min-width: 0; }
  .ds-catalog-cart { width: 100%; }
}

/* Compact comparison rows; keep full technical and availability information. */
.ds-article-table-wrap { container: ds-article-list / inline-size; }
.ds-article-purchase { min-width: 0; }
.ds-article-purchase .ds-article-price { white-space: normal; }
.ds-article-purchase .ds-article-price .amount { white-space: nowrap; }
.ds-article-purchase .ds-catalog-cart input { min-height: 42px; padding: .4rem .5rem; }
.ds-article-purchase .ds-catalog-cart .button { min-height: 44px; padding: .45rem .5rem; }
.ds-article-table-wrap .ds-article-table tbody td { padding-block: 12px; }
.ds-article-table-wrap .ds-article-description p { line-height: 1.5; }
@container ds-article-list (min-width: 900px) {
  .ds-article-table-wrap table.ds-article-table thead th:nth-child(3) { width: 132px; }
  .ds-article-table-wrap table.ds-article-table thead th:last-child { width: 370px; }
  .ds-article-purchase { display: grid; grid-template-columns: minmax(0, 1fr) 144px; column-gap: 14px; align-content: start; }
  .ds-article-purchase > :not(.ds-catalog-cart) { grid-column: 1; }
  .ds-article-purchase > .ds-catalog-cart { grid-column: 2; grid-row: 1 / span 5; grid-template-columns: minmax(0, 1fr); align-self: start; margin: 0; gap: 6px; }
  .ds-article-purchase > .ds-catalog-cart input,
  .ds-article-purchase > .ds-catalog-cart .button { grid-column: 1; }
  .ds-article-purchase .ds-product-availability { margin: .4rem 0 .2rem; }
  .ds-article-purchase .ds-product-incoming { margin: .2rem 0 0; }
}
@media (max-width: 640px) {
  .ds-article-table-wrap .ds-article-table tbody td { padding-block: 0; }
}
