/*
 Theme Name:   Blocksy Child
 Theme URI:    https://creativethemes.com/blocksy/
 Description:  Blocksy Child Theme
 Author:       Creative Themes
 Author URI:   https://creativethemes.com
 Template:     blocksy
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  blocksy-child
*/

/* 在这里添加你的自定义样式 */

/* 隐藏模板自动渲染的 docs URL 文本（只在 docs 页面出现） */
.hero-section .entry-header + p,
.hero-section p.entry-meta-link,
.hero-section a[data-type="docs-link"],
.hero-section .npdocs-url {
	display: none !important;
}

/* 覆盖 data-vertical-spacing 的上下内距：上 24px，下 0 */
[data-vertical-spacing*="top"] {
	padding-top: 24px !important;
}
[data-vertical-spacing*="bottom"] {
	padding-bottom: 0 !important;
}

/* 修复：让 NP Docs 使用主题容器宽度（避免全宽覆盖） */
.npdocs-wrap{
	max-width: var(--e-con-container-max-width, var(--e-global-container-max-width, var(--wp--style--global--content-size, 1200px))) !important;
	margin: 24px auto 0 !important;
	width: 100% !important;
	box-sizing: border-box;
}

/* 在小屏保持响应性 */
@media (max-width:1100px){
	.npdocs-wrap{ padding: 0 14px !important; }
}

/* 更具体的覆盖：恢复 Blocksy 在 single-np_doc 页面上的容器约束，避免页眉/内容全宽 */
body.single-np_doc .site-main > article,
body.single-np_doc .content-area,
body.single-np_doc [class*="ct-container"] {
	max-width: var(--e-con-container-max-width, var(--e-global-container-max-width, var(--wp--style--global--content-size, 1200px))) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Docs 页面：把标题的下边距与 data-vertical-spacing 的上内距设为 0 */
body.single-np_doc :is(.is-layout-flow,.is-layout-constrained) :where(h1,h2,h3,h4,h5,h6),
.npdocs-wrap :is(.is-layout-flow,.is-layout-constrained) :where(h1,h2,h3,h4,h5,h6) {
	margin-block-end: 0 !important;
}

body.single-np_doc [data-vertical-spacing*="top"],
.npdocs-wrap [data-vertical-spacing*="top"] {
	padding-top: 0 !important;
}

/* 若需要仅在 docs 页面生效（可选）：
body.post-type-np_doc [data-vertical-spacing*="top"] { padding-top: 24px !important; }
body.post-type-np_doc [data-vertical-spacing*="bottom"] { padding-bottom: 0 !important; }
*/
