/* WT Release Notes: tab năm, timeline và trang chi tiết release. */

/* ---------- Tabs năm ---------- */
.pwt-rn-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 64px;
	overflow-x: auto;
	scrollbar-width: none;
}
.pwt-rn-tabs::-webkit-scrollbar {
	display: none;
}
.pwt-rn-tab {
	flex: 1 0 auto;
	min-width: 72px;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-bottom: 2px solid #e1e8f2;
	border-radius: 0;
	background: none;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	/* Theme viết hoa toàn bộ chữ trong <button> */
	text-transform: none;
	white-space: nowrap;
	color: var(--third-color, #334155);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.pwt-rn-tab:hover,
.pwt-rn-tab.is-active {
	border-color: var(--primary-color, #003c7f);
	background: none;
	color: var(--primary-color, #003c7f);
}
.pwt-rn-tab.is-active {
	font-weight: 500;
}
.pwt-rn-tab:focus-visible {
	outline: 2px solid var(--primary-color, #003c7f);
	outline-offset: -2px;
}

/* ---------- Timeline: [version + ngày] | đường dọc + chấm | tóm tắt + nút ---------- */
.pwt-rn-timeline {
	--pwt-rn-meta: 160px;
	--pwt-rn-line: #cbd5e1;
	--pwt-rn-dot: #38bdf8;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pwt-rn-item {
	position: relative;
	display: grid;
	grid-template-columns: var(--pwt-rn-meta) minmax(0, 1fr);
	margin: 0;
	padding-bottom: 80px;
}
.pwt-rn-item:last-child {
	padding-bottom: 0;
}
/* Đường dọc chạy hết item (kể cả khoảng cách dưới) nên nối liền giữa các release */
.pwt-rn-item::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--pwt-rn-meta) + 28px);
	width: 2px;
	background-color: var(--pwt-rn-line);
}
.pwt-rn-item::after {
	content: "";
	position: absolute;
	top: 4px;
	left: calc(var(--pwt-rn-meta) + 29px - 11px);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: var(--pwt-rn-dot);
	box-shadow: 0 0 0 4px #fff;
}
.pwt-rn-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	text-align: right;
}
.pwt-rn-version {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 8px;
	background-color: #d4f4fb;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--primary-color, #003c7f);
}
.pwt-rn-date {
	font-size: 15px;
	line-height: 1.6;
	color: #64748b;
}
.pwt-rn-body {
	padding-left: 64px;
}
.pwt-rn-title {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.3;
}
.pwt-rn-title a {
	color: var(--secondary-color, #1d4f82);
}
.pwt-rn-title a:hover {
	color: var(--primary-color, #003c7f);
}
.pwt-rn-summary {
	font-size: 18px;
	line-height: 1.7;
	color: var(--third-color, #334155);
}
.pwt-rn-summary p {
	margin: 0 0 16px;
}
.pwt-rn-summary p:last-child {
	margin-bottom: 0;
}
.pwt-rn-button {
	display: inline-flex;
	align-items: center;
	margin-top: 24px;
	padding: 12px 28px;
	border-radius: 8px;
	background-color: var(--primary-color, #003c7f);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	transition: background-color 0.2s ease;
}
.pwt-rn-button:hover,
.pwt-rn-button:focus-visible {
	background-color: var(--secondary-color, #1d4f82);
	color: #fff;
}

.pwt-rn-empty {
	padding: 24px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	text-align: center;
	color: #64748b;
}

/* Điện thoại: đường dọc sát trái, version + ngày nằm trên tóm tắt */
@media (max-width: 767px) {
	.pwt-rn-tabs {
		margin-bottom: 40px;
	}
	.pwt-rn-tab {
		min-width: 0;
		padding: 12px;
		font-size: 17px;
	}
	.pwt-rn-item {
		grid-template-columns: minmax(0, 1fr);
		padding-left: 36px;
		padding-bottom: 56px;
	}
	.pwt-rn-item::before {
		left: 8px;
	}
	.pwt-rn-item::after {
		left: 0;
		top: 6px;
		width: 18px;
		height: 18px;
	}
	.pwt-rn-meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 12px;
		margin-bottom: 14px;
		text-align: left;
	}
	.pwt-rn-version {
		font-size: 16px;
	}
	.pwt-rn-body {
		padding-left: 0;
	}
	.pwt-rn-summary {
		font-size: 16px;
	}
}

/* ---------- Trang chi tiết release ---------- */
.pwt-rn-single {
	padding: 72px 0 100px;
}
.pwt-rn-single-layout {
	max-width: 860px;
	margin: 0 auto;
}
/* Có cột phải: bài viết ~2/3, cột release mới nhất ~1/3 (bám theo khi cuộn) */
.pwt-rn-single-layout.has-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 72px;
	max-width: 1200px;
	align-items: start;
}
.pwt-rn-aside {
	position: sticky;
	top: 120px;
}
.pwt-rn-aside-box {
	padding: 32px 36px 16px;
	border: 1px solid #cfe3f7;
	border-radius: 12px;
	background-color: #eaf4fd;
}
.pwt-rn-aside-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	color: var(--secondary-color, #1d4f82);
}
.pwt-rn-aside-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.pwt-rn-aside-item + .pwt-rn-aside-item {
	border-top: 1px solid #cfe3f7;
}
.pwt-rn-aside-item a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 0;
}
.pwt-rn-aside-item time {
	font-size: 15px;
	color: #64748b;
}
.pwt-rn-aside-name {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--third-color, #334155);
	transition: color 0.2s ease;
}
.pwt-rn-aside-item a:hover .pwt-rn-aside-name,
.pwt-rn-aside-item.is-current .pwt-rn-aside-name {
	color: var(--primary-color, #003c7f);
}
.pwt-rn-aside .pwt-rn-button {
	margin-top: 32px;
}
.pwt-rn-article-header {
	margin-bottom: 32px;
}
.pwt-rn-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 14px;
	font-size: 16px;
	color: #64748b;
}
.pwt-rn-article-meta .pwt-rn-version {
	font-size: 15px;
	padding: 2px 12px;
}
.pwt-rn-article-title {
	margin: 0;
	font-size: 48px;
	line-height: 1.15;
	/* Theme đặt capitalize cho h1 → "v13.1" thành "V13.1" */
	text-transform: none;
	color: var(--primary-color, #003c7f);
}
.pwt-rn-article-image {
	margin-bottom: 32px;
}
.pwt-rn-article-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}
.pwt-rn-article-content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--third-color, #334155);
}
.pwt-rn-article-content > * + * {
	margin-top: 1.1em;
}
.pwt-rn-article-content p {
	margin-bottom: 0;
}
.pwt-rn-article-content h2 {
	margin: 2em 0 0.6em;
	font-size: 32px;
	line-height: 1.25;
	color: var(--secondary-color, #1d4f82);
}
.pwt-rn-article-content h3 {
	margin: 1.6em 0 0.4em;
	font-size: 24px;
	line-height: 1.3;
	color: var(--secondary-color, #1d4f82);
}
.pwt-rn-article-content ul,
.pwt-rn-article-content ol {
	padding-left: 1.4em;
}
.pwt-rn-article-content li + li {
	margin-top: 0.4em;
}
.pwt-rn-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
/* Video YouTube (dán link vào editor) co theo khung 16:9 */
.pwt-rn-article-content iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
}
@media (max-width: 1024px) {
	.pwt-rn-single {
		padding-top: 56px;
	}
	.pwt-rn-single-layout.has-aside {
		grid-template-columns: minmax(0, 1fr);
		gap: 56px;
		max-width: 860px;
	}
	.pwt-rn-aside {
		position: static;
	}
	.pwt-rn-article-title {
		font-size: 38px;
	}
}
@media (max-width: 767px) {
	.pwt-rn-single {
		padding: 40px 0 72px;
	}
	.pwt-rn-article-title {
		font-size: 30px;
	}
	.pwt-rn-article-content {
		font-size: 16px;
	}
	.pwt-rn-article-content h2 {
		font-size: 26px;
	}
	.pwt-rn-article-content h3 {
		font-size: 21px;
	}
}
