/* ===== Design Tokens ===== */
:root {
	--accent: #1f2937;
	--text-main: #111827;
	--text-muted: #6b7280;
	--border: #e5e7eb;
	--bg-soft: #f9fafb;
	--radius: 12px;
	--font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI";
}

/* ===== Progress ===== */
#reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: #111;
	z-index: 9999;
}

/* ===== Layout ===== */
.article-layout {
	padding-bottom: 100px;
}

.article-container {
	max-width: 1240px;
	margin: auto;
	padding: 0 24px;
}

/* ===== Header ===== */
.article-header {
	padding: 80px 0 60px;
	border-bottom: 1px solid var(--border);
}

.article-breadcrumb {
	font-size: 13px;
	color: var(--text-muted);
}

.article-breadcrumb a {
	color: var(--accent);
	font-weight: 600;
}

.article-title {
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -1.2px;
	margin: 20px 0 30px;
	color: var(--text-main);
}

/* ===== Meta ===== */
.article-meta {
	display: flex;
	align-items: center;
}

.meta-author {
	display: flex;
	gap: 14px;
	align-items: center;
}

.meta-author img {
	border-radius: 50%;
	width: 60px;
}

.meta-author span {
	display: block;
	font-size: 13px;
	color: var(--text-muted);
}

/* ===== Grid ===== */
.article-grid {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr) 320px;
	gap: 48px;
	margin-top: 50px;
}

/* ===== Share ===== */
.article-share {
	position: sticky;
	top: 120px;
}

.article-share a {
	display: block;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--bg-soft);
	text-align: center;
	line-height: 40px;
	font-size: 13px;
	color: var(--text-main);
	font-weight: 600;
}

/* ===== Content ===== */
.article-cover img {
	width: 100%;
	border-radius: var(--radius);
	margin-bottom: 50px;
}

.article-body {
	font-family: Georgia, serif;
	font-size: 1.15rem;
	line-height: 1.85;
	color: #1f2937;
}

.article-body p {
	margin-bottom: 28px;
}

.article-body h2 {
	margin: 60px 0 20px;
	font-weight: 700;
}

/* ===== Footer ===== */
.article-footer {
	margin-top: 60px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.article-footer span {
	font-size: 13px;
	font-weight: 600;
	margin-right: 12px;
}

/* ===== Sidebar ===== */
.article-sidebar {
	position: sticky;
	top: 100px;
}

.sidebar-box {
	margin-bottom: 50px;
}

.sidebar-box h4 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.sidebar-item {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	text-decoration: none;
}

.sidebar-item img {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.sidebar-item h5 {
	font-size: 14px;
	margin: 0;
	color: var(--text-main);
}

.sidebar-item span {
	font-size: 12px;
	color: var(--text-muted);
}

/* ===== Mobile ===== */
@media (max-width: 1024px) {
	.article-grid {
		grid-template-columns: 1fr;
	}

	.article-share {
		display: flex;
		gap: 10px;
		position: static;
	}
}

.article-content,
.article-body,
.pro-reading-area {
	max-width: 100%;
	overflow: hidden;
}

.article-content img,
.article-body img,
.pro-content-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

.article-cover img,
.pro-main-img img {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

.wp-block-image.alignwide,
.wp-block-image.alignfull {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100% !important;
}

.article-grid,
.pro-grid-layout {
	grid-template-columns: 64px minmax(0, 1fr) 320px;
}

@media (max-width: 1024px) {

	.article-grid,
	.pro-grid-layout {
		grid-template-columns: 1fr;
	}
}

.wp-site-blocks * {
	box-sizing: border-box;
}