/**
 * 채움동물의료센터 — styles the frozen pages need beyond the original stylesheets.
 *
 * Revolution Slider replacements: .chaeum-rs--video (home hero, Vimeo background) and
 * .chaeum-rs--layers (home equipment slider). Sizes and positions are set by
 * assets/js/chaeumamc.js from the original grid and layer data; colours and the
 * 40px arrows / 12px bullets are the original "persephone" / "custom" navigation values.
 */

.chaeum-rs {
	position: relative;
	overflow: hidden;
}

.chaeum-rs--video {
	aspect-ratio: 1920 / 1000;
	max-height: 1000px;
	background: #e9e6e1;
}

.chaeum-rs-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chaeum-rs--video iframe {
	position: absolute;
	border: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
}

/* Shown once Vimeo reports playback, so its black loading screen never covers the poster. */
.chaeum-rs--video.is-playing iframe {
	opacity: 1;
}

.chaeum-rs rs-slides,
.chaeum-rs rs-slide {
	display: block;
	position: absolute;
	inset: 0;
}

.chaeum-rs rs-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s;
}

.chaeum-rs rs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.chaeum-rs rs-layer,
.chaeum-rs .rs-layer {
	position: absolute;
	display: block;
	white-space: nowrap;
	font-weight: 300;
	letter-spacing: 0;
	text-decoration: none;
}

.chaeum-rs rs-layer img,
.chaeum-rs .rs-layer img {
	display: block;
	width: 100%;
	height: 100%;
}

.chaeum-rs-arrow {
	position: absolute;
	top: 50%;
	z-index: 20;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 1px solid #fff;
	background: rgba(201, 201, 201, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center / 15px no-repeat;
	cursor: pointer;
}

.chaeum-rs-arrow--next {
	transform: scaleX(-1);
}

.chaeum-rs-arrow:hover,
.chaeum-rs-arrow:focus-visible {
	background-color: rgba(165, 121, 54, 0.37);
}

.chaeum-rs-bullets {
	position: absolute;
	bottom: 20px;
	left: 50%;
	z-index: 20;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.chaeum-rs-bullets button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	background: rgba(125, 125, 125, 0.5);
	cursor: pointer;
}

.chaeum-rs-bullets button[aria-current="true"] {
	background: rgb(125, 125, 125);
}

/* Header logo link (the original desktop/sticky logos had none): keep the image's own box. */
.chaeum-logo-link {
	display: inline-flex;
	align-items: center;
}


/*
 * Posts written after the move (inc/posts.php, body.chaeum-post-page): the article inside the
 * frozen post frame. Set in Pretendard — the frame's Roboto and Questrial have no Hangul, so
 * Korean fell back to the system font at weight 300. This file loads before the frozen
 * stylesheets, so every rule carries the body class to win over them. The block library
 * stylesheet is dequeued (inc/setup.php), so the blocks the migrated Naver posts use are
 * styled here.
 */
body.chaeum-post-page,
.chaeum-list {
	--chaeum-ink: #2a2520;
	--chaeum-text: #3d362f;
	--chaeum-sub: #6b5d4a;
	--chaeum-num: #7a6b55;
	--chaeum-link: #2f7a70;
	--chaeum-cream: #faf7f2;
	--chaeum-sand: #f3ede4;
	--chaeum-line: #ece4d8;
	--chaeum-sans: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

body.chaeum-post-page .qodef-breadcrumbs,
body.chaeum-post-page .qodef-breadcrumbs *,
body.chaeum-post-page #qodef-page-sidebar,
body.chaeum-post-page #qodef-page-sidebar *,
body.chaeum-post-page .chaeum-post,
body.chaeum-post-page .chaeum-post * {
	font-family: var(--chaeum-sans);
	letter-spacing: 0;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

/* Text the frame leaves at the body's weight 300. */
body.chaeum-post-page .chaeum-post,
body.chaeum-post-page #qodef-page-sidebar {
	font-weight: 400;
}

/* Breadcrumb band */
body.chaeum-post-page .qodef-breadcrumbs {
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: var(--chaeum-sub);
}

body.chaeum-post-page .qodef-breadcrumbs a {
	color: var(--chaeum-sub);
}

body.chaeum-post-page .qodef-breadcrumbs .qodef-breadcrumbs-current {
	font-weight: 600;
	color: var(--chaeum-ink);
}

/* Article */
body.chaeum-post-page .chaeum-post .qodef-e-inner {
	max-width: 720px;
}

body.chaeum-post-page .chaeum-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	line-height: 22px;
	font-weight: 400;
	color: var(--chaeum-sub);
}

body.chaeum-post-page .chaeum-post-meta a {
	display: inline-flex;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--chaeum-sand);
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	color: #5a4c3a;
	text-decoration: none;
}

body.chaeum-post-page .chaeum-post-meta a:hover {
	background: #ebe2d4;
}

body.chaeum-post-page .chaeum-post-meta time {
	margin-left: 4px;
}

body.chaeum-post-page .chaeum-post .chaeum-post-title {
	margin: 18px 0 0;
	font-size: 36px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--chaeum-ink);
}

body.chaeum-post-page .chaeum-post-byline {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 28px 0 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--chaeum-line);
}

body.chaeum-post-page .chaeum-post-byline img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
	background: var(--chaeum-sand);
}

body.chaeum-post-page .chaeum-post-byline .chaeum-post-byline-name {
	display: block;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: var(--chaeum-ink);
	text-decoration: none;
}

body.chaeum-post-page .chaeum-post-byline .chaeum-post-byline-role {
	display: block;
	font-size: 13px;
	line-height: 18px;
	color: var(--chaeum-sub);
}

/* Body text: the Naver posts put one sentence per paragraph and bold a phrase in most of them. */
body.chaeum-post-page .chaeum-post-body {
	counter-reset: chaeum-section;
	font-size: 18px;
	line-height: 1.85;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--chaeum-text);
}

body.chaeum-post-page .chaeum-post-body p {
	margin: 0 0 0.95em;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	color: inherit;
}

body.chaeum-post-page .chaeum-post-body strong,
body.chaeum-post-page .chaeum-post-body b {
	font-weight: 600;
	letter-spacing: inherit;
	color: var(--chaeum-ink);
}

body.chaeum-post-page .chaeum-post-body a {
	letter-spacing: inherit;
	color: var(--chaeum-link);
	text-underline-offset: 3px;
}

/* Section headings are numbered 01, 02… in order. */
body.chaeum-post-page .chaeum-post-body > h2.wp-block-heading {
	counter-increment: chaeum-section;
	margin: 80px 0 24px;
	padding: 0;
	border: 0;
	font-size: 28px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--chaeum-ink);
}

body.chaeum-post-page .chaeum-post-body > h2.wp-block-heading::before {
	content: counter(chaeum-section, decimal-leading-zero);
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--chaeum-num);
}

/* Patient line under a section heading (convert.py: the quotation's cite, e.g. 「4살 / 코리안 숏헤어」). */
body.chaeum-post-page .chaeum-post-body > h2.wp-block-heading .chaeum-h2-sub {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--chaeum-sub);
}

body.chaeum-post-page .chaeum-post-body > h3.wp-block-heading {
	margin: 48px 0 16px;
	font-size: 21px;
	line-height: 1.45;
	font-weight: 700;
	color: var(--chaeum-ink);
}

/* Photos and videos */
body.chaeum-post-page .chaeum-post-body .wp-block-image,
body.chaeum-post-page .chaeum-post-body .wp-block-video,
body.chaeum-post-page .chaeum-post-body .wp-block-gallery {
	margin: 40px auto;
	text-align: center;
}

body.chaeum-post-page .chaeum-post-body .wp-block-image img,
body.chaeum-post-page .chaeum-post-body .wp-block-video video {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
}

body.chaeum-post-page .chaeum-post-body > .is-tall {
	padding: 24px;
	border-radius: 8px;
	background: var(--chaeum-cream);
}

body.chaeum-post-page .chaeum-post-body > .is-tall img,
body.chaeum-post-page .chaeum-post-body > .is-tall video {
	max-height: 560px;
	border-radius: 4px;
}

/* Side-by-side pictures share the row by aspect ratio (--ar, inc/posts.php): one height, nothing cropped. */
body.chaeum-post-page .chaeum-post-body .wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
}

body.chaeum-post-page .chaeum-post-body .wp-block-gallery .wp-block-image {
	flex: var(--ar, 1) 1 0;
	min-width: 0;
	margin: 0;
}

body.chaeum-post-page .chaeum-post-body .wp-block-gallery .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Side-by-side videos (a group, since a gallery holds images only) and the caption paragraph under them. */
body.chaeum-post-page .chaeum-post-body > .chaeum-media-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 40px 0;
}

body.chaeum-post-page .chaeum-post-body > .chaeum-media-row:has(+ .chaeum-media-caption) {
	margin-bottom: 0;
}

body.chaeum-post-page .chaeum-post-body .chaeum-media-row > figure {
	flex: var(--ar, 1) 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: none;
}

body.chaeum-post-page .chaeum-post-body .chaeum-media-row img,
body.chaeum-post-page .chaeum-post-body .chaeum-media-row video {
	width: 100%;
	max-height: none;
	border-radius: 6px;
}

body.chaeum-post-page .chaeum-post-body > p.chaeum-media-caption {
	margin: 14px 0 40px;
	font-size: 14px;
	line-height: 20px;
	color: var(--chaeum-sub);
	text-align: center;
}

/* ✔️ checklists of the Naver posts (convert.py) */
body.chaeum-post-page .chaeum-post-body > ul.wp-block-list {
	margin: 0 0 1.2em;
	padding: 20px 24px;
	list-style: none;
	border-radius: 8px;
	background: var(--chaeum-cream);
}

body.chaeum-post-page .chaeum-post-body > ul.wp-block-list li {
	position: relative;
	margin: 0;
	padding-left: 28px;
	line-height: 1.7;
}

body.chaeum-post-page .chaeum-post-body > ul.wp-block-list li + li {
	margin-top: 6px;
}

body.chaeum-post-page .chaeum-post-body > ul.wp-block-list li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 3px;
	width: 11px;
	height: 6px;
	border-bottom: 2px solid var(--chaeum-link);
	border-left: 2px solid var(--chaeum-link);
	transform: rotate(-45deg);
}

body.chaeum-post-page .chaeum-post-body figcaption {
	flex-basis: 100%;
	margin-top: 14px;
	font-size: 14px;
	line-height: 20px;
	color: var(--chaeum-sub);
	text-align: center;
}

/* 주치의 card, then the 상담 및 예약 box that closes the migrated posts */
body.chaeum-post-page .chaeum-post-doctor {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin: 72px 0 32px;
	padding: 28px;
	border: 1px solid var(--chaeum-line);
	border-radius: 12px;
	background: var(--chaeum-cream);
	text-align: left;
}

body.chaeum-post-page .chaeum-post-doctor img {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
	background: #fff;
}

body.chaeum-post-page .chaeum-post-doctor p {
	margin: 0;
}

body.chaeum-post-page .chaeum-post-doctor .chaeum-post-doctor-label {
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	color: var(--chaeum-sub);
}

body.chaeum-post-page .chaeum-post-doctor .chaeum-post-doctor-name {
	margin-top: 6px;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: var(--chaeum-ink);
}

body.chaeum-post-page .chaeum-post-doctor .chaeum-post-doctor-name span {
	font-size: 15px;
	font-weight: 400;
	color: var(--chaeum-sub);
}

body.chaeum-post-page .chaeum-post-doctor .chaeum-post-doctor-desc {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.75;
	color: #4a4038;
}

body.chaeum-post-page .chaeum-post-doctor a {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: var(--chaeum-link);
	text-decoration: none;
}

body.chaeum-post-page .chaeum-post-contact {
	margin: 72px 0 0;
	padding: 32px 24px;
	border: 1px solid var(--chaeum-line);
	border-radius: 12px;
	text-align: center;
}

body.chaeum-post-page .chaeum-post-doctor + .chaeum-post-contact {
	margin-top: 0;
}

body.chaeum-post-page .chaeum-post-contact p {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--chaeum-sub);
}

body.chaeum-post-page .chaeum-post-contact .chaeum-post-contact-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--chaeum-ink);
}

body.chaeum-post-page .chaeum-post-contact a {
	color: var(--chaeum-link);
}

body.chaeum-post-page .chaeum-post-contact a[href^="tel:"] {
	display: inline-block;
	margin: 8px 0;
	font-size: 30px;
	line-height: 40px;
	font-weight: 700;
	color: var(--chaeum-ink);
	text-decoration: none;
}

/* Sidebar (frozen widgets) */
body.chaeum-post-page #qodef-page-sidebar .qodef-widget-title {
	font-size: 15px;
	line-height: 22px;
	font-weight: 700;
	text-transform: none;
	color: var(--chaeum-ink);
}

body.chaeum-post-page #qodef-page-sidebar .widget.widget_nav_menu ul li a {
	font-size: 15px;
	line-height: 22px;
	font-weight: 400;
	text-transform: none;
	color: var(--chaeum-text);
}

body.chaeum-post-page #qodef-page-sidebar .qodef-search-form-field {
	font-size: 15px;
	color: var(--chaeum-ink);
}

body.chaeum-post-page #qodef-page-sidebar .qodef-e-title,
body.chaeum-post-page #qodef-page-sidebar .qodef-e-title a {
	font-size: 15px;
	line-height: 1.55;
	font-weight: 600;
	color: var(--chaeum-ink);
}

body.chaeum-post-page #qodef-page-sidebar .qodef-e-info,
body.chaeum-post-page #qodef-page-sidebar .qodef-e-info a {
	font-size: 13px;
	line-height: 18px;
	font-weight: 400;
	color: var(--chaeum-sub);
}

/* PC: one centred column without the sidebar. Below 1025px the sidebar already sits under the post and stays. */
@media (min-width: 1025px) {
	body.chaeum-post-page .qodef-page-sidebar-section {
		display: none;
	}

	body.chaeum-post-page #qodef-page-content .qodef-grid-item.qodef-page-content-section {
		float: none;
		width: 100%;
	}

	body.chaeum-post-page .chaeum-post .qodef-e-inner {
		display: block;
		margin: 0 auto;
	}

	body.chaeum-post-page .qodef-page-title .qodef-content-grid {
		width: 720px;
	}
}

@media (max-width: 680px) {
	body.chaeum-post-page #qodef-page-inner,
	body.chaeum-post-page .qodef-page-title .qodef-content-grid {
		width: calc(100% - 40px);
	}

	/* The title is right below; keep the band to one line. */
	body.chaeum-post-page .qodef-breadcrumbs > span:nth-last-of-type(-n+2) {
		display: none;
	}

	body.chaeum-post-page .chaeum-post-meta {
		gap: 6px;
		font-size: 13px;
	}

	body.chaeum-post-page .chaeum-post-meta a {
		padding: 3px 9px;
		font-size: 12px;
	}

	body.chaeum-post-page .chaeum-post .chaeum-post-title {
		margin-top: 14px;
		font-size: 25px;
		line-height: 1.42;
	}

	body.chaeum-post-page .chaeum-post-byline {
		gap: 10px;
		margin: 20px 0 28px;
		padding-bottom: 24px;
	}

	body.chaeum-post-page .chaeum-post-byline img {
		width: 40px;
		height: 40px;
	}

	body.chaeum-post-page .chaeum-post-body {
		font-size: 16px;
		line-height: 1.8;
	}

	body.chaeum-post-page .chaeum-post-body p {
		margin-bottom: 0.9em;
	}

	body.chaeum-post-page .chaeum-post-body > h2.wp-block-heading {
		margin: 56px 0 18px;
		font-size: 22px;
	}

	body.chaeum-post-page .chaeum-post-body > h2.wp-block-heading .chaeum-h2-sub {
		font-size: 14px;
	}

	body.chaeum-post-page .chaeum-post-body > h2.wp-block-heading::before {
		margin-bottom: 4px;
		font-size: 13px;
		line-height: 18px;
	}

	body.chaeum-post-page .chaeum-post-body .wp-block-image,
	body.chaeum-post-page .chaeum-post-body .wp-block-video,
	body.chaeum-post-page .chaeum-post-body .wp-block-gallery {
		margin: 28px auto;
	}

	body.chaeum-post-page .chaeum-post-body .wp-block-gallery {
		gap: 8px;
	}

	body.chaeum-post-page .chaeum-post-body > ul.wp-block-list {
		padding: 16px 18px;
	}

	body.chaeum-post-page .chaeum-post-body > .chaeum-media-row {
		gap: 8px;
		margin: 28px 0;
	}

	body.chaeum-post-page .chaeum-post-body > p.chaeum-media-caption {
		margin: 12px 0 28px;
		font-size: 13px;
		line-height: 18px;
	}

	body.chaeum-post-page .chaeum-post-body > .is-tall {
		padding: 16px;
	}

	body.chaeum-post-page .chaeum-post-body > .is-tall img,
	body.chaeum-post-page .chaeum-post-body > .is-tall video {
		max-height: 420px;
	}

	body.chaeum-post-page .chaeum-post-body figcaption {
		margin-top: 12px;
		font-size: 13px;
		line-height: 18px;
	}

	body.chaeum-post-page .chaeum-post-doctor {
		flex-direction: column;
		gap: 14px;
		margin-top: 48px;
		padding: 22px 20px;
	}

	body.chaeum-post-page .chaeum-post-doctor img {
		flex-basis: auto;
		width: 64px;
		height: 64px;
	}

	body.chaeum-post-page .chaeum-post-doctor .chaeum-post-doctor-name {
		font-size: 18px;
	}

	body.chaeum-post-page .chaeum-post-doctor .chaeum-post-doctor-desc {
		font-size: 14px;
	}

	body.chaeum-post-page .chaeum-post-contact {
		margin-top: 48px;
		padding: 26px 20px;
	}

	body.chaeum-post-page .chaeum-post-doctor + .chaeum-post-contact {
		margin-top: 0;
	}

	body.chaeum-post-page .chaeum-post-contact a[href^="tel:"] {
		font-size: 26px;
		line-height: 36px;
	}
}

/*
 * 건강정보/케이스 list (inc/case-list.php) in place of the frozen blog-list widget of page 11055.
 * The frozen stylesheets load after this file, so the rules carry .chaeum-list twice where Emaurri
 * styles the same elements (form fields, buttons, lists).
 */
.chaeum-list {
	margin-top: 8px;
	font-family: var(--chaeum-sans);
	color: var(--chaeum-text);
	text-align: left;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.chaeum-list * {
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: 0;
}

.chaeum-list .chaeum-list-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.chaeum-list .chaeum-list-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	justify-content: space-between;
	border-bottom: 1px solid var(--chaeum-line);
}

.chaeum-list .chaeum-list-tabs {
	display: flex;
	gap: 32px;
}

.chaeum-list .chaeum-list-tabs a {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 44px;
	margin-bottom: -1px;
	padding: 0 0 12px;
	border-bottom: 2px solid transparent;
	font-size: 18px;
	line-height: 26px;
	font-weight: 400;
	color: var(--chaeum-sub);
	text-decoration: none;
}

.chaeum-list .chaeum-list-tabs a span {
	font-size: 14px;
	font-weight: 400;
	color: var(--chaeum-sub);
}

.chaeum-list .chaeum-list-tabs a:hover,
.chaeum-list .chaeum-list-tabs a.is-current {
	color: var(--chaeum-ink);
}

.chaeum-list .chaeum-list-tabs a.is-current {
	border-bottom-color: var(--chaeum-ink);
	font-weight: 700;
}

.chaeum-list .chaeum-list-search {
	display: flex;
	align-items: center;
	width: 280px;
	margin: 0 0 10px;
	padding-left: 18px;
	border: 1px solid #d9cfbf;
	border-radius: 999px;
	background: #fff;
}

.chaeum-list .chaeum-list-search:focus-within {
	border-color: var(--chaeum-ink);
}

.chaeum-list .chaeum-list-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	color: var(--chaeum-ink);
	outline: none;
	-webkit-appearance: none;
}

.chaeum-list .chaeum-list-search button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--chaeum-ink);
	cursor: pointer;
}

.chaeum-list .chaeum-list-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.chaeum-list .chaeum-list-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--chaeum-sand);
	font-size: 14px;
	color: #5a4c3a;
	text-decoration: none;
}

.chaeum-list .chaeum-list-chips a.is-current {
	background: var(--chaeum-link);
	font-weight: 600;
	color: #fff;
}

.chaeum-list .chaeum-list-note {
	margin: 20px 0 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--chaeum-sub);
}

.chaeum-list .chaeum-list-note a {
	margin-left: 8px;
	color: var(--chaeum-link);
}

.chaeum-list .chaeum-list-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 32px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.chaeum-list .chaeum-list-grid li {
	margin: 0;
	padding: 0;
}

.chaeum-list .chaeum-list-grid li::before {
	content: none;
}

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

.chaeum-list .chaeum-list-thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: var(--chaeum-sand);
}

.chaeum-list .chaeum-list-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.chaeum-list .chaeum-list-card:hover img {
	transform: scale(1.03);
}

.chaeum-list .chaeum-list-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.chaeum-list .chaeum-list-cat {
	margin-top: 16px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	color: var(--chaeum-num);
}

.chaeum-list .chaeum-list-cat span {
	font-weight: 400;
	color: var(--chaeum-sub);
}

.chaeum-list .chaeum-list-title {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 18px;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--chaeum-ink);
}

.chaeum-list .chaeum-list-card:hover .chaeum-list-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.chaeum-list .chaeum-list-card time {
	margin-top: 10px;
	font-size: 13px;
	line-height: 18px;
	color: var(--chaeum-sub);
}

.chaeum-list .chaeum-list-pages {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	margin-top: 64px;
}

.chaeum-list .chaeum-list-page,
.chaeum-list .chaeum-list-step {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 6px;
	border-radius: 8px;
	font-size: 15px;
	color: var(--chaeum-text);
	text-decoration: none;
}

.chaeum-list .chaeum-list-step {
	font-size: 18px;
}

.chaeum-list a.chaeum-list-page:hover,
.chaeum-list a.chaeum-list-step:hover {
	background: var(--chaeum-sand);
}

.chaeum-list .chaeum-list-page.is-current {
	background: var(--chaeum-ink);
	font-weight: 600;
	color: #fff;
}

.chaeum-list span.chaeum-list-step {
	color: #c9bfae;
}

.chaeum-list .chaeum-list-gap {
	width: 24px;
	text-align: center;
	color: var(--chaeum-sub);
}

.chaeum-list .chaeum-list-empty {
	margin: 48px 0;
	font-size: 16px;
	text-align: center;
	color: var(--chaeum-sub);
}

@media (max-width: 1024px) {
	.chaeum-list .chaeum-list-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phones: search above full-width tabs, a scrolling chip row, rows with a 96px picture, 20px gutters. */
@media (max-width: 680px) {
	.chaeum-list {
		margin-inline: calc((100% - 100vw) / 2 + 20px);
	}

	.chaeum-list .chaeum-list-bar {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 16px;
	}

	.chaeum-list .chaeum-list-search {
		width: 100%;
		margin: 0;
	}

	.chaeum-list .chaeum-list-tabs {
		gap: 0;
	}

	.chaeum-list .chaeum-list-tabs a {
		flex: 1 1 0;
		justify-content: center;
		min-height: 48px;
		padding-bottom: 10px;
		font-size: 16px;
	}

	.chaeum-list .chaeum-list-tabs a span {
		font-size: 13px;
	}

	.chaeum-list .chaeum-list-chips {
		flex-wrap: nowrap;
		margin: 16px -20px 0;
		padding: 0 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.chaeum-list .chaeum-list-chips a {
		flex: 0 0 auto;
	}

	.chaeum-list .chaeum-list-grid {
		grid-template-columns: 1fr;
		gap: 0;
		margin-top: 8px;
	}

	.chaeum-list .chaeum-list-card {
		flex-direction: row;
		gap: 14px;
		align-items: flex-start;
		padding: 18px 0;
		border-bottom: 1px solid #f0eae0;
	}

	.chaeum-list .chaeum-list-thumb {
		flex: 0 0 96px;
		width: 96px;
		border-radius: 6px;
	}

	.chaeum-list .chaeum-list-text {
		gap: 5px;
	}

	.chaeum-list .chaeum-list-cat,
	.chaeum-list .chaeum-list-card time {
		margin-top: 0;
		font-size: 12px;
		line-height: 16px;
	}

	.chaeum-list .chaeum-list-title {
		margin-top: 0;
		-webkit-line-clamp: 3;
		font-size: 15px;
	}

	.chaeum-list .chaeum-list-pages {
		gap: 4px;
		margin-top: 32px;
	}

	.chaeum-list .chaeum-list-page,
	.chaeum-list .chaeum-list-step {
		min-width: 40px;
	}
}
