/* Shared dark specification chapter for independent product detail pages. */
body.product-detail-page {
  --product-spec-bg: #2d2d2d;
  --product-spec-ink: #fff;
  --product-spec-muted: #e1e1e1;
  --product-spec-label: #cfcfcf;
  --product-spec-rule: rgba(255, 255, 255, .24);
  --product-spec-link: #8fc8ff;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) {
  color-scheme: dark;
  position: relative;
  color: var(--product-spec-ink);
  background: var(--product-spec-bg);
}

/* Some legacy chapters are constrained containers. Extend only their colour field. */
body.product-detail-page #main :is(
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section.container,
  #configuration.section.container,
  #specs
) {
  box-shadow: 0 0 0 100vmax var(--product-spec-bg);
  clip-path: inset(0 -100vmax);
}

body.product-detail-page #main .product-specification-chapter {
  padding-block: 60px;
  scroll-margin-top: 118px;
}

body.product-detail-page #main .dr-section.product-specification-chapter {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  box-shadow: 0 0 0 100vmax var(--product-spec-bg);
  clip-path: inset(0 -100vmax);
}

body.product-detail-page #main .product-specification-anchor {
  position: absolute;
  inset-block-start: 0;
  width: 1px;
  height: 1px;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) :is(h2, h3, h4, strong, dt, dd, li) {
  color: inherit;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) h2 {
  margin-block-start: 0;
  color: var(--product-spec-ink);
  font-size: clamp(27px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.25;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) h3 {
  color: var(--product-spec-ink);
  font-size: clamp(20px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1.35;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) :is(p, figcaption, .technical-note, .encoder-control-note, .reading-distinction) {
  color: var(--product-spec-muted);
}

/* Legacy product templates often set list copy to the global muted grey.
   Keep every specification chapter readable without changing copy outside it. */
body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) :is(p, li) {
  color: var(--product-spec-muted);
  font-size: 16px;
  line-height: 1.65;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) a:not(.button) {
  color: var(--product-spec-link);
  text-decoration-color: currentColor;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) a:focus-visible {
  outline: 2px solid var(--product-spec-link);
  outline-offset: 4px;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) :is(.line-scale-v2-section-head, .dot-section-head, .hex-section-head, .bonded-section-heading, .star-section-intro) {
  margin-bottom: 32px;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) :is(.spec-scroll, .material-v2-spec-scroll, .dot-technical-table, .comparison-scroll, .reading-selection-scroll, .custom-pattern-table-scroll, .application-feedback-table-wrap, .bonded-table-wrap) {
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
  scrollbar-color: rgba(255,255,255,.45) transparent;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table {
  width: 100%;
  min-width: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
  color: var(--product-spec-ink);
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table caption {
  color: var(--product-spec-muted);
}

body.product-detail-page #main .material-v2-spec-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table :is(thead, tbody, tr, th, td) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table :is(th, td) {
  padding: 17px 18px 17px 0;
  border-bottom: 1px solid var(--product-spec-rule);
  color: var(--product-spec-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table :is(th, td):last-child {
  padding-right: 0;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table thead th {
  padding-top: 0;
  padding-bottom: 13px;
  color: var(--product-spec-muted);
  font-size: 14px;
  font-weight: 500;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table tbody th {
  color: var(--product-spec-muted);
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table:not(:has(tr > :nth-child(3))) :is(th:first-child, td:first-child) {
  width: 34%;
  padding-right: 32px;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) table:has(tr > :nth-child(3)) {
  min-width: 720px;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) details {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--product-spec-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) details:last-child {
  border-bottom: 1px solid var(--product-spec-rule);
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) details summary {
  padding: 18px 0;
  color: var(--product-spec-ink);
  background: transparent;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) :is(.dot-technical-body, .substrate-benefits-panel, .blank-spec-content, .star-calculation > div) {
  padding-inline: 0;
  background: transparent;
  color: var(--product-spec-ink);
}

body.product-detail-page #main .product-specification-chapter .choice-specification-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
}

body.product-detail-page #main .product-specification-chapter .choice-specification-details > section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid article {
  min-width: 0;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-left: 1px solid var(--product-spec-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid article:last-child {
  padding-right: 0;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid h3 {
  margin: 0 0 20px;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid dl {
  margin: 0;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid dl > div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--product-spec-rule);
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid :is(dt, dd) {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid dt {
  color: var(--product-spec-muted);
}

body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid dd {
  color: var(--product-spec-ink);
}

body.product-detail-page #main :is(#reticle-specification, #configuration.section) .category-detail {
  align-items: start;
  gap: 48px 72px;
}

body.product-detail-page #main :is(#reticle-specification, #configuration.section) .category-detail > :is(div, aside) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.product-detail-page #main :is(
  .product-specification-chapter,
  .line-scale-v2-specs#technical-specifications,
  .dot-technical#technical-specifications,
  .dm-section#technical-specifications,
  .encoder-specifications#specifications,
  .bonded-specifications#specifications,
  .application-story-support#specifications,
  .published-specifications,
  #reticle-specification,
  #specification.section,
  #configuration.section,
  #specs
) :is(figure, img) {
  border-radius: 8px;
}

@media (max-width: 800px) {
  body.line-scale-product #main > .page-heading h1 {
    font-size: clamp(22px, 6.1vw, 24px);
    line-height: 1.16;
    text-wrap: balance;
  }

  body.product-detail-page #main .product-specification-chapter {
    padding-block: 42px;
  }

  body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid {
    grid-template-columns: 1fr;
  }

  body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid article,
  body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid article:first-child,
  body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid article:last-child {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--product-spec-rule);
  }

  body.product-detail-page #main .encoder-specifications.product-specification-chapter .encoder-standard-grid article:first-child {
    padding-top: 0;
    border-top: 0;
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) :is(.line-scale-v2-section-head, .dot-section-head, .hex-section-head, .bonded-section-heading, .star-section-intro) {
    margin-bottom: 24px;
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:not(:has(tr > :nth-child(3))) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:not(:has(tr > :nth-child(3))) :is(tbody, tr, th, td) {
    display: block;
    width: 100%;
  }

  body.product-detail-page #main .blank-product-core-specifications table:not(:has(tr > :nth-child(3))) {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:not(:has(tr > :nth-child(3))) tbody tr {
    padding-block: 15px;
    border-bottom: 1px solid var(--product-spec-rule);
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:not(:has(tr > :nth-child(3))) tbody tr:last-child {
    border-bottom: 0;
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:not(:has(tr > :nth-child(3))) :is(th, td) {
    padding: 0;
    border: 0;
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:not(:has(tr > :nth-child(3))) tbody th:first-child {
    width: 100%;
    padding-right: 0;
    color: var(--product-spec-label);
    font-size: 14px;
  }

  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:not(:has(tr > :nth-child(3))) tbody td {
    padding-top: 4px;
    color: var(--product-spec-ink);
    font-size: 16px;
  }

  body.product-detail-page #main :is(#reticle-specification, #configuration.section) .category-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  body.product-detail-page #main :is(
    .product-specification-chapter,
    .line-scale-v2-specs#technical-specifications,
    .dot-technical#technical-specifications,
    .dm-section#technical-specifications,
    .encoder-specifications#specifications,
    .bonded-specifications#specifications,
    .application-story-support#specifications,
    .published-specifications,
    #reticle-specification,
    #specification.section,
    #configuration.section,
    #specs
  ) table:has(tr > :nth-child(3)) {
    min-width: 680px;
  }
}
/* The bonded-reticle specification remains a full-width colour field without
   using a decorative shadow as the extension mechanism. */
.bonded-reticle-page #main .bonded-specifications#specifications {
  position:relative;
  z-index:0;
  box-shadow:none !important;
  clip-path:none;
}
.bonded-reticle-page #main .bonded-specifications#specifications::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 auto 0 50%;
  width:100vw;
  transform:translateX(-50%);
  background:var(--product-spec-bg);
}
