/*
Theme Name: Tal
Theme URI: https://example.com
Author: tal
Description: 极简 WordPress 主题，Tailwind 风格，文章列表仅标题与日期。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tal
*/

/* 样式主要由 Tailwind CDN 提供；此处仅保留主题元数据。 */

/* 正文字体 MiSans 由 inc/enqueue.php 引入小米 CDN 样式表。 */

body {
	font-family: MiSans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
}

/* 主导航吸顶：导航在 header 外、.tal-site-shell 内，勿给外壳加 overflow:hidden，否则 sticky 失效 */
/* top: -1px 消除视口顶部的亚像素/发线缝隙 */
.tal-sticky-nav {
	position: sticky;
	top: -1px;
	z-index: 40;
}

/* 主导航：移动端可横滑，隐藏滚动条（Firefox / IE / WebKit） */
.tal-nav-scroll {
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.tal-nav-scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

body.admin-bar .tal-sticky-nav {
	top: 31px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .tal-sticky-nav {
		top: 45px;
	}
}

/*
 * WordPress 在 <img> 上会加 size-full、size-large 等类，表示「附件尺寸」名称，不是布局语义。
 * Tailwind CDN 里的 .size-full 等 utility 与这些类名冲突，会把图片拉成 100% 宽高。
 * 在正文内恢复为按素材比例显示（仍受 entry-content 里 max-w-full 约束）。
 */
.entry-content img.size-thumbnail,
.entry-content img.size-medium,
.entry-content img.size-medium_large,
.entry-content img.size-large,
.entry-content img.size-full {
	width: auto;
	height: auto;
	max-width: 100%;
}

/* 评论嵌套层级：二级及以下缩进显示 */
.comment-list .children {
	margin-top: 0.5rem;
	margin-left: 2.25rem;
	padding-left: 0.75rem;
	border-left: 1px solid #e2e8f0;
}

/* 评论区头像强制圆形（不依赖 get_avatar 输出 class） */
.comment-author img.avatar {
	border-radius: 9999px;
}
