/*
Theme Name: Twenty Twenty-Four Ulsan IH
Theme URI: https://ulsanih.picell.biz/
Description: Twenty Twenty-Four child theme styled for Inae Korean Medicine Clinic Ulsan blog.
Author: Picell
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.5
Text Domain: twentytwentyfour-ulsanih
*/

:root {
	--ulsanih-rose: #f0a4a4;
	--ulsanih-rose-dark: #c19393;
	--ulsanih-blush: #fbe9e9;
	--ulsanih-accent: #d35959;
	--ulsanih-line: #f2cccc;
	--ulsanih-ink: #111111;
	--ulsanih-muted: #333333;
	--ulsanih-paper: #fffafa;
	--ulsanih-shadow: 0 18px 45px rgba(47, 49, 54, 0.10);
	--ulsanih-glow: 0 14px 34px rgba(193, 147, 147, 0.22);
}

body {
	background: var(--ulsanih-blush);
	color: var(--ulsanih-ink);
	font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: -0.04em;
}

body * {
	box-sizing: border-box;
	word-break: keep-all;
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-post-title {
	letter-spacing: -0.055em;
	line-height: 1.22;
	text-wrap: balance;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.ulsanih-site-header {
	background: rgba(251, 233, 233, 0.92);
	border-bottom: 1px solid rgba(242, 204, 204, 0.78);
	backdrop-filter: blur(18px);
	position: sticky;
	top: 0;
	z-index: 20;
}

.ulsanih-site-header .wp-block-site-title a {
	color: var(--ulsanih-ink);
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none;
}

.ulsanih-site-header .wp-block-navigation a {
	color: var(--ulsanih-ink);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.ulsanih-site-header .wp-block-navigation a:hover {
	color: var(--ulsanih-accent);
}

.ulsanih-blog-main {
	background:
		linear-gradient(rgba(181, 111, 125, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(181, 111, 125, 0.08) 1px, transparent 1px),
		var(--ulsanih-blush);
	background-size: 42px 42px;
	min-height: 70vh;
}

.ulsanih-blog-hero {
	padding-bottom: 0;
}

.ulsanih-eyebrow {
	color: var(--ulsanih-accent);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.ulsanih-blog-hero h1,
.ulsanih-blog-hero .wp-block-query-title,
.ulsanih-blog-hero .wp-block-heading {
	font-size: clamp(2.05rem, 4.4vw, 3.2rem);
	font-weight: 800;
	margin: 0;
}

.ulsanih-blog-hero p {
	color: var(--ulsanih-muted);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.8;
}

.ulsanih-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 2rem;
}

.ulsanih-category-filter a {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--ulsanih-line);
	border-radius: 999px;
	color: var(--ulsanih-ink);
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	min-height: 2.55rem;
	padding: 0.7rem 1.05rem;
	text-decoration: none;
	transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.ulsanih-category-filter a:hover,
.ulsanih-category-filter a.is-active {
	background: var(--ulsanih-rose-dark);
	border-color: var(--ulsanih-rose-dark);
	box-shadow: 0 12px 26px rgba(193, 147, 147, 0.22);
	color: #ffffff;
	transform: translateY(-2px);
}

.ulsanih-post-grid {
	margin-top: 2rem;
}

.ulsanih-post-grid .wp-block-post-template {
	gap: 1.5rem;
}

.ulsanih-post-grid .wp-block-post {
	background: var(--ulsanih-blush);
	border: 1px solid var(--ulsanih-line);
	border-radius: 1.5rem;
	box-shadow: var(--ulsanih-shadow);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ulsanih-post-grid .wp-block-post:hover {
	border-color: var(--ulsanih-rose-dark);
	box-shadow: 0 18px 38px rgba(193, 147, 147, 0.26);
	transform: translateY(-4px);
}

.ulsanih-post-grid .wp-block-post::before {
	background:
		radial-gradient(circle at 22% 28%, rgba(211, 89, 89, 0.28) 0 12%, transparent 30%),
		radial-gradient(circle at 78% 72%, rgba(193, 147, 147, 0.30) 0 14%, transparent 34%),
		linear-gradient(135deg, var(--ulsanih-blush) 0%, #ffffff 54%, var(--ulsanih-blush) 100%);
	content: "Medical Column";
	color: var(--ulsanih-accent);
	display: flex;
	align-items: flex-end;
	font-size: 0.86rem;
	font-weight: 800;
	height: 10rem;
	padding: 1.25rem;
}

.ulsanih-post-grid .wp-block-post:has(.wp-block-post-featured-image)::before {
	display: none;
}

.ulsanih-post-grid .wp-block-post-featured-image {
	height: 10rem;
	margin: 0;
	overflow: hidden;
}

.ulsanih-post-grid .wp-block-post-featured-image a,
.ulsanih-post-grid .wp-block-post-featured-image img {
	display: block;
	height: 100%;
	width: 100%;
}

.ulsanih-post-grid .wp-block-post-featured-image img {
	object-fit: cover;
}

.ulsanih-post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
}

.ulsanih-post-card-body .taxonomy-category {
	color: var(--ulsanih-accent);
	font-size: 0.78rem;
	font-weight: 800;
	margin: 0;
}

.ulsanih-post-card-body .taxonomy-category a {
	color: inherit;
	text-decoration: none;
}

.ulsanih-post-card-body .wp-block-post-title {
	font-size: 1.14rem;
	font-weight: 800;
	line-height: 1.5;
	margin: 0;
}

.ulsanih-post-card-body .wp-block-post-title a {
	color: var(--ulsanih-ink);
	text-decoration: none;
}

.ulsanih-post-card-body .wp-block-post-title a:hover {
	color: var(--ulsanih-accent);
}

.ulsanih-post-card-body .wp-block-post-excerpt {
	color: var(--ulsanih-muted);
	font-size: 0.94rem;
	line-height: 1.75;
	margin: 0;
}

.ulsanih-post-card-body .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.ulsanih-post-card-body .wp-block-post-date {
	color: var(--ulsanih-rose-dark);
	font-size: 0.82rem;
	font-weight: 700;
	margin-top: auto;
}

.ulsanih-read-more .wp-block-read-more,
.wp-block-query-pagination a,
.wp-block-post-navigation-link a,
.ulsanih-list-link {
	background: var(--ulsanih-rose);
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 800;
	padding: 0.7rem 1.05rem;
	text-decoration: none;
}

.ulsanih-read-more .wp-block-read-more:hover,
.wp-block-query-pagination a:hover,
.wp-block-post-navigation-link a:hover,
.ulsanih-list-link:hover {
	background: var(--ulsanih-rose-dark);
	color: #ffffff;
}

.wp-block-query-pagination {
	margin-top: 2.5rem;
}

.ulsanih-single-main {
	background: var(--ulsanih-blush);
	min-height: 70vh;
	padding-bottom: 5rem;
}

.ulsanih-single-shell {
	background: #ffffff;
	border: 1px solid var(--ulsanih-line);
	border-radius: 1.75rem;
	box-shadow: var(--ulsanih-shadow);
	margin-top: 3rem;
	overflow: hidden;
}

.ulsanih-single-header {
	background:
		radial-gradient(circle at 12% 20%, rgba(211, 89, 89, 0.15), transparent 24%),
		radial-gradient(circle at 85% 72%, rgba(193, 147, 147, 0.24), transparent 28%),
		var(--ulsanih-paper);
	border-bottom: 1px solid var(--ulsanih-line);
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: stretch;
	padding: clamp(2rem, 5vw, 4rem);
	width: auto;
}

.ulsanih-single-header .wp-block-post-title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 800;
	margin: 0;
	max-width: 800px;
}

.ulsanih-post-meta,
.ulsanih-post-meta a {
	color: var(--ulsanih-muted);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	max-width: 800px;
}

.ulsanih-post-meta a:hover {
	color: var(--ulsanih-accent);
}

.ulsanih-single-content {
	color: var(--ulsanih-ink);
	font-size: 1.06rem;
	line-height: 1.9;
	max-width: 800px !important;
	padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

.ulsanih-single-content > * {
	max-width: 100% !important;
}

.ulsanih-single-content h2,
.ulsanih-single-content h3,
.ulsanih-single-content h4 {
	font-weight: 800;
	margin-top: 2.2em;
}

.ulsanih-single-content img {
	border-radius: 1.25rem;
}

.ulsanih-single-footer {
	border-top: 1px solid var(--ulsanih-line);
	padding: clamp(1.5rem, 4vw, 3.5rem);
	    max-width: 100% !important;
}

.ulsanih-single-footer .taxonomy-category,
.ulsanih-single-footer .taxonomy-post_tag {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ulsanih-single-footer .taxonomy-category a,
.ulsanih-single-footer .taxonomy-post_tag a {
	background: var(--ulsanih-blush);
	border: 1px solid var(--ulsanih-line);
	border-radius: 999px;
	color: var(--ulsanih-accent);
	font-size: 0.86rem;
	font-weight: 800;
	padding: 0.55rem 0.9rem;
	text-decoration: none;
}

.ulsanih-post-navigation {
	align-items: stretch;
	display: flex !important;
	flex-direction: column;
	gap: 0.75rem;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1.5rem;
	max-width: 100%;
}

.ulsanih-post-navigation .wp-block-post-navigation-link {
	margin: 0;
	width: 100%;
}

.ulsanih-post-navigation .post-navigation-link-previous,
.ulsanih-post-navigation .post-navigation-link-next {
	display: flex;
}

.ulsanih-post-navigation .post-navigation-link-previous {
	justify-content: center;
}

.ulsanih-post-navigation .post-navigation-link-next {
	justify-content: center;
}

.ulsanih-post-navigation .wp-block-post-navigation-link a,
.ulsanih-post-navigation .ulsanih-list-link {
	align-items: center;
	box-sizing: border-box;
	justify-content: center;
	max-width: 100%;
	min-height: 2.75rem;
	text-align: center;
	white-space: normal;
	width: 100%;
}

.ulsanih-post-navigation .ulsanih-list-link {
	align-self: center;
	max-width: 11rem;
	white-space: nowrap;
}

.ulsanih-post-navigation .post-navigation-link-previous a,
.ulsanih-post-navigation .post-navigation-link-next a {
	background: #ffffff;
	border: 0;
	color: var(--ulsanih-ink);
	justify-content: center;
	line-height: 1.55;
	max-width: 100%;
	padding: 0.9rem 1rem;
	text-align: center;
	width: auto;
}

.ulsanih-post-navigation .post-navigation-link-next a {
	justify-content: center;
	text-align: center;
}

.ulsanih-post-navigation .post-navigation-link-previous a:hover,
.ulsanih-post-navigation .post-navigation-link-next a:hover {
	background: var(--ulsanih-blush);
	color: var(--ulsanih-accent);
}

.ulsanih-site-footer {
	background: var(--ulsanih-blush);
	border-top: 1px solid var(--ulsanih-line);
	color: var(--ulsanih-muted);
}

@media (max-width: 781px) {
	.ulsanih-site-header {
		position: relative;
	}

	.ulsanih-category-filter {
		flex-wrap: nowrap;
		margin-left: calc(var(--wp--style--root--padding-left, 1rem) * -1);
		margin-right: calc(var(--wp--style--root--padding-right, 1rem) * -1);
		overflow-x: auto;
		padding: 0 1rem 0.35rem;
		scrollbar-width: thin;
	}

	.ulsanih-category-filter a {
		flex: 0 0 auto;
		font-size: 0.86rem;
	}

	.ulsanih-post-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.ulsanih-single-shell {
		border-radius: 1.25rem;
		margin-top: 1.5rem;
	}
}

@media (min-width: 782px) and (max-width: 1180px) {
	.ulsanih-post-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
