:root {
	/* --- Light theme atmospheric shell --- */
	--page-background-top: #f8fafc;
	--page-background-mid: #f1f5f9;
	--page-background-bottom: #e8eef6;
	/* Opaque light gray: shared by header, index hero, and page fill */
	--nav-hero-surface: #E9EFF8;
	--page-grid-color: rgba(99, 130, 191, 0.05);
	--page-haze-blue: rgba(59, 130, 246, 0.06);
	--page-haze-gold: rgba(234, 179, 8, 0.04);
	--page-haze-mint: rgba(16, 185, 129, 0.04);
	--primary-color: #2563eb;
	--primary-light: #3b82f6;
	--primary-dark: #1d4ed8;
	--accent-color: #7c3aed;
	--accent-green: #059669;
	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-light: #94a3b8;
	--background-primary: #ffffff;
	--background-secondary: rgba(248, 250, 252, 0.96);
	--background-accent: rgba(241, 245, 249, 0.96);
	--border-light: rgba(0, 0, 0, 0.06);
	--border-medium: rgba(0, 0, 0, 0.10);
	--border-dark: rgba(0, 0, 0, 0.15);
	--header-surface-start: rgba(255, 255, 255, 0.88);
	--header-surface-end: rgba(248, 250, 252, 0.84);
	--header-surface-stuck-start: rgba(255, 255, 255, 0.94);
	--header-surface-stuck-end: rgba(248, 250, 252, 0.92);
	--surface-hero-start: rgba(255, 255, 255, 0.98);
	--surface-hero-end: rgba(248, 250, 252, 0.94);
	--surface-panel-start: rgba(255, 255, 255, 0.96);
	--surface-panel-end: rgba(248, 250, 252, 0.92);
	--surface-card-start: rgba(255, 255, 255, 0.94);
	--surface-card-end: rgba(248, 250, 252, 0.90);
	--surface-card-soft-start: rgba(248, 250, 252, 0.94);
	--surface-card-soft-end: rgba(241, 245, 249, 0.90);
	--success-color: #059669;
	--warning-color: #d97706;
	--error-color: #dc2626;
	--glow: rgba(37, 99, 235, 0.08);
	--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px 0 rgb(0 0 0 / 0.03);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--header-height: 88px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial,
		"PingFang SC", "Microsoft YaHei", sans-serif;
	background: var(--nav-hero-surface);
	background-attachment: fixed;
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	position: relative;
}

/* Global link color for dark theme */
a {
	color: var(--primary-light);
	transition: color 0.2s ease;
}
a:hover {
	color: var(--primary-color);
}
a:visited {
	color: var(--accent-color);
}

/* Dark theme form elements */
input, select, textarea {
	background: var(--background-secondary);
	color: var(--text-primary);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(122, 162, 247, 0.15);
}
input::placeholder, textarea::placeholder {
	color: var(--text-light);
}
input[type="checkbox"], input[type="radio"] {
	accent-color: var(--primary-color);
}
input[type="range"] {
	accent-color: var(--primary-color);
}

/* Decorative overlays off so page matches solid nav / hero gray */
body::before,
body::after {
	display: none;
}

/* Ensure all content sits above background effects */
body > * {
	position: relative;
	z-index: 1;
}

/* Headings use Syne */
h1, h2, h3, h4, h5, h6 {
	font-family: "Space Grotesk", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Monospace / data */
code, pre, .mono {
	font-family: "DM Mono", "Consolas", monospace;
}

/* Animations */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 32px;
	background: var(--nav-hero-surface);
	border-bottom: none;
	min-height: 88px;
	position: -webkit-sticky; /* Safari */
	position: sticky;
	top: 0;
	z-index: 1300; /* above content & FAB (which uses 1200) */
	/* No drop shadow: avoids a dark band between header and index hero (same fill) */
	box-shadow: none;
}

/* Sticky state visual (on scroll) */
.header.is-stuck {
	box-shadow: none;
	background: var(--nav-hero-surface);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.nav-left h1 {
	font-weight: 700;
	color: var(--primary-color);
	margin: 0;
	letter-spacing: 1px;
	font-family: "Space Grotesk", "DM Sans", "Segoe UI", sans-serif;
}

.header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	letter-spacing: 0.03em;
	padding: 5px 0;
	margin: 0;
	position: relative;
}

/* Title container to hold main title and rules link */
.title-container {
	display: flex;
	/* Align text baselines */
	/* align-items: baseline; */
	/* Space between title and rules link */
	/* gap: 1rem;  */
	flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- 导航栏主标题与Slogan美化 --- */
.nav-title-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	line-height: 1.1;
	gap: 12px;
}

.nav-logo {
	height: 4em;
	flex-shrink: 0;
}

.nav-text-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	line-height: 1.1;
}

.nav-main-title {
	font-size: 1.08rem;
	font-weight: 700;
	margin: 0;
	padding: 0;
	color: #0f172a !important;
	letter-spacing: 0.03em;
	font-family: "Space Grotesk", "DM Sans", "Segoe UI", sans-serif;
	background: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	-webkit-text-fill-color: #0f172a !important;
}

.nav-main-title .nav-home-link {
	color: #0f172a !important;
	text-decoration: none;
	transition: all 0.18s;
	background: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	-webkit-text-fill-color: #0f172a !important;
}

.nav-home-link {
	color: #0f172a !important;
	text-decoration: none;
	transition: all 0.18s;
	background: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	-webkit-text-fill-color: #0f172a !important;
}

.nav-home-link:hover {
	opacity: 0.9;
	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;
}

.nav-slogan {
	font-size: 0.82rem;
	font-weight: 500;
	color: rgba(15, 23, 42, 0.75);
	margin-top: 0.16rem;
	margin-left: 0;
	margin-bottom: 0;
	letter-spacing: 0.01em;
	line-height: 1.1;
	white-space: nowrap;
}

.nav-right {
	display: flex;
	align-items: center;
}

.nav-list {
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.nav-item a {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: rgba(15, 23, 42, 0.75);
	text-decoration: none;
	padding: 8px 18px;
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
	font-family: "DM Sans", "Segoe UI", sans-serif;
	letter-spacing: 0.5px;
}

.nav-item a:hover {
	background: rgba(37, 99, 235, 0.08);
	color: #0f172a;
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.header .nav-item a.oda-active-link {
	color: #0f172a;
	background: rgba(37, 99, 235, 0.10);
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
	position: relative;
}

.header .nav-item a.oda-active-link::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	opacity: 0.95;
}

/* Loading and Error States */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(8px);
}
.error-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(8px);
}

/* --- FAB菜单样式优化 --- */
.fab-menu {
	position: fixed;
	right: 2rem;
	bottom: 2rem;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.fab-actions {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 1rem;
	padding-bottom: 0.8rem;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px) scale(0.95);
	transition: opacity 0.25s, transform 0.25s;
}
.fab-menu:hover .fab-actions,
.fab-actions:focus-within {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.fab-icon,
.fab-label-btn {
	min-width: 160px;
	height: 48px;
	border-radius: 24px;
	background: var(--primary-color);
	color: #fff;
	border: none;
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.2s, min-width 0.2s;
	padding: 0 18px;
	overflow: hidden;
	white-space: nowrap;
	text-decoration: none;
	outline: none;
}

.fab-icon {
	min-width: 48px;
	width: 48px;
	justify-content: center;
	padding: 0;
}

.fab-label-btn {
	position: absolute;
	right: 0;
	top: 0;
	opacity: 0;
	pointer-events: none;
	z-index: 2;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 0.7rem;
}

/* Icon flush left; label centered in the remaining pill width */
.fab-label-btn > i {
	justify-self: start;
}

.fab-label-btn > span {
	justify-self: center;
	width: 100%;
	text-align: center;
}

/* FAB links: global a:hover / a:visited beat single-class rules and wash out icon/text on blue fill */
a.fab-icon,
a.fab-icon:hover,
a.fab-icon:visited,
a.fab-icon:focus-visible,
a.fab-label-btn,
a.fab-label-btn:hover,
a.fab-label-btn:visited,
a.fab-label-btn:focus-visible {
	color: #fff;
}

.fab-action:hover .fab-label-btn {
	opacity: 1;
	pointer-events: auto;
	animation: fabLabelIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab-action .fab-icon {
	z-index: 3;
}
.fab-action:hover .fab-icon {
	opacity: 0;
}

/* 让每个条目成为定位上下文 */
.fab-action {
	position: relative;
	width: 48px; /* 保持和 .fab-icon 一样的基准尺寸 */
	height: 48px; /* 避免高度塌陷 */
}

/* Touch: no :hover — show fab-back text pill so it is not blank */
@media (hover: none) and (pointer: coarse) {
	.fab-action.fab-back .fab-label-btn {
		opacity: 1;
		pointer-events: auto;
	}
	.fab-action.fab-back .fab-icon {
		opacity: 0;
		pointer-events: none;
	}
}

.fab-main {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary-color);
	color: #fff;
	border: none;
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	cursor: pointer;
	transition: background 0.2s;
}
.fab-main:hover {
	background: var(--primary-dark);
	box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.table-container {
	overflow-x: auto;
}
/* 滚动条样式优化 */
.table-container::-webkit-scrollbar {
	height: 8px;
}
.table-container::-webkit-scrollbar-track {
	background: var(--background-secondary);
	border-radius: var(--radius-sm);
}
.table-container::-webkit-scrollbar-thumb {
	background: var(--border-medium);
	border-radius: var(--radius-sm);
}
.table-container::-webkit-scrollbar-thumb:hover {
	background: var(--border-dark);
}

.ranking-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--background-secondary);
}
.ranking-table th {
	background: var(--background-accent);
	color: var(--text-primary);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 1rem;
	text-align: left;
	border-bottom: 2px solid var(--border-medium);
	white-space: nowrap;
}
.ranking-table td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid var(--border-light);
	color: var(--text-primary);
}

.table tbody tr {
	transition: all 0.2s ease;
}

.ranking-table tbody tr {
	transition: all 0.2s ease;
}
.table tbody tr:hover {
	background: rgba(37, 99, 235, 0.05);
}
.ranking-table tbody tr:hover {
	background-color: rgba(37, 99, 235, 0.05) !important;
}
.table tbody tr:last-child td {
	border-bottom: none;
}
.ranking-table tbody tr:last-child td {
	border-bottom: none;
}
.ranking-table th.highlighted-col,
.ranking-table td.highlighted-col {
	background-color: rgba(37, 99, 235, 0.04) !important;
	color: var(--text-primary) !important;
}
.ranking-table th.highlighted-col .sort-icon,
.ranking-table th.highlighted-col .task-name,
.ranking-table th.highlighted-col .metric-name {
	color: var(--text-primary) !important; /* Ensure icons and text within header are also dark */
}
.ranking-table td.highlighted-col .score-value {
	color: var(--text-primary) !important; /* Ensure score values in highlighted cells are dark */
	font-weight: bold; /* Keep bold for emphasis */
}

/* 动画效果 */
.table-row {
	transition: background-color 0.2s ease;
}
.table-row:hover {
	background: var(--background-accent);
}

.table-row.base-row {
	background-color: rgba(37, 99, 235, 0.03);
}

.table-row.base-row:hover {
	background-color: rgba(37, 99, 235, 0.06);
}

.table-row.instruct-row {
	background-color: rgba(37, 99, 235, 0.03);
}

.table-row.instruct-row:hover {
	background-color: rgba(37, 99, 235, 0.06);
}
/* Rank Badge */
.rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 1rem;
	color: var(--background-primary);
	background: var(--text-light);
	transition: transform 0.2s ease;
}

.rank-badge:hover {
	transform: scale(1.1);
}

.rank-badge.rank-1 {
	background: #ffd700;
	color: #1a1a2e;
	box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-2 {
	background: #c0c0c0;
	color: #1a1a2e;
	box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.rank-badge.rank-3 {
	background: #cd7f32;
	color: var(--background-primary);
	box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.name-col {
	min-width: 200px;
	vertical-align: top;
}

.leaderboard-container .ranking-table th.name-col,
.leaderboard-container .ranking-table td.name-col {
	text-align: left;
}

.detailed-table .name-col,
.detailed-table .name-col.sortable {
	text-align: left !important;
	vertical-align: middle !important;
	min-height: 50px;
	max-width: 200px;
	width: 200px;
	white-space: normal !important;
	word-break: break-all;
}

.dataset-name-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 100%;
	overflow: hidden;
	word-break: break-all;
	text-overflow: ellipsis;
	white-space: normal;
}

.dataset-name-with-tags {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.dataset-link {
	font-weight: 600;
	color: var(--primary-light);
	text-decoration: underline dotted;
	word-break: break-all;
}

.dataset-link:hover {
	color: var(--accent-color);
	text-decoration: underline solid;
}

/* 恢复affiliation全局样式 */
.dataset-affiliation {
	font-size: 1.05rem;
	opacity: 0.85;
	margin-bottom: 10px;
	color: var(--text-secondary);
	font-weight: 500;
}

.year-col {
	width: 80px;
	text-align: center;
	min-width: 60px;
}
.size-col {
	width: 90px;
	text-align: center;
	min-width: 60px;
}
.score-col {
	width: 100px;
	text-align: center;
	white-space: nowrap;
}
.score-container {
	display: flex;
	flex-direction: column; /* Stack items vertically */
	align-items: center;
	justify-content: center;
}

.score-diff {
	margin-left: 0; /* Removed original margin-left: 8px; */
	margin-top: 3px; /* Add space below the score value */
	font-size: 0.75em; /* Make font smaller, was 0.9em */
	padding: 2px 6px; /* Existing padding */
	border-radius: 4px; /* Existing border-radius */
	font-weight: bold; /* Existing font-weight */
}

.score-diff-positive {
	color: #059669; /* 绿色表示提升 */
	background-color: rgba(5, 150, 105, 0.1); /* 淡绿色背景 */
}

.score-diff-negative {
	color: #dc2626; /* 红色表示下降 */
	background-color: rgba(220, 38, 38, 0.1); /* 淡红色背景 */
}

/* 页脚样式 */
footer {
	background-color: rgba(248, 250, 252, 0.95);
	color: var(--text-primary);
	border-top: 1px solid rgba(0,0,0,0.06);
	margin-top: 50px;
	padding: 40px 0 20px 0;
	backdrop-filter: blur(10px);
	box-shadow: none;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
}
.footer-links {
	text-align: center;
	margin-bottom: 30px;
}

.footer-links h4 {
	color: var(--text-primary);
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 20px;
	letter-spacing: 0.05em;
}

.links-container {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.links-container a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	color: var(--text-secondary);
	text-decoration: none;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.9);
	transition: all 0.3s ease;
	font-size: 0.9rem;
	font-weight: 500;
	box-shadow: var(--shadow-sm);
}

.links-container a:hover {
	color: var(--primary-color);
	border-color: rgba(37, 99, 235, 0.20);
	background: rgba(37, 99, 235, 0.06);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.footer-copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid var(--border-light);
}

.footer-copyright p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-light);
}

.rank-col {
	width: 80px;
	text-align: center;
}

/* Dataset Name */
.dataset-name {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 1rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* 左对齐 */
	justify-content: flex-start; /* 顶部对齐 */
}

/* 数据集名字和属性居中 */
.dataset-name {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* 左对齐 */
	justify-content: flex-start; /* 顶部对齐 */
}

.dataset-tags {
	display: flex;
	gap: 0.25rem;
	flex-wrap: wrap;
}

.tag-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--background-accent);
	color: var(--text-secondary);
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid var(--border-light);
}

.tag-icon.tag-general {
	background: rgba(37, 99, 235, 0.10);
	color: #1d4ed8;
	border-color: rgba(37, 99, 235, 0.20);
}

.tag-icon.tag-math {
	background: rgba(124, 58, 237, 0.10);
	color: #7c3aed;
	border-color: rgba(124, 58, 237, 0.20);
}

.tag-icon.tag-code {
	background: rgba(5, 150, 105, 0.10);
	color: #059669;
	border-color: rgba(5, 150, 105, 0.20);
}

.tag-icon.tag-science {
	background: rgba(217, 119, 6, 0.10);
	color: #d97706;
	border-color: rgba(217, 119, 6, 0.20);
}

.tag-icon.tag-reasoning {
	background: rgba(79, 70, 229, 0.10);
	color: #4f46e5;
	border-color: rgba(79, 70, 229, 0.20);
}

.tag-icon.tag-spatial {
	background: rgba(190, 24, 93, 0.10);
	color: #be185d;
	border-color: rgba(190, 24, 93, 0.20);
}

.tag-icon.tag-infographic {
	background: rgba(15, 118, 110, 0.10);
	color: #0f766e;
	border-color: rgba(15, 118, 110, 0.20);
}

.tag-icon:hover {
	background: var(--primary-color);
	color: white;
	transform: scale(1.1);
	box-shadow: 0 0 8px var(--glow);
}

.tag-icon i {
	font-size: 0.7rem;
}

/* ===== Language Toggle Button ===== */
.lang-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: none;
}

/* ===== Language Toggle: external SVG icon ===== */
.lang-toggle-btn .lang-icon-img {
	display: block;
	width: 25px;
	height: 25px;
}

.lang-toggle-btn:hover {
	background: rgba(37, 99, 235, 0.08);
}

.nav-item {
	display: flex;
	align-items: center;
}

/* ===== Shared Guide Header (used by contribution, configurations, tools) ===== */
.guide-header-wrapper {
	max-width: 1200px;
	margin: 20px auto 0 auto;
}

.guide-header {
	text-align: center;
	margin-bottom: 3rem;
	padding: 2rem;
	background: linear-gradient(
		135deg,
		var(--background-secondary) 0%,
		var(--background-accent) 100%
	);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-light);
}

.guide-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.guide-subtitle {
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
}

.docs-page .guide-header-wrapper {
	max-width: 1200px;
	width: min(1200px, calc(100% - 32px));
	margin: 28px auto 0;
}

.docs-page .guide-header,
.docs-page .rules-container,
.docs-page .tools-container {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.06);
	border-radius: 28px;
}

.docs-page .rules-container,
.docs-page .tools-container {
	width: min(1200px, calc(100% - 32px));
	margin: 0 auto 36px;
	padding: 24px 24px 28px;
}

.docs-page .guide-container {
	max-width: 1200px;
	width: min(1200px, calc(100% - 32px));
	margin: 28px auto 36px;
	padding: 0;
}

.docs-page .guide-container .guide-header {
	margin: 0 0 24px;
}

.docs-page .guide-sections {
	gap: 22px;
}

.docs-page .guide-section {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
	border-radius: 20px;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
}

/* ===== Shared Link Style (repo-link) ===== */
a.repo-link {
	color: var(--primary-light) !important;
	text-decoration: underline dotted !important;
	text-underline-offset: 3px;
	font-weight: 500;
	transition: color 0.2s;
}
a.repo-link:hover {
	color: var(--accent-color) !important;
	text-decoration: underline solid !important;
}
