/* mdnice-compatible base geometry; user theme loads after this file. */
#nice { line-height:1.6; text-align:left; overflow-wrap:break-word; -webkit-text-size-adjust:100%; }
#nice[hidden] { display:none; }
#nice p { margin:0; padding:8px 0; line-height:26px; }
#nice h1, #nice h2, #nice h3, #nice h4, #nice h5, #nice h6 { line-height:1.5; font-weight:700; margin:30px 0 15px; padding:0; }
#nice h1 { font-size:24px; } #nice h2 { font-size:22px; } #nice h3 { font-size:20px; }
#nice h4, #nice h6 { font-size:16px; }
#nice .prefix, #nice .suffix { display:none; }
#nice ul, #nice ol { padding-left:25px; margin:8px 0; }
#nice ul { list-style-type:disc; } #nice ul ul { list-style-type:square; } #nice ol { list-style-type:decimal; }
#nice li { margin:0; }
#nice li section { margin:5px 0; line-height:26px; font-weight:500; text-align:left; }
#nice blockquote { margin:20px 0; padding:12px 15px; border:0; overflow:hidden; }
#nice blockquote p:last-child { margin-bottom:0; }
#nice a { text-decoration:none; overflow-wrap:anywhere; }
#nice pre { background:#f5f5f5; padding:12px; white-space:pre-wrap; overflow-wrap:anywhere; border-radius:4px; }
#nice code { font-family:Consolas,Monaco,monospace; font-size:.9em; }
#nice hr { margin:24px 0; }
#nice table { border-collapse:collapse; max-width:100%; font-size:14px; }
#nice th, #nice td { border:1px solid #ddd; padding:6px 8px; }
#nice > :first-child { margin-top:0 !important; }
#nice > :last-child { margin-bottom:0 !important; }

/* Body emphasis: dark sans-serif with a soft pink highlight on each text line. */
#nice strong {
  font-family:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Heiti SC",sans-serif;
  background-image:linear-gradient(transparent 72%,#fbe4e3 0);
}
/* Keep heading emphasis, including red capsule numbers, in the original theme. */
#nice :is(h1,h2,h3,h4,h5,h6) strong { font-family:inherit; background-image:none; }
