/* english.rustanvil.com — design v2 (Kadence 위에 덧씌움) */
:root {
	--rv-display: "Fraunces", "Pretendard Variable", Pretendard, Georgia, serif;
	--rv-navy: #1E3A8A;
	--rv-indigo: #312E81;
	--rv-amber: #F59E0B;
	--rv-amber-deep: #D97706;
	--rv-ink: #0F172A;
}

/* ===== 헤더 ===== */
.rv2 #masthead { box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 6px 20px rgba(15, 23, 42, .04); position: relative; z-index: 20; }
.rv2 .site-branding .brand { display: inline-flex; align-items: center; gap: 10px; }
.rv2 .site-branding .site-title-wrap { display: flex; flex-direction: column; }
.rv2 .site-branding .brand::before {
	content: "Aa"; flex: 0 0 auto; display: inline-grid; place-items: center;
	width: 40px; height: 40px; border-radius: 11px;
	font: 700 19px/1 var(--rv-display); color: #fff; letter-spacing: -0.02em;
	background: linear-gradient(135deg, var(--rv-navy), var(--rv-indigo));
	box-shadow: inset 0 -3px 0 var(--rv-amber), 0 4px 12px rgba(30, 58, 138, .25);
}
.rv2 .site-branding .site-title { font-size: 22px; line-height: 1.15; color: var(--rv-ink); }
.rv2 .site-branding .site-description { margin-top: 2px; }
.rv2 .main-navigation .primary-menu-container > ul > li.menu-item > a { position: relative; }
.rv2 .main-navigation .primary-menu-container > ul > li.menu-item > a::after {
	content: ""; position: absolute; left: 50%; right: 50%; bottom: 14px; height: 2px; border-radius: 2px;
	background: var(--rv-amber); transition: left .2s ease, right .2s ease;
}
.rv2 .main-navigation .primary-menu-container > ul > li.menu-item > a:hover::after,
.rv2 .main-navigation .primary-menu-container > ul > li.current-menu-item > a::after { left: 1em; right: 1em; }
@media (max-width: 1024px) {
	.rv2 .site-branding .brand::before { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
	.rv2 .site-branding .site-title { font-size: 20px; }
}

/* ===== 홈 히어로 ===== */
.rv-hero--en {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(245, 158, 11, .28), transparent 60%),
		radial-gradient(700px 380px at 0% 110%, rgba(99, 102, 241, .45), transparent 60%),
		linear-gradient(135deg, #1E3A8A 0%, #312E81 100%);
}
.rv-hero--en::after { /* 미세한 점 격자 */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
	background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px); background-size: 22px 22px;
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.rv-hero--en .rv-hero__glyph {
	position: absolute; right: -2vw; bottom: -0.28em; z-index: 0;
	font: 700 clamp(160px, 26vw, 360px)/1 var(--rv-display); letter-spacing: -0.04em;
	color: rgba(255, 255, 255, .07); user-select: none;
}
.rv-hero--en .rv-hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 56px 24px 48px; }
.rv-hero__eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.rv-hero--en .rv-hero__title { margin: 0; font: 700 clamp(30px, 5vw, 46px)/1.2 var(--rv-display); letter-spacing: -0.02em; color: #fff; }
.rv-hero--en .rv-hero__title em { font-style: normal; background: linear-gradient(transparent 62%, rgba(245, 158, 11, .55) 62%); padding: 0 .08em; }
.rv-hero--en .rv-hero__desc { margin: 14px 0 26px; font-size: 16px; color: rgba(255,255,255,.82); }
.rv-hero--en .rv-hero__desc strong { color: #FDE68A; }
.rv-hero__search { display: flex; gap: 8px; max-width: 560px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(15, 23, 42, .35); }
.rv-hero__search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; padding: 10px 12px; font-size: 16px; color: var(--rv-ink); }
.rv-hero__search button { flex: 0 0 auto; border: 0; border-radius: 11px; padding: 0 20px; font-weight: 700; font-size: 15px; color: #1F2937; background: linear-gradient(180deg, #FBBF24, #F59E0B); cursor: pointer; }
.rv-hero__search button:hover { filter: brightness(1.05); }
.rv-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.rv-hero__chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); transition: background .15s ease, transform .15s ease; }
.rv-hero__chips a:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); color: #fff; }
.rv-hero__chips a span { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.22); color: #FDE68A; }
@media (max-width: 767px) {
	.rv-hero--en .rv-hero__inner { padding: 36px 18px 32px; }
	.rv-hero__search button { padding: 0 14px; }
	/* 모바일: 칩은 가로 스크롤 한 줄 */
	.rv-hero__chips { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 18px -18px 0; padding: 0 18px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.rv-hero__chips::-webkit-scrollbar { display: none; }
	.rv-hero__chips a { flex: 0 0 auto; padding: 6px 11px; font-size: 13px; white-space: nowrap; }
}

/* ===== 목록 섹션 제목 ===== */
.rv-list-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.rv-list-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--rv-ink); letter-spacing: -0.01em; }
.rv-list-head::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--rv-amber), var(--rv-amber-deep)); }
.rv-list-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #CBD5E1, transparent); }

/* ===== 목록 카드 ===== */
.rv2 .content-wrap .loop-entry { position: relative; border: 1px solid #E5EAF2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.rv2 .content-wrap .loop-entry::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rv-amber); opacity: 0; transition: opacity .18s ease; }
.rv2 .content-wrap .loop-entry:hover { transform: translateY(-2px); border-color: #C7D2FE; box-shadow: 0 14px 30px rgba(30, 58, 138, .10); }
.rv2 .content-wrap .loop-entry:hover::before { opacity: 1; }
.rv2 .loop-entry .entry-title { font-family: var(--rv-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.015em; }
.rv2 .loop-entry .entry-title a { color: var(--rv-ink); }
.rv2 .loop-entry:hover .entry-title a { color: var(--rv-navy); }
.rv2 .loop-entry .entry-taxonomies a,
.rv2 .entry-header .entry-taxonomies a {
	display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none;
	color: var(--rv-navy) !important; background: #E0E7FF;
}
.rv2 .loop-entry .entry-meta { color: #94A3B8; }
@media (max-width: 767px) {
	.rv2 .loop-entry .entry-title { font-size: 1.22rem; }
}

/* ===== 글 페이지 ===== */
.rv2.single-post .entry-header { margin-bottom: 1.6em; padding-bottom: 1.2em; border-bottom: 1px solid #E5EAF2; }
.rv2.single-post .entry-header .entry-title {
	font-family: var(--rv-display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.15; letter-spacing: -0.025em; color: var(--rv-ink);
}
.rv2.single-post .entry-header .entry-title::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--rv-amber), var(--rv-amber-deep)); }
.rv2 .single-content h2 { border-bottom: 0; padding-bottom: 0; display: flex; align-items: baseline; gap: 10px; }
.rv2 .single-content h2::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2px; transform: translateY(-3px) rotate(45deg); background: var(--rv-amber); }
.rv2 .single-content h2.rv-toc-title { display: block; }
.rv2 .single-content h2.rv-toc-title::before { content: "📑"; width: auto; height: auto; background: none; transform: none; margin-right: 6px; }
.rv2 .single-content .rv-ex, .rv2 .single-content blockquote.wp-block-quote { position: relative; box-shadow: 0 1px 0 rgba(217, 119, 6, .12); }
.rv2 .single-content .rv-ex-en { font-family: var(--rv-display); font-size: 1.06rem !important; font-weight: 600; letter-spacing: -0.005em; }
.rv2 .entry-related { background: linear-gradient(180deg, #EEF2FF, #F1F5F9); }
.rv2 .entry-related .entry-related-title { font-weight: 800; }
.rv2 .entry-related .loop-entry .entry-title { font-size: 1.1rem; }

/* ===== 푸터 ===== */
.rv2 .site-footer { background: #0F172A; }
.rv2 .site-footer .site-bottom-footer-wrap, .rv2 .site-footer .site-footer-row-container-inner { background: transparent; border: 0; }
.rv2 .site-footer, .rv2 .site-footer .footer-html { color: #94A3B8; }
.rv2 .site-footer a { color: #E2E8F0; }
.rv2 .site-footer .footer-html-inner::before { content: "Aa"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 7px; font: 700 13px/1 var(--rv-display); color: #fff; background: linear-gradient(135deg, var(--rv-navy), var(--rv-indigo)); vertical-align: middle; }
