/*
 * UpToDate 表格样式（作用域 .fig-table-uptodate）。
 *
 * 抓取时只保留了 <table> 片段，UpToDate 站点 CSS 未随同抓取，这里按 class 名语义近似还原：
 *   subtitle1*  深色底白字分区行 / 表头
 *   subtitle2*  浅色底粗体列头
 *   subtitle3*  粗体小标题
 *   indent1-3   层级缩进
 *   centered / divider_* / border_*_thick / highlight_*_gray_text / nowrap_whitespace 等
 * 配色是本站定义，不是 UpToDate 官方色。
 */

.fig-table-uptodate table {
  border: 1px solid var(--ft-border);
}

/* 分区行 / 表头 */
.fig-table-uptodate .subtitle1,
.fig-table-uptodate .subtitle1_left,
.fig-table-uptodate .subtitle1_single {
  background: var(--ft-accent);
  color: var(--ft-accent-fg);
  font-weight: 700;
  text-align: center;
}

.fig-table-uptodate .subtitle1_left {
  text-align: left;
}

/* 列头 / 子分区 */
.fig-table-uptodate .subtitle2,
.fig-table-uptodate .subtitle2_left,
.fig-table-uptodate .subtitle2_single {
  background: var(--ft-accent-soft);
  color: var(--ft-accent-soft-fg);
  font-weight: 700;
  text-align: center;
}

.fig-table-uptodate .subtitle2_left {
  text-align: left;
}

.fig-table-uptodate .subtitle2_left_white {
  background: var(--ft-bg);
  color: var(--ft-heading);
  font-weight: 700;
  text-align: left;
}

/* 小标题 */
.fig-table-uptodate .subtitle3,
.fig-table-uptodate .subtitle3_left,
.fig-table-uptodate .subtitle3_left_align {
  background: var(--ft-stripe);
  color: var(--ft-heading);
  font-weight: 700;
}

.fig-table-uptodate .subtitle3 {
  text-align: center;
}

.fig-table-uptodate .heading {
  font-weight: 700;
}

/* 对齐与缩进 */
.fig-table-uptodate .centered {
  text-align: center;
}

.fig-table-uptodate td.indent1 { padding-left: calc(12px + 1.4em); }
.fig-table-uptodate td.indent2 { padding-left: calc(12px + 2.6em); }
.fig-table-uptodate td.indent3 { padding-left: calc(12px + 3.8em); }

.fig-table-uptodate p.indent1,
.fig-table-uptodate li.indent1 { padding-left: 1.4em; }
.fig-table-uptodate p.indent2,
.fig-table-uptodate li.indent2 { padding-left: 2.6em; }
.fig-table-uptodate p.indent3,
.fig-table-uptodate li.indent3 { padding-left: 3.8em; }

/* 分隔线 / 粗边 */
.fig-table-uptodate .divider_bottom { border-bottom: 2px solid var(--ft-border-strong); }
.fig-table-uptodate .divider_top { border-top: 2px solid var(--ft-border-strong); }
.fig-table-uptodate .border_right_thick { border-right: 2px solid var(--ft-border-strong); }
.fig-table-uptodate .border_bottom_thick { border-bottom: 2px solid var(--ft-border-strong); }
.fig-table-uptodate .border_bottom_white { border-bottom-color: var(--ft-bg); }

/* 灰底高亮 */
.fig-table-uptodate .highlight_lght_gray_text {
  background: var(--ft-muted-bg);
  color: var(--ft-text);
}

.fig-table-uptodate .highlight_gray_text {
  background: var(--ft-muted-bg-strong);
  color: var(--ft-text);
}

.fig-table-uptodate .primarybox_left {
  border: 2px solid var(--ft-accent);
}

.fig-table-uptodate .nowrap_whitespace {
  white-space: nowrap;
}

/* 符号 */
.fig-table-uptodate .large_checkmark {
  font-size: 1.3em;
  font-weight: 700;
  color: #1f7a3d;
}

.fig-table-uptodate .arrow {
  font-weight: 700;
}

/* 段落间距 */
.fig-table-uptodate .extra_spacing_top { margin-top: 8px; }
.fig-table-uptodate .extra_spacing { margin: 6px 0; }

/* 列表 */
.fig-table-uptodate ul.sublist1,
.fig-table-uptodate ul.sublist1_start,
.fig-table-uptodate ul.sublist_other { list-style: disc; }
.fig-table-uptodate ul.sublist2,
.fig-table-uptodate ul.sublist2_start { list-style: circle; }
.fig-table-uptodate ol.numbers_to_nine,
.fig-table-uptodate ol.numbers_no_heading,
.fig-table-uptodate ol.decimal_heading { list-style: decimal; }
.fig-table-uptodate .none { list-style: none; padding-left: 0; }
