/*--------------------------------------------------------------
# Post Content
--------------------------------------------------------------*/
:where(.post-article__content, .editor-styles-wrapper .is-root-container, .editor-styles-wrapper .wp-block-post-content) {
	.wp-block-footnotes {
		margin-top: var(--space-xl);
		padding-top: var(--space-l);
		margin-bottom: var(--space-xl);
		border-top: 2px solid #e5e7eb;
		font-size: calc(var(--text-m) * 0.88);
		line-height: 1.6;
		color: #6b7280;

		li {
			margin-bottom: 0.8rem;
			padding-left: 0.5rem;
		}

		li::marker {
			color: #3b82f6;
			font-weight: 600;
		}

		a {
			color: #3b82f6;
			text-decoration: none;
			border-bottom: 1px dotted #3b82f6;
			transition: all 0.2s ease;
		}

		a:hover {
			color: #1d4ed8;
			border-bottom-color: #1d4ed8;
		}

		a[href^="#"]:last-child {
			font-size: calc(var(--text-m) * 0.88);
			margin-left: 0.5rem;
			padding: 0.2rem 0.4rem;
			background-color: #f3f4f6;
			border-radius: 0.25rem;
			border: none;
		}

		a[href^="#"]:last-child:hover {
			background-color: #e5e7eb;
		}
	}

	.wp-block-group.ext-reference {
		display: flex;
		background: var(--accent-ultra-light);
		margin-top: var(--space-xl);
		border-radius: 4px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	}

	.ext-reference ul {
		padding: 0 !important;
	}

	.ext-reference ul li {
		font-size: calc(var(--text-m) * 0.9);
	}

	.ext-reference h3 {
		margin-top: 0;
		font-size: calc(var(--h3) * 0.96);
		border-bottom: 1px solid #ddd;
		padding-bottom: 10px;
	}

	.ext-reference h3::before {
		content: "※";
		left: 0;
		color: var(--accent-dark);
		letter-spacing: 0.4em;
	}
}

@media (max-width: 991px) {
	:where(.post-article__content, .editor-styles-wrapper .is-root-container, .editor-styles-wrapper .wp-block-post-content) {
		.wp-block-group.ext-reference {
			padding: 1rem 1.125rem;
		}
	}
}

@media (max-width: 767px) {
	:where(.post-article__content, .editor-styles-wrapper .is-root-container, .editor-styles-wrapper .wp-block-post-content) {
		.wp-block-footnotes {
			margin-top: 2rem;
			padding: 1.5rem 1rem;
			font-size: calc(var(--text-m) * 0.7);
		}

		.wp-block-footnotes::before {
			font-size: calc(var(--text-m) * 0.8);
			margin-bottom: 1rem;
		}

		.wp-block-footnotes li {
			padding: 0.5rem;
			margin-bottom: 0.75rem;
		}
	}
}
