/* MandarinMiles · 数据来源页（/credits/）与页脚署名行
   载入位置：全站（inc/credits-page.php 挂 wp_enqueue_scripts）。
   色板沿用站点现有 CSS 变量，浅色/深色主题都能读。 */

.mm-credits-table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0 28px;
	font-size: 14px;
	line-height: 1.6;
}
.mm-credits-table th,
.mm-credits-table td {
	border: 1px solid var(--border, #e3e8f0);
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
}
.mm-credits-table thead th {
	background: var(--bg, #f5f7fb);
	font-weight: 800;
	letter-spacing: .01em;
	white-space: nowrap;
}
.mm-credits-table a { color: var(--primary, #1166F0); }
.mm-credits-author {
	display: inline-block;
	margin-top: 4px;
	color: var(--muted, #6b7488);
	font-size: 12.5px;
	line-height: 1.45;
}
.mm-credits-mod {
	display: inline-block;
	margin-top: 6px;
	color: var(--muted, #6b7488);
	font-size: 12.5px;
	line-height: 1.45;
}
.mm-credits-list {
	margin: 10px 0 26px;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.75;
}
.mm-credits-list li { margin-bottom: 8px; }
.mm-credits-list a { color: var(--primary, #1166F0); }

/* ---------- 页脚署名行 ---------- */
.mm-sf-credits {
	margin: 4px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	opacity: .78;
}
.mm-sf-credits a {
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}
.mm-sf-credits a:hover { opacity: 1; text-decoration-style: solid; }

.mm-legal-credits {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	opacity: .8;
}
.mm-legal-credits a {
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}

@media (max-width: 720px) {
	.mm-credits-table thead { display: none; }
	.mm-credits-table tr { display: block; border: 1px solid var(--border, #e3e8f0); border-radius: 10px; margin-bottom: 12px; }
	.mm-credits-table td { display: block; border: 0; padding: 10px 12px; }
	.mm-credits-table td + td { border-top: 1px solid var(--border, #e3e8f0); }
	.mm-credits-table td::before {
		content: attr(data-th);
		display: block;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
		opacity: .6;
		margin-bottom: 3px;
	}
}
