/*
Theme Name: TravelerVault Astra Child
Description: TravelerVault의 선택형 네이티브 여행 가이드 템플릿.
Template: astra
Version: 0.1.0
Text Domain: travelervault-astra-child
*/

.tv-country {
	--tv-ink: #192b29;
	--tv-muted: #50635f;
	--tv-accent: #145f52;
	--tv-line: #d5e0dd;
	--tv-soft: #f4f7f6;
	box-sizing: border-box;
	width: 100%;
	max-width: 72rem;
	min-width: 0;
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
	background: #fff;
	color: var(--tv-ink);
	font: 1rem/1.65 "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.tv-country *, .tv-country *::before, .tv-country *::after { box-sizing: border-box; }
.tv-country :where(h1, h2, h3, p, ul) { margin: 0; }
.tv-country h1, .tv-country h2, .tv-country h3 { color: var(--tv-ink); font-family: inherit; }
.tv-country h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.2; letter-spacing: -.045em; }
.tv-country h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; letter-spacing: -.035em; scroll-margin-top: 5rem; }
.tv-country a { color: var(--tv-accent); text-underline-offset: .2em; }
.tv-country :is(a, button, input):focus-visible { outline: 3px solid var(--tv-accent); outline-offset: 3px; }
.tv-country .tv-country-hero { display: grid; gap: 1.5rem; align-items: center; }
.tv-country .tv-country-intro { max-width: 38rem; margin: 1rem 0 .4rem; color: var(--tv-muted); }
.tv-country .tv-country-intro p { margin: 0 0 .5rem; }
.tv-country .tv-country-archive { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 650; }
.tv-country .tv-country-search { min-width: 0; margin: 0; }
.tv-country .tv-country-search label { display: block; margin-bottom: .45rem; font-size: .9rem; font-weight: 650; }
.tv-country .tv-country-search div { display: flex; gap: .45rem; }
.tv-country .tv-country-search input, .tv-country .tv-country-search button {
	min-height: 46px;
	border: 1px solid var(--tv-line);
	border-radius: .5rem;
	margin: 0;
	padding: .55rem .85rem;
	font: inherit;
}
.tv-country .tv-country-search input { flex: 1 1 6rem; width: 100%; min-width: 0; color: var(--tv-ink); background: #fff; }
.tv-country .tv-country-search button { flex: none; color: #fff; background: var(--tv-accent); border-color: var(--tv-accent); cursor: pointer; }

.tv-country .tv-country-nav { margin-top: 1.75rem; padding: .75rem 0; border-block: 1px solid var(--tv-line); }
.tv-country .tv-country-nav ul, .tv-country .tv-country-grid { list-style: none; margin: 0; padding: 0; }
.tv-country .tv-country-nav ul { display: flex; flex-wrap: wrap; gap: .35rem .65rem; }
.tv-country .tv-country-nav a { display: flex; align-items: center; min-height: 44px; padding: .35rem .8rem; border-radius: .5rem; background: var(--tv-soft); font-size: .9rem; font-weight: 600; text-decoration: none; }
.tv-country .tv-country-nav a:hover, .tv-country .tv-country-card a:hover { text-decoration: underline; }

.tv-country .tv-country-section { padding-top: clamp(1.75rem, 4vw, 3rem); }
.tv-country .tv-country-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.tv-country .tv-country-grid > li { min-width: 0; margin: 0; }
.tv-country .tv-country-card { height: 100%; margin: 0; border: 1px solid var(--tv-line); border-radius: .75rem; }
.tv-country .tv-country-media { padding: .5rem; border-radius: .75rem .75rem 0 0; background: var(--tv-soft); }
.tv-country .tv-country-media img { display: block; width: 100%; height: clamp(8rem, 22vw, 12rem); object-fit: contain; }
.tv-country .tv-country-card-copy { display: flex; flex-direction: column; gap: .65rem; padding: 1rem 1.15rem; }
.tv-country .tv-country-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.55; letter-spacing: -.02em; }
.tv-country .tv-country-card a { display: flex; align-items: center; min-height: 44px; color: var(--tv-ink); text-decoration: none; }
.tv-country .tv-country-meta { display: flex; flex-wrap: wrap; gap: .15rem .65rem; margin: 0; color: var(--tv-muted); font-size: .84rem; }
.tv-country .tv-country-empty { margin: 0; padding: .7rem 0; color: var(--tv-muted); }

@media (min-width: 48rem) {
	.tv-country .tv-country-hero { grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr); gap: clamp(1.5rem, 5vw, 4rem); }
	.tv-country .tv-country-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
	.tv-country .tv-country-grid > li:only-child .tv-country-card { display: flex; align-items: center; }
	.tv-country .tv-country-grid > li:only-child .tv-country-media { flex: 0 0 min(32%, 16rem); border-radius: .75rem 0 0 .75rem; }
	.tv-country .tv-country-grid > li:only-child .tv-country-media img { height: 9rem; }
}
