/*
 * FIX-04（Phase 4B Fix Cycle 1, medisapo 1.0.2）：サイト内リンク自動埋め込みカード
 * （inc/embed-card.phpが出力する .medisapo-embed-card 用）。
 *
 * パドルシップ独自の設計・実装。Lightning本体のCSS
 * （_g3/inc/vk-wp-oembed-blog-card/package/css/blog-card.css・blog-card.scss）は
 * 一切参照・複製していない。クラス名も独自（medisapo-embed-card-*）で、
 * Lightningの.blog-card系クラス名とは一致しない。
 * ブレークポイント600pxはbase.css内の既存の.vk_posts.next-prevと合わせている。
 */

.medisapo-embed-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	overflow: hidden;
	margin: 1.5em 0;
	background: #fff;
	text-decoration: none;
}

.medisapo-embed-card-thumb-link {
	display: block;
	flex: 0 0 auto;
}

.medisapo-embed-card-thumb {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.medisapo-embed-card-body {
	flex: 1 1 auto;
	padding: 16px;
	min-width: 0;
}

.medisapo-embed-card-title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: bold;
	line-height: 1.4;
}

.medisapo-embed-card-title a {
	color: #222;
	text-decoration: none;
}
.medisapo-embed-card-title a:hover {
	color: var(--medisapo-color-key);
	text-decoration: underline;
}

.medisapo-embed-card-excerpt {
	margin: 0 0 10px;
	font-size: 0.85rem;
	line-height: 1.7;
	color: #555;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.medisapo-embed-card-site {
	margin: 0;
	font-size: 0.78rem;
	color: #888;
}

.medisapo-embed-card-site a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #888;
	text-decoration: none;
}

.medisapo-embed-card-favicon {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 2px;
}

@media (min-width: 600px) {
	.medisapo-embed-card {
		flex-direction: row;
	}
	.medisapo-embed-card-thumb-link {
		width: 33.333%;
	}
	.medisapo-embed-card-thumb {
		height: 100%;
	}
	.medisapo-embed-card-body {
		width: 66.667%;
	}
}
