/* ==========================================================================
   Giganeed Datasheet Library — Practical Engineering Index
   Follows the site-wide Giganeed identity (split diagonal hero + metre-tick
   scale, flat hairline layout, Signal Orange #f83800, Warm Shell #f3f2ee,
   Graphite #1b1c1a, Plus Jakarta Sans headings + Inter UI).
   ========================================================================== */

.ds {
  --ink: #1e1e1c;
  --obsidian: #171715;
  --graphite: #1b1c1a;
  --dim: #5a5954;
  --muted: #7a7972;
  --line: #d8d7d0;
  --line-soft: #e6e5de;
  --sheet: #f3f2ee;
  --sheet-warm: #faf9f6;
  --orange: #f83800;
  --orange-deep: #c42c00;
  --head: "Plus Jakarta Sans", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "Inter", Arial, sans-serif;
  --ds-mast: 76px;
  color: var(--ink);
  font-family: var(--body);
  background: #fff;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds [hidden] { display: none !important; }
.ds .wrap { width: min(100% - clamp(40px, 9vw, 160px), 1500px); margin-inline: auto; }
.ds :focus-visible { outline: 3px solid #884022; outline-offset: 2px; }

/* ==========================================================================
   1. Split Diagonal Hero + Metre-Tick Scale (matches /about/ & /solutions/)
   ========================================================================== */
.ds .ds-head {
  position: relative;
  isolation: isolate;
  background: var(--sheet);
  color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.ds .ds-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  height: 14px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 50px) left bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #c8c7bf 0 1px, transparent 1px 10px) left bottom / 100% 7px no-repeat;
}
.ds .ds-head-inner {
  min-height: clamp(220px, 18.5vw, 286px);
  display: flex;
  align-items: center;
  padding-block: 30px calc(30px + 12px);
}
.ds-head-copy {
  width: 53%;
  position: relative;
  z-index: 2;
}
.ds-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 13px/1.4 var(--body);
  letter-spacing: 0;
  color: var(--ink);
}
.ds-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
  flex: none;
}
.ds .ds-head h1 {
  color: var(--ink);
  font: 700 clamp(36px, 4.6vw, 66px)/1.05 var(--head);
  letter-spacing: -.035em;
  margin: 12px 0;
}
.ds .ds-intro {
  margin: 0;
  font-size: clamp(15px, 1.13vw, 18px);
  line-height: 1.5;
  max-width: 48ch;
  color: var(--dim);
}
.ds-head-facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font: 500 13px/1.4 var(--body);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  max-width: 54ch;
}
.ds-head-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ds-head-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.ds-head-facts strong {
  font-weight: 700;
  color: var(--ink);
}
.ds-head-cover {
  position: absolute;
  inset: 0 0 0 55%;
  z-index: 0;
  overflow: hidden;
  background: var(--obsidian);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.ds-head-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 52%;
  display: block;
}

/* ==========================================================================
   2. Sticky Practical Utility Bar
   ========================================================================== */
.ds-bar {
  position: sticky;
  top: var(--ds-mast, 76px);
  z-index: 25;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.ds-bar-inner {
  padding-block: 14px 12px;
  display: grid;
  gap: 10px;
}
.ds-bar-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.ds-search {
  position: relative;
  display: flex;
  align-items: center;
}
.ds-search-ico {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.ds-search input {
  width: 100%;
  height: 44px;
  padding: 0 72px 0 40px;
  border: 1px solid #c8c7bf;
  border-radius: 4px;
  background: var(--sheet-warm);
  color: var(--ink);
  font: 500 14.5px/1.2 var(--body);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ds-search input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.ds-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(248, 56, 0, .14);
}
.ds-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.ds-search-clear {
  position: absolute;
  right: 8px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--dim);
  font: 600 12px/1 var(--body);
  cursor: pointer;
}
.ds-search-clear:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.ds-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-jump-menu {
  position: relative;
}
.ds-jump-btn {
  list-style: none;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #c8c7bf;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 600 13.5px/1 var(--body);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 185px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.ds-jump-btn::-webkit-details-marker { display: none; }
.ds-jump-btn svg {
  color: var(--dim);
  flex: none;
  transition: transform .16s ease;
}
.ds-jump-menu[open] .ds-jump-btn {
  border-color: var(--ink);
  background: var(--sheet-warm);
}
.ds-jump-menu[open] .ds-jump-btn svg {
  transform: rotate(180deg);
}
.ds-jump-btn:hover,
.ds-ctrl-btn:hover {
  border-color: var(--ink);
}
.ds-jump-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: min(340px, calc(100vw - 40px));
  max-height: min(68vh, 460px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  padding: 10px 0;
}
.ds-jump-group + .ds-jump-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.ds-jump-group-title {
  margin: 0;
  padding: 4px 14px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 11.5px/1.2 var(--body);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--dim);
}
.ds-jump-group-title em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ds-jump-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ds-jump-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  color: var(--ink);
  text-decoration: none;
  font: 500 13.5px/1.3 var(--body);
  transition: background-color .12s ease, color .12s ease;
}
.ds-jump-group a:hover {
  background: var(--sheet);
  color: var(--orange-deep);
}
.ds-jump-group a em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ds-ctrl-btn {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #c8c7bf;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 600 13px/1 var(--body);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ds-ctrl-btn[aria-pressed="true"] {
  background: var(--sheet);
  border-color: var(--ink);
}

.ds-bar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
}
.ds-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 600 13px/1 var(--body);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ds-tab:hover {
  border-color: var(--ink);
}
.ds-tab.is-active {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
}
.ds-tab.is-empty {
  opacity: .45;
}
.ds-fam-dot {
  width: 12px;
  height: 4px;
  background: var(--tab, var(--muted));
  flex: none;
}
.ds-fam-dot--fiber {
  background: linear-gradient(90deg, #F2C200 0 50%, #00A3AD 50% 100%);
}
.ds-tab-count {
  font-style: normal;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ds-tab.is-active .ds-tab-count {
  color: #cfcdc5;
}

.ds-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 12.5px/1.3 var(--body);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.ds-reset-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--orange-deep);
  font: 600 12.5px/1.3 var(--body);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ds-reset-link:hover {
  color: var(--orange);
}

/* ==========================================================================
   3. Library Body — Preserved Clean Family & Category Tables
   ========================================================================== */
.ds .ds-library {
  padding-block: 36px 96px;
}
.ds-family {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--ds-mast, 76px) + 126px);
}
.ds-family-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.ds-family-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ds-fam-bar {
  width: 6px;
  height: 28px;
  background: var(--tab, var(--orange));
  flex: none;
}
.ds-fam-bar--fiber {
  background: linear-gradient(180deg, #F2C200 0 50%, #00A3AD 50% 100%);
}
.ds-family-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.ds-family-head h2 a {
  color: var(--ink);
  text-decoration: none;
}
.ds-family-head h2 a:hover {
  color: var(--orange-deep);
}
.ds-family-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--sheet-warm);
  font: 600 12.5px/1 var(--body);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.ds-family-link {
  font: 600 13.5px/1.3 var(--body);
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
}
.ds-family-link:hover {
  color: var(--orange-deep);
}

/* Category heading row */
.ds-cat {
  margin-top: 28px;
  scroll-margin-top: calc(var(--ds-mast, 76px) + 126px);
}
.ds-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
}
.ds-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ds-cat-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--dim);
  cursor: pointer;
  flex: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ds-cat-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.ds-cat-toggle svg {
  transition: transform .18s ease;
}
.ds-cat.is-collapsed .ds-cat-toggle svg {
  transform: rotate(-90deg);
}
.ds-cat.is-collapsed .ds-cat-body {
  display: none;
}
.ds-cat-head .gn-library-cat {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.ds-cat-select {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--dim);
  font: 600 12px/1 var(--body);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ds-cat-select:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.ds-cat-select.is-all {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
}

/* Table structure */
.ds-table {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ds-table thead th {
  padding: 9px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font: 600 11.5px/1.2 var(--body);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  width: auto;
  min-width: 0;
}
.ds-table thead th.ds-col-pdf {
  text-align: right;
}
.ds-table tbody tr {
  border-top: 1px solid var(--line-soft);
  transition: background-color .12s ease;
}
.ds-table tbody tr:first-child {
  border-top: 0;
}
.ds-table tbody tr:nth-child(odd) {
  background: var(--sheet-warm);
}
.ds-table tbody tr:nth-child(even) {
  background: #fff;
}
.ds-table tbody tr:hover {
  background: #f1efe9;
}
.ds-table tbody tr.is-selected {
  background: #fff4ef;
  box-shadow: inset 3px 0 0 var(--orange);
}
.ds-table th,
.ds-table td {
  padding: 11px 12px;
  vertical-align: middle;
}

/* Checkbox column */
.ds-col-check {
  width: 44px;
  min-width: 44px;
  padding-right: 4px !important;
}
.ds-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.ds-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ds-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #b4b2a9;
  border-radius: 3px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .12s ease, border-color .12s ease;
}
.ds-check:hover .ds-check-box {
  border-color: var(--ink);
}
.ds-check input:checked + .ds-check-box {
  background: var(--orange);
  border-color: var(--orange);
}
.ds-check input:checked + .ds-check-box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.ds-check input:focus-visible + .ds-check-box {
  outline: 3px solid #884022;
  outline-offset: 2px;
}

/* Part number + copy button */
.ds-table .ds-col-ref {
  width: 230px;
  min-width: 205px;
}
.ds-ref-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.ds-table .gn-ref {
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.ds-copy-sku {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  opacity: .55;
  transition: opacity .15s ease, border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ds-table tbody tr:hover .ds-copy-sku,
.ds-copy-sku:focus-visible,
.ds-copy-sku.is-copied {
  opacity: 1;
}
.ds-copy-sku:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.ds-copy-sku .ds-ico-ok { display: none; }
.ds-copy-sku.is-copied {
  border-color: var(--orange);
  background: #fff;
  color: var(--orange-deep);
}
.ds-copy-sku.is-copied .ds-ico-copy { display: none; }
.ds-copy-sku.is-copied .ds-ico-ok { display: block; }

/* Product title + key spec chips */
.ds-col-name {
  min-width: 240px;
}
.ds-prod-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.ds-prod-title a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #c8c7bf;
  text-underline-offset: 3px;
}
.ds-prod-title a:hover {
  color: var(--orange-deep);
  text-decoration-color: var(--orange-deep);
}
.ds-elite-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--graphite);
  color: #fff;
  font: 600 10.5px/1.3 var(--body);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ds-elite-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.ds-chips {
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.ds-chips li {
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(255, 255, 255, .85);
  font: 500 11.5px/1.35 var(--body);
  color: var(--dim);
}

/* PDF open + direct download actions */
.ds-table .ds-col-pdf {
  width: 215px;
  min-width: 196px;
  text-align: right;
  white-space: nowrap;
}
.ds-pdf-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.ds-table .gn-pdf {
  min-height: 38px;
  padding: 4px 11px 4px 8px;
  border-radius: 4px;
  font-size: 13.5px;
}
.ds-table .gn-pdf .gn-icon {
  width: 22px;
  height: 22px;
}
.ds-dl-one {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ds-dl-one:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff !important;
}

/* Empty search state */
.ds-empty {
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 4px;
  background: var(--sheet-warm);
  text-align: left;
  margin-bottom: 32px;
}
.ds-empty h3 {
  margin: 0 0 8px;
  font: 700 24px/1.15 var(--head);
  letter-spacing: -.02em;
}
.ds-empty p {
  margin: 0 0 20px;
  color: var(--dim);
  font-size: 15px;
}
.ds-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   4. Sticky Bottom "Datasheet Pack" Tray
   ========================================================================== */
.ds-pack {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--graphite);
  color: #f3f2ee;
  border-top: 3px solid var(--orange);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .18);
}
.ds-pack-bar {
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.ds-pack-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ds-pack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.ds-pack-summary strong {
  color: #fff;
  font-weight: 600;
}
.ds-pack-size {
  color: #b8b6ad;
  font-size: 13px;
}
.ds-pack-textbtn {
  border: 0;
  padding: 2px 0;
  background: none;
  color: #cfcdc5;
  font: 500 13px/1.2 var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ds-pack-textbtn:hover {
  color: #fff;
}
.ds-pack-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ds-zip-form {
  display: inline-flex;
  margin: 0;
}
.ds-pack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font: 600 13.5px/1 var(--body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ds-pack-btn--primary {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: #fff;
}
.ds-pack-btn--primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}
.ds-pack-btn--ghost {
  background: transparent;
  border: 1px solid #55564f;
  color: #f3f2ee;
}
.ds-pack-btn--ghost:hover {
  background: #2c2d29;
  border-color: #fff;
  color: #fff;
}

/* Expandable selected SKU list */
.ds-pack-drawer {
  background: #141513;
  border-bottom: 1px solid #2e2f2b;
  max-height: 200px;
  overflow-y: auto;
}
.ds-pack-drawer-inner {
  padding-block: 12px 14px;
}
.ds-pack-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font: 600 12px/1 var(--body);
  color: #a9a79e;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ds-pack-close-drawer {
  border: 0;
  background: none;
  color: #cfcdc5;
  font: 500 12px/1 var(--body);
  text-decoration: underline;
  cursor: pointer;
}
.ds-pack-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ds-pack-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border: 1px solid #3c3d38;
  border-radius: 3px;
  background: #22231f;
  font: 500 12px/1.2 var(--body);
  color: #f3f2ee;
}
.ds-pack-pills button {
  border: 0;
  padding: 0 2px;
  background: none;
  color: #b8b6ad;
  font: 700 14px/1 var(--body);
  cursor: pointer;
}
.ds-pack-pills button:hover {
  color: var(--orange);
}

/* ==========================================================================
   5. Floating Back-to-Top & Toast Feedback
   ========================================================================== */
.ds-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: 24px;
  z-index: 35;
  height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 600 12.5px/1 var(--body);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transition: transform .15s ease, border-color .15s ease, bottom .18s ease;
}
.ds-top:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.ds.has-pack .ds-top {
  bottom: 84px;
}
.ds.has-pack .ds-library {
  padding-bottom: 132px;
}

.ds-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--graphite);
  color: #fff;
  border-left: 3px solid var(--orange);
  font: 500 13.5px/1.3 var(--body);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.ds.has-pack .ds-toast {
  bottom: 86px;
}

/* ==========================================================================
   6. Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .ds-bar-top {
    grid-template-columns: 1fr;
  }
  .ds-bar-controls {
    justify-content: space-between;
  }
  .ds-jump-menu {
    flex: 1 1 auto;
  }
  .ds-jump-btn {
    width: 100%;
    min-width: 0;
  }
  .ds-jump-panel {
    left: 0;
    right: auto;
  }
  .ds-table .ds-col-ref {
    width: auto;
    min-width: 170px;
  }
  .ds-table .ds-col-pdf {
    width: auto;
    min-width: 168px;
  }
}

@media (max-width: 720px) {
  .ds .ds-head-inner {
    min-height: 185px;
    padding-block: 24px calc(24px + 12px);
  }
  .ds-head-copy {
    width: 67%;
  }
  .ds .ds-head h1 {
    font-size: clamp(30px, 6.8vw, 42px);
  }
  .ds .ds-intro {
    font-size: 14px;
    line-height: 1.45;
  }
  .ds-head-facts {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 12px;
    gap: 4px 14px;
  }
  .ds-head-cover {
    left: 68%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  }

  /* Keep toolbar uncluttered on mobile */
  .ds-bar {
    position: static;
  }

  /* Stack each row cleanly without horizontal scrolling */
  .ds-table thead {
    display: none;
  }
  .ds-table,
  .ds-table tbody {
    display: block;
    width: 100%;
  }
  .ds-table tbody tr {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 8px;
    padding: 12px 10px;
  }
  .ds-table th,
  .ds-table td {
    display: block;
    padding: 0;
    min-width: 0 !important;
    width: auto !important;
  }
  .ds-col-check {
    grid-column: 1;
    grid-row: 1 / span 3;
    padding-right: 0 !important;
  }
  .ds-col-ref {
    grid-column: 2;
  }
  .ds-col-name {
    grid-column: 2;
  }
  .ds-col-pdf {
    grid-column: 2;
    text-align: left !important;
    padding-top: 4px !important;
  }
  .ds-pdf-actions {
    justify-content: flex-start;
  }
  .ds-copy-sku {
    opacity: .9;
  }

  .ds-pack-bar {
    gap: 10px;
  }
  .ds-pack-actions {
    width: 100%;
  }
  .ds-pack-actions .ds-zip-form,
  .ds-pack-actions .ds-pack-btn--primary {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds *, .ds *::before, .ds *::after {
    transition: none !important;
  }
}
