/* NS-css/ns-indexed-poem-unify.css
   原文逐字表格统一样式：
   横書/縦書的字块、角标、正文位置保持一致。
*/

#compareSection .poem {
  display: flex;
  justify-content: center;
}

#compareSection .indexed-poem-table {
  border-collapse: separate;
  border-spacing: 10px 8px;
  margin-left: auto !important;
  margin-right: auto !important;
}

#compareSection .indexed-poem-table .line-no {
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 58px !important;
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

#compareSection .indexed-poem-table .char-cell {
  position: relative !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-align: center !important;
  vertical-align: middle !important;
}

#compareSection .indexed-poem-table .char-body {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
  line-height: 1 !important;
  font-size: var(--compare-poem-size, 20px) !important;
}

/* 普通角标 + 第一行/第一列角标全部统一覆盖 */
#compareSection .indexed-poem-table .char-col,
#compareSection .indexed-poem-table tr:first-child .char-col,
#compareSection .indexed-poem-table .char-cell[data-line="1"] .char-col,
#compareSection .indexed-poem-table .char-cell:first-child .char-col {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  display: block !important;
  width: auto !important;
  min-width: 1em !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  z-index: 2 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  text-align: right !important;
  color: #64748b !important;
  opacity: .45 !important;

  background: transparent !important;
  border: none !important;

  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  pointer-events: none !important;
}
