/* 倪柝声文集阅读器 —— 复用 reader.css 的四主题变量 + 外壳(bk-bar/bk-chead/bk-pager/sheet/outline)。
   本文件只负责：①隐藏倪旧版 chrome ②倪正文(.about / p.AA / h4)排版 ③字号/行距作用到 .about。
   作用域 html.bk-nee（与书报合辑的 bk-ready 通用外壳并存，互不干扰）。 */

/* ① 隐藏旧 chrome（导航条/旧标题/面包屑/页脚/手机眉栏） */
html.bk-nee.bk-ready #bk-root .navbar,
html.bk-nee.bk-ready #bk-root .navbar-fixed-top,
html.bk-nee.bk-ready #bk-root header.title,
html.bk-nee.bk-ready #bk-root .bread,
html.bk-nee.bk-ready #bk-root footer.footer,
html.bk-nee.bk-ready #nee-eyebrow{ display:none !important; }

/* ② 阅读栏：收窄居中 */
html.bk-nee.bk-ready #bk-root .about{ max-width:720px; margin:0 auto; padding:6px 24px 8px; box-sizing:border-box;
  color:var(--bk-fg) !important; background:none !important;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
/* 中和 Bootstrap 的 .container 固定宽度(否则撑破阅读栏、正文右侧被裁) */
html.bk-nee.bk-ready #bk-root .about .container,
html.bk-nee.bk-ready #bk-root .about ul.container{ width:auto !important; max-width:100% !important; }
html.bk-nee.bk-ready #bk-root .about ul.container,
html.bk-nee.bk-ready #bk-root .about > ul,
html.bk-nee.bk-ready #bk-root .about li{ list-style:none !important; margin:0 !important; padding:0 !important; }
/* 去掉旧的交替色块/边框，改平铺；字号继承 .about(否则 .b/.c 各自不同字号，段落忽大忽小) */
html.bk-nee.bk-ready #bk-root blockquote.b,
html.bk-nee.bk-ready #bk-root blockquote.c,
html.bk-nee.bk-ready #bk-root .about blockquote{ background:none !important; border:none !important;
  margin:0 !important; padding:0 !important; box-shadow:none !important; font-size:inherit !important; }

/* 正文段：统一字号(=.about 缩放后的基准)，消除旧版 .b/.c 大小不一 */
html.bk-nee.bk-ready #bk-root .about p.AA,
html.bk-nee.bk-ready #bk-root .about p{ color:var(--bk-fg) !important; margin:.32em 0 !important; font-size:1em !important;
  text-indent:2em; text-align:left; -webkit-font-smoothing:auto !important; -moz-osx-font-smoothing:auto !important; }
/* 小标题 h4（金色左边框，照书报合辑 .cn1） */
html.bk-nee.bk-ready #bk-root .about h4{ color:var(--bk-fg) !important; margin:1.7em 0 .6em !important; padding-left:13px;
  font-size:1.11em; font-weight:700; line-height:1.5; border-left:3px solid var(--bk-gold); text-indent:0;
  -webkit-font-smoothing:auto !important; }
.about h4{ font-size:1.11em; font-weight:700; }
html.bk-nee.bk-ready #bk-root .about a{ color:var(--bk-link) !important; }

/* ③ 字号 6 档（缩放 .about）+ 行距 3 档 —— 与书报合辑数值一致 */
/* ⭐字号统一到手机舒适尺寸(默认fs=3=18.5px，原1.3em×19.6=25.5px过大)，与书报合辑一致 */
html.bk-nee[data-bk-fs="1"] #bk-root .about{ font-size:15.5px !important; }
html.bk-nee[data-bk-fs="2"] #bk-root .about{ font-size:17px !important; }
html.bk-nee[data-bk-fs="3"] #bk-root .about{ font-size:18.5px !important; }
html.bk-nee[data-bk-fs="4"] #bk-root .about{ font-size:20.5px !important; }
html.bk-nee[data-bk-fs="5"] #bk-root .about{ font-size:22.5px !important; }
html.bk-nee[data-bk-fs="6"] #bk-root .about{ font-size:25px !important; }
/* 行距作用到段落本身(倪旧 CSS 给 p 设了绝对 line-height，只设 .about 无效，要覆盖到 p) */
html.bk-nee[data-bk-ls="1"] #bk-root .about, html.bk-nee[data-bk-ls="1"] #bk-root .about p, html.bk-nee[data-bk-ls="1"] #bk-root .about p.AA{ line-height:1.66 !important; }
html.bk-nee[data-bk-ls="2"] #bk-root .about, html.bk-nee[data-bk-ls="2"] #bk-root .about p, html.bk-nee[data-bk-ls="2"] #bk-root .about p.AA{ line-height:1.94 !important; }
html.bk-nee[data-bk-ls="3"] #bk-root .about, html.bk-nee[data-bk-ls="3"] #bk-root .about p, html.bk-nee[data-bk-ls="3"] #bk-root .about p.AA{ line-height:2.3  !important; }

/* 单篇基准字号对齐书报合辑章节页 */
html.bk-nee.bk-ready #bk-root{ font-size:19.6px; }

/* 篇章导航与其他书报阅读器保持同一无框形态 */
.bk-pager{ display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--bk-line); padding:14px 24px 20px; }
.bk-pager button{ display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:8px 2px;
  border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--bk-fg);
  font-size:14px; font-weight:500; line-height:1; font-family:inherit; }
.bk-pager button svg{ width:17px; height:17px; color:var(--bk-gold); }

/* 窄屏动作区保持完整可操作；固定页眉由 reader.css 统一提供 */
.bk-bar-acts{ flex:1 1 auto; min-width:0; overflow-x:auto; overscroll-behavior-inline:contain; }
.bk-bar-acts .bk-bb{ flex:0 0 auto; }
.bk-bb.bk-back{ flex:0 0 44px; width:44px; min-height:44px; }
@media(max-width:360px){
  .bk-bar-acts .bk-bb.bk-lb{ flex:1 0 32px; width:32px; min-width:32px; height:54px; min-height:44px; padding:0; }
}
