/*
 * PLUS MEDICAL JOURNAL 홈
 * Clean Structural: 쿨 페이퍼, 잉크, 클리닉 블루 1색, 각진 사각형.
 * Melos 부모 테마의 #content/#sidebar 안에 들어가므로 뷰포트 전체 가정 금지.
 */

:root {
	--pmj-paper: #eef1f4;
	--pmj-surface: #f7f8fa;
	--pmj-ink: #161d27;
	--pmj-muted: #5c6570;
	--pmj-line: #d5dbe2;
	--pmj-sans: Pretendard, "Apple SD Gothic Neo", sans-serif;
	--pmj-mast: Outfit, Pretendard, sans-serif;
	--pmj-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--pmj-shadow: 0 18px 40px -28px rgba(22, 29, 39, 0.28);
}

/* 부모 테마(Melos) 2열/사이드바/기사 카드가 히어로를 찌그러뜨리지 않게 */
body.pmj-journal #content,
body.pmj-journal #content-core,
body.pmj-journal #main,
body.pmj-journal #main-core {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
}

body.pmj-journal #sidebar {
	display: none !important;
}

body.pmj-journal #main-core > article,
body.pmj-journal #main-core > .page,
body.pmj-journal .blog-article {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

.pmj-home {
	width: 100%;
	min-width: 0;
}

.pmj-hero,
.pmj-hero * {
	writing-mode: horizontal-tb;
	text-orientation: mixed;
}

.pmj-hero,
.pmj-dept-strip,
.pmj-section {
	font-family: var(--pmj-sans);
	color: var(--pmj-ink);
	word-break: keep-all;
	overflow-wrap: break-word;
}

.pmj-hero h1,
.pmj-section h2 {
	font-family: var(--pmj-sans);
	text-transform: none;
	letter-spacing: -0.03em;
	text-wrap: balance;
	line-height: 1.32;
}

.pmj-grain {
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.pmj-hero img,
.pmj-featured img,
.pmj-latest-card img,
.pmj-editor-pick img {
	max-width: 100%;
	height: auto;
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.pmj-hero {
	background: var(--pmj-paper);
	padding: 24px 0 24px;
}

body.pmj-journal .hb-container.pmj-hero__grid,
.pmj-hero__grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	column-gap: 48px;
	align-items: stretch;
}

.pmj-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	height: 100%;
	max-width: none;
	padding: 0;
}

.pmj-hero__lead {
	min-width: 0;
}

.pmj-hero__masthead {
	margin: 0 0 20px;
	font-family: var(--pmj-mast);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--pmj-ink);
}

.pmj-hero__kicker {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-primary);
}

.pmj-hero__title {
	margin: 0 0 16px;
	font-size: clamp(26px, 3.2vw, 42px);
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -0.03em;
}

.pmj-hero__dek {
	display: -webkit-box;
	margin: 0;
	max-width: 36em;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.7;
	color: var(--pmj-muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.pmj-hero__foot {
	margin-top: auto;
	padding-top: 28px;
	flex-shrink: 0;
}

body.pmj-journal #content a.pmj-hero__cta,
.pmj-hero__cta {
	display: inline-flex !important;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	width: max-content;
	max-width: 100%;
	gap: 14px;
	min-height: 52px;
	margin: 0 0 16px;
	padding: 0 8px 0 22px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: var(--pmj-ink);
	border: 0;
	border-radius: 0;
	transition: transform 0.45s var(--pmj-ease), background-color 0.45s var(--pmj-ease);
}

.pmj-hero__cta:hover {
	background: var(--hb-primary);
	transform: scale(1.02);
}

.pmj-hero__cta:active {
	transform: scale(0.98);
}

.pmj-hero__cta-mark {
	position: relative;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	background: #fff;
	border-radius: 0;
	transition: transform 0.45s var(--pmj-ease);
}

.pmj-hero__cta-mark::before,
.pmj-hero__cta-mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--pmj-ink);
}

.pmj-hero__cta-mark::before {
	width: 11px;
	height: 1.5px;
	transform: translate(-6px, -50%);
}

.pmj-hero__cta-mark::after {
	width: 6px;
	height: 6px;
	border-top: 1.5px solid var(--pmj-ink);
	border-right: 1.5px solid var(--pmj-ink);
	background: none;
	transform: translate(-4px, -50%) rotate(45deg);
}

.pmj-hero__cta:hover .pmj-hero__cta-mark {
	transform: translateX(3px);
}

.pmj-hero__cta:last-child {
	margin-bottom: 0;
}

.pmj-hero__nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.pmj-hero__count {
	font-family: var(--pmj-mast);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--pmj-muted);
}

.pmj-hero__count-sep {
	margin: 0 4px;
	color: var(--pmj-line);
}

.pmj-hero__arrow {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--pmj-ink);
	cursor: pointer;
}

.pmj-hero__arrow,
.pmj-dept-strip__item,
.pmj-section__more,
.pmj-featured__main,
.pmj-featured__item,
.pmj-latest-card,
.pmj-most-read__list a,
.pmj-editor-pick__body {
	transition: color 0.45s var(--pmj-ease), background-color 0.45s var(--pmj-ease), transform 0.45s var(--pmj-ease);
}

.pmj-hero__arrow:hover {
	color: var(--hb-primary);
}

.pmj-hero__figure {
	margin: 0;
	min-width: 0;
	width: 100%;
	overflow: hidden;
	background: #d5dbe3;
}

.pmj-hero__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	vertical-align: top;
}

.pmj-dept-strip {
	background: #fff;
	border-top: 1px solid var(--pmj-line);
	border-bottom: 1px solid var(--pmj-line);
}

.pmj-dept-strip__row {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

body.pmj-journal #content a.pmj-dept-strip__item,
.pmj-dept-strip__item {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 14px;
	min-width: 0;
	min-height: 132px;
	margin: 0;
	padding: 28px 16px 24px;
	text-align: left;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
	color: inherit;
	line-height: 1.4;
	border: 0;
	border-right: 1px solid var(--pmj-line);
	border-bottom: 0 !important;
	box-shadow: none;
	background: none;
}

.pmj-dept-strip__item:last-child {
	border-right: 0;
}

.pmj-dept-strip__item:hover,
.pmj-dept-strip__item:focus-visible {
	transform: translateY(-2px);
}

.pmj-dept-strip__item:hover .pmj-dept-strip__name,
.pmj-dept-strip__item.is-active .pmj-dept-strip__name {
	color: var(--hb-primary);
}

.pmj-dept-strip__item:hover .pmj-dept-strip__icon,
.pmj-dept-strip__item.is-active .pmj-dept-strip__icon {
	color: var(--hb-primary);
	background: rgba(27, 111, 201, 0.1);
}

.pmj-dept-strip__item.is-active {
	background: var(--pmj-paper);
}

.pmj-dept-strip__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 8px;
}

body.pmj-journal #content .pmj-dept-strip__icon,
.pmj-dept-strip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	color: var(--pmj-ink);
	background: var(--pmj-paper);
	transition: color 0.45s var(--pmj-ease), background-color 0.45s var(--pmj-ease);
}

.pmj-dept-strip__icon .hb-dept-icon {
	width: 22px;
	height: 22px;
	display: block;
}

body.pmj-journal #content .pmj-dept-strip__num,
.pmj-dept-strip__num {
	display: block;
	font-family: var(--pmj-mast);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--hb-primary);
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-decoration: none !important;
	border: 0;
}

body.pmj-journal #content .pmj-dept-strip__name,
.pmj-dept-strip__name {
	display: block;
	max-width: 100%;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	word-break: keep-all;
	overflow-wrap: break-word;
	text-decoration: none !important;
	border: 0;
}

.pmj-section {
	padding: 48px 0;
	background: #fff;
}

.pmj-section--tint {
	background: var(--pmj-paper);
}

.pmj-section__head {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--pmj-ink);
}

.pmj-section__title {
	margin: 0;
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.3;
	text-wrap: balance;
	color: var(--pmj-ink);
}

.pmj-most-read .pmj-section__title,
.pmj-editor-pick .pmj-section__title {
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--pmj-ink);
}

.pmj-section__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pmj-ink);
	text-decoration: none;
}

.pmj-section__more:hover {
	color: var(--hb-primary);
}

.pmj-section__more .pmj-hero__cta-mark {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	background: var(--pmj-paper);
}

.pmj-section__more:hover .pmj-hero__cta-mark {
	transform: translateX(2px);
}

.pmj-featured__main:hover,
.pmj-latest-card:hover {
	transform: translateY(-4px);
}

.pmj-featured__item:hover {
	transform: translateX(4px);
}

.pmj-featured__main:active,
.pmj-latest-card:active,
.pmj-section__more:active,
.pmj-hero__arrow:active,
.pmj-editor-pick__body:active {
	transform: scale(0.98);
}

.pmj-featured {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: 56px;
	align-items: start;
}

.pmj-featured__main {
	display: block;
	text-decoration: none;
	color: inherit;
}

.pmj-featured__main-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	margin-bottom: 20px;
	background: var(--pmj-paper);
}

.pmj-featured__main-cat,
.pmj-featured__item-cat,
.pmj-latest-card__cat {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--hb-primary);
}

.pmj-featured__main-title {
	display: block;
	margin-bottom: 12px;
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -0.03em;
}

.pmj-featured__main:hover .pmj-featured__main-title,
.pmj-featured__item:hover .pmj-featured__item-title,
.pmj-latest-card:hover .pmj-latest-card__title,
.pmj-most-read__list a:hover,
.pmj-editor-pick__body:hover .pmj-editor-pick__title {
	color: var(--hb-primary);
}

.pmj-featured__main-desc {
	display: block;
	max-width: 42em;
	font-size: 16px;
	line-height: 1.7;
	color: var(--pmj-muted);
}

.pmj-featured__list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--pmj-line);
}

.pmj-featured__item {
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid var(--pmj-line);
	text-decoration: none;
	color: inherit;
}

.pmj-featured__item-thumb {
	flex: 0 0 128px;
	width: 128px;
	height: 96px;
	object-fit: cover;
	background: var(--pmj-paper);
}

.pmj-featured__item-title {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.pmj-featured__item-date,
.pmj-latest-card__date {
	font-family: var(--pmj-mast);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--pmj-muted);
}

.pmj-latest {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 32px 48px;
	align-items: start;
}

.pmj-latest-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.pmj-latest-card--lead {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.pmj-latest-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 14px;
	background: #fff;
}

.pmj-latest-card--lead .pmj-latest-card__thumb {
	aspect-ratio: 16 / 11;
	margin-bottom: 18px;
}

.pmj-latest-card__title {
	margin-bottom: 10px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.pmj-latest-card--lead .pmj-latest-card__title {
	font-size: clamp(26px, 2.4vw, 32px);
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.pmj-lower {
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	gap: 64px;
	align-items: start;
}

.pmj-lower--solo {
	grid-template-columns: 1fr;
	max-width: 720px;
}

.pmj-most-read__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pmj-most-read__list li {
	display: grid;
	grid-template-columns: 2.6em 1fr;
	gap: 18px;
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid var(--pmj-line);
}

.pmj-most-read__num {
	font-family: var(--pmj-mast);
	font-size: 22px;
	font-weight: 600;
	color: var(--hb-primary);
	font-variant-numeric: tabular-nums;
}

.pmj-most-read__list a {
	font-size: 18px;
	font-weight: 700;
	color: var(--pmj-ink);
	text-decoration: none;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.pmj-editor-pick__body {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 16px;
	align-items: start;
	margin-top: 16px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	background: var(--pmj-surface);
	box-shadow: var(--pmj-shadow);
}

.pmj-editor-pick__avatar {
	width: 84px;
	height: 105px;
	object-fit: cover;
	background: var(--pmj-paper);
}

.pmj-editor-pick__title {
	display: -webkit-box;
	margin: 0 0 6px;
	overflow: hidden;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
}

.pmj-editor-pick__desc {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pmj-muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.pmj-hero__cta:focus-visible,
.pmj-hero__arrow:focus-visible,
.pmj-dept-strip__item:focus-visible,
.pmj-section__more:focus-visible,
.pmj-featured__main:focus-visible,
.pmj-featured__item:focus-visible,
.pmj-latest-card:focus-visible,
.pmj-most-read__list a:focus-visible,
.pmj-editor-pick__body:focus-visible {
	outline: 2px solid var(--hb-primary);
	outline-offset: 3px;
}

.pmj-reveal {
	opacity: 0;
	transform: translateY(18px);
}

.pmj-reveal.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.7s var(--pmj-ease), transform 0.7s var(--pmj-ease);
}

@media (prefers-reduced-motion: reduce) {
	.pmj-reveal {
		opacity: 1;
		transform: none;
	}

	.pmj-hero__cta,
	.pmj-hero__cta-mark,
	.pmj-hero__arrow,
	.pmj-dept-strip__item,
	.pmj-section__more,
	.pmj-featured__main,
	.pmj-featured__item,
	.pmj-latest-card,
	.pmj-most-read__list a,
	.pmj-editor-pick__body {
		transition: none;
	}

	.pmj-hero__cta:hover,
	.pmj-featured__main:hover,
	.pmj-latest-card:hover,
	.pmj-featured__item:hover,
	.pmj-dept-strip__item:hover,
	.pmj-featured__main:active,
	.pmj-latest-card:active,
	.pmj-section__more:active,
	.pmj-hero__arrow:active,
	.pmj-editor-pick__body:active {
		transform: none;
	}
}

@media (max-width: 960px) {
	body.pmj-journal .hb-container.pmj-hero__grid,
	.pmj-hero__grid,
	.pmj-featured,
	.pmj-lower,
	.pmj-latest {
		grid-template-columns: 1fr;
		row-gap: 28px;
	}

	.pmj-hero__copy {
		height: auto;
		justify-content: flex-start;
	}

	.pmj-hero__foot {
		margin-top: 28px;
	}

	.pmj-hero__copy,
	.pmj-hero__figure {
		max-width: none;
	}

	.pmj-latest-card--lead {
		grid-column: auto;
		grid-row: auto;
	}

	.pmj-dept-strip__row {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
		max-width: none;
	}

	.pmj-dept-strip__row::-webkit-scrollbar {
		display: none;
	}

	body.pmj-journal #content a.pmj-dept-strip__item,
	.pmj-dept-strip__item {
		flex: 1 0 11rem;
		min-height: 120px;
		padding: 22px 18px;
		gap: 12px;
	}

	.pmj-dept-strip__name {
		font-size: 15px;
	}
}

@media (max-width: 560px) {
	.pmj-section {
		padding: 32px 0;
	}

	.pmj-section__title {
		font-size: 22px;
	}

	.pmj-hero__title {
		font-size: 28px;
	}

	.pmj-featured__item-thumb {
		flex: 0 0 96px;
		width: 96px;
		height: 72px;
	}

	.pmj-featured__item-title,
	.pmj-most-read__list a {
		font-size: 16px;
	}

	.pmj-editor-pick__body {
		grid-template-columns: 68px 1fr;
		padding: 12px;
	}

	.pmj-editor-pick__avatar {
		width: 68px;
		height: 85px;
	}

	.pmj-editor-pick__title {
		font-size: 15px;
	}
}
