/* RPS 執筆者・監修者ブロック */
.wp-block-rps-author-profile.rps-author-block,
.rps-expert-profile-summary {
	--rps-author-ink: #2f2925;
	--rps-author-brown: #4d3a31;
	--rps-author-accent: #a85f3b;
	--rps-author-line: #e3dbd2;
	--rps-author-soft: #f8f4ee;
	--rps-author-blue: #edf7f8;
	box-sizing: border-box;
	color: var(--rps-author-ink);
}

.wp-block-rps-author-profile.rps-author-block *,
.rps-expert-profile-summary * {
	box-sizing: border-box;
}

.wp-block-rps-author-profile.rps-author-block {
	margin-top: clamp(34px, 6vw, 70px);
	margin-bottom: clamp(34px, 6vw, 70px);
	padding: clamp(22px, 4vw, 38px);
	border: 1px solid var(--rps-author-line);
	border-radius: 18px;
	background: linear-gradient(145deg, #fff 0%, var(--rps-author-soft) 100%);
	box-shadow: 0 12px 34px rgba(63, 45, 36, .07);
}

.wp-block-rps-author-profile .rps-author-block__heading {
	margin: 0 0 18px;
	padding: 0 0 10px;
	border: 0;
	border-bottom: 1px solid var(--rps-author-line);
	background: transparent;
	color: var(--rps-author-brown);
	font-size: clamp(1rem, 2vw, 1.18rem);
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: .04em;
}

.wp-block-rps-author-profile .rps-author-block__list {
	display: grid;
	gap: 18px;
}

.wp-block-rps-author-profile .rps-author-card {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.wp-block-rps-author-profile .rps-author-card + .rps-author-card {
	padding-top: 18px;
	border-top: 1px solid var(--rps-author-line);
}

.wp-block-rps-author-profile .rps-author-card__photo {
	display: block;
	overflow: hidden;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	background: #eee9e4;
}

.wp-block-rps-author-profile .rps-author-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 50%;
	object-fit: cover;
}

.wp-block-rps-author-profile .rps-author-card__role {
	display: inline-block;
	margin: 0 0 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--rps-author-blue);
	color: #315e64;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.6;
}

.wp-block-rps-author-profile .rps-author-card__name {
	margin: 0 0 4px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--rps-author-brown) !important;
	font-size: clamp(1.15rem, 2.4vw, 1.38rem) !important;
	line-height: 1.45 !important;
}

.wp-block-rps-author-profile .rps-author-card__name::before,
.wp-block-rps-author-profile .rps-author-card__name::after {
	display: none !important;
	content: none !important;
}

.wp-block-rps-author-profile .rps-author-card__name a {
	color: inherit;
	text-decoration: none;
}

.wp-block-rps-author-profile .rps-author-card__name a:hover {
	color: var(--rps-author-accent);
	text-decoration: underline;
	text-underline-offset: .18em;
}

.wp-block-rps-author-profile .rps-author-card__position {
	margin: 0 0 10px;
	color: #6e655f;
	font-size: .83rem;
	font-weight: 600;
	line-height: 1.65;
}

.wp-block-rps-author-profile .rps-author-card__bio {
	margin: 0 0 11px;
	font-size: .91rem;
	line-height: 1.85;
}

.wp-block-rps-author-profile .rps-author-card__expertise,
.rps-expert-profile-summary .rps-expert-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 11px;
	padding: 0;
	list-style: none;
}

.wp-block-rps-author-profile .rps-author-card__expertise li,
.rps-expert-profile-summary .rps-expert-tags li {
	margin: 0;
	padding: 4px 9px;
	border: 1px solid var(--rps-author-line);
	border-radius: 6px;
	background: #fff;
	color: #5b5049;
	font-size: .72rem;
	line-height: 1.5;
}

.wp-block-rps-author-profile .rps-author-card__credentials {
	margin: 12px 0;
	padding: 13px 15px;
	border-left: 3px solid #bfdde1;
	background: rgba(237, 247, 248, .7);
}

.wp-block-rps-author-profile .rps-author-card__subheading {
	margin: 0 0 5px;
	font-size: .78rem;
	font-weight: 700;
}

.wp-block-rps-author-profile .rps-author-card__credentials ul {
	margin: 0;
	padding-left: 1.2em;
}

.wp-block-rps-author-profile .rps-author-card__credentials li {
	margin: 2px 0;
	font-size: .78rem;
	line-height: 1.65;
}

.wp-block-rps-author-profile .rps-author-card__link {
	margin: 8px 0 0;
	font-size: .82rem;
	font-weight: 700;
}

.wp-block-rps-author-profile .rps-author-card__link a {
	color: var(--rps-author-accent);
	text-decoration: none;
}

.wp-block-rps-author-profile .rps-author-card__link a:hover {
	text-decoration: underline;
	text-underline-offset: .18em;
}

.wp-block-rps-author-profile.rps-author-block.is-compact {
	padding: 18px 20px;
}

.wp-block-rps-author-profile.is-compact .rps-author-card {
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
}

.wp-block-rps-author-profile.is-compact .rps-author-card__photo {
	width: 72px;
	height: 72px;
}

/* Public expert profile page */
.rps-expert-profile-summary {
	margin: 0 0 clamp(32px, 5vw, 58px);
	padding: clamp(22px, 4vw, 38px);
	border: 1px solid var(--rps-author-line);
	border-radius: 18px;
	background: linear-gradient(145deg, #fff 0%, var(--rps-author-soft) 100%);
}

.rps-expert-profile-summary__top {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: clamp(20px, 4vw, 34px);
	align-items: center;
}

.rps-expert-profile-summary__photo img {
	display: block;
	width: 160px;
	height: 160px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.rps-expert-profile-summary__type {
	margin: 0 0 8px;
	color: var(--rps-author-accent);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
}

.rps-expert-profile-summary__name {
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--rps-author-brown) !important;
	font-size: clamp(1.45rem, 3vw, 2rem) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	letter-spacing: .03em;
}

.rps-expert-profile-summary__name::before,
.rps-expert-profile-summary__name::after {
	display: none !important;
	content: none !important;
}

.rps-expert-profile-summary__job {
	margin: 0 0 3px;
	color: var(--rps-author-brown);
	font-weight: 700;
}

.rps-expert-profile-summary__affiliation {
	margin: 0 0 10px;
	color: #6e655f;
	font-size: .88rem;
}

.rps-expert-profile-summary__bio {
	margin: 0;
	font-size: .94rem;
	line-height: 1.85;
}

.rps-expert-profile-summary__section {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--rps-author-line);
}

.rps-expert-profile-summary__section h2 {
	margin: 0 0 12px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--rps-author-brown) !important;
	font-size: 1.08rem !important;
	line-height: 1.5 !important;
}

.rps-expert-profile-summary__section h2::before,
.rps-expert-profile-summary__section h2::after {
	display: none !important;
	content: none !important;
}

.rps-expert-profile-summary .rps-expert-credentials {
	margin: 0;
	padding-left: 1.25em;
}

.rps-expert-profile-summary .rps-expert-credentials li,
.rps-expert-profile-summary .rps-expert-official-links li {
	margin: 4px 0;
	line-height: 1.75;
}

.rps-expert-profile-summary .rps-expert-official-links {
	margin: 0;
	padding-left: 1.25em;
}

.rps-expert-profile-summary .rps-expert-official-links a {
	color: var(--rps-author-accent);
	overflow-wrap: anywhere;
}

@media (max-width: 600px) {
	.wp-block-rps-author-profile.rps-author-block {
		padding: 19px 17px;
		border-radius: 14px;
	}

	.wp-block-rps-author-profile .rps-author-card,
	.wp-block-rps-author-profile.is-compact .rps-author-card {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 13px;
	}

	.wp-block-rps-author-profile .rps-author-card__photo,
	.wp-block-rps-author-profile.is-compact .rps-author-card__photo {
		width: 64px;
		height: 64px;
	}

	.wp-block-rps-author-profile .rps-author-card__bio,
	.wp-block-rps-author-profile .rps-author-card__expertise,
	.wp-block-rps-author-profile .rps-author-card__credentials,
	.wp-block-rps-author-profile .rps-author-card__link {
		grid-column: 1 / -1;
	}

	.rps-expert-profile-summary__top {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 16px;
		align-items: start;
	}

	.rps-expert-profile-summary__photo img {
		width: 96px;
		height: 96px;
	}
}
