@charset "utf-8";

/* ==============================================
   筆者プロフィールブロック — Figma デザイン準拠
============================================== */

.wp-block-sensing-author-profile {
	width: 100%;
	box-sizing: border-box;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ---- 見出し ---- */

.wp-block-sensing-author-profile .author-profile__heading {
	font-size: 12px;
	font-weight: 700;
	color: #6B7280;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 24px;
	padding: 0;
	border: none;
}

/* ---- コンテンツレイアウト ---- */

.wp-block-sensing-author-profile .author-profile__content {
	display: flex;
	gap: 32px;
}

/* ---- アバター ---- */

.wp-block-sensing-author-profile .author-profile__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: #D1D5DB;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wp-block-sensing-author-profile .author-profile__avatar.has-image {
	background: none;
	box-shadow: none;
}

.wp-block-sensing-author-profile .author-profile__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.wp-block-sensing-author-profile .author-profile__avatar-icon {
	display: block;
}

/* ---- テキスト情報 ---- */

.wp-block-sensing-author-profile .author-profile__info {
	flex: 1;
	min-width: 0;
}

.wp-block-sensing-author-profile .author-profile__meta {
	margin-bottom: 16px;
}

.wp-block-sensing-author-profile .author-profile__name {
	font-size: 20px;
	font-weight: 700;
	color: #0A1628;
	line-height: 1.4;
	margin: 0 0 4px;
}

.wp-block-sensing-author-profile .author-profile__role {
	font-size: 14px;
	color: #4B5563;
	line-height: 1.5;
	margin: 2px 0 0;
}

.wp-block-sensing-author-profile .author-profile__role:first-of-type {
	margin-top: 0;
}

.wp-block-sensing-author-profile .author-profile__bio {
	font-size: 14px;
	color: #374151;
	line-height: 1.625;
	margin: 0 0 16px;
}

/* ---- 専門タグ ---- */

.wp-block-sensing-author-profile .author-profile__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wp-block-sensing-author-profile .author-profile__tag {
	display: inline-block;
	background: #E5E7EB;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	color: #4B5563;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ---- エディター: 未選択プレースホルダー ---- */

.wp-block-sensing-author-profile .author-profile__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 32px;
	color: #9CA3AF;
	font-size: 14px;
	text-align: center;
}

/* ---- エディター: 役職リピーター ---- */

.author-profile-role-row {
	display: flex;
	gap: 2px;
	align-items: center;
	margin-bottom: 4px;
}

.author-profile-role-input {
	flex: 1;
	padding: 4px 8px;
	font-size: 13px;
	line-height: 1.4;
	border: 1px solid #949494;
	border-radius: 2px;
	min-height: 0;
}

.author-profile-role-input:focus {
	border-color: var(--wp-admin-theme-color, #007cba);
	box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #007cba);
	outline: none;
}

.author-profile-role-remove.components-button {
	min-width: 24px;
	height: 24px;
	padding: 0;
}

/* ---- レスポンシブ ---- */

@media screen and (max-width: 640px) {
	.wp-block-sensing-author-profile {
		padding: 24px;
	}

	.wp-block-sensing-author-profile .author-profile__content {
		flex-direction: column;
		gap: 20px;
	}

	.wp-block-sensing-author-profile .author-profile__avatar {
		width: 72px;
		height: 72px;
	}

	.wp-block-sensing-author-profile .author-profile__name {
		font-size: 18px;
	}
}
