/* zh_modern 排版改进覆盖样式 */
/* 只调整布局宽度与字号;表格、代码、插图的配色与样式沿用 unix-book.css 原版 */

/* ---- 整体布局:全宽流式,保留原版左侧绿色条纹 ---- */

table.master {
  width: 100% !important;
}
table.master > tbody > tr > td { width: auto !important; }
table.master > tbody > tr > td:first-child { width: 135px !important; }

table.banner {
  width: 100% !important;
  max-width: 1180px;
  margin: 0 auto;
}
table.banner td { width: auto !important; }

/* ---- 正文区内容表:填满内容列,不再局限于 550/670/815 固定宽 ---- */
table.section-title,
table.inline-columns,
table.figure-command-summary-text,
table.figure-command-summary-heading,
table.figure-table-text,
table.figure-box-heading {
  width: 100% !important;
}

/* ---- 插图与截图:保持原尺寸,超宽时收缩,不溢出 ---- */
img { max-width: 100%; height: auto; }

/* ---- 字号加大 ---- */
p.text,
p.text-hanging-indent-bullet,
p.text-hanging-indent-number {
  font-size: 12.5pt !important;
  line-height: 1.8;
}
p.chapter-title { font-size: 19pt !important; }
p.chapter-number { font-size: 13pt !important; }
td.section-title { font-size: 14.5pt !important; }
p.glossary-text, li.glossary-text { font-size: 12pt !important; line-height: 1.7; }

/* 代码/命令清单与表格保持原版字号,避免与原文对不上 */
/* p.listing 维持 11.5pt,figure 表格文字维持原样 */

/* ---- 侧栏导航稍加大,行距放宽 ---- */
table.master td:first-child p { line-height: 1.6; }

/* ---- 代码:朱红色显眼 ---- */
p.listing, p.hint-listing, p.footnote-listing, p.wian-listing,
p.figure-listing-text, pre, span.bold-mono,
b.cmd {
  color: #E34233;
}

/* 绿底黄字的节标题内不做覆盖,保持原版配色 */
.section-title b.cmd, td.section-title b.cmd { color: inherit; }
