/* Local preview: retain row identity while source tables scroll.
   Only visually confirmed selectors from the 2026-10-20 review are scoped. */
html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table tbody tr > td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 2 !important;
  background: #fff !important;
  box-shadow: 2px 0 0 #c4d8e5;
}

html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table tbody tr:nth-child(even) > td:first-child {
  background: #f3f6f8 !important;
}

html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table thead tr > th:first-child,
html:root body.page-soft-magnetic-cores#top#top #configuration .table-scroll thead tr > th:first-child {
  z-index: 4 !important;
}

/* This table uses semantic row-header th cells, rather than td cells. */
html:root body.page-soft-magnetic-cores#top#top #configuration .table-scroll tbody tr > th:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 2 !important;
  background: #084d74 !important;
  color: #fff !important;
  box-shadow: 2px 0 0 #c4d8e5;
}

/* Keep newly added expanded engineering notes at a readable desktop measure.
   Summary controls and their section dividers retain the existing full width. */
html:root body#top#top :is(#assembly-design-options, #rotor-design-options, #application-configurations) .faq-list details > p {
  max-width: 75ch;
}

html:root body#top#top #process-test-plan > div > ul,
html:root body#top#top #sintered-ndfeb-route > ol,
html:root body#top#top #project-review-inputs details > div,
html:root body#top#top #technical-source-documents > p {
  max-width: 75ch;
}

@media (max-width: 600px) {
  html:root body.page-manufacturing#top#top #topic-4 .refine-review-line > .refine-review-step:last-child {
    grid-column: 1 / -1;
  }

  /* Both source-grade tables have seven columns: 140 + (6 x 136) = 956.
     A complete data/PDF column remains revealable beside the grade at 320px. */
  html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table {
    width: 956px !important;
    min-width: 956px !important;
    table-layout: fixed !important;
  }

  html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table :is(th, td) {
    box-sizing: border-box;
    width: 136px !important;
    min-width: 0 !important;
    max-width: 136px !important;
    padding: 12px 10px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table :is(th, td):first-child {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
  }

  html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table tbody tr > td:first-child {
    padding-left: 52px !important;
    padding-right: 6px !important;
  }

  html:root body#top#top:is(.page-alnico, .page-flexible-magnets) #grade-data .source-technical-table td:last-child a {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  /* The core-selection table has three explanatory columns. */
  html:root body.page-soft-magnetic-cores#top#top #configuration .table-scroll table {
    width: 440px !important;
    min-width: 440px !important;
    table-layout: fixed !important;
  }

  html:root body.page-soft-magnetic-cores#top#top #configuration .table-scroll table :is(th, td) {
    box-sizing: border-box;
    width: 170px !important;
    min-width: 0 !important;
    max-width: 170px !important;
    padding: 12px 10px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  html:root body.page-soft-magnetic-cores#top#top #configuration .table-scroll table :is(th, td):first-child {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
  }
}
