/*
 * WordPress 适配层：本文件只放 WordPress 特有样式（admin-bar、核心惯例类、老式输出），
 * 设计样式一律在 main.css——客户项目换风格不需要碰这里。
 */

/* 登录态的管理条是 fixed 定位，sticky 头部要让位：桌面 32px，≤782px 46px（WP 官方断点） */
body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {

	body.admin-bar .site-header {
		top: 46px;
	}
}

/* 锚点兜底：sticky 头会盖住页内跳转的目标，给正文里带 id 的元素预留头部高度 */
.entry-content [id] {
	scroll-margin-top: calc(var(--header-height) + 24px);
}

/* WP 核心惯例类占位：素站暂无视觉差异，先按惯例声明，客户项目有需求时在此加样式 */
.sticky {
	/* 置顶文章 */
}

.bypostauthor {
	/* 评论作者 */
}

/* 老编辑器题注短代码的输出结构（.wp-caption 由 WP 生成，属 WP 特有输出） */
.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	margin-top: var(--space-2);
	font-size: 0.875rem;
	color: var(--color-text-muted);
	text-align: center;
}
