/*
 * Author byline styles (S-001).
 * Based on EEAT_SETUP.md §4.
 */

.author-byline {
	margin: 1.5em 0;
	padding: 1em 1.2em;
	background: #f8f7f4;
	border-left: 3px solid #c0a060;
	border-radius: 4px;
	font-size: 0.95em;
	line-height: 1.6;
}

.author-byline .byline-label {
	color: #888;
	font-size: 0.85em;
	letter-spacing: 0.04em;
}

.author-byline .byline-name {
	font-weight: 600;
	color: #222;
}

.author-byline .byline-bio {
	margin: 0.5em 0 0;
	color: #555;
	font-size: 0.92em;
}

.author-byline .byline-meta {
	margin: 0.5em 0 0;
	font-size: 0.85em;
	color: #888;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1em;
}

.author-byline .byline-meta a {
	color: #666;
	text-decoration: underline;
}

.author-byline .byline-meta time {
	color: #888;
}

.author-byline--bottom {
	margin-top: 2.5em;
	background: #fafaf8;
}

/* 既存 aside.guz-author-bio (themes/guzclothes/inc/template-tags.php:guzclothes_author_bio)
 * との重複表示対策(S-001 (a) 案承認後に有効化):
 *
 *  - body.guz-byline-hide-legacy が付くと既存ボックスを非表示にする
 *  - body class は子テーマ functions.php で本番反映時に付与(staging で目視確認後に発効)
 *  - staging では body class なしの状態で両方表示し、デザイン比較する運用を想定
 *  - PHP 側で remove_action する案は親テーマアップデート耐性が低いため、CSS hide を採用
 */
body.guz-byline-hide-legacy aside.guz-author-bio {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.author-byline {
		transition: background-color 0.2s ease;
	}
}
